.header .header-left .logo {
    color: black;
}
.page-wrapper > .content {
    padding: 15px;
}
.header {
    background-image: linear-gradient(120deg, #fccb90 0%, #d57eeb 100%) !important;
}

body {
    color: #334155;
    background: linear-gradient(180deg, #f7f8fb 0%, #eef2f7 100%);
}

.form-control {
    font-size: 14px;
    height: 34px;
    padding: 2px 7px;
}
.form-group.required label::after {
    content: " *";
    color: red;
    margin-left: 4px;
}
.btn-warning,
.btn-info,
.btn-danger {
    color: #fff;
}

label {
    font-size: 14px;
}

.page-title {
    font-size: 16px;
    font-weight: 700;
}

.page-title .page-title-icon {
    width: 28px;
    height: 28px;
}
.page-title .page-title-icon i {
    line-height: 24px;
}

.crms-title {
    padding: 16px 18px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
}

.card {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.card .card-header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    padding: 14px 18px;
}

.card .card-header .card-title {
    color: #1e293b;
    font-weight: 700;
}

.card .card-body {
    background-color: #fff;
}

.btn-dark {
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    padding-top: 12px;
}

.form-actions.text-end {
    justify-content: flex-end;
}

.control-label {
    color: #334155;
}

.form-group small:not(.invalid-feedback) {
    color: #64748b;
}

.badge-soft-success,
.badge-soft-primary {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
}

.badge-soft-success {
    background-color: #dcfce7;
    color: #166534;
}

.badge-soft-primary {
    background-color: #dbeafe;
    color: #1d4ed8;
}

table .badge {
    top: 0;
}

.select2-container--default .select2-selection--single {
    border-color: #e3e3e3;
}
.select2-container .select2-selection--single {
    height: 34px !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 34px !important;
}

.select2-container .select2-selection--single .select2-selection__arrow {
    height: 34px !important;
}
.select2-container.select2-readonly .select2-selection {
    background-color: #e9ecef;
    cursor: not-allowed;
}

.right .btn-primary,
.right .btn-secondary {
    padding: 0.375rem 0.75rem;
}

.modal.left .modal-content,
.modal.right .modal-content {
    overflow-y: auto;
}

.dt_table .column-search td {
    padding: 5px;
    background-color: #6c757d;
    opacity: 0.6;
}

.dt_table.dataTable thead .sorting:after {
    color: #fff;
}

.dt_table th.sorting,
.dt_table th.sorting_disabled,
.dt_table th.sorting_asc,
.dt_table th.sorting_desc {
    background-color: #3a434b !important;
    color: #fff;
    padding: 10px 14px;
}

.dt_table td.details-control {
    background: url("../images/icon/details_open.png") no-repeat center center;
    cursor: pointer;
}

.dt_table tr.shown td.details-control {
    background: url("../images/icon/details_close.png") no-repeat center center;
}

.dataTables_filter {
    display: none;
}

div.dataTables_wrapper div.dataTables_info {
    font-size: 12px;
}

.dt_table.dataTable td {
    padding: 0.3rem;
    vertical-align: middle;
}

.dt_table.dataTable tbody {
    font-size: 14px;
}

.dt_table.dataTable tbody tr:hover {
    background-color: rgba(12, 152, 255, 0.12);
}

.dt_table.dataTable tbody tr.child:hover {
    background-color: transparent;
}

.dt_table.dataTable tbody tr.shown {
    background-color: rgba(12, 152, 255, 0.12);
}

.dt_table.dataTable td > .btn {
    padding: 0;
    border: 0;
    background-color: transparent;
    color: #000;
    margin-right: 0.3rem;
}

.dt_table.dataTable td > .btn.btn-warning {
    color: #fec107;
}

.dt_table.dataTable td > .btn.btn-info {
    color: #03a9f3;
}

.dt_table.dataTable td > .btn.btn-danger {
    color: #e46a76;
}

.dt_table.dataTable td > .btn.btn-primary {
    color: #fb9678;
}

.dt_table.dataTable td > .btn.btn-success {
    color: #00c292;
}

.dt_table.dataTable .custom-control {
    padding-left: 0.5rem;
    display: inline-block;
}

.dt_table.dataTable .custom-control-label::after,
.dt_table.dataTable .custom-control-label::before {
    left: -5px;
}

.dt_table.dataTable .sorting_disabled .custom-control-label::after,
.dt_table.dataTable .sorting_disabled .custom-control-label::before {
    left: 0;
}

.fc-event {
    cursor: pointer !important;
    padding: 0;
    text-align: left;
}
a.fc-daygrid-event {
    color: #000;
}

.sales-page .sales-category-switch {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    border-radius: 14px;
    background-color: #f5f7fb;
}

.sales-page .sales-category-switch .category-tab {
    border: 0;
    background: transparent;
    color: #5b657a;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.sales-page .sales-category-switch .category-tab.active {
    background-color: #fff;
    color: #2f3b52;
    box-shadow: 0 6px 18px rgba(58, 67, 75, 0.12);
}

.sales-page .sales-status-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.sales-page .sales-status-bar .status-chip {
    border: 1px solid #d8dfeb;
    background-color: #fff;
    color: #516079;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.sales-page .sales-status-bar .status-chip.active {
    background-color: #3a434b;
    border-color: #3a434b;
    color: #fff;
    box-shadow: 0 8px 20px rgba(58, 67, 75, 0.18);
}

.sales-page .sales-context-label {
    font-size: 13px;
    color: #7b8497;
    margin-top: 12px;
}

.sales-page .card-table,
.dashboard-page .card-table,
.report-page .card-table {
    border-radius: 20px;
}

.dashboard-page .chart-container {
    height: 320px;
    position: relative;
}

.dashboard-page .top-card {
    position: relative;
    min-height: 160px;
    border: 0;
    overflow: hidden;
    color: #fff;
}

.dashboard-page .top-card .card-header,
.dashboard-page .top-card .card-body {
    background: transparent;
    border: 0;
    position: relative;
    z-index: 1;
}

.dashboard-page .top-card .card-title {
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dashboard-page .top-card h4 {
    font-size: 32px;
    color: #fff;
    margin-bottom: 8px;
}

.dashboard-page .top-card small {
    color: rgba(255, 255, 255, 0.8);
    display: inline-block;
}

.dashboard-page .top-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 42%);
}

.dashboard-page .card-total-booking {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

.dashboard-page .card-revenue {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.dashboard-page .card-gaun-ongoing {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.dashboard-page .card-gaun-return {
    background: linear-gradient(135deg, #ea580c, #fb923c);
}

.dashboard-page .card-overdue {
    background: linear-gradient(135deg, #be123c, #f43f5e);
}

.dashboard-page .card-appointment {
    background: linear-gradient(135deg, #334155, #64748b);
}

.sales-form-page .form-group,
.sales-view-page .form-group,
.report-page .form-group {
    margin-bottom: 16px;
}

.sales-form-page .card,
.sales-view-page .card,
.report-page .card {
    margin-bottom: 18px;
}

.sales-form-page .section-hint,
.sales-view-page .section-hint,
.report-page .section-hint {
    color: #64748b;
    font-size: 13px;
    margin-top: 4px;
}

.sales-form-page #found-gaun-container > div {
    border: 1px solid #e2e8f0;
    margin-bottom: 15px;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    background-color: #fff;
    transition: all 0.2s ease;
}

.sales-form-page #found-gaun-container > div p {
    margin-bottom: 0;
}

.sales-form-page #found-gaun-container > div:hover {
    background-color: #fff7fb;
    border-color: #f0abcf;
}

.sales-form-page #outfit-list .outfit {
    border: 2px solid transparent;
    padding: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sales-form-page #outfit-list .outfit > .row {
    padding-right: 30px;
    position: relative;
}

.sales-form-page #outfit-list .outfit > .row a {
    position: absolute;
    right: 15px;
    top: 0;
}

.sales-form-page #outfit-list .outfit.active {
    border-color: #e486b5;
    box-shadow: 0 14px 28px rgba(228, 134, 181, 0.14);
}

.sales-form-page #find-gaun-container {
    background: linear-gradient(180deg, #fff6fb 0%, #fff 100%);
    border: 1px solid #f3d5e3;
}

.sales-form-page #package-product-recommendation {
    border: 1px dashed #94a3b8 !important;
    border-radius: 12px;
    background: #f8fafc;
}

