
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
}

.header {
    width: 100%;
    text-align: left;
    background-color: #007bff;
    color: #fff;
}

/* Home: compact FX strip under main site header */
.home-fx-banner {
    font-size: 0.72rem;
    line-height: 1.45;
    color: #5a6570;
    background: linear-gradient(180deg, #eef2f6 0%, #e8ecf1 100%);
    border: 1px solid #d8dee6;
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    margin-bottom: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
}

.home-fx-banner__intro {
    font-weight: 600;
    color: #3d4a55;
    letter-spacing: 0.02em;
    /* Mobile: title on its own line above the rate chips */
    flex: 1 1 100%;
    width: 100%;
    margin-bottom: 0.2rem;
}

.home-fx-banner__chip {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid #dce2ea;
    border-radius: 6px;
    padding: 0.28rem 0.5rem;
    font-variant-numeric: tabular-nums;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    align-items: flex-start;
}

.home-fx-banner__pair {
    display: block;
    line-height: 1.3;
}

.home-fx-banner__pair--sub {
    font-size: 0.65rem;
    color: #7a8694;
    font-weight: 400;
}

.home-fx-banner__amt {
    font-weight: 600;
    color: #007bff;
}

.home-fx-banner__chip strong {
    color: #007bff;
    margin-right: 0.25rem;
    font-weight: 600;
}

.home-fx-banner__time {
    font-size: 0.68rem;
    color: #6b7785;
    flex: 1 1 100%;
}

.home-fx-banner__time--muted {
    font-style: italic;
    color: #8e9aa8;
}

@media (min-width: 720px) {
    .home-fx-banner__intro {
        flex: 0 1 auto;
        width: auto;
        margin-bottom: 0;
    }

    .home-fx-banner__time {
        flex: 1 1 auto;
        margin-left: auto;
        text-align: right;
    }
}

/* Read-only payment status on view forms (is_paid from sync) */
.form-hint {
    font-size: 0.85em;
    font-weight: normal;
    color: #6c757d;
}

.status-yes {
    color: #198754;
    font-weight: 600;
}

.status-no {
    color: #6c757d;
    font-weight: 600;
}

.header_admin{
    background-color: orange !important;
}

.header_services {
    background-color: purple !important;
}

.password-container {
    position: relative;
    width: 100%;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
}

.password-match-hint {
    font-size: 0.875rem;
    margin: 0.35rem 0 0.75rem;
    min-height: 1.25rem;
}

.password-match-ok {
    color: #1a7f37;
    font-weight: 600;
}

.password-match-warn {
    color: #b45309;
}

button.username-suggestion,
.username-suggestion {
    background: none;
    background-color: transparent;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    color: inherit;
    box-shadow: none;
    border-radius: 0;
}

button.username-suggestion:hover,
button.username-suggestion:focus,
button.username-suggestion:active {
    background: none;
    background-color: transparent;
    color: inherit;
    text-decoration: underline;
    box-shadow: none;
}

.field-wrapper .password-container input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 0;
}

.login-intro {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    color: #444;
}

.login-help-links {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.9375rem;
}

.login-help-links a {
    color: #007bff;
    text-decoration: none;
}

.login-help-links a:hover {
    text-decoration: underline;
}

.password-rules {
    margin: 0 0 1rem;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.password-rules-heading {
    margin: 0 0 0.25rem;
    font-size: 0.875rem;
    color: #555;
    font-weight: 600;
}

.password-rule-line {
    margin: 0 0 0.15rem;
    padding: 0;
    font-size: 0.8125rem;
    color: #666;
    line-height: 1.35;
    font-weight: normal;
    overflow-wrap: anywhere;
}

.password-rule-line::before {
    content: "• ";
}

.logot {
    background-color: #007bff;
    box-shadow: none;
    text-align: right;
}

.logot_admin {
    background-color: orange;
}

.logot_services {
    background-color: purple;
}

.hunfrd {
    flex: 0 0 auto;
    margin-right: 0;
}

.lne {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    min-height: 56px;
    box-sizing: border-box;
}

.lne button {
    background-color: #fff;
    color: #007bff;
}

.lne_admin button {
    color: orange;
}

.lne_services button {
    color: purple;
}

.lne button:hover {
    background-color: #d9d9d9 !important;
    color: #007bff;
}

.lne_admin button:hover {
    color: orange !important;
}

.lne_services button:hover {
    color: purple !important;
}

.lne h1 {
    margin: 0;
    padding: 0;
    font-size: 1.5em;
    line-height: 1.2;
    flex: 1 1 auto;
    min-width: 0;
}

/* Header bar: keep logout button full size (not card-style form / not mobile-shrunk) */
.lne .logot {
    margin: 0;
}

.lne button,
.lne a.button {
    margin: 0;
    padding: 10px 20px;
    font-size: 1em;
    line-height: 1.2;
}

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

.left-buttons {
    display: flex;
    gap: 10px;
}

/* Dashboard office actions — not .left-buttons (hidden on narrow viewports) */
.dashboard-office-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 1rem;
}

