/* =========================================================
   HOMEBASE GARDENS ADMIN
   FULL ADMIN CSS
   ---------------------------------------------------------
   Theme:
   Jungle Green + Yellow + Gold + Natural Neutrals

   Responsive behavior:
   - Desktop: fixed top navigation
   - Laptop/tablet: compact top navigation
   - Mobile: fixed horizontal-scroll navigation
   - Main content always clears the navigation
========================================================= */


/* =========================================================
   ROOT VARIABLES
========================================================= */

:root {
    --green: #123d2d;
    --green2: #1d6045;
    --yellow: #c9dc70;
    --gold: #c9a227;

    --cream: #f5f3eb;
    --ink: #17211c;
    --muted: #66736c;

    --line: #e3e8e3;
    --white: #fff;

    --danger: #b33b35;

    --shadow:
        0 14px 40px rgba(18,61,45,.08);
}


/* =========================================================
   GLOBAL RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

body {
    width: 100%;
    min-width: 0;
    margin: 0;

    font-family:
        Inter,
        Arial,
        sans-serif;

    background: #f5f7f5;
    color: var(--ink);

    overflow-x: hidden;
}

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

button,
input,
textarea,
select {
    font: inherit;
}


/* =========================================================
   MAIN LAYOUT
========================================================= */

.layout {
    width: 100%;
    min-height: 100vh;
    display: flex;
}

.main {
    min-width: 0;
}


/* =========================================================
   SIDEBAR / ADMIN HEADER
========================================================= */

.sidebar {
    width: 270px;

    background:
        linear-gradient(
            180deg,
            #0d3023,
            #123d2d
        );

    color: #fff;

    padding: 26px 18px;

    position: fixed;

    inset: 0 auto 0 0;

    z-index: 20;
}


/* =========================================================
   BRAND
========================================================= */

.brand {
    display: flex;
    align-items: center;

    gap: 12px;

    padding:
        4px 8px 26px;

    border-bottom:
        1px solid rgba(255,255,255,.12);
}

.brand img {
    width: 48px;
    height: 48px;

    object-fit: contain;

    background: #fff;

    border-radius: 12px;

    padding: 4px;
}

.brand strong {
    font-size: 18px;
}

.brand small {
    display: block;

    opacity: .65;

    margin-top: 3px;
}


/* =========================================================
   ORIGINAL NAVIGATION
========================================================= */

.sidebar nav {
    margin-top: 22px;

    display: grid;

    gap: 6px;
}

.sidebar nav a {
    color:
        rgba(255,255,255,.82);

    text-decoration: none;

    padding: 13px 14px;

    border-radius: 12px;

    display: flex;

    align-items: center;

    gap: 11px;

    font-weight: 600;
}

.sidebar nav a i {
    font-size: 20px;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background:
        rgba(255,255,255,.11);

    color: #fff;
}

.nav-divider {
    height: 1px;

    background:
        rgba(255,255,255,.1);

    margin:
        12px 5px;
}


/* =========================================================
   MAIN CONTENT
========================================================= */

.main {
    margin-left: 270px;

    width:
        calc(100% - 270px);

    padding:
        28px 34px;
}


/* =========================================================
   TOP BAR
========================================================= */

.topbar {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    margin-bottom: 28px;
}

.topbar h1 {
    margin: 0;

    font-size: 30px;
}

.topbar p {
    margin:
        6px 0 0;

    color: var(--muted);
}


/* =========================================================
   ACTIONS
========================================================= */

.actions {
    display: flex;

    gap: 10px;

    flex-wrap: wrap;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    border: 0;

    background: var(--green);

    color: #fff;

    padding:
        11px 16px;

    border-radius: 10px;

    text-decoration: none;

    cursor: pointer;

    font-weight: 700;
}

.btn:hover {
    background: var(--green2);
}

.btn.gold {
    background: var(--gold);

    color: #fff;
}

.btn.light,
.btn.btn-light {
    background: #eef3ee;

    color: var(--green);
}

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


/* =========================================================
   STATISTICS
========================================================= */

.stats {
    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 18px;

    margin-bottom: 22px;
}

.stat {
    background: #fff;

    border:
        1px solid var(--line);

    border-radius: 18px;

    padding: 20px;

    box-shadow: var(--shadow);

    display: flex;

    justify-content: space-between;

    gap: 15px;

    min-width: 0;
}

.stat-icon {
    width: 46px;
    height: 46px;

    border-radius: 13px;

    display: grid;

    place-items: center;

    background: #edf5ef;

    color: var(--green);

    font-size: 23px;

    flex: 0 0 auto;
}

.stat h3 {
    margin: 0;

    color: var(--muted);

    font-size: 13px;
}

.metric {
    font-size: 30px;

    font-weight: 800;

    margin-top: 7px;
}