.sales-view-page .payment-timeline {
    position: relative;
    padding-left: 20px;
}

.sales-view-page .payment-timeline::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.sales-view-page .payment-item {
    position: relative;
    margin-bottom: 12px;
    padding-left: 20px;
}

.sales-view-page .payment-item .dot {
    position: absolute;
    left: -2px;
    top: 6px;
    width: 10px;
    height: 10px;
    background: #198754;
    border-radius: 50%;
}

.sales-view-page .payment-item .content {
    background: #f8fafc;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.sales-view-page .btn-delete-payment {
    opacity: 0.6;
    transition: 0.2s;
    position: absolute;
    top: 5px;
    right: 10px;
}

.sales-view-page .payment-item:hover .btn-delete-payment {
    opacity: 1;
}

.sales-view-page .sales-summary-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.sales-view-page .sales-summary-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px 16px;
}

.sales-view-page .sales-summary-card .label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 6px;
}

.sales-view-page .sales-summary-card .value {
    color: #0f172a;
    font-size: 16px;
    font-weight: 700;
}

.report-page .filter-toolbar {
    padding: 8px 4px 0;
}

.report-page .button_wrapper {
    padding-top: 8px;
}

@media (max-width: 991.98px) {
    .sales-view-page .sales-summary-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .sales-page .sales-category-switch {
        width: 100%;
    }

    .sales-page .sales-category-switch .category-tab {
        flex: 1;
        text-align: center;
    }

    .crms-title {
        padding: 14px;
    }

    .sales-view-page .sales-summary-strip {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 728px) {
    .card_roles {
        border: 1px solid #e9ecef;
    }

    .card_roles .card-header {
        color: #fff;
        font-weight: 500;
        background-color: #00c292 !important;
    }

    .card_roles .card-body {
        padding: 1.25rem 1rem;
    }

    .card_roles .card-body .checkbox label {
        margin-left: 5px;
        margin-bottom: 0px;
    }

    .card_roles .custom-control {
        min-height: 1.25rem;
        padding-left: 0;
    }

    .card_roles .desc_roles {
        padding-left: 20px;
        color: #949494;
        font-size: 11px;
    }

    .card_roles .list {
        margin-bottom: 10px;
    }

    .card_roles .list .checkbox {
        line-height: 1;
    }

    .grid-item {
        width: 200px;
        padding: 0px 10px;
    }
}