.dashboard-office-actions .button {
    margin: 0;
}

.floating-add-button.button-orange:hover {
    background-color: rgb(212, 143, 16) !important;
}

a.button, button {
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    color: white;
    background-color: #007bff;
    border: none;
    padding: 10px 20px;
    margin: 10px 0px;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

a.button:hover, button:hover {
    background-color: #0056b3;
}

.cancel-button:hover {
    background-color: #b70517 !important;
    transition: background-color 0.3s ease;
}

.button-orange {
    background-color: orange !important;
}

.button-orange:hover {
    background-color: rgb(212, 143, 16) !important;
}

.button-red {
    background-color: rgb(255, 75, 75) !important;
}

.button-red:hover {
    background-color: rgb(234, 49, 49) !important;
}

.button-purple {
    background-color: purple !important;
}

.button-purple:hover {
    background-color: rgb(58, 3, 58) !important;
}

form button {
    width: auto; /* Adjust width to fit the content */
}

form .button-group {
    display: flex;
    justify-content: center;
    gap: 10px; /* Ensure there is space between the buttons */
}

ul {
    list-style: none;
    padding: 0;
}

li {
    background-color: white;
    padding: 10px 20px;
    margin: 10px 0;
    border-radius: 10px;
    box-shadow: inset 0px 0px 10px rgba(0, 123, 255, 0.2);
    font-weight: bold;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* width: 100%; */
    min-height: 60px;
}

.smaller li{
    width: 95%;
}

form {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
    display: block;
    box-sizing: border-box;
}

/* Header logout control — keep compact (not full-width card forms) */
form.logot {
    display: inline-block;
    width: auto;
    max-width: none;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

form label {
    font-size: 1em;
    margin-bottom: 5px;
}

form input, form textarea, form select {
    font-size: 1em;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}

form input[type="number"] {
    -moz-appearance: textfield;
    appearance: none;
}

form input::-webkit-outer-spin-button,
form input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.container {
    min-width: 40%;
    max-width: 80%;
    margin: 20px auto 0;
}

.expenses-container {
    width: 95%;
    max-width: 1400px;
    box-sizing: border-box;
}

/* Standalone auth pages (login, forgot password/username) — no app header/wrapper */
.auth-standalone {
    margin: 0;
    padding: 12px 16px 24px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.auth-standalone > .container.smaller {
    width: 100%;
    max-width: 420px;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
}

.auth-standalone .container.smaller > p,
.auth-standalone .login-intro,
.auth-standalone .login-help-links {
    overflow-wrap: anywhere;
    word-wrap: break-word;
    max-width: 100%;
}

.errors li{
    background-color: #ffe6e6;
    box-shadow: inset 0px 0px 10px rgb(255, 0, 0);
    color: red;
    /* padding: 10px; */
    /* margin-top: 10px; */
    /* border-radius: 5px; */
}

.time-input-container {
    display: flex;
    align-items: center;
}

.time-input {
    width: 40px;
    margin-right: 5px;
    text-align: center;
}

.time-input:focus {
    outline: none;
}

.job-info {
    flex-grow: 1;
}

.job-container {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    margin: 10px 0;
    /* background-color: white; */
    border-radius: 10px;
    box-shadow: inset 0px 0px 10px rgba(0, 123, 255, 0.2);
    font-weight: bold;
    color: #333;
    /* width: 100%; */
    position: relative;
}

.job-container .customer-name {
    text-align: left;
    min-width: 150px;
}

/* VIP jobs: badge (crown + label share one line-height; icon scales with badge font) */
.job-vip-badge {
    position: absolute;
    left: 20px;
    bottom: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5c4300;
    background: linear-gradient(145deg, #fff3cd, #f0c14b);
    border: 1px solid #d4a017;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    z-index: 2;
    line-height: 1;
}

.job-vip-badge .fa-crown {
    color: #b8860b;
    font-size: 1.15em;
    line-height: 1;
}

.job-vip-badge_text {
    line-height: 1;
    top: 1px;
}

/* Past jobs: icon + VIP in one row; spacing from .job-bottom-left-cluster gap */
.job-bottom-left-cluster {
    position: absolute;
    left: 20px;
    bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
}

.job-bottom-left-cluster .job-type-icon {
    position: static;
    left: auto;
    bottom: auto;
}

.job-bottom-left-cluster .job-vip-badge {
    position: static;
    left: auto;
    bottom: auto;
}

/* Detail / view headers: badge in flow next to title */
.job-vip-badge--lg {
    position: static;
    left: auto;
    bottom: auto;
    font-size: 0.82rem;
    padding: 5px 12px;
    margin-left: 10px;
    vertical-align: middle;
}

.job-container .job-info {
    display: flex;
    flex: 3;
    justify-content: space-between;
    align-items: center;
    gap: 10px; /* Adjust gap as needed */
}

.job-container .job-info span {
    flex: 1;
    text-align: center;
}

.job-container .button-group {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.view {
    padding: 50px;
}

.button-group {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.sbig {
    width: 15px;
    height: 15px;
    transform: scale(1.5);
    -webkit-transform: scale(1.5); /* For Safari */
    -moz-transform: scale(1.5); /* For Firefox */
    -ms-transform: scale(1.5); /* For Internet Explorer */
    -o-transform: scale(1.5); /* For Opera */
    margin: 5px;
    vertical-align: middle;
    margin-left: 10px;
}

/* Legacy tables without .app-table (unchanged simple style) */
table:not(.app-table) {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 1em;
    text-align: left;
}

table:not(.app-table) th,
table:not(.app-table) td {
    padding: 12px 15px;
    border: 1px solid #ddd;
}

table:not(.app-table) th {
    background-color: orange;
    color: white;
}

table:not(.app-table) tbody tr:nth-child(even) {
    background-color: #f4f4f4;
}

table:not(.app-table) tbody tr:hover {
    background-color: #f1f1f1;
}

/* Shared app tables (expenses, totals breakdowns, etc.) */
table.app-table,
#totals-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    font-size: 0.78rem;
    line-height: 1.35;
    text-align: left;
}

table.app-table th,
table.app-table td,
#totals-content table th,
#totals-content table td {
    padding: 8px 10px;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    vertical-align: middle;
}

table.app-table th:last-child,
table.app-table td:last-child,
#totals-content table th:last-child,
#totals-content table td:last-child {
    border-right: none;
}

table.app-table tbody tr:last-child td,
#totals-content table tbody tr:last-child td {
    border-bottom: none;
}

table.app-table thead th,
#totals-content table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: linear-gradient(180deg, #ffb54a 0%, #f59e0b 100%);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.01em;
}

table.app-table tbody tr:nth-child(even),
#totals-content table tbody tr:nth-child(even) {
    background: #fafafa;
}

