/* =====================================================
   Luminos — Custom Theme  |  Primary: #FF6600
   ===================================================== */

[v-cloak] { display: none; }

/* ── Design Tokens ── */
:root {
    --lm-orange:        #FF6600;
    --lm-orange-dark:   #E55000;
    --lm-orange-darker: #BF4300;
    --lm-orange-light:  #FFF0E6;
    --lm-orange-alpha:  rgba(255,102,0,0.12);

    --lm-nav-bg:        #1C1C1E;
    --lm-nav-border:    rgba(255,255,255,0.08);
    --lm-nav-text:      rgba(255,255,255,0.68);
    --lm-nav-text-h:    #ffffff;

    --lm-page-bg:       #F5F6FA;
    --lm-card-bg:       #ffffff;
    --lm-card-shadow:   0 2px 16px rgba(0,0,0,0.07);
    --lm-card-hover:    0 6px 28px rgba(0,0,0,0.11);
    --lm-radius:        12px;
    --lm-radius-sm:     8px;
    --lm-ease:          all 0.2s ease;
}

/* ── Global ── */
body {
    font-family: 'Inter', sans-serif !important;
    background: var(--lm-page-bg) !important;
}

/* =====================================================
   TOP NAVIGATION
   ===================================================== */

/* Outer header element */
#page-header {
    background: var(--lm-nav-bg) !important;
    border-bottom: none !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.25) !important;
    padding: 0 !important;
    height: auto !important;
}

/* Navbar wrapper */
.lm-navbar {
    background: var(--lm-nav-bg) !important;
    min-height: 62px !important;
    padding: 0 !important;
}

/* Brand */
.lm-brand {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    flex-shrink: 0;
    margin-right: 1.5rem;
}

.lm-brand-img {
    max-height: 30px;
    max-width: 130px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: opacity 0.15s ease;
}

.lm-brand:hover .lm-brand-img { opacity: 0.85; }

.lm-brand-text {
    color: #fff;
    font-weight: 800;
    font-size: 1.125rem;
    letter-spacing: -0.3px;
}

.lm-brand-text span { color: var(--lm-orange); }

/* Nav list */
.lm-nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lm-nav-item { position: relative; }

/* Nav links */
.lm-nav-link {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--lm-nav-text) !important;
    font-size: 0.845rem;
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    border-radius: var(--lm-radius-sm);
    text-decoration: none !important;
    transition: var(--lm-ease);
    white-space: nowrap;
    position: relative;
    border-bottom: 2px solid transparent;
}

.lm-nav-link i { font-size: 0.8rem; opacity: 0.75; transition: var(--lm-ease); }

.lm-nav-link:hover {
    color: var(--lm-nav-text-h) !important;
    background: rgba(255,255,255,0.06);
}

.lm-nav-link:hover i { opacity: 1; }

.lm-nav-link.lm-nav-active {
    color: var(--lm-orange) !important;
    border-bottom-color: var(--lm-orange);
}

.lm-nav-link.lm-nav-active i { opacity: 1; color: var(--lm-orange); }

/* Dropdown trigger caret */
.lm-dd-caret {
    font-size: 0.65rem !important;
    opacity: 0.5 !important;
    margin-left: 2px !important;
    transition: transform 0.2s ease !important;
}

.lm-nav-dd[aria-expanded="true"] .lm-dd-caret {
    transform: rotate(180deg);
    opacity: 0.8 !important;
}

/* Nav dropdowns */
.lm-dropdown-nav {
    background: #fff !important;
    border: none !important;
    border-radius: var(--lm-radius) !important;
    box-shadow: 0 10px 36px rgba(0,0,0,0.15) !important;
    padding: 6px !important;
    min-width: 200px !important;
    margin-top: 6px !important;
}