.trend {
    font-size: 12px;

    color: #55725f;

    margin-top: 5px;
}


/* =========================================================
   TWO COLUMN GRID
========================================================= */

.grid2 {
    display: grid;

    grid-template-columns:
        1.35fr .65fr;

    gap: 22px;
}


/* =========================================================
   PANELS
========================================================= */

.panel {
    background: #fff;

    border:
        1px solid var(--line);

    border-radius: 18px;

    padding: 22px;

    box-shadow: var(--shadow);

    margin-bottom: 22px;

    min-width: 0;
}

.panel-head {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 15px;

    margin-bottom: 16px;
}

.panel h2 {
    font-size: 18px;

    margin: 0;
}

.panel-head a {
    font-size: 13px;

    font-weight: 700;
}

.panel-head > span {
    font-size: 13px;

    color: var(--muted);

    font-weight: 700;
}


/* =========================================================
   QUICK ACTIONS
========================================================= */

.quick {
    display: grid;

    grid-template-columns:
        repeat(2,1fr);

    gap: 12px;
}

.quick a {
    display: flex;

    align-items: center;

    gap: 12px;

    text-decoration: none;

    background: var(--cream);

    color: var(--green);

    padding: 16px;

    border-radius: 13px;

    font-weight: 800;
}

.quick i {
    font-size: 24px;
}


/* =========================================================
   NOTICES / ALERTS
========================================================= */

.notice {
    padding:
        13px 15px;

    border-radius: 11px;

    background: #edf7ef;

    color: #2b6040;

    margin-bottom: 18px;
}

.alert {
    padding:
        13px 16px;

    border-radius: 10px;

    margin-bottom: 20px;

    font-weight: 600;
}

.alert-success {
    background: #e8f5eb;

    color: #28613c;
}

.alert-error {
    background: #fdeceb;

    color: #8b2e2a;
}


/* =========================================================
   TABLES
========================================================= */

.table-wrap {
    width: 100%;

    max-width: 100%;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;

    border-collapse: collapse;
}

th,
td {
    padding:
        13px 10px;

    border-bottom:
        1px solid var(--line);

    text-align: left;

    vertical-align: middle;
}

th {
    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: .04em;

    color: var(--muted);
}

td {
    font-size: 14px;
}

.table-wrap table {
    min-width: 720px;
}


/* =========================================================
   STATUS BADGES
========================================================= */

.status {
    display: inline-block;

    padding:
        5px 9px;

    border-radius: 99px;

    font-size: 11px;

    font-weight: 800;

    text-transform: capitalize;
}

.status.new {
    background: #fff4d8;

    color: #85640b;
}

.status.contacted {
    background: #e8f1ff;

    color: #28598d;
}

.status.confirmed {
    background: #e5f6e9;

    color: #24703c;
}

.status.cancelled {
    background: #fde8e6;

    color: #9b302a;
}


/* =========================================================
   FORMS
========================================================= */

.form-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 16px;
}

label {
    display: grid;

    gap: 7px;

    font-weight: 700;

    font-size: 13px;

    margin-bottom: 15px;
}

input,
textarea,
select {
    width: 100%;

    padding:
        12px 13px;

    border:
        1px solid #d6ddd7;

    border-radius: 10px;

    background: #fff;

    color: var(--ink);

    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--green2);

    box-shadow:
        0 0 0 3px
        rgba(29,96,69,.08);
}

textarea {
    min-height: 110px;

    resize: vertical;
}

.check {
    display: flex;

    align-items: center;

    gap: 8px;

    font-weight: 600;
}

.check input {
    width: auto;
}


/* =========================================================
   FIELD HELP
========================================================= */

.field-help,
.muted {
    color: var(--muted);

    font-size: 12px;

    font-weight: 500;
}


/* =========================================================
   PASSWORD
========================================================= */

.password-hint {
    display: block;

    margin-top: -5px;

    margin-bottom: 8px;

    font-size: 12px;

    color: var(--muted);

    font-weight: 600;
}

.password-hint-error {
    color: var(--danger);
}

.password-hint-ok {
    color: #24703c;
}

.password-show {
    display: flex;

    align-items: center;

    gap: 8px;

    margin:
        0 0 16px;

    font-size: 13px;
}

.password-show input {
    width: auto;
}


/* =========================================================
   IMAGES / THUMBNAILS
========================================================= */

.thumb {
    width: 80px;

    height: 58px;

    object-fit: cover;

    border-radius: 9px;

    border:
        1px solid var(--line);
}

.actions-cell {
    white-space: nowrap;
}

.actions-cell .btn {
    margin:
        3px 2px;

    padding:
        9px 11px;

    font-size: 13px;
}

.empty {
    text-align: center;

    padding: 35px;

    color: var(--muted);
}


/* =========================================================
   LOGIN PAGE
========================================================= */

