:root {
    --jl-bg: #f5f7fb;
    --jl-surface: #ffffff;
    --jl-surface-soft: #f8fafc;
    --jl-border: #e1e7f0;
    --jl-text: #172033;
    --jl-muted: #667085;
    --jl-primary: #1f6feb;
    --jl-primary-dark: #1557bf;
    --jl-primary-soft: #eaf2ff;
    --jl-success: #12a167;
    --jl-danger: #d92d20;
    --jl-warning: #f59e0b;
    --jl-shadow: 0 16px 42px rgba(22, 34, 51, .08);
}

html,
body {
    background: var(--jl-bg);
    color: var(--jl-text);
}

body {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

a {
    color: var(--jl-primary);
}

.sidebar {
    background: #0f172a;
    border-right: 0;
    box-shadow: 10px 0 30px rgba(15, 23, 42, .08);
}

.sidebar-header {
    min-height: 78px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding: 18px 22px;
}

.sidebar-logo {
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
}

.sidebar-logo:hover {
    color: #ffffff;
}

.sidebar-logo img {
    display: block;
    max-height: 54px;
    max-width: 190px;
    object-fit: contain;
}

.sidebar-body {
    padding: 18px 14px;
}

.nav-label {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 0 12px 10px;
}

.nav-sidebar .nav-link {
    color: #cbd5e1;
    border-radius: 8px;
    min-height: 42px;
    padding: 10px 12px;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.nav-sidebar .nav-link i {
    color: #93c5fd;
    font-size: 19px;
}

.nav-sidebar .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, .08);
    transform: translateX(2px);
}

.nav-sidebar .nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--jl-primary), #37a6ff);
    box-shadow: 0 12px 24px rgba(31, 111, 235, .28);
}

.nav-sidebar .nav-link.active i {
    color: #ffffff;
}

.header-main {
    min-height: 72px;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--jl-border);
    box-shadow: 0 10px 30px rgba(22, 34, 51, .05);
    backdrop-filter: blur(10px);
}

.menu-link {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--jl-primary);
    background: #ffffff;
    border: 1px solid #d7e4f6;
    box-shadow: 0 8px 22px rgba(31, 111, 235, .10);
    transition: transform .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.menu-link i {
    font-size: 22px;
    line-height: 1;
}

.menu-link:hover,
.menu-link:focus {
    color: #ffffff;
    background: var(--jl-primary);
    box-shadow: 0 12px 26px rgba(31, 111, 235, .22);
    transform: translateY(-1px);
}

.header-context span {
    color: var(--jl-muted);
    font-size: 13px;
    font-weight: 700;
}



.breadcrumb {
    --bs-breadcrumb-divider-color: #98a2b3;
}

.breadcrumb a {
    color: var(--jl-muted);
    font-weight: 600;
}

.main-title {
    color: var(--jl-text);
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 0;
}

.dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--jl-border);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(31, 111, 235, .10), rgba(18, 161, 103, .08)),
        #ffffff;
    box-shadow: var(--jl-shadow);
}

.dashboard-hero-pro {
    position: relative;
    overflow: hidden;
    min-height: 178px;
    padding: 30px;
    background:
        linear-gradient(135deg, rgba(31, 111, 235, .12), rgba(18, 161, 103, .10)),
        linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.dashboard-hero-pro::after {
    content: "";
    position: absolute;
    right: -110px;
    top: -130px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(31, 111, 235, .08);
}

.dashboard-hero-copy,
.dashboard-hero-actions {
    position: relative;
    z-index: 1;
}

.dashboard-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.dashboard-hero p {
    color: var(--jl-muted);
    max-width: 720px;
}

.dashboard-kicker {
    display: block;
    color: var(--jl-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.metric-card .card-body {
    position: relative;
    min-height: 184px;
}

.metric-card {
    overflow: hidden;
}


.metric-card-success::before {
    background: var(--jl-success);
}

.metric-card-info::before {
    background: #0ea5e9;
}

.metric-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.metric-icon,
.quick-card > span {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--jl-primary);
    background: var(--jl-primary-soft);
    font-size: 22px;
    margin-bottom: 16px;
}

.metric-card-success .metric-icon {
    color: var(--jl-success);
    background: #eafaf3;
}

.metric-card-info .metric-icon {
    color: #0ea5e9;
    background: #eaf8ff;
}

.metric-pill {
    color: #475467;
    background: #f2f4f7;
    border: 1px solid #eaecf0;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 9px;
}

.quick-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    min-height: 126px;
    padding: 20px;
    color: var(--jl-text);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.quick-card > span {
    flex: 0 0 auto;
    margin-bottom: 0;
}

.quick-card:hover {
    color: var(--jl-text);
    transform: translateY(-3px);
    border-color: #b9d4ff !important;
    box-shadow: 0 20px 44px rgba(22, 34, 51, .12);
}

.quick-card h6 {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 6px;
}

.quick-card p {
    color: var(--jl-muted);
    margin-bottom: 0;
}

.quick-action-grid {
    display: grid;
    gap: 14px;
}

.dashboard-panel {
    min-height: 408px;
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.section-title-row h5 {
    color: var(--jl-text);
    font-weight: 800;
}

.recent-list {
    display: grid;
    gap: 10px;
}

.recent-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    background: #ffffff;
}

.recent-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--jl-primary);
    background: var(--jl-primary-soft);
    font-size: 21px;
}

