.icon-group {
    display: flex;
    align-items: center;
}

.icon-group .fa {
    margin-left: 10px;
    font-size: 1.2em;
    cursor: pointer;
}

.circular-chart {
    display: block;
    margin: 10px auto;
    max-width: 80%;
    max-height: 250px;
}

.circle-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 4;
}

.circle {
    fill: none;
}

.card-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.progress-circle {
    display: flex;
    align-items: center;
    justify-content: center;
}

.Black-800 {
    color: #4f4f4f
}

.Black-400 {
    color: #EFEFEF
}

.fs-16 {
    font-size: 16px;
}

.fs-21 {
    font-size: 21px;
}

.fs-24 {
    font-size: 24px;
}

.fs-28 {
    font-size: 28px;
}

.fw-500 {
    font-weight: 500;
}

.fw-400 {
    font-weight: 400;
}

.fw-600 {
    font-weight: 600;
}

.hl-1,
.hl-2,
.hl-3,
.hl-4 {
    height: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-radius: 3px;
    padding: 2px 4px;
    font-size: 1rem;
    text-align: center;
    margin-left: 16px;
    font-weight: 500;
}

.hl-1 {
    background-color: #f0f8ff;
    color: #53AAFC;
    border: 1px solid #53AAFC;
}

.hl-2 {
    background-color: #ECE9FF;
    color: #B0A8F6;
    border: 1px solid #B0A8F6;
}

.hl-3 {
    background-color: #F7FCEC;
    color: #77B843;
    border: 1px solid #DFF7B8;
}

.hl-4 {
    background-color: #FAF8F8;
    color: #2D6A15;
    border: 1px solid #5B9E30;
}

@media (min-width: 1024px) {
    .hl-1,
    .hl-2,
    .hl-3,
    .hl-4 {
        width: 3.681vw;
        height: 27px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hl-1,
    .hl-2,
    .hl-3,
    .hl-4 {
        width: 80px;
        height: auto;
        font-size: 0.9rem;
        padding: 4px 8px;
    }
}

@media (max-width: 767px) {
    .hl-1,
    .hl-2,
    .hl-3,
    .hl-4 {
        width: 70px;
        height: auto;
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}

@media (min-width: 576px) {
    #documentModal .modal-dialog {
        max-width: 1000px;
        margin: 1.75rem auto;
    }
}

#searchInput::placeholder {
    color: #8A8A8A !important;
}

/* Shared Layout Styles */
.list-layout, #customerListLayout, #staffListLayout {
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Status Badge Styles */
.status-badge {
    padding: 4px;
    border-radius: 12px;
    font-size: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background-color: #F7FCEC;
    color: #77B843;
    border: 1px solid #DFF7B8;
}

.status-inactive {
    background-color: #FFF2F2;
    color: #F56565;
    border: 1px solid #FEB2B2;
}

/* Action Icons */
.list-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.edit-icon, .edit-staff-btn {
    color: #007bff;
    cursor: pointer;
    font-size: 16px;
    padding: 6px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}

.edit-icon:hover, .edit-staff-btn:hover {
    background-color: #e3f2fd;
    color: #0056b3;
    transform: scale(1.05);
    text-decoration: none;
}

.reset-password-btn {
    color: #ffc107;
    cursor: pointer;
    font-size: 16px;
    padding: 6px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}

.reset-password-btn:hover {
    background-color: #fff3cd;
    color: #e0a800;
    transform: scale(1.05);
    text-decoration: none;
}

.create-invoice-btn {
    color: #28a745;
    cursor: pointer;
    font-size: 16px;
    padding: 6px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}

.create-invoice-btn:hover {
    background-color: #d4edda;
    color: #1e7e34;
    transform: scale(1.05);
    text-decoration: none;
}

.view-icon {
    color: #28a745;
    text-decoration: none;
    font-size: 16px;
    padding: 6px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}