.login-wrap {
    min-height: 100vh;

    display: grid;

    place-items: center;

    padding: 25px;

    background:
        linear-gradient(
            135deg,
            #edf5ee,
            #f8f7f0
        );
}

.login {
    width:
        min(430px,100%);

    background: #fff;

    border-radius: 22px;

    padding: 34px;

    box-shadow:
        0 25px 70px
        rgba(18,61,45,.13);

    border:
        1px solid var(--line);
}

.login img {
    width: 145px;

    height: 80px;

    object-fit: contain;

    display: block;

    margin:
        0 auto 15px;
}

.login h1 {
    text-align: center;

    margin:
        5px 0 7px;
}

.login p {
    text-align: center;

    color: var(--muted);
}

.login .btn {
    width: 100%;

    justify-content: center;
}

.login-badge {
    display: block;

    width: max-content;

    margin:
        0 auto 12px;

    padding:
        6px 10px;

    border-radius: 99px;

    background: #edf5ef;

    color: var(--green);

    font-size: 11px;

    font-weight: 800;
}


/* =========================================================
   MINI LIST
========================================================= */

.mini-list {
    display: grid;

    gap: 12px;
}

.mini-item {
    display: flex;

    align-items: center;

    gap: 12px;

    padding:
        12px 0;

    border-bottom:
        1px solid var(--line);
}

.mini-item:last-child {
    border-bottom: 0;
}

.mini-icon {
    width: 38px;

    height: 38px;

    border-radius: 10px;

    background: #edf5ef;

    color: var(--green);

    display: grid;

    place-items: center;

    font-size: 19px;

    flex: 0 0 auto;
}

.mini-item strong {
    display: block;
}

.mini-item small {
    color: var(--muted);
}


/* =========================================================
   ADMIN CREATE CARD
========================================================= */

.admin-create-card {
    max-width: 900px;
}

.admin-create-card .notice {
    display: flex;

    align-items: center;

    gap: 8px;
}

.admin-create-card .notice i {
    font-size: 22px;
}

.admin-create-card .btn {
    min-height: 42px;
}


/* =========================================================
   PREMIUM ROLE SYSTEM
========================================================= */

.premium-role-grid {
    display: grid;

    grid-template-columns:
        repeat(2,minmax(0,1fr));

    gap: 18px;

    margin-bottom: 22px;
}

.premium-role-card {
    background: #fff;

    border:
        1px solid var(--line);

    border-radius: 18px;

    padding: 24px;

    box-shadow: var(--shadow);

    position: relative;

    overflow: hidden;
}

.premium-role-card.featured {
    background:
        linear-gradient(
            145deg,
            #0d3023,
            #174b37
        );

    color: #fff;

    border-color: #1d6045;
}

.premium-role-card h2 {
    margin:
        10px 0 8px;

    font-size: 24px;
}

.premium-role-card p {
    color: var(--muted);

    line-height: 1.6;
}

.premium-role-card.featured p {
    color:
        rgba(255,255,255,.75);
}

.premium-role-card ul {
    padding-left: 18px;

    color: var(--muted);

    line-height: 1.9;

    font-size: 13px;
}

.premium-role-card.featured ul {
    color:
        rgba(255,255,255,.78);
}

.premium-role-card > strong {
    font-size: 12px;
}


/* =========================================================
   PREMIUM BADGES
========================================================= */

.premium-badge {
    display: inline-flex;

    padding:
        6px 10px;

    border-radius: 99px;

    background: #eaf3c8;

    color: #38511f;

    font-size: 11px;

    font-weight: 900;

    letter-spacing: .08em;
}

.premium-badge.standard {
    background: #2d679e;

    color: #fff;
}


/* =========================================================
   ADMIN ROLE CARD
========================================================= */

.admin-role-card {
    display: flex;

    align-items: center;

    gap: 10px;

    padding:
        12px 14px;

    margin:
        4px 0;

    background:
        rgba(255,255,255,.08);

    border:
        1px solid rgba(255,255,255,.1);

    border-radius: 12px;
}

.admin-role-card .premium-crown {
    color: #f2d56c;
}

.admin-role-card strong,
.admin-role-card small {
    display: block;
}

.admin-role-card small {
    font-size: 10px;

    opacity: .65;

    margin-top: 2px;
}

.premium-crown {
    color: #e7cf78;
}


/* =========================================================
   PREMIUM ADMIN SUMMARY
========================================================= */

.premium-admin-summary {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 18px;

    background:
        linear-gradient(
            135deg,
            #f4f7f3,
            #fff
        );

    border-color: #d9e3da;
}

.premium-admin-summary h2 {
    margin:
        8px 0 4px;
}

.premium-admin-summary p {
    margin: 0;

    color: var(--muted);
}


/* =========================================================
   SETTINGS
========================================================= */

.settings-subhead {
    margin:
        26px 0 14px;

    font-size: 16px;
}