/* ── Hamburger ── */
.lm-hamburger {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: rgba(255,255,255,0.8);
    padding: 0.4rem 0.65rem;
    font-size: 0.95rem;
    line-height: 1;
    transition: var(--lm-ease);
}
.lm-hamburger:hover { background: rgba(255,255,255,0.14); color: #fff; }

/* Mobile collapse styling */
@media (max-width: 991.98px) {
    #lm-nav-links {
        padding: 0.75rem 0 1rem;
        border-top: 1px solid rgba(255,255,255,0.08);
        margin-top: 0.5rem;
    }

    .lm-nav-list { flex-direction: column; align-items: flex-start; gap: 2px; }
    .lm-nav-link { width: 100%; border-bottom: none !important; border-radius: 8px; }
    .lm-nav-link.lm-nav-active { background: var(--lm-orange-alpha); }
    .lm-dropdown-nav { box-shadow: none !important; background: rgba(255,255,255,0.06) !important; }
    .lm-dropdown-nav .lm-menu-item { color: var(--lm-nav-text) !important; }
    .lm-dropdown-nav .lm-menu-item:hover { color: #fff !important; background: rgba(255,255,255,0.08) !important; }
    .lm-dropdown-nav .lm-menu-item.lm-menu-active { color: var(--lm-orange) !important; }
}

/* ── Icon Button (Notification Bell) ── */
.lm-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--lm-ease);
    outline: none;
}
.lm-icon-btn:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* Unread dot */
.lm-notif-dot {
    top: 6px !important;
    right: 6px !important;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lm-orange);
    border: 2px solid var(--lm-nav-bg);
    display: block;
}

/* ── Notification Dropdown ── */
.lm-dropdown-notif {
    width: 330px !important;
    border-radius: var(--lm-radius) !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18) !important;
    overflow: hidden !important;
    margin-top: 8px !important;
}

.lm-dropdown-header {
    background: linear-gradient(135deg, var(--lm-orange), var(--lm-orange-dark));
    color: #fff;
    padding: 0.875rem 1.125rem;
    font-weight: 600;
    font-size: 0.8125rem;
}

.lm-notif-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 340px;
    overflow-y: auto;
}

.lm-notif-list li { border-bottom: 1px solid rgba(0,0,0,0.05); }

.lm-notif-unread { background: var(--lm-orange-light); }