.recent-content {
    min-width: 0;
}

.recent-content strong,
.recent-content span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-content strong {
    color: var(--jl-text);
    font-weight: 800;
}

.recent-content span,
.recent-phone {
    color: var(--jl-muted);
    font-size: 13px;
}

.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 220px;
    color: var(--jl-muted);
    border: 1px dashed #cfd8e6;
    border-radius: 8px;
    background: #fbfdff;
}

.empty-state i {
    color: var(--jl-primary);
    font-size: 22px;
}

.card,
.card-one,
.location-form-card {
    border: 1px solid var(--jl-border) !important;
    border-radius: 8px !important;
    background: var(--jl-surface);
    box-shadow: var(--jl-shadow);
}

.card-body {
    padding: 24px;
}

.card-label {
    color: var(--jl-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.card-value {
    color: var(--jl-text);
    font-weight: 800;
}

.form-label,
.location-row label {
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

.form-control,
.form-select {
    border-color: #d8e0ea;
    border-radius: 8px;
    color: var(--jl-text);
    min-height: 42px;
    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--jl-primary);
    box-shadow: 0 0 0 4px rgba(31, 111, 235, .12);
}

.btn {
    border-radius: 8px;
    font-weight: 700;
    min-height: 40px;
}

.btn-primary {
    background: var(--jl-primary);
    border-color: var(--jl-primary);
    box-shadow: 0 10px 20px rgba(31, 111, 235, .18);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--jl-primary-dark);
    border-color: var(--jl-primary-dark);
}

.btn-light {
    color: #344054;
    background: #ffffff;
    border-color: var(--jl-border);
}

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

.alert {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(22, 34, 51, .08);
}

.alert-success {
    color: #067647;
    background: #ecfdf3;
}

.alert-danger {
    color: #b42318;
    background: #fef3f2;
}

.table-responsive {
    border: 1px solid var(--jl-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--jl-shadow);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    color: #475467 !important;
    background: #f8fafc !important;
    border-bottom: 1px solid var(--jl-border) !important;
    font-weight: 800;
}

.table tbody td {
    border-color: #edf2f7;
}

.table-hover tbody tr:hover > * {
    background: none !important;
    box-shadow: none !important;
}

.customer-toolbar {
    padding: 14px;
    border: 1px solid var(--jl-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(22, 34, 51, .06);
}

.customer-search {
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(22, 34, 51, .04);
}

.customer-search .form-control {
    border: 0 !important;
    min-height: 48px;
    padding-left: 16px;
}

.customer-search .form-control:focus {
    box-shadow: none;
}

.customer-search .btn {
    border-radius: 0 !important;
    min-height: 48px;
    box-shadow: none;
}

.action-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 7px !important;
    font-size: 17px !important;
    border: 0 !important;
    box-shadow: none;
    transition: transform .16s ease, background-color .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(22, 34, 51, .10);
}

.action-view {
    color: #12a167 !important;
    background: #eafaf3 !important;
}

.action-view:hover {
    color: #ffffff !important;
    background: #12a167 !important;
}

.action-edit {
    color: var(--jl-primary) !important;
    background: #eef6ff !important;
}

.action-edit:hover {
    color: #ffffff !important;
    background: var(--jl-primary) !important;
    border-color: var(--jl-primary) !important;
}

.action-delete {
    color: var(--jl-danger) !important;
    background: #fff0f3 !important;
}

.action-delete:hover {
    color: #ffffff !important;
    background: var(--jl-danger) !important;
    border-color: var(--jl-danger) !important;
}

.pagination-circled .page-link {
    border-radius: 8px !important;
    color: var(--jl-primary) !important;
}

.pagination-circled .page-item.active .page-link {
    color: #ffffff !important;
    background: var(--jl-primary) !important;
    border-color: var(--jl-primary) !important;
}

.dropdown-menu {
    border: 1px solid var(--jl-border);
    border-radius: 8px;
    box-shadow: var(--jl-shadow);
}

.avatar img,
.profile-avatar,
.profile-avatar-fallback {
    border: 3px solid #ffffff;
    box-shadow: 0 8px 18px rgba(22, 34, 51, .12);
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.profile-summary-card,
.profile-card {
    overflow: hidden;
}

.profile-summary-card .card-body {
    padding: 26px;
}

.profile-summary-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--jl-border);
}

