:root {
    /* Urban Group Main Brand Colors */
    --urban-green: #1f6b35;
    --urban-red: #d90000;
    --urban-bright-green: #28a35a;
    --urban-gold: #f5a400;
    --urban-white: #ffffff;
    --urban-soft-bg: #f4f8f1;
    --urban-dark-text: #163322;
    --urban-border-green: #8baf8c;

    /* Dynamic theme variables */
    --urban-primary: #1f6b35;
    --urban-primary-dark: #164d27;
    --urban-primary-soft: rgba(31, 107, 53, 0.1);
    --urban-accent: #d90000;
    --urban-secondary: #f5a400;

    /* Soft dark sidebar colors */
    --urban-soft-dark: #24312a;
    --urban-soft-dark-2: #2f4037;
    --urban-soft-dark-3: #35493e;
    --urban-soft-dark-text: #edf7f0;
    --urban-soft-dark-muted: #d6e8dc;

    /* Override Bootstrap / Hope UI Colors */
    --bs-primary: #1f6b35;
    --bs-primary-rgb: 31, 107, 53;

    --bs-secondary: #163322;
    --bs-secondary-rgb: 22, 51, 34;

    --bs-success: #28a35a;
    --bs-success-rgb: 40, 163, 90;

    --bs-danger: #d90000;
    --bs-danger-rgb: 217, 0, 0;

    --bs-warning: #f5a400;
    --bs-warning-rgb: 245, 164, 0;

    --bs-body-bg: #f4f8f1;
    --bs-body-bg-rgb: 244, 248, 241;

    --bs-body-color: #163322;
    --bs-link-color: #1f6b35;
    --bs-link-hover-color: #d90000;

    --bs-border-color: #d8e5d6;

    /* Hope UI primary shades */
    --bs-primary-shade-80: #0b2412;
    --bs-primary-shade-60: #164d27;
    --bs-primary-shade-40: #1b5d2f;
    --bs-primary-shade-20: #247940;

    --bs-primary-tint-90: #eaf4ec;
    --bs-primary-tint-80: #d6ead9;
    --bs-primary-tint-60: #add5b3;
    --bs-primary-tint-40: #85bf8d;
    --bs-primary-tint-20: #5caa68;
}

/* =========================================================
   DYNAMIC COLOR THEMES
========================================================= */

body.theme-color-blue {
    --urban-primary: #3a57e8;
    --urban-primary-dark: #263aa3;
    --urban-primary-soft: rgba(58, 87, 232, 0.1);
    --urban-accent: #d90000;
    --urban-secondary: #f5a400;

    --bs-primary: #3a57e8;
    --bs-primary-rgb: 58, 87, 232;
    --bs-link-color: #3a57e8;
    --bs-link-hover-color: #263aa3;
}

body.theme-color-green,
body.theme-color-default {
    --urban-primary: #1f6b35;
    --urban-primary-dark: #164d27;
    --urban-primary-soft: rgba(31, 107, 53, 0.1);
    --urban-accent: #d90000;
    --urban-secondary: #f5a400;

    --bs-primary: #1f6b35;
    --bs-primary-rgb: 31, 107, 53;
    --bs-link-color: #1f6b35;
    --bs-link-hover-color: #d90000;
}

body.theme-color-red {
    --urban-primary: #d90000;
    --urban-primary-dark: #8f0000;
    --urban-primary-soft: rgba(217, 0, 0, 0.1);
    --urban-accent: #1f6b35;
    --urban-secondary: #f5a400;

    --bs-primary: #d90000;
    --bs-primary-rgb: 217, 0, 0;
    --bs-link-color: #d90000;
    --bs-link-hover-color: #8f0000;
}

body.theme-color-yellow {
    --urban-primary: #f5a400;
    --urban-primary-dark: #b87900;
    --urban-primary-soft: rgba(245, 164, 0, 0.16);
    --urban-accent: #1f6b35;
    --urban-secondary: #d90000;

    --bs-primary: #f5a400;
    --bs-primary-rgb: 245, 164, 0;
    --bs-link-color: #b87900;
    --bs-link-hover-color: #1f6b35;
}

body.theme-color-pink {
    --urban-primary: #d63384;
    --urban-primary-dark: #9b2460;
    --urban-primary-soft: rgba(214, 51, 132, 0.1);
    --urban-accent: #1f6b35;
    --urban-secondary: #f5a400;

    --bs-primary: #d63384;
    --bs-primary-rgb: 214, 51, 132;
    --bs-link-color: #d63384;
    --bs-link-hover-color: #9b2460;
}

/* =========================================================
   GLOBAL
========================================================= */

body {
    background-color: var(--urban-soft-bg);
    color: var(--urban-dark-text);
}

body.dark {
    background-color: #111827;
    color: #f9fafb;
}

body.dark .card,
body.dark .navbar,
body.dark .card-header,
body.dark .offcanvas {
    background-color: #1f2937 !important;
    color: #f9fafb !important;
    border-color: #374151 !important;
}

body.dark .form-control,
body.dark .form-select {
    background-color: #111827;
    color: #ffffff;
    border-color: #374151;
}

body.dark .table {
    color: #f9fafb;
}

body.dark .table thead th {
    background-color: #111827;
    color: #ffffff;
}

body.dark .urban-stat-title,
body.dark .urban-stat-subtitle,
body.dark .urban-empty-text {
    color: #d1d5db;
}

/* Main buttons */
.btn-primary {
    background-color: var(--urban-primary) !important;
    border-color: var(--urban-primary) !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--urban-primary-dark) !important;
    border-color: var(--urban-primary-dark) !important;
    color: #ffffff !important;
}

/* Red buttons for danger/delete/important actions */
.btn-danger {
    background-color: var(--urban-accent) !important;
    border-color: var(--urban-accent) !important;
    color: #ffffff !important;
}

/* Links */
a {
    color: var(--urban-primary);
}

a:hover {
    color: var(--urban-accent);
}

/* Cards */
.card {
    border: 1px solid #d8e5d6;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(23, 94, 34, 0.06);
}

.card-header {
    background-color: #ffffff;
    border-bottom: 1px solid #d8e5d6;
}

/* Tables */
.table thead th {
    background-color: #eaf4ec;
    color: var(--urban-dark-text);
}

.table-hover tbody tr:hover {
    background-color: #f4f8f1;
}

/* Badges */
.badge.bg-primary,
.bg-primary {
    background-color: var(--urban-primary) !important;
}

.badge.bg-danger,
.bg-danger {
    background-color: var(--urban-accent) !important;
}

.bg-success {
    background-color: var(--urban-bright-green) !important;
}

.text-primary {
    color: var(--urban-primary) !important;
}

.text-danger {
    color: var(--urban-accent) !important;
}

/* =========================================================
   LOGIN / SIGN UP / RECOVER PASSWORD
========================================================= */

.urban-login-page {
    min-height: 100vh;
    margin: 0;
    background-image: url("/u_group.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

.urban-login-overlay {
    position: fixed;
    inset: 0;
    background: rgba(23, 94, 34, 0.45);
    z-index: 0;
}

.urban-login-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(217, 0, 0, 0.18),
        rgba(23, 94, 34, 0.42)
    );
}

.urban-login-main {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
}

