:root {
    --bg: #0f172a;
    --bg-soft: #111827;
    --panel: #1e293b;
    --panel-2: #0b1220;
    --border: #263244;
    --text: #e5e7eb;
    --text-muted: #94a3b8;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --success: #22c55e;
    --warning: #facc15;
    --orange: #fb923c;
    --danger: #ef4444;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --radius: 12px;
    --sidebar-width: 220px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: linear-gradient(180deg, #0b1120 0%, #0f172a 100%);
    color: var(--text);
    min-height: 100%;
    font-size: 14px;
    line-height: 1.4;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: #60a5fa;
}

h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

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

.sidebar {
    width: var(--sidebar-width);
    background: rgba(15, 23, 42, 0.95);
    border-right: 1px solid var(--border);
    padding: 18px 14px;
    position: sticky;
    top: 0;
    height: 100vh;
    font-size: 13px;
}

.brand {
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.brand span {
    color: var(--primary);
}

.sidebar-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin: 18px 0 8px;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 6px;
}

.sidebar-nav a {
    display: block;
    padding: 9px 11px;
    border-radius: 8px;
    color: var(--text);
    background: transparent;
    transition: 0.2s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(59, 130, 246, 0.14);
    color: #fff;
    border: 1px solid rgba(59, 130, 246, 0.28);
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
}

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

/* Hamburger button — hidden on desktop */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}

.hamburger-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

/* Sidebar overlay — hidden by default */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}

/* Sidebar close button — hidden on desktop */
.sidebar-close-btn {
    display: none;
}

.topbar-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    min-width: 0;
}

.topbar-right {
    color: var(--text-muted);
    font-size: 12px;
}

.content {
    padding: 20px;
}

.card {
    background: rgba(30, 41, 59, 0.82);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.card h2,
.card h3 {
    margin-top: 0;
    color: #fff;
}

.btn {
    display: inline-block;
    padding: 8px 13px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    transition: 0.2s ease;
    font-size: 13px;
    line-height: 1.2;
}

.btn:hover {
    background: var(--primary-hover);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: #fff;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px 0 0;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.btn-link:hover,
.btn-link:focus {
    color: #fff;
    outline: none;
}

.storage-detail-row.hidden {
    display: none;
}

.storage-detail-cell {
    padding-left: 32px;
    background: rgba(15, 23, 42, 0.95);
}

.storage-detail-heading {
    margin-bottom: 8px;
    font-weight: 600;
    color: #e2e8f0;
}

.nested-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.95);
}

.nested-table th,
.nested-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    color: var(--text);
}

.nested-table th {
    background: rgba(11, 18, 32, 0.95);
    color: #cbd5e1;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.nested-table tr:last-child td {
    border-bottom: none;
}

.storage-toggle {
    transition: transform 0.2s ease;
}

.storage-toggle.open {
    transform: rotate(90deg);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: #dc2626;
    color: #fff;
}

.btn-green {
    background: #16a34a;
    color: #fff;
}

.btn-green:hover {
    background: #15803d;
    color: #fff;
}

.btn-small {
    padding: 6px 10px;
    font-size: 12px;
}

.switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    min-height: 44px;
    width: 100%;
    max-width: 420px;
}

.switch-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    cursor: pointer;
    transition: color 0.2s ease;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    z-index: 2;
    position: relative;
    min-height: 44px;
}

.switch-option.active {
    color: #fff;
}

.switch-option:hover {
    color: var(--text);
}

.switch-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 8px);
    height: calc(100% - 8px);
    background: var(--primary);
    border-radius: 999px;
    transition: transform 0.2s ease;
    z-index: 1;
}

.switch[data-active="replace"] .switch-slider {
    transform: translateX(100%);
}

.table-wrap {
    background: rgba(30, 41, 59, 0.82);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow-x: auto;
    overflow-y: hidden;
    box-shadow: var(--shadow);
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

th,
td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

th {
    background: rgba(11, 18, 32, 0.9);
    color: #cbd5e1;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tr:hover td {
    background: rgba(59, 130, 246, 0.05);
}

input,
select,
textarea {
    width: 100%;
    padding: 9px 11px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #0f172a;
    color: var(--text);
    outline: none;
    font-size: 13px;
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

textarea {
    resize: vertical;
}

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

.page-subtitle {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 13px;
}

.page-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group-checkbox {
    justify-content: end;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    color: var(--text);
    font-weight: 600;
    font-size: 13px;
}

.checkbox-label input {
    width: auto;
}

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 13px;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fecaca;
}

.alert-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #bbf7d0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.info-box {
    background: rgba(11, 18, 32, 0.65);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
}

.info-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.info-value {
    display: block;
    font-size: 16px;
    color: #fff;
    font-weight: 600;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 14px;
}