.profile-avatar,
.profile-avatar-fallback {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

.profile-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--jl-primary);
    background: var(--jl-primary-soft);
    font-size: 34px;
    font-weight: 800;
}

.profile-summary-text {
    min-width: 0;
}

.profile-summary-text h5 {
    color: var(--jl-text);
    font-size: 20px;
    font-weight: 800;
}

.profile-summary-text p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-info-list {
    display: grid;
    gap: 12px;
    padding-top: 22px;
}

.profile-info-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    background: #fbfdff;
}

.profile-info-list span {
    color: var(--jl-muted);
    font-size: 13px;
    font-weight: 700;
}

.profile-info-list strong {
    color: var(--jl-text);
    font-size: 13px;
}

.profile-status {
    color: var(--jl-success) !important;
}

.profile-section-title {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--jl-border);
}

.profile-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--jl-border);
}

.main-footer {
    color: var(--jl-muted);
    border-top: 1px solid var(--jl-border);
    padding-top: 18px;
}

.page-sign {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(31, 111, 235, .14), transparent 34%),
        linear-gradient(135deg, #f8fbff 0%, #eef4fb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.card-sign {
    width: min(100%, 430px);
    border: 1px solid rgba(225, 231, 240, .9) !important;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .14);
}

.card-sign .card-header {
    border-bottom: 0;
    padding: 34px 34px 12px;
    text-align: center;
}

.card-sign .card-body {
    padding: 20px 34px 34px;
}

.card-sign .header-logo {
    color: var(--jl-text);
    font-size: 24px;
    font-weight: 900;
}

.card-sign .card-title {
    color: var(--jl-text);
    font-size: 26px;
    font-weight: 800;
}

.card-sign .card-text {
    color: var(--jl-muted);
}

.btn-sign {
    width: 100%;
    min-height: 46px;
}

.location-form-card .nav-tabs {
    border-bottom-color: var(--jl-border);
}

.location-form-card .nav-tabs .nav-link.active {
    color: var(--jl-primary);
    border-color: var(--jl-border) var(--jl-border) #ffffff;
    font-weight: 800;
}

.details-modal .modal-header {
    background: linear-gradient(135deg, var(--jl-primary), #37a6ff) !important;
}

.details-item,
.details-box {
    border-color: var(--jl-border) !important;
    background: #ffffff !important;
}

@media (max-width: 991.98px) {
    .main-title {
        font-size: 22px;
    }

    .card-body {
        padding: 18px;
    }

    .main-app {
        padding: 18px !important;
    }

    .dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-hero-actions {
        justify-content: flex-start;
    }

    .recent-item {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .recent-phone {
        grid-column: 2;
    }

    .profile-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .page-sign {
        padding: 14px;
    }

    .card-sign .card-header,
    .card-sign .card-body {
        padding-left: 22px;
        padding-right: 22px;
    }

    .customer-toolbar {
        padding: 10px;
    }

    .profile-summary-head {
        align-items: flex-start;
        flex-direction: column;
    }
}
