body {
    background: #f4f7fb;
    font-family: "Segoe UI", sans-serif;
    color: #111827;
}

/* Auth pages */

.auth-container {
    min-height: 100vh;
    display: flex;
}

.auth-left {
    width: 40%;
    background: linear-gradient(135deg, #081c5a, #0d47a1);
    color: white;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-right {
    width: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-card {
    width: 450px;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.auth-card h2 {
    margin-bottom: 10px;
    font-weight: 700;
}

/* Bootstrap tweaks */

.btn {
    border-radius: 10px;
    padding: 10px 16px;
}

.btn-primary {
    background: #2563eb;
    border: none;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.form-control {
    border-radius: 10px;
    padding: 12px;
}

/* Sidebar */

.sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: #0f172a;
    padding: 24px;
    color: white;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.28);
}

.logo-section {
    flex-shrink: 0;
}

.logo-section h2 {
    font-weight: 800;
    margin-bottom: 4px;
}

.logo-section p,
.sidebar-footer p {
    color: #94a3b8;
    margin-bottom: 12px;
}

.sidebar a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.sidebar a:hover {
    background: #1e293b;
    transform: translateX(5px);
}

.sidebar-footer {
    position: static;
    width: 100%;
    margin-top: auto;
    padding-top: 16px;
    flex-shrink: 0;
}

/* App layout */

.content-wrapper {
    margin-left: 260px;
    padding: 30px;
    min-height: 100vh;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.page-header h1 {
    margin: 0;
    font-weight: 800;
    color: #0f172a !important;
}

/* Dashboard */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.dashboard-card {
    color: white;
    border-radius: 20px;
    padding: 25px;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: 0.3s;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.dashboard-card h1 {
    font-size: 55px;
    font-weight: 800;
    margin: 0;
}

.dashboard-card h5 {
    font-size: 18px;
    opacity: 0.9;
}

.blue-card {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.red-card {
    background: linear-gradient(135deg, #dc2626, #991b1b);
}

.green-card {
    background: linear-gradient(135deg, #16a34a, #15803d);
}

.purple-card {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

/* Cards and tables */

.table-card,
.form-card,
.info-card,
.checklist-card {
    background: white;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
}

.table-card a {
    font-weight: 600;
    text-decoration: none;
}

.table-card a:hover {
    text-decoration: underline;
}

/* Record detail pages */

.record-header {
    color: white;
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.record-header h1 {
    margin: 0;
    font-weight: 800;
}

.record-header p {
    margin: 4px 0 0;
    opacity: 0.9;
}

.starter-header {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.leaver-header {
    background: linear-gradient(135deg, #dc2626, #991b1b);
}

.status-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    white-space: nowrap;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.status-open {
    background: #fef3c7;
    color: #92400e;
}

.status-closed {
    background: #dcfce7;
    color: #166534;
}

/* Checklist */

.checklist-card h3 {
    font-weight: 800;
    margin-bottom: 16px;
}

.form-check {
    padding: 12px 12px 12px 36px;
    border-bottom: 1px solid #f0f0f0;
}

.form-check:last-child {
    border-bottom: none;
}

.final-check {
    background: #f8fafc;
    border-radius: 12px;
    margin-top: 10px;
}

/* Responsive */

@media (max-width: 1000px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .auth-left {
        display: none;
    }

    .auth-right {
        width: 100%;
    }
}

@media (max-width: 760px) {
    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .sidebar-footer {
        width: 100%;
        margin-top: 16px;
    }

    .content-wrapper {
        margin-left: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .page-header,
    .record-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }
}
.dashboard-link {
    text-decoration: none;
}
.filter-card {
    background: white;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
}
.filter-check {
    border-bottom: none;
    padding: 0;
}
.status-missing {
    background: #fee2e2;
    color: #991b1b;
}
/* Dashboard glow-up */

.dashboard-hero {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    border-radius: 28px;
    padding: 34px;
    margin-bottom: 28px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.45), transparent 32%),
        radial-gradient(circle at bottom left, rgba(124, 58, 237, 0.35), transparent 30%),
        linear-gradient(135deg, #0f172a, #111827);
    color: white;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.dashboard-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent);
    pointer-events: none;
}

.dashboard-hero h1 {
    position: relative;
    font-size: 46px;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.dashboard-hero p {
    position: relative;
    font-size: 17px;
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #93c5fd;
    font-weight: 800;
    font-size: 12px !important;
    margin-bottom: 10px;
}

.hero-orb {
    position: absolute;
    right: 38px;
    top: 35px;
    width: 118px;
    height: 118px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 58px;
    background: rgba(255, 255, 255, 0.10);
    box-shadow:
        inset 0 0 35px rgba(255, 255, 255, 0.14),
        0 0 80px rgba(59, 130, 246, 0.35);
    animation: orbFloat 5s ease-in-out infinite;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(10px) rotate(10deg);
    }
}


.dashboard-stats {
    animation: fadeUp 0.5s ease both;
}

.shine-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.shine-card::after {
    content: "";
    position: absolute;
    top: -80%;
    left: -60%;
    width: 50%;
    height: 240%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.24),
        transparent
    );
    transform: rotate(25deg);
    transition: 0.7s;
    z-index: -1;
}

.shine-card:hover::after {
    left: 120%;
}

.dashboard-card p {
    margin: 6px 0 0;
    opacity: 0.85;
    font-size: 14px;
}

.ops-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.ops-panel {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
    backdrop-filter: blur(14px);
    animation: fadeUp 0.65s ease both;
}

.ops-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.65;
}

.starter-panel::before {
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.16), transparent 34%);
}

.leaver-panel::before {
    background: radial-gradient(circle at top right, rgba(220, 38, 38, 0.14), transparent 34%);
}

.panel-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.panel-header h3 {
    font-weight: 900;
    margin: 0;
    letter-spacing: -0.4px;
}

.panel-header p {
    margin: 6px 0 0;
    color: #64748b;
}

.panel-link {
    text-decoration: none;
    font-weight: 800;
    color: #2563eb;
    background: #eff6ff;
    border-radius: 999px;
    padding: 8px 13px;
    white-space: nowrap;
}

.panel-link:hover {
    background: #dbeafe;
}

.danger-link {
    color: #dc2626;
    background: #fef2f2;
}

.danger-link:hover {
    background: #fee2e2;
}

.timeline-list {
    position: relative;
    display: grid;
    gap: 12px;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 18px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 16px;
    text-decoration: none;
    background: rgba(248, 250, 252, 0.88);
    border: 1px solid #e2e8f0;
    transition: 0.2s ease;
}

.timeline-item:hover {
    transform: translateX(6px);
    background: white;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    box-shadow: 0 0 0 6px rgba(148, 163, 184, 0.14);
}

.starter-dot {
    background: #2563eb;
}

.leaver-dot {
    background: #dc2626;
}

.timeline-content strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
}

.timeline-content span {
    display: block;
    color: #64748b;
    font-size: 13px;
    margin-top: 2px;
}

.timeline-date {
    color: #0f172a;
    font-weight: 800;
    background: white;
    border-radius: 999px;
    padding: 7px 11px;
    border: 1px solid #e2e8f0;
    font-size: 13px;
}

.empty-state {
    position: relative;
    min-height: 230px;
    display: grid;
    place-items: center;
    text-align: center;
    color: #64748b;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    padding: 18px;
}

.empty-state h4 {
    color: #0f172a;
    font-weight: 900;
    margin: 8px 0 4px;
}

.empty-state p {
    margin: 0;
}

.empty-icon {
    font-size: 46px;
    animation: emptyBob 4s ease-in-out infinite;
}

@keyframes emptyBob {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.command-strip {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    background: #0f172a;
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.quick-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-weight: 800;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(37, 99, 235, 0.85);
    transition: 0.2s ease;
}

.quick-action span {
    font-size: 20px;
}

.quick-action:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.32);
}

.danger-action {
    background: rgba(220, 38, 38, 0.9);
}

.neutral-action {
    background: rgba(124, 58, 237, 0.9);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dashboard responsive tweaks */

@media (max-width: 1150px) {
    .ops-grid {
        grid-template-columns: 1fr;
    }

    .hero-orb {
        opacity: 0.35;
    }
}

@media (max-width: 760px) {
    .dashboard-hero h1 {
        font-size: 34px;
    }

    .hero-orb {
        display: none;
    }

    .timeline-item {
        grid-template-columns: 18px 1fr;
    }

    .timeline-date {
        grid-column: 2;
        width: fit-content;
    }
}
.report-summary {
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.report-summary strong {
    font-size: 42px;
    font-weight: 900;
    color: #0f172a;
}

.report-summary span {
    color: #64748b;
}

/* OPSHUB LICENCE MANAGEMENT STYLES */

.licence-group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.licence-group-card {
    display: block;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 22px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.licence-group-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.12);
    color: inherit;
}

.licence-group-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.licence-group-card-top h3 {
    margin: 0;
    font-weight: 900;
    color: #0f172a;
}

.licence-group-card-top p {
    margin: 4px 0 0;
    color: #64748b;
}

.licence-section-icon {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background: #eff6ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.licence-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.licence-card-stats div {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px;
}

.licence-card-stats strong {
    display: block;
    font-size: 26px;
    line-height: 1;
    font-weight: 900;
    color: #0f172a;
}

.licence-card-stats span {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 13px;
}

.licence-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
    color: #334155;
    font-weight: 800;
}

.licence-cost-pill {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 900;
}

.licence-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.licence-meta-row span {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 8px 12px;
    color: #475569;
}

.it-link-grid {
    display: grid;
    gap: 14px;
}

.it-link-card {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #0f172a;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    transition: 0.2s ease;
}

.it-link-card:hover {
    transform: translateX(6px);
    background: white;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.it-link-card span {
    font-size: 28px;
}

.it-link-card strong {
    display: block;
    font-weight: 900;
}

.it-link-card small {
    display: block;
    color: #64748b;
    margin-top: 2px;
}

.it-module-list {
    display: grid;
    gap: 12px;
}

.it-module-item {
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
}

.it-module-item strong {
    display: block;
    font-weight: 900;
    color: #0f172a;
}

.it-module-item span {
    display: block;
    color: #64748b;
    margin-top: 4px;
}
.page-header p {
    color: #64748b !important;
}
.inventory-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding: 22px 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.inventory-detail-header h1 {
    color: #0f172a !important;
    font-size: 32px;
    font-weight: 900;
    margin: 0;
}

.inventory-detail-header p {
    color: #64748b !important;
    margin: 6px 0 0 0;
}

.inventory-status-badge {
    color: #0f172a !important;
    background: #e2e8f0;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 800;
}
.leaver-type-toggle {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.leaver-type-toggle .btn {
    min-width: 130px;
    font-weight: 800;
}
.checklist-panel,
.comments-panel,
.detail-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.checklist-panel-header,
.comments-header {
    margin-bottom: 18px;
}

.checklist-panel-header h2,
.comments-header h2 {
    color: #0f172a;
    font-size: 22px;
    font-weight: 900;
    margin: 0;
}

.checklist-panel-header p,
.comments-header p {
    color: #64748b;
    margin: 6px 0 0 0;
}

.checklist-row {
    padding: 14px 0;
    border-bottom: 1px solid #e2e8f0;
}

.checklist-row:last-child {
    border-bottom: none;
}

.checklist-row .form-check-label {
    color: #0f172a;
    font-weight: 700;
}

.checklist-meta {
    margin-left: 28px;
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
}

.final-check-row {
    margin-top: 12px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
}

.detail-label {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.detail-value {
    color: #0f172a;
    font-weight: 700;
    margin-top: 4px;
}

.comment-list {
    display: grid;
    gap: 14px;
}

.comment-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #475569;
    font-size: 13px;
    margin-bottom: 8px;
}

.comment-body {
    color: #0f172a;
    white-space: pre-wrap;
}

.pagination-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.pagination-summary {
    color: #475569;
    font-weight: 700;
}

.pagination .page-link {
    font-weight: 700;
}
.starter-type-toggle {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.starter-type-toggle .btn {
    min-width: 130px;
    font-weight: 800;
}
.employment-detail-group .form-select {
    max-width: 420px;
}

.employment-detail-group {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
}

.dark-mode-toggle {
    width: 100%;
    border: 1px solid #334155;
    background: #1e293b;
    color: #ffffff;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
    font-weight: 800;
    text-align: left;
}

.dark-mode-toggle:hover {
    background: #334155;
}

body.dark-mode {
    background: #020617;
    color: #e5e7eb;
}

body.dark-mode .content-wrapper {
    background: #020617;
}

body.dark-mode .form-card,
body.dark-mode .table-card,
body.dark-mode .info-card,
body.dark-mode .checklist-panel,
body.dark-mode .comments-panel,
body.dark-mode .detail-card,
body.dark-mode .filter-card,
body.dark-mode .pagination-card,
body.dark-mode .ops-panel,
body.dark-mode .licence-group-card,
body.dark-mode .inventory-detail-header {
    background: #0f172a;
    border-color: #334155;
    color: #e5e7eb;
}

body.dark-mode .page-header h1,
body.dark-mode .page-header p,
body.dark-mode .detail-value,
body.dark-mode .checklist-row .form-check-label,
body.dark-mode .comment-body,
body.dark-mode .table,
body.dark-mode label {
    color: #e5e7eb !important;
}

body.dark-mode .detail-label,
body.dark-mode .checklist-meta,
body.dark-mode .comments-header p,
body.dark-mode .checklist-panel-header p,
body.dark-mode .text-muted {
    color: #94a3b8 !important;
}

body.dark-mode .form-control,
body.dark-mode .form-select {
    background: #020617;
    border-color: #334155;
    color: #e5e7eb;
}

body.dark-mode .form-control::placeholder {
    color: #64748b;
}

body.dark-mode .table {
    --bs-table-bg: #0f172a;
    --bs-table-color: #e5e7eb;
    --bs-table-border-color: #334155;
}

body.dark-mode .comment-card,
body.dark-mode .final-check-row,
body.dark-mode .empty-state {
    background: #111827;
    border-color: #334155;
}


/* Checklist progress badges */

.status-needs-it {
    background: #dbeafe;
    color: #1e40af;
}

.status-needs-ops {
    background: #ede9fe;
    color: #5b21b6;
}

.timeline-actions {
    display: grid;
    gap: 8px;
    justify-items: end;
}

.timeline-status-pill {
    font-size: 12px;
    padding: 5px 10px;
    min-width: 76px;
}

body.dark-mode .status-open {
    background: #78350f;
    color: #fde68a;
}

body.dark-mode .status-closed {
    background: #064e3b;
    color: #bbf7d0;
}

body.dark-mode .status-needs-it {
    background: #1e3a8a;
    color: #bfdbfe;
}

body.dark-mode .status-needs-ops {
    background: #4c1d95;
    color: #ddd6fe;
}

body.dark-mode .timeline-date {
    background: #111827;
    border-color: #334155;
    color: #e5e7eb;
}

@media (max-width: 760px) {
    .timeline-actions {
        grid-column: 2;
        justify-items: start;
    }
}
/* Inventory value card */
.inventory-value-card {
    background: linear-gradient(135deg, #ffffff 0%, #f4f7fb 100%);
    color: #1f2937;
    border: 1px solid rgba(31, 41, 55, 0.08);
}

.inventory-value-card h5,
.inventory-value-card h1,
.inventory-value-card p {
    color: #1f2937 !important;
}

.inventory-value-card h1 {
    font-weight: 700;
    font-size: 2.35rem;
    line-height: 1.05;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    letter-spacing: -0.03em;
}

.inventory-value-card p {
    color: #6b7280 !important;
}
/* Inventory Assistant */
.inventory-assistant {
    background: linear-gradient(135deg, #ffffff 0%, #f7f9fc 100%);
    border: 1px solid rgba(31, 41, 55, 0.08);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.inventory-assistant-header h4 {
    margin-bottom: 4px;
    font-weight: 700;
    color: #1f2937;
}

.inventory-assistant-header p {
    color: #6b7280 !important;
}

.inventory-assistant textarea {
    min-height: 110px;
    resize: vertical;
    border-radius: 14px;
}

.inventory-assistant textarea:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
}

.inventory-assistant .btn {
    border-radius: 12px;
    padding: 10px 18px;
    font-weight: 600;
}
/* Software approvals */

.software-approval-pill,
.software-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.software-status {
    min-width: 120px;
}

.software-approval-pill.approved,
.software-status.approved {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.software-status.partial {
    background: #ffedd5;
    color: #9a3412;
    border: 1px solid #fed7aa;
}

.software-approval-pill.not-approved,
.software-status.not-approved {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}


/* Dark mode */

body.dark-mode .software-approval-pill.approved,
body.dark-mode .software-status.approved {
    background: #064e3b;
    color: #bbf7d0;
    border-color: #166534;
}

body.dark-mode .software-status.partial {
    background: #7c2d12;
    color: #fed7aa;
    border-color: #9a3412;
}

body.dark-mode .software-approval-pill.not-approved,
body.dark-mode .software-status.not-approved {
    background: #7f1d1d;
    color: #fecaca;
    border-color: #991b1b;
}
/* Software approval form */

.approval-toggle-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 18px 20px;

    border: 1px solid #e5e7eb;
    border-radius: 14px;

    background: #ffffff;
}

.approval-toggle-card .form-check-input {
    width: 48px;
    height: 24px;
    cursor: pointer;
}

body.dark-mode .approval-toggle-card {
    background: #111827;
    border-color: #374151;
}
.software-hub-card {
    background: #0f172a;
    color: white;
    text-decoration: none;
}

.software-hub-card h3,
.software-hub-card p {
    color: white;
}

.software-hub-card:hover {
    transform: translateY(-2px);
}
/* Audit Log */

.audit-list {
    display: flex;
    flex-direction: column;
}

.audit-item {
    display: flex;
    gap: 18px;
    padding: 20px 4px;
    border-bottom: 1px solid #e5e7eb;
}

.audit-item:last-child {
    border-bottom: none;
}

.audit-marker {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 8px;
    background: #3b82f6;
    flex-shrink: 0;
}

.audit-content {
    flex: 1;
    min-width: 0;
}

.audit-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.audit-area,
.audit-action {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 8px;
    margin-left: 7px;
    font-size: 12px;
    font-weight: 700;
}

.audit-area {
    background: #e0e7ff;
    color: #3730a3;
}

.audit-action {
    background: #f1f5f9;
    color: #475569;
}

.audit-date {
    color: #64748b;
    font-size: 13px;
    white-space: nowrap;
}

.audit-title {
    margin-top: 7px;
}

.audit-details {
    margin-top: 5px;
    color: #475569;
}

.audit-user-email {
    margin-top: 6px;
    color: #94a3b8;
    font-size: 12px;
}


/* Dark mode */

body.dark-mode .audit-item {
    border-color: #374151;
}

body.dark-mode .audit-area {
    background: #312e81;
    color: #c7d2fe;
}

body.dark-mode .audit-action {
    background: #1f2937;
    color: #cbd5e1;
}

body.dark-mode .audit-details {
    color: #cbd5e1;
}

body.dark-mode .audit-date,
body.dark-mode .audit-user-email {
    color: #94a3b8;
}
.audit-hub-card {
    background: linear-gradient(
        135deg,
        #0f766e,
        #115e59
    );
    color: white;
    text-decoration: none;
}

.audit-hub-card h3,
.audit-hub-card p {
    color: white;
}

.audit-hub-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 118, 110, 0.25);
}
/* =========================================================
   OPSHUB 10/10 DESIGN SYSTEM
   Global visual refresh layer
   ========================================================= */

:root {
    --ops-bg: #f6f8fc;
    --ops-surface: #ffffff;
    --ops-surface-soft: #f8fafc;
    --ops-border: #e5eaf2;
    --ops-text: #0f172a;
    --ops-muted: #64748b;
    --ops-sidebar: #0b1220;
    --ops-sidebar-soft: #111b2d;
    --ops-primary: #2563eb;
    --ops-primary-soft: #eff6ff;
    --ops-success: #16a34a;
    --ops-danger: #dc2626;
    --ops-purple: #7c3aed;
    --ops-teal: #0f766e;
    --ops-shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.06);
    --ops-shadow-md: 0 18px 45px rgba(15, 23, 42, 0.10);
    --ops-shadow-lg: 0 28px 80px rgba(15, 23, 42, 0.16);
    --ops-radius-sm: 12px;
    --ops-radius-md: 18px;
    --ops-radius-lg: 26px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ops-bg);
    color: var(--ops-text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 85% 8%, rgba(37, 99, 235, 0.06), transparent 24%),
        radial-gradient(circle at 8% 92%, rgba(124, 58, 237, 0.05), transparent 28%);
    z-index: -1;
}

.app-shell {
    min-height: 100vh;
}

/* Sidebar refresh */

.sidebar {
    width: 272px;
    height: 100vh;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1000;
    padding: 20px 16px 16px;
    background:
        radial-gradient(circle at 20% 0%, rgba(37, 99, 235, 0.16), transparent 28%),
        linear-gradient(180deg, #0b1220 0%, #0a1020 100%);
    border-right: 1px solid rgba(148, 163, 184, 0.12);
    color: white;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 16px 0 40px rgba(2, 6, 23, 0.08);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 22px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.sidebar-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 900;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.32);
}

.sidebar-brand-name {
    font-size: 18px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.sidebar-brand-subtitle {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sidebar-nav {
    padding: 18px 0;
}

.sidebar-section-label {
    padding: 14px 10px 8px;
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sidebar a.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 44px;
    margin: 2px 0;
    padding: 9px 10px;
    border-radius: 12px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.sidebar a.sidebar-nav-link:hover {
    color: #ffffff;
    background: rgba(148, 163, 184, 0.10);
    transform: translateX(2px);
}

.sidebar a.sidebar-nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(79, 70, 229, 0.95));
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.24);
}

.sidebar-nav-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    flex: 0 0 26px;
    background: rgba(255,255,255,0.06);
    font-size: 14px;
}

.sidebar-nav-link.active .sidebar-nav-icon {
    background: rgba(255,255,255,0.14);
}

.sidebar-nav-external {
    margin-left: auto;
    color: #64748b;
    font-size: 12px;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #334155, #1e293b);
    color: #ffffff;
    font-weight: 900;
}

.sidebar-user-meta {
    min-width: 0;
}

.sidebar-user-meta strong,
.sidebar-user-meta span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-meta strong {
    color: #f8fafc;
    font-size: 13px;
}

.sidebar-user-meta span {
    margin-top: 2px;
    color: #64748b;
    font-size: 11px;
}

.sidebar-footer-button,
.sidebar a.sidebar-footer-button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 11px;
    padding: 9px 10px;
    margin: 2px 0;
    background: transparent;
    color: #94a3b8;
    text-decoration: none;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    transition: 0.18s ease;
}

.sidebar-footer-button:hover,
.sidebar a.sidebar-footer-button:hover {
    color: #ffffff;
    background: rgba(148, 163, 184, 0.10);
    transform: none;
}

.sidebar-logout:hover {
    color: #fecaca !important;
    background: rgba(220, 38, 38, 0.12) !important;
}

/* Main layout */

.app-main {
    min-height: 100vh;
    margin-left: 272px;
}

.content-wrapper {
    margin-left: 0;
    min-height: 100vh;
    max-width: 1680px;
    padding: 30px clamp(22px, 3vw, 46px) 48px;
}

.mobile-topbar,
.sidebar-backdrop {
    display: none;
}

.flash-stack {
    margin-bottom: 18px;
}

.ops-alert {
    border: 1px solid var(--ops-border);
    border-radius: 14px;
    box-shadow: var(--ops-shadow-sm);
}

/* Global headers, cards, controls */

.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    color: var(--ops-text) !important;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 900;
    letter-spacing: -0.045em;
}

.page-header p {
    color: var(--ops-muted) !important;
    font-size: 14px;
}

.table-card,
.form-card,
.info-card,
.checklist-card,
.filter-card,
.checklist-panel,
.comments-panel,
.detail-card,
.pagination-card,
.inventory-detail-header,
.licence-group-card {
    border: 1px solid var(--ops-border);
    border-radius: var(--ops-radius-md);
    box-shadow: var(--ops-shadow-sm);
}

.table-card,
.form-card,
.info-card,
.checklist-card,
.filter-card {
    background: var(--ops-surface);
}

.table-card {
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table > :not(caption) > * > * {
    padding: 14px 16px;
    border-bottom-color: var(--ops-border);
    vertical-align: middle;
}

.table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom-width: 1px;
}

.table tbody tr {
    transition: background 0.16s ease;
}

.table tbody tr:hover {
    background: #fafcff;
}

.btn {
    border-radius: 11px;
    padding: 9px 15px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: 0;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.20);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
}

