/* Local fonts: paths are relative to this file, not to the nested legacy themes. */
@font-face {
    font-family: Roboto;
    src: url('../fonts/Roboto-Regular.ttf') format('truetype');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: Roboto;
    src: url('../fonts/Roboto-Medium.ttf') format('truetype');
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: Roboto;
    src: url('../fonts/Roboto-Bold.ttf') format('truetype');
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: RobotoBold;
    src: url('../fonts/Roboto-Bold.ttf') format('truetype');
    font-display: swap;
}
@font-face {
    font-family: RobotoMedium;
    src: url('../fonts/Roboto-Medium.ttf') format('truetype');
    font-display: swap;
}
@font-face {
    font-family: RobotoBlack;
    src: url('../fonts/Roboto-Black.ttf') format('truetype');
    font-display: swap;
}
@font-face {
    font-family: RobotoItalic;
    src: url('../fonts/Roboto-Italic.ttf') format('truetype');
    font-display: swap;
}

/* Keep screen refreshes separate from existing document/print layouts. */
@media screen {
    .app-ui {
        --ui-ink: #21343e;
        --ui-muted: #627480;
        --ui-border: #dce5e9;
        --ui-accent: #117565;
        color: var(--ui-ink);
        background: #f3f6f8;
        font-family: Roboto, 'Segoe UI', Arial, sans-serif;
        font-size: 14px;
        line-height: 1.5;
        -webkit-font-smoothing: antialiased;
    }
    .app-ui button, .app-ui input, .app-ui select, .app-ui textarea {
        font-family: inherit;
    }
    .app-ui a:focus-visible, .app-ui button:focus-visible,
    .app-ui input:focus-visible, .app-ui select:focus-visible, .app-ui textarea:focus-visible {
        outline: 3px solid #168c7a;
        outline-offset: 3px;
    }
    .app-ui .form-group { margin-bottom: 20px; }
    .app-ui .form-group > label, .app-ui .control-label {
        margin-bottom: 7px;
        color: #354b57;
        font-weight: 500;
        line-height: 1.45;
    }
    .app-ui .form-control {
        min-height: 42px;
        height: auto;
        padding: 10px 12px;
        color: var(--ui-ink);
        background: #fff;
        border: 1px solid #cbd8df;
        border-radius: 8px;
        box-shadow: none;
        font-size: 14px;
        line-height: 1.5;
        transition: border-color .16s, box-shadow .16s;
    }
    .app-ui .form-control::placeholder { color: #73838e; opacity: 1; }
    .app-ui .form-control:focus {
        border-color: #168c7a;
        box-shadow: 0 0 0 3px rgba(17, 117, 101, .12);
        outline: none;
    }
    .app-ui .form-control[disabled], .app-ui .form-control[readonly] { background: #f0f4f6; }
    .app-ui .input-group .form-control { border-radius: 0; }
    .app-ui .input-group .form-control:first-child { border-radius: 8px 0 0 8px; }
    .app-ui .input-group .form-control:last-child { border-radius: 0 8px 8px 0; }
    .app-ui .input-group-btn .btn { min-height: 43px; }
    .app-ui .input-group-btn:first-child > .btn { border-radius: 8px 0 0 8px; }
    .app-ui .input-group-btn:last-child > .btn { border-radius: 0 8px 8px 0; }
    .app-ui input[type='checkbox'], .app-ui input[type='radio'] { accent-color: #117565; }
    .app-ui .btn {
        padding: 9px 16px;
        border-radius: 8px;
        font-weight: 500;
        line-height: 1.5;
        transition: background-color .16s, border-color .16s, box-shadow .16s;
    }
    .app-ui .btn-sm { padding: 6px 11px; font-size: 12px; }
    .app-ui .btn-xs { padding: 3px 8px; font-size: 12px; }
    .app-ui .btn-primary { color: #fff; background: #117565; border-color: #117565; }
    .app-ui .btn-primary:hover, .app-ui .btn-primary:focus,
    .app-ui .btn-primary:active, .app-ui .btn-primary.active,
    .app-ui .open > .dropdown-toggle.btn-primary {
        color: #fff; background: #0c5e51; border-color: #0c5e51;
    }
    .app-ui .btn-primary[disabled], .app-ui .btn-primary.disabled {
        background: #117565; border-color: #117565; opacity: .6;
    }
    .app-ui .btn-default { color: #354b57; background: #fff; border-color: #cbd8df; }
    .app-ui .btn-default:hover { background: #edf3f5; border-color: #b4c5ce; }
    .app-ui .btn-group > .btn { border-radius: 0; }
    .app-ui .btn-group > .btn:first-child { border-radius: 8px 0 0 8px; }
    .app-ui .btn-group > .btn:last-child { border-radius: 0 8px 8px 0; }
    .app-ui .has-error .form-control { border-color: #ba4141; }
    .app-ui .has-error .form-control:focus { box-shadow: 0 0 0 3px rgba(186, 65, 65, .12); }
    .app-ui .alert { padding: 14px 16px; border-radius: 10px; line-height: 1.5; }
    .app-ui .alert-danger { color: #963838; background: #fff2f1; border-color: #f0cfca; }
    .app-ui .panel { border-color: #dce5e9; border-radius: 12px; box-shadow: 0 3px 12px rgba(25, 51, 64, .04); }
    .app-ui .panel-heading { border-radius: 11px 11px 0 0; padding: 14px 18px; }
    .app-ui .panel-body { padding: 20px; }
    .app-ui .modal-content { border: 1px solid #dce5e9; border-radius: 14px; box-shadow: 0 20px 60px rgba(20, 41, 52, .18); }
    .app-ui .modal-header, .app-ui .modal-footer { border-color: #e6edf0; padding: 18px 22px; }
    .app-ui .modal-body { padding: 22px; }
    .app-ui .pagination > li > a, .app-ui .pagination > li > span { color: #117565; border-color: #dce5e9; }
    .app-ui .pagination > .active > a, .app-ui .pagination > .active > span { color: #fff; background: #117565; border-color: #117565; }

    .app-ui:not(.auth-page) > header {
        background: #193b42;
        box-shadow: 0 2px 12px rgba(17, 42, 49, .12);
    }
    .app-ui:not(.auth-page) > header .item a { border-radius: 7px; background: #294b52; color: #e0ecef; }
    .app-ui:not(.auth-page) > header .item a:hover { background: #365c64; }
    .app-ui:not(.auth-page) > header .left-box .logo a { color: #f5fafb; font-weight: 500; }
    .app-ui:not(.auth-page) > header .left-box .menu ul li a { color: #d2e1e5; }
    .app-ui:not(.auth-page) > header .left-box .menu ul li a:hover,
    .app-ui:not(.auth-page) > header .left-box .menu ul li.current a { color: #fff; background: #294b52; }
    .app-ui:not(.auth-page) .content-wrap .left-menu { background: #203e46; }
    .app-ui:not(.auth-page) .content-wrap .left-menu .box-menu ul li a { color: #c4d7de; line-height: 1.4; }
    .app-ui:not(.auth-page) .content-wrap .left-menu .box-menu ul li a:hover { color: #fff; background: #2b515a; }
    .app-ui:not(.auth-page) .content-wrap .left-menu .box-menu ul li.current > a {
        color: #fff; background: #2b515a; box-shadow: inset 3px 0 #80dfca;
    }
    .app-ui:not(.auth-page) .content-wrap .left-menu .item:not(:last-child) { border-color: #36535b; }
    .app-ui:not(.auth-page) .content-wrap .left-menu .box-user .text .name { color: #f0f7f9; overflow-wrap: anywhere; }
    .app-ui:not(.auth-page) .content-wrap .content { min-width: 0; padding: 20px; background: #f3f6f8; }
    .app-ui:not(.auth-page) .content-wrap .content .breadccrumbs { border-color: #dce5e9; border-radius: 10px; padding: 12px 16px; }
    .app-ui:not(.auth-page) .content-wrap .content .flex-box .box-full,
    .app-ui:not(.auth-page) .content-wrap .content .flex-box .box-half {
        margin-bottom: 18px; border-color: #dce5e9; border-radius: 12px; box-shadow: 0 3px 12px rgba(25, 51, 64, .035);
    }
    .app-ui:not(.auth-page) .content-wrap .content .flex-box .box-full > .title,
    .app-ui:not(.auth-page) .content-wrap .content .flex-box .box-half > .title {
        background: #fff; color: #213e49; border-color: #e6edf0; border-radius: 12px 12px 0 0; font-size: 20px; line-height: 1.4;
    }
    .app-ui:not(.auth-page) .table > thead > tr > th { color: #536a76; background: #f6f9fa; border-bottom: 1px solid #dce5e9; }
    .app-ui:not(.auth-page) .table > tbody > tr > td { border-color: #e8eef1; }
    .app-ui:not(.auth-page) .table-hover > tbody > tr:hover { background: #f1f8f6; }
}
@media screen and (max-width: 768px) {
    .app-ui:not(.auth-page) .content-wrap .content { padding: 12px; }
    .app-ui:not(.auth-page) > header .left-box .menu .mobile-wrap ul { background: #193b42; }
}
@media (prefers-reduced-motion: reduce) {
    .app-ui *, .app-ui *::before, .app-ui *::after { transition: none !important; animation: none !important; }
}