.lm-notif-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none !important;
    color: #1c1c1e !important;
    transition: background 0.15s ease;
}
.lm-notif-item:hover { background: #fafafa; }

.lm-notif-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lm-orange), var(--lm-orange-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.lm-notif-body { flex: 1; min-width: 0; }
.lm-notif-name  { font-weight: 600; font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-notif-msg   { font-size: 0.73rem; color: #6b7280; margin: 0; }
.lm-notif-time  { font-size: 0.68rem; color: #9ca3af; margin-top: 2px; }

.lm-notif-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #9ca3af;
    font-size: 0.78rem;
}

.lm-dropdown-footer {
    background: #f9fafb;
    border-top: 1px solid rgba(0,0,0,0.06);
    padding: 0.625rem 1rem;
    text-align: center;
}
.lm-dropdown-footer a {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--lm-orange) !important;
    text-decoration: none;
}
.lm-dropdown-footer a:hover { color: var(--lm-orange-dark) !important; }

/* ── User Button ── */
.lm-user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: rgba(255,255,255,0.8);
    padding: 0.35rem 0.65rem 0.35rem 0.35rem;
    cursor: pointer;
    transition: var(--lm-ease);
    outline: none;
    min-height: 38px;
}
.lm-user-btn:hover { background: rgba(255,255,255,0.14); color: #fff; }

.lm-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lm-orange), var(--lm-orange-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: 0;
}

.lm-user-avatar-lg {
    width: 52px;
    height: 52px;
    font-size: 1rem;
    font-weight: 800;
}

.lm-user-name  { font-size: 0.8rem; font-weight: 600; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm-user-caret { font-size: 0.65rem; opacity: 0.5; }

/* ── User Dropdown ── */
.lm-dropdown-user {
    width: 230px !important;
    border-radius: var(--lm-radius) !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.16) !important;
    overflow: hidden !important;
    margin-top: 8px !important;
}

.lm-user-panel {
    background: linear-gradient(135deg, #f9fafb, #f0f0ff);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 1.25rem 1rem 1rem;
    text-align: center;
}

.lm-user-panel-name  { font-size: 0.875rem; color: #111827; }
.lm-user-panel-email { font-size: 0.73rem; color: #6b7280; margin-top: 2px; }

/* ── Dropdown Menu Items ── */
.lm-menu-item {
    display: flex !important;
    align-items: center !important;
    font-size: 0.8125rem !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 7px !important;
    color: #374151 !important;
    transition: var(--lm-ease) !important;
}
.lm-menu-item:hover {
    background: var(--lm-orange-light) !important;
    color: var(--lm-orange-dark) !important;
}
.lm-menu-item.lm-menu-active {
    background: var(--lm-orange-light) !important;
    color: var(--lm-orange) !important;
    font-weight: 600 !important;
}
.lm-menu-item.lm-menu-item-danger { color: #dc2626 !important; }
.lm-menu-item.lm-menu-item-danger:hover {
    background: #fef2f2 !important;
    color: #b91c1c !important;
}

/* =====================================================
   PAGE HERO / TITLE
   ===================================================== */
.bg-body-light {
    background: linear-gradient(135deg, #fff 0%, #fff7f0 100%) !important;
    border-bottom: 3px solid var(--lm-orange) !important;
}

.bg-body-light .h3,
.bg-body-light h1 { color: #111827 !important; }

/* =====================================================
   CARDS / BLOCKS
   ===================================================== */
.block {
    border-radius: var(--lm-radius) !important;
    box-shadow: var(--lm-card-shadow) !important;
    border: none !important;
    background: var(--lm-card-bg) !important;
    transition: box-shadow 0.2s ease !important;
}
.block:hover { box-shadow: var(--lm-card-hover) !important; }

.block-header {
    border-radius: var(--lm-radius) var(--lm-radius) 0 0 !important;
    padding: 1rem 1.5rem !important;
    background: #fff !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
}

.block-header-default { background: #fff !important; }

.block-content {
    border-radius: 0 0 var(--lm-radius) var(--lm-radius) !important;
}

/* =====================================================
   STAT CARDS (Dashboard)
   ===================================================== */
.stat-card {
    border-radius: var(--lm-radius) !important;
    padding: 1.5rem !important;
    color: #fff !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 8px 28px rgba(0,0,0,0.14) !important;
    border: none !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease !important;
}
.stat-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.2) !important;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 120px; height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    pointer-events: none;
}
.stat-card::after {
    content: '';
    position: absolute;
    bottom: -40px; right: 20px;
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    pointer-events: none;
}

/* Gradient variants */
.stat-card-pending  { background: linear-gradient(135deg, #FF6600, #FF8C00) !important; }
.stat-card-ongoing  { background: linear-gradient(135deg, #3B82F6, #1D4ED8) !important; }
.stat-card-finished { background: linear-gradient(135deg, #10B981, #059669) !important; }

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1.5px;
    margin-bottom: 0.375rem;
    position: relative;
    z-index: 1;
}
.stat-label {
    font-size: 0.72rem;
    opacity: 0.82;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    position: relative;
    z-index: 1;
}
.stat-icon {
    font-size: 2.75rem;
    opacity: 0.2;
    position: absolute;
    bottom: 1.25rem;
    right: 1.5rem;
    pointer-events: none;
}
.stat-footer {
    margin-top: 1rem;
    padding-top: 0.875rem;
    border-top: 1px solid rgba(255,255,255,0.22);
    font-size: 0.7rem;
    opacity: 0.78;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    border-radius: var(--lm-radius-sm) !important;
    font-weight: 500 !important;
    font-size: 0.85rem !important;
    transition: var(--lm-ease) !important;
}
.btn:active { transform: translateY(0) !important; }

.btn-primary {
    background: linear-gradient(135deg, var(--lm-orange), var(--lm-orange-dark)) !important;
    border-color: var(--lm-orange-dark) !important;
    color: #fff !important;
}
.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--lm-orange-dark), var(--lm-orange-darker)) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(255,102,0,0.4) !important;
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border-color: #059669 !important;
    color: #fff !important;
}
.btn-success:hover:not(:disabled) {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(16,185,129,0.38) !important;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    border-color: #dc2626 !important;
    color: #fff !important;
}
.btn-danger:hover:not(:disabled) {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(239,68,68,0.38) !important;
}

.btn-info {
    background: linear-gradient(135deg, #06b6d4, #0284c7) !important;
    border-color: #0284c7 !important;
    color: #fff !important;
}
.btn-info:hover:not(:disabled) {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(6,182,212,0.38) !important;
}

.btn-dark {
    background: linear-gradient(135deg, #374151, #1f2937) !important;
    border-color: #1f2937 !important;
    color: #fff !important;
}
.btn-dark:hover:not(:disabled) {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(31,41,55,0.35) !important;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    border-color: #d97706 !important;
    color: #fff !important;
}

.btn-alt-secondary {
    background: #f3f4f6 !important;
    border-color: transparent !important;
    color: #374151 !important;
}
.btn-alt-secondary:hover {
    background: #e5e7eb !important;
    color: var(--lm-orange) !important;
}

/* =====================================================
   TABLES
   ===================================================== */
.table thead th {
    background: #fef7f0 !important;
    color: #374151 !important;
    font-weight: 700 !important;
    font-size: 0.7rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.07em !important;
    border-top: none !important;
    border-bottom: 2px solid rgba(255,102,0,0.18) !important;
    padding: 0.875rem 1rem !important;
    white-space: nowrap !important;
}
.table tbody td {
    padding: 0.75rem 1rem !important;
    vertical-align: middle !important;
    font-size: 0.8375rem !important;
    border-color: rgba(0,0,0,0.05) !important;
}
.table-hover > tbody > tr:hover > * {
    background-color: rgba(255,102,0,0.04) !important;
}
.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(255,102,0,0.025) !important;
}

/* =====================================================
   FORMS
   ===================================================== */
.form-control, .form-select {
    border-radius: var(--lm-radius-sm) !important;
    border: 1.5px solid #e5e7eb !important;
    padding: 0.525rem 0.875rem !important;
    font-size: 0.8375rem !important;
    transition: var(--lm-ease) !important;
}
.form-control:focus, .form-select:focus {
    border-color: var(--lm-orange) !important;
    box-shadow: 0 0 0 3px rgba(255,102,0,0.14) !important;
    outline: none !important;
}
.form-label {
    font-weight: 600 !important;
    font-size: 0.7875rem !important;
    color: #374151 !important;
    margin-bottom: 0.375rem !important;
}
.form-check-input:checked {
    background-color: var(--lm-orange) !important;
    border-color: var(--lm-orange) !important;
}

/* =====================================================
   INPUT GROUPS
   ===================================================== */
.input-group {
    border-radius: var(--lm-radius-sm);
}

/* Text / icon addons */
.input-group-text {
    background: #f3f4f6 !important;
    border: 1.5px solid #e5e7eb !important;
    color: #6b7280 !important;
    font-size: 0.8375rem !important;
    padding: 0.525rem 0.875rem !important;
    transition: var(--lm-ease) !important;
}

/* Correct border-radius: only outer corners get rounded */
.input-group > :first-child,
.input-group > :first-child .form-control,
.input-group > :first-child .form-select,
.input-group > :first-child .input-group-text {
    border-radius: var(--lm-radius-sm) 0 0 var(--lm-radius-sm) !important;
}
.input-group > :last-child,
.input-group > :last-child .form-control,
.input-group > :last-child .form-select,
.input-group > :last-child .input-group-text {
    border-radius: 0 var(--lm-radius-sm) var(--lm-radius-sm) 0 !important;
}
.input-group > :not(:first-child):not(:last-child),
.input-group > :not(:first-child):not(:last-child) .form-control,
.input-group > :not(:first-child):not(:last-child) .form-select,
.input-group > :not(:first-child):not(:last-child) .input-group-text {
    border-radius: 0 !important;
}

/* Remove duplicate borders between adjacent elements */
.input-group > :not(:first-child) .form-control,
.input-group > :not(:first-child) .form-select,
.input-group > :not(:first-child) .input-group-text,
.input-group > :not(:first-child).form-control,
.input-group > :not(:first-child).form-select,
.input-group > :not(:first-child).input-group-text {
    margin-left: -1.5px !important;
}

/* Buttons inside input-group */
.input-group > .btn {
    border-radius: 0 !important;
    z-index: 0;
}
.input-group > :last-child.btn,
.input-group > :last-child > .btn {
    border-radius: 0 var(--lm-radius-sm) var(--lm-radius-sm) 0 !important;
}
.input-group > :first-child.btn,
.input-group > :first-child > .btn {
    border-radius: var(--lm-radius-sm) 0 0 var(--lm-radius-sm) !important;
}

/* Lift the focused control above its sibling addon so the ring shows fully */
.input-group .form-control:focus,
.input-group .form-select:focus {
    z-index: 3 !important;
    border-color: var(--lm-orange) !important;
    box-shadow: 0 0 0 3px rgba(255,102,0,0.14) !important;
}

/* Sync the adjacent addon border colour on focus */
.input-group:focus-within .input-group-text {
    border-color: var(--lm-orange) !important;
}

/* =====================================================
   MODALS
   ===================================================== */
.modal              { z-index: 1032 !important; }
.modal-backdrop     { z-index: 1030 !important; }

.modal-content {
    border-radius: 16px !important;
    border: none !important;
    box-shadow: 0 24px 64px rgba(0,0,0,0.18) !important;
    overflow: hidden !important;
}
.modal-header {
    background: linear-gradient(135deg, #fff7f0, #fff0e6) !important;
    border-bottom: 2px solid rgba(255,102,0,0.12) !important;
    padding: 1.125rem 1.5rem !important;
}
.modal-title { font-weight: 700 !important; font-size: 0.9375rem !important; color: #111827 !important; }
.modal-footer {
    border-top: 1px solid rgba(0,0,0,0.06) !important;
    padding: 1rem 1.5rem !important;
    background: #fafafa !important;
}

/* =====================================================
   MISC UTILITIES
   ===================================================== */
.ck-editor__editable_inline {
    min-height: 300px;
    max-height: 300px;
}

.light-grey { color: #b9b9b9; }

.detail-container {
    overflow-y: auto;
    height: calc(100vh - 420px);
}
.detail-container-full {
    overflow-y: auto;
    height: calc(100vh - 350px);
}
.detail-table { table-layout: fixed; }

/* =====================================================
   DATATABLE
   ===================================================== */
.dataTables_wrapper .dataTables_filter input {
    border-radius: var(--lm-radius-sm) !important;
    border: 1.5px solid #e5e7eb !important;
    padding: 0.35rem 0.75rem !important;
    font-size: 0.8125rem !important;
    margin-left: 0.5rem !important;
}
.dataTables_wrapper .dataTables_length select {
    border-radius: var(--lm-radius-sm) !important;
    border: 1.5px solid #e5e7eb !important;
    padding: 0.25rem 1.75rem 0.25rem 0.625rem !important;
    font-size: 0.8125rem !important;
}
.dataTables_paginate .paginate_button.current,
.dataTables_paginate .paginate_button.current:hover {
    background: linear-gradient(135deg, var(--lm-orange), var(--lm-orange-dark)) !important;
    border-color: var(--lm-orange-dark) !important;
    color: #fff !important;
    border-radius: 6px !important;
}

/* =====================================================
   SELECT2
   ===================================================== */
.select2-container--default .select2-selection--single {
    border-radius: var(--lm-radius-sm) !important;
    border: 1.5px solid #e5e7eb !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
}
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--lm-orange) !important;
    box-shadow: 0 0 0 3px rgba(255,102,0,0.14) !important;
    outline: none !important;
}
.select2-dropdown {
    border-radius: var(--lm-radius-sm) !important;
    border-color: #e5e7eb !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
}
.select2-results__option--highlighted {
    background: var(--lm-orange) !important;
    color: #fff !important;
}

/* =====================================================
   RIBBON
   ===================================================== */
.ribbon.ribbon-warning .ribbon-box { background: #f59e0b !important; }
.ribbon.ribbon-info    .ribbon-box { background: #06b6d4 !important; }
.ribbon.ribbon-success .ribbon-box { background: #10b981 !important; }
.ribbon.ribbon-danger  .ribbon-box { background: #ef4444 !important; }

/* =====================================================
   SCROLLBAR
   ===================================================== */
::-webkit-scrollbar             { width: 6px; height: 6px; }
::-webkit-scrollbar-track       { background: transparent; }
::-webkit-scrollbar-thumb       { background: #d1d5db; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media only screen and (max-width: 992px) {
    .modal-xl { max-width: calc(100vw - 10px) !important; }
}
@media only screen and (min-width: 992px) {
    .modal-xl { max-width: calc(100vw - 200px) !important; }
}

/* =====================================================
   PROJECT SHOW PAGE
   ===================================================== */

/* ── Routine sidebar ── */
.routine-sidebar {
    background: #1C1C1E !important;
    flex-shrink: 0;
}
.routine-sidebar h5 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
    padding: 1rem 1rem 0.5rem;
    margin: 0;
    font-weight: 700;
}
.routine-nav-item {
    padding: 0.75rem 1rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.8375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.routine-nav-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.routine-nav-item.lm-routine-active {
    background: rgba(255,102,0,0.15) !important;
    color: var(--lm-orange) !important;
    border-left-color: var(--lm-orange) !important;
}

/* ── Panel section headers ── */
.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    background: #fff;
    flex-shrink: 0;
}
.panel-title {
    font-weight: 700;
    font-size: 0.8375rem;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.panel-title::before {
    content: '';
    width: 3px;
    height: 16px;
    background: var(--lm-orange);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ── Info key-value rows ── */
.info-row {
    display: flex;
    align-items: flex-start;
    padding: 0.55rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    gap: 0.75rem;
}
.info-row:last-child { border-bottom: none; }
.info-key {
    flex-shrink: 0;
    width: 110px;
    font-size: 0.775rem;
    color: #6b7280;
    font-weight: 500;
    padding-top: 1px;
}
.info-val {
    flex: 1;
    font-size: 0.8125rem;
    color: #111827;
    font-weight: 500;
}

/* ── Level badges ── */
.level-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    flex-shrink: 0;
}
.level-junior { background: #f3f4f6; color: #374151; }
.level-senior { background: var(--lm-orange-light); color: var(--lm-orange-dark); }
.level-all    { background: #eff6ff; color: #2563eb; }

/* ── Status pills ── */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.status-pill::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
}
.status-pending  { background: #fef3c7; color: #d97706; }
.status-ongoing  { background: #dbeafe; color: #2563eb; }
.status-done     { background: #d1fae5; color: #059669; }
.status-rejected { background: #fee2e2; color: #dc2626; }
.status-closed   { background: #f3f4f6; color: #374151; }

/* ── Task cards ── */
.task-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.07);
    border-left: 4px solid #d1d5db;
    cursor: pointer;
    transition: all 0.18s ease;
    overflow: hidden;
    position: relative;
}
.task-card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.1);
    transform: translateY(-1px);
    border-color: rgba(0,0,0,0.12);
}
.task-card.task-pending  { border-left-color: #f59e0b; }
.task-card.task-ongoing  { border-left-color: #3b82f6; }
.task-card.task-done     { border-left-color: #10b981; }
.task-card.task-rejected { border-left-color: #ef4444; }
.task-body   { padding: 0.75rem 0.875rem; }
.task-footer {
    padding: 0.45rem 0.875rem;
    background: #f9fafb;
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 0.75rem;
    color: #6b7280;
}
.task-lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    z-index: 2;
}

/* ── Activity feed ── */
.activity-feed { padding: 0.625rem 0.75rem; }
.activity-item {
    position: relative;
    padding: 0.625rem 0.875rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    font-size: 0.78rem;
    border-left: 3px solid;
}
.activity-item.activity-admin {
    background: #fff7f0;
    border-left-color: var(--lm-orange);
}
.activity-item.activity-staff {
    background: #f9fafb;
    border-left-color: #d1d5db;
}
.activity-user { font-weight: 700; font-size: 0.75rem; color: #111827; }
.activity-date { font-size: 0.68rem; color: #9ca3af; }
.activity-desc { margin: 2px 0 0; color: #374151; }

/* ── Comment bubbles ── */
.comment-list { padding: 0.5rem 0.75rem; }
.comment-bubble {
    background: #f3f4f6;
    border-radius: 12px 12px 12px 2px;
    padding: 0.625rem 0.875rem;
    margin-bottom: 0.625rem;
}
.comment-msg  { font-size: 0.8125rem; color: #111827; margin-bottom: 0.375rem; }
.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(0,0,0,0.07);
    font-size: 0.7rem;
}
.comment-author {
    font-weight: 700;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 4px;
}
.comment-author.is-admin {
    background: #d1fae5;
    color: #059669;
    padding: 1px 8px;
    border-radius: 10px;
}
.comment-time { color: #9ca3af; }

/* ── Attachment items ── */
.attach-list { padding: 0.5rem 0.75rem; }
.attach-item {
    background: #f9fafb;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 10px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}
.attach-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.75rem;
    text-decoration: none !important;
    transition: background 0.15s;
}
.attach-link:hover { background: rgba(255,102,0,0.04); }
.attach-link-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #111827 !important;
    font-weight: 500;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.attach-link-name i { color: var(--lm-orange); flex-shrink: 0; }
.attach-meta {
    padding: 0.35rem 0.75rem;
    background: rgba(0,0,0,0.02);
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 0.7rem;
    color: #6b7280;
    display: flex;
    justify-content: space-between;
}

/* ── Mobile tabs ── */
.show-tabs {
    display: flex;
    background: #fff;
    border-bottom: 2px solid rgba(0,0,0,0.06);
}
.show-tab-btn {
    flex: 1;
    padding: 0.75rem 0.5rem;
    font-size: 0.775rem;
    font-weight: 600;
    color: #6b7280;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.15s ease;
    cursor: pointer;
    white-space: nowrap;
}
.show-tab-btn:hover { color: var(--lm-orange); }
.show-tab-btn.active {
    color: var(--lm-orange);
    border-bottom-color: var(--lm-orange);
}

/* ── Empty state ── */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    color: #9ca3af;
}
.empty-state i { font-size: 1.875rem; margin-bottom: 0.625rem; opacity: 0.4; display: block; }
.empty-state p { margin: 0; font-size: 0.8rem; }