.form-control,
.form-select {
    border-radius: 11px;
    min-height: 44px;
    border-color: #dbe2ea;
    background-color: #ffffff;
}

.form-control:focus,
.form-select:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

/* Hero */

.ops-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 26px;
    min-height: 230px;
    margin-bottom: 22px;
    padding: clamp(28px, 4vw, 42px);
    border-radius: 30px;
    color: white;
    box-shadow: var(--ops-shadow-lg);
    isolation: isolate;
}

.ops-hero::before,
.ops-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    z-index: -1;
}

.ops-hero::before {
    width: 420px;
    height: 420px;
    top: -250px;
    right: -40px;
    background: rgba(255,255,255,0.10);
}

.ops-hero::after {
    width: 280px;
    height: 280px;
    bottom: -210px;
    left: 18%;
    background: rgba(255,255,255,0.06);
}

.ops-hero-dashboard {
    background:
        radial-gradient(circle at 88% 18%, rgba(96, 165, 250, 0.34), transparent 28%),
        linear-gradient(135deg, #0b1220 0%, #172554 48%, #312e81 100%);
}

.ops-hero-it {
    background:
        radial-gradient(circle at 88% 18%, rgba(45, 212, 191, 0.28), transparent 28%),
        linear-gradient(135deg, #07111f 0%, #0f172a 46%, #134e4a 100%);
}

.ops-hero-copy {
    align-self: center;
    max-width: 800px;
}

.eyebrow,
.section-kicker,
.panel-kicker,
.module-kicker {
    display: block;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.eyebrow {
    margin-bottom: 12px;
    color: #bfdbfe;
}

.ops-hero h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.055em;
}

.ops-hero p {
    max-width: 650px;
    margin: 16px 0 0;
    color: rgba(255,255,255,0.72);
    font-size: 16px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.hero-btn {
    padding: 10px 16px;
    border-radius: 12px;
}

.hero-btn-ghost {
    color: white;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);
}

.hero-btn-ghost:hover {
    color: white;
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.28);
}

.hero-signal-card {
    align-self: center;
    min-width: 220px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 20px;
    background: rgba(2, 6, 23, 0.28);
    backdrop-filter: blur(18px);
}

.hero-signal-top {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.70);
    font-size: 12px;
    font-weight: 800;
}

