/* Smaller dashboard table variant for dashboard */
.dashboard-table.dashboard-table-small {
    font-size: 13px;
    width: 80%;
    margin: 0 auto 10px auto;
}

/* Set explicit column widths for first two tables (Placements and Sales) */
.dashboard-table.dashboard-table-small th,
.dashboard-table.dashboard-table-small td {
    width: 60%;
}
.dashboard-table.dashboard-table-small th:last-child,
.dashboard-table.dashboard-table-small td:last-child {
    width: 40%;
}
/* Custom Dashboard Grids for Spacing */
.dashboard-grid1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 64px;
}

.dashboard-grid2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 64px;
}
/* Wider layout for the three Loads tables so content doesn't overflow */
.dashboard-loads .dashboard-card {
    width: 260px; /* increase from default 220px */
}

@media (min-width: 1200px) {
    .dashboard-loads .dashboard-card {
        width: 300px; /* give more room on large screens */
    }
}

/* Ensure the compact small table uses full card width in loads sections */
.dashboard-loads .dashboard-table.dashboard-table-small {
    width: 100%;
}

/* Company user banner centered heading */
.company-banner {
    background-color: #e8f5e8;
    padding: 14px 10px;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    text-align: center;
    max-width: 480px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.company-banner h2 {
    margin: 0;
    color: #2e7d32;
    font-size: 1.65rem;
    letter-spacing: .5px;
    font-weight: 600;
}
/* Dashboard Section Breaks */
.dashboard-section-break {
    width: 100%;
    height: 0;
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 56px 0 56px 0;
    display: block;
}
/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
}

body.sidebar-visible .content {
    margin-left: 220px;
}

/* Login Page Styles */
.login-container {
    width: 350px;
    margin: 80px auto;
    padding: 40px 30px;
    background-color: #ffffff;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    margin-bottom: 20px;
}

.logo img {
    width: 250px;
    height: auto;
}

.login-container h2 {
    margin-bottom: 30px;
    color: #333;
}

.profile-type-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    font-size: 1.2rem;
    background: linear-gradient(90deg, #4e54c8 0%, #8f94fb 100%);
    color: #fff;
    padding: 10px 30px;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(78, 84, 200, 0.15);
    font-weight: 500;
    letter-spacing: 1px;
    width: fit-content;
    min-width: 180px;
}