.urban-login-container {
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.urban-login-logo-wrap {
    width: 150px;
    height: 150px;
    margin: 0 auto 18px auto;
    border-radius: 50%;
    overflow: hidden;
    background: #ffffff;
    border: 5px solid #0dcf86;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
}

.urban-login-logo {
    width: 118px;
    height: 118px;
    object-fit: contain;
    display: block;
}

.urban-login-heading {
    color: #ffffff;
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 18px;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.urban-login-box {
    background-color: rgba(255, 255, 255, 0.68);
    border: 4px solid #0dcf86;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(5px);
}

.urban-label {
    color: #163322;
    font-weight: 700;
    float: left;
}

.urban-login-input {
    height: 48px;
    border: 3px solid #175e22;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    color: #163322;
    font-weight: 500;
}

.urban-login-input:focus {
    border-color: #d90000;
    box-shadow: 0 0 0 0.18rem rgba(217, 0, 0, 0.18);
}

.urban-remember {
    color: #163322;
    font-weight: 600;
}

.form-check-input:checked {
    background-color: #175e22;
    border-color: #175e22;
}

.urban-login-button {
    background-color: #175e22;
    border: 2px solid #175e22;
    color: #ffffff;
    font-weight: 700;
    border-radius: 8px;
    height: 48px;
}

.urban-login-button:hover,
.urban-login-button:focus {
    background-color: #d90000;
    border-color: #d90000;
    color: #ffffff;
}

.urban-login-footer {
    margin-top: 18px;
    color: #ffffff;
    font-size: 16px;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

/* =========================================================
   MASTER LAYOUT / SIDEBAR / NAVBAR
========================================================= */

.urban-sidebar-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: contain;
    background: var(--urban-white);
    padding: 4px;
    box-shadow: 0 4px 12px rgba(23, 94, 34, 0.18);
}

.urban-navbar-logo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: contain;
    background: var(--urban-white);
    padding: 4px;
}

.urban-logo-title {
    color: var(--urban-primary);
    font-weight: 700;
}

/* Default sidebar should be white */
.sidebar,
.sidebar-default,
.sidebar-white {
    background-color: var(--urban-white) !important;
    border-right: 1px solid var(--bs-border-color);
}

.sidebar .logo-title {
    color: var(--urban-primary) !important;
    font-weight: 700;
}

.sidebar .nav-link,
.sidebar-default .nav-link {
    color: var(--urban-dark-text) !important;
}

.sidebar .nav-link .icon,
.sidebar .nav-link .right-icon,
.sidebar .nav-link svg,
.sidebar .nav-link i {
    color: inherit !important;
    fill: currentColor;
}

.sidebar .nav-link.active,
.sidebar-default .nav-link.active,
.sidebar .nav-link:hover,
.sidebar-default .nav-link:hover {
    background-color: var(--urban-primary) !important;
    color: var(--urban-white) !important;
    border-radius: 10px;
}

.sidebar .nav-link.static-item,
.sidebar-default .nav-link.static-item {
    color: var(--urban-accent) !important;
    background: transparent !important;
    font-weight: 700;
}

.sidebar .sub-nav .nav-link {
    color: var(--urban-dark-text) !important;
    padding-left: 2.5rem;
}

.sidebar .sub-nav .nav-link:hover {
    background-color: var(--urban-primary-soft) !important;
    color: var(--urban-primary) !important;
}

/* Soft dark sidebar option */
body.urban-sidebar-dark .sidebar,
body.urban-sidebar-dark .sidebar-default,
body.urban-sidebar-dark .sidebar-white {
    background: var(--urban-soft-dark) !important;
    border-right: 1px solid var(--urban-soft-dark-2) !important;
}

body.urban-sidebar-dark .sidebar .logo-title {
    color: #ffffff !important;
}

body.urban-sidebar-dark .sidebar .nav-link {
    color: var(--urban-soft-dark-text) !important;
}

body.urban-sidebar-dark .sidebar .nav-link.static-item {
    color: #f5d178 !important;
    background: transparent !important;
}

body.urban-sidebar-dark .sidebar .sub-nav .nav-link {
    color: var(--urban-soft-dark-muted) !important;
}

body.urban-sidebar-dark .sidebar .nav-link:hover,
body.urban-sidebar-dark .sidebar .nav-link.active {
    background: var(--urban-primary) !important;
    color: #ffffff !important;
}

body.urban-sidebar-dark .sidebar .sub-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.09) !important;
    color: #ffffff !important;
}

/* Sidebar icons visibility */
.sidebar .icon {
    min-width: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar .icon svg {
    width: 20px;
    height: 20px;
}

.sidebar .right-icon svg {
    width: 18px;
    height: 18px;
}

.urban-nav-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.iq-navbar,
.urban-main-navbar {
    background: var(--urban-primary) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.iq-navbar .navbar-brand h4,
.iq-navbar .caption-title,
.iq-navbar .caption-sub-title,
.iq-navbar .nav-link,
.iq-navbar .logo-title {
    color: var(--urban-white) !important;
}

.iq-navbar .btn-primary {
    background-color: var(--urban-accent) !important;
    border-color: var(--urban-accent) !important;
}

.iq-navbar-header,
.urban-navbar-header {
    min-height: 215px;
    background: linear-gradient(
        135deg,
        var(--urban-primary-dark),
        var(--urban-primary)
    );
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
}

.urban-header-text h1,
.urban-header-text p {
    color: var(--urban-white) !important;
}

.urban-profile-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border: 2px solid var(--urban-white);
}

.urban-dropdown-link {
    color: var(--urban-dark-text) !important;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 8px;
}

.urban-dropdown-link:hover {
    background-color: var(--urban-primary-soft);
    color: var(--urban-primary) !important;
}

.urban-dropdown-link-danger {
    color: var(--urban-accent) !important;
}

/* =========================================================
   DASHBOARD
========================================================= */

.urban-filter-card {
    border-left: 5px solid var(--urban-primary);
}

.urban-stat-card {
    min-height: 145px;
    border: 1px solid #d8e5d6;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 24px rgba(23, 94, 34, 0.08);
}

.urban-stat-card::after {
    content: "";
    position: absolute;
    right: -35px;
    top: -35px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--urban-primary-soft);
}

.urban-stat-card .card-body {
    position: relative;
    z-index: 2;
}

.urban-stat-title {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 8px;
}

.urban-stat-value {
    font-size: 25px;
    font-weight: 800;
    color: var(--urban-primary);
    margin-bottom: 4px;
}

.urban-stat-subtitle {
    font-size: 12px;
    color: #6c757d;
}

.urban-stat-green,
.urban-stat-bright {
    border-left: 5px solid var(--urban-primary);
}

.urban-stat-red {
    border-left: 5px solid var(--urban-accent);
}

.urban-stat-gold {
    border-left: 5px solid var(--urban-secondary);
}

.urban-card-title {
    color: var(--urban-primary);
    font-weight: 700;
}

.urban-table-badge {
    border-radius: 50px;
    padding: 6px 10px;
    font-size: 12px;
}

.urban-badge-pending,
.urban-badge-unpaid {
    background: var(--urban-accent);
    color: var(--urban-white);
}

.urban-badge-ready,
.urban-badge-partial {
    background: var(--urban-secondary);
    color: var(--urban-dark-text);
}

.urban-badge-taken,
.urban-badge-paid {
    background: var(--urban-primary);
    color: var(--urban-white);
}

.urban-empty-text {
    color: #6c757d;
    font-size: 14px;
}

/* Dashboard summary cards */
.urban-card-green {
    background: linear-gradient(
        135deg,
        var(--urban-primary),
        var(--urban-bright-green)
    );
    color: #ffffff;
}

