/* =========================================================================
   EasyBill admin theme — AdminLTE 3 top navigation, no sidebar
   ========================================================================= */

@font-face {
    font-family: EasySans;
    src: url(../fonts/SegoeUI.ttf) format("truetype");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: EasySans;
    src: url(../fonts/SegoeUI-Bold.ttf) format("truetype");
    font-weight: 700;
    font-display: swap;
}

:root {
    --brand: #174b3d;
    --brand-strong: #0f3a2e;
    --brand-soft: #e8f1eb;
    --brand-line: #cfe0d6;
    --accent: #2f9e6a;
    --ink: #20322a;
    --muted: #74857b;
    --line: #e1e8e3;
    --surface: #ffffff;
    --canvas: #f2f6f3;
    --danger: #bf4a3f;
    --warning: #b7791f;
    --radius: 12px;
    --shadow-sm: 0 1px 2px rgba(22, 56, 40, .05), 0 4px 14px rgba(22, 56, 40, .04);
    --shadow-md: 0 10px 30px rgba(17, 46, 33, .10);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: EasySans, "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: var(--canvas);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--brand);
}

a:hover {
    color: var(--brand-strong);
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    z-index: 2000;
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
}

.skip-link:focus {
    left: 12px;
    color: #fff;
}

/* -------------------------------------------------------------------------
   Top navigation
   ---------------------------------------------------------------------- */

.layout-top-nav .main-header {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.easy-navbar {
    min-height: 64px;
    padding: 0;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(140%) blur(6px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 10px rgba(20, 52, 37, .04);
}

.easy-nav-inner {
    max-width: 100%;
    width: 100%;
    min-height: 60px;
    padding: 0 20px;
    gap: 10px;
}

.easy-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 12px;
    padding: 6px 0;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(145deg, #1d5b48, #12392f);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(23, 75, 61, .28);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-text b {
    font-size: 1.32rem;
    letter-spacing: -.6px;
    color: var(--brand);
    font-weight: 700;
}

.brand-text b span {
    font-weight: 400;
    color: #79a58c;
}

.brand-text small {
    margin-top: 4px;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #9aa9a0;
}

.easy-nav-toggle {
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--brand);
    padding: 4px 10px;
}

.easy-main-menu {
    gap: 2px;
    align-items: center;
}

.easy-main-menu > .nav-item {
    flex: 0 0 auto;
}

.easy-main-menu > .nav-item > .nav-link {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 1px;
    padding: 9px 10px;
    border-radius: 9px;
    font-weight: 600;
    font-size: .92rem;
    color: #4c5f54;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}

.easy-main-menu > .nav-item > .nav-link i {
    font-size: .86rem;
    color: #81978a;
    transition: color .15s ease;
}

.easy-main-menu > .nav-item > .nav-link:hover,
.easy-main-menu > .nav-item > .nav-link:focus {
    background: #f1f6f2;
    color: var(--brand);
}

.easy-main-menu > .nav-item > .nav-link.active {
    background: var(--brand-soft);
    color: var(--brand);
}

.easy-main-menu > .nav-item > .nav-link.active i {
    color: var(--brand);
}

.easy-main-menu .nav-link.dropdown-toggle::after {
    margin-left: 2px;
    vertical-align: .18em;
    opacity: .55;
}

/* Dropdowns ------------------------------------------------------------- */

.easy-dropdown {
    margin-top: 8px;
    padding: 8px;
    min-width: 232px;
    border-radius: 12px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
}

.easy-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 600;
    color: #44584c;
    white-space: normal;
}

.easy-dropdown .dropdown-item i {
    width: 18px;
    text-align: center;
    color: #8aa094;
    font-size: .85rem;
}

.easy-dropdown .dropdown-item:hover,
.easy-dropdown .dropdown-item:focus,
.easy-dropdown .dropdown-item.active {
    background: #f1f6f2;
    color: var(--brand);
}

.easy-dropdown .dropdown-item:hover i,
.easy-dropdown .dropdown-item.active i {
    color: var(--brand);
}

.easy-dropdown .dropdown-divider {
    border-top-color: var(--line);
    margin: 6px 4px;
}

.easy-user-menu {
    align-items: center;
    gap: 6px;
}

.nav-search {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 4px;
}

.nav-search > i {
    position: absolute;
    left: 13px;
    color: #93a69a;
    font-size: .8rem;
    pointer-events: none;
}

.nav-search input {
    width: 220px;
    height: 38px;
    padding: 6px 14px 6px 34px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f7faf8;
    font-size: .86rem;
    color: var(--ink);
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.nav-search input::placeholder {
    color: #9aa9a0;
}

.nav-search input:focus {
    outline: 0;
    background: #fff;
    border-color: #9fc2ae;
    box-shadow: 0 0 0 3px rgba(47, 158, 106, .12);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 6px;
    padding: 8px 14px !important;
    border-radius: 9px;
    background: var(--brand);
    color: #fff !important;
    font-weight: 700;
    font-size: .88rem;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(23, 75, 61, .22);
}

.nav-cta i {
    color: #fff !important;
}

.nav-cta:hover {
    background: var(--brand-strong);
    color: #fff !important;
}

.user-toggle {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 8px;
    border-radius: 10px;
}

.user-toggle:hover {
    background: #f4f8f5;
}

.user-avatar {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    background: linear-gradient(145deg, #2f9e6a, #1c6a4d);
    color: #fff;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .3px;
}

.user-avatar-lg {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    font-size: .95rem;
}

.user-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    text-align: left;
}

.user-copy b {
    font-size: .84rem;
    font-weight: 700;
    color: #2a4236;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-copy small {
    font-size: .7rem;
    font-weight: 600;
    color: #93a69a;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.user-dropdown {
    min-width: 268px;
    padding: 8px;
}

.user-dropdown-head {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 10px 12px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 6px;
}

.user-dropdown-head b {
    display: block;
    font-size: .92rem;
    color: #22382c;
}

.user-dropdown-head small {
    display: block;
    color: #8b9c92;
    font-size: .78rem;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* -------------------------------------------------------------------------
   Content shell
   ---------------------------------------------------------------------- */

.content-wrapper {
    background: transparent;
    min-height: calc(100vh - 130px);
}

.content-header {
    padding: 10px 0 6px;
}

.content-header .container-fluid,
.content > .container-fluid {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 20px;
    padding-right: 20px;
}

.page-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -.35px;
    color: #1d3328;
}

.page-subtitle {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: .92rem;
}

.page-breadcrumb {
    margin: 0 0 6px;
    padding: 0;
    background: transparent;
    font-size: .76rem;
    font-weight: 600;
    color: #98a89e;
}

.page-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #b8c6bd;
}

.page-breadcrumb a {
    color: #7d9185;
}

.page-breadcrumb a:hover {
    color: var(--brand);
}

.page-breadcrumb .active {
    color: #5f7568;
}

.topbar-date {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: .8rem;
    font-weight: 600;
    color: #73857b;
}

.nav-clock {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding: 0 12px;
    line-height: 1.25;
    white-space: nowrap;
    border-right: 1px solid var(--line);
    margin-right: 6px;
}

.nav-clock .clock-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .70rem;
    color: #7b8f83;
    font-weight: 600;
}