.upload-grid {
    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 16px;
}

.upload-card {
    border:
        1px dashed #cfd8d0;

    background: #f8faf8;

    border-radius: 14px;

    padding: 16px;
}

.upload-card input {
    background: #fff;
}

.settings-preview {
    width: 100%;

    height: 130px;

    object-fit: cover;

    border-radius: 12px;

    margin-top: 10px;
}

.settings-preview.large {
    height: 170px;

    margin:
        0 0 12px;
}


/* =========================================================
   IMAGE PLACEHOLDER
========================================================= */

.image-placeholder {
    height: 170px;

    border:
        1px dashed #ccd7ce;

    border-radius: 12px;

    display: grid;

    place-items: center;

    align-content: center;

    gap: 5px;

    color: var(--muted);

    background: #f7faf7;

    margin-bottom: 12px;
}

.image-placeholder i {
    font-size: 32px;
}


/* =========================================================
   FILE PICKER
========================================================= */

.file-picker {
    display: flex !important;

    align-items: center;

    justify-content: center;

    gap: 7px;

    background: #123d2d;

    color: #fff;

    padding:
        11px 13px;

    border-radius: 10px;

    cursor: pointer;

    font-weight: 800;

    text-align: center;

    margin: 0 !important;
}

.file-picker input {
    display: none;
}

.remove-image {
    display: flex !important;

    align-items: center;

    gap: 7px;

    margin:
        10px 0 0 !important;

    font-size: 12px;

    color: #8b2e2a;
}

.remove-image input {
    width: auto;
}


/* =========================================================
   HOMEPAGE CONTROL CENTER
========================================================= */

.homepage-control-banner {
    display: flex;

    align-items: center;

    gap: 16px;

    background:
        linear-gradient(
            135deg,
            #f5f8f4,
            #fff
        );

    border-color: #dce7dd;
}

.control-banner-icon {
    width: 52px;

    height: 52px;

    border-radius: 15px;

    background: #123d2d;

    color: #fff;

    display: grid;

    place-items: center;

    font-size: 25px;

    flex: 0 0 auto;
}

.homepage-control-banner strong {
    font-size: 17px;
}

.homepage-control-banner p {
    margin:
        4px 0 0;

    color: var(--muted);

    font-size: 13px;
}


/* =========================================================
   PANEL PILLS
========================================================= */

.panel-pill {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    background: #eef5ef;

    color: var(--green);

    border:
        1px solid #dce8de;

    padding:
        7px 10px;

    border-radius: 999px;

    font-size: 11px;

    font-weight: 800;

    white-space: nowrap;
}


/* =========================================================
   SECTION MANAGER
========================================================= */

.section-manager-grid {
    display: grid;

    grid-template-columns:
        repeat(2,minmax(0,1fr));

    gap: 12px;
}

.section-toggle {
    margin: 0;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 16px;

    padding: 17px;

    border:
        1px solid var(--line);

    border-radius: 15px;

    background: #fafcfb;

    cursor: pointer;

    transition: .2s;
}

.section-toggle:hover {
    border-color: #bfd0c1;

    transform:
        translateY(-1px);
}

.section-toggle.is-on {
    background: #f2f8f3;

    border-color: #c9dccd;
}

.toggle-copy {
    display: grid;

    gap: 5px;
}

.toggle-copy strong {
    font-size: 14px;
}

.toggle-copy small {
    color: var(--muted);

    font-weight: 500;

    line-height: 1.45;
}


/* =========================================================
   SWITCH
========================================================= */

.switch {
    position: relative;

    display: inline-block;

    width: 46px;

    height: 27px;

    flex: 0 0 auto;
}

.switch input {
    position: absolute;

    opacity: 0;

    width: 0;

    height: 0;
}

.switch > span {
    position: absolute;

    inset: 0;

    border-radius: 999px;

    background: #cbd3cd;

    transition: .2s;
}

.switch > span:before {
    content: "";

    position: absolute;

    width: 21px;

    height: 21px;

    left: 3px;

    top: 3px;

    border-radius: 50%;

    background: #fff;

    box-shadow:
        0 2px 6px rgba(0,0,0,.18);

    transition: .2s;
}

.switch input:checked + span {
    background: #1d6045;
}

.switch input:checked + span:before {
    transform:
        translateX(19px);
}


/* =========================================================
   FULL WIDTH FORM FIELD
========================================================= */

.full-field {
    grid-column: 1 / -1;
}


/* =========================================================
   HOMEPAGE IMAGE GRID
========================================================= */

.homepage-image-grid {
    display: grid;

    grid-template-columns:
        repeat(3,minmax(0,1fr));

    gap: 18px;
}

.homepage-image-card {
    border:
        1px solid var(--line);

    border-radius: 17px;

    padding: 16px;

    background: #fbfcfb;
}