table.app-table tbody tr:hover,
#totals-content table tbody tr:hover {
    background: #eef6ff;
}

table.app-table td[style*="text-align: center"],
#totals-content table td[style*="text-align: center"] {
    text-align: center !important;
    color: #6b7280;
    font-style: italic;
}

.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.column {
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    flex: 1;
    padding: 10px;
    min-width: 300px;
    margin: 0px;
}

.total-box {
    margin: 10px;
}

.chart-container {
    position: relative;
    width: 100%;
}

.overall_totals-text {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.chart-box {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    width: 32%;
    box-sizing: border-box;
}

.chart-box h3 {
    text-align: center;
}

.chart-container canvas {
    display: block;
    margin: 0 auto;
}

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

.form-group-inline {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}

/* Two-column fields (e.g. reset password): stack on mobile */
@media (max-width: 767px) {
    .form-group-inline--stack-mobile {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .auth-standalone > .container.smaller {
        width: calc(100% - 24px);
        max-width: none;
    }
}

/* .form-group-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group-inline .field-wrapper {
    flex: 1;
} */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-spinner {
    border: 16px solid #f3f3f3;
    border-top: 16px solid #3498db;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 160px;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
}

.dropdown-menu a:hover {
    background-color: #f0f0f0;
}

.job-tag-container {
    position: absolute;
    top: 8px;
    left: 10px;
    display: flex;
    gap: 5px;
}

.job-type-icon {
    position: absolute;
    bottom: 6px;
    left: 20px;
    font-size: 1.2em;
    text-shadow:
        -1px -1px 0 white,
         1px -1px 0 white,
        -1px  1px 0 white,
         1px  1px 0 white;
}

.job-added-by-tag,
.job-edited-by-tag {
    background-color: #eef;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 8px;
    line-height: 1.35;
    display: inline-block;
}

.white-job {
    background-color: white;
    box-shadow: inset 0px 0px 10px rgba(225, 209, 252, 0.944);
}

/* .orange-job {
    background-color: rgb(255, 183, 50);
    box-shadow: inset 0px 0px 10px rgba(153, 118, 3, 0.94);
} */
.orange-job {
    background-color: orange; 
    box-shadow: inset 0px 0px 10px rgba(42, 179, 8, 0.944);
}

.red-job {
    background-color: rgb(244, 87, 87);
    box-shadow: inset 0px 0px 10px rgba(245, 12, 12, 0.944);
}

.green-job {
    background-color: #8fed8f;
    box-shadow: inset 0px 0px 10px rgba(42, 179, 8, 0.944);
}

.cancel-button {
    text-align: center;
    background-color: red !important;
}

.red {
    color: red;
}

.black {
    color: black;
}

.sze {
    min-width: 70px;
}

.error-container .button:hover {
    background-color: #555;
}

.payment-container {
    border: 1.5px solid #d5d5d5;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nm {
    margin-top: 0px;
}

.bed-type-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 20px;
}

.bed-type-row label {
    text-align: center;
}

.bed-type-quantity {
    width: 40px;
    height: 40px;
    text-align: center;
    margin-bottom: 0px;
}

.bed-type-buttons {
    display: flex;
    flex-direction: column;
    margin-left: 5px;
}

.bed-type-minus,
.bed-type-plus {
    border-radius: 3px;
    width: 18px;
    height: 18px;
    padding: 0;
    font-size: 12px;
    cursor: pointer;
    margin: 1px 0;
}

.assign-driver-form-container {
    max-width: 350px;
    border-radius: 4px;
}

.assign-driver-form {
    display: flex;
    flex-direction: column;
}

.assign-driver-field {
    display: flex;
    flex-direction: column;
}

.assign-driver-select {
    padding: 6px;
    border-radius: 4px;
}

.assign-driver-submit-button {
    background-color: #4CAF50;
    color: white;
    padding: 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0%;
    margin-top: 10px;
}

.assign-driver-submit-button:hover {
    background-color: #45a049;
}

.assign-driver-form input,
.assign-driver-form textarea,
.assign-driver-form select {
    font-size: 1em;

    margin-bottom: 0px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.assign-driver-form p {
    margin: 0px;
}

.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Inset activity modal from screen edges */
#audit-detail-modal.modal {
    padding: 24px 20px;
    box-sizing: border-box;
    align-items: center;
}

.modal-content {
    position: relative;
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 8px; 
    width: 350px; 
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); 
    display: flex;
    justify-content: center;
    align-items: center;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #ff5e5e;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease-in-out;
}