.nav-clock .clock-date i {
    font-size: .68rem;
    color: #92a498;
}

.nav-clock .clock-time {
    font-size: .84rem;
    font-weight: 700;
    color: #1e3328;
    letter-spacing: .4px;
    font-variant-numeric: tabular-nums;
}

.content {
    padding: 6px 0 20px;
}

.eyebrow {
    font-size: .7rem;
    letter-spacing: 1.3px;
    font-weight: 700;
    color: #8a9790;
}

.page-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 0 0 16px;
}

.page-toolbar .page-subtitle {
    margin: 0;
}

.filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px 16px;
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 130px;
}

.filter-field.filter-grow {
    flex: 1 1 240px;
}

.filter-field label {
    margin: 0;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #87998e;
}

.filter-field .form-control {
    height: 34px;
    font-size: .85rem;
}

.filter-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

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

/* -------------------------------------------------------------------------
   Cards, tables, badges
   ---------------------------------------------------------------------- */

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    background: var(--surface);
    overflow: hidden;
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--line);
    padding: 10px 16px;
}

.card-header::after {
    display: none;
}

.card-title {
    float: none;
    font-size: .96rem;
    font-weight: 700;
    color: #253c30;
}

.card-header small {
    display: block;
    margin-top: 2px;
    color: #8b9c92;
    font-size: .78rem;
}

.card-body {
    padding: 14px 16px;
}

.card-footer {
    background: #fbfdfb;
    border-top: 1px solid var(--line);
    padding: 10px 16px;
}

