:root,
[data-bs-theme=light] {
    --bs-primary: #604830;
    --bs-primary-rgb: 96, 72, 48;
    --bs-primary-text-emphasis: #30271f;
    --bs-primary-bg-subtle: #f7f2e9;
    --bs-primary-border-subtle: #d9c5a8;
    --bs-link-color: #604830;
    --bs-link-hover-color: #8a6244;
}

[data-bs-theme=dark] {
    --bs-primary: #c9a66b;
    --bs-primary-rgb: 201, 166, 107;
}

body#kt_app_body {
    min-width: 320px;
    background: #f5f6f8;
    font-family: Inter, Arial, sans-serif;
}

#kt_app_header {
    z-index: 1001;
}

.app-sidebar,
.app-sidebar-logo {
    background-color: #30271f;
}

.app-sidebar .menu .menu-item .menu-heading {
    color: #b8aa98 !important;
}

.app-sidebar .menu .menu-item .menu-link {
    color: #e1d9cf;
}

.app-sidebar .menu .menu-item .menu-link .menu-icon,
.app-sidebar .menu .menu-item .menu-link .menu-title {
    color: inherit;
}

.app-sidebar .menu .menu-item .menu-link:hover,
.app-sidebar .menu .menu-item .menu-link.active {
    color: #f1d5a4;
    background: #493a2d;
}

.admin-metronic-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.admin-login-logo {
    width: 84px;
    height: 84px;
    border-radius: 12px;
    object-fit: cover;
}

.admin-login-panel {
    min-height: 320px;
    background: linear-gradient(115deg, rgba(48, 39, 31, .9), rgba(96, 72, 48, .64)), url("../images/mexy-voyage-logo.jpg") center / cover;
}

.admin-auth-page {
    min-width: 320px !important;
}

.admin-auth-main > .w-lg-500px {
    max-width: 100%;
}

@media (max-width: 991.98px), (max-height: 700px) {
    .admin-auth-page,
    .admin-auth-page > .d-flex.flex-root {
        min-height: 100svh;
    }

    .admin-auth-main {
        width: 100%;
        min-height: 100svh;
        padding: 8px 24px !important;
    }

    .admin-auth-main > .d-flex.flex-center.flex-column.flex-lg-row-fluid {
        flex: 0 0 auto;
    }

    .admin-auth-main .text-center.mb-10 {
        margin-bottom: 8px !important;
    }

    .admin-auth-main .admin-login-logo {
        width: 56px;
        height: 56px;
        margin-bottom: 10px !important;
    }

    .admin-auth-main .card-body.p-10 {
        padding: 16px !important;
    }

    .admin-auth-main .card-body .mb-8 {
        margin-bottom: 9px !important;
    }

    .admin-auth-main .card-body .mb-6 {
        margin-bottom: 8px !important;
    }

    .admin-auth-main .mt-6 {
        margin-top: 8px !important;
    }

    .admin-login-panel {
        display: none !important;
    }
}

@media (max-width: 575.98px) {
    .admin-auth-main {
        padding: 16px !important;
    }

    .admin-auth-main > .d-flex.flex-center.flex-column.flex-lg-row-fluid > .w-lg-500px {
        padding: 12px !important;
    }
}

@media (max-height: 520px) {
    .admin-auth-main {
        padding: 4px 16px !important;
    }

    .admin-auth-main .text-center.mb-10 {
        margin-bottom: 4px !important;
    }

    .admin-auth-main .admin-login-logo {
        width: 40px;
        height: 40px;
        margin-bottom: 4px !important;
    }

    .admin-auth-main .text-center.mb-10 > .text-muted,
    .admin-auth-main .card-body > .text-gray-500.mb-8,
    .admin-auth-main .mt-6,
    .admin-auth-main > div:last-child {
        display: none !important;
    }

    .admin-auth-main .card-body.p-10 {
        padding: 12px !important;
    }

    .admin-auth-main .card-body .mb-8 {
        margin-bottom: 6px !important;
    }

    .admin-auth-main .card-body .mb-6 {
        margin-bottom: 5px !important;
    }
}

@media (min-width: 992px) and (max-height: 820px) {
    .admin-auth-main {
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }
}

.admin-content {
    min-width: 0;
    padding-bottom: 32px;
}