.urban-card-red {
    background: linear-gradient(135deg, var(--urban-accent), #9f0000);
    color: #ffffff;
}

.urban-card-gold {
    background: linear-gradient(135deg, var(--urban-secondary), #d88900);
    color: #ffffff;
}

/* =========================================================
   SETTINGS / OFFCANVAS
========================================================= */

.btn-setting {
    background-color: var(--urban-secondary) !important;
    border-color: var(--urban-secondary) !important;
    color: var(--urban-dark-text) !important;
}

.offcanvas-title {
    color: var(--urban-primary);
    font-weight: 700;
}

.urban-setting-btn.active {
    background: var(--urban-primary) !important;
    border-color: var(--urban-primary) !important;
    color: #ffffff !important;
}

.urban-setting-btn {
    border-radius: 8px;
}

/* =========================================================
   SIDEBAR RIGHT / LEFT SUPPORT
========================================================= */

body.urban-sidebar-right .sidebar {
    left: auto !important;
    right: 0 !important;
}

body.urban-sidebar-right .main-content {
    margin-left: 0 !important;
    margin-right: var(--bs-sidebar-width, 16.2rem) !important;
}

body.urban-sidebar-right.sidebar-mini .main-content {
    margin-right: 4.8rem !important;
}

body.urban-sidebar-right .btn-fixed-end {
    right: auto !important;
    left: 0 !important;
}

body.urban-sidebar-right .iq-navbar {
    margin-left: 0 !important;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1199.98px) {
    body.urban-sidebar-right .main-content {
        margin-right: 0 !important;
    }
}

@media (max-width: 767.98px) {
    .urban-stat-value {
        font-size: 21px;
    }

    .urban-header-text h1 {
        font-size: 24px;
    }
}

@media (max-width: 575.98px) {
    .urban-login-container {
        max-width: 95%;
    }

    .urban-login-logo-wrap {
        width: 125px;
        height: 125px;
    }

    .urban-login-logo {
        width: 95px;
        height: 95px;
    }

    .urban-login-heading {
        font-size: 20px;
        white-space: normal;
    }

    .urban-login-box {
        padding: 20px;
    }
}
/* =========================================================
   Laundry Receipt Styles
========================================================= */
.urban-receipt-page {
    background: #f4f8f1;
}

.urban-receipt-actions {
    margin-bottom: 1rem;
    text-align: center;
}

.urban-receipt-actions .btn {
    margin: 0.2rem;
}

.urban-receipt-normal {
    max-width: 850px;
    background: #ffffff;
    margin: 0 auto;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(23, 94, 34, 0.12);
    color: #111111;
}

.urban-receipt-thermal {
    width: 80mm;
    background: #ffffff;
    margin: 0 auto;
    padding: 8px;
    font-size: 12px;
    color: #111111;
    box-shadow: 0 12px 35px rgba(23, 94, 34, 0.12);
}

.urban-receipt-center {
    text-align: center;
}

.urban-receipt-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 50%;
    background: #ffffff;
}

.urban-receipt-title {
    margin: 5px 0;
    font-size: 18px;
    font-weight: 800;
    color: #175e22;
}

.urban-receipt-small {
    font-size: 12px;
    line-height: 1.45;
}

.urban-receipt-normal .urban-receipt-small {
    font-size: 13px;
}

.urban-receipt-line {
    border-top: 1px dashed #333333;
    margin: 10px 0;
}

.urban-receipt-table {
    width: 100%;
    border-collapse: collapse;
}

.urban-receipt-normal .urban-receipt-table th,
.urban-receipt-normal .urban-receipt-table td {
    border: 1px solid #dddddd;
    padding: 7px;
    font-size: 13px;
}

.urban-receipt-thermal .urban-receipt-table th,
.urban-receipt-thermal .urban-receipt-table td {
    padding: 3px 0;
    font-size: 11px;
    vertical-align: top;
}

.urban-receipt-summary td {
    padding: 4px 0;
}

.urban-receipt-total {
    font-size: 16px;
    font-weight: 800;
}

.urban-text-end {
    text-align: right;
}

.urban-text-center {
    text-align: center;
}

@media print {
    body {
        background: #ffffff !important;
    }

    .urban-receipt-actions,
    .sidebar,
    .navbar,
    .footer,
    .iq-navbar,
    .iq-sidebar,
    .btn,
    .breadcrumb,
    .content-header,
    .setting-toggle,
    .theme-customizer,
    .right-sidebar,
    .sidebar-default,
    .iq-navbar-header,
    .nav,
    .page-title,
    header,
    aside,
    footer {
        display: none !important;
    }

    body * {
        visibility: hidden;
    }

    #printArea,
    #printArea * {
        visibility: visible;
    }

    #printArea {
        position: absolute;
        left: 0;
        top: 0;
        margin: 0 !important;
        box-shadow: none !important;
    }

    .urban-receipt-normal {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        padding: 20px;
        box-shadow: none !important;
    }

    .urban-receipt-thermal {
        width: 80mm;
        padding: 4mm;
        box-shadow: none !important;
    }

    @page {
        margin: 5mm;
    }
}
/* =========================================================
   Laundry Payment Modal Improvements
========================================================= */

.urban-payment-modal {
    max-width: 98% !important;
}

.urban-payment-history-table th,
.urban-payment-history-table td {
    vertical-align: middle !important;
    white-space: nowrap;
}

.urban-payment-history-table .form-control {
    min-height: 42px;
    font-size: 14px;
}

.urban-payment-date-input {
    min-width: 230px;
}

.urban-payment-amount-input {
    min-width: 160px;
}

.urban-payment-method-input {
    min-width: 170px;
}

.urban-payment-reference-input {
    min-width: 220px;
}

.urban-payment-notes-input {
    min-width: 240px;
}

.urban-payment-action-box {
    min-width: 300px;
}

.urban-payment-receipt-box {
    min-width: 260px;
}

.urban-modal-summary-box {
    background: #f4f8f1;
    border: 1px solid #d8e5d6;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 18px;
}

.urban-modal-summary-box strong {
    color: #163322;
}

@media (max-width: 991.98px) {
    .urban-payment-modal {
        max-width: 100% !important;
        margin: 0;
    }

    .urban-payment-modal .modal-content {
        min-height: 100vh;
        border-radius: 0;
    }
} /* =========================================================
   Dashboard Graph Fix
========================================================= */

.urban-chart-box {
    min-height: 360px;
    width: 100%;
}

.urban-chart-box-small {
    min-height: 320px;
    width: 100%;
}

.urban-chart-btn-group .btn {
    min-width: 38px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.urban-chart-btn-group .btn svg {
    width: 17px;
    height: 17px;
}

.urban-chart-btn-group .btn.active {
    background-color: #175e22 !important;
    border-color: #175e22 !important;
    color: #ffffff !important;
}

.urban-chart-error {
    background: #fff3cd;
    border: 1px solid #ffe69c;
    color: #664d03;
    padding: 12px;
    border-radius: 10px;
    margin-top: 10px;
}

.app-anchor {
    scroll-margin-top: 110px;
}

.app-chart-box {
    min-height: 330px;
}

.app-card-title {
    font-weight: 700;
    color: #175e22;
}

.app-action .btn {
    margin-bottom: 4px;
}

.app-print-toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.app-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.app-badge-success {
    background: #d1fae5;
    color: #065f46;
}

.app-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.app-badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.app-badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.app-badge-secondary {
    background: #e5e7eb;
    color: #374151;
}

.app-paid-lock {
    font-size: 11px;
    color: #991b1b;
    font-weight: 700;
    display: block;
    margin-top: 4px;
}

@media print {
    body * {
        visibility: hidden !important;
    }

    .print-area,
    .print-area * {
        visibility: visible !important;
    }

    .print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }

    .no-print {
        display: none !important;
    }
}
.urban-chart-btn-group .btn {
    min-width: 38px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.urban-chart-btn-group svg {
    width: 16px !important;
    height: 16px !important;
    display: block !important;
    fill: currentColor !important;
}

.urban-chart-box {
    min-height: 360px;
}

.urban-chart-box-small {
    min-height: 310px;
}

.urban-chart-error {
    background: #fff3cd;
    border: 1px solid #ffdf7e;
    color: #664d03;
    border-radius: 10px;
    padding: 18px;
}

.apartment-rank-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #175e22;
    color: #fff;
    font-weight: 700;
}

.receipt-toolbar-card {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.receipt-wrap {
    max-width: 950px;
    margin: auto;
}

.receipt-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.06);
}

.receipt-title {
    font-weight: 800;
    color: #175e22;
    margin-bottom: 2px;
}

.receipt-subtitle {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 0;
}

.receipt-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #175e22;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.receipt-section-title {
    font-size: 14px;
    font-weight: 800;
    color: #175e22;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 6px;
}

.receipt-info-table th {
    width: 190px;
    background: #f9fafb;
    color: #374151;
    font-size: 13px;
}

.receipt-info-table td {
    font-size: 13px;
}

.receipt-total-box {
    background: linear-gradient(135deg, #175e22, #0f3d18);
    color: #ffffff;
    border-radius: 14px;
    padding: 18px;
}

.receipt-total-box small {
    color: rgba(255, 255, 255, 0.75);
}

.receipt-total-box h3 {
    color: #ffffff;
    margin: 0;
    font-weight: 800;
}

.receipt-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.receipt-badge-success {
    background: #d1fae5;
    color: #065f46;
}

.receipt-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.receipt-badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.receipt-badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.thermal {
    width: 310px;
    margin: auto;
    background: #ffffff;
    padding: 10px;
    font-size: 12px;
    line-height: 1.25;
    color: #000;
}

.thermal h4,
.thermal p {
    margin-bottom: 4px;
}

.thermal hr {
    margin: 6px 0;
    border-top: 1px dashed #000;
    opacity: 1;
}

.thermal-table {
    width: 100%;
}

.thermal-table td {
    vertical-align: top;
    padding: 2px 0;
    font-size: 12px;
}

.mode-thermal .normal {
    display: none;
}

.mode-normal .thermal {
    display: none;
}

.icon-btn svg {
    margin-right: 4px;
    vertical-align: -2px;
}

@media print {
    body * {
        visibility: hidden !important;
    }

    #receiptArea,
    #receiptArea * {
        visibility: visible !important;
    }

    #receiptArea {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }

    .no-print {
        display: none !important;
    }

    .receipt-card {
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
    }

    .thermal {
        width: 80mm;
        margin: 0 auto;
    }
}
.urban-registry-toolbar {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.urban-registry-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #175e22;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.urban-registry-page {
    max-width: 1050px;
    margin: 0 auto;
}