.image-card-head {
    display: flex;

    justify-content: space-between;

    gap: 12px;

    margin-bottom: 12px;
}

.image-card-head strong,
.image-card-head small {
    display: block;
}

.image-card-head small {
    color: var(--muted);

    font-size: 11px;

    line-height: 1.4;

    margin-top: 4px;
}

.image-card-head > i {
    font-size: 23px;

    color: var(--green2);
}


/* =========================================================
   HOMEPAGE SAVE BAR
========================================================= */

.homepage-save {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    background: #fff;

    border:
        1px solid var(--line);

    box-shadow:
        0 12px 35px
        rgba(18,61,45,.1);

    padding:
        14px 16px;

    border-radius: 15px;

    margin:
        0 0 20px;
}

.homepage-save div {
    display: grid;

    gap: 3px;
}

.homepage-save span {
    font-size: 12px;

    color: var(--muted);
}

.sticky-save {
    position: sticky;

    bottom: 12px;

    padding-top: 15px;
}


/* =========================================================
   DESKTOP / TABLET TOP NAVIGATION
========================================================= */

@media (min-width: 761px) {

    .layout {
        display: block !important;
    }

    .sidebar {
        position: fixed !important;

        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: auto !important;

        width: 100% !important;

        height: auto !important;

        min-height: 0 !important;

        padding:
            12px 24px 10px !important;

        overflow: visible !important;

        z-index: 9999;

        border-radius: 0 !important;

        box-shadow:
            0 8px 25px
            rgba(8,38,27,.16);
    }

    .brand {
        display: flex !important;

        align-items: center !important;

        width: 100% !important;

        min-height: 52px !important;

        margin:
            0 0 9px !important;

        padding:
            0 2px 9px !important;

        gap: 11px !important;

        border-bottom:
            1px solid rgba(255,255,255,.11);
    }

    .brand img {
        width: 43px !important;
        height: 43px !important;

        flex-basis: 43px !important;

        padding: 3px !important;

        border-radius: 11px !important;
    }

    .brand strong {
        font-size: 17px !important;

        line-height: 1.05 !important;

        white-space: nowrap;
    }

    .brand small {
        font-size: 10px !important;

        line-height: 1 !important;

        white-space: nowrap;
    }

    .sidebar nav {
        display: flex !important;

        align-items: center !important;

        width: 100% !important;

        margin: 0 !important;

        padding:
            0 0 2px !important;

        gap: 6px !important;

        overflow-x: auto !important;

        overflow-y: hidden !important;

        -webkit-overflow-scrolling: touch;

        scrollbar-width: thin;

        scrollbar-color:
            rgba(255,255,255,.25)
            transparent;
    }

    .sidebar nav::-webkit-scrollbar {
        height: 4px;
    }

    .sidebar nav::-webkit-scrollbar-track {
        background: transparent;
    }

    .sidebar nav::-webkit-scrollbar-thumb {
        background:
            rgba(255,255,255,.25);

        border-radius: 20px;
    }

    .sidebar nav > a {
        display: inline-flex !important;

        align-items: center !important;

        flex: 0 0 auto !important;

        width: auto !important;

        min-width: max-content !important;

        height: 40px !important;

        min-height: 40px !important;

        padding:
            8px 13px !important;

        gap: 7px !important;

        border-radius: 9px !important;

        font-size: 12px !important;

        line-height: 1 !important;

        white-space: nowrap !important;
    }

    .sidebar nav > a i {
        width: auto !important;

        min-width: 0 !important;

        font-size: 18px !important;
    }

    .sidebar nav > a span {
        display: inline !important;

        min-width: max-content !important;

        overflow: visible !important;

        white-space: nowrap !important;
    }

    .sidebar nav > a:hover,
    .sidebar nav > a.active {
        background:
            rgba(255,255,255,.13) !important;

        color: #fff !important;
    }

    .sidebar nav > a.active {
        box-shadow:
            inset 0 -3px 0
            var(--yellow);
    }

    .sidebar nav .nav-divider {
        display: block !important;

        flex: 0 0 1px !important;

        width: 1px !important;

        height: 27px !important;

        margin:
            0 3px !important;

        background:
            rgba(255,255,255,.18) !important;
    }

    .sidebar nav .admin-role-card {
        display: flex !important;

        align-items: center !important;

        flex: 0 0 auto !important;

        width: auto !important;

        min-width: max-content !important;

        height: 40px !important;

        min-height: 40px !important;

        margin: 0 !important;

        padding:
            7px 12px !important;

        gap: 7px !important;

        border-radius: 9px !important;

        background:
            rgba(255,255,255,.08) !important;

        border:
            1px solid rgba(255,255,255,.10) !important;
    }

    .sidebar nav .admin-role-card strong {
        display: block !important;

        font-size: 11px !important;

        white-space: nowrap;
    }

    .sidebar nav .admin-role-card small {
        display: block !important;

        margin-top: 2px !important;

        font-size: 8px !important;
    }

    .main {
        width: 100% !important;

        margin-left: 0 !important;

        padding:
            150px 34px 30px !important;
    }
}