.detail-item {
    background: rgba(11, 18, 32, 0.65);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
}

.detail-item-full {
    grid-column: 1 / -1;
}

.detail-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.detail-value {
    display: block;
    font-size: 14px;
    color: #fff;
    font-weight: 500;
    line-height: 1.5;
}

.section-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.component-actions.actions-cell {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

td.actions-cell {
    white-space: nowrap;
}

td.actions-cell a + a {
    margin-left: 8px;
}

.inline-form {
    display: inline;
    margin: 0;
}

.empty-state {
    color: var(--text-muted);
    margin: 0;
    font-size: 13px;
}

.status-badge {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-badge.status-normal {
    background: rgba(34, 197, 94, 0.18);
    color: #86efac;
}

.status-badge.status-yellow {
    background: rgba(250, 204, 21, 0.18);
    color: #fde68a;
    padding-inline: 10px;
    white-space: nowrap;
}

.status-badge.status-orange {
    background: rgba(251, 146, 60, 0.18);
    color: #fdba74;
}

.status-badge.status-red {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
}

.status-badge.status-green {
    background: rgba(34, 197, 94, 0.18);
    color: #86efac;
}

.component-node.status-normal {
    border-left: 4px solid #64748b;
}

.component-node.status-yellow {
    border-left: 4px solid var(--warning);
}

.component-node.status-orange {
    border-left: 4px solid var(--orange);
}

.component-node.status-red {
    border-left: 4px solid var(--danger);
}

.status-row-normal td {
    background-color: rgba(100, 116, 139, 0.08);
}

.status-row-yellow td {
    background-color: rgba(250, 204, 21, 0.10);
}

.status-row-orange td {
    background-color: rgba(251, 146, 60, 0.10);
}

.status-row-red td {
    background-color: rgba(239, 68, 68, 0.10);
}

.component-tree {
    list-style: none;
    margin: 0;
    padding-left: 18px;
}

.component-tree > li {
    margin-bottom: 10px;
}

.component-node {
    border: 1px solid var(--border);
    background: rgba(30, 41, 59, 0.85);
    padding: 12px 14px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.component-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.component-header {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.component-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.component-maintenance-summary {
    margin-top: 8px;
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--text-muted);
}

.component-actions {
    margin-top: 10px;
    font-size: 13px;
}

.component-actions a {
    display: inline-block;
}

.component-tree .component-tree {
    margin-top: 10px;
    padding-left: 20px;
    border-left: 2px solid #334155;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: rgba(30, 41, 59, 0.92);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 24px;
}

.auth-card h1 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #fff;
    font-size: 24px;
}

.auth-card p {
    color: var(--text-muted);
    margin-bottom: 18px;
    font-size: 13px;
}

@media (max-width: 900px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 260px;
        height: 100vh;
        position: fixed;
        top: 0;
        left: -260px;
        z-index: 1000;
        border-right: 1px solid var(--border);
        border-bottom: none;
        padding: 18px 14px;
        overflow-y: auto;
        transition: left 0.25s ease;
    }

    .sidebar.sidebar-open {
        left: 0;
    }

    .sidebar-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 14px;
        right: 14px;
        width: 30px;
        height: 30px;
        background: transparent;
        border: 1px solid var(--border);
        border-radius: 6px;
        color: var(--text-muted);
        cursor: pointer;
        font-size: 14px;
        line-height: 1;
    }

    .sidebar-close-btn:hover {
        color: #fff;
        border-color: var(--primary);
    }

    .hamburger-btn {
        display: flex;
    }

    .main {
        width: 100%;
    }

    .topbar {
        min-height: 52px;
        padding: 0 16px;
        flex-direction: row;
        align-items: center;
        gap: 0;
    }

    .topbar-right {
        display: none;
    }

    .content {
        padding: 16px;
    }

    .form-grid,
    .info-grid,
    .details-grid {
        grid-template-columns: 1fr;
    }

    .form-actions,
    .page-header,
    .page-header-actions,
    .section-actions,
    .actions-cell {
        flex-direction: column;
        align-items: stretch;
    }

    .component-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    th,
    td {
        white-space: nowrap;
    }
}