.manage-users-container {
    max-width: 400px;
    margin: 40px auto;
    background: #fff;
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.manage-users-form label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: 500;
}
.manage-users-form input,
.manage-users-form select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-bottom: 15px;
}
.manage-users-form button {
    width: 100%;
    padding: 10px;
    background: linear-gradient(90deg, #4e54c8 0%, #8f94fb 100%);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}
.alert {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}
.alert-danger {
    background: #ffdddd;
    color: #a94442;
}
.alert-success {
    background: #ddffdd;
    color: #3c763d;
}

/* Form Styles */
.form-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 40px 30px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


.form-container h1 {
    text-align: center;
    margin-bottom: 40px;
}

/* Form Row */
.form-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
}

/* Centered variant for a single-column row */
.form-row.centered {
    justify-content: center;
}

.form-section {
    width: 48%;
    box-sizing: border-box;
    margin-bottom: 30px;
}

/* Narrow centered section to keep inputs visually focused */
.form-section.centered-narrow {
    width: 100%;
    max-width: 520px;
}

.form-section h2 {
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 25px;
    color: #333;
}

@media (max-width: 1024px) {
    .form-row {
        flex-wrap: wrap;
    }
    .form-section {
        width: 100%;
        margin-bottom: 40px;
    }
    .form-section.centered-narrow {
        max-width: 100%;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-input:focus {
    border-color: #1e90ff;
    outline: none;
    box-shadow: 0 0 5px rgba(30, 144, 255, 0.5);
}

select.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    background-color: #ffffff;
}

select.form-input:focus {
    border-color: #1e90ff;
    outline: none;
    box-shadow: 0 0 5px rgba(30, 144, 255, 0.5);
}

.options-container {
    margin-bottom: 20px;
}

.submit-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px;
    background-color: #1e90ff;
    border: none;
    border-radius: 4px;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    text-align: center;
}

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

.btn-small {
    width: auto;
    padding: 12px 20px;
    font-size: 16px;
}

.btn-submit {
    background-color: #1e90ff;
}

.btn-submit:hover {
    background-color: #1c86ee;
}

/* Toggle buttons for pricing mode */
.btn-toggle {
    min-width: 180px;
}
.btn-toggle.active {
    background-color: #4158d0; /* distinct active color */
}

/* Success/Green Button */
.btn-success {
    background-color: #28a745;
}

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

/* Centered action row helper */
.center-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* Clear Button Styling */
.btn-clear {
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #dc3545;
    color: #dc3545;
    font-size: 18px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    width: 100%;
}

.btn-clear:hover {
    background-color: #dc3545;
    color: #ffffff;
}

.flashes {
    list-style-type: none;
    padding: 0;
    margin-bottom: 20px;
    text-align: center; /* Center-aligns text within the flash message container */
}

.flashes li {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    text-align: center; /* Center-aligns text within each flash message */
}

.flash.success {
    background-color: #d4edda;
    color: #155724;
}

.flash.danger {
    background-color: #f8d7da;
    color: #721c24;
}

.flash.warning {
    background-color: #fff3cd;
    color: #856404;
}

/* New Invoice page specific warning banner (yellow) */
.invoice-warning-banner {
    background-color: #fff9db; /* light yellow */
    border: 1px solid #ffe58f; /* soft yellow border */
    color: #614700; /* readable dark yellow-brown */
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 12px;
    text-align: center;
    font-weight: 600;
}

/* Grey-out disabled submit button visually */
.btn[disabled], .btn:disabled {
    background-color: #c8c8c8 !important;
    color: #6b6b6b !important;
    cursor: not-allowed !important;
    opacity: 1; /* keep consistent */
}

/* Dashboard Styles */
.dashboard-container {
    padding: 20px;
}

.dashboard-container h1 {
    text-align: center;
    margin-bottom: 30px;
}

.dashboard-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Dashboard Card and Table Styling */
.dashboard-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    width: 220px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dashboard-card.full-width {
    width: 100%;
    max-width: 700px;
    margin: 0 auto 20px auto;
    text-align: left;
}

.dashboard-card.full-width h2 {
    text-align: left;
    margin-bottom: 10px;
}

.dashboard-table, .table-container .table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.07);
    overflow: hidden;
    margin-bottom: 0;
}

.dashboard-table th, .dashboard-table td,
.table-container .table th, .table-container .table td {
    padding: 12px 15px;
    border: none;
    text-align: left;
    font-size: 15px;
}

.dashboard-table th, .table-container .table th {
    background-color: #f4f4f4;
    color: #333;
    font-weight: bold;
}

.dashboard-table tr:nth-child(even), .table-container .table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.dashboard-table tr:hover, .table-container .table tr:hover {
    background-color: #f1f1f1;
}

.dashboard-table thead tr:first-child th:first-child,
.dashboard-table tbody tr:first-child td:first-child,
.table-container .table thead tr:first-child th:first-child,
.table-container .table tbody tr:first-child td:first-child {
    border-top-left-radius: 12px;
}
.dashboard-table thead tr:first-child th:last-child,
.dashboard-table tbody tr:first-child td:last-child,
.table-container .table thead tr:first-child th:last-child,
.table-container .table tbody tr:first-child td:last-child {
    border-top-right-radius: 12px;
}
.dashboard-table tbody tr:last-child td:first-child,
.table-container .table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}
.dashboard-table tbody tr:last-child td:last-child,
.table-container .table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

.dashboard-card h3 {
    margin-bottom: 15px;
    color: #333;
}

.dashboard-card p {
    font-size: 32px;
    font-weight: bold;
    color: #1e90ff;
    margin: 0;
}

/* Sidebar Styles */
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 220px;
    background-color: #2c3e50;
    color: #ecf0f1;
    overflow-y: auto;
    padding-top: 20px;
}

#sidebar .sidebar-header {
    text-align: center;
    padding: 20px;
    background-color: #1a252f;
}

.sidebar-logo {
    max-width: 180px;
    max-height: 180px;
    width: auto;
    height: auto;
}

#sidebar .sidebar-header h2 {
    margin: 0;
    font-size: 24px;
}

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

#sidebar .sidebar-list li {
    padding: 15px 20px;
}

#sidebar .sidebar-list li a {
    color: #ecf0f1;
    text-decoration: none;
    display: block;
    font-size: 16px;
}

