:root {
    --tms-bg: #f6f7fb;
    --tms-surface: #ffffff;
    --tms-surface-soft: #f9fafc;
    --tms-border: #e4e7ef;
    --tms-border-strong: #cfd5e3;
    --tms-text: #202432;
    --tms-heading: #111827;
    --tms-muted: #697386;
    --orbit-navy: #071437;
    --orbit-red: #b81722;
    --orbit-gold: #d8a43a;
    --orbit-gold-soft: #fff6dc;
    --tms-primary: #071437;
    --tms-primary-dark: #020817;
    --tms-primary-soft: #fff6dc;
    --tms-blue: #1677ff;
    --tms-success: #1f9d63;
    --tms-success-soft: #eaf8f1;
    --tms-warning: #c68011;
    --tms-warning-soft: #fff6df;
    --tms-danger: #d92d48;
    --tms-danger-soft: #fff0f3;
    --tms-info-soft: #eaf5ff;
    --tms-shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
    --tms-shadow-md: 0 12px 34px rgba(16, 24, 40, .09);
    --tms-radius: 8px;
    --tms-sidebar-width: 232px;
    --tms-sidebar-collapsed-width: 4.35rem;
    --tms-header-height: 64px;
    --orbit-indigo: #071437;
    --orbit-indigo-dark: #020817;
    --orbit-gold-light: #fff6dc;
    --orbit-red-dark: #86111a;
    --orbit-bg: #f6f7fb;
    --orbit-card: #ffffff;
    --orbit-text: #202432;
    --orbit-muted: #697386;
    --orbit-border: #e4e7ef;
}

html {
    scroll-behavior: smooth;
}

body.tms-pro-shell,
.tms-pro-shell {
    --tms-layout-offset: var(--tms-sidebar-width);
    background: var(--tms-bg);
    color: var(--tms-text);
    font-family: "Inter", "Source Sans Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    letter-spacing: 0;
    max-width: 100%;
    overflow-x: hidden;
}

body.tms-pro-shell.sidebar-collapse,
.tms-pro-shell.sidebar-collapse {
    --tms-layout-offset: var(--tms-sidebar-collapsed-width);
}

.tms-pro-shell a {
    color: var(--tms-primary);
}

.tms-pro-shell a:hover {
    color: var(--tms-primary-dark);
}

.tms-preloader {
    background: var(--tms-surface);
}

.tms-preloader img {
    background: var(--tms-surface);
    border: 1px solid var(--tms-border);
    border-radius: 8px;
    box-shadow: var(--tms-shadow-md);
    object-fit: contain;
    padding: 8px;
}

.tms-pro-shell .wrapper {
    background: var(--tms-bg);
    max-width: 100%;
    overflow-x: hidden;
}

.tms-pro-shell .main-sidebar {
    background: #171821;
    box-shadow: 8px 0 28px rgba(17, 24, 39, .16);
    width: var(--tms-sidebar-width);
}

.tms-pro-shell .main-sidebar::before {
    width: var(--tms-sidebar-width);
}

.tms-pro-shell.sidebar-mini.sidebar-collapse .main-sidebar:hover,
.tms-pro-shell.sidebar-mini.sidebar-collapse .main-sidebar.sidebar-focused {
    width: var(--tms-sidebar-width);
}

.tms-pro-shell .main-header,
.tms-pro-shell .main-footer {
    box-sizing: border-box;
    margin-left: var(--tms-layout-offset) !important;
    max-width: calc(100% - var(--tms-layout-offset));
    width: calc(100% - var(--tms-layout-offset));
}

.tms-pro-shell .content-wrapper.orbit-content-wrapper {
    background: var(--tms-bg);
    box-sizing: border-box;
    margin-left: var(--tms-layout-offset) !important;
    max-width: calc(100% - var(--tms-layout-offset));
    min-height: calc(100vh - var(--tms-header-height));
    overflow-x: hidden;
    padding: 18px 16px 74px;
    width: calc(100% - var(--tms-layout-offset));
}

.tms-pro-shell .orbit-page-container {
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: clip;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
}

.tms-pro-shell .orbit-content-wrapper .row {
    max-width: 100%;
}

.tms-pro-shell .orbit-content-wrapper [class*="col-"],
.tms-pro-shell .orbit-content-wrapper .card,
.tms-pro-shell .orbit-content-wrapper .tms-panel,
.tms-pro-shell .orbit-content-wrapper .info-box,
.tms-pro-shell .orbit-content-wrapper .small-box {
    min-width: 0;
}

.tms-pro-shell .orbit-content-wrapper .table-responsive {
    max-width: 100%;
    overflow-x: auto;
}

.tms-pro-shell.sidebar-collapse .main-sidebar,
.tms-pro-shell.sidebar-collapse .main-sidebar::before {
    width: var(--tms-sidebar-collapsed-width);
}

.tms-pro-shell.sidebar-collapse .content-wrapper.orbit-content-wrapper,
.tms-pro-shell.sidebar-collapse .main-header,
.tms-pro-shell.sidebar-collapse .main-footer {
    margin-left: var(--tms-layout-offset) !important;
}

body.tms-pro-shell.sidebar-collapse .content-wrapper.orbit-content-wrapper,
body.tms-pro-shell.sidebar-collapse .main-header,
body.tms-pro-shell.sidebar-collapse .main-footer {
    margin-left: var(--tms-sidebar-collapsed-width) !important;
    max-width: calc(100% - var(--tms-sidebar-collapsed-width)) !important;
    width: calc(100% - var(--tms-sidebar-collapsed-width)) !important;
}

@media (max-width: 991.98px) {
    body.tms-pro-shell,
    body.tms-pro-shell.sidebar-collapse,
    .tms-pro-shell.sidebar-collapse,
    .tms-pro-shell {
        --tms-layout-offset: 0px;
    }

    .tms-pro-shell .main-sidebar,
    .tms-pro-shell .main-sidebar::before {
        margin-left: calc(-1 * var(--tms-sidebar-width));
    }

    .tms-pro-shell.sidebar-open .main-sidebar,
    .tms-pro-shell.sidebar-open .main-sidebar::before {
        margin-left: 0;
    }

    .tms-pro-shell .content-wrapper.orbit-content-wrapper,
    .tms-pro-shell .main-header,
    .tms-pro-shell .main-footer,
    .tms-pro-shell.sidebar-collapse .content-wrapper.orbit-content-wrapper,
    .tms-pro-shell.sidebar-collapse .main-header,
    .tms-pro-shell.sidebar-collapse .main-footer {
        margin-left: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    body.tms-pro-shell.sidebar-collapse .content-wrapper.orbit-content-wrapper,
    body.tms-pro-shell.sidebar-collapse .main-header,
    body.tms-pro-shell.sidebar-collapse .main-footer {
        margin-left: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .tms-pro-shell .content-wrapper.orbit-content-wrapper {
        padding: 12px 10px 72px;
    }
}

.tms-pro-shell .brand-link.tms-brand {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    gap: 9px;
    min-height: 76px;
    padding: 11px 12px;
    width: var(--tms-sidebar-width);
}

.tms-brand-logo {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .16);
    flex: 0 0 48px;
    height: 48px;
    object-fit: contain;
    padding: 3px;
    width: 48px;
}

.orbit-preloader-logo {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .22);
    object-fit: contain;
    padding: 4px;
}