.close-button:hover {
    color: #c2322d; 
}

.modal p {
    font-size: 18px;
    color: #333;
    margin: 0;
}

/* Form validation summaries: backend joins errors with newlines; preserve breaks and space them */
#modal-message {
    white-space: pre-line;
    text-align: left;
    line-height: 1.65;
    margin: 0;
    padding: 0.5rem 0 0;
    width: 100%;
    box-sizing: border-box;
    font-size: 17px;
}

.modal-content:has(#modal-message) {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: min(440px, calc(100vw - 48px));
    text-align: left;
}

/* Generate Invoice modal (jobs + shuttle) */
.invoice-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0 0.25rem;
}

.payment-link-warning {
    margin: 0 0 1rem;
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
    font-size: 0.95rem;
    line-height: 1.45;
}

.payment-link-message {
    margin: 0 0 1rem;
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.45;
    word-break: break-word;
}

.payment-link-amount-summary {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    line-height: 1.45;
}

.payment-link-modal-content {
    width: min(520px, calc(100vw - 32px));
    max-width: 520px;
    padding: 2rem 1.75rem 1.5rem;
}

.payment-link-modal-header {
    margin: 0 0 1.25rem;
}

.payment-link-modal-header .invoice-modal-title {
    margin: 0;
}

.payment-link-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.payment-link-preview-card {
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    padding: 1.5rem 1.25rem 1.35rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.payment-link-preview-label {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    letter-spacing: normal;
    text-transform: none;
}

.payment-link-preview-amount {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #1a2b4a;
    line-height: 1.2;
    word-break: break-word;
}

.payment-link-preview-amount--paid {
    font-size: 1.25rem;
    color: #047857;
}

.payment-link-preview-warning {
    margin: 0.85rem 0 0;
    padding: 0;
    border: none;
    background: transparent;
    color: #b45309;
    font-size: 0.8rem;
    line-height: 1.4;
    font-weight: 500;
    text-align: center;
}

.payment-link-section {
    margin-bottom: 1.35rem;
}

.payment-link-section-title {
    display: block;
    margin: 0 0 0.7rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
}

.payment-link-options {
    display: grid;
    gap: 0.65rem;
}

.payment-link-option-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
    color: #374151;
    font-size: 0.95rem;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.payment-link-option-row:hover {
    border-color: #d1d5db;
    background: #fafafa;
}

.payment-link-checkbox {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin: 0;
    accent-color: #f97316;
}

.payment-link-amount-input-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    height: 44px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.payment-link-amount-input-wrap:focus-within {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.payment-link-amount-prefix {
    display: flex;
    align-items: center;
    align-self: stretch;
    padding: 0 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1a2b4a;
    background: #f8fafc;
    border-right: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.payment-link-form input.payment-link-amount-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    outline: none;
    padding: 0 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.25;
    color: #111827;
    background: #fff;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.payment-link-amount-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.payment-link-modal-actions {
    margin-top: 0.5rem;
    padding-top: 1.35rem;
    border-top: 1px solid #e5e7eb;
}

.payment-link-helper {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.45;
}

.balance-due-summary {
    margin: 1.25rem 0 1.5rem;
    padding: 1rem 1.15rem;
    max-width: 360px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.balance-due-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin: 0 0 0.45rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.balance-due-summary__row:last-child {
    margin-bottom: 0;
}

.balance-due-summary__row--due {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid #e2e8f0;
}

.balance-due-summary__label {
    font-weight: 600;
    color: #475569;
}

.balance-due-summary__value {
    font-weight: 600;
    color: #1e293b;
    font-variant-numeric: tabular-nums;
}

.balance-due-summary__value--due {
    font-size: 1.05rem;
    color: #1a2b4a;
}

@media (max-width: 520px) {
    .payment-link-modal-content {
        padding: 1.5rem 1.15rem 1.25rem;
    }

    .payment-link-preview-amount {
        font-size: 1.85rem;
    }

    .payment-link-amount-input-wrap {
        height: 42px;
    }

    .payment-link-amount-prefix,
    .payment-link-form input.payment-link-amount-input {
        font-size: 0.95rem;
    }

    .payment-link-modal-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .payment-link-modal-actions .button {
        width: 100%;
        text-align: center;
    }
}

.payment-link-message--success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.payment-link-message--error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.payment-link-page-toast {
    margin: 0.5rem 0 0;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.45;
    word-break: break-word;
}

.payment-link-page-toast--success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.payment-link-page-toast--error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.modal-content.invoice-modal-content {
    width: min(480px, calc(100vw - 48px));
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    text-align: left;
    padding: 32px 28px 24px;
    box-sizing: border-box;
}

.invoice-modal-content form {
    width: 100%;
}

.invoice-modal-title {
    margin: 0 0 0.35rem;
    color: #1a2b4a;
    font-size: 1.35rem;
}

.invoice-modal-hint {
    margin: 0 0 1rem;
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.45;
}

.invoice-recipient-options {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    width: 100%;
}

.invoice-recipient-option {
    display: grid;
    gap: 0.45rem;
    padding: 0.85rem 0.95rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
    box-sizing: border-box;
}

.invoice-recipient-option.is-selected {
    border-color: #f97316;
    background: #fff7ed;
    box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.15);
}

.invoice-option-title {
    font-weight: 600;
    color: #1a2b4a;
}

.invoice-recipient-preview {
    color: #374151;
    font-size: 0.95rem;
}

.invoice-recipient-option input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.65rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    margin-top: 0.15rem;
}

.invoice-recipient-option input[type="text"]:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.15);
}