/* =========================================================
   LAPTOP / SMALL DESKTOP
========================================================= */

@media (min-width: 761px) and (max-width: 1100px) {

    .sidebar {
        padding-left: 16px !important;

        padding-right: 16px !important;
    }

    .brand {
        min-height: 47px !important;

        margin-bottom: 7px !important;
    }

    .brand img {
        width: 39px !important;

        height: 39px !important;

        flex-basis: 39px !important;
    }

    .brand strong {
        font-size: 15px !important;
    }

    .brand small {
        font-size: 9px !important;
    }

    .sidebar nav > a {
        height: 37px !important;

        min-height: 37px !important;

        padding:
            7px 10px !important;

        font-size: 11px !important;
    }

    .sidebar nav > a i {
        font-size: 16px !important;
    }

    .sidebar nav .admin-role-card {
        height: 37px !important;

        min-height: 37px !important;

        padding:
            6px 9px !important;
    }

    .main {
        padding:
            138px 20px 25px !important;
    }

    .stats {
        grid-template-columns:
            repeat(2,1fr);
    }

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

    .upload-grid {
        grid-template-columns:
            repeat(2,1fr);
    }

    .homepage-image-grid {
        grid-template-columns:
            repeat(2,1fr);
    }

    .section-manager-grid {
        grid-template-columns:
            repeat(2,1fr);
    }
}


/* =========================================================
   LARGE DESKTOP
========================================================= */

@media (min-width: 1200px) {

    .sidebar {
        padding-left: 32px !important;

        padding-right: 32px !important;
    }

    .main {
        padding-left: 42px !important;

        padding-right: 42px !important;
    }
}


/* =========================================================
   MOBILE TOP NAVIGATION
========================================================= */