.hero-signal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 5px rgba(74, 222, 128, 0.12);
}

.hero-signal-teal {
    background: #2dd4bf;
    box-shadow: 0 0 0 5px rgba(45, 212, 191, 0.12);
}

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

.hero-signal-card strong {
    margin-top: 16px;
    font-size: 20px;
    font-weight: 900;
}

.hero-signal-card small {
    margin-top: 4px;
    color: rgba(255,255,255,0.58);
}

/* Metric cards */

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 30px;
}

.metric-card {
    position: relative;
    overflow: hidden;
    min-height: 152px;
    padding: 20px;
    border: 1px solid var(--ops-border);
    border-radius: 20px;
    background: var(--ops-surface);
    color: var(--ops-text);
    text-decoration: none;
    box-shadow: var(--ops-shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.metric-card::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    top: -72px;
    right: -42px;
    border-radius: 50%;
    opacity: 0.11;
    background: currentColor;
}

.metric-card:hover {
    color: var(--ops-text);
    transform: translateY(-3px);
    box-shadow: var(--ops-shadow-md);
}

.metric-blue { color: #2563eb; }
.metric-red { color: #dc2626; }
.metric-green { color: #16a34a; }
.metric-purple { color: #7c3aed; }

.metric-card:hover.metric-blue,
.metric-card:hover.metric-red,
.metric-card:hover.metric-green,
.metric-card:hover.metric-purple {
    color: inherit;
}

.metric-card-top {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--ops-text);
}

.metric-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: currentColor;
    color: white;
    font-size: 15px;
    font-weight: 900;
}

.metric-label {
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.metric-value {
    margin-top: 20px;
    color: var(--ops-text);
    font-size: 44px;
    line-height: 0.95;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.metric-caption {
    margin-top: 8px;
    color: var(--ops-muted);
    font-size: 12px;
    font-weight: 600;
}

/* Section headers */

.dashboard-section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    margin: 6px 0 14px;
}

.section-kicker {
    color: #64748b;
    margin-bottom: 5px;
}

.dashboard-section-header h2 {
    margin: 0;
    color: var(--ops-text);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.section-note {
    color: var(--ops-muted);
    font-size: 13px;
}

/* Premium panels */

.premium-grid {
    gap: 18px;
}

.ops-panel.premium-panel {
    min-height: 0;
    padding: 22px;
    border: 1px solid var(--ops-border);
    border-radius: 22px;
    background: rgba(255,255,255,0.94);
    box-shadow: var(--ops-shadow-sm);
    backdrop-filter: none;
}

.ops-panel.premium-panel::before {
    inset: 0 auto 0 0;
    width: 4px;
    opacity: 1;
    border-radius: 22px 0 0 22px;
}

.accent-blue::before { background: #2563eb !important; }
.accent-red::before { background: #dc2626 !important; }
.accent-purple::before { background: #7c3aed !important; }
.accent-teal::before { background: #0f766e !important; }

.panel-kicker {
    margin-bottom: 4px;
    color: #94a3b8;
}

.panel-header h3 {
    color: var(--ops-text);
    font-size: 20px;
    font-weight: 900;
}

.panel-header p {
    color: var(--ops-muted);
    font-size: 13px;
}

.premium-row {
    grid-template-columns: 14px minmax(0, 1fr) auto;
    padding: 13px 14px;
    border-color: #edf1f6;
    border-radius: 14px;
    background: #fbfcfe;
}

.premium-row:hover {
    transform: translateX(3px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
}

.premium-empty {
    min-height: 180px;
    background: #fbfcfe;
    border-color: #dbe3ed;
}

.compact-empty {
    min-height: 130px;
}

/* Action dock */

.action-dock {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-top: 20px;
    padding: 22px 24px;
    border-radius: 22px;
    background: linear-gradient(135deg, #0f172a, #172554);
    color: white;
    box-shadow: var(--ops-shadow-md);
}

.action-dock h3 {
    margin: 4px 0 0;
    font-size: 18px;
    font-weight: 900;
}

.light-kicker {
    color: #93c5fd;
}

.action-dock-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.dock-action {
    padding: 9px 13px;
    border-radius: 11px;
    color: #e2e8f0;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    transition: 0.18s ease;
}

.dock-action:hover {
    color: white;
    transform: translateY(-2px);
    background: rgba(255,255,255,0.12);
}

/* IT module cards */

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

.module-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 16px;
    align-items: center;
    min-height: 190px;
    padding: 24px;
    border-radius: 24px;
    color: white;
    text-decoration: none;
    box-shadow: var(--ops-shadow-md);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.module-card::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    top: -120px;
    right: -90px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}

.module-card:hover {
    color: white;
    transform: translateY(-4px);
    box-shadow: var(--ops-shadow-lg);
}

.module-navy {
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
}

.module-teal {
    background: linear-gradient(135deg, #0f3d3e, #0f766e);
}

.module-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: rgba(255,255,255,0.12);
    font-size: 22px;
    font-weight: 900;
}

.module-kicker {
    margin-bottom: 5px;
    color: rgba(255,255,255,0.58);
}

.module-card h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.module-card p {
    margin: 8px 0 0;
    color: rgba(255,255,255,0.68);
    font-size: 13px;
    line-height: 1.5;
}

.module-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.module-stats span {
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,0.09);
    color: rgba(255,255,255,0.78);
    font-size: 11px;
    font-weight: 700;
}

.module-stats strong {
    color: white;
}

.module-arrow {
    position: relative;
    z-index: 1;
    font-size: 28px;
    color: rgba(255,255,255,0.72);
}

/* IT helper components */

.premium-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.premium-it-link {
    min-height: 74px;
    padding: 14px;
    border-radius: 14px;
    background: #fbfcfe;
}

.link-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 14px !important;
    font-weight: 900;
}

.focus-card {
    display: grid;
    place-items: center;
    min-height: 250px;
    padding: 28px;
    border: 1px dashed #d7deea;
    border-radius: 18px;
    background: #fbfcfe;
    text-align: center;
}

.focus-label {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.focus-card strong {
    margin-top: 8px;
    color: var(--ops-text);
    font-size: 64px;
    line-height: 0.95;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.focus-card p {
    margin: 8px 0 20px;
    color: var(--ops-muted);
}

.mini-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.mini-metric {
    padding: 14px;
    border: 1px solid var(--ops-border);
    border-radius: 14px;
    background: #fbfcfe;
}

.mini-metric span,
.mini-metric strong {
    display: block;
}

.mini-metric span {
    color: var(--ops-muted);
    font-size: 11px;
    font-weight: 800;
}

.mini-metric strong {
    margin-top: 5px;
    color: var(--ops-text);
    font-size: 28px;
    font-weight: 950;
}

.roadmap-list {
    display: grid;
    gap: 12px;
}

.roadmap-item {
    padding: 16px;
    border: 1px solid var(--ops-border);
    border-radius: 15px;
    background: #fbfcfe;
}

.roadmap-item > div {
    display: flex;
    align-items: center;
    gap: 9px;
}

.roadmap-item strong {
    color: var(--ops-text);
    font-size: 15px;
}

.roadmap-item p {
    margin: 8px 0 0;
    color: var(--ops-muted);
    font-size: 13px;
    line-height: 1.5;
}

.roadmap-next {
    background: linear-gradient(135deg, #f0fdfa, #f8fafc);
    border-color: #ccfbf1;
}

.roadmap-badge {
    padding: 4px 7px;
    border-radius: 999px;
    background: #ccfbf1;
    color: #115e59;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.roadmap-badge-muted {
    background: #eef2f7;
    color: #64748b;
}

/* Dark mode design system */

body.dark-mode {
    --ops-bg: #050b14;
    --ops-surface: #0d1524;
    --ops-surface-soft: #111b2d;
    --ops-border: #1f2a3d;
    --ops-text: #f8fafc;
    --ops-muted: #94a3b8;
    background: var(--ops-bg);
    color: var(--ops-text);
}

body.dark-mode::before {
    background:
        radial-gradient(circle at 85% 8%, rgba(37, 99, 235, 0.10), transparent 25%),
        radial-gradient(circle at 8% 92%, rgba(124, 58, 237, 0.08), transparent 28%);
}

body.dark-mode .content-wrapper {
    background: transparent;
}

body.dark-mode .metric-card,
body.dark-mode .ops-panel.premium-panel,
body.dark-mode .table-card,
body.dark-mode .form-card,
body.dark-mode .info-card,
body.dark-mode .checklist-card,
body.dark-mode .filter-card,
body.dark-mode .checklist-panel,
body.dark-mode .comments-panel,
body.dark-mode .detail-card,
body.dark-mode .pagination-card,
body.dark-mode .inventory-detail-header,
body.dark-mode .licence-group-card {
    background: var(--ops-surface);
    border-color: var(--ops-border);
    color: var(--ops-text);
}

body.dark-mode .metric-card-top,
body.dark-mode .metric-value,
body.dark-mode .dashboard-section-header h2,
body.dark-mode .panel-header h3,
body.dark-mode .focus-card strong,
body.dark-mode .mini-metric strong,
body.dark-mode .roadmap-item strong {
    color: var(--ops-text);
}

body.dark-mode .metric-label,
body.dark-mode .metric-caption,
body.dark-mode .section-note,
body.dark-mode .panel-header p,
body.dark-mode .roadmap-item p,
body.dark-mode .focus-card p,
body.dark-mode .mini-metric span {
    color: var(--ops-muted);
}

body.dark-mode .premium-row,
body.dark-mode .premium-it-link,
body.dark-mode .premium-empty,
body.dark-mode .focus-card,
body.dark-mode .mini-metric,
body.dark-mode .roadmap-item {
    background: #101a2b;
    border-color: var(--ops-border);
}

body.dark-mode .roadmap-next {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.13), #101a2b);
    border-color: rgba(45, 212, 191, 0.18);
}

body.dark-mode .table thead th {
    background: #101a2b;
    color: #94a3b8;
}

body.dark-mode .table tbody tr:hover {
    background: #101a2b;
}

body.dark-mode .form-control,
body.dark-mode .form-select {
    background: #09111f;
    border-color: #273449;
    color: #e5e7eb;
}

body.dark-mode .link-icon {
    background: rgba(37, 99, 235, 0.14);
}

/* Responsive */

@media (max-width: 1180px) {
    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 960px) {
    .hero-signal-card {
        display: none;
    }

    .ops-hero {
        min-height: 0;
    }

    .premium-link-grid {
        grid-template-columns: 1fr;
    }

    .action-dock {
        align-items: flex-start;
        flex-direction: column;
    }

    .action-dock-links {
        justify-content: flex-start;
    }
}

@media (max-width: 860px) {
    .sidebar {
        position: fixed;
        width: min(286px, 88vw);
        height: 100vh;
        transform: translateX(-105%);
        transition: transform 0.24s ease;
        box-shadow: 20px 0 50px rgba(2, 6, 23, 0.28);
    }

    .sidebar.sidebar-open {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 950;
        background: rgba(2, 6, 23, 0.48);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .sidebar-backdrop.show {
        opacity: 1;
        pointer-events: auto;
    }

    .app-main {
        margin-left: 0;
    }

    .mobile-topbar {
        position: sticky;
        top: 0;
        z-index: 900;
        display: flex;
        align-items: center;
        gap: 12px;
        height: 60px;
        padding: 0 18px;
        background: rgba(246, 248, 252, 0.90);
        border-bottom: 1px solid var(--ops-border);
        backdrop-filter: blur(18px);
    }

    body.dark-mode .mobile-topbar {
        background: rgba(5, 11, 20, 0.90);
    }

    .mobile-menu-button {
        width: 38px;
        height: 38px;
        border: 1px solid var(--ops-border);
        border-radius: 11px;
        background: var(--ops-surface);
        color: var(--ops-text);
        font-size: 18px;
    }

    .mobile-brand {
        font-weight: 900;
        letter-spacing: -0.03em;
    }

    .content-wrapper {
        padding-top: 20px;
    }
}

@media (max-width: 680px) {
    .metric-grid,
    .mini-metric-grid {
        grid-template-columns: 1fr;
    }

    .ops-hero {
        padding: 26px 22px;
        border-radius: 22px;
    }

    .ops-hero h1 {
        font-size: 38px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .dashboard-section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .module-card {
        grid-template-columns: 44px 1fr;
        min-height: 0;
        padding: 20px;
    }

    .module-icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .module-arrow {
        display: none;
    }

    .premium-row {
        grid-template-columns: 12px minmax(0, 1fr);
    }

    .timeline-actions {
        grid-column: 2;
        justify-items: start;
    }

    .content-wrapper {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* =========================================================
   OPSHUB POLISH PASS V2
   Wide-screen layout + restrained semantic colour system
   ========================================================= */

/* Use the available monitor width instead of capping the workspace. */
.content-wrapper {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

/* On very large displays, allow the main operational panels to breathe. */
@media (min-width: 1800px) {
    .content-wrapper {
        padding-left: clamp(34px, 3vw, 64px);
        padding-right: clamp(34px, 3vw, 64px);
    }

    .ops-grid,
    .premium-grid {
        gap: 26px;
    }

    .metric-grid {
        gap: 18px;
    }
}

/* ---------------------------------------------------------
   Softer semantic buttons
   Keep red = destructive, green = positive, amber = caution,
   but use tint and border rather than full-volume colour.
   --------------------------------------------------------- */

.btn-success {
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    box-shadow: none;
}

.btn-success:hover,
.btn-success:focus {
    color: #14532d;
    background: #dcfce7;
    border-color: #86efac;
    box-shadow: 0 7px 18px rgba(22, 163, 74, 0.10);
    transform: translateY(-1px);
}

.btn-danger {
    color: #b91c1c;
    background: #fff7f7;
    border: 1px solid #fecaca;
    box-shadow: none;
}

.btn-danger:hover,
.btn-danger:focus {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fca5a5;
    box-shadow: 0 7px 18px rgba(220, 38, 38, 0.10);
    transform: translateY(-1px);
}

.btn-warning {
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    box-shadow: none;
}

.btn-warning:hover,
.btn-warning:focus {
    color: #78350f;
    background: #fef3c7;
    border-color: #fcd34d;
    transform: translateY(-1px);
}

.btn-secondary {
    color: #334155;
    background: #f8fafc;
    border: 1px solid #dbe2ea;
    box-shadow: none;
}

.btn-secondary:hover,
.btn-secondary:focus {
    color: #0f172a;
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* ---------------------------------------------------------
   Legacy dashboard cards used on Inventory / Licences / Reports
   Match the new professional OpsHub surface language.
   --------------------------------------------------------- */

.dashboard-card {
    --legacy-accent: #64748b;
    position: relative;
    min-height: 142px;
    padding: 20px;
    overflow: hidden;
    color: var(--ops-text);
    background: var(--ops-surface);
    border: 1px solid var(--ops-border);
    border-radius: 20px;
    box-shadow: var(--ops-shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--legacy-accent);
    opacity: 0.88;
}

.dashboard-card::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    top: -78px;
    right: -46px;
    border-radius: 50%;
    background: var(--legacy-accent);
    opacity: 0.07;
    pointer-events: none;
}

.dashboard-card:hover {
    color: var(--ops-text);
    transform: translateY(-3px);
    border-color: #d5dde7;
    box-shadow: var(--ops-shadow-md);
}

.dashboard-card h1,
.dashboard-card h2,
.dashboard-card h3,
.dashboard-card h4,
.dashboard-card h5,
.dashboard-card p,
.dashboard-card span {
    color: inherit;
}

.dashboard-card h1 {
    font-size: clamp(32px, 3vw, 44px);
    color: var(--ops-text) !important;
    letter-spacing: -0.045em;
}

.dashboard-card h3,
.dashboard-card h5 {
    color: var(--ops-text) !important;
}

.dashboard-card p {
    color: var(--ops-muted) !important;
    opacity: 1;
}

.blue-card {
    --legacy-accent: #2563eb;
    background: var(--ops-surface);
}

.red-card {
    --legacy-accent: #dc2626;
    background: var(--ops-surface);
}

.green-card {
    --legacy-accent: #16a34a;
    background: var(--ops-surface);
}

.purple-card {
    --legacy-accent: #7c3aed;
    background: var(--ops-surface);
}

.inventory-value-card {
    --legacy-accent: #7c3aed;
    background: var(--ops-surface);
    border: 1px solid var(--ops-border);
}

.inventory-value-card h5,
.inventory-value-card h1,
.inventory-value-card p {
    color: inherit !important;
}

.inventory-value-card p {
    color: var(--ops-muted) !important;
}

/* Older special hub-card classes should inherit the same quiet surface style
   whenever they appear outside the redesigned IT Hub. */
.software-hub-card,
.audit-hub-card {
    color: var(--ops-text);
    background: var(--ops-surface);
    border: 1px solid var(--ops-border);
}

.software-hub-card {
    --legacy-accent: #334155;
}

.audit-hub-card {
    --legacy-accent: #0f766e;
}

.software-hub-card h3,
.software-hub-card p,
.audit-hub-card h3,
.audit-hub-card p {
    color: inherit;
}

/* Dark mode equivalents */
body.dark-mode .btn-success {
    color: #bbf7d0;
    background: rgba(22, 101, 52, 0.16);
    border-color: rgba(74, 222, 128, 0.24);
}

body.dark-mode .btn-success:hover,
body.dark-mode .btn-success:focus {
    color: #dcfce7;
    background: rgba(22, 101, 52, 0.25);
    border-color: rgba(74, 222, 128, 0.34);
}

body.dark-mode .btn-danger {
    color: #fecaca;
    background: rgba(127, 29, 29, 0.16);
    border-color: rgba(248, 113, 113, 0.24);
}

body.dark-mode .btn-danger:hover,
body.dark-mode .btn-danger:focus {
    color: #fee2e2;
    background: rgba(127, 29, 29, 0.25);
    border-color: rgba(248, 113, 113, 0.34);
}

body.dark-mode .btn-warning {
    color: #fde68a;
    background: rgba(146, 64, 14, 0.15);
    border-color: rgba(251, 191, 36, 0.24);
}

body.dark-mode .btn-secondary {
    color: #cbd5e1;
    background: #101a2b;
    border-color: #273449;
}

body.dark-mode .dashboard-card,
body.dark-mode .inventory-value-card,
body.dark-mode .software-hub-card,
body.dark-mode .audit-hub-card {
    color: #e5e7eb;
    background: #0f172a;
    border-color: #273449;
}

body.dark-mode .dashboard-card h1,
body.dark-mode .dashboard-card h2,
body.dark-mode .dashboard-card h3,
body.dark-mode .dashboard-card h4,
body.dark-mode .dashboard-card h5 {
    color: #e5e7eb !important;
}

body.dark-mode .dashboard-card p,
body.dark-mode .inventory-value-card p {
    color: #94a3b8 !important;
}

/* Dashboard polish v3: metric icons + dark timeline names */
.metric-blue .metric-icon {
    background: #2563eb;
    color: #ffffff;
}

.metric-red .metric-icon {
    background: #dc2626;
    color: #ffffff;
}

.metric-green .metric-icon {
    background: #16a34a;
    color: #ffffff;
}

.metric-purple .metric-icon {
    background: #7c3aed;
    color: #ffffff;
}

body.dark-mode .timeline-content strong,
body.dark-mode .premium-row .timeline-content strong {
    color: var(--ops-text) !important;
}

/* =========================================================
   OPSHUB FULL VISUAL PASS V4
   Shared polish for Inventory, Licences, Reports, People,
   User Search, Software Approvals, Audit and IT utility pages.
   ========================================================= */

:root {
    --ops-surface-soft: #f8fafc;
    --ops-surface-hover: #f3f6fa;
    --ops-border-strong: #d7e0ea;
    --ops-positive: #15803d;
    --ops-positive-soft: #eefbf3;
    --ops-danger: #b91c1c;
    --ops-danger-soft: #fff5f5;
    --ops-warning: #a16207;
    --ops-warning-soft: #fffbeb;
}

.page-header-premium {
    gap: 24px;
    min-height: 82px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--ops-border);
}

.page-header-premium > div:first-child {
    min-width: 0;
}

.page-header-premium h1 {
    font-size: clamp(28px, 2.4vw, 38px);
    letter-spacing: -0.04em;
}

.page-header-premium .text-muted {
    max-width: 760px;
    margin: 7px 0 0;
    line-height: 1.55;
}

.page-eyebrow {
    margin: 0 0 7px;
    color: #64748b;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

/* Shared surfaces */
.filter-card,
.table-card,
.form-card,
.info-card,
.checklist-card,
.detail-card,
.comments-panel,
.checklist-panel,
.pagination-card,
.ops-panel {
    border: 1px solid var(--ops-border);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.055);
}

.filter-card,
.form-card,
.info-card,
.table-card {
    border-radius: 20px;
}

.filter-card {
    padding: 20px;
    background: var(--ops-surface);
}

.form-card,
.info-card {
    padding: clamp(20px, 2.2vw, 28px);
}

.table-card {
    padding: 0;
    overflow: hidden;
}

.table-card > .panel-header,
.table-card > .d-flex:first-child {
    padding: 20px 22px 0;
}

.table-card .table-responsive {
    overflow-x: auto;
}

/* Tables */
.table {
    margin-bottom: 0;
    --bs-table-bg: transparent;
}

.table > :not(caption) > * > * {
    padding: 14px 16px;
    border-bottom-color: var(--ops-border);
    vertical-align: middle;
}

.table thead th {
    padding-top: 13px;
    padding-bottom: 13px;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid var(--ops-border-strong);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .055em;
    text-transform: uppercase;
    white-space: nowrap;
}

.table tbody tr {
    transition: background-color .15s ease;
}

.table-hover > tbody > tr:hover > * {
    --bs-table-accent-bg: #f8fafc;
    color: inherit;
}

.table tbody tr:last-child td {
    border-bottom: 0;
}

.table td {
    color: #334155;
}

.table td strong,
.record-link {
    color: #0f172a;
    font-weight: 780;
}

.record-link {
    text-decoration: none;
}

.record-link:hover {
    color: #2563eb;
}

.date-cell {
    color: #475569;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 4px 9px;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.list-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: #64748b;
    font-size: 13px;
    font-weight: 650;
}

/* Forms */
.form-label {
    margin-bottom: 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 760;
}

.form-control,
.form-select {
    min-height: 44px;
    padding: 10px 12px;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid #cfd8e3;
    border-radius: 11px;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

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

.form-control:hover,
.form-select:hover {
    border-color: #b7c4d3;
}

.form-control:focus,
.form-select:focus {
    color: #0f172a;
    background: #fff;
    border-color: #7ba2ed;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
}

/* Buttons: quiet by default, meaningful when needed */
.btn {
    min-height: 42px;
    padding: 9px 15px;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 760;
    box-shadow: none;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

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

.btn-sm {
    min-height: 34px;
    padding: 6px 11px;
    border-radius: 9px;
    font-size: 12px;
}

.btn-primary {
    background: #1f5fd1;
    border-color: #1f5fd1;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #1b55bd;
    border-color: #1b55bd;
    box-shadow: 0 7px 18px rgba(31, 95, 209, .18);
}

.btn-secondary {
    color: #475569;
    background: #f8fafc;
    border-color: #d7e0ea;
}

.btn-secondary:hover,
.btn-secondary:focus {
    color: #0f172a;
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.btn-success {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.btn-success:hover,
.btn-success:focus {
    color: #14532d;
    background: #dcfce7;
    border-color: #86efac;
}

.btn-danger {
    color: #b91c1c;
    background: #fff5f5;
    border-color: #fecaca;
}

.btn-danger:hover,
.btn-danger:focus {
    color: #991b1b;
    background: #fee2e2;
    border-color: #fca5a5;
}

.btn-warning {
    color: #92400e;
    background: #fffbeb;
    border-color: #fde68a;
}

.btn-warning:hover,
.btn-warning:focus {
    color: #78350f;
    background: #fef3c7;
    border-color: #fcd34d;
}

.btn-outline-primary {
    color: #2458b8;
    border-color: #bfd0ed;
    background: #f8fbff;
}

.btn-outline-secondary {
    color: #475569;
    border-color: #d7e0ea;
    background: #fff;
}

/* Status badges */
.status-pill {
    min-width: auto;
    padding: 5px 10px;
    border: 1px solid transparent;
    font-size: 12px;
    letter-spacing: .01em;
}

.status-closed {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.status-open {
    color: #92400e;
    background: #fffbeb;
    border-color: #fde68a;
}

.status-danger,
.status-missing {
    color: #991b1b;
    background: #fff1f2;
    border-color: #fecdd3;
}

.status-needs-it {
    color: #1e40af;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.status-needs-ops {
    color: #5b21b6;
    background: #f5f3ff;
    border-color: #ddd6fe;
}

/* Detail pages */
.inventory-detail-header,
.record-header {
    box-shadow: 0 10px 30px rgba(15, 23, 42, .055);
}

.info-card .row > [class*="col-"] > strong,
.ops-panel .row > [class*="col-"] > strong {
    display: block;
    margin-bottom: 5px;
    color: #64748b;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.info-card hr {
    margin: 20px 0;
    border-color: var(--ops-border);
    opacity: 1;
}

/* Panels / reports */
.panel-header h3 {
    font-size: 19px;
    letter-spacing: -.025em;
}

.report-summary {
    background: #f8fafc;
    border-color: var(--ops-border);
    border-radius: 14px;
}

.report-summary strong {
    color: #0f172a;
    font-size: 36px;
}

/* Alerts and empty states */
.alert {
    border-radius: 13px;
    border-width: 1px;
}

.alert-info {
    color: #315078;
    background: #f3f8ff;
    border-color: #d8e8fb;
}

.alert-danger {
    color: #991b1b;
    background: #fff5f5;
    border-color: #fecaca;
}

.premium-empty-state {
    min-height: 260px;
}

/* Modals */
.modal-content {
    border: 1px solid var(--ops-border);
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .22);
}

.modal-header,
.modal-footer {
    border-color: var(--ops-border);
}

/* Dark mode */
body.dark-mode {
    --ops-surface-soft: #111827;
    --ops-surface-hover: #142033;
    --ops-border-strong: #334155;
}

body.dark-mode .page-header-premium {
    border-bottom-color: #243247;
}

body.dark-mode .page-eyebrow,
body.dark-mode .list-meta-row,
body.dark-mode .date-cell {
    color: #94a3b8;
}

body.dark-mode .filter-card,
body.dark-mode .table-card,
body.dark-mode .form-card,
body.dark-mode .info-card,
body.dark-mode .checklist-card,
body.dark-mode .detail-card,
body.dark-mode .comments-panel,
body.dark-mode .checklist-panel,
body.dark-mode .pagination-card,
body.dark-mode .ops-panel,
body.dark-mode .modal-content {
    background: #0f172a;
    border-color: #273449;
}

body.dark-mode .table thead th {
    color: #94a3b8;
    background: #111c2d;
    border-bottom-color: #334155;
}

body.dark-mode .table td {
    color: #cbd5e1;
    border-bottom-color: #243247;
}

body.dark-mode .table-hover > tbody > tr:hover > * {
    --bs-table-accent-bg: #121e30;
}

body.dark-mode .table td strong,
body.dark-mode .record-link {
    color: #f1f5f9;
}

body.dark-mode .record-link:hover {
    color: #93c5fd;
}

body.dark-mode .meta-pill {
    color: #cbd5e1;
    background: #111c2d;
    border-color: #334155;
}

body.dark-mode .form-label {
    color: #cbd5e1 !important;
}

body.dark-mode .form-control,
body.dark-mode .form-select {
    color: #e5e7eb;
    background: #0b1220;
    border-color: #334155;
}

body.dark-mode .form-control:focus,
body.dark-mode .form-select:focus {
    color: #f8fafc;
    background: #0b1220;
    border-color: #5d85cf;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, .12);
}

body.dark-mode .btn-secondary {
    color: #cbd5e1;
    background: #111c2d;
    border-color: #334155;
}

body.dark-mode .btn-primary {
    background: #285fbf;
    border-color: #285fbf;
}

body.dark-mode .status-danger,
body.dark-mode .status-missing {
    color: #fecaca;
    background: rgba(127, 29, 29, .22);
    border-color: rgba(248, 113, 113, .30);
}

body.dark-mode .status-closed {
    color: #bbf7d0;
    background: rgba(6, 78, 59, .48);
    border-color: rgba(74, 222, 128, .22);
}

body.dark-mode .status-open {
    color: #fde68a;
    background: rgba(120, 53, 15, .42);
    border-color: rgba(251, 191, 36, .22);
}

body.dark-mode .report-summary,
body.dark-mode .alert-info {
    background: #111c2d;
    border-color: #334155;
}

body.dark-mode .report-summary strong {
    color: #f8fafc;
}

body.dark-mode .modal-header,
body.dark-mode .modal-footer,
body.dark-mode .info-card hr {
    border-color: #273449;
}

body.dark-mode .modal-content,
body.dark-mode .modal-title,
body.dark-mode .modal-body {
    color: #e5e7eb;
}

@media (max-width: 760px) {
    .page-header-premium {
        min-height: 0;
        align-items: stretch;
    }

    .page-header-premium > .btn,
    .page-header-premium > div:last-child .btn {
        width: 100%;
    }

    .list-meta-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .table > :not(caption) > * > * {
        padding: 12px 13px;
    }
}

/* =========================================================
   SOFTWARE MANAGEMENT CONSOLE
   ========================================================= */

.software-console-header .page-kicker {
    margin: 0 0 6px;
    color: #2563eb !important;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.software-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.software-summary-card {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.software-summary-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    font-size: 19px;
    font-weight: 900;
}

.software-summary-icon.blue {
    color: #1d4ed8;
    background: #eff6ff;
}

.software-summary-icon.violet {
    color: #6d28d9;
    background: #f5f3ff;
}

.software-summary-icon.green {
    color: #15803d;
    background: #f0fdf4;
}

.software-summary-icon.amber {
    color: #b45309;
    background: #fffbeb;
}

.software-summary-card > div {
    min-width: 0;
}

.software-summary-label {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.software-summary-card strong {
    display: block;
    margin-top: 3px;
    color: #0f172a;
    font-size: clamp(24px, 2vw, 32px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.software-summary-card small {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-weight: 700;
}

.software-attention {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
}

.software-attention-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.software-attention-title > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #fff7ed;
}

.software-attention-title strong,
.software-attention-title small {
    display: block;
}

.software-attention-title strong {
    color: #0f172a;
    font-weight: 900;
}

.software-attention-title small {
    margin-top: 2px;
    color: #64748b;
}

.software-attention-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.attention-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.attention-pill.danger-soft {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.attention-pill.warning-soft {
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.software-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.software-view-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    background: #f8fafc;
}

.software-view-tab {
    padding: 9px 14px;
    border-radius: 9px;
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 850;
    transition: 0.18s ease;
}

.software-view-tab:hover {
    color: #0f172a;
}

.software-view-tab.active {
    color: #0f172a;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.software-search-form {
    display: flex;
    gap: 8px;
    flex: 1 1 520px;
    justify-content: flex-end;
}

.software-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 720px;
}

.software-search-wrap > span {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 20px;
    pointer-events: none;
}

.software-search-wrap input {
    width: 100%;
    min-height: 44px;
    padding: 10px 72px 10px 42px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    color: #0f172a;
    outline: none;
    transition: 0.18s ease;
}

.software-search-wrap input:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.10);
}

.software-search-clear {
    position: absolute;
    right: 12px;
    color: #64748b;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}

.software-console-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.software-console-card-header {
    padding: 20px 22px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.software-console-card-header h3 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
}

.software-console-card-header p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 13px;
}

.software-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.software-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1080px;
}

.software-table th {
    padding: 11px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.055em;
    white-space: nowrap;
}

.software-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f7;
    color: #334155;
    font-size: 13px;
    vertical-align: middle;
}

.software-table tbody tr:last-child td {
    border-bottom: 0;
}

.software-table tbody tr {
    transition: background 0.15s ease;
}

.software-table tbody tr:hover {
    background: #f8fafc;
}

.software-name-cell,
.software-person-cell {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 190px;
}

.software-product-icon,
.person-avatar {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    border-radius: 10px;
    color: #1d4ed8;
    background: #eff6ff;
    font-weight: 900;
}

.person-avatar {
    color: #5b21b6;
    background: #f5f3ff;
}

.software-name-cell strong,
.software-person-cell strong {
    display: block;
    color: #0f172a;
    font-weight: 900;
}

.software-name-cell small,
.software-person-cell small,
.software-cell-muted {
    display: block;
    margin-top: 2px;
    color: #94a3b8;
    font-size: 11px;
}

.software-secondary-strong {
    color: #334155;
    font-weight: 800;
}

.seat-count-wrap {
    min-width: 100px;
}

.seat-count-line {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.seat-count-line strong {
    color: #0f172a;
    font-size: 14px;
}

.seat-count-line span {
    color: #94a3b8;
    font-size: 11px;
}

.seat-progress {
    width: 88px;
    height: 5px;
    margin-top: 6px;
    overflow: hidden;
    background: #e2e8f0;
    border-radius: 99px;
}

.seat-progress span {
    display: block;
    height: 100%;
    background: #3b82f6;
    border-radius: inherit;
}

.software-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
}

.software-status-pill.healthy {
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.software-status-pill.low {
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.software-status-pill.full {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.software-status-pill.neutral {
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.renewal-date {
    white-space: nowrap;
    font-weight: 750;
}

.renewal-date.soon {
    color: #b45309;
}

.software-action-cell {
    width: 1%;
    text-align: right;
}

.software-row-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    color: #1d4ed8;
    background: #eff6ff;
    border-radius: 9px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 850;
}

.software-row-action:hover {
    color: #1e40af;
    background: #dbeafe;
}

.people-software-table {
    min-width: 960px;
}

.software-tags-cell {
    max-width: 520px;
}

.software-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.software-tag {
    display: inline-flex;
    padding: 4px 7px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 750;
}

.software-empty-state {
    min-height: 280px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 7px;
    padding: 32px;
    text-align: center;
}

.software-empty-state > span {
    font-size: 32px;
}

.software-empty-state h4 {
    margin: 0;
    color: #0f172a;
    font-weight: 900;
}

.software-empty-state p {
    margin: 0;
    color: #64748b;
}

body.dark-mode .software-summary-card,
body.dark-mode .software-attention,
body.dark-mode .software-console-card {
    background: #0f172a;
    border-color: #263449;
}

body.dark-mode .software-summary-card strong,
body.dark-mode .software-attention-title strong,
body.dark-mode .software-console-card-header h3,
body.dark-mode .software-name-cell strong,
body.dark-mode .software-person-cell strong,
body.dark-mode .seat-count-line strong,
body.dark-mode .software-empty-state h4 {
    color: #e5e7eb;
}

body.dark-mode .software-summary-label,
body.dark-mode .software-summary-card small,
body.dark-mode .software-attention-title small,
body.dark-mode .software-console-card-header p,
body.dark-mode .software-name-cell small,
body.dark-mode .software-person-cell small,
body.dark-mode .software-cell-muted,
body.dark-mode .software-empty-state p {
    color: #94a3b8;
}

body.dark-mode .software-view-tabs,
body.dark-mode .software-table th {
    background: #111827;
    border-color: #263449;
}

body.dark-mode .software-view-tab {
    color: #94a3b8;
}

body.dark-mode .software-view-tab.active {
    color: #e5e7eb;
    background: #1e293b;
}

body.dark-mode .software-search-wrap input {
    color: #e5e7eb;
    background: #0f172a;
    border-color: #334155;
}

body.dark-mode .software-console-card-header,
body.dark-mode .software-table th,
body.dark-mode .software-table td {
    border-color: #263449;
}

body.dark-mode .software-table td,
body.dark-mode .software-secondary-strong {
    color: #cbd5e1;
}

body.dark-mode .software-table tbody tr:hover {
    background: #111827;
}

body.dark-mode .software-tag,
body.dark-mode .software-status-pill.neutral {
    color: #cbd5e1;
    background: #111827;
    border-color: #334155;
}

body.dark-mode .seat-progress {
    background: #334155;
}

@media (max-width: 1180px) {
    .software-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .software-summary-grid {
        grid-template-columns: 1fr;
    }

    .software-attention {
        align-items: flex-start;
        flex-direction: column;
    }

    .software-attention-items {
        justify-content: flex-start;
    }

    .software-toolbar {
        align-items: stretch;
    }

    .software-view-tabs {
        width: 100%;
    }

    .software-view-tab {
        flex: 1;
        text-align: center;
    }

    .software-search-form {
        width: 100%;
        flex-basis: 100%;
    }
}

/* =========================================================
   SOFTWARE HIERARCHY V6 - Vendor > Licence > Users
   ========================================================= */

.software-sync-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #dbe3ee;
    border-radius: 16px;
    color: #334155;
}

.software-sync-banner > div {
    display: grid;
    gap: 2px;
}

.software-sync-banner strong {
    color: #0f172a;
    font-weight: 850;
}

.software-sync-banner span {
    color: #64748b;
    font-size: 13px;
}

.software-sync-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.10);
    flex-shrink: 0;
}

.vendor-list {
    display: grid;
}

.vendor-row {
    display: grid;
    grid-template-columns: minmax(240px, 1.5fr) repeat(5, minmax(100px, 0.7fr)) 28px;
    gap: 18px;
    align-items: center;
    padding: 18px 22px;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid #e8edf3;
    transition: background 0.18s ease, transform 0.18s ease;
}

.vendor-row:last-child {
    border-bottom: none;
}

.vendor-row:hover {
    color: inherit;
    background: #f8fafc;
}

.vendor-primary {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.vendor-primary > div {
    min-width: 0;
}

.vendor-primary strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
    font-weight: 900;
}

.vendor-primary small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
}

.vendor-avatar {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 13px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 900;
    font-size: 16px;
}

.vendor-stat {
    display: grid;
    gap: 3px;
}

.vendor-stat span {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .045em;
}

.vendor-stat strong {
    color: #334155;
    font-size: 13px;
    font-weight: 850;
}

.vendor-money strong {
    color: #0f172a;
}

.vendor-renewal strong {
    white-space: nowrap;
}

.vendor-chevron {
    color: #94a3b8;
    font-size: 28px;
    line-height: 1;
    text-align: right;
}

.vendor-licence-table {
    min-width: 1040px;
}

.software-status-pill.automated {
    color: #1e40af;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.licence-detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 20px 22px;
}

.licence-detail-meta-grid > div {
    display: grid;
    gap: 5px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.licence-detail-meta-grid span {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.licence-detail-meta-grid strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 850;
}

.licence-detail-note {
    margin: 0 22px 22px;
    padding: 14px 16px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
}

.licence-user-table {
    min-width: 900px;
}

body.dark-mode .software-sync-banner {
    background: #0f172a;
    border-color: #263449;
}

body.dark-mode .software-sync-banner strong,
body.dark-mode .vendor-primary strong,
body.dark-mode .vendor-money strong,
body.dark-mode .licence-detail-meta-grid strong {
    color: #e5e7eb;
}

body.dark-mode .software-sync-banner span,
body.dark-mode .vendor-primary small,
body.dark-mode .vendor-stat span {
    color: #94a3b8;
}

body.dark-mode .vendor-row {
    border-color: #263449;
}

body.dark-mode .vendor-row:hover {
    background: #111827;
}

body.dark-mode .vendor-avatar {
    color: #bfdbfe;
    background: #172554;
}

body.dark-mode .vendor-stat strong {
    color: #cbd5e1;
}

body.dark-mode .licence-detail-meta-grid > div,
body.dark-mode .licence-detail-note {
    background: #111827;
    border-color: #334155;
}

body.dark-mode .licence-detail-note {
    color: #cbd5e1;
}

body.dark-mode .software-status-pill.automated {
    color: #bfdbfe;
    background: #172554;
    border-color: #1e3a8a;
}

@media (max-width: 1260px) {
    .vendor-row {
        grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(90px, 0.7fr)) 28px;
    }

    .vendor-row .vendor-stat:nth-of-type(4),
    .vendor-row .vendor-stat:nth-of-type(5) {
        display: none;
    }
}

@media (max-width: 850px) {
    .vendor-row {
        grid-template-columns: 1fr auto;
        gap: 12px;
    }

    .vendor-row .vendor-stat {
        display: none;
    }

    .licence-detail-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .licence-detail-meta-grid {
        grid-template-columns: 1fr;
    }
}