.admin-content .admin-heading {
    margin: 0 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.admin-content .admin-heading h1 {
    color: #181c32;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.admin-content .admin-heading .eyebrow {
    display: none;
}

.admin-content .admin-panel,
.admin-content .form-card,
.admin-content .stats-grid > article {
    background: #fff;
    border: 1px solid #eff2f5;
    border-radius: .625rem;
    box-shadow: 0 0.1rem 0.75rem rgba(0, 0, 0, .035);
}

.admin-content .admin-panel {
    padding: 24px;
}

.admin-content .form-card {
    padding: 28px;
}

.admin-content .admin-table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

.admin-content .admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-content .admin-table th {
    color: #78829d;
    background: #f9fafb;
    font-weight: 600;
    white-space: nowrap;
    font-size: 1rem;
}

.admin-content .admin-table th,
.admin-content .admin-table td {
    border-bottom: 1px solid #eff2f5;
    padding: 15px 16px;
    text-align: left;
}

.admin-content .admin-table td {
    color: #3f4254;
    font-size: 1rem;
    line-height: 1.55;
}

.admin-content .admin-table td small {
    display: block;
    color: #a1a5b7;
    font-size: .9rem;
    line-height: 1.5;
    margin-top: 3px;
}

.admin-content .admin-table td b {
    font-size: 1.025rem;
}

.admin-content .admin-table td .button,
.admin-content .admin-table td .button-danger,
.admin-content .admin-table td select {
    font-size: .95rem;
}

.admin-content .admin-table-wrap + nav,
.admin-content .admin-panel > nav,
.admin-content .dataTables_wrapper {
    font-size: .95rem;
}

.admin-content .dataTables_wrapper .dataTables_info,
.admin-content .dataTables_wrapper .dataTables_length,
.admin-content .dataTables_wrapper .dataTables_filter,
.admin-content .dataTables_wrapper .dataTables_paginate,
.admin-content .dataTables_wrapper .pagination {
    font-size: .95rem;
}

.admin-content .dataTables_wrapper .dataTables_length select,
.admin-content .dataTables_wrapper .dataTables_filter input,
.admin-content .dataTables_wrapper .form-select,
.admin-content .dataTables_wrapper .form-control {
    font-size: .95rem;
}

.admin-content .pagination .page-link {
    font-size: .95rem;
    padding: .55rem .85rem;
}

.admin-content .stats-grid > article {
    padding: 24px;
}

.admin-content .stats-grid > article span,
.admin-content .stats-grid > article small {
    color: #78829d;
}

.admin-content .stats-grid > article b {
    display: block;
    margin: 8px 0;
    color: #181c32;
    font-size: 2rem;
}

.admin-content .module-grid a {
    border-color: #eff2f5;
    border-radius: .5rem;
}

.admin-content .form-grid input:not([type=checkbox]),
.admin-content .form-grid select,
.admin-content .form-grid textarea,
.admin-content .inline-form select {
    min-height: 42px;
    border: 1px solid #e1e3ea;
    border-radius: .475rem;
    background-color: #fff;
    padding: 9px 12px;
}

.admin-content .form-grid input:focus,
.admin-content .form-grid select:focus,
.admin-content .form-grid textarea:focus {
    outline: 0;
    border-color: #c9a66b;
    box-shadow: 0 0 0 .2rem rgba(201, 166, 107, .18);
}

.admin-content .form-grid label {
    color: #3f4254;
    font-weight: 600;
}

.admin-content .button {
    border-radius: .475rem;
}

.admin-content .button-danger {
    border-radius: .475rem;
}

.admin-gallery-table {
    min-width: 820px;
}

.admin-gallery-thumbnail,
.admin-gallery-thumbnail img,
.admin-gallery-video {
    display: inline-flex;
    width: 48px;
    height: 40px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 6px;
    background: #f1f1f4;
}

.admin-gallery-thumbnail img {
    object-fit: cover;
}

.admin-gallery-video {
    color: #604830;
    background: #f7f2e9;
}

.admin-gallery-table th a {
    white-space: nowrap;
}

.admin-content .admin-table-wrap + nav,
.admin-content .admin-panel > nav {
    margin-top: 18px;
}

@media (max-width: 767.98px) {
    .admin-content .admin-panel,
    .admin-content .form-card {
        padding: 18px;
    }

    .admin-content .admin-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-content .admin-table th,
    .admin-content .admin-table td {
        padding: 12px;
        font-size: .95rem;
    }

    .admin-content .admin-table td small {
        font-size: .85rem;
    }
}