.urban-registry-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.06);
}

.urban-registry-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 2px solid #175e22;
    padding-bottom: 14px;
    margin-bottom: 20px;
}

.urban-registry-header h3 {
    margin: 0;
    color: #175e22;
    font-weight: 800;
}

.urban-registry-header p {
    margin: 4px 0 0;
    color: #6b7280;
}

.urban-registry-header-right {
    text-align: right;
    font-size: 14px;
    color: #111827;
}

.urban-registry-section {
    margin-bottom: 22px;
}

.urban-registry-section h5 {
    color: #175e22;
    font-weight: 800;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

.urban-registry-table th {
    background: #f9fafb;
    color: #374151;
    font-size: 13px;
    width: 180px;
}

.urban-registry-table td {
    font-size: 13px;
    color: #111827;
}

.urban-registry-room-badge {
    display: inline-block;
    background: #d1fae5;
    color: #065f46;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    padding: 4px 10px;
    margin: 2px;
}

.urban-registry-signatures {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 45px;
}

.urban-registry-signatures p {
    margin-bottom: 30px;
    font-weight: 700;
    color: #374151;
}

.urban-registry-signatures span {
    display: block;
    border-bottom: 1px solid #111827;
    height: 1px;
}

.urban-registry-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
}

@media print {
    body * {
        visibility: hidden !important;
    }

    #registryArea,
    #registryArea * {
        visibility: visible !important;
    }

    #registryArea {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }

    .no-print {
        display: none !important;
    }

    .urban-registry-card {
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 12px !important;
    }

    .urban-registry-page {
        max-width: 100% !important;
    }

    .urban-registry-table th,
    .urban-registry-table td {
        font-size: 11px !important;
        padding: 4px !important;
    }

    .urban-registry-signatures {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* =========================================================
   APARTMENT RECEIPT - SCREEN + A4 PRINT
   Put this in urban-theme.css
========================================================= */

.receipt-wrap {
    max-width: 950px;
    margin: 0 auto;
}

.receipt-toolbar-card {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.receipt-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.06);
}

.receipt-title {
    font-weight: 800;
    color: #175e22;
    margin-bottom: 2px;
}

.receipt-subtitle {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 0;
}

.receipt-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #175e22;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.receipt-section-title {
    font-size: 13px;
    font-weight: 800;
    color: #175e22;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 7px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 4px;
}

.receipt-info-table {
    margin-bottom: 10px;
}

.receipt-info-table th {
    width: 155px;
    background: #f9fafb;
    color: #374151;
    font-size: 12px;
    padding: 5px 7px !important;
    vertical-align: middle;
}

.receipt-info-table td {
    font-size: 12px;
    padding: 5px 7px !important;
    vertical-align: middle;
}

.receipt-total-box {
    background: linear-gradient(135deg, #175e22, #0f3d18);
    color: #ffffff;
    border-radius: 14px;
    padding: 14px;
}

.receipt-total-box small {
    color: rgba(255, 255, 255, 0.75);
}

.receipt-total-box h3 {
    color: #ffffff;
    margin: 0;
    font-weight: 800;
    font-size: 22px;
}

.receipt-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.receipt-badge-success {
    background: #d1fae5;
    color: #065f46;
}

.receipt-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.receipt-badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.receipt-badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.thermal {
    width: 310px;
    margin: auto;
    background: #ffffff;
    padding: 10px;
    font-size: 12px;
    line-height: 1.25;
    color: #000;
}

.thermal h4,
.thermal p {
    margin-bottom: 4px;
}

.thermal hr {
    margin: 6px 0;
    border-top: 1px dashed #000;
    opacity: 1;
}

.thermal-table {
    width: 100%;
}

.thermal-table td {
    vertical-align: top;
    padding: 2px 0;
    font-size: 12px;
}

.mode-thermal .normal {
    display: none;
}

.mode-normal .thermal {
    display: none;
}

.icon-btn svg {
    margin-right: 4px;
    vertical-align: -2px;
}

/* =========================================================
   A4 PRINT FITTING
========================================================= */

@page {
    size: A4 portrait;
    margin: 8mm;
}

@media print {
    html,
    body {
        width: 210mm !important;
        min-height: 297mm !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        overflow: visible !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body * {
        visibility: hidden !important;
    }

    #receiptArea,
    #receiptArea * {
        visibility: visible !important;
    }

    #receiptArea {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .no-print,
    .receipt-toolbar-card {
        display: none !important;
        visibility: hidden !important;
    }

    .mode-normal .normal {
        display: block !important;
    }

    .mode-normal .thermal {
        display: none !important;
    }

    .normal {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .receipt-card {
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto !important;
        margin: 0 !important;
        padding: 6mm !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        transform: scale(0.94);
        transform-origin: top left;
    }

    .receipt-card h3 {
        font-size: 18px !important;
        margin-bottom: 2px !important;
    }

    .receipt-card h4 {
        font-size: 15px !important;
        margin-bottom: 2px !important;
    }

    .receipt-card p,
    .receipt-card small,
    .receipt-card td,
    .receipt-card th {
        font-size: 10.5px !important;
        line-height: 1.18 !important;
    }

    .receipt-card .mb-4 {
        margin-bottom: 7px !important;
    }

    .receipt-card .mt-4 {
        margin-top: 7px !important;
    }

    .receipt-card .mt-5 {
        margin-top: 16px !important;
    }

    .receipt-card hr {
        margin: 5px 0 !important;
    }

    .receipt-icon-box {
        width: 30px !important;
        height: 30px !important;
        border-radius: 8px !important;
    }

    .receipt-icon-box svg {
        width: 18px !important;
        height: 18px !important;
    }

    .receipt-title {
        font-size: 17px !important;
        margin-bottom: 0 !important;
    }

    .receipt-subtitle {
        font-size: 10px !important;
        margin-bottom: 0 !important;
    }

    .receipt-section-title {
        font-size: 10.5px !important;
        margin-bottom: 4px !important;
        padding-bottom: 2px !important;
    }

    .receipt-info-table,
    .receipt-card .table {
        margin-bottom: 6px !important;
    }

    .receipt-info-table th,
    .receipt-info-table td,
    .receipt-card .table th,
    .receipt-card .table td {
        padding: 3px 5px !important;
        font-size: 10px !important;
        line-height: 1.12 !important;
        vertical-align: middle !important;
    }

    .receipt-info-table th {
        width: 120px !important;
    }

    .receipt-total-box {
        padding: 8px !important;
        border-radius: 8px !important;
    }

    .receipt-total-box h3 {
        font-size: 16px !important;
    }

    .receipt-total-box small,
    .receipt-total-box span,
    .receipt-total-box strong {
        font-size: 10px !important;
    }

    .receipt-badge {
        font-size: 9px !important;
        padding: 2px 6px !important;
    }

    .row {
        margin-left: -4px !important;
        margin-right: -4px !important;
    }

    .row > [class*="col-"] {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    .text-md-end {
        text-align: right !important;
    }

    .table-responsive {
        overflow: visible !important;
    }

    a[href]:after {
        content: "" !important;
    }
}

/* =========================================================
   THERMAL PRINT MODE
========================================================= */

@media print {
    .mode-thermal #receiptArea {
        width: 80mm !important;
        margin: 0 auto !important;
    }

    .mode-thermal .normal {
        display: none !important;
    }

    .mode-thermal .thermal {
        display: block !important;
        width: 80mm !important;
        margin: 0 auto !important;
        padding: 3mm !important;
        font-size: 10.5px !important;
        line-height: 1.15 !important;
    }

    .mode-thermal .thermal td,
    .mode-thermal .thermal p {
        font-size: 10.5px !important;
        line-height: 1.15 !important;
    }

    .mode-thermal .thermal h4 {
        font-size: 13px !important;
    }
}
/* =========================================================
   APARTMENT REGISTRY FORM - SCREEN + A4 PRINT
   Put this in urban-theme.css
========================================================= */

.urban-registry-toolbar {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    margin-bottom: 15px;
}

.urban-registry-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #175e22;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.urban-registry-page {
    max-width: 1050px;
    margin: 0 auto;
}

.urban-registry-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.06);
}

