/* ============================================
   M2 BUSINESS HUB - CSS STYLES
   ============================================ */

/* Root CSS Variables */
:root {
    --primary-color: #2563eb;
    --secondary-color: #059669;
    --danger-color: #dc2626;
    --warning-color: #f59e0b;
    --dark-bg: #1f2937;
    --light-bg: #f9fafb;
    --text-dark: #111827;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* ============ RESET & GLOBAL STYLES ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
}

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

a:hover {
    color: #1d4ed8;
}

/* ============ CONTAINER ============ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============ NAVBAR ============ */
.navbar {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #374151 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.navbar .logo {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.navbar .navbar-logo {
    width: auto;
    height: 1.5rem;
    margin-top: 0.1rem;
    object-fit: contain;
    flex: 0 0 auto;
}

.navbar .logo-copy {
    min-width: 0;
}

.navbar .logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.navbar .logo p {
    font-size: 0.85rem;
    opacity: 0.9;
    color: #d1d5db;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.navbar .nav-links a {
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transition);
    position: relative;
}

.navbar .nav-links a:hover,
.navbar .nav-links a.active {
    background-color: var(--primary-color);
    color: white;
}

/* Table content wraps to its column, including long addresses and identifiers. */
table { table-layout: fixed; width: 100%; }
th, td { white-space: pre-line; overflow-wrap: anywhere; word-break: normal; }
th .btn, td .btn { white-space: normal; }

/* ============ BUTTONS ============ */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

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

