html,
body {
    height: 100%;
}

strong {
    font-weight: 600;
}

body {
    /*margin-top: 50px;*/
}
body {
    font-family: "TT Commons", sans-serif;
}

.btn-primary{
    background-color: #619EDE;
    border-color: #619EDE;
}
.btn-primary:hover{
     background-color: #4069BA;
     border-color: #4069BA;
 }

.tablesorter-header {
    padding: 10px !important;
}

.brand-text {
    font-family: 'TypeType Commons Regular', sans-serif;
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    height: 56px;
    line-height: 56px;
    padding-left: 15px;
    padding-right: 15px;
    color: #343a40;
}

@font-face {
    font-family: 'Noto Sans Thai UI';
    src: url('font/subset-NotoSansThaiUI-Regular.woff2') format('woff2'),
    url('font/subset-NotoSansThaiUI-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'TypeType Commons Regular';
    src: url('font/TypeType - TT Commons Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'TypeType Commons Regular';
    src: url('font/TypeType - TT Firs Neue Medium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal
}

.has-error .help-block, .has-error .control-label, .has-error .radio, .has-error .checkbox, .has-error .radio-inline, .has-error .checkbox-inline, .has-error.radio label, .has-error.checkbox label, .has-error.radio-inline label, .has-error.checkbox-inline label {
    color: #a94442;
}

.has-error .form-control {
    border-color: #a94442;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
}

.has-success .help-block, .has-success .control-label, .has-success .radio, .has-success .checkbox, .has-success .radio-inline, .has-success .checkbox-inline, .has-success.radio label, .has-success.checkbox label, .has-success.radio-inline label, .has-success.checkbox-inline label {
    color: #3c763d;
}

.has-success .form-control {
    border-color: #3c763d;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
}

.btn-link {
    text-decoration: none !important;
}

.menu-heading .btn-link {
    width: 100%;
    text-align: left;
    padding: 10px 20px;
}

.content-header {
    margin-top: 40px;
}

.breadcrumb {
    display:none !important;
}

a.btn {
    color: #fff !important;
}

.bold {
    font-weight: bold;
}

.site-alert-box {
    position: fixed;
    bottom: 40px;
    right: 20px;
    z-index: 9999;
    max-width: 300px;
}
.site-alert {
    background: #f44336;
    color: #fff;
    padding: 12px 20px;
    margin-top: 8px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    opacity: 1;
    transition: opacity 0.5s;
}
.site-success {
    background: #4CAF50;
    color: #fff;
    padding: 12px 20px;
    margin-top: 8px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    opacity: 1;
    transition: opacity 0.5s;
}
.site-alert.fade-out {
    opacity: 0;
}
/*kasutusjuhend*/

.guide-page {
    padding-bottom: 32px;
    color: #343a40;
}

.guide-heading {
    margin-bottom: 18px;
}

.guide-heading h2 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 600;
}

.guide-heading p {
    margin: 0;
    max-width: 900px;
    color: #6c757d;
}

.guide-live-link {
    margin-bottom: 10px;
}

.guide-live-link a {
    display: inline-block;
    text-decoration: none;
    padding: 10px 16px;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    background: #fff;
    color: #343a40;
    font-weight: 600;
}

.guide-live-link a:hover {
    background: #f8f9fa;
    color: #343a40;
    text-decoration: none;
}

.guide-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.guide-sidebar {
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    padding: 16px;
    position: sticky;
    top: 76px;
}

.guide-search {
    margin-bottom: 16px;
}

.guide-search input {
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
}

.guide-search input:focus {
    border-color: #619EDE;
    box-shadow: 0 0 0 0.2rem rgba(97, 158, 222, 0.25);
}

.guide-search-result {
    font-size: 13px;
    color: #6c757d;
    margin-top: 8px;
}

.guide-toc-title {
    margin-bottom: 8px;
    color: #6c757d;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.guide-toc {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-toc li {
    margin-bottom: 2px;
}

.guide-toc a {
    display: block;
    color: #343a40;
    text-decoration: none;
    padding: 7px 9px;
    border-left: 2px solid transparent;
    border-radius: 4px;
    font-size: 14px;
}

.guide-toc a:hover {
    background: #f8f9fa;
    border-left-color: #619EDE;
    color: #343a40;
}

.guide-content {
    min-width: 0;
}

.guide-section {
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    margin-bottom: 10px;
    scroll-margin-top: 70px;
}

.guide-section.is-hidden {
    display: none;
}

.guide-section-header {
    width: 100%;
    border: 0;
    background: #fff;
    text-align: left;
    padding: 15px 18px;
    display: block;
    cursor: pointer;
    color: #343a40;
    font-weight: 600;
    font-size: 16px;
    font-family: inherit;
    line-height: 1.35;
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
}

.guide-section-header:hover {
    background: #f8f9fa;
}

.guide-section-header span {
    color: #343a40;
    font-weight: 600;
}

.guide-section-header mark.guide-mark,
.guide-section-header span mark.guide-mark {
    color: #343a40;
    font-weight: 600;
}

.guide-section-body {
    display: none;
    padding: 0 18px 18px;
    border-top: 1px solid #e9ecef;
}

.guide-section.is-open .guide-section-body {
    display: block;
}

.guide-section-body h3 {
    margin-top: 20px;
    color: #343a40;
    font-size: 16px;
    font-weight: 600;
}

.guide-section-body p {
    line-height: 1.6;
    margin: 12px 0;
}

.guide-section-body ul,
.guide-section-body ol {
    margin-top: 10px;
    padding-left: 22px;
}

.guide-section-body li {
    margin-bottom: 8px;
    line-height: 1.55;
}

.guide-note {
    border-left: 3px solid #ced4da;
    background: #f8f9fa;
    padding: 12px 14px;
    margin: 16px 0;
}

.guide-warning {
    border-left: 3px solid #adb5bd;
    background: #f8f9fa;
    padding: 12px 14px;
    margin: 16px 0;
}

mark.guide-mark {
    background: rgba(97, 158, 222, 0.22);
    color: inherit;
    border-radius: 2px;
    padding: 0 2px;
}

@media (max-width: 900px) {
    .guide-page {
        padding-bottom: 24px;
    }

    .guide-layout {
        grid-template-columns: 1fr;
    }

    .guide-sidebar {
        position: relative;
        top: auto;
    }

    .guide-heading h2 {
        font-size: 20px;
    }
}
/*admin*/

    .admin-dashboard__title {
        font-size: 22px;
        font-weight: 600;
        margin-bottom: 24px;
    }

    .admin-dashboard__group {
        margin-bottom: 32px;
    }

    .admin-dashboard__group-title {
        font-size: 14px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .06em;
        color: #6c757d;
        margin-bottom: 10px;
    }

    .admin-dashboard__grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
        gap: 18px;
    }

    .dashboard-tile {
        display: block;
        background: #ffffff;
        border-radius: 6px;
        border: 1px solid #e1e4e8;
        padding: 18px 16px;
        text-decoration: none;
        color: #333;
        transition: box-shadow 0.14s ease, transform 0.14s ease, border-color 0.14s ease;
        min-height: 110px;
    }

    .dashboard-tile__icon {
        font-size: 26px;
        margin-bottom: 10px;
        color: #0d6efd;
    }

    .dashboard-tile__title {
        font-size: 15px;
        font-weight: 600;
        margin-bottom: 2px;
    }

    .dashboard-tile:hover {
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
        transform: translateY(-2px);
        border-color: #c4c9d3;
        text-decoration: none;
        color: #222;
    }

    .dashboard-tile--logout .dashboard-tile__icon {
        color: #dc3545;
    }
	
	.admin-dashboard__logout-btn {
		margin-top: 4px;
		min-width: 220px;
		/* Kui kuskilt mujalt overridetakse, kinnista värv: */
		background-color: #dc3545 !important;
		border-color: #dc3545;
		color: #fff;
	}
	.admin-dashboard__logout-btn:hover {
		background-color: #bb2d3b;
		border-color: #b02a37;
		color: #fff;
	}
	
	/* Soovi korral õrn taustakast grupile */
	.admin-dashboard__group--users {
		background: #E3F2FD;
	}

	.admin-dashboard__group--data {
		background: #E8F0FE;
	}

	.admin-dashboard__group--admin {
		background: #FFEBEE;
	}

    @media (max-width: 576px) {
        .admin-dashboard__grid {
            grid-template-columns: 1fr;
        }
    }