: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;
    --tms-primary: #6554ff;
    --tms-primary-dark: #4437d6;
    --tms-primary-soft: #f0efff;
    --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: 272px;
    --tms-header-height: 64px;
}

html {
    scroll-behavior: smooth;
}

body.tms-pro-shell,
.tms-pro-shell {
    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;
}

.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);
}

.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-header,
.tms-pro-shell .main-footer {
    margin-left: var(--tms-sidebar-width);
}

.tms-pro-shell.sidebar-collapse .main-sidebar,
.tms-pro-shell.sidebar-collapse .main-sidebar::before {
    width: 4.6rem;
}

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

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

.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: 15px;
    font-weight: 800;
}

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

.tms-pro-shell .sidebar {
    padding: 12px 12px 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: 10px;
    margin: 0 0 14px;
    padding: 12px;
}

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

.tms-workspace-card small {
    color: rgba(255, 255, 255, .48);
    display: block;
    font-size: 11px;
    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, #6554ff 0%, #15b8a6 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: 10px;
    min-height: 40px;
    padding: 10px 12px;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.tms-pro-shell .nav-sidebar .nav-link p {
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0;
}

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

.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(101, 84, 255, .18);
    color: #ffffff;
}

.tms-pro-shell .sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active {
    box-shadow: inset 3px 0 0 #8df0dd;
}

.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: 5px;
}

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

.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;
}

.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: #cbc7ff;
    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: 360px;
    overflow-y: auto;
    white-space: normal;
    width: min(410px, calc(100vw - 24px)) !important;
}

.tms-notification-menu .dropdown-item {
    line-height: 1.45;
    padding: 12px 16px;
    white-space: normal;
}

.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 .content-wrapper {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .88) 0, rgba(246, 247, 251, 0) 180px),
        var(--tms-bg);
    margin-left: var(--tms-sidebar-width);
    min-height: calc(100vh - var(--tms-header-height));
    padding-bottom: 28px;
}

.tms-pro-shell.sidebar-collapse .content-wrapper,
.tms-pro-shell.sidebar-collapse .main-header,
.tms-pro-shell.sidebar-collapse .main-footer {
    margin-left: 4.6rem !important;
}

.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 {
    padding-left: 28px;
    padding-right: 28px;
}

.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-sidebar-width);
    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: var(--tms-primary);
    border-color: var(--tms-primary);
    box-shadow: 0 8px 20px rgba(101, 84, 255, .22);
}

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

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

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

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

.tms-pro-shell .btn-outline-primary {
    border-color: #cbc7ff;
    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-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 {
    gap: 5px;
}

.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(--tms-primary);
    border-color: var(--tms-primary);
}

.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: #cbc7ff;
}

.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;
}

.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: 8px;
    margin-bottom: 16px;
    padding: 8px;
    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: 13px;
    font-weight: 800;
    padding: 8px 11px;
}

.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: #cbc7ff;
    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: #cbc7ff;
    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(101, 84, 255, .18), transparent 32%),
        radial-gradient(circle at 82% 8%, rgba(21, 184, 166, .16), 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: 12px;
    height: 68px;
    margin-bottom: 24px;
    object-fit: contain;
    padding: 8px;
    width: 68px;
}

.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(101, 84, 255, .12);
}

.auth-modern-shell .btn-primary {
    background: var(--tms-primary);
    border-color: var(--tms-primary);
    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;
    }
}