.tms-brand .brand-text {
    color: #ffffff;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.tms-brand .brand-text strong {
    font-size: 14px;
    font-weight: 800;
}

.tms-brand .brand-text small {
    color: rgba(255, 255, 255, .62);
    font-size: 8.5px;
    font-weight: 600;
    margin-top: 2px;
}

.tms-pro-shell .sidebar {
    padding: 10px 9px 18px;
}

.tms-workspace-card {
    align-items: center;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--tms-radius);
    gap: 9px;
    margin: 0 0 12px;
    padding: 10px;
}

.tms-workspace-card .info {
    min-width: 0;
    padding: 0;
}

.tms-workspace-card small {
    color: rgba(255, 255, 255, .48);
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.tms-workspace-card a {
    color: #ffffff;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tms-avatar {
    align-items: center;
    background: linear-gradient(135deg, var(--orbit-navy) 0%, var(--orbit-red) 100%);
    border-radius: 8px;
    color: #ffffff;
    display: inline-flex;
    flex: 0 0 34px;
    font-size: 13px;
    font-weight: 800;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.tms-pro-shell .nav-sidebar {
    gap: 3px;
}

.tms-pro-shell .nav-sidebar > .nav-item {
    margin-bottom: 3px;
}

.tms-pro-shell .nav-sidebar .nav-link {
    align-items: center;
    border-radius: var(--tms-radius);
    color: rgba(255, 255, 255, .72);
    display: flex;
    gap: 9px;
    min-height: 40px;
    padding: 9px 10px;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.tms-pro-shell .nav-sidebar .nav-link p {
    font-size: 12.5px;
    font-weight: 650;
    letter-spacing: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tms-pro-shell .nav-sidebar .has-treeview > .nav-link p {
    padding-right: 18px;
}

.tms-pro-shell .nav-sidebar .nav-link > p > .right {
    right: .75rem;
}

.tms-pro-shell .nav-sidebar .nav-icon {
    color: rgba(255, 255, 255, .56);
    font-size: 14px;
    margin: 0;
    text-align: center;
    width: 17px;
}

.tms-pro-shell .sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active,
.tms-pro-shell .sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link:hover {
    background: rgba(216, 164, 58, .18);
    color: #ffffff;
}

.tms-pro-shell .sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active {
    box-shadow: inset 3px 0 0 var(--orbit-gold);
}

.tms-pro-shell .nav-sidebar .nav-link:hover .nav-icon,
.tms-pro-shell .nav-sidebar .nav-link.active .nav-icon {
    color: #ffffff;
}

.tms-pro-shell .nav-treeview {
    margin: 3px 0 8px;
    padding-left: 3px;
}

.tms-pro-shell .nav-treeview .nav-link {
    color: rgba(255, 255, 255, .62);
    min-height: 34px;
    padding: 8px 8px 8px 13px;
}

.tms-pro-shell .nav-treeview .nav-link.active {
    background: rgba(255, 255, 255, .1);
    color: #ffffff;
}

.tms-pro-shell .main-header.tms-topbar {
    align-items: center;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--tms-border);
    box-shadow: var(--tms-shadow-sm);
    gap: 14px;
    min-height: var(--tms-header-height);
    padding: 10px 22px;
    position: sticky;
    top: 0;
    z-index: 1034;
}

.tms-topbar-left {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    gap: 12px;
    min-width: 0;
}

.tms-topbar-actions {
    align-items: center;
    display: flex;
    gap: 8px;
    min-width: 0;
}

@media (max-width: 1199.98px) {
    .tms-pro-shell .main-header.tms-topbar {
        flex-wrap: wrap;
    }

    .tms-topbar-left {
        flex: 1 1 520px;
    }

    .tms-topbar-actions {
        flex: 1 1 auto;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

.tms-icon-btn,
.tms-quick-btn,
.tms-profile-chip,
.tms-home-link {
    align-items: center;
    border: 1px solid var(--tms-border);
    border-radius: var(--tms-radius);
    color: var(--tms-text);
    display: inline-flex;
    font-weight: 700;
    gap: 8px;
    min-height: 38px;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.tms-icon-btn {
    background: var(--tms-surface);
    justify-content: center;
    position: relative;
    width: 38px;
}

.tms-icon-btn:hover,
.tms-quick-btn:hover,
.tms-profile-chip:hover,
.tms-home-link:hover {
    background: var(--tms-primary-soft);
    border-color: rgba(216, 164, 58, .42);
    color: var(--tms-primary-dark);
    text-decoration: none;
}

.tms-home-link,
.tms-quick-btn {
    background: var(--tms-surface);
    font-size: 13px;
    padding: 0 12px;
}

.tms-quick-btn i,
.tms-home-link i {
    color: var(--tms-primary);
}

.tms-profile-chip {
    background: var(--tms-surface);
    font-size: 13px;
    padding: 2px 10px 2px 3px;
}

.tms-profile-chip .tms-avatar {
    flex-basis: 30px;
    height: 30px;
    width: 30px;
}

.tms-global-search {
    align-items: center;
    background: var(--tms-surface-soft);
    border: 1px solid var(--tms-border);
    border-radius: var(--tms-radius);
    color: var(--tms-muted);
    display: flex;
    flex: 1 1 420px;
    gap: 10px;
    max-width: 620px;
    min-height: 40px;
    padding: 0 13px;
}

.tms-global-search input {
    background: transparent;
    border: 0;
    color: var(--tms-text);
    flex: 1;
    font-size: 14px;
    min-width: 90px;
    outline: 0;
}

.tms-notification-dot {
    align-items: center;
    background: var(--tms-danger);
    border: 2px solid #ffffff;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 10px;
    font-weight: 800;
    height: 19px;
    justify-content: center;
    min-width: 19px;
    padding: 0 4px;
    position: absolute;
    right: -7px;
    top: -7px;
}

.tms-notification-menu {
    max-height: 500px;
    min-width: min(560px, calc(100vw - 24px));
    overflow-y: auto;
    white-space: normal;
    width: min(560px, calc(100vw - 24px)) !important;
}

.tms-notification-menu .dropdown-item {
    font-size: 13px;
    line-height: 1.6;
    padding: 15px 18px;
    white-space: normal;
}

.tms-notification-menu .dropdown-header {
    font-size: 14px;
    font-weight: 800;
    padding: 12px 16px;
}

.tms-user-menu {
    border: 1px solid var(--tms-border);
    border-radius: var(--tms-radius);
    box-shadow: var(--tms-shadow-md);
    min-width: 220px;
    padding: 8px;
}

.tms-pro-shell > .wrapper > .content-wrapper {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .88) 0, rgba(246, 247, 251, 0) 180px),
        var(--tms-bg);
    box-sizing: border-box;
    margin-left: var(--tms-layout-offset) !important;
    max-width: calc(100% - var(--tms-layout-offset));
    min-height: calc(100vh - var(--tms-header-height));
    padding-bottom: 28px;
    width: calc(100% - var(--tms-layout-offset));
}

.tms-pro-shell.sidebar-collapse > .wrapper > .content-wrapper,
.tms-pro-shell.sidebar-collapse .main-header,
.tms-pro-shell.sidebar-collapse .main-footer {
    margin-left: var(--tms-layout-offset) !important;
}

.tms-pro-shell .orbit-content-wrapper .content-wrapper,
.tms-pro-shell.sidebar-collapse .orbit-content-wrapper .content-wrapper {
    background: transparent;
    max-width: 100%;
    margin-left: 0 !important;
    min-height: auto;
    padding-bottom: 0;
    width: 100%;
}

.tms-pro-shell .content-header {
    padding: 24px 28px 10px;
}

.tms-pro-shell .content-header h1,
.tms-pro-shell h1,
.tms-pro-shell h2,
.tms-pro-shell h3,
.tms-pro-shell h4,
.tms-pro-shell h5 {
    color: var(--tms-heading);
    font-weight: 800;
    letter-spacing: 0;
}

.tms-pro-shell .content-header h1 {
    font-size: 26px;
}

.tms-pro-shell .breadcrumb {
    background: transparent;
    font-size: 12px;
    font-weight: 650;
    margin: 0;
    padding: 0;
}

.tms-pro-shell .content,
.tms-pro-shell .container-fluid {
    box-sizing: border-box;
    max-width: 100%;
    padding-left: 28px;
    padding-right: 28px;
    width: 100%;
}

.tms-pro-shell .main-footer {
    background: var(--tms-surface);
    border-top: 1px solid var(--tms-border);
    color: var(--tms-muted);
    font-size: 13px;
    margin-left: var(--tms-layout-offset) !important;
    padding: 14px 28px;
}

.tms-pro-shell .card,
.tms-panel,
.small-box,
.info-box,
.callout,
.modal-content {
    background: var(--tms-surface);
    border: 1px solid var(--tms-border);
    border-radius: var(--tms-radius);
    box-shadow: var(--tms-shadow-sm);
}

.tms-pro-shell .card {
    overflow: hidden;
}

.tms-pro-shell .card:hover,
.tms-panel:hover {
    box-shadow: 0 12px 32px rgba(16, 24, 40, .07);
}

.tms-pro-shell .card-header,
.tms-panel .card-header {
    align-items: center;
    background: var(--tms-surface);
    border-bottom: 1px solid var(--tms-border);
    color: var(--tms-heading);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 56px;
    padding: 14px 18px;
}

.tms-pro-shell .card-header::after {
    display: none;
}

.tms-pro-shell .card-title {
    color: var(--tms-heading);
    font-size: 16px;
    font-weight: 800;
    margin: 0;
}

.tms-pro-shell .card-header.bg-primary,
.tms-pro-shell .card-header.bg-info,
.tms-pro-shell .card-header.bg-success,
.tms-pro-shell .card-header.bg-warning,
.tms-pro-shell .card-header.bg-danger {
    background: var(--tms-surface) !important;
    color: var(--tms-heading) !important;
}

.tms-pro-shell .card-body,
.tms-panel .card-body {
    padding: 18px;
}

.tms-pro-shell .card-footer {
    background: var(--tms-surface-soft);
    border-top: 1px solid var(--tms-border);
}

.tms-pro-shell .small-box {
    color: var(--tms-heading);
    overflow: hidden;
    padding: 2px;
}

.tms-pro-shell .small-box > .inner {
    padding: 18px;
}

.tms-pro-shell .small-box h3 {
    font-size: 30px;
    font-weight: 800;
}

.tms-pro-shell .small-box p {
    color: var(--tms-muted);
    font-weight: 700;
}

.tms-pro-shell .small-box .icon {
    color: rgba(101, 84, 255, .14);
    top: 10px;
}

.tms-pro-shell .small-box-footer {
    background: var(--tms-surface-soft);
    border-top: 1px solid var(--tms-border);
    color: var(--tms-primary);
    font-weight: 750;
}

.tms-pro-shell .bg-primary,
.tms-pro-shell .bg-info {
    background-color: var(--tms-primary) !important;
}

.tms-pro-shell .bg-success {
    background-color: var(--tms-success) !important;
}

.tms-pro-shell .bg-warning {
    background-color: #f2b84b !important;
}

.tms-pro-shell .bg-danger {
    background-color: var(--tms-danger) !important;
}

.tms-kpi-card {
    align-items: center;
    background: var(--tms-surface);
    border: 1px solid var(--tms-border);
    border-radius: var(--tms-radius);
    box-shadow: var(--tms-shadow-sm);
    display: flex;
    gap: 14px;
    min-height: 98px;
    margin-bottom: 16px;
    padding: 18px;
}

.tms-kpi-card small {
    color: var(--tms-muted);
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.tms-kpi-card strong {
    color: var(--tms-heading);
    display: block;
    font-size: 28px;
    line-height: 1.2;
    margin-top: 2px;
}

.tms-kpi-icon {
    align-items: center;
    border-radius: var(--tms-radius);
    color: #fff;
    display: inline-flex;
    flex: 0 0 46px;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.tms-pro-shell .table-responsive {
    border-radius: var(--tms-radius);
}

.tms-pro-shell .table,
.tms-table {
    background: var(--tms-surface);
    color: var(--tms-text);
    margin-bottom: 0;
}

.tms-pro-shell .table thead th,
.tms-table thead th {
    background: var(--tms-surface-soft);
    border-bottom: 1px solid var(--tms-border);
    border-top: 0;
    color: #4d5768;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .03em;
    padding: 12px 14px;
    position: sticky;
    text-transform: uppercase;
    top: 0;
    vertical-align: middle;
    white-space: nowrap;
    z-index: 2;
}

.tms-pro-shell .table td,
.tms-table td {
    border-top: 1px solid #edf0f6;
    padding: 13px 14px;
    vertical-align: middle;
}

.tms-pro-shell .table tbody tr {
    transition: background .16s ease;
}

.tms-pro-shell .table tbody tr:hover {
    background: #fbfbff;
}

.tms-pro-shell .table-bordered,
.tms-pro-shell .table-bordered td,
.tms-pro-shell .table-bordered th {
    border-color: var(--tms-border);
}

.tms-pro-shell .dataTables_wrapper .row:first-child,
.tms-pro-shell .dataTables_wrapper .row:last-child {
    align-items: center;
    background: var(--tms-surface);
    border: 1px solid var(--tms-border);
    border-radius: var(--tms-radius);
    margin: 0 0 12px;
    padding: 10px 12px;
}

.tms-pro-shell label {
    color: #4d5768;
    font-size: 13px;
    font-weight: 750;
    margin-bottom: 6px;
}

.tms-pro-shell .form-control,
.tms-pro-shell .custom-select,
.tms-pro-shell select,
.tms-pro-shell textarea,
.tms-pro-shell input[type="text"],
.tms-pro-shell input[type="email"],
.tms-pro-shell input[type="password"],
.tms-pro-shell input[type="number"],
.tms-pro-shell input[type="date"],
.tms-pro-shell input[type="time"],
.tms-pro-shell input[type="file"] {
    background-color: var(--tms-surface);
    border: 1px solid var(--tms-border-strong);
    border-radius: var(--tms-radius);
    box-shadow: none;
    color: var(--tms-text);
    min-height: 40px;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.tms-pro-shell textarea.form-control {
    min-height: 110px;
}

.tms-pro-shell .form-control:focus,
.tms-pro-shell .custom-select:focus,
.tms-pro-shell select:focus,
.tms-pro-shell textarea:focus,
.tms-pro-shell input:focus {
    border-color: var(--tms-primary);
    box-shadow: 0 0 0 4px rgba(101, 84, 255, .12);
    outline: 0;
}

.tms-pro-shell .input-group-text {
    background: var(--tms-surface-soft);
    border-color: var(--tms-border-strong);
    border-radius: var(--tms-radius);
    color: var(--tms-muted);
    font-weight: 700;
}

.tms-pro-shell .invalid-feedback {
    font-weight: 650;
}

.tms-pro-shell .btn {
    border-radius: var(--tms-radius);
    font-size: 13px;
    font-weight: 800;
    min-height: 38px;
    padding: 8px 13px;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}

.tms-pro-shell .btn:hover {
    transform: translateY(-1px);
}

.tms-pro-shell .btn-primary {
    background: linear-gradient(135deg, var(--orbit-red), var(--orbit-navy));
    border-color: var(--orbit-red);
    box-shadow: 0 8px 20px rgba(184, 23, 34, .18);
    color: #ffffff;
}

.tms-pro-shell .btn-primary:hover {
    background: linear-gradient(135deg, #99151f, var(--tms-primary-dark));
    border-color: #99151f;
    color: #ffffff;
}

.tms-pro-shell .btn-success {
    background: var(--tms-success);
    border-color: var(--tms-success);
    color: #ffffff;
}

.tms-pro-shell .btn-danger {
    background: var(--tms-danger);
    border-color: var(--tms-danger);
    color: #ffffff;
}

.tms-pro-shell .btn-dark,
.tms-pro-shell .btn-secondary,
.tms-pro-shell .btn-info {
    color: #ffffff;
}

.tms-pro-shell .btn-warning {
    background: #f2b84b;
    border-color: #f2b84b;
    color: #2a2312;
}

.tms-pro-shell .btn-outline-primary {
    border-color: rgba(216, 164, 58, .48);
    color: var(--tms-primary);
}

.tms-pro-shell .btn-outline-primary:hover {
    background: var(--tms-primary);
    border-color: var(--tms-primary);
    color: #ffffff;
}

.tms-pro-shell .btn-primary *,
.tms-pro-shell .btn-success *,
.tms-pro-shell .btn-danger *,
.tms-pro-shell .btn-dark *,
.tms-pro-shell .btn-secondary *,
.tms-pro-shell .btn-info *,
.tms-pro-shell .btn-outline-primary:hover * {
    color: inherit;
}

.tms-pro-shell .btn-link {
    color: var(--tms-primary);
    font-weight: 800;
}

.tms-pro-shell .badge,
.clickup-status {
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .01em;
    padding: 6px 9px;
    text-transform: uppercase;
    white-space: nowrap;
}

.tms-pro-shell .badge-primary {
    background: var(--tms-primary-soft);
    color: var(--tms-primary-dark);
}

.tms-pro-shell .badge-success {
    background: var(--tms-success-soft);
    color: var(--tms-success);
}

.tms-pro-shell .badge-warning {
    background: var(--tms-warning-soft);
    color: var(--tms-warning);
}

.tms-pro-shell .badge-danger {
    background: var(--tms-danger-soft);
    color: var(--tms-danger);
}

.tms-pro-shell .badge-info {
    background: var(--tms-info-soft);
    color: var(--tms-blue);
}

.tms-pro-shell .pagination {
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-end;
    max-width: 100%;
}

.tms-pro-shell .page-link {
    border: 1px solid var(--tms-border);
    border-radius: var(--tms-radius);
    color: var(--tms-text);
    font-weight: 750;
    min-width: 36px;
    text-align: center;
}

.tms-pro-shell .page-item.active .page-link {
    background: var(--orbit-navy);
    border-color: var(--orbit-navy);
}

@media (max-width: 1199.98px) {
    .tms-pro-shell .task-workspace .subtask-column-head,
    .tms-pro-shell .task-workspace .subtask-row {
        gap: 10px;
        grid-template-columns: minmax(0, 1fr) minmax(120px, .8fr) 82px minmax(96px, .6fr) !important;
    }

    .tms-pro-shell .task-workspace .subtask-progress,
    .tms-pro-shell .task-workspace .subtask-progress .d-flex,
    .tms-pro-shell .task-workspace .subtask-progress .progress {
        min-width: 0;
        width: 100%;
    }

    .tms-pro-shell .task-workspace .subtask-name,
    .tms-pro-shell .task-workspace .subtask-name > div {
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
        width: 100%;
    }
}

.tms-pro-shell .alert {
    border: 1px solid transparent;
    border-radius: var(--tms-radius);
    box-shadow: var(--tms-shadow-sm);
    font-weight: 650;
}

.tms-pro-shell .alert-success {
    background: var(--tms-success-soft);
    border-color: #bdebd4;
    color: #0f6f43;
}

.tms-pro-shell .alert-danger {
    background: var(--tms-danger-soft);
    border-color: #ffd0d9;
    color: #a3162d;
}

.tms-pro-shell .alert-warning {
    background: var(--tms-warning-soft);
    border-color: #ffe3a3;
    color: #805409;
}

.tms-pro-shell .dropdown-menu {
    border: 1px solid var(--tms-border);
    border-radius: var(--tms-radius);
    box-shadow: var(--tms-shadow-md);
    padding: 8px;
}

.tms-pro-shell .dropdown-item {
    border-radius: 7px;
    color: var(--tms-text);
    font-weight: 650;
}

.tms-pro-shell .dropdown-item:hover {
    background: var(--tms-primary-soft);
    color: var(--tms-primary-dark);
}

.tms-detail-grid > div {
    border-bottom: 1px solid #edf1f7;
    padding-bottom: 14px;
    padding-top: 10px;
}

.tms-detail-grid small {
    color: var(--tms-muted);
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.tms-detail-grid strong {
    color: var(--tms-heading);
    display: block;
    margin-top: 4px;
}

.tms-status-list li {
    align-items: flex-start;
    border-bottom: 1px solid #edf1f7;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 10px 0;
}

.tms-status-list li:last-child {
    border-bottom: 0;
}

.tms-status-list span {
    color: var(--tms-muted);
}

.tms-status-list strong {
    color: var(--tms-heading);
    text-align: right;
}

.tms-approval-steps {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.tms-approval-step {
    background: var(--tms-surface-soft);
    border: 1px solid var(--tms-border);
    border-radius: var(--tms-radius);
    padding: 12px;
}

.tms-approval-step span {
    align-items: center;
    background: #e8ecf4;
    border-radius: 999px;
    color: var(--tms-muted);
    display: inline-flex;
    font-weight: 800;
    height: 26px;
    justify-content: center;
    margin-bottom: 8px;
    width: 26px;
}

.tms-approval-step strong,
.tms-approval-step small {
    display: block;
}

.tms-approval-step small {
    color: var(--tms-muted);
    margin-top: 2px;
}

.tms-approval-step.active {
    background: var(--tms-primary-soft);
    border-color: rgba(216, 164, 58, .55);
}

.tms-approval-step.active span {
    background: var(--tms-primary);
    color: #ffffff;
}

.tms-approval-step.done {
    background: var(--tms-success-soft);
    border-color: #bdebd4;
}

.tms-approval-step.done span {
    background: var(--tms-success);
    color: #ffffff;
}

.tms-timeline {
    position: relative;
}

.tms-timeline-item {
    border-left: 2px solid var(--tms-border);
    display: flex;
    gap: 14px;
    padding: 0 0 18px 20px;
    position: relative;
}

.tms-timeline-item:last-child {
    padding-bottom: 0;
}

.tms-timeline-dot {
    background: var(--tms-primary);
    border: 3px solid #eef4ff;
    border-radius: 50%;
    height: 14px;
    left: -8px;
    position: absolute;
    top: 2px;
    width: 14px;
}

/* Role-aware dashboard */
.dashboard-heading { align-items: flex-end; display: flex; gap: 24px; justify-content: space-between; padding: 4px 0 12px; }
.dashboard-heading p { color: var(--tms-muted); font-size: 14px; margin-top: 7px; }
.dashboard-eyebrow { color: var(--tms-primary); display: block; font-size: 11px; font-weight: 850; letter-spacing: .1em; margin-bottom: 5px; text-transform: uppercase; }
.dashboard-role { align-items: center; background: var(--tms-surface); border: 1px solid var(--tms-border); border-radius: 10px; display: flex; gap: 11px; max-width: 320px; padding: 10px 14px; }
.dashboard-role > i { align-items: center; background: var(--tms-primary-soft); border-radius: 8px; color: var(--tms-primary); display: flex; height: 36px; justify-content: center; width: 36px; }
.dashboard-role small, .dashboard-role strong { display: block; }
.dashboard-role small { color: var(--tms-muted); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.dashboard-role strong { color: var(--tms-heading); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-kpis > div { display: flex; }
.dashboard-kpi { background: var(--tms-surface); border: 1px solid var(--tms-border); border-radius: 10px; box-shadow: var(--tms-shadow-sm); display: flex; flex: 1; gap: 14px; margin-bottom: 18px; min-height: 116px; padding: 20px; position: relative; }
.dashboard-kpi:after { background: currentColor; border-radius: 999px; bottom: 14px; content: ''; left: 20px; opacity: .32; position: absolute; top: 14px; width: 3px; }
.dashboard-kpi.danger { color: var(--tms-danger); }.dashboard-kpi.success { color: var(--tms-success); }.dashboard-kpi.warning { color: var(--tms-warning); }.dashboard-kpi.primary { color: var(--tms-primary); }
.kpi-symbol { align-items: center; background: currentColor; border-radius: 9px; display: flex; height: 44px; justify-content: center; margin-left: 8px; width: 44px; }
.kpi-symbol i { color: #fff; }
.dashboard-kpi small, .dashboard-kpi strong, .dashboard-kpi em { display: block; font-style: normal; }
.dashboard-kpi small { color: var(--tms-muted); font-size: 11px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.dashboard-kpi strong { color: var(--tms-heading); font-size: 27px; line-height: 1.05; margin: 5px 0; }
.dashboard-kpi em { color: #8a93a3; font-size: 11px; }
.dashboard-panel { border-radius: 10px !important; margin-bottom: 18px; }
.dashboard-panel .card-header { justify-content: space-between; }
.dashboard-panel .card-header small { color: var(--tms-muted); display: block; font-size: 12px; margin-top: 3px; }
.dashboard-chip { background: var(--tms-primary-soft); border-radius: 999px; color: var(--tms-primary-dark); font-size: 11px; font-weight: 850; padding: 6px 10px; }
.panel-link { color: var(--tms-primary); font-size: 12px; font-weight: 800; white-space: nowrap; }.panel-link i { font-size: 10px; margin-left: 4px; }
.chart-frame { height: 235px; position: relative; }.chart-frame-wide { height: 275px; }
.priority-legend { border-top: 1px solid var(--tms-border); display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; padding-top: 14px; }
.priority-legend span { align-items: center; color: var(--tms-muted); display: flex; font-size: 11px; gap: 5px; }.priority-legend i { background: var(--orbit-gold); border-radius: 50%; height: 7px; width: 7px; }.priority-legend strong { color: var(--tms-heading); }
.dashboard-list-row { align-items: center; border-bottom: 1px solid #edf1f7; color: var(--tms-text) !important; display: flex; gap: 12px; min-height: 70px; padding: 12px 18px; transition: background .16s ease; }.dashboard-list-row:last-child { border-bottom: 0; }.dashboard-list-row:hover { background: #fffaf0; text-decoration: none; }
.dashboard-list-row.compact { min-height: 58px; padding-bottom: 10px; padding-top: 10px; }
.list-icon { align-items: center; background: var(--tms-primary-soft); border-radius: 8px; color: var(--tms-primary); display: flex; flex: 0 0 34px; height: 34px; justify-content: center; }.list-icon.task { background: #eff7ff; color: #1677ff; }
.list-main { flex: 1; min-width: 0; }.list-main strong, .list-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.list-main strong { color: var(--tms-heading); font-size: 13px; }.list-main small { color: var(--tms-muted); font-size: 11px; margin-top: 3px; }
.dashboard-list-row time { color: var(--tms-muted); font-size: 12px; font-weight: 750; white-space: nowrap; }.dashboard-list-row time.overdue { color: var(--tms-danger); }
.dashboard-list-empty { color: var(--tms-muted); padding: 28px; text-align: center; }.dashboard-list-empty i { color: var(--tms-success); margin-right: 6px; }
.finance-metrics { display: grid; gap: 10px; }.finance-metrics > div { background: var(--tms-surface-soft); border: 1px solid var(--tms-border); border-radius: 8px; display: flex; justify-content: space-between; padding: 11px 12px; }.finance-metrics span { color: var(--tms-muted); }.finance-metrics strong { color: var(--tms-heading); }
.status-dot { background: #9aa3b2; border-radius: 50%; flex: 0 0 9px; height: 9px; }.status-dot.submitted { background: #f4b740; }.status-dot.approved { background: var(--tms-primary); }
.meeting-date { align-items: center; background: var(--tms-primary-soft); border-radius: 8px; color: var(--tms-primary); display: flex; flex: 0 0 44px; flex-direction: column; font-size: 9px; font-weight: 850; height: 44px; justify-content: center; text-transform: uppercase; }.meeting-date b { font-size: 17px; line-height: 1; }
.dashboard-empty { background: var(--tms-surface); border: 1px dashed var(--tms-border-strong); border-radius: 12px; color: var(--tms-muted); padding: 70px 20px; text-align: center; }.dashboard-empty > span { align-items: center; background: var(--tms-primary-soft); border-radius: 50%; color: var(--tms-primary); display: inline-flex; font-size: 24px; height: 62px; justify-content: center; margin-bottom: 16px; width: 62px; }.dashboard-empty h3 { font-size: 20px; }

.font-weight-semibold {
    font-weight: 650;
}

.tms-finance-nav,
.meeting-tabs {
    background: var(--tms-surface);
    border: 1px solid var(--tms-border);
    border-radius: var(--tms-radius);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
    padding: 6px;
    position: sticky;
    top: calc(var(--tms-header-height) + 8px);
    z-index: 5;
}

.tms-finance-nav a,
.meeting-tabs a {
    border-radius: 7px;
    color: #394150;
    font-size: 11px;
    font-weight: 800;
    padding: 7px 9px;
}

.tms-finance-nav a:hover,
.meeting-tabs a:hover {
    background: var(--tms-primary-soft);
    color: var(--tms-primary-dark);
    text-decoration: none;
}

.tms-filter-bar {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tms-filter-bar > div {
    min-width: 170px;
}

.tms-filter-bar label {
    color: var(--tms-muted);
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.tms-panel tfoot th {
    background: var(--tms-surface-soft);
    border-top: 1px solid var(--tms-border);
}

.clickup-panel {
    overflow: hidden;
}

.clickup-list {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.clickup-row {
    align-items: center;
    background: var(--tms-surface);
    border: 1px solid var(--tms-border);
    border-radius: var(--tms-radius);
    color: var(--tms-text);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 14px 16px;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.clickup-row:hover {
    border-color: rgba(216, 164, 58, .55);
    box-shadow: var(--tms-shadow-md);
    color: var(--tms-text);
    text-decoration: none;
    transform: translateY(-1px);
}

.clickup-row-main {
    align-items: center;
    display: flex;
    gap: 12px;
    min-width: 0;
}

.clickup-row-main strong,
.clickup-row-main small {
    display: block;
}

.clickup-row-main strong {
    color: var(--tms-heading);
}

.clickup-row-main small,
.clickup-row-meta {
    color: var(--tms-muted);
}

.clickup-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-end;
    text-align: right;
}

.status-scheduled {
    background: var(--tms-primary-soft);
    color: var(--tms-primary-dark);
}

.status-completed {
    background: var(--tms-success-soft);
    color: var(--tms-success);
}

.status-cancelled {
    background: #eef1f6;
    color: #4d5768;
}

.meeting-notes {
    background: var(--tms-surface-soft);
    border: 1px solid var(--tms-border);
    border-radius: var(--tms-radius);
    min-height: 120px;
    padding: 14px;
    white-space: pre-wrap;
}

.participant-line {
    align-items: center;
    border-bottom: 1px solid #edf1f7;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 12px 16px;
}

.participant-line small {
    color: var(--tms-muted);
    display: block;
}

.meeting-action-form {
    display: grid;
    gap: 10px;
    grid-template-columns: 2fr 1.6fr 1.2fr 1fr .9fr;
}

.meeting-action-form textarea,
.meeting-action-form button {
    grid-column: span 5;
}

.meeting-comment {
    border-bottom: 1px solid #edf1f7;
    padding: 12px 0;
}

.meeting-comment strong,
.meeting-comment small {
    margin-left: 8px;
}

.meeting-comment p {
    margin: 8px 0 0;
}

.whiteboard-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

#meetingWhiteboard {
    background: #ffffff;
    border: 1px solid var(--tms-border);
    border-radius: var(--tms-radius);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7);
    max-width: 100%;
}

.meeting-calendar {
    background: var(--tms-surface);
    border: 1px solid var(--tms-border);
    border-radius: var(--tms-radius);
    display: grid;
    grid-template-columns: repeat(7, minmax(120px, 1fr));
    overflow: hidden;
}

.calendar-head {
    background: var(--tms-surface-soft);
    border-bottom: 1px solid var(--tms-border);
    color: var(--tms-muted);
    font-size: 12px;
    font-weight: 800;
    padding: 10px;
    text-transform: uppercase;
}

.calendar-cell {
    border-bottom: 1px solid #edf1f7;
    border-right: 1px solid #edf1f7;
    min-height: 130px;
    padding: 8px;
}

.calendar-cell.muted {
    background: #fafbfe;
    color: #a0a8b8;
}

.calendar-date {
    font-weight: 800;
    margin-bottom: 6px;
}

.calendar-event {
    border-radius: 7px;
    color: var(--tms-heading);
    display: block;
    font-size: 12px;
    margin-bottom: 5px;
    padding: 6px;
}

.calendar-event:hover {
    color: var(--tms-heading);
    text-decoration: none;
}

.calendar-event span {
    display: block;
    font-weight: 800;
}

.folder-card {
    background: var(--tms-surface);
    border: 1px solid var(--tms-border);
    border-radius: var(--tms-radius);
    color: var(--tms-text);
    display: block;
    margin-bottom: 16px;
    padding: 18px;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.folder-card:hover {
    border-color: rgba(216, 164, 58, .55);
    box-shadow: var(--tms-shadow-md);
    color: var(--tms-text);
    text-decoration: none;
    transform: translateY(-1px);
}

.folder-card i {
    color: #f2b84b;
    font-size: 30px;
    margin-bottom: 10px;
}

.folder-card strong,
.folder-card small {
    display: block;
}

.folder-card small {
    color: var(--tms-muted);
}

.budget-chip {
    background: var(--tms-surface-soft);
    border: 1px solid var(--tms-border);
    border-radius: var(--tms-radius);
    font-weight: 800;
    padding: 6px 8px;
    text-align: center;
    white-space: nowrap;
}

.timetable-editor {
    max-height: 70vh;
}

.timetable-cell {
    min-width: 240px;
    vertical-align: top;
}

.assignment-row {
    background: var(--tms-surface-soft);
    border: 1px solid var(--tms-border);
    border-radius: var(--tms-radius);
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px;
}

.assignment-fields {
    display: grid;
    flex: 1;
    gap: 6px;
    grid-template-columns: minmax(120px, 1fr) minmax(110px, 1fr);
}

.auth-modern-shell {
    background:
        radial-gradient(circle at 16% 18%, rgba(184, 23, 34, .14), transparent 32%),
        radial-gradient(circle at 82% 8%, rgba(216, 164, 58, .18), transparent 30%),
        #f6f7fb;
    color: var(--tms-text);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 100vh;
}

.auth-modern-shell .navbar {
    background: rgba(255, 255, 255, .9) !important;
    border-bottom: 1px solid var(--tms-border);
    box-shadow: none !important;
}

.auth-modern-shell .navbar-brand {
    color: var(--tms-heading);
    font-weight: 850;
}

.tms-auth-wrap {
    align-items: center;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) 420px;
    margin: 0 auto;
    max-width: 1120px;
    min-height: calc(100vh - 86px);
    padding: 42px 22px;
}

.tms-auth-hero {
    color: var(--tms-heading);
}

.tms-auth-hero img {
    background: #ffffff;
    border: 1px solid var(--tms-border);
    border-radius: 22px;
    height: min(34vw, 340px);
    margin-bottom: 24px;
    object-fit: contain;
    padding: 6px;
    width: min(34vw, 340px);
}

.tms-auth-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 850;
    line-height: 1;
    margin-bottom: 16px;
}

.tms-auth-hero p {
    color: var(--tms-muted);
    font-size: 17px;
    line-height: 1.65;
    max-width: 580px;
}

.tms-auth-card {
    background: rgba(255, 255, 255, .94);
    border: 1px solid var(--tms-border);
    border-radius: 12px;
    box-shadow: var(--tms-shadow-md);
    padding: 28px;
}

.tms-auth-card .card,
.auth-modern-shell .card {
    background: transparent;
    border: 0;
    box-shadow: none;
    margin: 0;
}

.tms-auth-card .card-header {
    background: transparent;
    border: 0;
    color: var(--tms-heading);
    font-size: 22px;
    font-weight: 850;
    padding: 0 0 18px;
}

.tms-auth-card .card-body {
    padding: 0;
}

.auth-modern-shell .form-control {
    border: 1px solid var(--tms-border-strong);
    border-radius: var(--tms-radius);
    min-height: 44px;
}

.auth-modern-shell .form-control:focus {
    border-color: var(--tms-primary);
    box-shadow: 0 0 0 4px rgba(216, 164, 58, .18);
}

.auth-modern-shell .btn-primary {
    background: linear-gradient(135deg, var(--orbit-red), var(--orbit-navy));
    border-color: var(--orbit-red);
    border-radius: var(--tms-radius);
    font-weight: 850;
    min-height: 42px;
    padding: 9px 16px;
}

.auth-modern-shell .btn-block {
    display: block;
    width: 100%;
}

@media (max-width: 991.98px) {
    :root {
        --tms-sidebar-width: 250px;
    }

    .tms-global-search {
        flex-basis: 260px;
    }

    .tms-auth-wrap {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .tms-pro-shell .main-header.tms-topbar {
        gap: 8px;
        padding: 8px 12px;
    }

    .tms-topbar-left {
        gap: 8px;
    }

    .tms-global-search {
        max-width: none;
        min-width: 0;
    }

    .tms-global-search input::placeholder {
        color: transparent;
    }

    .tms-pro-shell .content-wrapper,
    .tms-pro-shell .main-footer {
        margin-left: 0 !important;
    }

    .tms-pro-shell .content-header,
    .tms-pro-shell .content,
    .tms-pro-shell .container-fluid {
        padding-left: 14px;
        padding-right: 14px;
    }

    .tms-pro-shell .content-header .d-flex {
        align-items: flex-start !important;
        gap: 12px;
    }

    .tms-kpi-card {
        min-height: 84px;
    }

    .tms-kpi-card strong {
        font-size: 22px;
    }

    .tms-filter-bar > div {
        width: 100%;
    }

    .clickup-row,
    .clickup-row-main,
    .clickup-row-meta {
        align-items: flex-start;
        flex-direction: column;
        text-align: left;
    }

    .meeting-action-form {
        grid-template-columns: 1fr;
    }

    .meeting-action-form textarea,
    .meeting-action-form button {
        grid-column: auto;
    }

    .meeting-calendar {
        grid-template-columns: 1fr;
    }

    .tms-approval-steps {
        grid-template-columns: 1fr;
    }

    .calendar-head {
        display: none;
    }

    .tms-auth-wrap {
        min-height: auto;
        padding: 26px 14px;
    }

    .tms-auth-hero {
        display: none;
    }

    .tms-auth-card {
        padding: 22px;
    }

    .dashboard-heading { align-items: flex-start; flex-direction: column; }.dashboard-role { max-width: none; width: 100%; }.chart-frame-wide { height: 320px; }.dashboard-list-row { padding-left: 14px; padding-right: 14px; }.dashboard-list-row time { font-size: 10px; }
}

/* Compact operational screens */
.tms-pro-shell {
    font-size: 12px;
}

.tms-pro-shell .content,
.tms-pro-shell .container-fluid {
    padding-left: 20px;
    padding-right: 20px;
}

.tms-pro-shell .content-header {
    padding: 16px 20px 8px;
}

.tms-pro-shell .content-header h1 {
    font-size: 18px;
    line-height: 1.15;
}

.tms-pro-shell .content-header small,
.tms-pro-shell .card-header small,
.tms-pro-shell .text-muted {
    font-size: 11px;
}

.tms-pro-shell .card-title {
    font-size: 13px;
}

.tms-pro-shell .card-header,
.tms-panel .card-header {
    min-height: 42px;
    padding: 9px 12px;
}

.tms-pro-shell .card-body,
.tms-panel .card-body {
    padding: 12px;
}

.tms-pro-shell .table thead th,
.tms-table thead th {
    font-size: 9px;
    letter-spacing: 0;
    padding: 7px 8px;
}

.tms-pro-shell .table td,
.tms-table td {
    font-size: 11px;
    line-height: 1.3;
    padding: 7px 8px;
}

.tms-pro-shell label {
    font-size: 10px;
}

.tms-pro-shell .form-control,
.tms-pro-shell .custom-select,
.tms-pro-shell select,
.tms-pro-shell textarea,
.tms-pro-shell input[type="text"],
.tms-pro-shell input[type="email"],
.tms-pro-shell input[type="password"],
.tms-pro-shell input[type="number"],
.tms-pro-shell input[type="date"],
.tms-pro-shell input[type="time"],
.tms-pro-shell input[type="file"] {
    font-size: 11px;
    min-height: 32px;
}

/* Orbit shared UI standard — dashboard UI consistency */
.tms-pro-shell .orbit-page-heading,
.tms-pro-shell .card-header > div:first-child,
.tms-pro-shell .tms-section-heading {
    min-width: 0;
}

.tms-pro-shell .card-header > div:first-child > .card-title,
.tms-pro-shell .card-header > div:first-child > h1,
.tms-pro-shell .card-header > div:first-child > h2,
.tms-pro-shell .card-header > div:first-child > h3,
.tms-pro-shell .tms-section-heading > :is(h1, h2, h3, h4) {
    display: block;
    float: none;
    line-height: 1.3;
    margin: 0;
    max-width: 100%;
    white-space: normal;
}

.tms-pro-shell .card-header > div:first-child > small,
.tms-pro-shell .card-header > div:first-child > p,
.tms-pro-shell .tms-section-heading > small,
.tms-pro-shell .tms-section-heading > p {
    color: var(--orbit-muted);
    display: block;
    line-height: 1.45;
    margin: 3px 0 0;
    white-space: normal;
}

.tms-pro-shell .card-header {
    justify-content: space-between;
}

.tms-pro-shell .btn,
.tms-pro-shell button,
.tms-pro-shell .tms-action-button {
    align-items: center;
    border-radius: var(--tms-radius);
    display: inline-flex;
    gap: 6px;
    justify-content: center;
}

.tms-pro-shell .btn-primary {
    background: var(--orbit-indigo) !important;
    border-color: var(--orbit-indigo) !important;
    color: #fff !important;
}

.tms-pro-shell .btn-primary:hover,
.tms-pro-shell .btn-primary:focus {
    background: var(--orbit-indigo-dark) !important;
    border-color: var(--orbit-indigo-dark) !important;
}

.tms-pro-shell .btn-outline-primary {
    background: #fff;
    border-color: var(--orbit-indigo);
    color: var(--orbit-indigo);
}

.tms-pro-shell .btn-warning {
    background: var(--orbit-gold) !important;
    border-color: var(--orbit-gold) !important;
    color: var(--orbit-indigo-dark) !important;
}

.tms-pro-shell .btn-danger {
    background: var(--orbit-red) !important;
    border-color: var(--orbit-red) !important;
    color: #fff !important;
}

.tms-pro-shell :is(.btn, button, a):focus-visible {
    box-shadow: 0 0 0 3px rgba(216, 164, 58, .32) !important;
    outline: 2px solid transparent;
}

.tms-pro-shell :is(.btn, button):disabled {
    cursor: not-allowed;
    opacity: .58;
}

.orbit-quick-create-menu {
    border: 1px solid var(--orbit-border);
    border-radius: 10px;
    box-shadow: var(--tms-shadow-md);
    min-width: 230px;
    padding: 7px;
}

.orbit-quick-create-menu .dropdown-header {
    color: var(--orbit-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase;
}

.orbit-quick-create-menu .dropdown-item {
    align-items: center;
    border-radius: 7px;
    color: var(--orbit-text);
    display: flex;
    font-size: 12px;
    font-weight: 700;
    gap: 10px;
    padding: 9px 10px;
}

.orbit-quick-create-menu .dropdown-item i {
    color: var(--orbit-indigo);
    text-align: center;
    width: 18px;
}

.orbit-module-launcher {
    border: 1px solid var(--orbit-border);
    border-radius: 14px;
    box-shadow: 0 20px 48px rgba(7, 20, 55, .18);
    max-height: min(620px, calc(100vh - 84px));
    min-width: min(620px, calc(100vw - 24px));
    overflow: auto;
    padding: 14px;
    width: min(620px, calc(100vw - 24px));
}

.orbit-launcher-heading {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 11px;
}

.orbit-launcher-heading strong,
.orbit-launcher-heading small {
    display: block;
}

.orbit-launcher-heading strong {
    color: var(--orbit-indigo);
    font-size: 15px;
}

.orbit-launcher-heading small {
    color: var(--orbit-muted);
    font-size: 10px;
    margin-top: 2px;
}

.orbit-launcher-heading > span {
    background: var(--orbit-gold-light);
    border-radius: 999px;
    color: var(--orbit-indigo);
    font-size: 9px;
    font-weight: 800;
    padding: 5px 8px;
    white-space: nowrap;
}

.orbit-launcher-search {
    align-items: center;
    background: var(--tms-surface-soft);
    border: 1px solid var(--orbit-border);
    border-radius: 9px;
    display: flex;
    gap: 8px;
    margin: 0 0 12px;
    padding: 0 11px;
}

.orbit-launcher-search i {
    color: var(--orbit-muted);
}

.orbit-launcher-search input {
    background: transparent;
    border: 0;
    color: var(--orbit-text);
    flex: 1;
    min-height: 38px !important;
    outline: 0;
}

.orbit-module-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.orbit-module-link {
    align-items: center;
    border: 1px solid var(--orbit-border);
    border-radius: 10px;
    color: var(--orbit-text) !important;
    display: grid;
    gap: 10px;
    grid-template-columns: 38px 1fr;
    min-width: 0;
    padding: 10px;
    text-decoration: none !important;
}

.orbit-module-link[hidden] {
    display: none !important;
}

.orbit-module-link:hover,
.orbit-module-link:focus {
    background: var(--orbit-gold-light);
    border-color: rgba(216, 164, 58, .55);
}

.orbit-module-link > i {
    align-items: center;
    background: var(--orbit-indigo);
    border-radius: 9px;
    color: #fff;
    display: flex;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.orbit-module-link span,
.orbit-module-link strong,
.orbit-module-link small {
    display: block;
    min-width: 0;
}

.orbit-module-link strong {
    color: var(--orbit-indigo);
    font-size: 11px;
}

.orbit-module-link small {
    color: var(--orbit-muted);
    font-size: 9px;
    line-height: 1.35;
    margin-top: 2px;
}

.orbit-module-empty {
    color: var(--orbit-muted);
    display: none;
    font-size: 11px;
    grid-column: 1 / -1;
    padding: 18px;
    text-align: center;
}

@media (max-width: 767.98px) {
    .tms-pro-shell .main-header.tms-topbar {
        flex-wrap: nowrap;
        gap: 6px;
        padding: 8px 10px;
    }

    .tms-topbar-left {
        gap: 6px;
    }

    .tms-topbar-actions {
        flex: 0 0 auto;
        flex-wrap: nowrap;
        gap: 4px;
    }

    .tms-global-search {
        flex-basis: auto;
        min-width: 0;
        padding: 0 9px;
    }

    .tms-profile-chip {
        padding-right: 3px;
    }

    .orbit-module-grid {
        grid-template-columns: 1fr;
    }
}

.tms-pro-shell .btn {
    font-size: 11px;
    min-height: 30px;
    padding: 5px 9px;
}

.tms-pro-shell .btn-xs,
.tms-pro-shell .hr-table-tools .btn,
.tms-pro-shell .table-action-btn,
.tms-pro-shell .hr-icon-action {
    align-items: center;
    border-radius: 5px;
    display: inline-flex;
    font-size: 9px;
    gap: 4px;
    justify-content: center;
    line-height: 1;
    min-height: 22px;
    padding: 3px 6px;
}

.tms-pro-shell .hr-icon-action,
.tms-pro-shell .hr-table-tools .btn {
    height: 22px;
    padding: 0;
    width: 22px;
}

.tms-pro-shell .badge,
.clickup-status {
    font-size: 8px;
    letter-spacing: 0;
    padding: 3px 6px;
}

.orbit-auto-table-tools {
    align-items: center;
    border-bottom: 1px solid #edf0f5;
    display: flex;
    justify-content: flex-end;
    min-height: 38px;
    padding-bottom: 7px !important;
    padding-top: 7px !important;
}

.tms-pro-shell .modal-title {
    font-size: 15px;
    font-weight: 800;
}

.tms-pro-shell .modal-header,
.tms-pro-shell .modal-footer {
    padding: 12px 16px;
}

.tms-pro-shell .modal-body {
    font-size: 12px;
    padding: 16px;
}
/* Canonical academic-session context: compact, readable and sidebar-safe. */
.orbit-sidebar-session{display:block;margin:0 8px 12px;padding:10px 11px;border:1px solid rgba(255,255,255,.14);border-radius:10px;background:rgba(255,255,255,.06);color:#fff;overflow:hidden}.orbit-sidebar-session label{display:block;margin:0 0 6px;color:#aebbd0;font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.orbit-sidebar-session select{display:block;width:100%;max-width:100%;height:32px;padding:4px 25px 4px 7px;border:1px solid rgba(255,255,255,.18);border-radius:7px;background:#202635;color:#fff;font-size:12px;text-overflow:ellipsis}.orbit-sidebar-session small{display:block;margin-top:5px;color:#9ca8bb;font-size:10px;white-space:normal}.orbit-sidebar-session-empty:hover{color:#fff;text-decoration:none}.orbit-top-session{align-items:center;gap:6px;min-width:0;margin-left:10px;padding:7px 10px;border:1px solid #d9e1ef;border-radius:9px;background:#fff;color:#243b7a;font-size:12px;font-weight:700}.orbit-top-session:hover{color:#172a63;text-decoration:none}.orbit-top-session span{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.orbit-top-session small{padding:2px 5px;border-radius:10px;background:#eaf1ff;font-size:9px;text-transform:uppercase}