.invoice-stripe-option {
    margin: 0 0 1rem;
    color: #374151;
    font-size: 0.95rem;
}

.invoice-stripe-option label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
}

.invoice-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
    width: 100%;
}

/* Activity modal: same .modal / .modal-content / .close-button as error modals */
.modal-content-audit {
    width: min(600px, calc(100vw - 40px));
    max-width: 680px;
    max-height: 88vh;
    overflow-y: auto;
    overflow-x: hidden;
    text-align: left;
    align-items: flex-start;
    flex-direction: column;
    padding: 40px 44px 36px;
    justify-content: flex-start;
    box-sizing: border-box;
}

.audit-modal-title {
    margin: 0 0 22px;
    padding-right: 32px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #2c2c2c;
    width: 100%;
    text-align: left;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 14px;
}

.audit-modal-body {
    width: 100%;
    font-size: 0.72rem;
    line-height: 1.5;
    color: #3d3d3d;
}

.audit-modal-body .modal p,
.audit-modal-body p {
    font-size: inherit;
    margin: 0;
}

/* “Added” summary */
.audit-panel--added {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.audit-section-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 6px;
}

.audit-section-value {
    font-size: 0.8rem;
    color: #111827;
    font-weight: 500;
}

/* Edit history: one card per save */
.audit-history {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.audit-edit-block {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px 20px 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.audit-edit-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.audit-edit-user {
    font-size: 0.78rem;
    font-weight: 600;
    color: #1f2937;
}

.audit-edit-time {
    font-size: 0.68rem;
    color: #6b7280;
    font-variant-numeric: tabular-nums;
}

.audit-edit-body {
    padding-top: 2px;
}

.audit-change-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.audit-change-item {
    margin: 0 0 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eceff3;
}

.audit-change-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.audit-change-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin-bottom: 5px;
}

.audit-change-values {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    font-size: 0.72rem;
}

.audit-ch-old {
    color: #9ca3af;
    text-decoration: line-through;
    text-decoration-color: #d1d5db;
    max-width: 100%;
    word-break: break-word;
}

.audit-ch-arrow {
    color: #c4c9d1;
    flex-shrink: 0;
    font-weight: 600;
}

.audit-ch-new {
    color: #111827;
    font-weight: 500;
    max-width: 100%;
    word-break: break-word;
}

.audit-no-field-changes {
    margin: 0;
    font-size: 0.68rem;
    color: #9ca3af;
    font-style: italic;
}

.audit-muted {
    color: #6b7280;
    font-size: 0.72rem;
    margin: 0;
}

.audit-loading {
    color: #6b7280;
    font-size: 0.72rem;
    margin: 0;
}

.audit-tag-clickable {
    cursor: pointer;
}

.job-added-by-tag.audit-tag-clickable,
.job-edited-by-tag.audit-tag-clickable {
    cursor: pointer;
}

.audit-tag-clickable:hover {
    color: #5a2d82;
}

@media (max-width: 600px) {
    #audit-detail-modal.modal {
        padding: 14px 12px;
        box-sizing: border-box;
    }

    .modal-content-audit {
        width: 100%;
        max-width: min(100%, calc(100vw - 24px));
        padding: 14px 12px 12px;
        max-height: 90vh;
        border-radius: 6px;
    }

    .audit-modal-title {
        font-size: 0.58rem;
        margin: 0 0 10px;
        padding-right: 28px;
        padding-bottom: 8px;
        letter-spacing: 0.08em;
    }

    .audit-modal-body {
        font-size: 0.6rem;
        line-height: 1.4;
    }

    .audit-panel--added {
        gap: 12px;
    }

    .audit-section-label {
        font-size: 0.55rem;
        margin-bottom: 3px;
    }

    .audit-section-value {
        font-size: 0.65rem;
    }

    .audit-history {
        gap: 10px;
    }

    .audit-edit-block {
        padding: 10px 10px 8px;
        border-radius: 8px;
    }

    .audit-edit-header {
        margin-bottom: 8px;
        padding-bottom: 8px;
        gap: 4px 8px;
    }

    .audit-edit-user {
        font-size: 0.62rem;
    }

    .audit-edit-time {
        font-size: 0.55rem;
    }

    .audit-change-item {
        margin: 0 0 8px;
        padding-bottom: 8px;
    }

    .audit-change-label {
        font-size: 0.52rem;
        margin-bottom: 3px;
        letter-spacing: 0.04em;
    }

    .audit-change-values {
        font-size: 0.58rem;
        gap: 4px 6px;
    }

    .audit-no-field-changes,
    .audit-muted,
    .audit-loading {
        font-size: 0.58rem;
    }

    #audit-detail-modal .close-button {
        top: 6px;
        right: 8px;
        font-size: 22px;
    }
}