#sidebar .sidebar-list li a:hover {
    background-color: #34495e;
    color: #ffffff;
}

#sidebar .sidebar-list li.active > a {
    font-weight: bold;
    text-decoration: underline;
    color: #1abc9c;
}

/* Content Styles */
.content {
    padding: 20px;
}

/* Table Styles */
.table-container {
    max-width: 100%;
    overflow-x: auto;
    margin: 20px 0;
}

.table-container .table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
}

.table th,
.table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
    font-size: 15px;
}

.table th {
    background-color: #f4f4f4;
    color: #333;
    font-weight: bold;
}

.table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.table tr:hover {
    background-color: #f1f1f1;
}

.table .btn-edit {
    padding: 8px 12px;
    font-size: 14px;
    background-color: #1e90ff;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Flex container for action buttons in table cells */
.table td .action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.table .btn-edit:hover {
    background-color: #1c86ee;
}

@media (max-width: 768px) {
    #sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    #sidebar .sidebar-header h2 {
        font-size: 20px;
    }
    .content {
        margin-left: 0;
    }
}

/* Options Containers */
.options-container {
    margin-bottom: 20px;
}

.truck-size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: -5px;
}

.truck-size-options label {
    margin: 5px;
    padding: 8px 12px;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    transition: background-color 0.3s, color 0.3s;
    flex: 0 0 auto;
}

.truck-size-options input[type="radio"] {
    display: none;
}

.truck-size-options label:hover {
    background-color: #e6f7ff;
}

.truck-size-options input:checked + label {
    background-color: #1e90ff;
    color: #ffffff;
    border-color: #1e90ff;
}

.btn-reprint {
    color: #ffffff;
    background-color: #5cb85c;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    /* margin removed, use flex gap instead */
}

.btn-reprint:hover {
    background-color: #4cae4c;
}

/* Specific style for descriptions in database operations */
.dashboard-card .description {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin-top: 10px;
    padding: 6px 8px;
    line-height: 1.4;
    background-color: #f3f3f3;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Existing p styling for dashboard metrics remains unchanged */
.dashboard-card p {
    font-size: 32px;
    font-weight: bold;
    color: #1e90ff;
    margin: 0;
}

/* Material Options Styles (copied from truck-size-options) */
.material-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: -5px;
}

.material-options label {
    margin: 5px;
    padding: 8px 12px;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    transition: background-color 0.3s, color 0.3s;
    flex: 0 0 auto;
}

.material-options input[type="radio"] {
    display: none;
}

.material-options label:hover {
    background-color: #e6f7ff;
}

.material-options input:checked + label {
    background-color: #1e90ff;
    color: #ffffff;
    border-color: #1e90ff;
}

/* ============================= */
/* New Sale / New Placement Theming */
/* ============================= */
body.page-sale .form-container.sale-form {
    background: #fff3e0; /* light orange */
}
body.page-placement .form-container.placement-form {
    background: #e3f2fd; /* light blue */
}
body.page-expense .form-container.expense-form {
    background: #f3e5f5; /* light purple */
}