.urban-registry-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 2px solid #175e22;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.urban-registry-header h3 {
    margin: 0;
    color: #175e22;
    font-weight: 800;
}

.urban-registry-header p {
    margin: 4px 0 0;
    color: #6b7280;
}

.urban-registry-header-right {
    text-align: right;
    font-size: 14px;
    color: #111827;
}

.urban-registry-section {
    margin-bottom: 16px;
}

.urban-registry-section h5 {
    color: #175e22;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.urban-registry-table {
    margin-bottom: 0;
}

.urban-registry-table th {
    background: #f9fafb;
    color: #374151;
    font-size: 12px;
    width: 170px;
    vertical-align: middle;
}

.urban-registry-table td {
    font-size: 12px;
    color: #111827;
    vertical-align: middle;
}

.urban-registry-room-badge {
    display: inline-block;
    background: #d1fae5;
    color: #065f46;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    padding: 4px 10px;
    margin: 2px;
}

.urban-registry-signatures {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 35px;
}

.urban-registry-signatures p {
    margin-bottom: 28px;
    font-weight: 700;
    color: #374151;
}

.urban-registry-signatures span {
    display: block;
    border-bottom: 1px solid #111827;
    height: 1px;
}

.urban-registry-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
}

/* =========================================================
   REGISTRY A4 PRINT FITTING
========================================================= */

@page {
    size: A4 portrait;
    margin: 7mm;
}

@media print {
    html,
    body {
        width: 210mm !important;
        min-height: 297mm !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        overflow: visible !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body * {
        visibility: hidden !important;
    }

    #registryArea,
    #registryArea * {
        visibility: visible !important;
    }

    #registryArea {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .no-print,
    .urban-registry-toolbar {
        display: none !important;
        visibility: hidden !important;
    }

    .urban-registry-page {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .urban-registry-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 5mm !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        transform: scale(0.94);
        transform-origin: top left;
    }

    .urban-registry-header {
        padding-bottom: 5px !important;
        margin-bottom: 6px !important;
        border-bottom-width: 1px !important;
    }

    .urban-registry-header h3 {
        font-size: 17px !important;
        margin: 0 !important;
        line-height: 1.15 !important;
    }

    .urban-registry-header p,
    .urban-registry-header-right,
    .urban-registry-footer,
    .urban-registry-footer small {
        font-size: 9.5px !important;
        line-height: 1.15 !important;
    }

    .urban-registry-section {
        margin-bottom: 6px !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .urban-registry-section h5 {
        font-size: 10px !important;
        margin-bottom: 3px !important;
        line-height: 1.1 !important;
    }

    .urban-registry-table {
        width: 100% !important;
        margin-bottom: 0 !important;
        border-collapse: collapse !important;
    }

    .urban-registry-table th,
    .urban-registry-table td {
        font-size: 8.8px !important;
        line-height: 1.05 !important;
        padding: 2px 3px !important;
        vertical-align: middle !important;
    }

    .urban-registry-table th {
        width: 90px !important;
        font-weight: 700 !important;
    }

    .urban-registry-room-badge {
        font-size: 8.5px !important;
        padding: 1px 5px !important;
        margin: 1px !important;
        border-radius: 8px !important;
    }

    .urban-registry-signatures {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 14px !important;
        margin-top: 14px !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .urban-registry-signatures p {
        font-size: 9px !important;
        margin-bottom: 16px !important;
    }

    .urban-registry-footer {
        margin-top: 8px !important;
        padding-top: 5px !important;
    }

    .table-responsive {
        overflow: visible !important;
    }

    a[href]:after {
        content: "" !important;
    }
}

/* Extra tight mode when the form has many guests */
@media print {
    .registry-a4-print .urban-registry-card {
        transform: scale(0.9);
        transform-origin: top left;
    }

    .registry-a4-print .urban-registry-section {
        margin-bottom: 4px !important;
    }

    .registry-a4-print .urban-registry-table th,
    .registry-a4-print .urban-registry-table td {
        font-size: 8.3px !important;
        padding: 1.5px 2.5px !important;
    }

    .registry-a4-print .urban-registry-signatures {
        margin-top: 10px !important;
    }

    .registry-a4-print .urban-registry-signatures p {
        margin-bottom: 12px !important;
    }
}

/* =========================================================
   URBAN LAUNDRY CRUD CLEAN CARDS + MODALS
   Paste into public/assets/css/urban-theme.css
========================================================= */
.urban-laundry-card {
    position: relative;
    border: 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    margin-bottom: 18px;
}
.urban-laundry-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: #175e22;
}
.urban-laundry-card.gold:before {
    background: #d79d12;
}
.urban-laundry-card.red:before {
    background: #b91c1c;
}
.urban-laundry-card.blue:before {
    background: #0f766e;
}
.urban-laundry-card.dark:before {
    background: #111827;
}
.urban-laundry-card .card-header {
    background: #fff;
    border-bottom: 1px solid #edf0f4;
    padding-left: 22px;
}
.urban-laundry-card .card-body {
    padding-left: 22px;
}
.urban-laundry-hero {
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
    border-left: 6px solid #175e22;
}
.urban-laundry-hero-title {
    font-weight: 800;
    color: #175e22;
    margin: 0;
}
.urban-laundry-hero-subtitle {
    color: #6b7280;
    margin: 4px 0 0;
}
.urban-laundry-quick-links .btn {
    margin: 2px;
}
.urban-mini-stat {
    border: 1px solid #edf0f4;
    border-radius: 14px;
    padding: 14px;
    background: #fff;
    height: 100%;
}
.urban-mini-stat .label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}
.urban-mini-stat .value {
    font-weight: 800;
    font-size: 18px;
    color: #111827;
}
.urban-preview-table td,
.urban-preview-table th {
    vertical-align: middle;
}
.urban-section-anchor {
    scroll-margin-top: 100px;
}
.urban-section-title {
    font-weight: 800;
    color: #175e22;
    margin-bottom: 0;
}
.urban-table-preview-row {
    background: #f9fafb;
}
.urban-action-row .btn {
    margin: 2px;
}
.modal-dialog-scrollable .modal-body {
    max-height: calc(100vh - 190px);
    overflow-y: auto;
}
.sticky-modal-footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    z-index: 5;
    border-top: 1px solid #e5e7eb;
}
.urban-tab-buttons .btn {
    margin: 2px;
}
.urban-tab-pane {
    display: none;
}
.urban-tab-pane.active {
    display: block;
}
.urban-check-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    padding: 8px 10px;
}
.urban-check-row input {
    margin-top: 4px;
}

/* =========================================================
   LAUNDRY RECEIPT SCREEN
========================================================= */

.urban-receipt-page {
    max-width: 900px;
    margin: 0 auto;
}

.urban-receipt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.urban-receipt-normal {
    background: #ffffff;
    color: #111827;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    font-size: 12px;
}

.urban-receipt-thermal {
    background: #ffffff;
    color: #000000;
    width: 80mm;
    margin: 0 auto;
    padding: 8px;
    border: 1px solid #e5e7eb;
    font-size: 11px;
    line-height: 1.25;
}

.urban-receipt-center {
    text-align: center;
}

.urban-receipt-logo {
    max-width: 65px;
    max-height: 65px;
    object-fit: contain;
    margin-bottom: 6px;
}

.urban-receipt-title {
    font-size: 20px;
    font-weight: 900;
    color: #175e22;
    line-height: 1.1;
}

.urban-receipt-small {
    font-size: 12px;
    line-height: 1.35;
}

.urban-receipt-line {
    border-top: 1px dashed #6b7280;
    margin: 8px 0;
}