input[type="checkbox"][name$="-DELETE"] {
    display: none;
}

.toggle-header {
    cursor: pointer;
}

.mobile-message {
    text-align: center;
    font-size: 1.5em;
    color: red;
}

.mobile-buttons {
    display: flex;
    justify-content: center;
    gap: 1em;
    margin-top: 1em;
}

.badge {
    display: inline-block;
    padding: 0.3em 0.5em;
    border-radius: 5px;
    font-size: 0.8em;
    margin-left: 0.5em;
}

.badge-red {
    background-color: red;
    color: #fff;
}

.badge-orange {
    background-color: orange;
    color: #000;
}

.badge-green {
    background-color: lightgreen;
    color: #000;
}

.payment-entry.hidden {
    display: none;
}

.payment-hidden-fields {
    display: none;
}

.driver-assignment-section {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e0e0e0;
}

.assign-all-row {
    margin: 0.5rem 0 0.75rem;
}

.assign-all-multi-note {
    display: block;
    margin: 0.35rem 0 0 1.75rem;
    font-size: 0.875rem;
    color: #666;
}

.assign-all-row.assign-all-disabled {
    opacity: 0.6;
}

.field-help-text {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    color: #666;
}

.field-wrapper-locked select:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    background-color: #f4f4f4;
}

.booking-selection-heading {
    margin: 0 0 0.5rem;
}

.passenger-assignment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.passenger-assignment-item {
    margin: 0.5rem 0;
}

.passenger-assignment-label {
    display: flex;
    align-items: flex-start;
    gap: 0.25rem;
    cursor: pointer;
    line-height: 1.4;
}

.passenger-assignment-label.booking-unavailable {
    opacity: 0.5;
    cursor: not-allowed;
}

.passenger-assignment-details {
    flex: 1;
}

.passenger-assignment-name {
    font-weight: 600;
}

.no-passengers-note {
    margin: 0.25rem 0 0;
    color: #666;
}

.driver-payment-toggle-row {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.switch-toggle {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-toggle .slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #c9c9c9;
    transition: 0.2s;
    border-radius: 999px;
}

.switch-toggle .slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background-color: #fff;
    transition: 0.2s;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.switch-toggle input:checked + .slider {
    background-color: #4caf50;
}

.switch-toggle input:checked + .slider::before {
    transform: translateX(22px);
}

.toggle-state-label {
    min-width: 56px;
    font-weight: 600;
}

/* Pagination controls */
/* Expenses list: active filter chips */
.expense-filter-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.expense-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px 4px 10px;
    background: #e9ecef;
    color: #495057;
    border-radius: 6px;
    font-size: 0.9rem;
}
.expense-filter-tag-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    height: 1.4rem;
    border-radius: 4px;
    color: #6c757d;
    text-decoration: none;
    font-size: 1.15rem;
    line-height: 1;
    font-weight: 600;
}
.expense-filter-tag-remove:hover,
.expense-filter-tag-remove:focus {
    background: #dee2e6;
    color: #212529;
    text-decoration: none;
    outline: none;
}
.expense-filter-clear-all {
    font-size: 0.85rem;
    color: #6c757d;
    margin-left: 4px;
}
.expense-filter-clear-all:hover {
    color: #007bff;
}

.past-jobs-search-label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #444;
}
.past-jobs-search-wrap {
    position: relative;
    max-width: 36rem;
}
.past-jobs-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #cfd4dc;
    border-radius: 6px;
    font-size: 1rem;
}
.past-jobs-error {
    color: #b00020;
    margin: 1rem 0;
}