@media (max-width: 600px) {
    html,
    body {
        font-size: 13px;
    }

    .card {
        padding: 14px;
        border-radius: 10px;
    }

    .brand {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .topbar-title {
        font-size: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .content {
        padding: 12px;
    }

    input,
    select,
    textarea,
    .btn {
        font-size: 16px;
    }

}

	.filter-bar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 12px;
	}

	.filter-row {
		display: flex;
		flex-wrap: wrap;
		gap: 12px;
		align-items: center;
	}

	/* Make each checkbox + text stay together */
	.filter-option {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		background: rgba(11, 18, 32, 0.65);
		border: 1px solid var(--border);
		border-radius: 8px;
		padding: 6px 10px;
		color: var(--text);
		font-size: 13px;
		line-height: 1;
		min-height: 32px;
		width: auto;              /* Important */
		flex: 0 0 auto;           /* Important */
	}

	/* Fix checkbox being huge */
	.filter-option input[type="checkbox"] {
		width: 14px;
		height: 14px;
		margin: 0;
		accent-color: var(--primary);
	}


	/* Space between Due row and buttons */
	.filter-row.buttons-row {
		margin-top: 4px;
	}

/* PUBLIC LAYOUT */

.public-body {
    background: linear-gradient(180deg, #07152b 0%, #020b1d 100%);
    color: #ffffff;
}

.public-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.public-header {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
}

.public-header .public-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.public-logo {
    font-size: 24px;
    font-weight: bold;
    
}
.public-logo span {
    color: var(--primary);
}

.public-nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

.public-main {
    padding: 60px 0;
}

.public-footer {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 30px 0;
    margin-top: 60px;
    color: #aaa;
}

/* HERO */

.hero {
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 18px;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.hero-actions {
    display: flex;
    gap: 10px;
}

/* GRID */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

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

.upload-log-wrap {
    max-height: 252px;
    overflow-y: auto;
}

/* TABS */
.tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px;
    margin-bottom: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(11, 18, 32, 0.82) 0%, rgba(15, 23, 42, 0.78) 100%);
}

.tab-btn {
    appearance: none;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    font-family: inherit;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.tab-btn:hover {
    border-color: rgba(59, 130, 246, 0.2);
    color: #fff;
    background: rgba(59, 130, 246, 0.14);
}

.tab-btn:focus-visible {
    outline: none;
    border-color: rgba(96, 165, 250, 0.55);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.tab-btn.active {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.26) 0%, rgba(37, 99, 235, 0.2) 100%);
    border-color: rgba(96, 165, 250, 0.38);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 18px rgba(2, 6, 23, 0.32);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: tab-fade 0.18s ease-out;
}

@keyframes tab-fade {
    from {
        opacity: 0;
        transform: translateY(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-section {
    margin-bottom: 24px;
}

.tab-section-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

/* Clickable table rows for drill-down */
tr.clickable-row {
    cursor: pointer;
}

tr.clickable-row:hover td {
    background: rgba(59, 130, 246, 0.10);
    color: #fff;
}

tr.clickable-row td.date-link {
    color: var(--primary);
    font-weight: 600;
}

@media (max-width: 720px) {
    .tab-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        flex: 1 0 auto;
        white-space: nowrap;
    }
}

/* MACHINE PAGE TABS (reference-inspired) */
.machine-tabs {
    position: relative;
    display: flex;
    gap: 8px;
    align-items: flex-end;
    padding: 0 0 12px;
    margin-bottom: 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.machine-tabs::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(180deg, #040b1b 0%, #020611 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(56, 78, 119, 0.45);
}

.machine-tabs .tab-btn {
    position: relative;
    z-index: 1;
    min-width: 112px;
    padding: 10px 16px;
    border-radius: 10px 10px 0 0;
    border: 1px solid rgba(57, 76, 110, 0.7);
    border-bottom: 0;
    color: #9fb1cf;
    background: linear-gradient(180deg, rgba(30, 44, 69, 0.9) 0%, rgba(17, 26, 43, 0.95) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.machine-tabs .tab-btn:hover {
    color: #dbeafe;
    border-color: rgba(96, 165, 250, 0.55);
    background: linear-gradient(180deg, rgba(34, 53, 85, 0.94) 0%, rgba(18, 31, 56, 0.97) 100%);
}

.machine-tabs .tab-btn.active {
    color: #ffffff;
    border-color: rgba(96, 165, 250, 0.7);
    background: linear-gradient(180deg, rgba(63, 125, 232, 0.45) 0%, rgba(38, 84, 177, 0.56) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 20px rgba(19, 57, 120, 0.35);
}

@media (max-width: 720px) {
    .machine-tabs {
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .machine-tabs .tab-btn {
        min-width: auto;
        white-space: nowrap;
    }
}
/* ===== DASHBOARD ===== */
.dashboard-stat {
    text-align: center;
    padding: 20px 16px;
}

.dashboard-stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.dashboard-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-stat-orange {
    border-top: 3px solid var(--orange);
}

.dashboard-stat-yellow {
    border-top: 3px solid var(--warning);
}

.dashboard-next-due {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 180px;
}

.dashboard-next-due-action {
    font-weight: 500;
    color: var(--text);
    font-size: 13px;
}

.dashboard-next-due-detail {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.text-muted {
    color: var(--text-muted);
}