.view-icon:hover {
    background-color: #e8f5e8;
    color: #1e7e34;
    transform: scale(1.05);
    text-decoration: none;
}

.view-icon-link {
    text-decoration: none;
    display: inline-block;
}

.view-icon-link:hover {
    text-decoration: none;
}

/* Table Styles */
.table {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    padding: 12px 10px !important;
    font-size: 12px !important;
}

.table tbody td {
    padding: 12px 10px !important;
    vertical-align: middle;
    border-bottom: 1px solid #f1f3f4;
    font-size: 13px !important;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

.table tbody td .font-weight-bold {
    font-size: 13.5px !important;
}

.table tbody td small {
    font-size: 11px !important;
}

.table thead th.fw-400 {
    font-size: 11.5px !important;
}

/* DataTable Customization */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    font-size: 14px;
    color: #6c757d;
}

.dataTables_wrapper .dataTables_filter {
    display: flex;
    justify-content: flex-end;
}

.dataTables_wrapper .dataTables_filter input {
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 8px 12px;
    margin-left: 10px;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 0.85rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: #007bff;
    border: 1px solid #007bff;
    color: white;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.next, 
.dataTables_wrapper .dataTables_paginate .paginate_button.previous {
    border: 1px solid #828282 !important;
}


.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background-color: #007bff;
    color: white;
    border: none !important;
}

/* Filter Styles */
#statusFilter, #genderFilter {
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 14px;
    margin-left: 10px;
    min-width: 150px;
    width: 40%;
    color: #8A8A8A !important;
    display: inline-block;
    background-color: #fff;
    box-shadow: none;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#statusFilter:focus, #genderFilter:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#statusFilter:hover, #genderFilter:hover {
    border-color: #007bff;
}

/* Custom Alert Styles */
.alert-custom {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    max-width: 500px;
}

.btn-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    margin-left: 15px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.btn-close:hover {
    opacity: 1;
}

.alert-custom.fade-out {
    animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Modal Styles */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 12px 12px 0 0;
    padding: 20px 25px;
}

.modal-title {
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 12px 12px;
    padding: 20px 25px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    display: block;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

.form-control:disabled, .form-control[disabled] {
    background-color: #f0f0f0 !important;
    color: #6c757d !important;
    opacity: 1 !important;
    cursor: not-allowed;
}

/* Form Validation Styles */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
    font-weight: 500;
}

/* Button Styles */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}


.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #155724 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    border: none;
    color: #212529;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e0a800 0%, #d39e00 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