.urban-receipt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.urban-receipt-table th,
.urban-receipt-table td {
    padding: 4px 5px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.urban-receipt-summary td {
    border-bottom: 0;
    padding: 3px 5px;
}

.urban-receipt-total {
    font-weight: 900;
    font-size: 14px;
}

.urban-text-center {
    text-align: center;
}

.urban-text-end {
    text-align: right;
}

/* =========================================================
   PRINT FIX: ONLY RECEIPT AREA, NO BLANK PREVIEW
========================================================= */

@page {
    size: A4 portrait;
    margin: 7mm;
}

@media print {
    html,
    body {
        width: 210mm !important;
        min-height: 297mm !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        overflow: visible !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body * {
        visibility: hidden !important;
    }

    #printArea,
    #printArea * {
        visibility: visible !important;
    }

    #printArea {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
    }

    .no-print,
    .urban-receipt-actions,
    .sidebar,
    .iq-sidebar,
    .navbar,
    .footer {
        display: none !important;
        visibility: hidden !important;
    }

    .urban-receipt-normal {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 5mm !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        font-size: 9.6px !important;
        line-height: 1.12 !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        transform: scale(0.94);
        transform-origin: top left;
    }

    .urban-receipt-normal .urban-receipt-logo {
        max-width: 42px !important;
        max-height: 42px !important;
        margin-bottom: 2px !important;
    }

    .urban-receipt-normal .urban-receipt-title {
        font-size: 15px !important;
        line-height: 1.05 !important;
    }

    .urban-receipt-normal .urban-receipt-small {
        font-size: 8.8px !important;
        line-height: 1.12 !important;
    }

    .urban-receipt-normal .urban-receipt-line {
        margin: 4px 0 !important;
    }

    .urban-receipt-normal .urban-receipt-table {
        font-size: 8.8px !important;
    }

    .urban-receipt-normal .urban-receipt-table th,
    .urban-receipt-normal .urban-receipt-table td {
        padding: 2px 3px !important;
        line-height: 1.08 !important;
    }

    .urban-receipt-normal .urban-receipt-total {
        font-size: 10px !important;
    }

    .urban-receipt-thermal {
        width: 80mm !important;
        margin: 0 auto !important;
        padding: 3mm !important;
        border: none !important;
        box-shadow: none !important;
        font-size: 10px !important;
        line-height: 1.15 !important;
    }

    .urban-receipt-thermal .urban-receipt-logo {
        max-width: 38px !important;
        max-height: 38px !important;
    }

    .urban-receipt-thermal .urban-receipt-title {
        font-size: 13px !important;
    }

    .urban-receipt-thermal .urban-receipt-small,
    .urban-receipt-thermal .urban-receipt-table {
        font-size: 9.5px !important;
    }

    .urban-receipt-thermal .urban-receipt-table th,
    .urban-receipt-thermal .urban-receipt-table td {
        padding: 2px 0 !important;
    }
}

/* =========================================================
   URBAN LAUNDRY INDEX / CASHPOINT-LIKE STYLE
========================================================= */

.laundry-anchor-target {
    scroll-margin-top: 110px;
}

.laundry-section-highlight {
    animation: laundrySectionPulse 1.8s ease-in-out 1;
}

@keyframes laundrySectionPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(23, 94, 34, 0.35);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(23, 94, 34, 0.12);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(23, 94, 34, 0);
    }
}

.urban-filter-card {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.urban-card-title {
    font-weight: 800;
    color: #175e22;
}

.urban-section-card {
    border: 0;
    border-left: 5px solid #175e22;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    margin-bottom: 18px;
    background: #ffffff;
}

.urban-section-card.card-green {
    border-left-color: #175e22;
}

.urban-section-card.card-gold {
    border-left-color: #d79d12;
}

.urban-section-card.card-blue {
    border-left-color: #0f766e;
}

.urban-section-card.card-red {
    border-left-color: #b91c1c;
}

.urban-section-card.card-dark {
    border-left-color: #111827;
}

.urban-section-card .card-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 16px 16px 0 0;
}