.card-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-outline.card-success {
    border-top: 3px solid var(--brand);
}

/* Stat cards ------------------------------------------------------------ */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.stat-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(20, 52, 37, .08);
}

.stat-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 10px;
    font-size: 1rem;
}

.stat-icon.tone-green { background: #e6f4ec; color: #1f7a52; }
.stat-icon.tone-amber { background: #fdf3e0; color: #a86a10; }
.stat-icon.tone-blue { background: #e8f0fb; color: #2c62a8; }
.stat-icon.tone-rose { background: #fbeaea; color: #b0463c; }
.stat-icon.tone-violet { background: #eeeafb; color: #6247a5; }

.stat-body {
    min-width: 0;
}

.stat-label {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: #87998e;
}

.stat-value {
    display: block;
    margin: 1px 0;
    font-size: 1.35rem;
    line-height: 1.15;
    font-weight: 700;
    color: #1e3328;
    font-variant-numeric: tabular-nums;
}

.stat-note {
    display: block;
    font-size: .74rem;
    color: #93a69a;
}

.stat-link {
    position: absolute;
    right: 14px;
    top: 14px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    color: #9fb1a5;
    background: #f5f9f6;
}

.stat-link:hover {
    background: var(--brand-soft);
    color: var(--brand);
}

/* Tables ---------------------------------------------------------------- */

.table {
    margin-bottom: 0;
    color: #34473c;
}

.table th {
    border-top: 0;
    border-bottom: 1px solid var(--line);
    padding: 7px 10px;
    background: #f8fbf9;
    font-size: .71rem;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
    color: #7b8f83;
    white-space: nowrap;
}

.table td {
    padding: 7px 10px;
    border-top: 1px solid #edf2ee;
    vertical-align: middle;
    font-size: .88rem;
}

.table-hover tbody tr:hover {
    background: #f7faf8;
}

.table .cell-strong {
    font-weight: 700;
    color: #22382c;
}

.table .cell-muted {
    color: #87998e;
    font-size: .8rem;
}

.table .cell-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.table .cell-actions {
    text-align: right;
    white-space: nowrap;
}

.table .btn-icon {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    margin-left: 2px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    color: #6f8577;
    font-size: .78rem;
}

.table .btn-icon:hover {
    background: var(--brand-soft);
    border-color: var(--brand-line);
    color: var(--brand);
}

.table .btn-icon.danger:hover {
    background: #fbeceb;
    border-color: #f0cfcb;
    color: var(--danger);
}

.table-link {
    font-weight: 700;
    color: var(--brand);
}

.table-link:hover {
    text-decoration: underline;
}

.dataTables_wrapper {
    padding-top: 2px;
}

.dataTables_wrapper .row:first-child {
    margin-bottom: 12px;
}

.dataTables_wrapper .dataTables_filter input {
    margin-left: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px 10px;
    outline: 0;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #9fc2ae;
    box-shadow: 0 0 0 3px rgba(47, 158, 106, .1);
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 4px 8px;
}

.dataTables_wrapper .dataTables_info {
    padding-top: 12px;
    color: #87998e;
    font-size: .8rem;
}

.dataTables_wrapper .pagination {
    margin-top: 12px;
}

.page-link {
    border-color: var(--line);
    color: var(--brand);
    font-weight: 600;
}

.page-item.active .page-link {
    background: var(--brand);
    border-color: var(--brand);
}

/* Status and role pills ------------------------------------------------- */

.badge-status,
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .71rem;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    line-height: 1.3;
}

.badge-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: .75;
}

.status-pending { background: #fdf3e2; color: #9a6512; }
.status-repaired { background: #e7f0fb; color: #2b62a6; }
.status-delivered { background: #e6f4ec; color: #1f7a52; }
.status-cancelled { background: #fbeceb; color: #a44037; }
.status-default { background: #eef2ef; color: #5f7367; }

.role-admin { background: #e8f1eb; color: #1f6a4d; }
.role-technician { background: #e7f0fb; color: #2b62a6; }
.role-front-desk { background: #fdf3e2; color: #9a6512; }
.role-default { background: #eef2ef; color: #5f7367; }

/* -------------------------------------------------------------------------
   Forms and buttons
   ---------------------------------------------------------------------- */

.btn {
    border-radius: 8px;
    font-weight: 600;
    font-size: .88rem;
    padding: 7px 14px;
}

.btn-sm {
    padding: 5px 11px;
    font-size: .81rem;
}

.btn-brand,
.btn-success {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.btn-brand:hover,
.btn-brand:focus,
.btn-success:hover,
.btn-success:focus,
.btn-success:not(:disabled):not(.disabled):active {
    background: var(--brand-strong);
    border-color: var(--brand-strong);
    color: #fff;
}

.btn-outline-brand {
    color: var(--brand);
    border-color: #b9cfc2;
    background: #fff;
}

.btn-outline-brand:hover {
    background: var(--brand-soft);
    color: var(--brand-strong);
    border-color: #a9c4b4;
}

.btn-outline-success {
    color: var(--brand);
    border-color: #b9cfc2;
    background: #fff;
}

.btn-outline-success:hover,
.btn-outline-success:focus,
.btn-outline-success:not(:disabled):not(.disabled):active {
    background: var(--brand-soft);
    color: var(--brand-strong);
    border-color: #a9c4b4;
}

.btn-default {
    background: #fff;
    border: 1px solid var(--line);
    color: #5d7265;
}

.btn-default:hover {
    background: #f4f8f5;
}

.form-group > label,
.card-body label,
.modal-body label,
.job-fields label {
    font-weight: 600;
    font-size: .83rem;
    color: #566a5e;
    margin-bottom: .3rem;
}

.form-control {
    height: 36px;
    border: 1px solid #dbe4de;
    border-radius: 6px;
    font-size: .88rem;
    color: #2c4236;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

textarea.form-control {
    height: auto;
    min-height: 84px;
}

select.form-control {
    padding-right: 30px;
}

.form-control:focus {
    border-color: #9fc2ae;
    box-shadow: 0 0 0 3px rgba(47, 158, 106, .12);
}

.form-control::placeholder {
    color: #a9b7ae;
}

.input-group-text {
    background: #f6faf7;
    border-color: #dbe4de;
    color: #7b8f83;
}

.input-group > .form-control {
    border-radius: 8px 0 0 8px;
}

.input-group-append > .btn,
.input-group-append > .input-group-text {
    border-radius: 0 8px 8px 0;
}

.form-control.is-invalid {
    border-color: #d68a83;
    background-image: none;
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(191, 74, 63, .12);
}

.invalid-feedback {
    display: none;
    font-size: .78rem;
    color: var(--danger);
    margin-top: 4px;
}

.is-invalid ~ .invalid-feedback,
.invalid-feedback.d-block {
    display: block;
}

.custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--brand);
    border-color: var(--brand);
}

.custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 3px rgba(47, 158, 106, .15);
}

.form-text,
.field-hint {
    font-size: .77rem;
    color: #8b9c92;
}

.form-section-title {
    margin: 0 0 12px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #87998e;
}

.form-grid {
    display: grid;
    gap: 14px;
}

.form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.input-hint {
    display: block;
    margin-top: 4px;
    font-size: .76rem;
    color: #8b9c92;
}

/* Login / setup --------------------------------------------------------- */

.auth-page {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background:
        radial-gradient(900px 500px at 10% 0%, #e7f1ea 0%, transparent 60%),
        radial-gradient(700px 500px at 100% 100%, #dfeee6 0%, transparent 55%),
        linear-gradient(160deg, #f6faf7 0%, #eef5f0 100%);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid #dde8e1;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(18, 58, 40, .12);
    overflow: hidden;
}

.auth-card.auth-wide {
    max-width: 860px;
}

.auth-head {
    padding: 26px 30px 0;
    text-align: center;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.auth-brand:hover {
    text-decoration: none;
}

.auth-brand .brand-text {
    text-align: left;
}

.auth-body {
    padding: 22px 30px 28px;
}

.auth-title {
    margin: 0 0 4px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1c3327;
}

.auth-copy {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: .9rem;
}

.auth-foot {
    padding: 14px 30px 20px;
    border-top: 1px solid #eef3ef;
    text-align: center;
    font-size: .78rem;
    color: #93a69a;
}

.auth-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 16px;
    font-size: .78rem;
    color: #8b9c92;
}

.password-toggle {
    border: 1px solid #dbe4de;
    border-left: 0;
    border-radius: 0 8px 8px 0;
    background: #f8fbf9;
    color: #7b8f83;
    width: 44px;
}

.password-toggle:hover {
    color: var(--brand);
}

/* -------------------------------------------------------------------------
   Dashboard pieces
   ---------------------------------------------------------------------- */

.dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.revenue-chart {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    height: 190px;
    padding: 10px 4px 0;
}

.revenue-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: 100%;
    justify-content: flex-end;
}

.revenue-bar .bar-track {
    width: 100%;
    max-width: 44px;
    height: 100%;
    display: flex;
    align-items: flex-end;
    background: #f4f8f5;
    border-radius: 8px;
    overflow: hidden;
}

.revenue-bar .bar-fill {
    width: 100%;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, #3aa678, #1d6a4c);
    transition: height .4s ease;
}

.revenue-bar small {
    font-size: .72rem;
    font-weight: 600;
    color: #8b9c92;
}

.revenue-bar .bar-value {
    font-size: .72rem;
    font-weight: 700;
    color: #52685a;
    font-variant-numeric: tabular-nums;
}

.chart-empty {
    display: grid;
    place-items: center;
    height: 190px;
    color: #93a69a;
    font-size: .85rem;
}

.status-list {
    display: grid;
    gap: 12px;
}

.status-row {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 10px;
    font-size: .82rem;
}

.status-row .status-name {
    font-weight: 600;
    color: #566a5e;
}

.status-row .progress {
    height: 8px;
    border-radius: 99px;
    background: #eef3ef;
}

.status-row .progress-bar {
    border-radius: 99px;
}

.status-row .status-count {
    text-align: right;
    font-weight: 700;
    color: #3b5145;
    font-variant-numeric: tabular-nums;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fbfdfb;
    color: #3f564a;
    font-weight: 600;
    font-size: .84rem;
}

.quick-action:hover {
    border-color: var(--brand-line);
    background: var(--brand-soft);
    color: var(--brand);
    text-decoration: none;
}

.quick-action i {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #fff;
    color: var(--brand);
    box-shadow: var(--shadow-sm);
}

/* -------------------------------------------------------------------------
   Misc
   ---------------------------------------------------------------------- */

.empty-state {
    padding: 34px 16px;
    text-align: center;
    color: #93a69a;
}

.empty-state i {
    display: block;
    margin-bottom: 8px;
    font-size: 1.5rem;
    color: #b6c6bc;
}

.empty-state p {
    margin: 0;
    font-size: .88rem;
}

.alert {
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: .9rem;
}

.alert-success { background: #edf7f1; border-color: #cfe8da; color: #1f6a4d; }
.alert-danger { background: #fdf0ef; border-color: #f3d5d2; color: #a44037; }
.alert-warning { background: #fdf6e8; border-color: #f2e1bd; color: #8a5c10; }
.alert-info { background: #eef5fb; border-color: #d4e5f4; color: #2b5f8e; }

.flash-stack {
    margin-bottom: 14px;
}

.modal-content {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 26px 70px rgba(14, 42, 30, .22);
}

.modal-header {
    border-bottom: 1px solid var(--line);
    padding: 16px 20px;
}

.modal-title {
    font-size: 1.05rem;
    font-weight: 700;
}

.modal-body {
    padding: 18px 20px;
}

.modal-footer {
    border-top: 1px solid var(--line);
    padding: 12px 20px;
}

.modal-backdrop.show {
    opacity: .38;
}

.text-danger-soft {
    color: var(--danger);
}

.mono {
    font-variant-numeric: tabular-nums;
}

.nowrap {
    white-space: nowrap;
}

.divider-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0;
    color: #9aaba1;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.divider-label::before,
.divider-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.main-footer {
    background: transparent;
    border-top: 1px solid var(--line);
    padding: 14px 20px;
    font-size: .8rem;
    color: #8b9c92;
}

.main-footer strong {
    color: #5b7264;
}

.footer-sep {
    margin: 0 4px;
    color: #b8c6bd;
}

.footer-version {
    padding: 2px 8px;
    border-radius: 99px;
    background: #eaf2ec;
    color: #5f7d6c;
    font-size: .7rem;
    font-weight: 700;
}

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1020;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    box-shadow: 0 8px 20px rgba(23, 75, 61, .28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Error page ------------------------------------------------------------ */

.error-page-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(700px 420px at 20% 0%, #e7f1ea 0%, transparent 60%),
        linear-gradient(160deg, #f6faf7, #edf4ef);
}

.error-card {
    width: 100%;
    max-width: 460px;
    padding: 34px;
    text-align: center;
    background: #fff;
    border: 1px solid #dde8e1;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(18, 58, 40, .12);
}

.error-code {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: #b9d2c5;
    letter-spacing: -2px;
}

.error-card h1 {
    margin: 8px 0 8px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1c3327;
}

.error-card p {
    color: var(--muted);
    margin-bottom: 20px;
}

/* -------------------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------------- */

@media (max-width: 1399.98px) {
    .nav-search {
        display: none !important;
    }
}

@media (max-width: 1199.98px) {
    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dash-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 1199.98px) {
    .easy-navbar {
        padding: 6px 0;
    }

    .easy-nav-inner {
        padding: 0 14px;
    }

    .navbar-collapse {
        padding: 10px 0 6px;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }

    .easy-main-menu {
        align-items: stretch;
        gap: 0;
        padding-top: 4px;
        border-top: 1px solid var(--line);
        margin-top: 6px;
    }

    .easy-main-menu > .nav-item > .nav-link {
        padding: 10px 8px;
    }

    .easy-main-menu .dropdown-menu {
        margin: 4px 0 6px 10px;
        border: 0 !important;
        box-shadow: none !important;
        background: #f7faf8;
    }

    .easy-user-menu {
        align-items: stretch;
        padding-top: 8px;
        margin-top: 8px;
        border-top: 1px solid var(--line);
    }

    .nav-cta {
        margin: 4px 0;
        justify-content: center;
    }

    .user-toggle {
        justify-content: flex-start;
    }

    .content-header {
        padding: 18px 0 0;
    }

    .page-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 767.98px) {
    .stat-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 15px;
    }

    .form-grid.two,
    .form-grid.three {
        grid-template-columns: minmax(0, 1fr);
    }

    .quick-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .content-header .text-right {
        text-align: left !important;
    }

    .main-footer {
        text-align: center;
    }

    .main-footer .float-right {
        float: none !important;
        margin-bottom: 4px;
    }
}

/* -------------------------------------------------------------------------
   Print
   ---------------------------------------------------------------------- */

@media print {
    body {
        background: #fff !important;
    }

    .main-header,
    .main-footer,
    .content-header,
    .flash-stack,
    .no-print,
    .back-to-top,
    .skip-link {
        display: none !important;
    }

    .content-wrapper,
    .content,
    .content > .container-fluid {
        margin: 0 !important;
        padding: 0 !important;
        max-width: none !important;
    }

    .card,
    .modal-content {
        box-shadow: none !important;
        border-color: #ddd !important;
    }
}

/* =========================================================================
   Google Stitch & AdminLTE Alert Toast Styling
   ========================================================================= */

.swal2-container.swal2-top-end {
    top: 16px !important;
    right: 16px !important;
    z-index: 9999 !important;
}

.swal2-popup.easy-alert-toast {
    display: flex !important;
    align-items: center !important;
    width: auto !important;
    max-width: 420px !important;
    padding: 10px 16px !important;
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-left: 4px solid #10b981 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1) !important;
    font-family: inherit !important;
}

.swal2-popup.easy-alert-toast.swal2-icon-error {
    border-left-color: #ef4444 !important;
}

.swal2-popup.easy-alert-toast.swal2-icon-warning {
    border-left-color: #f59e0b !important;
}

.swal2-popup.easy-alert-toast.swal2-icon-info {
    border-left-color: #3b82f6 !important;
}

.swal2-popup.easy-alert-toast .swal2-title {
    margin: 0 0 0 10px !important;
    padding: 0 !important;
    font-size: .88rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    text-align: left !important;
    line-height: 1.35 !important;
}

.swal2-popup.easy-alert-toast .swal2-icon {
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    border: none !important;
}

.swal2-popup.easy-alert-toast .swal2-icon .swal2-icon-content {
    font-size: 1rem !important;
}

.swal2-popup.easy-alert-toast .swal2-timer-progress-bar {
    background: #10b981 !important;
    height: 3px !important;
}

.swal2-popup.easy-alert-toast.swal2-icon-error .swal2-timer-progress-bar {
    background: #ef4444 !important;
}

.swal2-popup.easy-alert-toast.swal2-icon-warning .swal2-timer-progress-bar {
    background: #f59e0b !important;
}

/* Super Admin Badge and Pill Styles */
.badge-tenant-active {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.badge-tenant-suspended {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.badge-tenant-expired {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}
.badge-tenant-expiring {
    background-color: #fff7ed;
    color: #c2410c;
    border: 1px solid #ffedd5;
}