@media (max-width: 760px) {

    .layout {
        display: block !important;

        width: 100%;

        min-height: 100dvh;
    }

    .sidebar {
        position: fixed !important;

        top: 0 !important;

        left: 0 !important;

        right: 0 !important;

        bottom: auto !important;

        width: 100% !important;

        height: auto !important;

        min-height: 0 !important;

        max-height: 125px !important;

        padding:
            7px 10px 8px !important;

        overflow: hidden !important;

        z-index: 9999;

        border-radius:
            0 0 14px 14px !important;

        box-shadow:
            0 5px 18px
            rgba(8,38,27,.18);
    }

    .brand {
        display: flex !important;

        align-items: center !important;

        width: 100% !important;

        height: 42px !important;

        min-height: 42px !important;

        padding:
            0 4px 6px !important;

        margin:
            0 0 6px !important;

        gap: 8px !important;

        border-bottom:
            1px solid rgba(255,255,255,.11);
    }

    .brand img {
        width: 34px !important;

        height: 34px !important;

        flex: 0 0 34px !important;

        padding: 2px !important;

        border-radius: 9px !important;
    }

    .brand strong {
        display: block !important;

        font-size: 12px !important;

        line-height: 1.05 !important;

        white-space: nowrap !important;
    }

    .brand small {
        display: block !important;

        margin-top: 2px !important;

        font-size: 7.5px !important;

        line-height: 1 !important;

        white-space: nowrap !important;

        overflow: hidden;

        text-overflow: ellipsis;
    }

    .sidebar nav {
        display: flex !important;

        flex-direction: row !important;

        align-items: center !important;

        width: 100% !important;

        height: 47px !important;

        min-height: 47px !important;

        margin: 0 !important;

        padding:
            0 0 4px !important;

        gap: 6px !important;

        overflow-x: auto !important;

        overflow-y: hidden !important;

        -webkit-overflow-scrolling: touch;

        scrollbar-width: thin;

        scrollbar-color:
            rgba(255,255,255,.28)
            transparent;
    }

    .sidebar nav::-webkit-scrollbar {
        height: 4px;
    }

    .sidebar nav::-webkit-scrollbar-track {
        background: transparent;
    }

    .sidebar nav::-webkit-scrollbar-thumb {
        background:
            rgba(255,255,255,.25);

        border-radius: 10px;
    }

    .sidebar nav > a {
        display: inline-flex !important;

        align-items: center !important;

        flex: 0 0 auto !important;

        width: auto !important;

        min-width: max-content !important;

        height: 36px !important;

        min-height: 36px !important;

        padding:
            7px 11px !important;

        gap: 6px !important;

        border-radius: 8px !important;

        font-size: 10px !important;

        line-height: 1 !important;

        white-space: nowrap !important;

        overflow: visible !important;
    }

    .sidebar nav > a i {
        width: auto !important;

        min-width: 0 !important;

        font-size: 15px !important;

        flex: 0 0 auto !important;
    }

    .sidebar nav > a span {
        display: inline !important;

        min-width: max-content !important;

        overflow: visible !important;

        text-overflow: clip !important;

        white-space: nowrap !important;
    }

    .sidebar nav > a:hover,
    .sidebar nav > a.active {
        background:
            rgba(255,255,255,.14) !important;

        color: #fff !important;
    }

    .sidebar nav > a.active {
        box-shadow:
            inset 0 -2px 0
            var(--yellow);
    }

    .sidebar nav .nav-divider {
        display: block !important;

        flex: 0 0 1px !important;

        width: 1px !important;

        height: 27px !important;

        margin:
            0 2px !important;

        background:
            rgba(255,255,255,.16) !important;
    }

    .sidebar nav .admin-role-card {
        display: flex !important;

        align-items: center !important;

        flex: 0 0 auto !important;

        width: auto !important;

        min-width: max-content !important;

        height: 36px !important;

        min-height: 36px !important;

        margin: 0 !important;

        padding:
            6px 10px !important;

        gap: 6px !important;

        border-radius: 8px !important;

        background:
            rgba(255,255,255,.08) !important;

        border:
            1px solid
            rgba(255,255,255,.10) !important;
    }

    .sidebar nav .admin-role-card strong {
        display: block !important;

        font-size: 10px !important;

        line-height: 1 !important;

        white-space: nowrap !important;
    }

    .sidebar nav .admin-role-card small {
        display: none !important;
    }

    .main {
        display: block !important;

        width: 100% !important;

        min-width: 0 !important;

        margin: 0 !important;

        padding:
            143px 12px 30px !important;
    }

    .topbar {
        width: 100% !important;

        display: flex !important;

        flex-direction: column !important;

        align-items: stretch !important;

        gap: 10px !important;

        margin-bottom: 15px !important;
    }

    .topbar h1 {
        font-size: 25px !important;

        line-height: 1.1 !important;
    }

    .topbar p {
        font-size: 11px !important;

        line-height: 1.45 !important;

        margin-top: 4px !important;
    }

    .actions {
        display: grid !important;

        grid-template-columns:
            repeat(2,minmax(0,1fr));

        width: 100% !important;

        gap: 7px !important;
    }

    .actions .btn {
        width: 100% !important;

        min-height: 36px !important;

        justify-content: center !important;

        padding:
            8px 7px !important;

        font-size: 10px !important;
    }

    .stats {
        display: grid !important;

        grid-template-columns:
            repeat(2,minmax(0,1fr)) !important;

        width: 100% !important;

        gap: 8px !important;

        margin-bottom: 12px !important;
    }

    .stat {
        min-width: 0 !important;

        min-height: 94px !important;

        padding: 11px !important;

        border-radius: 12px !important;
    }

    .stat h3 {
        font-size: 9px !important;

        line-height: 1.25 !important;
    }

    .metric {
        font-size: 23px !important;

        line-height: 1 !important;

        margin-top: 5px !important;
    }

    .trend {
        font-size: 8px !important;

        line-height: 1.25 !important;
    }

    .stat-icon {
        width: 31px !important;

        height: 31px !important;

        border-radius: 8px !important;

        font-size: 15px !important;
    }

    .grid2 {
        display: block !important;

        width: 100% !important;
    }

    .grid2 > section,
    .grid2 > aside {
        width: 100% !important;

        min-width: 0 !important;
    }

    .panel {
        width: 100% !important;

        min-width: 0 !important;

        padding: 14px !important;

        margin-bottom: 12px !important;

        border-radius: 13px !important;

        overflow: hidden !important;
    }

    .panel-head {
        display: flex !important;

        align-items: center !important;

        gap: 8px !important;

        margin-bottom: 10px !important;

        flex-wrap: wrap;
    }

    .panel h2 {
        font-size: 14px !important;
    }

    .panel-head a {
        font-size: 10px !important;
    }

    .table-wrap {
        width: 100% !important;

        overflow-x: auto !important;

        -webkit-overflow-scrolling: touch;
    }

    .table-wrap table {
        min-width: 650px !important;
    }

    .quick {
        display: grid !important;

        grid-template-columns:
            repeat(2,minmax(0,1fr)) !important;

        gap: 7px !important;
    }

    .quick a {
        min-width: 0 !important;

        min-height: 43px !important;

        padding: 8px !important;

        border-radius: 9px !important;

        font-size: 10px !important;

        overflow: hidden;
    }

    .quick i {
        font-size: 17px !important;
    }

    .mini-item {
        min-width: 0;

        padding: 8px 0 !important;
    }

    .mini-icon {
        width: 29px !important;

        height: 29px !important;

        flex: 0 0 29px;

        font-size: 14px !important;
    }

    .mini-item strong {
        font-size: 10px !important;
    }

    .mini-item small {
        font-size: 8px !important;

        line-height: 1.3;
    }

    .premium-role-grid {
        grid-template-columns: 1fr !important;
    }

    .upload-grid {
        grid-template-columns: 1fr !important;
    }

    .homepage-image-grid {
        grid-template-columns: 1fr !important;
    }

    .section-manager-grid {
        grid-template-columns: 1fr !important;
    }

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

    .premium-admin-summary {
        display: flex !important;

        flex-direction: column !important;

        align-items: flex-start !important;
    }

    .premium-admin-summary .btn {
        width: 100% !important;

        justify-content: center !important;
    }

    .homepage-save {
        align-items: stretch;

        flex-direction: column;

        gap: 10px;

        padding: 10px;

        border-radius: 12px;
    }

    .homepage-save .btn {
        width: 100%;

        justify-content: center;
    }

    .homepage-control-banner {
        align-items: flex-start;
    }

    .panel-pill {
        white-space: normal;
    }

    .full-field {
        grid-column: auto;
    }
}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 480px) {

    .sidebar {
        max-height: 119px !important;

        padding:
            6px 8px 7px !important;
    }

    .brand {
        height: 38px !important;

        min-height: 38px !important;

        margin-bottom: 4px !important;

        padding-bottom: 5px !important;
    }

    .brand img {
        width: 30px !important;

        height: 30px !important;

        flex-basis: 30px !important;
    }

    .brand strong {
        font-size: 11px !important;
    }

    .brand small {
        font-size: 7px !important;
    }

    .sidebar nav {
        height: 43px !important;

        min-height: 43px !important;

        gap: 5px !important;
    }

    .sidebar nav > a,
    .sidebar nav .admin-role-card {
        height: 34px !important;

        min-height: 34px !important;
    }

    .sidebar nav > a {
        padding:
            6px 9px !important;

        font-size: 9px !important;
    }

    .sidebar nav > a i {
        font-size: 14px !important;
    }

    .sidebar nav .admin-role-card {
        padding:
            5px 9px !important;
    }

    .sidebar nav .admin-role-card strong {
        font-size: 9px !important;
    }

    .main {
        padding-top: 132px !important;

        padding-left: 10px !important;

        padding-right: 10px !important;
    }

    .topbar h1 {
        font-size: 23px !important;
    }

    .stats {
        gap: 7px !important;
    }

    .stat {
        min-height: 91px !important;

        padding: 10px !important;
    }

    .metric {
        font-size: 22px !important;
    }

    .trend {
        font-size: 8px !important;
    }

    .quick a {
        font-size: 10px !important;
    }

    .homepage-image-card {
        padding: 11px !important;

        border-radius: 13px !important;
    }

    .settings-preview.large,
    .image-placeholder {
        height: 170px !important;
    }

    .admin-create-card .btn {
        width: 100%;

        justify-content: center;
    }

    .actions-cell {
        white-space: normal;
    }
}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    .sidebar {
        max-height: 112px !important;

        padding:
            5px 7px 6px !important;
    }

    .brand {
        height: 35px !important;

        min-height: 35px !important;

        margin-bottom: 3px !important;
    }

    .brand img {
        width: 27px !important;

        height: 27px !important;

        flex-basis: 27px !important;
    }

    .brand strong {
        font-size: 10px !important;
    }

    .brand small {
        font-size: 6px !important;
    }

    .sidebar nav {
        height: 40px !important;

        min-height: 40px !important;

        gap: 4px !important;
    }

    .sidebar nav > a,
    .sidebar nav .admin-role-card {
        height: 32px !important;

        min-height: 32px !important;
    }

    .sidebar nav > a {
        padding:
            5px 8px !important;

        font-size: 8px !important;
    }

    .sidebar nav > a i {
        font-size: 13px !important;
    }

    .sidebar nav .admin-role-card {
        padding:
            4px 8px !important;
    }

    .sidebar nav .admin-role-card strong {
        font-size: 8px !important;
    }

    .main {
        padding-top: 124px !important;
    }

    .stats {
        gap: 6px !important;
    }

    .stat {
        min-height: 88px !important;

        padding: 9px !important;
    }

    .metric {
        font-size: 21px !important;
    }

    .trend {
        font-size: 7px !important;
    }

    .quick a {
        font-size: 9px !important;
    }
}


/* =========================================================
   TOUCH / ACCESSIBILITY
========================================================= */

@media (hover: none) and (pointer: coarse) {

    .sidebar nav a,
    .quick a,
    .btn {
        -webkit-tap-highlight-color: transparent;
    }

    .sidebar nav a:hover,
    .quick a:hover,
    .stat:hover,
    .panel:hover {
        transform: none !important;
    }
}