.urban-stat-card {
    border: 0;
    border-radius: 16px;
    color: #ffffff;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.urban-stat-green {
    background: linear-gradient(135deg, #175e22, #0f3d18);
}

.urban-stat-gold {
    background: linear-gradient(135deg, #d79d12, #a36b00);
}

.urban-stat-red {
    background: linear-gradient(135deg, #b91c1c, #7f1d1d);
}

.urban-stat-bright {
    background: linear-gradient(135deg, #0f766e, #134e4a);
}

.urban-stat-title {
    margin-bottom: 5px;
    font-size: 13px;
    opacity: 0.9;
}

.urban-stat-value {
    margin: 0;
    color: #ffffff;
    font-weight: 800;
}

.urban-stat-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

.urban-table-badge {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.urban-badge-paid,
.urban-badge-success {
    background: rgba(23, 94, 34, 0.12);
    color: #175e22;
}

.urban-badge-unpaid,
.urban-badge-danger {
    background: rgba(185, 28, 28, 0.12);
    color: #b91c1c;
}

.urban-badge-warning {
    background: rgba(215, 157, 18, 0.14);
    color: #a36b00;
}

.urban-badge-info {
    background: rgba(15, 118, 110, 0.12);
    color: #0f766e;
}

.urban-action-buttons .btn {
    margin: 2px;
}

.modal-dialog-scrollable .modal-body {
    max-height: calc(100vh - 190px);
    overflow-y: auto;
}

.sticky-modal-footer {
    position: sticky;
    bottom: 0;
    background: #ffffff;
    z-index: 5;
    border-top: 1px solid #e5e7eb;
}

.urban-empty-row td {
    text-align: center;
    color: #6b7280;
}

.urban-mini-text {
    font-size: 12px;
    color: #6b7280;
}

.urban-check-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
}

.urban-check-row input {
    margin-top: 4px;
}

/* =========================================================
   URBAN LAUNDRY FINAL OVERRIDES - APPENDED BY CHATGPT
   Keeps existing CSS, fixes Laundry cards, modals, charts, receipt print.
========================================================= */

/* ---------- Laundry anchors / section focus ---------- */
.laundry-anchor-target,
.urban-section-anchor {
    scroll-margin-top: 110px;
}

.laundry-section-highlight {
    animation: laundrySectionPulse 1.8s ease-in-out 1;
}

@keyframes laundrySectionPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(23, 94, 34, 0.35);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(23, 94, 34, 0.12);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(23, 94, 34, 0);
    }
}

/* ---------- Cashpoint-like laundry cards ---------- */
.urban-filter-card,
.urban-laundry-hero {
    border: 0 !important;
    border-left: 6px solid var(--urban-primary, #175e22) !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

.urban-section-card,
.urban-laundry-card {
    position: relative;
    border: 0 !important;
    border-left: 5px solid var(--urban-primary, #175e22) !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
    margin-bottom: 18px !important;
    overflow: hidden;
}

.urban-section-card.card-green,
.urban-laundry-card.green {
    border-left-color: var(--urban-primary, #175e22) !important;
}
.urban-section-card.card-gold,
.urban-laundry-card.gold {
    border-left-color: #d79d12 !important;
}
.urban-section-card.card-blue,
.urban-laundry-card.blue {
    border-left-color: #0f766e !important;
}
.urban-section-card.card-red,
.urban-laundry-card.red {
    border-left-color: #b91c1c !important;
}
.urban-section-card.card-dark,
.urban-laundry-card.dark {
    border-left-color: #111827 !important;
}

.urban-section-card .card-header,
.urban-laundry-card .card-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
    border-radius: 16px 16px 0 0 !important;
}

.urban-card-title,
.urban-section-title,
.urban-laundry-hero-title,
.app-card-title {
    font-weight: 800 !important;
    color: var(--urban-primary, #175e22) !important;
}

.urban-laundry-hero-subtitle,
.urban-mini-text {
    color: #6b7280 !important;
}

/* ---------- Summary cards: keep text readable ---------- */
.urban-stat-card {
    border: 0 !important;
    border-radius: 16px !important;
    margin-bottom: 16px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
    min-height: 130px;
    overflow: hidden;
}

.urban-stat-green {
    background: linear-gradient(
        135deg,
        var(--urban-primary, #175e22),
        #0f3d18
    ) !important;
    color: #ffffff !important;
}

.urban-stat-gold {
    background: linear-gradient(135deg, #d79d12, #a36b00) !important;
    color: #ffffff !important;
}

.urban-stat-red {
    background: linear-gradient(135deg, #b91c1c, #7f1d1d) !important;
    color: #ffffff !important;
}

.urban-stat-bright {
    background: linear-gradient(135deg, #0f766e, #134e4a) !important;
    color: #ffffff !important;
}

.urban-stat-card .urban-stat-title,
.urban-stat-card .urban-stat-value,
.urban-stat-card .urban-stat-subtitle {
    color: #ffffff !important;
}

.urban-stat-title {
    margin-bottom: 5px !important;
    font-size: 13px !important;
    opacity: 0.9;
}

.urban-stat-value {
    margin: 0 !important;
    font-weight: 800 !important;
}

.urban-stat-subtitle {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* ---------- Badges / actions ---------- */
.urban-table-badge,
.app-badge,
.receipt-badge {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.urban-badge-paid,
.urban-badge-success {
    background: rgba(23, 94, 34, 0.12) !important;
    color: #175e22 !important;
}

.urban-badge-unpaid,
.urban-badge-danger {
    background: rgba(185, 28, 28, 0.12) !important;
    color: #b91c1c !important;
}

.urban-badge-warning {
    background: rgba(215, 157, 18, 0.14) !important;
    color: #a36b00 !important;
}

.urban-badge-info {
    background: rgba(15, 118, 110, 0.12) !important;
    color: #0f766e !important;
}

.urban-action-buttons .btn,
.urban-action-row .btn,
.table .btn {
    margin: 2px;
}

/* ---------- Modals / dynamic item forms ---------- */
.modal-dialog-scrollable .modal-body {
    max-height: calc(100vh - 190px) !important;
    overflow-y: auto !important;
}

.sticky-modal-footer {
    position: sticky !important;
    bottom: 0 !important;
    background: #ffffff !important;
    z-index: 10 !important;
    border-top: 1px solid #e5e7eb !important;
}

.laundry-order-form-box .table-responsive,
.laundry-items-box .table-responsive {
    overflow-x: auto;
}

.laundry-items-box {
    background: #ffffff;
}

.laundry-items-table th,
.laundry-items-table td {
    vertical-align: middle !important;
}

.laundry-items-table th,
.laundry-add-item-btn,
.laundry-remove-item-btn {
    white-space: nowrap;
}

.urban-check-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
}

.urban-check-row input {
    margin-top: 4px;
}

.urban-empty-row td {
    text-align: center;
    color: #6b7280;
}

/* ---------- Chart fixes for Laundry/Cashpoint/Home style dashboards ---------- */
.urban-chart-box,
.laundry-chart-box,
.app-chart-box {
    min-height: 360px !important;
    width: 100% !important;
}

.urban-chart-box-small {
    min-height: 310px !important;
    width: 100% !important;
}

.urban-chart-btn-group .btn {
    min-width: 38px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.urban-chart-btn-group svg {
    width: 16px !important;
    height: 16px !important;
    display: block !important;
    fill: currentColor !important;
}

.urban-chart-btn-group .btn.active {
    background-color: var(--urban-primary, #175e22) !important;
    border-color: var(--urban-primary, #175e22) !important;
    color: #ffffff !important;
}

.urban-chart-error {
    background: #fff3cd !important;
    border: 1px solid #ffdf7e !important;
    color: #664d03 !important;
    border-radius: 10px !important;
    padding: 18px !important;
    text-align: center;
}

/* ---------- Laundry receipt screen ---------- */
.urban-receipt-page {
    max-width: 900px;
    margin: 0 auto;
    background: transparent;
}

.urban-receipt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.urban-receipt-normal {
    background: #ffffff;
    color: #111827;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    font-size: 12px;
}

.urban-receipt-thermal {
    background: #ffffff;
    color: #000000;
    width: 80mm;
    margin: 0 auto;
    padding: 8px;
    border: 1px solid #e5e7eb;
    font-size: 11px;
    line-height: 1.25;
}

.urban-receipt-center {
    text-align: center;
}

.urban-receipt-logo {
    max-width: 65px;
    max-height: 65px;
    object-fit: contain;
    margin-bottom: 6px;
}

.urban-receipt-title {
    font-size: 20px;
    font-weight: 900;
    color: var(--urban-primary, #175e22);
    line-height: 1.1;
}

.urban-receipt-small {
    font-size: 12px;
    line-height: 1.35;
}

.urban-receipt-line {
    border-top: 1px dashed #6b7280;
    margin: 8px 0;
}

.urban-receipt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.urban-receipt-table th,
.urban-receipt-table td {
    padding: 4px 5px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.urban-receipt-summary td {
    border-bottom: 0;
    padding: 3px 5px;
}

.urban-receipt-total {
    font-weight: 900;
    font-size: 14px;
}

.urban-text-center {
    text-align: center;
}
.urban-text-end {
    text-align: right;
}

/* ---------- Print: receipt uses #printArea, apartment receipt uses #receiptArea, registry uses #registryArea ---------- */
@page {
    size: A4 portrait;
    margin: 7mm;
}

@media print {
    html,
    body {
        width: 210mm !important;
        min-height: 297mm !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        overflow: visible !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body * {
        visibility: hidden !important;
    }

    #printArea,
    #printArea *,
    #receiptArea,
    #receiptArea *,
    #registryArea,
    #registryArea *,
    .print-area,
    .print-area * {
        visibility: visible !important;
    }

    #printArea,
    #receiptArea,
    #registryArea,
    .print-area {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        box-shadow: none !important;
    }

    .no-print,
    .urban-receipt-actions,
    .receipt-toolbar-card,
    .urban-registry-toolbar,
    .sidebar,
    .iq-sidebar,
    .navbar,
    .iq-navbar,
    .footer,
    header,
    aside,
    footer,
    .breadcrumb,
    .setting-toggle,
    .theme-customizer,
    .right-sidebar {
        display: none !important;
        visibility: hidden !important;
    }

    .urban-receipt-normal {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 5mm !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        font-size: 9.6px !important;
        line-height: 1.12 !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        transform: scale(0.94);
        transform-origin: top left;
    }

    .urban-receipt-normal .urban-receipt-logo {
        max-width: 42px !important;
        max-height: 42px !important;
        margin-bottom: 2px !important;
    }

    .urban-receipt-normal .urban-receipt-title {
        font-size: 15px !important;
        line-height: 1.05 !important;
    }

    .urban-receipt-normal .urban-receipt-small {
        font-size: 8.8px !important;
        line-height: 1.12 !important;
    }

    .urban-receipt-normal .urban-receipt-line {
        margin: 4px 0 !important;
    }

    .urban-receipt-normal .urban-receipt-table {
        font-size: 8.8px !important;
    }

    .urban-receipt-normal .urban-receipt-table th,
    .urban-receipt-normal .urban-receipt-table td {
        padding: 2px 3px !important;
        line-height: 1.08 !important;
    }

    .urban-receipt-normal .urban-receipt-total {
        font-size: 10px !important;
    }

    .urban-receipt-thermal {
        width: 80mm !important;
        margin: 0 auto !important;
        padding: 3mm !important;
        border: none !important;
        box-shadow: none !important;
        font-size: 10px !important;
        line-height: 1.15 !important;
    }

    .urban-receipt-thermal .urban-receipt-logo {
        max-width: 38px !important;
        max-height: 38px !important;
    }

    .urban-receipt-thermal .urban-receipt-title {
        font-size: 13px !important;
    }

    .urban-receipt-thermal .urban-receipt-small,
    .urban-receipt-thermal .urban-receipt-table {
        font-size: 9.5px !important;
    }

    .urban-receipt-thermal .urban-receipt-table th,
    .urban-receipt-thermal .urban-receipt-table td {
        padding: 2px 0 !important;
    }

    .receipt-card,
    .urban-registry-card {
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
    }

    .table-responsive {
        overflow: visible !important;
    }

    a[href]:after {
        content: "" !important;
    }
}
/* =========================================================
   STAFF MODAL SCROLL FIX
   Keeps Save / Update / Activate buttons visible
========================================================= */
#createStaffModal .modal-dialog,
[id^="editStaffModal"] .modal-dialog,
[id^="activateStaffModal"] .modal-dialog {
    height: calc(100vh - 40px);
    max-height: calc(100vh - 40px);
    margin-top: 20px;
    margin-bottom: 20px;
}

#createStaffModal .modal-content,
[id^="editStaffModal"] .modal-content,
[id^="activateStaffModal"] .modal-content {
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
}

#createStaffModal .modal-body,
[id^="editStaffModal"] .modal-body,
[id^="activateStaffModal"] .modal-body {
    overflow-y: auto !important;
    max-height: calc(100vh - 175px);
    padding-bottom: 20px;
}

#createStaffModal .modal-header,
#createStaffModal .modal-footer,
[id^="editStaffModal"] .modal-header,
[id^="editStaffModal"] .modal-footer,
[id^="activateStaffModal"] .modal-header,
[id^="activateStaffModal"] .modal-footer {
    flex-shrink: 0;
}

#createStaffModal .modal-footer,
[id^="editStaffModal"] .modal-footer,
[id^="activateStaffModal"] .modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

/* Mobile fix */
@media (max-width: 768px) {
    #createStaffModal .modal-dialog,
    [id^="editStaffModal"] .modal-dialog,
    [id^="activateStaffModal"] .modal-dialog {
        height: calc(100vh - 20px);
        max-height: calc(100vh - 20px);
        margin: 10px;
    }

    #createStaffModal .modal-body,
    [id^="editStaffModal"] .modal-body,
    [id^="activateStaffModal"] .modal-body {
        max-height: calc(100vh - 160px);
    }
}

.market-dashboard-wrap {
    padding-bottom: 30px;
}

.market-dashboard-header {
    background: linear-gradient(135deg, #163322, #175e22);
    border-radius: 18px;
    overflow: hidden;
}

.market-dashboard-header .form-label {
    font-weight: 700;
    margin-bottom: 6px;
}

.market-filter-note {
    margin-top: 16px;
    background: rgba(255, 255, 255, 0.12);
    border-left: 4px solid #f4b000;
    padding: 12px 15px;
    border-radius: 12px;
    color: #fff;
    font-size: 13px;
}

.market-chart-card {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.market-chart-card .card-header {
    border-bottom: 1px solid #e9f3ea;
    padding: 20px 24px 12px 24px;
}

.market-chart-card .card-body {
    padding: 18px 24px 24px 24px;
}

.market-chart-title {
    font-size: 21px;
    font-weight: 800;
    color: #102c1b;
    margin-bottom: 3px;
}

.market-chart-subtitle {
    color: #6b7280;
    font-size: 14px;
}

.urban-chart-btn-group .btn {
    width: 38px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.urban-chart-btn-group svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.urban-chart-error {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: #9b1c1c;
    background: #fff5f5;
    border: 1px dashed #f5b5b5;
    border-radius: 14px;
    padding: 20px;
}

.market-stock-table th {
    white-space: nowrap;
    color: #102c1b;
}

.market-stock-table td {
    vertical-align: middle;
}

.market-stock-tabs .nav-link {
    border-radius: 999px;
    font-weight: 700;
    margin-right: 8px;
    color: #175e22;
}

.market-stock-tabs .nav-link.active {
    background: #175e22;
    color: #fff;
}

@media (max-width: 767px) {
    .market-chart-title {
        font-size: 18px;
    }

    .market-dashboard-header .card-body {
        padding: 20px !important;
    }
}
/* =========================================================
   URBAN MARKET MODULE
   Keep Market UI same as Laundry UI
   ========================================================= */

.market-anchor-target {
    scroll-margin-top: 120px;
}

.market-section-highlight {
    animation: marketSectionPulse 1.8s ease-in-out;
}

@keyframes marketSectionPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(23, 94, 34, 0.35);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(23, 94, 34, 0.15);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(23, 94, 34, 0);
    }
}

.market-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.market-action-bar .btn {
    min-width: 110px;
    font-weight: 700;
}

.market-filter-card .form-label,
.urban-filter-card .form-label {
    color: #153d24;
    font-weight: 700;
    margin-bottom: 6px;
}

.market-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.market-quick-links a {
    border-radius: 10px;
    font-weight: 700;
}

.market-table-subtext {
    color: #6b7280;
    font-size: 12px;
}

.market-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.market-pill-paid {
    color: #065f46;
    background: #d1fae5;
}

.market-pill-partial {
    color: #92400e;
    background: #fef3c7;
}

.market-pill-unpaid {
    color: #991b1b;
    background: #fee2e2;
}

.market-pill-info {
    color: #075985;
    background: #e0f2fe;
}

.market-pill-dark {
    color: #111827;
    background: #e5e7eb;
}

.market-pill-danger {
    color: #991b1b;
    background: #fee2e2;
}

.market-pill-warning {
    color: #92400e;
    background: #fef3c7;
}

.market-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.market-actions .btn {
    margin-bottom: 3px;
}

.market-empty-row td {
    color: #6b7280;
    font-weight: 600;
    text-align: center;
    padding: 24px 10px !important;
}

.market-section-card {
    margin-bottom: 22px;
}

.market-section-card .card-header {
    background: #ffffff;
    border-bottom: 1px solid #e6f0e8;
}

.market-section-title {
    color: #175e22;
    font-weight: 800;
    margin-bottom: 4px;
}

.market-section-subtitle {
    color: #6b7280;
    margin-bottom: 0;
}

.market-table th {
    background: #eaf5ec !important;
    color: #102c1b !important;
    font-weight: 800 !important;
    white-space: nowrap;
}

.market-table td {
    vertical-align: middle;
}

.market-form-card {
    background: #f8fbf8;
    border: 1px solid #e6f0e8;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 18px;
}

.market-form-card-title {
    font-size: 17px;
    font-weight: 800;
    color: #175e22;
    margin-bottom: 12px;
}

.market-mini-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.market-mini-summary .market-mini-box {
    flex: 1;
    min-width: 160px;
    background: #f4fbf5;
    border: 1px solid #e1f1e3;
    border-radius: 12px;
    padding: 12px;
}

.market-mini-summary .market-mini-box span {
    display: block;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
}

.market-mini-summary .market-mini-box strong {
    display: block;
    color: #102c1b;
    font-size: 18px;
    font-weight: 900;
}

.market-modal .modal-header {
    background: linear-gradient(135deg, #163322, #175e22);
    color: #ffffff;
}

.market-modal .modal-title {
    color: #ffffff;
    font-weight: 800;
}

.market-modal .btn-close {
    filter: invert(1);
}

.market-batch-item-select {
    font-size: 13px;
}

.market-receipt-wrapper {
    background: #f6f7fb;
    min-height: 100vh;
    padding: 20px 0;
}

.market-receipt-card {
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    color: #222;
    font-family:
        DejaVu Sans,
        Arial,
        sans-serif;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.market-receipt-header {
    text-align: center;
    border-bottom: 1px dashed #cbd5e1;
    padding-bottom: 14px;
    margin-bottom: 14px;
}

.market-receipt-logo {
    width: 95px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 8px auto;
}

.market-receipt-title {
    margin: 0;
    font-weight: 800;
    font-size: 25px;
    color: #175e22;
    line-height: 1.2;
}

.market-receipt-branch {
    margin: 4px 0 0 0;
    font-weight: 800;
    color: #111827;
    font-size: 16px;
}

.market-receipt-muted {
    color: #64748b;
    font-size: 12px;
    margin-bottom: 0;
    line-height: 1.5;
}

.market-receipt-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.05em;
}

.market-receipt-actions {
    max-width: 850px;
    margin: 0 auto 15px auto;
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.market-receipt-meta,
.market-receipt-table,
.receipt-totals {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 13px;
}

.market-receipt-meta td {
    padding: 6px 4px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
}

.market-receipt-table th,
.market-receipt-table td {
    border-bottom: 1px solid #e5e7eb;
    padding: 8px 6px;
    vertical-align: top;
}

.market-receipt-table th {
    background: #eaf5ec;
    font-weight: 800;
    color: #102c1b;
}

.receipt-totals td {
    padding: 5px 4px;
    border-bottom: 0;
}

.receipt-total-grand {
    font-size: 16px;
    font-weight: 800;
    border-top: 2px solid #111827;
    color: #175e22;
}

.receipt-footer {
    margin-top: 16px;
    text-align: center;
    color: #64748b;
    font-size: 12px;
    border-top: 1px dashed #cbd5e1;
    padding-top: 12px;
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

@media print {
    .sidebar,
    .iq-navbar,
    .navbar,
    .market-receipt-actions,
    .btn,
    footer,
    .footer,
    .no-print {
        display: none !important;
    }

    .content-page,
    .container-fluid,
    .market-receipt-wrapper {
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    .market-receipt-card {
        max-width: 100% !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
    }
}

@media (max-width: 767px) {
    .market-action-bar .btn {
        width: 100%;
    }

    .market-quick-links a {
        width: 100%;
    }
}