/* Card Styles */
.card-custom {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.card-custom:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-body {
    padding: 30px;
}

/* Badge Styles */
.badge-primary {
    background-color: #007bff !important;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
}

/* Role Badge Gradient Styles */
.role-badge {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 12px;
    text-transform: capitalize;
    border: none;
    display: inline-block;
}

/* Manager Role Badge */
.role-badge.manager {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

/* Staff Role Badge */
.role-badge.staff {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

/* Super Role Badge */
.role-badge.super {
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
}

/* Detail Layout Styles */
.staff-profile-header, .customer-profile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.customer-profile-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.staff-avatar, .customer-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-right: 1.5rem;
}

.info-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.info-card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    border-radius: 10px 10px 0 0 !important;
}

.info-card .card-title {
    margin: 0;
}

.info-card .card-title h3 {
    font-weight: 600;
    color: #495057;
    font-size: 1.1rem;
}

.form-control-plaintext {
    font-weight: 500;
    color: #495057;
    padding: 0.375rem 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 0.5rem;
}

/* Success Badge for Customer */
.symbol-label.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

/* Points Display Styling */
.points-display {
    padding: 2rem 1rem;
}

.points-number {
    margin-bottom: 1rem;
}

.points-number .font-size-h2 {
    font-size: 3rem;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.points-label {
    margin-bottom: 1rem;
}

.points-label span {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.last-update {
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.last-update small {
    font-size: 0.9rem;
    font-style: italic;
}

/* Symbol Styling */
.symbol.symbol-60.symbol-circle .symbol-label {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Alert Styling */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

/* Animation for page load */
#staffDetailLayout, #staffEditLayout, #customerDetailLayout, #customerEditLayout {
    animation: fadeIn 0.5s ease-in-out;
}

/* Edit Layout Common Styles */
#staffEditLayout, #customerEditLayout {
    background-color: #f8f9fa;
}

/* Loading states for edit forms */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #28a745;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Points animation keyframes */
@keyframes pointsCountUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.points-number span {
    animation: pointsCountUp 0.8s ease-out;
}

/* Customer Search Autocomplete */
.customer-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.customer-search-result {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
}

.customer-search-result:hover {
    background-color: #f8f9fa;
}

.customer-search-result:last-child {
    border-bottom: none;
}

.customer-search-result .customer-name {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.customer-search-result .customer-details {
    font-size: 12px;
    color: #6c757d;
    margin-top: 2px;
}

.customer-search-result .customer-id {
    font-weight: 500;
    color: #007bff;
}

.form-group {
    position: relative;
}

/* Responsive Design */
@media (max-width: 768px) {
    .alert-custom {
        left: 10px;
        right: 10px;
        min-width: auto;
        max-width: none;
    }
    
    .table-responsive {
        border-radius: 8px;
    }
    
    .table thead th,
    .table tbody td {
        padding: 8px 6px !important;
        font-size: 12px !important;
    }
    
    .modal-dialog {
        margin: 10px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .list-actions {
        flex-direction: column;
        gap: 4px;
    }
    
    .list-actions .btn {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .staff-profile-header, .customer-profile-header {
        padding: 1.5rem;
        text-align: center;
    }
    
    .staff-avatar, .customer-avatar {
        margin: 0 auto 1rem auto;
    }
    
    .d-flex.justify-content-end {
        justify-content: center !important;
        flex-direction: column;
    }
    
    .points-number .font-size-h2 {
        font-size: 2.5rem;
    }
    
    .points-display {
        padding: 1.5rem 1rem;
    }
}

/* Activity Summary Styling */
.activity-summary .form-control-plaintext {
    font-size: 1.25rem;
    font-weight: 600;
    color: #007bff;
    border-bottom: 2px solid #007bff;
}

.dataTables_wrapper .dataTable th.sorting_asc:before {
    color : #007bff !important;

}

.dataTables_wrapper .dataTable th.sorting_asc {
    color : #007bff !important;
    
}

/* Invoice Filter Section */
.invoice-filter-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
    transition: box-shadow 0.3s ease;
}

.invoice-filter-card .card-body {
    padding: 0px !important;
}

.invoice-filter-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.invoice-filter-card .card-title {
    font-weight: 600;
    color: #495057;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Filter Input Styling */
#filter_date_from, 
#filter_date_to, 
#filter_status {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #fff;
}

#filter_date_from:focus, 
#filter_date_to:focus, 
#filter_status:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

#filter_date_from:hover, 
#filter_date_to:hover, 
#filter_status:hover {
    border-color: #80bdff;
    color: #87CEEB !important;

}

/* Filter Labels */
.invoice-filter-card .form-group label {
    font-weight: 600;
    color: #495057;
    font-size: 13px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Filter Design */
@media (max-width: 768px) {
    .invoice-filter-card .card-body {
        padding: 1rem;
    }
    
    .invoice-filter-card .form-group {
        margin-bottom: 1rem;
    }
    
    #applyFilterBtn, #clearFilterBtn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .invoice-filter-card .d-flex {
        flex-direction: column;
    }
}

.btn-secondary:hover {
    background-color: #87CEEB !important;
}

.void-invoice-btn {
    font-size: 12px !important;
    padding: 5px 10px !important;
    border-radius: 11px !important;
}