/* Past jobs: compact type filter (driving / shuttle / hotel) */
.past-jobs-type-filter {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 6px 0 14px;
}
.past-type-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 6px;
    border: 1px solid #cfd4dc;
    background: #fff;
    color: #4a5568;
    text-decoration: none;
    font-size: 0.95rem;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.past-type-btn:hover,
.past-type-btn:focus {
    border-color: #007bff;
    color: #007bff;
    outline: none;
}
.past-type-btn.active {
    border-color: #007bff;
    background: #e8f2ff;
    color: #0056b3;
}

.pagination {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
}

.pagination .step-links {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.pagination-btn,
.pagination .current-page {
    display: inline-block;
    font-size: 12px;
    padding: 6px 10px;
    margin: 0 2px;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s;
}

.pagination-btn {
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border: none;
}

.pagination-btn:hover {
    background-color: #0056b3;
}

.pagination .current-page {
    background-color: #f1f1f1;
    color: #333;
    font-weight: bold;
}

.pagination-btn:disabled,
.pagination-btn[disabled] {
    background-color: #cccccc;
    color: #666666;
    pointer-events: none;
    cursor: not-allowed;
}

.content {
    flex: 1;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.footer {
    text-align: center;
    width: 100%;
    background-color: #f4f4f4;
    padding: 10px 0;
}

.mobile-bottom-nav {
    display: none;
}

.floating-add-button-top {
    padding: 0%;
    display: flex;
    position: fixed;
    bottom: 160px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-decoration: none;
}

.material-symbols-outlined {
  font-size: 40px !important;
}

.floating-add-button {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    font-size: 24px;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-decoration: none;
}

.floating-add-button:hover {
    background-color: #0056b3;
}

.floating-job-dropdown {
    position: fixed;
    bottom: 130px;
    right: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    padding: 8px 0;
    min-width: 180px;
}

.floating-job-dropdown a {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
}

.floating-job-dropdown a:hover {
    background-color: #f0f0f0;
}

/* Set icon color to blue for mobile nav item icons */
.mobile-nav-item i {
    font-size: 26px;
    color: #007bff;
}

.mobile-nav-item div {
    color: #007bff;
    font-size: 13px;
    margin-top: 2px;
}

.advisory-text {
    font-size: 0.9em;
    color: #666666;
    font-weight: normal;
    margin-top: 0px;
    margin-bottom: 20px;
    list-style: none;
    padding-left: 0;
}

.advisory-text li {
    background: none;
    box-shadow: none;
    padding: 0;
    margin-top: -25px;
    margin-bottom: -10px;
    color: #666666;
    font-weight: normal;
    font-size: 0.9em;
}

/* Error text — bold red */
.error-text {
    color: red;
    font-weight: bold;
    margin-top: 4px;
    display: block;
}



/* Small laptop screens */
@media (max-width: 1200px) {

    .laptop {
        display: none;
    }



    /* Ipad screens */
    @media (max-width: 900px) {
        .tablet {
            display: none;
        }

        .job-container .customer-name {
            min-width: 90px;
        }

        .buttons {
            flex-wrap: wrap;
            gap: 10px;
        }

        .left-buttons {
            display: flex;
            flex-wrap: wrap;
        }
        
        .calc .container {
            max-width: 95%;
            margin: 10px;
        }

        .row {
            flex-wrap: nowrap;
        }

        #monthlyChart {
            width: 220px;
            height: 220px;
        }

        #yearlyChart {
            width: 220px;
            height: 220px;
        }

        .column {
            min-width: 80px;
            max-width: 500px;
            max-height: 600px;
        }

        #lineChart {
            max-width: 600px;
            margin: 0px -90px 0px 0px;
        }

        .all .column {
            max-width: 700px !important;
            justify-self: end;
        }


        /* regular Mobile screens */
        @media (max-width: 600px) {
            .overall_totals-text {
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
            }
            .container {
                max-width: 95%;
                margin: 0px auto 0;
            }

            .expenses-container {
                width: auto;
                max-width: 95%;
            }

            .content {
                padding: 10px;
            }

            .lne {
                padding: 12px 16px;
                min-height: 52px;
            }

            .lne h1 {
                font-size: 1.4em;
            }

            .container {
                min-width: 40%;
                max-width: 95%;
            }

            .job-container {
                width: auto;
            }

            form {
                width: auto;
            }

            li {
                width: auto;
            }

            .job-container .customer-name {
                min-width: 60px;
            }

            h2 {
                font-size: 1.2em;
            }

            .left-buttons {
                display: none;
            }

            .view {
                padding: 10px;
            }

            .phone {
                display: none;
            }

            .buttons {
                display: none;
            }

            .dashboard-add-user-desktop {
                display: none;
            }

            .pagination {
                font-size: 12px;
            }
        
            .pagination-btn,
            .pagination .current-page {
                font-size: 12px;
                padding: 4px 6px;
                margin: 0 1px;
            }
            

            .mobile-bottom-nav {
                position: fixed;
                bottom: 0;
                left: 0;
                width: 100%;
                height: 72px;
                padding-bottom: env(safe-area-inset-bottom, 0);
                background-color: #fff;
                border-top: 1px solid #ccc;
                display: flex;
                justify-content: space-around;
                align-items: center;
                z-index: 999;
                box-sizing: border-box;
            }

            .mobile-nav-item {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                min-height: 56px;
                font-size: 13px;
                color: #333;
                text-decoration: none;
            }

            .mobile-nav-item i {
                font-size: 28px;
                color: #007bff;
            }

            .floating-add-button {
                display: flex;
                bottom: 92px;
            }

            @media (max-width: 450px) {
                html {
                    font-size: 15px;
                }

                .lne {
                    padding: 12px 14px;
                    min-height: 52px;
                }

                .lne h1 {
                    font-size: 1.25em;
                }

                .lne h1 a {
                    display: inline-block;
                    max-width: 100%;
                }

                /* Do not use global small button rules in the top bar */
                .header .lne button,
                .header .lne a.button {
                    font-size: 0.95em;
                    padding: 9px 16px;
                    margin: 0;
                }

                .container {
                    max-width: 95%;
                }

                .content {
                    padding: 6px;
                }

                h2 {
                    font-size: 1.1em;
                }

                h3 {
                    font-size: 1.05em;
                }

                h4 {
                    font-size: 0.98em;
                }

                a.button,
                button {
                    font-size: 0.9em;
                    padding: 8px 14px;
                    margin: 6px 0;
                }

                .view {
                    padding: 8px;
                }

                .job-container {
                    padding: 8px 10px;
                }

                /* Match in-flow text: horizontal padding is 10px here, not 20px */
                .job-vip-badge {
                    left: 10px;
                }

                .job-vip-badge_text {
                    position: relative;
                }

                .job-bottom-left-cluster {
                    left: 10px;
                }

                .form-group {
                    margin-bottom: 0.65rem;
                }

                .small-phone {
                    display: none;
                }

                .mobile-bottom-nav {
                    height: 68px;
                }

                .mobile-nav-item {
                    font-size: 12px;
                    min-height: 52px;
                }

                .mobile-nav-item i {
                    font-size: 26px;
                }

                .floating-add-button {
                    bottom: 88px;
                }

                .pagination,
                .pagination-btn,
                .pagination .current-page {
                    font-size: 11px;
                }

                .pagination-btn,
                .pagination .current-page {
                    padding: 3px 5px;
                }

                /* Home FX: one horizontal row; hide inverse + refresh line to save height */
                .home-fx-banner {
                    flex-wrap: nowrap;
                    align-items: center;
                    overflow-x: auto;
                    -webkit-overflow-scrolling: touch;
                    font-size: 0.62rem;
                    line-height: 1.25;
                    padding: 0.35rem 0.45rem;
                    margin-bottom: 0.6rem;
                    gap: 0.28rem;
                    scrollbar-width: thin;
                }

                .home-fx-banner__intro {
                    flex: 0 0 auto;
                    width: auto;
                    margin-bottom: 0;
                    margin-right: 0.1rem;
                    font-size: 0.58rem;
                    font-weight: 600;
                    white-space: nowrap;
                }

                .home-fx-banner__chip {
                    flex: 0 0 auto;
                    flex-direction: row;
                    flex-wrap: nowrap;
                    align-items: baseline;
                    gap: 0.2rem;
                    padding: 0.2rem 0.38rem;
                    border-radius: 5px;
                }

                .home-fx-banner__pair {
                    display: inline;
                    white-space: nowrap;
                }

                .home-fx-banner__pair--sub {
                    display: none;
                }

                .home-fx-banner__amt {
                    font-size: 0.95em;
                }

                .home-fx-banner__time,
                .home-fx-banner__time--muted {
                    display: none;
                }

                .form-hint {
                    font-size: 0.8em;
                }

                @media (max-width: 295px) {
                    .slim {
                        display: none;
                    }
                }
            }
        }
    }
}

.more-menu {
    position: fixed;
    bottom: 65px;
    right: 10px;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 5px;
    padding: 10px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.more-menu.hidden {
    display: none;
}

.more-menu a {
    font-size: 14px;
    color: #007bff;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
}

.more-menu a:hover {
    background-color: #f0f0f0;
}

/* Classic Tabs Styles */
.tabs {
    margin-top: 20px;
}

.tab-buttons {
    display: flex;
    border-bottom: 2px solid #ccc;
    margin-bottom: 15px;
}

.tab-buttons button {
    padding: 10px 20px;
    background-color: #f1f1f1;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
    color: #333;
}

.tab-buttons button.active {
    background-color: #007bff;
    color: white;
}

.tab-buttons button:not(:last-child) {
    border-right: 1px solid #ccc;
}

.tab-content {
    display: none;
    padding: 10px 0;
}

.tab-content.active {
    display: block;
}