.page-title {
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.05;
}
.page-title-top {
    display: block;
    font-size: 1.9rem;
    letter-spacing: 3px;
    font-weight: 600;
}
.page-title-main {
    display: block;
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: 1px;
}
/* Color accents */
body.page-sale .page-title-top { color: #ff9800; }
body.page-sale .page-title-main { color: #e65100; }
body.page-placement .page-title-top { color: #1976d2; }
body.page-placement .page-title-main { color: #0d47a1; }
body.page-expense .page-title-top { color: #8e24aa; }
body.page-expense .page-title-main { color: #4a148c; }
body.page-companies .page-title-top { color: #2e7d32; }
body.page-companies .page-title-main { color: #1b5e20; }
body.page-trucks .page-title-top { color: #b71c1c; }
body.page-trucks .page-title-main { color: #7f1d1d; }
body.page-products .page-title-top { color: #d48806; }
body.page-products .page-title-main { color: #8c6d00; }
body.page-users .page-title-top { color: #1b5e20; }
body.page-users .page-title-main { color: #104314; }

/* Sidebar coloration for distinct actions */
#sidebar .sidebar-list li.new-sale-link a {
    background: linear-gradient(90deg, #ffe8d1 0%, #ffd4a6 100%);
    color: #5d3b00;
    border-radius: 4px;
}
#sidebar .sidebar-list li.new-placement-link a {
    background: linear-gradient(90deg, #d6ecff 0%, #bcdfff 100%);
    color: #00325d;
    border-radius: 4px;
}
#sidebar .sidebar-list li.new-sale-link.active > a {
    background: linear-gradient(90deg, #ffcc99 0%, #ffb366 100%);
    color: #3d2500;
}
#sidebar .sidebar-list li.new-placement-link.active > a {
    background: linear-gradient(90deg, #b0dbff 0%, #94ceff 100%);
    color: #002441;
}
#sidebar .sidebar-list li.new-expense-link a {
    background: linear-gradient(90deg, #eed9f4 0%, #dfbaf0 100%);
    color: #4a1161;
    border-radius: 4px;
}
#sidebar .sidebar-list li.new-expense-link.active > a {
    background: linear-gradient(90deg, #dba9eb 0%, #c98ae4 100%);
    color: #340b46;
}
#sidebar .sidebar-list li.view-expenses-link a {
    background: linear-gradient(90deg, #f4e6fa 0%, #e9d3f6 100%);
    color: #4a1161;
    border-radius: 4px;
}
#sidebar .sidebar-list li.view-expenses-link.active > a {
    background: linear-gradient(90deg, #e2c3f1 0%, #d5aceb 100%);
    color: #340b46;
}
#sidebar .sidebar-list li.new-expense-link a:hover,
#sidebar .sidebar-list li.view-expenses-link a:hover {
    filter: brightness(0.95);
}

/* View Placements & Sales coloring to match their NEW counterparts */
#sidebar .sidebar-list li.view-placements-link a {
    background: linear-gradient(90deg, #d6ecff 0%, #bcdfff 100%);
    color: #00325d;
    border-radius: 4px;
}
#sidebar .sidebar-list li.view-placements-link.active > a {
    background: linear-gradient(90deg, #b0dbff 0%, #94ceff 100%);
    color: #002441;
}
#sidebar .sidebar-list li.view-sales-link a {
    background: linear-gradient(90deg, #ffe8d1 0%, #ffd4a6 100%);
    color: #5d3b00;
    border-radius: 4px;
}
#sidebar .sidebar-list li.view-sales-link.active > a {
    background: linear-gradient(90deg, #ffcc99 0%, #ffb366 100%);
    color: #3d2500;
}

/* Companies light green */
#sidebar .sidebar-list li.companies-link a {
    background: linear-gradient(90deg, #e6f9e6 0%, #c9efc9 100%);
    color: #1b5e20;
    border-radius: 4px;
}
#sidebar .sidebar-list li.companies-link.active > a {
    background: linear-gradient(90deg, #c2e8c2 0%, #a6dba6 100%);
    color: #104314;
}

/* Trucks light red */
#sidebar .sidebar-list li.trucks-link a {
    background: linear-gradient(90deg, #fde2e2 0%, #f8c8c8 100%);
    color: #7f1d1d;
    border-radius: 4px;
}
#sidebar .sidebar-list li.trucks-link.active > a {
    background: linear-gradient(90deg, #f5b1b1 0%, #ef9999 100%);
    color: #5f1313;
}

/* Products yellow */
#sidebar .sidebar-list li.products-link a {
    background: linear-gradient(90deg, #fff8d1 0%, #ffed99 100%);
    color: #5a4700;
    border-radius: 4px;
}
#sidebar .sidebar-list li.products-link.active > a {
    background: linear-gradient(90deg, #ffe273 0%, #ffd54d 100%);
    color: #3d3000;
}

/* Users dark green */
#sidebar .sidebar-list li.users-link a {
    background: #2e7d32;
    color: #ffffff;
    border-radius: 4px;
}
#sidebar .sidebar-list li.users-link.active > a {
    background: #1b5e20;
    color: #ffffff;
}

/* Invoices dark purple (both new and view) */
#sidebar .sidebar-list li.new-invoice-link a,
#sidebar .sidebar-list li.view-invoices-link a {
    background: #4a148c;
    color: #ffffff;
    border-radius: 4px;
}
#sidebar .sidebar-list li.new-invoice-link.active > a,
#sidebar .sidebar-list li.view-invoices-link.active > a {
    background: #311b92;
    color: #ffffff;
}

/* Database operations dark purple */
#sidebar .sidebar-list li.database-link a {
    background: #4a148c;
    color: #ffffff;
    border-radius: 4px;
}
#sidebar .sidebar-list li.database-link.active > a {
    background: #311b92;
    color: #ffffff;
}

/* Instructions yellow */
#sidebar .sidebar-list li.instructions-link a {
    background: linear-gradient(90deg, #fff8d1 0%, #ffed99 100%);
    color: #5a4700;
    border-radius: 4px;
}
#sidebar .sidebar-list li.instructions-link.active > a {
    background: linear-gradient(90deg, #ffe273 0%, #ffd54d 100%);
    color: #3d3000;
}

/* Shared hover for all custom colored links */
#sidebar .sidebar-list li.companies-link a:hover,
#sidebar .sidebar-list li.trucks-link a:hover,
#sidebar .sidebar-list li.products-link a:hover,
#sidebar .sidebar-list li.users-link a:hover,
#sidebar .sidebar-list li.new-invoice-link a:hover,
#sidebar .sidebar-list li.view-invoices-link a:hover,
#sidebar .sidebar-list li.database-link a:hover,
#sidebar .sidebar-list li.instructions-link a:hover,
#sidebar .sidebar-list li.view-placements-link a:hover,
#sidebar .sidebar-list li.view-sales-link a:hover {
    filter: brightness(0.95);
}

/* Dashboard teal styling */
#sidebar .sidebar-list li.dashboard-link a {
    background: linear-gradient(90deg, #e0f7f9 0%, #b2ebf2 100%);
    color: #004d4f;
    border-radius: 4px;
}
#sidebar .sidebar-list li.dashboard-link.active > a {
    background: linear-gradient(90deg, #80deea 0%, #4dd0e1 100%);
    color: #00383a;
}
#sidebar .sidebar-list li.dashboard-link a:hover {
    filter: brightness(0.95);
}

/* Logout dark red */
#sidebar .sidebar-list li.logout-link a {
    background: linear-gradient(90deg, #7f0000 0%, #9b1111 100%);
    color: #ffffff;
    border-radius: 4px;
}
#sidebar .sidebar-list li.logout-link.active > a {
    background: linear-gradient(90deg, #b71c1c 0%, #d32f2f 100%);
    color: #ffffff;
}
#sidebar .sidebar-list li.logout-link a:hover {
    filter: brightness(0.95);
}

/* Full-width colored nav items */
#sidebar .sidebar-list li.nav-colored { padding: 0; margin: 4px 10px; border-radius: 8px; }
#sidebar .sidebar-list li.nav-colored a { padding: 14px 18px; border-radius: 8px; }
#sidebar .sidebar-list li.nav-colored a { transition: font-size 0.18s ease, background-color 0.25s ease; }
#sidebar .sidebar-list li.nav-colored.active > a { font-size: 20px; }
#sidebar .sidebar-list li.nav-colored:not(.active) > a { font-size: 16px; }

/* Remove underline from active colored items (rely on color) */
#sidebar .sidebar-list li.nav-colored.active > a { text-decoration: none; }

/* List page container theming */
.list-container {
    border-radius: 12px;
    padding: 24px 28px 36px 28px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.list-container .table-container .table {
    border-radius: 10px;
    overflow: hidden;
}
.placements-list { background: #e3f2fd; }
.sales-list { background: #fff3e0; }
.expenses-list { background: #f3e5f5; }
.companies-list { background: #e6f9e6; }
.trucks-list { background: #fde2e2; }
.products-list { background: #fff8d1; }
.users-list { background: #e2f2e2; }

/* Strike-through styling for deleted sales/placements rows (exclude 'Deleted' and 'Actions' columns) */
table.table tr.deleted-row td:nth-child(-n+9) {
    text-decoration: line-through;
}

/* ReadOnly manual truck input visual (still submits value) */
.disabled-field {
    background-color: #eee !important;
    color: #666 !important;
    cursor: not-allowed;
}

/* Adjust page-title inside list variant */
.page-title.list { margin-bottom: 12px; }
.page-title.list .page-title-top { font-size: 1.2rem; letter-spacing: 4px; }
.page-title.list .page-title-main { font-size: 2.4rem; }

/* Slight hover emphasis maintaining theme */
#sidebar .sidebar-list li.new-sale-link a:hover {
    filter: brightness(0.95);
}
#sidebar .sidebar-list li.new-placement-link a:hover {
    filter: brightness(0.95);
}