.btn-secondary {
    background-color: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

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

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

.btn-success {
    background-color: var(--secondary-color);
    color: white;
}

.btn-success:hover {
    background-color: #047857;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

/* ============ MAIN CONTENT ============ */
main {
    min-height: calc(100vh - 200px);
}

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.action-buttons .btn {
    min-width: 200px;
}

/* ============ STATS SECTION ============ */
.stats {
    background-color: var(--light-bg);
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-card p {
    color: var(--text-light);
    font-size: 1rem;
}

/* ============ INFO SECTION ============ */
.info {
    padding: 3rem 0;
}

.info h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-list li {
    padding: 1.5rem;
    background-color: var(--light-bg);
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
}

.feature-list li:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(4px);
}

/* ============ PAGE CONTENT ============ */
.page-content {
    padding: 3rem 0;
}

.page-content h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

/* Compact record lists: forms and printed reports retain their wrapping. */
.record-list-scroll { width: 100%; overflow-x: auto; margin: 18px 0 24px; border: 1px solid var(--border-color); border-radius: 8px; }
.record-list-scroll:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }
table.record-list { width: 100%; min-width: 950px; table-layout: fixed; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
table.record-list th, table.record-list td { padding: 8px 12px; line-height: 1.35; height: 38px; box-sizing: border-box; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; vertical-align: middle; font-size: .82rem; }
table.record-list th { font-size: .72rem; }
table.record-list th:last-child, table.record-list td:last-child { width: 195px; overflow: visible; text-align: right; }
table.record-list td[colspan] { text-align: center; }
table.record-list td button, table.record-list td a.btn, table.record-list td:last-child a { display: inline-flex; align-items: center; justify-content: center; width: auto; min-width: 0; padding: 4px 8px; margin: 0 0 0 3px; font-size: .75rem; line-height: 1.25; white-space: nowrap; vertical-align: middle; border-radius: 4px; text-decoration: none; }
table.record-list td button:not(.btn), table.record-list td:last-child a:not(.btn) { border: 1px solid var(--border-color); background: #fff; color: var(--primary-color); cursor: pointer; }
table.record-list .status-badge { padding: 3px 7px; font-size: .72rem; white-space: nowrap; }
table.record-list--registry { min-width: 1250px; }
table.record-list--registry th:last-child { width: 135px; }
table.record-list--registry th:nth-child(1), table.record-list--registry th:nth-child(2) { width: 16%; }
table.record-list--customers th:first-child { width: 23%; }
table.record-list--customers th:last-child, table.record-list--users th:last-child { width: 135px; }
table.record-list--catalog th:nth-child(3) { width: 30%; }
table.record-list--catalog th:nth-child(4) { width: 120px; }
table.record-list--quotes th:nth-child(2) { width: 23%; }
table.record-list--quotes th:nth-child(4), table.record-list--reports th:nth-child(4) { width: 110px; }
table.record-list--quotes th:nth-child(5) { width: 160px; }
table.record-list--reports th:nth-child(5), table.record-list--reports th:nth-child(6) { width: 100px; }

/* ============ TABLES ============ */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    box-shadow: var(--shadow);
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
}

table thead {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #374151 100%);
    color: white;
}

table th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

table tbody tr {
    transition: var(--transition);
}

table tbody tr:hover {
    background-color: var(--light-bg);
}

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

.machines-table,
.reports-table {
    margin-bottom: 2rem;
}

/* ============ FILTERS ============ */
.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.filters select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    transition: var(--transition);
    min-width: 200px;
}

.filters select:hover,
.filters select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* ============ FORMS ============ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background-color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============ MODALS ============ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.modal-content.modal-lg {
    max-width: 800px;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.close {
    float: right;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.close:hover {
    color: var(--text-dark);
}

/* ============ REPORT STYLES ============ */
.report-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.report-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.report-header h2 {
    font-size: 1.75rem;
    color: var(--text-dark);
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.status-badge.status-completed {
    background-color: #d1fae5;
    color: #065f46;
}

.status-badge.status-archived {
    background-color: #e5e7eb;
    color: #374151;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.report-section {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
}

.report-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.info-item label {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 150px;
}

.info-item span {
    color: var(--text-light);
    text-align: right;
    flex: 1;
}

/* ============ FOOTER ============ */
footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #374151 100%);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
}

footer p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ============ UTILITY CLASSES ============ */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.hidden {
    display: none !important;
}

.success { color: var(--secondary-color); }
.error { color: var(--danger-color); }
.warning { color: var(--warning-color); }

/* ============ ALERT/MESSAGE STYLES ============ */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-success {
    background-color: #d1fae5;
    border-color: var(--secondary-color);
    color: #065f46;
}

.alert-error {
    background-color: #fee2e2;
    border-color: var(--danger-color);
    color: #7f1d1d;
}

.alert-warning {
    background-color: #fef3c7;
    border-color: var(--warning-color);
    color: #92400e;
}

.alert-info {
    background-color: #dbeafe;
    border-color: var(--primary-color);
    color: #1e3a8a;
}

/* ============ RESPONSIVE DESIGN ============ */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .navbar .logo h1 {
        font-size: 1.25rem;
    }

    .navbar .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .navbar .nav-links a {
        padding: 0.4rem 0.8rem;
    }

    .hero h2 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
    }

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

    .filters {
        flex-direction: column;
    }

    .filters select {
        width: 100%;
        min-width: unset;
    }

    table {
        font-size: 0.85rem;
    }

    table th,
    table td {
        padding: 0.75rem 0.5rem;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }

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

    .report-actions {
        flex-direction: column;
    }

    .report-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .report-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .status-badge {
        align-self: flex-start;
    }

    .info-item {
        flex-direction: column;
    }

    .info-item label {
        min-width: unset;
        margin-bottom: 0.25rem;
    }

    .info-item span {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .navbar .logo h1 {
        font-size: 1rem;
    }

    .navbar .logo p {
        font-size: 0.75rem;
    }

    .navbar .nav-links {
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .page-content h2 {
        font-size: 1.5rem;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .stat-card h3 {
        font-size: 2rem;
    }

    .btn-small {
        padding: 0.4rem 0.7rem;
        font-size: 0.75rem;
        margin-right: 0.25rem;
    }
}

/* Application shell: fixed top bar and collapsible left navigation. */
:root { --topbar-height: 68px; --sidebar-width: 245px; --sidebar-collapsed-width: 70px; }
body { padding-top: var(--topbar-height); }
.navbar { position: fixed; inset: 0 0 auto 0; height: var(--topbar-height); padding: 0; background: #fff; color: var(--text-dark); border-bottom: 1px solid var(--border-color); box-shadow: var(--shadow); z-index: 300; }
.navbar .container { height: 100%; max-width: none; padding: 0 24px; }
.navbar .logo { align-items: center; }
.navbar .navbar-logo { height: 42px; margin: 0; }
.navbar .logo h1 { color: var(--text-dark); margin: 0; font-size: 1.25rem; }
.navbar .logo p { display: none; }
.navbar .nav-links { position: fixed; left: 0; top: var(--topbar-height); bottom: 0; width: var(--sidebar-width); padding: 16px 10px; margin: 0; display: flex; flex-direction: column; align-items: stretch; gap: 3px; overflow-y: auto; background: #1f2937; box-shadow: 2px 0 8px rgba(0,0,0,.12); transition: width .2s ease; z-index: 250; }
.navbar .nav-links a { display: block; white-space: nowrap; color: #e5e7eb; padding: .8rem .9rem; border-radius: 6px; }
.navbar .nav-links a:hover, .navbar .nav-links a.active { background: #2563eb; color: #fff; }
.navbar .nav-links li:last-child { position: fixed; top: 10px; right: 20px; }
.navbar .nav-links li:last-child a { color: var(--text-dark); padding: .65rem .8rem; }
.navbar .nav-links li:last-child a:hover { color: #fff; }
main, footer { margin-left: var(--sidebar-width); transition: margin-left .2s ease; }
.sidebar-toggle { position: fixed; left: calc(var(--sidebar-width) - 18px); top: 84px; width: 36px; height: 36px; border: 1px solid var(--border-color); border-radius: 50%; background: #fff; color: #374151; cursor: pointer; z-index: 301; box-shadow: var(--shadow); transition: left .2s ease; }
body.sidebar-collapsed .navbar .nav-links { width: var(--sidebar-collapsed-width); }
body.sidebar-collapsed main, body.sidebar-collapsed footer { margin-left: var(--sidebar-collapsed-width); }
body.sidebar-collapsed .sidebar-toggle { left: calc(var(--sidebar-collapsed-width) - 18px); }
@media (max-width: 768px) { .navbar .logo h1 { font-size: .95rem; } .navbar .navbar-logo { height: 34px; } .navbar .nav-links { width: var(--sidebar-width); transform: translateX(-100%); } body.sidebar-open .navbar .nav-links { transform: translateX(0); } main, footer { margin-left: 0; } .sidebar-toggle { left: 12px; top: 78px; } }

/* M2 Business Hub visual system: clean enterprise workspace. */
:root { --primary-color: #be123c; --primary-dark: #9f1239; --m2-ink: #1f2937; --m2-surface: #f5f6f8; --m2-line: #e5e7eb; }
body { background: var(--m2-surface); color: var(--m2-ink); font-size: 15px; }
.navbar { background: #fff; border-bottom: 1px solid var(--m2-line); box-shadow: 0 1px 2px rgba(15,23,42,.06); }
.navbar .container { padding: 0 30px; }
.navbar .navbar-logo { height: 38px; }
.navbar .logo { gap: 12px; }
.navbar .logo h1 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
.navbar .nav-links { background: #fff; border-right: 1px solid var(--m2-line); box-shadow: none; padding: 18px 12px; }
.navbar .nav-links::before { content: 'WORKSPACE'; color: #9ca3af; font-size: 10px; font-weight: 700; letter-spacing: .08em; padding: 8px 12px 10px; }
.navbar .nav-links a { color: #4b5563; border-radius: 5px; font-weight: 600; padding: .7rem .8rem; }
.navbar .nav-links a:hover { color: var(--primary-color); background: #fff1f2; }
.navbar .nav-links a.active { color: #fff; background: linear-gradient(135deg, var(--primary-color), #e11d48); box-shadow: 0 4px 10px rgba(190,18,60,.22); }
.navbar .nav-links li:last-child a { color: #4b5563; font-weight: 600; }
.navbar .nav-links li:last-child a:hover { background: #fff1f2; color: var(--primary-color); }
main { padding: 26px 28px 36px; }
.container.page-content { max-width: 1520px; }
.page-content > h2, .page-content > div:first-child h2 { font-size: 1.55rem; letter-spacing: -.025em; margin-bottom: 6px; }
.page-content > p { color: #6b7280; }
.sidebar-toggle { background: #fff; color: var(--primary-color); border-color: var(--m2-line); width: 32px; height: 32px; top: 84px; }
.sidebar-toggle:hover { color: #fff; background: var(--primary-color); border-color: var(--primary-color); }
.machines-table, .reports-table { background: #fff; border: 1px solid var(--m2-line); border-radius: 8px; overflow: hidden; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.machines-table th, .reports-table th { background: #f9fafb; color: #6b7280; font-size: .73rem; letter-spacing: .04em; text-transform: uppercase; }
.machines-table td, .reports-table td { border-color: var(--m2-line); }
.report-section, .hub-card, .catalog-section, .q { background: #fff; border-color: var(--m2-line); box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.btn { border-radius: 5px; box-shadow: none; }
.btn-primary { background: var(--primary-color); }
.btn-primary:hover { background: var(--primary-dark); }
.form-group input, .form-group select, .form-group textarea { border-color: #d1d5db; border-radius: 5px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(190,18,60,.12); }
body.sidebar-collapsed .navbar .nav-links::before { font-size: 0; padding: 6px 0; }
@media (max-width: 768px) { main { padding: 20px 14px 28px; } .navbar .container { padding: 0 16px; } }

/* SVG navigation icons remain visible when desktop labels are collapsed. */
.navbar .nav-links a { display: flex; align-items: center; gap: 11px; min-height: 42px; }
.navbar .nav-icon { width: 21px; height: 21px; flex: 0 0 21px; display: inline-flex; }
.navbar .nav-icon svg { width: 100%; height: 100%; }
.navbar .nav-label { overflow: hidden; text-overflow: ellipsis; }
.navbar .nav-links a:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }
@media (min-width: 769px) {
    body.sidebar-collapsed .navbar .nav-links li:not(.nav-account) a { justify-content: center; gap: 0; padding: .7rem .25rem; }
    body.sidebar-collapsed .navbar .nav-links li:not(.nav-account) .nav-label { display: none; }
}
@media (max-width: 768px) {
    body.sidebar-collapsed .navbar .nav-links { width: var(--sidebar-width); }
    body.sidebar-collapsed .navbar .nav-links::before { font-size: 10px; padding: 8px 12px 10px; }
}
