@import url('Vazirmatn-RD-FD-font-face.css');

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn RD FD', 'Tahoma', sans-serif;
    background-color: #fdf6f0;
    overflow-x: hidden;
}

/* ============================================
   APP WRAPPER - FLEX LAYOUT
   ============================================ */
.app-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ============================================
   SIDEBAR STYLES
   ============================================ */
.app-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #2d2f3f 0%, #1a1c29 100%);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1000;
}

.sidebar-header {
    text-align: center;
    padding: 25px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h5 {
    color: white;
    margin-bottom: 5px;
}

.sidebar-header small {
    color: #888;
    display: block;
    margin-bottom: 15px;
}

.salon-select {
    width: 100%;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 10px;
}

.salon-select option {
    background: #2d2f3f;
    color: white;
}

.current-salon {
    background: rgba(212, 165, 194, 0.2);
    padding: 8px 12px;
    border-radius: 12px;
    color: #d4a5c2;
    font-size: 14px;
    margin-top: 10px;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #e0d0d8;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.sidebar-nav .nav-link i {
    width: 22px;
    font-size: 16px;
}

.sidebar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(-3px);
}

.sidebar-nav .nav-link.active {
    background: linear-gradient(90deg, #d4a5c2 0%, #b5839e 100%);
    color: white;
}

.nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px 0;
}

/* ============================================
   SIDEBAR SUBMENU
   ============================================ */
.nav-submenu {
    margin: 0 10px;
}

.nav-submenu-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #e0d0d8;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav-submenu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-submenu-toggle i:first-child {
    width: 22px;
    font-size: 16px;
}

.nav-submenu-toggle span {
    flex: 1;
}

.submenu-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-submenu.open .submenu-arrow {
    transform: rotate(180deg);
}

.nav-submenu-items {
    display: none;
    padding-right: 20px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.nav-submenu.open .nav-submenu-items {
    display: block;
}

.submenu-link {
    padding: 10px 16px 10px 30px !important;
    margin: 2px 0 !important;
}

.submenu-link i {
    width: 20px;
    font-size: 14px;
}

/* ============================================
   SIDEBAR TOGGLE (Mobile)
   ============================================ */
.sidebar-toggle-btn {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: linear-gradient(135deg, #d4a5c2 0%, #b5839e 100%);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 1001;
    display: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.sidebar-toggle-btn:hover {
    transform: scale(1.05);
}

.sidebar-close-btn {
    display: none;
    position: absolute;
    top: 15px;
    left: 15px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.sidebar-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.app-main {
    flex: 1;
    background-color: #fef9f7;
    overflow-x: auto;
}

.app-main .container-fluid {
    padding: 25px 30px;
}

.app-main h2 {
    font-weight: 500;
    color: #6b4e5e;
    border-right: 4px solid #d4a5c2;
    padding-right: 15px;
    margin-bottom: 25px;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    background: white;
    margin-bottom: 25px;
    overflow: hidden;
}

.card-body {
    padding: 25px;
}

.card-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid #f0eae6;
    background: #faf0f5;
    border-radius: 16px 16px 0 0;
}

.card-header-custom h3 {
    font-size: 16px;
    font-weight: 600;
    color: #6b4e5e;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header-custom h3 i {
    color: #d4a5c2;
}

.badge-count {
    background: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    color: #d4a5c2;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    border-radius: 30px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #d4a5c2 0%, #b5839e 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(180, 131, 158, 0.4);
}

.btn-secondary {
    background: #f0eae6;
    color: #6b4e5e;
}

.btn-secondary:hover {
    background: #e4d8dc;
}

.btn-success {
    background: #a3c4a8;
    color: #2d523a;
}

.btn-success:hover {
    background: #8bae91;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(163, 196, 168, 0.3);
}

.btn-danger {
    background: #e4a8a8;
    color: #7a3e3e;
}

.btn-danger:hover {
    background: #d48a8a;
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 16px;
}

.btn-sm {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ============================================
   TABLES
   ============================================ */
.table-responsive {
    overflow-x: auto;
    border-radius: 20px;
}

.table {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    width: 100%;
    min-width: 1000px;
}

.table thead th {
    background: #faf0f5;
    color: #6b4e5e;
    font-weight: 600;
    padding: 14px 12px;
    white-space: nowrap;
}

.table tbody tr:hover {
    background: #fff5f0;
}

.table td {
    padding: 12px;
    vertical-align: middle;
}

/* ============================================
   FORMS
   ============================================ */
.form-control {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #e0d0d8;
    background: white;
    font-size: 14px;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #d4a5c2;
    box-shadow: 0 0 0 3px rgba(212, 165, 194, 0.15);
}

.form-control:disabled {
    background: #f5f0f2;
    color: #999;
    cursor: not-allowed;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #6b4e5e;
    font-size: 13px;
}

.form-text {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

.form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 150px;
    margin-bottom: 0;
}

.required {
    color: #e4a8a8;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
}

.badge-warning {
    background: #f3d9b1;
    color: #7a5a3e;
}

.badge-info {
    background: #b8d8e3;
    color: #2c5a6e;
}

.badge-success {
    background: #a3c4a8;
    color: #2d523a;
}

.badge-danger {
    background: #e4a8a8;
    color: #7a3e3e;
}

.badge-secondary {
    background: #e0d0d8;
    color: #6b4e5e;
}

.badge-primary {
    background: #d4a5c2;
    color: white;
}

.badge.bg-success {
    background: #a3c4a8;
    color: #2d523a;
}

.badge.bg-secondary {
    background: #e0d0d8;
    color: #6b4e5e;
}

.badge.bg-info {
    background: #b8d8e3;
    color: #2c5a6e;
}

.badge.bg-danger {
    background: #e4a8a8;
    color: #7a3e3e;
}

/* ============================================
   STATUS BADGES
   ============================================ */
.status-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    background: #f3d9b1;
    color: #7a5a3e;
}

.status-confirmed {
    background: #b8d8e3;
    color: #2c5a6e;
}

.status-completed {
    background: #a3c4a8;
    color: #2d523a;
}

.status-cancelled {
    background: #e4a8a8;
    color: #7a3e3e;
}

/* ============================================
   FILTERS
   ============================================ */
.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 160px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #6b4e5e;
    font-size: 13px;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #e0d0d8;
    background: white;
    transition: all 0.2s;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #d4a5c2;
    box-shadow: 0 0 0 3px rgba(212, 165, 194, 0.2);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 6px 16px;
    border-radius: 30px;
    background: #f0eae6;
    color: #6b4e5e;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.filter-btn.active,
.filter-btn:hover {
    background: #d4a5c2;
    color: white;
    border-color: #b5839e;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination-container {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 5px;
    list-style: none;
    flex-wrap: wrap;
    padding: 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    background: white;
    border: 1px solid #e0d0d8;
    color: #6b4e5e;
    text-decoration: none;
    transition: all 0.2s;
}

.page-link:hover {
    background: #f5e6f0;
    border-color: #d4a5c2;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #d4a5c2 0%, #b5839e 100%);
    border-color: #b5839e;
    color: white;
}

.page-item.disabled .page-link {
    background: #f0eae6;
    color: #bbb;
    cursor: not-allowed;
}

/* ============================================
   MODAL
   ============================================ */
.modal-content {
    border-radius: 24px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background: linear-gradient(135deg, #f5e6f0 0%, #fef3f0 100%);
    border-radius: 24px 24px 0 0;
    border-bottom: none;
    padding: 18px 24px;
}

.modal-header .modal-title {
    color: #6b4e5e;
    font-weight: 700;
}

.modal-header .modal-title i {
    color: #d4a5c2;
    margin-left: 8px;
}

.modal-body {
    padding: 20px 24px;
}

.modal-footer {
    border-top: 1px solid #f0eae6;
    padding: 16px 24px 20px 24px;
    gap: 10px;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert i {
    font-size: 20px;
    margin-top: 2px;
}

.alert-warning {
    background: #fff8e1;
    border: 1px solid #f3d9b1;
    color: #7a5a3e;
}

.alert-danger {
    background: #fde8e8;
    border: 1px solid #e4a8a8;
    color: #7a3e3e;
}

.alert-success {
    background: #e8f5e8;
    border: 1px solid #a3c4a8;
    color: #2d523a;
}

.alert-info {
    background: #e3f0f5;
    border: 1px solid #b8d8e3;
    color: #2c5a6e;
}

.alert-dismissible .btn-close {
    margin-right: auto;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-state i {
    font-size: 48px;
    color: #e0d0d8;
    margin-bottom: 16px;
    display: block;
}

.empty-state p {
    font-size: 16px;
    margin: 0;
}

/* ============================================
   PAGE HEADERS
   ============================================ */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-header h2 {
    margin: 0;
}

.page-header .btn {
    flex-shrink: 0;
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-page {
    font-family: 'Vazirmatn RD FD', sans-serif;
    background: linear-gradient(135deg, #2d2f3f 0%, #1a1c29 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
}

.login-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    background: white;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    animation: fadeInUp 0.5s ease;
}

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

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: #6b4e5e;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-header p {
    color: #999;
    font-size: 14px;
    margin: 0;
}

.btn-login {
    background: linear-gradient(135deg, #d4a5c2 0%, #b5839e 100%);
    border: none;
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 165, 194, 0.4);
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0eae6;
    font-size: 12px;
    color: #bbb;
}

.login-card .alert {
    padding: 12px 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
}

.login-card .alert-danger {
    background: #fee2e2;
    border: 1px solid #e4a8a8;
    color: #7a3e3e;
}

/* ============================================
   CUSTOMER SEARCH
   ============================================ */
.customer-search-wrapper {
    position: relative;
}

.input-group-modern {
    display: flex;
    gap: 10px;
    align-items: center;
    position: relative;
}

.search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #bbb;
    font-size: 14px;
    z-index: 2;
}

.input-group-modern .form-control-modern {
    padding-right: 44px;
    flex: 1;
    width: 100%;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid #e8e0e4;
    transition: all 0.25s;
    font-size: 14px;
    background: white;
}

.input-group-modern .form-control-modern:focus {
    outline: none;
    border-color: #d4a5c2;
    box-shadow: 0 0 0 4px rgba(212, 165, 194, 0.12);
}

.btn-quick-add {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #a3c4a8, #8bae91);
    color: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.btn-quick-add:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(163, 196, 168, 0.35);
}

.customer-selected-info {
    margin-top: 10px;
    padding: 10px 14px;
    background: #f5e6f0;
    border-radius: 12px;
    font-size: 13px;
    color: #6b4e5e;
    display: none;
}

.customer-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e8e0e4;
    border-radius: 14px;
    max-height: 260px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.customer-result-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0eae6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.customer-result-item:hover {
    background: #f5e6f0;
}

.customer-result-item .name {
    font-weight: 600;
    color: #4a3a42;
}

.customer-result-item .phone {
    font-size: 12px;
    color: #999;
}

/* ============================================
   MONTH SELECTOR
   ============================================ */
.month-selector-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 25px;
    border: 1px solid #f0eae6;
}

.month-selector-body {
    padding: 20px 24px;
}

.selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.selector-label {
    font-weight: 600;
    color: #6b4e5e;
    font-size: 15px;
}

.selector-label i {
    color: #d4a5c2;
    margin-left: 8px;
}

.selector-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.year-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.year-btn {
    background: #faf0f5;
    border: 1px solid #f0eae6;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b4e5e;
}

.year-btn:hover {
    background: #d4a5c2;
    color: white;
    border-color: #d4a5c2;
}

.year-display {
    font-size: 20px;
    font-weight: 700;
    color: #4a3a42;
    min-width: 70px;
    text-align: center;
}

.months-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.month-btn {
    text-align: center;
    padding: 8px 4px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #6b4e5e;
    background: #faf0f5;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.month-btn:hover {
    background: #f5e6f0;
    border-color: #d4a5c2;
    color: #6b4e5e;
}

.month-btn.active {
    background: #d4a5c2;
    color: white;
    border-color: #b5839e;
}

.month-btn.current {
    border-color: #a3c4a8;
}

.month-btn.current.active {
    border-color: #b5839e;
}

.selected-month-display {
    text-align: center;
    padding: 8px 0;
    background: #fef9f7;
    border-radius: 12px;
    border: 1px solid #f0eae6;
}

.selected-month-label {
    font-weight: 500;
    color: #6b4e5e;
    font-size: 13px;
}

.selected-month-name {
    font-weight: 700;
    color: #4a3a42;
    font-size: 16px;
    margin-right: 6px;
}

/* ============================================
   SALARIES PAGE
   ============================================ */
.salaries-page .page-header {
    margin-bottom: 20px;
}

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

.salaries-table th {
    background: #faf0f5;
    padding: 10px;
    text-align: center;
    font-size: 12px;
    white-space: nowrap;
}

.salaries-table td {
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid #f0eae6;
    font-size: 13px;
}

.salary-input {
    width: 120px;
    margin: 0 auto;
    text-align: center;
}

.base-salary-display {
    font-weight: 600;
    color: #4a3a42;
}

.commission-amount {
    color: #d4a5c2;
    font-weight: 600;
}

.bonus-display {
    color: #a3c4a8;
    font-weight: 600;
}

.deduction-amount {
    color: #e4a8a8;
    font-weight: 600;
}

.advance-amount {
    color: #f3d9b1;
    font-weight: 600;
}

.carryover-amount {
    color: #b8d8e3;
    font-weight: 600;
}

.total-amount {
    font-weight: 700;
    color: #2d523a;
}

.remaining-display {
    font-weight: 700;
    color: #d4a5c2;
    font-size: 14px;
}

.remaining-display.debt {
    color: #e4a8a8 !important;
}

.remaining-display.debt .debt-badge {
    display: inline-block;
    background: #e4a8a8;
    color: #7a3e3e;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    margin-right: 6px;
}

.carryover-amount.debt {
    color: #e4a8a8 !important;
    font-weight: 700;
}

.badge-paid {
    background: #a3c4a8;
    color: #2d523a;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
}

.badge-pending {
    background: #f3d9b1;
    color: #7a5a3e;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
}

.badge-debt {
    display: inline-block;
    background: #e4a8a8;
    color: #7a3e3e;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
}

/* دکمه‌های عملیات در جدول حقوق */
.btn-action {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0 2px;
}

.btn-action:hover {
    transform: translateY(-2px);
}

.btn-advance-small {
    background: #f3d9b1;
    color: #7a5a3e;
}

.btn-advance-small:hover {
    background: #e8c89a;
}

.btn-partial-small {
    background: #b8d8e3;
    color: #2c5a6e;
}

.btn-partial-small:hover {
    background: #a0c8d5;
}

.btn-final-small {
    background: #a3c4a8;
    color: #2d523a;
}

.btn-final-small:hover {
    background: #8bae91;
}

/* کارت‌های پرسنل */
.staff-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.staff-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #f0eae6;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s;
}

.staff-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.staff-card.debt-card {
    border-color: #e4a8a8 !important;
    border-width: 2px !important;
}

.card-header-staff {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #faf0f5, #fef9f7);
    border-bottom: 1px solid #f0eae6;
}

.staff-avatar {
    width: 48px;
    height: 48px;
    background: #d4a5c2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.staff-name {
    font-weight: 700;
    font-size: 16px;
    color: #4a3a42;
}

.staff-status {
    margin-top: 3px;
}

.card-body-staff {
    padding: 16px 20px;
}

.salary-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 20px;
    margin-bottom: 12px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 3px 0;
    border-bottom: 1px dashed #f5f0f2;
}

.detail-item .label {
    color: #6b4e5e;
}

.detail-item .value {
    font-weight: 600;
    color: #4a3a42;
}

.detail-item .value.commission {
    color: #d4a5c2;
}

.detail-item .value.bonus {
    color: #a3c4a8;
}

.detail-item .value.deduction {
    color: #e4a8a8;
}

.detail-item .value.debt {
    color: #e4a8a8;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 2px solid #f0eae6;
    border-bottom: 2px solid #f0eae6;
    margin-bottom: 10px;
}

.total-label {
    font-weight: 600;
    color: #6b4e5e;
    font-size: 14px;
}

.total-value {
    font-weight: 700;
    color: #2d523a;
    font-size: 16px;
}

.payments-summary {
    margin-bottom: 10px;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 3px 0;
    border-bottom: 1px dashed #f5f0f2;
}

.payment-row .payment-label {
    color: #6b4e5e;
}

.payment-row .payment-value.advance {
    color: #f3d9b1;
    font-weight: 600;
}

.payment-row .payment-value.partial {
    color: #b8d8e3;
    font-weight: 600;
}

.payment-row .payment-value.deduction {
    color: #e4a8a8;
    font-weight: 600;
}

.payment-row .payment-value.bonus {
    color: #a3c4a8;
    font-weight: 600;
}

.remaining-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    background: #fef9f7;
    border-radius: 10px;
    padding: 10px 14px;
    border: 1px solid #f0eae6;
}

.remaining-row.debt-row {
    background: #fde8e8 !important;
    border-color: #e4a8a8 !important;
}

.remaining-label {
    font-weight: 600;
    color: #6b4e5e;
    font-size: 14px;
}

.remaining-value {
    font-weight: 700;
    color: #d4a5c2;
    font-size: 16px;
}

.remaining-value.debt-value {
    color: #e4a8a8 !important;
}

.debt-emoji {
    font-size: 12px;
    color: #7a3e3e;
}

.carryover-hint {
    font-size: 11px;
    color: #999;
    text-align: center;
    margin-top: 5px;
    padding: 4px 8px;
    background: #fef9f7;
    border-radius: 6px;
    border: 1px dashed #e0d0d8;
}

.card-footer-staff {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid #f0eae6;
    background: #faf0f5;
    flex-wrap: wrap;
}

.card-footer-staff .btn-advance {
    background: #f3d9b1;
    color: #7a5a3e;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
}

.card-footer-staff .btn-advance:hover {
    background: #e8c89a;
    transform: translateY(-1px);
}

.card-footer-staff .btn-partial {
    background: #b8d8e3;
    color: #2c5a6e;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
}

.card-footer-staff .btn-partial:hover {
    background: #a0c8d5;
    transform: translateY(-1px);
}

.card-footer-staff .btn-final {
    background: #a3c4a8;
    color: #2d523a;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
}

.card-footer-staff .btn-final:hover {
    background: #8bae91;
    transform: translateY(-1px);
}

.card-footer-staff .text-muted {
    color: #999;
    font-size: 13px;
}


/* بدهکاری */
.remaining-display.debt {
    color: #e4a8a8 !important;
    font-weight: 700;
}

.remaining-display.debt .debt-badge {
    display: inline-block;
    background: #e4a8a8;
    color: #7a3e3e;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    margin-right: 6px;
}

.carryover-amount.debt {
    color: #e4a8a8 !important;
    font-weight: 700;
}

.debt-card {
    border-color: #e4a8a8 !important;
    border-width: 2px !important;
}

.debt-row {
    background: #fde8e8 !important;
    border-color: #e4a8a8 !important;
}

.debt-value {
    color: #e4a8a8 !important;
}

.debt-emoji {
    font-size: 12px;
    color: #7a3e3e;
}

.badge-debt {
    display: inline-block;
    background: #e4a8a8;
    color: #7a3e3e;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 10px;
    margin-right: 4px;
    font-weight: 600;
}

.payment-amount {
    color: #d4a5c2;
    font-weight: 600;
}

/* سایر استایل‌های salaries که قبلاً اضافه شده‌اند */
/* ماه selector, کارت‌های پرسنل, جدول حقوق و ... قبلاً در custom.css وجود دارند */

/* ============================================
   QUICK FORMS (پاداش و کسورات)
   ============================================ */
.quick-form .form-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.quick-form .form-group {
    flex: 1;
    min-width: 150px;
}

.quick-form .form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #6b4e5e;
}

.quick-form .btn {
    padding: 8px 20px;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-form .btn:hover {
    transform: translateY(-2px);
}

/* ============================================
   HISTORY TABLE
   ============================================ */
.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.history-table th {
    background: #faf0f5;
    padding: 10px;
    text-align: center;
    font-size: 12px;
    white-space: nowrap;
}

.history-table td {
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid #f0eae6;
    font-size: 13px;
}

.history-table .amount {
    font-weight: 600;
    color: #2d523a;
}

.payment-amount {
    color: #d4a5c2;
    font-weight: 600;
}

.type-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
}

.type-badge.color-advance {
    background: #f3d9b1;
    color: #7a5a3e;
}

.type-badge.color-partial {
    background: #b8d8e3;
    color: #2c5a6e;
}

.type-badge.color-final {
    background: #a3c4a8;
    color: #2d523a;
}

.type-badge.color-deduction {
    background: #e4a8a8;
    color: #7a3e3e;
}

.type-badge.color-bonus {
    background: #e8f5e8;
    color: #2d523a;
}

/* ============================================
   STAFF SERVICES GRID
   ============================================ */
.services-grid-staff {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
    padding: 5px;
    border: 1px solid #f0eae6;
    border-radius: 10px;
}

.service-checkbox-staff {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #fef9f7;
    border-radius: 8px;
    border: 1px solid #f0eae6;
    cursor: pointer;
    transition: all 0.2s;
}

.service-checkbox-staff:hover {
    background: #f5e6f0;
    border-color: #d4a5c2;
}

.service-checkbox-staff input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.service-checkbox-staff span {
    font-size: 13px;
    color: #4a3a42;
}

/* ============================================
   PERMISSIONS GRID
   ============================================ */
.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.perm-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: normal;
    font-size: 13px;
}

.perm-checkbox input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .months-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .staff-cards {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .app-wrapper {
        flex-direction: column;
    }
    
    .app-sidebar {
        position: fixed;
        top: 0;
        right: -280px;
        height: 100vh;
        z-index: 1002;
        box-shadow: none;
    }
    
    .app-sidebar.open {
        right: 0;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    }
    
    .sidebar-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .sidebar-close-btn {
        display: flex;
    }
    
    .app-main .container-fluid {
        padding-top: 70px;
        padding: 15px;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .filter-form {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        min-width: 100%;
        margin-bottom: 15px;
    }
    
    .page-header {
        flex-direction: column;
        text-align: center;
    }
    
    .page-header .btn {
        width: 100%;
        justify-content: center;
    }
    
    .months-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .month-selector-body {
        padding: 16px;
    }
    
    .staff-cards {
        grid-template-columns: 1fr;
    }
    
    .salary-details {
        grid-template-columns: 1fr;
    }
    
    .salaries-table {
        min-width: 1000px;
    }
    
    .history-table {
        min-width: 800px;
    }
    
    .card-footer-staff {
        flex-direction: column;
    }
    
    .card-footer-staff button {
        width: 100%;
        justify-content: center;
    }
    
    .quick-form .form-row {
        flex-direction: column;
    }
    
    .quick-form .form-group {
        width: 100%;
    }
    
    .row {
        flex-direction: column;
    }
    
    .row .col-md-6 {
        width: 100%;
        padding: 0;
    }
    
    .login-card {
        padding: 30px 25px;
    }
    
    .login-header h2 {
        font-size: 24px;
    }
    
    .btn-login {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .staff-card .card-header-staff {
        flex-direction: column;
        text-align: center;
    }
    
    .total-row {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    
    .remaining-row {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    
    .months-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .month-btn {
        font-size: 12px;
        padding: 6px 4px;
    }
    
    .info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    
    .filter-buttons {
        gap: 4px;
    }
    
    .filter-btn {
        padding: 3px 8px;
        font-size: 10px;
    }
}

/* ============================================
   UTILITY
   ============================================ */
.text-center {
    text-align: center;
}

.text-muted {
    color: #999;
}

.text-success {
    color: #a3c4a8;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-2 {
    margin-top: 10px;
}

.mt-3 {
    margin-top: 15px;
}

.mb-2 {
    margin-bottom: 10px;
}

.mb-3 {
    margin-bottom: 15px;
}

.mt-4 {
    margin-top: 20px;
}

.mb-4 {
    margin-bottom: 20px;
}

/* ============================================
   JALALI DATEPICKER
   ============================================ */
.jdp-container {
    z-index: 9999 !important;
}

/* ============================================
   DESKTOP - SIDEBAR ALWAYS OPEN
   ============================================ */
@media (min-width: 769px) {
    .app-sidebar {
        right: 0 !important;
    }
    
    .sidebar-toggle-btn {
        display: none;
    }
    
    .mobile-view {
        display: none !important;
    }
}

/* ============================================
   MOBILE - SHOW MOBILE VIEW
   ============================================ */
@media (max-width: 768px) {
    .desktop-view {
        display: none !important;
    }
    .mobile-view {
        display: block !important;
    }
}
/* ============================================
   dashboard.php
   ============================================ */

.dashboard-page .salon-name {
    color: #999;
    font-size: 14px;
    margin: 0;
}

.date-badge {
    background: white;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 13px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.primary {
    background: linear-gradient(135deg, #f5e6f0, #e8d5e4);
    color: #d4a5c2;
}

.stat-icon.success {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #a3c4a8;
}

.stat-icon.info {
    background: linear-gradient(135deg, #e3f2fd, #bbdef5);
    color: #b8d8e3;
}

.stat-info {
    flex: 1;
}

.stat-info h3 {
    font-size: 22px;
    font-weight: 700;
    color: #4a3a42;
    margin: 0 0 5px 0;
}

.stat-info h3 span {
    font-size: 12px;
    font-weight: normal;
    color: #999;
}

.stat-info p {
    color: #999;
    font-size: 12px;
    margin: 0;
}

.quick-actions {
    margin-top: 20px;
}

.quick-actions h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #6b4e5e;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #fef9f7;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.quick-link i {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4a5c2;
}

.quick-link span {
    color: #6b4e5e;
    font-weight: 500;
}

.quick-link:hover {
    background: #f5e6f0;
    transform: translateX(-5px);
    border-color: #d4a5c2;
}

.alert-link {
    color: #d4a5c2;
    text-decoration: underline;
}

.alert-link:hover {
    color: #b5839e;
}
/* ============================================
   modules.php
   ============================================ */

.modules-page .page-header {
    margin-bottom: 25px;
}

.modules-page .page-description {
    color: #999;
    font-size: 14px;
    margin: 0;
}

.modules-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 25px;
}

.modules-table {
    width: 100%;
    background: white;
    border-radius: 20px;
    border-collapse: collapse;
    overflow: hidden;
}

.modules-table th {
    background: #faf0f5;
    color: #6b4e5e;
    padding: 14px 12px;
    text-align: right;
    font-weight: 600;
    font-size: 14px;
}

.modules-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #f0eae6;
    vertical-align: middle;
}

.modules-table tr:hover {
    background: #fff5f0;
}

.modules-table .module-name strong {
    display: block;
    color: #4a3a42;
    font-size: 15px;
}

.modules-table .module-name small {
    font-size: 11px;
    color: #d4a5c2;
    font-family: monospace;
}

.modules-table .module-desc {
    font-size: 13px;
    color: #666;
    max-width: 250px;
}

.modules-table .module-price {
    font-weight: 700;
    color: #2d523a;
    white-space: nowrap;
}

.modules-table .module-price span {
    font-size: 11px;
    font-weight: normal;
    color: #999;
}

.modules-table .module-status {
    white-space: nowrap;
}

.modules-table .module-actions {
    white-space: nowrap;
}

.modules-table .status-active {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    background: #a3c4a8;
    color: #2d523a;
}

.modules-table .status-inactive {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    background: #e0d0d8;
    color: #6b4e5e;
}

.modules-table .action-btn.buy {
    background: linear-gradient(135deg, #d4a5c2 0%, #b5839e 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.modules-table .action-btn.buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 165, 194, 0.4);
}

.active-badge {
    color: #a3c4a8;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.active-modules .badge-count {
    background: #f5e6f0;
    color: #d4a5c2;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
}

.active-modules-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.module-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fef9f7;
    border-radius: 14px;
    transition: all 0.2s;
    border: 1px solid #f0eae6;
}

.module-item:hover {
    background: #fff5f0;
    border-color: #d4a5c2;
}

.module-item i {
    width: 32px;
    height: 32px;
    background: #f5e6f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4a5c2;
}

.module-item span {
    flex: 1;
    color: #4a3a42;
    font-weight: 500;
}

/* Modal */
.confirm-message {
    text-align: center;
    padding: 20px 0;
}

.confirm-message i {
    font-size: 48px;
    color: #f3d9b1;
    margin-bottom: 15px;
}

.confirm-message p {
    font-size: 16px;
    margin: 0;
}

.confirm-message strong {
    color: #d4a5c2;
}
/* ============================================
   settings.php
   ============================================ */

.settings-page .page-header {
    margin-bottom: 20px;
}

.settings-page .page-header .text-muted {
    color: #999;
    font-size: 14px;
    margin: 0;
}

.settings-page .form-divider {
    height: 1px;
    background: #f0eae6;
    margin: 25px 0;
}

.settings-page .form-group {
    margin-bottom: 20px;
}

.settings-page .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #6b4e5e;
    font-size: 14px;
}

.settings-page .form-group .text-muted {
    color: #999;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.settings-page .logo-section {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.settings-page .current-logo .logo-preview {
    max-width: 100px;
    max-height: 100px;
    border-radius: 12px;
    border: 1px solid #e0d0d8;
    padding: 4px;
    background: white;
}

.settings-page .location-preview {
    background: #fef9f7;
    border-radius: 16px;
    padding: 15px;
    border: 1px solid #f0eae6;
}

.settings-page .location-preview iframe {
    border: 0;
    border-radius: 12px;
    width: 100%;
    height: 250px;
}

.settings-page .empty-location {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.settings-page .empty-location i {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
    color: #d4a5c2;
}

.settings-page .empty-location p {
    margin: 0;
}

.settings-page .form-actions {
    margin-top: 20px;
}

.settings-page .form-actions .btn {
    padding: 10px 25px;
}

.settings-page .btn-sm {
    padding: 6px 15px;
    font-size: 12px;
    border-radius: 20px;
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.settings-page .btn-sm.btn-success {
    background: #a3c4a8;
    color: #2d523a;
}

.settings-page .btn-sm.btn-success:hover {
    background: #8bae91;
}
/* ============================================
   finance/dashboard.php - داشبورد مالی
   ============================================ */

.finance-dashboard .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.finance-dashboard .page-header h2 {
    margin: 0;
}

.finance-dashboard .date-badge {
    background: white;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 13px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card.income .stat-icon {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #a3c4a8;
}

.stat-card.expense .stat-icon {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: #e4a8a8;
}

.stat-card.primary .stat-icon {
    background: linear-gradient(135deg, #e3f2fd, #bbdef5);
    color: #b8d8e3;
}

.stat-card.warning .stat-icon {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    color: #f3d9b1;
}

.stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-info {
    flex: 1;
}

.stat-info h3 {
    font-size: 22px;
    font-weight: 700;
    color: #4a3a42;
    margin: 0 0 5px 0;
}

.stat-info h3 span {
    font-size: 12px;
    font-weight: normal;
    color: #999;
}

.stat-info p {
    color: #999;
    font-size: 12px;
    margin: 0;
}

.info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.info-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-card.profit {
    border-right: 4px solid #a3c4a8;
}

.info-card.salary {
    border-right: 4px solid #f3d9b1;
}

.info-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: #faf0f5;
    color: #d4a5c2;
}

.info-content {
    flex: 1;
}

.info-label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.info-value {
    font-size: 20px;
    font-weight: 700;
    color: #4a3a42;
}

.info-content .btn-sm {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    background: #f5e6f0;
    color: #d4a5c2;
    border-radius: 20px;
    text-decoration: none;
    font-size: 11px;
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #fef9f7;
    border-radius: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.transaction-item.income {
    border-right: 3px solid #a3c4a8;
}

.transaction-item.expense {
    border-right: 3px solid #e4a8a8;
}

.transaction-date {
    font-size: 11px;
    color: #999;
    min-width: 80px;
}

.transaction-info {
    flex: 1;
}

.transaction-category {
    font-weight: 600;
    color: #6b4e5e;
    font-size: 13px;
}

.transaction-desc {
    font-size: 11px;
    color: #999;
}

.transaction-amount {
    font-weight: 700;
    font-size: 14px;
}

.transaction-amount.income {
    color: #a3c4a8;
}

.transaction-amount.expense {
    color: #e4a8a8;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #fef9f7;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.quick-link i {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-link:hover {
    background: #f5e6f0;
    transform: translateX(-5px);
}

.quick-link i.text-success {
    color: #a3c4a8;
}

.quick-link i.text-danger {
    color: #e4a8a8;
}

.btn-link {
    color: #d4a5c2;
    text-decoration: none;
    font-size: 12px;
}
/* ============================================
   finance/expenses.php - مدیریت هزینه‌ها
   ============================================ */

.expenses-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.expenses-page .page-header h2 {
    margin: 0;
}

.filter-form .form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-form .form-group {
    flex: 1;
    min-width: 150px;
    margin-bottom: 0;
}

.filter-form .form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    color: #6b4e5e;
}

.filter-form .form-control {
    width: 100%;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #e0d0d8;
}

.filter-form .form-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn-link {
    background: none;
    border: none;
    color: #d4a5c2;
    cursor: pointer;
    text-decoration: none;
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-box {
    background: white;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-box .stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 18px;
    background: #faf0f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #d4a5c2;
}

.stat-box .stat-info {
    flex: 1;
}

.stat-box .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #4a3a42;
    margin-bottom: 5px;
}

.stat-box .stat-value span {
    font-size: 12px;
    font-weight: normal;
    color: #999;
}

.stat-box .stat-label {
    font-size: 12px;
    color: #999;
}

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

.expenses-table th {
    background: #faf0f5;
    padding: 12px;
    text-align: right;
    font-weight: 600;
    color: #6b4e5e;
}

.expenses-table td {
    padding: 10px;
    border-bottom: 1px solid #f0eae6;
}

.expenses-table .amount {
    font-weight: 600;
    color: #2d523a;
}

.btn-delete {
    background: none;
    border: none;
    color: #e4a8a8;
    cursor: pointer;
    font-size: 16px;
}

.text-muted {
    color: #999;
    font-size: 11px;
    margin-top: 4px;
    display: block;
}

.text-center {
    text-align: center;
}
/* ============================================
   finance/reports.php - گزارشات مالی
   ============================================ */

.reports-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.reports-page .page-header h2 {
    margin: 0;
}

.reports-page .text-muted {
    color: #999;
    font-size: 13px;
    margin-top: 5px;
}

.reports-page .date-badge {
    background: white;
    padding: 6px 15px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.filter-card .card-body {
    padding: 20px;
}

.period-group {
    margin-bottom: 15px;
}

.period-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.period-btn {
    padding: 6px 16px;
    border-radius: 30px;
    background: #f0eae6;
    color: #6b4e5e;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.period-btn.active,
.period-btn:hover {
    background: #d4a5c2;
    color: white;
}

.custom-date-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    align-items: flex-end;
}

.custom-date-row .form-group {
    flex: 1;
    min-width: 150px;
    margin-bottom: 0;
}

.custom-date-row .form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    color: #6b4e5e;
}

.filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.btn-success {
    background: #a3c4a8;
    color: #2d523a;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
}

.report-tabs {
    display: flex;
    gap: 5px;
    border-bottom: 1px solid #e0d0d8;
    margin-bottom: 25px;
    list-style: none;
    padding: 0;
}

.tab-item {
    margin-bottom: -1px;
}

.tab-item a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #6b4e5e;
    border-radius: 10px 10px 0 0;
    transition: all 0.2s;
}

.tab-item a i {
    margin-left: 8px;
    color: #d4a5c2;
}

.tab-item.active a {
    background: #faf0f5;
    border: 1px solid #e0d0d8;
    border-bottom-color: #faf0f5;
    color: #d4a5c2;
}

.report-content {
    display: none;
}

.report-content.active {
    display: block;
}

.stat-card.profit.positive .stat-icon {
    background: linear-gradient(135deg, #e3f2fd, #bbdef5);
    color: #b8d8e3;
}

.stat-card.profit.negative .stat-icon {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: #e4a8a8;
}

.row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.col-md-6 {
    flex: 1;
    min-width: 280px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0eae6;
}

.detail-item.total {
    font-weight: 700;
    color: #2d523a;
    border-bottom: none;
}

.staff-report-table,
.services-table {
    width: 100%;
    border-collapse: collapse;
}

.staff-report-table th,
.services-table th {
    background: #faf0f5;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    color: #6b4e5e;
}

.staff-report-table td,
.services-table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #f0eae6;
}

.staff-name,
.service-name {
    text-align: right;
    font-weight: 600;
}

.amount {
    font-weight: 600;
    color: #2d523a;
}

.commission {
    color: #d4a5c2;
}

.total-row {
    background: #faf0f5;
    font-weight: 700;
}

.expenses-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.expense-item {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.expense-name {
    width: 150px;
    font-weight: 600;
    color: #6b4e5e;
}

.expense-amount {
    width: 150px;
    color: #e4a8a8;
    font-weight: 600;
}

.expense-bar {
    flex: 1;
    height: 8px;
    background: #f0eae6;
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #e4a8a8, #d4a5c2);
    border-radius: 10px;
}

.info-footer {
    background: #fef9f7;
    border-radius: 16px;
    padding: 12px 20px;
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #6b4e5e;
}

.info-footer i {
    color: #d4a5c2;
}

.separator {
    color: #e0d0d8;
}
/* ============================================
   finance/staff_performance.php - عملکرد پرسنل
   ============================================ */

.staff-performance-page .page-header {
    margin-bottom: 20px;
}

.staff-performance-page .page-header h2 {
    margin: 0;
}

.staff-performance-page .text-muted {
    color: #999;
    font-size: 13px;
    margin-top: 5px;
}

.report-form .form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.report-form .form-group {
    flex: 1;
    min-width: 150px;
}

.report-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #6b4e5e;
    font-size: 13px;
}

.report-form .form-group label i {
    margin-left: 6px;
    color: #d4a5c2;
}

.report-form .form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-light {
    background: #f5e6f0;
    color: #6b4e5e;
    border: none;
    padding: 8px 20px;
    border-radius: 40px;
    cursor: pointer;
}

.btn-details-small {
    background: #d4a5c2;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

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

.performance-table th {
    background: #faf0f5;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    color: #6b4e5e;
    border-bottom: 1px solid #f0eae6;
}

.performance-table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #f0eae6;
}

.performance-table .staff-name {
    text-align: right;
    font-weight: 600;
    color: #4a3a42;
}

.performance-table .amount {
    font-weight: 600;
    color: #2d523a;
}

.performance-table .commission {
    color: #d4a5c2;
}

.total-row {
    background: #faf0f5;
    font-weight: 700;
}

.info-card {
    background: #fef9f7;
    border-radius: 16px;
    padding: 15px;
    border: 1px solid #f0eae6;
    margin-top: 20px;
}

.info-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-content i {
    font-size: 20px;
    color: #d4a5c2;
}

.info-text {
    font-size: 13px;
    color: #6b4e5e;
}

.actions-cell {
    white-space: nowrap;
}
.staff-performance-page .performance-table .advance {
    color: #f3d9b1;
    font-weight: 600;
}

.staff-performance-page .performance-table .bonus {
    color: #a3c4a8;
    font-weight: 600;
}

.staff-performance-page .performance-table .avg {
    color: #b8d8e3;
    font-weight: 600;
}
/* ============================================================ */
/* جدول عملکرد پرسنل - طراحی جدید */
/* ============================================================ */

.staff-performance-page .performance-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.staff-performance-page .performance-table thead th {
    background: #faf0f5;
    padding: 12px 10px;
    text-align: center;
    font-weight: 600;
    color: #6b4e5e;
    border-bottom: 2px solid #f0eae6;
    white-space: nowrap;
    font-size: 13px;
}

.staff-performance-page .performance-table tbody td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid #f0eae6;
    vertical-align: middle;
}

.staff-performance-page .performance-table tbody tr:hover {
    background: #faf0f5;
}

/* ===== عرض ستون‌ها ===== */
.staff-performance-page .performance-table .col-row {
    width: 40px;
}

.staff-performance-page .performance-table .col-staff {
    text-align: right;
    min-width: 120px;
}

.staff-performance-page .performance-table .col-commission {
    width: 80px;
}

.staff-performance-page .performance-table .col-count {
    width: 80px;
}

.staff-performance-page .performance-table .col-sales {
    width: 140px;
}

.staff-performance-page .performance-table .col-advance {
    width: 130px;
}

.staff-performance-page .performance-table .col-bonus {
    width: 130px;
}

.staff-performance-page .performance-table .col-avg {
    width: 140px;
}

.staff-performance-page .performance-table .col-actions {
    width: 80px;
}

/* ===== نام پرسنل ===== */
.staff-performance-page .performance-table .staff-name {
    font-weight: 600;
    color: #4a3a42;
}

/* ===== نشان‌ها ===== */
.staff-performance-page .performance-table .commission-badge {
    display: inline-block;
    background: #f5e6f0;
    color: #d4a5c2;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
}

.staff-performance-page .performance-table .count-badge {
    display: inline-block;
    background: #b8d8e3;
    color: #2c5a6e;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    min-width: 30px;
}

/* ===== مبالغ ===== */
.staff-performance-page .performance-table .amount {
    font-weight: 600;
    font-size: 14px;
}

.staff-performance-page .performance-table .col-sales .amount {
    color: #2d523a;
}

.staff-performance-page .performance-table .col-commission .amount {
    color: #d4a5c2;
}

.staff-performance-page .performance-table .col-advance .amount {
    color: #f3d9b1;
}

.staff-performance-page .performance-table .col-bonus .amount {
    color: #a3c4a8;
}

.staff-performance-page .performance-table .col-avg .amount {
    color: #b8d8e3;
}

/* ===== ردیف جمع کل ===== */
.staff-performance-page .performance-table .total-row {
    background: #faf0f5;
    font-weight: 700;
}

.staff-performance-page .performance-table .total-row td {
    padding: 14px 10px;
    border-top: 2px solid #f0eae6;
}

/* ===== دکمه جزئیات ===== */
.staff-performance-page .btn-details-small {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #d4a5c2;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.staff-performance-page .btn-details-small:hover {
    background: #b5839e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 194, 0.3);
}
/* ============================================
   staff_performance.php - ستون‌های جدید
   ============================================ */

.staff-performance-page .performance-table .advance {
    color: #f3d9b1;
    font-weight: 600;
}

.staff-performance-page .performance-table .bonus {
    color: #a3c4a8;
    font-weight: 600;
}

.staff-performance-page .performance-table .avg {
    color: #b8d8e3;
    font-weight: 600;
}

/* دکمه‌های عملکرد پرسنل */
.staff-performance-page .btn-details-small {
    background: #d4a5c2;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.staff-performance-page .btn-details-small:hover {
    background: #b5839e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 194, 0.3);
}
/* ============================================================ */
/* ریسپانسیو */
/* ============================================================ */

@media (max-width: 992px) {
    .staff-performance-page .performance-table {
        font-size: 13px;
    }
    .staff-performance-page .performance-table .col-sales,
    .staff-performance-page .performance-table .col-avg {
        width: 120px;
    }
}

@media (max-width: 768px) {
    .staff-performance-page .performance-table {
        min-width: 800px;
        font-size: 13px;
    }
    .staff-performance-page .performance-table thead th {
        font-size: 12px;
        padding: 10px 8px;
    }
    .staff-performance-page .performance-table tbody td {
        padding: 10px 8px;
    }
    .staff-performance-page .performance-table .col-advance,
    .staff-performance-page .performance-table .col-bonus {
        width: 110px;
    }
    .staff-performance-page .performance-table .col-sales {
        width: 120px;
    }
}

@media (max-width: 480px) {
    .staff-performance-page .performance-table {
        min-width: 700px;
        font-size: 12px;
    }
    .staff-performance-page .performance-table .col-advance,
    .staff-performance-page .performance-table .col-bonus {
        width: 100px;
    }
    .staff-performance-page .performance-table .col-sales {
        width: 110px;
    }
    .staff-performance-page .btn-details-small {
        font-size: 11px;
        padding: 4px 10px;
    }
}
/* ============================================
   finance/transactions.php - مدیریت تراکنش‌ها
   ============================================ */

.transactions-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.transactions-page .page-header h2 {
    margin: 0;
}

.filter-card {
    margin-bottom: 20px;
    border-radius: 16px;
    background: white;
}

.filter-card .card-body {
    padding: 20px;
}

.stat-box.income .stat-icon {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #a3c4a8;
}

.stat-box.expense .stat-icon {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: #e4a8a8;
}

.stat-box.profit .stat-icon {
    background: linear-gradient(135deg, #e3f2fd, #bbdef5);
    color: #b8d8e3;
}

.stat-value.positive {
    color: #2d523a;
}

.stat-value.negative {
    color: #7a3e3e;
}

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

.transactions-table th {
    background: #faf0f5;
    padding: 12px;
    text-align: right;
    font-weight: 600;
    color: #6b4e5e;
}

.transactions-table td {
    padding: 10px;
    border-bottom: 1px solid #f0eae6;
    vertical-align: middle;
}

.transactions-table tr.income .amount {
    color: #a3c4a8;
    font-weight: 600;
}

.transactions-table tr.expense .amount {
    color: #e4a8a8;
    font-weight: 600;
}

.type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
}

.type-income {
    background: #a3c4a8;
    color: #2d523a;
}

.type-expense {
    background: #e4a8a8;
    color: #7a3e3e;
}

.btn-link-small {
    background: none;
    border: none;
    color: #d4a5c2;
    cursor: pointer;
    font-size: 11px;
    padding: 0;
    margin-top: 4px;
}

.type-radio-group {
    display: flex;
    gap: 20px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-label input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.actions-cell .btn-delete {
    background: none;
    border: none;
    color: #e4a8a8;
    cursor: pointer;
    font-size: 16px;
}
/* ============================================
   sms/index.php - ارسال پیامک دلخواه
   ============================================ */

.sms-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.sms-page .page-header h2 {
    margin: 0;
}

.sms-page .text-muted {
    color: #999;
    font-size: 13px;
    margin-top: 5px;
}

.badge-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.badge-status.active {
    background: #a3c4a8;
    color: #2d523a;
}

.badge-status.inactive {
    background: #e4a8a8;
    color: #7a3e3e;
}

.sms-page .card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 25px;
}

.sms-page .card-body {
    padding: 25px;
}

.sms-page .card-header-custom {
    background: #faf0f5;
    padding: 12px 20px;
    border-bottom: 1px solid #f0eae6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sms-page .card-header-custom h3 {
    margin: 0;
    font-size: 16px;
    color: #6b4e5e;
}

.sms-page .btn-link {
    color: #d4a5c2;
    text-decoration: none;
    font-size: 12px;
}

.sms-page .form-group {
    margin-bottom: 20px;
}

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

.sms-page .form-control {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e0d0d8;
}

.sms-page .input-group {
    display: flex;
    gap: 8px;
    position: relative;
}

.sms-page .input-group .form-control {
    flex: 1;
    padding-right: 40px;
}

.sms-page .btn-clear-search {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    z-index: 10;
}

.sms-page .btn-clear-search:hover {
    color: #6b4e5e;
}

.sms-page .form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.sms-page .btn-primary {
    background: #d4a5c2;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
}

.sms-page .btn-secondary {
    background: #f0eae6;
    color: #6b4e5e;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
}

.sms-page .log-container {
    max-height: 300px;
    overflow-y: auto;
    background: #f8f5f7;
    border-radius: 12px;
    padding: 10px;
}

.sms-page .log-container pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 12px;
    color: #6b4e5e;
}

.sms-page .recipient-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0d0d8;
    border-radius: 12px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 5px;
}

.sms-page .recipient-result-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0eae6;
}

.sms-page .recipient-result-item:hover {
    background: #f5e6f0;
}

.sms-page .recipient-result-item .name {
    font-weight: 600;
    color: #4a3a42;
}

.sms-page .recipient-result-item .phone {
    font-size: 11px;
    color: #999;
}

.sms-page .text-success {
    color: #a3c4a8;
}

.sms-page #recipientSelectGroup {
    position: relative;
}
/* ============================================
   sms/templates.php - تنظیمات پیامک
   ============================================ */

.sms-settings-page .page-header {
    margin-bottom: 20px;
}

.sms-settings-page .page-header h2 {
    margin: 0;
}

.sms-settings-page .text-muted {
    color: #999;
    font-size: 13px;
    margin-top: 5px;
}

.sms-settings-page .card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 25px;
}

.sms-settings-page .card-body {
    padding: 25px;
}

.sms-settings-page .form-group {
    margin-bottom: 20px;
}

.sms-settings-page .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #6b4e5e;
}

.sms-settings-page .form-control {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e0d0d8;
}

.sms-settings-page .form-divider {
    height: 1px;
    background: #f0eae6;
    margin: 20px 0;
}

.sms-settings-page .checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
}

.sms-settings-page .checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.sms-settings-page .form-actions {
    margin-top: 20px;
}

.sms-settings-page .btn-primary {
    background: #d4a5c2;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
}
/* ============================================
   salon_owner/staff/index.php - مدیریت پرسنل
   ============================================ */

.staff-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.staff-page .page-header h2 {
    margin: 0;
}

.staff-page .card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 25px;
}

.staff-page .card-body {
    padding: 25px;
}

.staff-page .search-box {
    margin-bottom: 20px;
}

.staff-page .search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.staff-page .search-form .form-control {
    width: 250px;
}

.staff-page .btn-primary {
    background: #d4a5c2;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
}

.staff-page .btn-secondary {
    background: #f0eae6;
    color: #6b4e5e;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.staff-page .staff-table {
    width: 100%;
    border-collapse: collapse;
}

.staff-page .staff-table th {
    background: #faf0f5;
    padding: 12px;
    text-align: right;
    font-weight: 600;
    color: #6b4e5e;
    border-bottom: 1px solid #f0eae6;
}

.staff-page .staff-table td {
    padding: 12px;
    border-bottom: 1px solid #f0eae6;
    vertical-align: middle;
}

.staff-page .staff-table .badge.bg-success {
    background: #a3c4a8;
    color: #2d523a;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
}

.staff-page .staff-table .badge.bg-secondary {
    background: #e0d0d8;
    color: #6b4e5e;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
}

.staff-page .action-buttons {
    display: flex;
    gap: 8px;
}

.staff-page .action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.staff-page .action-btn.edit {
    background: #b8d8e3;
    color: #2c5a6e;
}

.staff-page .action-btn.toggle {
    background: #f3d9b1;
    color: #7a5a3e;
}

.staff-page .action-btn.delete {
    background: #e4a8a8;
    color: #7a3e3e;
}

.staff-page .action-btn:hover {
    transform: translateY(-2px);
}

.staff-page .services-grid-staff {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
    padding: 5px;
    border: 1px solid #f0eae6;
    border-radius: 10px;
}

.staff-page .service-checkbox-staff {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #fef9f7;
    border-radius: 8px;
    border: 1px solid #f0eae6;
    cursor: pointer;
    transition: all 0.2s;
}

.staff-page .service-checkbox-staff:hover {
    background: #f5e6f0;
    border-color: #d4a5c2;
}

.staff-page .service-checkbox-staff input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.staff-page .service-checkbox-staff span {
    font-size: 13px;
    color: #4a3a42;
}

.staff-page .permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.staff-page .perm-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: normal;
    font-size: 13px;
}

.staff-page .perm-checkbox input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.staff-page .form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.staff-page .form-row .form-group {
    flex: 1;
    min-width: 150px;
    margin-bottom: 0;
}

.staff-page .form-group {
    margin-bottom: 15px;
}

.staff-page .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #6b4e5e;
    font-size: 13px;
}

.staff-page .form-control {
    width: 100%;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #e0d0d8;
}

.staff-page .form-checkbox-group {
    margin-bottom: 15px;
}

.staff-page .form-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
}

.staff-page .form-checkbox-group input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.staff-page .modal-lg {
    max-width: 800px;
}

.staff-page .text-muted {
    color: #999;
    font-size: 11px;
    margin-top: 4px;
    display: block;
}

.staff-page .pagination-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.staff-page .pagination {
    display: flex;
    gap: 5px;
    list-style: none;
    padding: 0;
}

.staff-page .page-link {
    padding: 6px 12px;
    border-radius: 8px;
    background: white;
    border: 1px solid #e0d0d8;
    color: #6b4e5e;
    text-decoration: none;
}

.staff-page .page-item.active .page-link {
    background: #d4a5c2;
    color: white;
    border-color: #b5839e;
}

.staff-page .text-center {
    text-align: center;
}
/* 
<!-- ========================================================== -->
<!-- استایل‌ها -->
<!-- ========================================================== -->
*/
.create-appointment-page{ padding:0; }
.page-header-modern{ display:flex; justify-content:space-between; align-items:center; margin-bottom:30px; padding:20px 25px; background:linear-gradient(135deg,#f5e6f0 0%,#fef3f0 100%); border-radius:20px; flex-wrap:wrap; gap:15px; }
.header-content{ display:flex; align-items:center; gap:18px; }
.header-icon{ width:50px; height:50px; background:white; border-radius:14px; display:flex; align-items:center; justify-content:center; font-size:22px; color:#d4a5c2; box-shadow:0 4px 12px rgba(0,0,0,0.05); }
.header-content h2{ margin:0; font-size:22px; color:#4a3a42; }
.header-sub{ margin:3px 0 0 0; color:#999; font-size:13px; }
.header-hint{ margin:5px 0 0 0; font-size:12px; color:#a3c4a8; }
.header-hint i{ margin-left:5px; }

.btn-back{ background:white; color:#6b4e5e; padding:8px 18px; border-radius:30px; text-decoration:none; font-size:13px; display:flex; align-items:center; gap:8px; transition:all 0.2s; box-shadow:0 2px 8px rgba(0,0,0,0.05); }
.btn-back:hover{ background:#f5e6f0; transform:translateX(-3px); }

.form-card{ background:white; border-radius:24px; box-shadow:0 4px 20px rgba(0,0,0,0.06); overflow:hidden; margin-bottom:30px; }
.form-card-body{ padding:30px; }

.form-section{ margin-bottom:30px; padding-bottom:25px; border-bottom:1px solid #f0eae6; }
.form-section:last-child{ border-bottom:none; margin-bottom:0; padding-bottom:0; }

.section-label{ display:flex; align-items:center; gap:12px; margin-bottom:18px; }
.step-number{ width:28px; height:28px; background:#d4a5c2; color:white; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:bold; flex-shrink:0; }
.step-title{ font-weight:600; font-size:15px; color:#4a3a42; }
.step-hint{ font-size:12px; color:#999; margin-right:5px; }

.form-control-modern{ width:100%; padding:12px 16px; border-radius:14px; border:1px solid #e8e0e4; transition:all 0.25s; font-size:14px; background:white; }
.form-control-modern:focus{ outline:none; border-color:#d4a5c2; box-shadow:0 0 0 4px rgba(212,165,194,0.12); }
.form-control-modern:disabled{ background:#f5f0f2; color:#999; cursor:not-allowed; }
.field-label{ display:block; font-size:13px; font-weight:600; color:#6b4e5e; margin-bottom:8px; }
.field-label i{ margin-left:8px; color:#d4a5c2; }
.text-muted{ color:#999; font-size:12px; }
.required{ color:#e4a8a8; }

/* ===== جستجوی مشتری ===== */
.customer-search-wrapper{ position:relative; }
.input-group-modern{ display:flex; gap:10px; align-items:center; position:relative; }
.search-icon{ position:absolute; right:16px; top:50%; transform:translateY(-50%); color:#bbb; font-size:14px; z-index:2; }
.input-group-modern .form-control-modern{ padding-right:44px; flex:1; }
.btn-quick-add{ width:44px; height:44px; background:linear-gradient(135deg,#a3c4a8,#8bae91); color:white; border:none; border-radius:14px; cursor:pointer; transition:all 0.25s; display:flex; align-items:center; justify-content:center; font-size:18px; flex-shrink:0; }
.btn-quick-add:hover{ transform:scale(1.04); box-shadow:0 4px 12px rgba(163,196,168,0.35); }
.customer-selected-info{ margin-top:10px; padding:10px 14px; background:#f5e6f0; border-radius:12px; font-size:13px; color:#6b4e5e; display:none; }
.customer-results-dropdown{ position:absolute; top:calc(100% + 8px); left:0; right:0; background:white; border:1px solid #e8e0e4; border-radius:14px; max-height:260px; overflow-y:auto; z-index:1000; box-shadow:0 8px 30px rgba(0,0,0,0.12); }
.customer-result-item{ padding:12px 16px; cursor:pointer; border-bottom:1px solid #f0eae6; display:flex; justify-content:space-between; align-items:center; }
.customer-result-item:hover{ background:#f5e6f0; }
.customer-result-item .name{ font-weight:600; color:#4a3a42; }
.customer-result-item .phone{ font-size:12px; color:#999; }

.customer-summary{ margin-top:12px; padding:14px 18px; background:#f5e6f0; border-radius:14px; border:1px solid #e8d5e4; }
.summary-stats{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.stat-item{ display:flex; align-items:center; gap:8px; }
.stat-icon{ color:#d4a5c2; font-size:14px; }
.stat-label{ font-size:12px; color:#6b4e5e; }
.stat-value{ font-weight:700; font-size:14px; color:#4a3a42; }
.stat-unit{ font-size:11px; color:#999; margin-right:2px; }
.stat-divider{ width:1px; height:24px; background:#e8d5e4; }

/* ===== خدمات ===== */
.services-grid-modern{ display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:12px; }
.service-card-modern{ position:relative; padding:14px 16px; background:#fef9f7; border:2px solid #f0eae6; border-radius:14px; cursor:pointer; transition:all 0.25s; display:flex; align-items:center; gap:12px; }
.service-card-modern:hover{ border-color:#d4a5c2; background:#faf0f5; }
.service-card-modern input{ display:none; }
.service-card-modern input:checked ~ .service-card-content .service-meta{ color:#a3c4a8; }
.service-card-modern .service-check{ width:24px; height:24px; border-radius:50%; background:#a3c4a8; color:white; display:flex; align-items:center; justify-content:center; font-size:12px; opacity:0; transition:all 0.25s; flex-shrink:0; }
.service-card-modern input:checked + .service-card-content + .service-check{ opacity:1; }
.service-card-modern input:checked ~ .service-check{ opacity:1; }
.service-card-content{ flex:1; }
.service-name{ display:block; font-weight:600; color:#4a3a42; font-size:14px; }
.service-meta{ display:block; font-size:12px; color:#999; margin-top:3px; }

.service-card-all.hidden{ display:none; }

/* ===== پرسنل و خدمات مرتبط ===== */
.staff-select-wrapper{ position:relative; }
.staff-services-container{ margin-top:15px; padding:15px; background:#faf0f5; border-radius:14px; border:1px solid #e8d5e4; }
.staff-services-header{ display:flex; align-items:center; gap:10px; font-weight:600; color:#6b4e5e; margin-bottom:12px; font-size:14px; }
.staff-services-header i{ color:#d4a5c2; }

.services-hint{ margin-top:8px; }
.services-hint small{ color:#999; font-size:12px; }

/* ===== تاریخ و ساعت ===== */
.datetime-grid{ display:grid; grid-template-columns:1fr 2fr; gap:20px; }
.time-slots-modern{ display:grid; grid-template-columns:repeat(auto-fill,minmax(75px,1fr)); gap:8px; max-height:180px; overflow-y:auto; padding:4px 0; }
.time-slot-modern{ background:white; border:1px solid #e8e0e4; border-radius:30px; padding:8px 6px; font-size:13px; cursor:pointer; transition:all 0.2s; text-align:center; color:#6b4e5e; }
.time-slot-modern:hover{ background:#f5e6f0; border-color:#d4a5c2; }
.time-slot-modern.selected{ background:#d4a5c2; color:white; border-color:#b5839e; }
.conflict-warning{ margin-top:12px; padding:10px 16px; background:#fff8e1; border-right:3px solid #f3d9b1; border-radius:10px; font-size:13px; color:#7a5a3e; display:flex; align-items:center; gap:10px; }

/* ===== Overbooking ===== */
.overbooking-toggle{ display:flex; align-items:center; gap:12px; margin-top:18px; padding:12px 16px; background:#fef9f7; border-radius:14px; border:1px solid #f0eae6; flex-wrap:wrap; }
.toggle-switch{ position:relative; width:44px; height:24px; flex-shrink:0; }
.toggle-switch input{ opacity:0; width:0; height:0; }
.toggle-slider{ position:absolute; cursor:pointer; top:0; left:0; right:0; bottom:0; background:#e8e0e4; border-radius:30px; transition:0.3s; }
.toggle-slider::before{ content:""; position:absolute; height:18px; width:18px; left:3px; bottom:3px; background:white; border-radius:50%; transition:0.3s; }
.toggle-switch input:checked + .toggle-slider{ background:#a3c4a8; }
.toggle-switch input:checked + .toggle-slider::before{ transform:translateX(20px); }
.toggle-label{ font-size:13px; color:#6b4e5e; }
.toggle-hint{ font-size:11px; color:#999; }

/* ===== جمع‌بندی ===== */
.summary-modern{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; padding:20px 25px; background:linear-gradient(135deg,#faf0f5,#fef9f7); border-radius:16px; margin-top:10px; }
.summary-item{ text-align:center; }
.summary-item.highlight{ background:white; padding:10px 15px; border-radius:14px; box-shadow:0 2px 8px rgba(0,0,0,0.05); }
.summary-divider{ width:1px; background:#e8dce2; }
.summary-label{ display:block; font-size:12px; color:#999; margin-bottom:5px; }
.summary-value{ display:block; font-size:20px; font-weight:700; color:#4a3a42; }
.summary-value small{ font-size:12px; font-weight:400; color:#999; }
.summary-item.highlight .summary-value{ color:#d4a5c2; }

/* ===== دکمه‌ها ===== */
.form-actions-modern{ display:flex; justify-content:center; gap:16px; margin-top:30px; padding-top:20px; border-top:1px solid #f0eae6; }
.btn-submit{ background:linear-gradient(135deg,#d4a5c2,#b5839e); color:white; border:none; padding:12px 40px; border-radius:40px; font-size:16px; font-weight:600; cursor:pointer; transition:all 0.25s; display:inline-flex; align-items:center; gap:10px; }
.btn-submit:hover{ transform:translateY(-3px); box-shadow:0 6px 20px rgba(212,165,194,0.35); }
.btn-cancel{ background:#f0eae6; color:#6b4e5e; border:none; padding:12px 30px; border-radius:40px; font-size:15px; font-weight:600; cursor:pointer; transition:all 0.2s; text-decoration:none; display:inline-flex; align-items:center; gap:10px; }
.btn-cancel:hover{ background:#e4d8dc; }
.btn-primary{ background:#d4a5c2; color:white; border:none; padding:8px 20px; border-radius:30px; cursor:pointer; transition:all 0.2s; }
.btn-primary:hover{ background:#b5839e; }
.btn-secondary{ background:#f0eae6; color:#6b4e5e; border:none; padding:8px 20px; border-radius:30px; cursor:pointer; transition:all 0.2s; }
.btn-secondary:hover{ background:#e4d8dc; }

.form-hint{ text-align:center; padding:12px; background:#faf0f5; border-radius:12px; }
.form-hint i{ color:#d4a5c2; margin-left:8px; }
.form-hint a{ color:#d4a5c2; text-decoration:none; font-weight:600; }
.form-hint a:hover{ text-decoration:underline; }

/* ===== ریسپانسیو ===== */
@media (max-width:992px){ 
    .datetime-grid{ grid-template-columns:1fr; } 
    .summary-modern{ grid-template-columns:1fr 1fr; gap:12px; } 
    .summary-divider{ display:none; } 
}
@media (max-width:768px){ 
    .page-header-modern{ flex-direction:column; text-align:center; } 
    .header-content{ flex-direction:column; } 
    .form-card-body{ padding:20px; } 
    .services-grid-modern{ grid-template-columns:1fr; } 
    .summary-modern{ grid-template-columns:1fr 1fr; } 
    .summary-stats{ flex-direction:column; align-items:flex-start; gap:6px; } 
    .stat-divider{ display:none; } 
    .form-actions-modern{ flex-direction:column; align-items:center; } 
    .btn-submit,.btn-cancel{ width:100%; justify-content:center; } 
    .time-slots-modern{ grid-template-columns:repeat(auto-fill,minmax(65px,1fr)); } 
}
@media (max-width:480px){ 
    .summary-modern{ grid-template-columns:1fr 1fr; gap:8px; padding:15px; } 
    .summary-value{ font-size:16px; } 
}

/* ============================================================ */
/* استایل‌های اصلی */
/* ============================================================ */

.appointments-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-card {
    margin-bottom: 20px;
    border-radius: 16px;
    background: white;
}

.filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 6px 16px;
    border-radius: 30px;
    background: #f0eae6;
    color: #6b4e5e;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.filter-btn.active,
.filter-btn:hover {
    background: #d4a5c2;
    color: white;
    border-color: #b5839e;
}

.filter-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 120px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    color: #6b4e5e;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #e0d0d8;
    font-size: 13px;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #d4a5c2;
    box-shadow: 0 0 0 3px rgba(212,165,194,0.15);
}

.btn {
    padding: 8px 20px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: #d4a5c2;
    color: white;
}

.btn-primary:hover {
    background: #b5839e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212,165,194,0.3);
}

.btn-secondary {
    background: #f0eae6;
    color: #6b4e5e;
}

.btn-secondary:hover {
    background: #e4d8dc;
}

/* ============================================================ */
/* جدول دسکتاپ */
/* ============================================================ */

.desktop-view {
    display: block;
}

.table-container {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid #f0eae6;
}

.appointments-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 1000px;
}

.appointments-table th {
    background: #faf0f5;
    padding: 12px 14px;
    text-align: right;
    font-weight: 600;
    color: #6b4e5e;
    font-size: 12px;
    border-bottom: 2px solid #f0eae6;
    white-space: nowrap;
}

.appointments-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0eae6;
    vertical-align: middle;
    font-size: 13px;
}

.appointments-table tbody tr:hover {
    background: #faf0f5;
}

.customer-name {
    font-weight: 600;
    color: #4a3a42;
}

.customer-phone {
    font-size: 11px;
    color: #999;
}

.services-summary {
    cursor: pointer;
    border-bottom: 1px dashed #d4a5c2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}

.services-summary i {
    font-size: 12px;
    color: #d4a5c2;
}

.services-tooltip {
    display: none;
    position: fixed;
    background: white;
    border: 1px solid #e0d0d8;
    border-radius: 12px;
    padding: 12px 16px;
    min-width: 220px;
    max-width: 300px;
    z-index: 9999;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    pointer-events: auto;
}

.tooltip-header {
    font-weight: 600;
    padding-bottom: 6px;
    margin-bottom: 6px;
    border-bottom: 1px solid #f0eae6;
    font-size: 13px;
    color: #6b4e5e;
}

.tooltip-item {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 3px 0;
    color: #4a3a42;
}

.tooltip-item span:last-child {
    font-weight: 600;
    color: #6b4e5e;
}

.tooltip-divider {
    height: 1px;
    background: #f0eae6;
    margin: 5px 0;
}

.tooltip-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 2px 0;
}

.tooltip-row.total {
    font-weight: 700;
    color: #2d523a;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid #f0eae6;
}

.datetime-cell .date {
    font-weight: 600;
    font-size: 13px;
}

.datetime-cell .weekday {
    font-size: 10px;
    color: #999;
}

.datetime-cell .time {
    font-size: 12px;
    color: #d4a5c2;
    font-weight: 600;
}

.price-cell {
    font-weight: 600;
    color: #2d523a;
}

.price-cell.payable {
    color: #d4a5c2;
    font-size: 15px;
}

.price-cell span {
    font-size: 10px;
    font-weight: 400;
    color: #999;
}

.price-cell .text-muted {
    font-size: 10px;
    color: #999;
}

/* ============================================================ */
/* وضعیت */
/* ============================================================ */

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.status-pending {
    background: #f3d9b1;
    color: #7a5a3e;
}

.status-confirmed {
    background: #b8d8e3;
    color: #2c5a6e;
}

.status-completed {
    background: #a3c4a8;
    color: #2d523a;
}

.status-cancelled {
    background: #e4a8a8;
    color: #7a3e3e;
}

/* ============================================================ */
/* دکمه‌های عملیات */
/* ============================================================ */

.action-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.action-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 12px;
}

.action-btn:hover {
    transform: translateY(-2px);
}

.action-btn.deposit {
    background: #a3c4a8;
    color: #2d523a;
}

.action-btn.edit-services {
    background: #b8d8e3;
    color: #2c5a6e;
}

.action-btn.complete {
    background: #d4a5c2;
    color: white;
}

.action-btn.cancel {
    background: #e4a8a8;
    color: #7a3e3e;
}

.action-btn.details {
    background: #e8e0e4;
    color: #6b4e5e;
}

.action-btn.print {
    background: #f3d9b1;
    color: #7a5a3e;
}

/* ============================================================ */
/* صفحه‌بندی */
/* ============================================================ */

.pagination-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 5px;
    list-style: none;
    padding: 0;
    flex-wrap: wrap;
}

.page-link {
    padding: 6px 14px;
    border-radius: 8px;
    background: white;
    border: 1px solid #e0d0d8;
    color: #6b4e5e;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.page-link:hover {
    background: #f5e6f0;
    border-color: #d4a5c2;
}

.page-item.active .page-link {
    background: #d4a5c2;
    color: white;
    border-color: #b5839e;
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

.text-center {
    text-align: center;
}

/* ============================================================ */
/* مودال جزئیات */
/* ============================================================ */

#detailsModal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

#detailsModal .modal-header {
    background: linear-gradient(135deg, #f5e6f0, #fef3f0);
    border-radius: 16px 16px 0 0;
    border-bottom: none;
    padding: 18px 24px;
}

#detailsModal .modal-header .modal-title {
    font-weight: 700;
    color: #4a3a42;
}

#detailsModal .modal-header .modal-title i {
    color: #d4a5c2;
    margin-left: 8px;
}

#detailsModal .modal-body {
    padding: 20px 24px 10px 24px;
}

#detailsModal .modal-footer {
    border-top: 1px solid #f0eae6;
    padding: 16px 24px 20px 24px;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-section {
    margin-bottom: 16px;
}

.detail-section .section-title {
    font-weight: 600;
    color: #6b4e5e;
    font-size: 14px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0eae6;
}

.detail-section .section-title i {
    margin-left: 8px;
    color: #d4a5c2;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    border-bottom: 1px solid #f5f0f2;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .label {
    color: #6b4e5e;
    font-weight: 500;
}

.detail-row .label i {
    margin-left: 8px;
    color: #d4a5c2;
    width: 18px;
}

.detail-row .value {
    color: #4a3a42;
    font-weight: 600;
}

.detail-row .value .phone {
    font-weight: 400;
    color: #999;
    font-size: 12px;
}

.detail-row.final-amount .value {
    color: #2d523a;
    font-size: 16px;
}

.detail-row.payable .value {
    color: #b5839e;
    font-size: 16px;
}

.detail-row.extra .value {
    color: #e4a8a8;
}

.detail-row.discount .value {
    color: #a3c4a8;
}

.services-detail-list {
    background: #fef9f7;
    border-radius: 10px;
    padding: 6px 12px;
    border: 1px solid #f0eae6;
}

.service-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed #f0eae6;
    font-size: 13px;
}

.service-detail-item:last-child {
    border-bottom: none;
}

.service-detail-item .service-name {
    color: #4a3a42;
}

.service-detail-item .service-price {
    color: #6b4e5e;
    font-weight: 600;
}

.services-total {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px 4px 12px;
    font-weight: 700;
    font-size: 14px;
    color: #2d523a;
    border-top: 2px solid #e0d0d8;
    margin-top: 4px;
}

.services-total .total-price {
    color: #a3c4a8;
}

.deposit-method {
    font-size: 11px;
    font-weight: 400;
    color: #999;
}

/* دکمه‌های مودال جزئیات */
.btn-deposit {
    background: #a3c4a8;
    color: #2d523a;
    border: none;
}

.btn-edit-services {
    background: #b8d8e3;
    color: #2c5a6e;
    border: none;
}

.btn-complete {
    background: #d4a5c2;
    color: white;
    border: none;
}

.btn-cancel {
    background: #e4a8a8;
    color: #7a3e3e;
    border: none;
}

.btn-print {
    background: #f3d9b1;
    color: #7a5a3e;
    border: none;
}

.btn-sm {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ============================================================ */
/* استایل‌های موبایل - کارت‌های زیبا */
/* ============================================================ */

.mobile-view {
    display: none;
    padding: 0 5px;
}

.appointment-card {
    background: white;
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: all 0.2s;
    border: 1px solid #f0eae6;
}

.appointment-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}

.appointment-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(135deg, #faf0f5, #fef9f7);
    border-bottom: 1px solid #f0eae6;
}

.appointment-card .customer-name {
    font-weight: 700;
    color: #4a3a42;
    font-size: 15px;
}

.appointment-card .customer-phone {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.appointment-card .card-body {
    padding: 14px 16px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.info-item {
    display: flex;
    flex-direction: column;
    padding: 8px 10px;
    background: #fef9f7;
    border-radius: 10px;
    border: 1px solid #f5f0f2;
}

.info-item i {
    color: #d4a5c2;
    font-size: 14px;
    margin-bottom: 4px;
}

.info-item .info-label {
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item .info-value {
    font-size: 13px;
    font-weight: 600;
    color: #4a3a42;
    margin-top: 2px;
}

.info-item.highlight {
    background: linear-gradient(135deg, #f5f0f2, #fef9f7);
    border-color: #d4a5c2;
}

.info-item.highlight .info-value {
    color: #d4a5c2;
}

.info-item.highlight-payable {
    background: linear-gradient(135deg, #f5e6f0, #fef9f7);
    border-color: #b5839e;
}

.info-item.highlight-payable .info-value {
    color: #b5839e;
    font-size: 15px;
}

.services-preview {
    margin-top: 12px;
    padding: 8px 12px;
    background: #faf0f5;
    border-radius: 10px;
    font-size: 12px;
    color: #6b4e5e;
    border: 1px solid #f0eae6;
}

.services-preview .services-label {
    font-weight: 600;
    color: #6b4e5e;
}

.services-preview .services-label i {
    color: #d4a5c2;
    margin-left: 4px;
}

.services-preview .more-services {
    color: #d4a5c2;
    font-size: 11px;
}

.appointment-card .card-footer {
    padding: 10px 16px;
    border-top: 1px solid #f0eae6;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
    background: #fefaf8;
}

.btn-details {
    background: #f5e6f0;
    color: #6b4e5e;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-details:hover {
    background: #e4d0dc;
    transform: translateY(-1px);
}

.btn-details i {
    font-size: 12px;
}

.mobile-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.mobile-actions .btn-sm {
    padding: 6px 10px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-actions .btn-sm:hover {
    transform: translateY(-2px);
}

.mobile-actions .btn-deposit {
    background: #a3c4a8;
    color: #2d523a;
}

.mobile-actions .btn-edit-services {
    background: #b8d8e3;
    color: #2c5a6e;
}

.mobile-actions .btn-complete {
    background: #d4a5c2;
    color: white;
}

.mobile-actions .btn-cancel {
    background: #e4a8a8;
    color: #7a3e3e;
}

.mobile-actions .btn-print {
    background: #f3d9b1;
    color: #7a5a3e;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-state i {
    font-size: 48px;
    color: #e0d0d8;
    margin-bottom: 16px;
    display: block;
}

.empty-state p {
    font-size: 16px;
    margin: 0;
}

/* ============================================================ */
/* ریسپانسیو */
/* ============================================================ */

@media (max-width: 992px) {
    .filter-buttons {
        gap: 6px;
    }
    .filter-btn {
        padding: 4px 12px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .desktop-view {
        display: none !important;
    }
    .mobile-view {
        display: block !important;
    }
    
    .filter-buttons {
        justify-content: center;
        gap: 5px;
    }
    .filter-btn {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .filter-form {
        flex-direction: column;
    }
    .filter-group {
        width: 100%;
        min-width: unset;
    }
    .filter-group .form-control {
        width: 100%;
    }
    
    .info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .info-item {
        padding: 6px 10px;
    }
    .info-item .info-value {
        font-size: 12px;
    }
    
    .appointment-card .card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .btn-details {
        width: 100%;
        justify-content: center;
    }
    .mobile-actions {
        justify-content: center;
    }
    
    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .page-header .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .info-item .info-value {
        font-size: 11px;
    }
    
    .appointment-card .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .appointment-card .card-header .status-badge {
        align-self: flex-start;
    }
    
    .mobile-actions {
        gap: 4px;
    }
    .mobile-actions .btn-sm {
        padding: 5px 8px;
        font-size: 11px;
    }
    
    .filter-buttons {
        gap: 4px;
    }
    .filter-btn {
        padding: 3px 8px;
        font-size: 10px;
    }
}
/* ============================================
   finance/reports.php - گزارشات مالی
   ============================================ */

.reports-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.reports-page .page-header h2 {
    margin: 0;
}

.reports-page .text-muted {
    color: #999;
    font-size: 13px;
    margin-top: 5px;
}

.reports-page .date-badge {
    background: white;
    padding: 6px 15px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.filter-card .card-body {
    padding: 20px;
}

.period-group {
    margin-bottom: 15px;
}

.period-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.period-btn {
    padding: 6px 16px;
    border-radius: 30px;
    background: #f0eae6;
    color: #6b4e5e;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
}

.period-btn.active,
.period-btn:hover {
    background: #d4a5c2;
    color: white;
}

.custom-date-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    align-items: flex-end;
}

.custom-date-row .form-group {
    flex: 1;
    min-width: 150px;
    margin-bottom: 0;
}

.custom-date-row .form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    color: #6b4e5e;
}

.filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* ============================================================ */
/* تب‌ها */
/* ============================================================ */
.report-tabs {
    display: flex;
    gap: 5px;
    border-bottom: 2px solid #f0eae6;
    margin-bottom: 25px;
    list-style: none;
    padding: 0;
    flex-wrap: wrap;
}

.tab-item {
    margin-bottom: -2px;
}

.tab-item a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #6b4e5e;
    border-radius: 10px 10px 0 0;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 14px;
}

.tab-item a i {
    margin-left: 8px;
    color: #d4a5c2;
}

.tab-item.active a {
    background: #faf0f5;
    border: 2px solid #f0eae6;
    border-bottom-color: #faf0f5;
    color: #d4a5c2;
}

.tab-item a:hover {
    background: #f5e6f0;
}

/* ============================================================ */
/* محتوای گزارش‌ها */
/* ============================================================ */
.report-content {
    display: none;
}

.report-content.active {
    display: block;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-card .stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-card.income .stat-icon {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #a3c4a8;
}

.stat-card.expense .stat-icon {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: #e4a8a8;
}

.stat-card.profit.positive .stat-icon {
    background: linear-gradient(135deg, #e3f2fd, #bbdef5);
    color: #b8d8e3;
}

.stat-card.profit.negative .stat-icon {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: #e4a8a8;
}

.stat-card .stat-info {
    flex: 1;
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #4a3a42;
    margin-bottom: 5px;
}

.stat-card .stat-value span {
    font-size: 12px;
    font-weight: normal;
    color: #999;
}

.stat-card .stat-label {
    color: #999;
    font-size: 12px;
}

/* ============================================================ */
/* جزئیات سود و زیان */
/* ============================================================ */
.row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.col-md-6 {
    flex: 1;
    min-width: 280px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0eae6;
}

.detail-item.total {
    font-weight: 700;
    color: #2d523a;
    border-bottom: none;
}

.detail-item.grand-total {
    font-weight: 700;
    color: #d4a5c2;
    border-bottom: none;
    font-size: 16px;
    padding-top: 12px;
}

/* ============================================================ */
/* جدول عملکرد پرسنل */
/* ============================================================ */
.staff-report-table {
    width: 100%;
    border-collapse: collapse;
}

.staff-report-table th {
    background: #faf0f5;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    color: #6b4e5e;
    font-size: 13px;
}

.staff-report-table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #f0eae6;
    font-size: 13px;
}

.staff-report-table .staff-name {
    text-align: right;
    font-weight: 600;
    color: #4a3a42;
}

.staff-report-table .amount {
    font-weight: 600;
    color: #2d523a;
}

.staff-report-table .commission {
    color: #d4a5c2;
    font-weight: 600;
}

.staff-report-table .deposit {
    color: #f3d9b1;
    font-weight: 600;
}

.staff-report-table .total-row {
    background: #faf0f5;
    font-weight: 700;
}

/* ============================================================ */
/* هزینه‌ها */
/* ============================================================ */
.expenses-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.expense-item {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.expense-name {
    width: 150px;
    font-weight: 600;
    color: #6b4e5e;
}

.expense-amount {
    width: 150px;
    color: #e4a8a8;
    font-weight: 600;
}

.expense-bar {
    flex: 1;
    height: 8px;
    background: #f0eae6;
    border-radius: 10px;
    overflow: hidden;
    min-width: 100px;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #e4a8a8, #d4a5c2);
    border-radius: 10px;
}

/* ============================================================ */
/* خدمات پرطرفدار */
/* ============================================================ */
.services-table {
    width: 100%;
    border-collapse: collapse;
}

.services-table th {
    background: #faf0f5;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    color: #6b4e5e;
    font-size: 13px;
}

.services-table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #f0eae6;
}

.services-table .service-name {
    text-align: right;
    font-weight: 600;
    color: #4a3a42;
}

.services-table .amount {
    font-weight: 600;
    color: #2d523a;
}

/* ============================================================ */
/* فوتر اطلاعات */
/* ============================================================ */
.info-footer {
    background: #fef9f7;
    border-radius: 16px;
    padding: 12px 20px;
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #6b4e5e;
}

.info-footer i {
    color: #d4a5c2;
}

.separator {
    color: #e0d0d8;
}

/* ============================================================ */
/* ریسپانسیو */
/* ============================================================ */
@media (max-width: 992px) {
    .report-tabs {
        justify-content: center;
    }
    .tab-item a {
        padding: 8px 14px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .period-buttons {
        justify-content: center;
    }
    .custom-date-row {
        flex-direction: column;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .row {
        flex-direction: column;
    }
    .col-md-6 {
        min-width: 100%;
    }
    .expense-name {
        width: 100%;
    }
    .expense-amount {
        width: auto;
    }
    .staff-report-table {
        min-width: 700px;
    }
    .services-table {
        min-width: 500px;
    }
    .reports-page .page-header {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .tab-item a {
        padding: 6px 10px;
        font-size: 12px;
    }
    .period-btn {
        padding: 4px 10px;
        font-size: 11px;
    }
    .stat-card .stat-value {
        font-size: 20px;
    }
    .info-footer {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
}
/* ============================================
   dashboard.php - بهبودهای جدید
   ============================================ */

/* کارت‌های آماری */
.dashboard-page .stat-card.staff .stat-icon {
    background: linear-gradient(135deg, #f5e6f0, #e8d5e4);
    color: #d4a5c2;
}

.dashboard-page .stat-card.services .stat-icon {
    background: linear-gradient(135deg, #e3f2fd, #bbdef5);
    color: #b8d8e3;
}

.dashboard-page .stat-card.warning .stat-icon {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    color: #f3d9b1;
}

/* کارت‌های مالی */
.dashboard-page .finance-stats {
    margin-bottom: 25px;
}

.dashboard-page .stat-card.income .stat-icon {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #a3c4a8;
}

.dashboard-page .stat-card.expense .stat-icon {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: #e4a8a8;
}

.dashboard-page .stat-card.profit.positive .stat-icon {
    background: linear-gradient(135deg, #e3f2fd, #bbdef5);
    color: #b8d8e3;
}

.dashboard-page .stat-card.profit.negative .stat-icon {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: #e4a8a8;
}

/* دو ستون */
.dashboard-page .dashboard-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

/* نوبت‌های امروز */
.dashboard-page .today-appointments {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dashboard-page .appointment-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #fef9f7;
    border-radius: 12px;
    transition: all 0.2s;
}

.dashboard-page .appointment-item:hover {
    background: #fff5f0;
}

.dashboard-page .appointment-time {
    min-width: 55px;
    font-weight: 700;
    color: #d4a5c2;
    font-size: 14px;
}

.dashboard-page .appointment-info {
    flex: 1;
}

.dashboard-page .appointment-customer {
    font-weight: 600;
    color: #4a3a42;
}

.dashboard-page .appointment-staff {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.dashboard-page .appointment-staff i {
    color: #d4a5c2;
}

.dashboard-page .appointment-phone {
    direction: ltr;
    font-size: 11px;
    color: #bbb;
}

.dashboard-page .appointment-status {
    min-width: 70px;
}

.dashboard-page .appointment-link {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4a5c2;
    text-decoration: none;
    transition: all 0.2s;
}

.dashboard-page .appointment-link:hover {
    background: #d4a5c2;
    color: white;
}

.dashboard-page .appointment-item.more {
    background: transparent;
    justify-content: center;
    padding: 5px;
}

.dashboard-page .appointment-item.more .btn-link {
    color: #d4a5c2;
    font-size: 13px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dashboard-page .appointment-item.more .btn-link:hover {
    color: #b5839e;
}

/* خدمات پرطرفدار */
.dashboard-page .top-services {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dashboard-page .service-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.dashboard-page .service-rank {
    width: 30px;
    height: 30px;
    background: #f5e6f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: #d4a5c2;
    flex-shrink: 0;
}

.dashboard-page .service-info {
    flex: 1;
    min-width: 100px;
}

.dashboard-page .service-name {
    font-weight: 600;
    color: #4a3a42;
}

.dashboard-page .service-count {
    font-size: 11px;
    color: #999;
}

.dashboard-page .service-bar {
    flex: 2;
    height: 6px;
    background: #f0eae6;
    border-radius: 10px;
    overflow: hidden;
    min-width: 60px;
}

.dashboard-page .service-bar .bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4a5c2, #a3c4a8);
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* مشتریان جدید */
.dashboard-page .recent-customers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dashboard-page .customer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #fef9f7;
    border-radius: 12px;
    transition: all 0.2s;
}

.dashboard-page .customer-item:hover {
    background: #fff5f0;
}

.dashboard-page .customer-icon {
    width: 36px;
    height: 36px;
    background: #f5e6f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4a5c2;
    font-size: 20px;
}

.dashboard-page .customer-info {
    flex: 1;
}

.dashboard-page .customer-name {
    font-weight: 600;
    color: #4a3a42;
}

.dashboard-page .customer-phone {
    font-size: 12px;
    color: #999;
    direction: ltr;
}

.dashboard-page .customer-date {
    font-size: 11px;
    color: #bbb;
}

.dashboard-page .btn-link {
    color: #d4a5c2;
    text-decoration: none;
    font-size: 13px;
}

.dashboard-page .btn-link:hover {
    color: #b5839e;
    text-decoration: underline;
}

/* ============================================================ */
/* ریسپانسیو */
/* ============================================================ */

@media (max-width: 992px) {
    .dashboard-page .dashboard-two-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .dashboard-page .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .dashboard-page .finance-stats {
        grid-template-columns: 1fr 1fr;
    }
    .dashboard-page .appointment-item {
        flex-wrap: wrap;
        gap: 6px;
    }
    .dashboard-page .appointment-time {
        min-width: 45px;
        font-size: 12px;
    }
    .dashboard-page .appointment-status {
        min-width: 60px;
        font-size: 11px;
    }
    .dashboard-page .appointment-link {
        width: 100%;
        margin-top: 4px;
    }
    .dashboard-page .service-item {
        flex-wrap: wrap;
    }
    .dashboard-page .service-bar {
        flex: 1 1 100%;
    }
    .dashboard-page .customer-item {
        flex-wrap: wrap;
    }
    .dashboard-page .customer-date {
        width: 100%;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .dashboard-page .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .dashboard-page .stat-card {
        padding: 12px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    .dashboard-page .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .dashboard-page .stat-info h3 {
        font-size: 18px;
    }
    .dashboard-page .finance-stats {
        grid-template-columns: 1fr 1fr;
    }
}
/* ============================================
   sales/leads.php - مدیریت لیدها
   ============================================ */

.leads-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.leads-page .filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.leads-page .filter-form .form-control,
.leads-page .filter-form select {
    width: auto;
    min-width: 120px;
}

.leads-page .filter-form .btn {
    padding: 6px 15px;
}

.leads-page .bulk-assign-form {
    margin-bottom: 15px;
}

.leads-page .bulk-assign-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.leads-page .bulk-assign-row select {
    width: 250px;
}

.leads-page .leads-table {
    width: 100%;
    background: white;
    border-radius: 16px;
    border-collapse: collapse;
}

.leads-page .leads-table th {
    background: #faf0f5;
    padding: 10px 8px;
    text-align: right;
    font-size: 13px;
}

.leads-page .leads-table td {
    padding: 8px;
    border-bottom: 1px solid #f0eae6;
    font-size: 13px;
}

.leads-page .lead-name {
    font-weight: 600;
}

.leads-page .status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
}

.leads-page .status-secondary { background: #e0d0d8; color: #6b4e5e; }
.leads-page .status-info { background: #b8d8e3; color: #2c5a6e; }
.leads-page .status-primary { background: #d4a5c2; color: white; }
.leads-page .status-warning { background: #f3d9b1; color: #7a5a3e; }
.leads-page .status-danger { background: #e4a8a8; color: #7a3e3e; }
.leads-page .status-success { background: #a3c4a8; color: #2d523a; }

.leads-page .action-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.leads-page .action-btn.view {
    background: #b8d8e3;
    color: #2c5a6e;
}

.leads-page .action-btn.edit {
    background: #f3d9b1;
    color: #7a5a3e;
}

.leads-page .action-btn:hover {
    transform: translateY(-2px);
}

/* ============================================
   sales/lead_view.php - جزئیات لید
   ============================================ */

.lead-view-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.lead-view-page .lead-name-badge {
    background: linear-gradient(135deg, #f5e6f0 0, #fef3f0 100%);
    padding: 6px 15px;
    border-radius: 30px;
}

.lead-view-page .action-buttons-header {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lead-view-page .action-buttons-header .btn-group {
    display: flex;
    gap: 5px;
}

.lead-view-page .lead-view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.lead-view-page .info-table {
    width: 100%;
}

.lead-view-page .info-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #f0eae6;
}

.lead-view-page .info-label {
    width: 100px;
    font-weight: 600;
    color: #6b4e5e;
}

.lead-view-page .info-value {
    flex: 1;
    color: #4a3a42;
}

/* وضعیت مالی */
.lead-view-page .financial-status-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    overflow: hidden;
}

.lead-view-page .financial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #faf0f5;
    border-bottom: 1px solid #f0eae6;
}

.lead-view-page .financial-header h3 {
    font-size: 14px;
    margin: 0;
}

.lead-view-page .financial-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
}

.lead-view-page .financial-badge.paid {
    background: #a3c4a8;
    color: #2d523a;
}

.lead-view-page .financial-badge.partial {
    background: #f3d9b1;
    color: #7a5a3e;
}

.lead-view-page .financial-badge.unpaid {
    background: #e4a8a8;
    color: #7a3e3e;
}

.lead-view-page .financial-body {
    padding: 15px;
}

.lead-view-page .financial-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.lead-view-page .stat-item {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.lead-view-page .stat-value {
    font-weight: 600;
}

.lead-view-page .text-success { color: #a3c4a8; }
.lead-view-page .text-danger { color: #e4a8a8; }

/* پیشرفت پرداخت */
.lead-view-page .progress-bar-container {
    margin-bottom: 12px;
}

.lead-view-page .progress-label {
    font-size: 11px;
    color: #999;
    margin-bottom: 3px;
}

.lead-view-page .progress-bar {
    background: #f0eae6;
    border-radius: 10px;
    height: 6px;
    overflow: hidden;
}

.lead-view-page .progress-fill {
    background: linear-gradient(90deg, #a3c4a8, #d4a5c2);
    height: 100%;
    border-radius: 10px;
}

.lead-view-page .progress-percent {
    font-size: 10px;
    color: #d4a5c2;
    text-align: left;
    margin-top: 3px;
}

/* تایم‌لاین */
.lead-view-page .timeline {
    position: relative;
    padding: 15px 0;
}

.lead-view-page .timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 60px;
    width: 2px;
    background: #f0eae6;
}

.lead-view-page .timeline-item {
    position: relative;
    margin-bottom: 20px;
    padding-right: 85px;
}

.lead-view-page .timeline-icon {
    position: absolute;
    right: 30px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid;
    z-index: 1;
}

.lead-view-page .timeline-icon.icon-interaction {
    border-color: #b8d8e3;
    color: #2c5a6e;
}

.lead-view-page .timeline-icon.icon-assign {
    border-color: #a3c4a8;
    color: #2d523a;
}

.lead-view-page .timeline-icon.icon-status {
    border-color: #f3d9b1;
    color: #7a5a3e;
}

.lead-view-page .timeline-icon.icon-refer {
    border-color: #b8d8e3;
    color: #2c5a6e;
}

.lead-view-page .timeline-icon.icon-return {
    border-color: #e4a8a8;
    color: #7a3e3e;
}

.lead-view-page .timeline-icon.icon-expired {
    border-color: #e4a8a8;
    color: #7a3e3e;
}

.lead-view-page .timeline-icon.icon-create {
    border-color: #a3c4a8;
    color: #2d523a;
}

.lead-view-page .timeline-icon.icon-contract {
    border-color: #d4a5c2;
    color: #6b4e5e;
}

.lead-view-page .timeline-icon.icon-payment {
    border-color: #b8d8e3;
    color: #2c5a6e;
}

.lead-view-page .timeline-icon.icon-payment-confirm {
    border-color: #a3c4a8;
    color: #2d523a;
}

.lead-view-page .timeline-content {
    background: #fef9f7;
    border-radius: 12px;
    padding: 10px;
    border: 1px solid #f0eae6;
}

.lead-view-page .timeline-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.lead-view-page .timeline-title {
    font-weight: 600;
    color: #6b4e5e;
    font-size: 12px;
}

.lead-view-page .timeline-date {
    font-size: 10px;
    color: #999;
}

.lead-view-page .timeline-body {
    font-size: 12px;
    margin-bottom: 6px;
}

.lead-view-page .timeline-message {
    margin-top: 5px;
    padding: 5px;
    background: white;
    border-radius: 6px;
    font-size: 11px;
}

.lead-view-page .old-value {
    color: #e4a8a8;
    text-decoration: line-through;
}

.lead-view-page .new-value {
    color: #a3c4a8;
    font-weight: 500;
}

.lead-view-page .timeline-footer {
    margin-top: 5px;
    padding-top: 4px;
    border-top: 1px solid #f0eae6;
    font-size: 10px;
    color: #999;
}

/* ============================================
   sales/lead_edit.php - ویرایش لید
   ============================================ */

.lead-edit-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.lead-edit-page .lead-badge {
    background: linear-gradient(135deg, #f5e6f0 0%, #fef3f0 100%);
    padding: 8px 20px;
    border-radius: 30px;
    color: #6b4e5e;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ============================================
   ریسپانسیو
   ============================================ */

@media (max-width: 992px) {
    .lead-view-page .lead-view-grid {
        grid-template-columns: 1fr;
    }
    .lead-view-page .financial-stats {
        grid-template-columns: 1fr;
    }
    .lead-view-page .timeline:before {
        right: 35px;
    }
    .lead-view-page .timeline-item {
        padding-right: 60px;
    }
    .lead-view-page .timeline-icon {
        width: 32px;
        height: 32px;
        right: 10px;
    }
}

@media (max-width: 768px) {
    .leads-page .filter-form {
        flex-direction: column;
    }
    .leads-page .filter-form .form-control,
    .leads-page .filter-form select {
        width: 100%;
    }
    .leads-page .bulk-assign-row {
        flex-direction: column;
        align-items: stretch;
    }
    .leads-page .bulk-assign-row select {
        width: 100%;
    }
    .leads-page .leads-table {
        min-width: 700px;
    }
    .lead-view-page .page-header {
        flex-direction: column;
        text-align: center;
    }
    .lead-view-page .action-buttons-header {
        justify-content: center;
    }
    .lead-view-page .financial-actions {
        flex-direction: column;
    }
    .lead-edit-page .page-header {
        flex-direction: column;
        text-align: center;
    }
    .modal-body .form-row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .lead-view-page .timeline:before {
        right: 25px;
    }
    .lead-view-page .timeline-item {
        padding-right: 45px;
    }
    .lead-view-page .timeline-icon {
        width: 26px;
        height: 26px;
        right: 5px;
        font-size: 10px;
    }
    .lead-view-page .financial-stats {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    .lead-view-page .financial-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
/* ============================================
   sales/agents.php - مدیریت بازاریابان
   ============================================ */

.sales-agents-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.sales-agents-page .search-box {
    margin-bottom: 20px;
}

.sales-agents-page .search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sales-agents-page .search-form .form-control {
    width: 300px;
}

.sales-agents-page .agents-table {
    width: 100%;
    background: white;
    border-radius: 16px;
    border-collapse: collapse;
}

.sales-agents-page .agents-table th {
    background: #faf0f5;
    padding: 12px 10px;
    text-align: right;
    font-weight: 600;
    color: #6b4e5e;
    font-size: 13px;
}

.sales-agents-page .agents-table td {
    padding: 10px;
    border-bottom: 1px solid #f0eae6;
    font-size: 13px;
    vertical-align: middle;
}

.sales-agents-page .agents-table tr:hover {
    background: #fff5f0;
}

.sales-agents-page .agents-table .actions-cell {
    white-space: nowrap;
}

.sales-agents-page .agents-table .action-buttons {
    display: flex;
    gap: 6px;
}

.sales-agents-page .agents-table .action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.sales-agents-page .agents-table .action-btn.edit {
    background: #f3d9b1;
    color: #7a5a3e;
}

.sales-agents-page .agents-table .action-btn.edit:hover {
    background: #e8c89a;
    transform: translateY(-2px);
}

.sales-agents-page .agents-table .action-btn.delete {
    background: #e4a8a8;
    color: #7a3e3e;
}

.sales-agents-page .agents-table .action-btn.delete:hover {
    background: #d48a8a;
    transform: translateY(-2px);
}

/* ============================================
   ریسپانسیو
   ============================================ */

@media (max-width: 768px) {
    .sales-agents-page .page-header {
        flex-direction: column;
        text-align: center;
    }
    .sales-agents-page .page-header .btn {
        width: 100%;
        justify-content: center;
    }
    .sales-agents-page .search-form {
        flex-direction: column;
    }
    .sales-agents-page .search-form .form-control {
        width: 100%;
    }
    .sales-agents-page .agents-table {
        min-width: 700px;
    }
    .sales-agents-page .modal-body .form-row {
        flex-direction: column;
    }
}
/* ============================================
   sales/manage_regions.php - مدیریت مناطق
   ============================================ */

.manage-regions-page .page-header {
    margin-bottom: 20px;
}

.manage-regions-page .page-description {
    color: #999;
    font-size: 13px;
    margin-top: 5px;
}

.manage-regions-page .nav-tabs {
    display: flex;
    gap: 5px;
    border-bottom: 2px solid #f0eae6;
    margin-bottom: 25px;
    list-style: none;
    padding: 0;
}

.manage-regions-page .nav-tabs .nav-item {
    margin-bottom: -2px;
}

.manage-regions-page .nav-tabs .nav-link {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #6b4e5e;
    border-radius: 10px 10px 0 0;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 14px;
    background: none;
    border: none;
    cursor: pointer;
}

.manage-regions-page .nav-tabs .nav-link i {
    margin-left: 8px;
    color: #d4a5c2;
}

.manage-regions-page .nav-tabs .nav-link.active {
    background: #faf0f5;
    border: 2px solid #f0eae6;
    border-bottom-color: #faf0f5;
    color: #d4a5c2;
}

.manage-regions-page .nav-tabs .nav-link:hover {
    background: #f5e6f0;
}

.manage-regions-page .tab-content {
    display: none;
}

.manage-regions-page .tab-content.active {
    display: block;
}

.manage-regions-page .data-table {
    width: 100%;
    background: white;
    border-radius: 16px;
    border-collapse: collapse;
}

.manage-regions-page .data-table th {
    background: #faf0f5;
    padding: 12px 10px;
    text-align: right;
    font-weight: 600;
    color: #6b4e5e;
    font-size: 13px;
}

.manage-regions-page .data-table td {
    padding: 10px;
    border-bottom: 1px solid #f0eae6;
    font-size: 13px;
    vertical-align: middle;
}

.manage-regions-page .data-table tr:hover {
    background: #fff5f0;
}

.manage-regions-page .status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.manage-regions-page .status-active {
    background: #a3c4a8;
    color: #2d523a;
}

.manage-regions-page .status-inactive {
    background: #e0d0d8;
    color: #6b4e5e;
}

.manage-regions-page .action-buttons {
    display: flex;
    gap: 6px;
}

.manage-regions-page .action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.manage-regions-page .action-btn.edit {
    background: #f3d9b1;
    color: #7a5a3e;
}

.manage-regions-page .action-btn.edit:hover {
    background: #e8c89a;
    transform: translateY(-2px);
}

.manage-regions-page .action-btn.toggle {
    background: #b8d8e3;
    color: #2c5a6e;
}

.manage-regions-page .action-btn.toggle:hover {
    background: #a0c8d5;
    transform: translateY(-2px);
}

.manage-regions-page .action-btn.delete {
    background: #e4a8a8;
    color: #7a3e3e;
}

.manage-regions-page .action-btn.delete:hover {
    background: #d48a8a;
    transform: translateY(-2px);
}

.manage-regions-page .btn-sm {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 20px;
}

.manage-regions-page .btn-sm.btn-primary {
    background: #d4a5c2;
    color: white;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.manage-regions-page .btn-sm.btn-primary:hover {
    background: #b5839e;
    transform: translateY(-2px);
}

/* ============================================
   ریسپانسیو
   ============================================ */

@media (max-width: 768px) {
    .manage-regions-page .page-header {
        flex-direction: column;
        text-align: center;
    }
    .manage-regions-page .nav-tabs {
        justify-content: center;
        flex-wrap: wrap;
    }
    .manage-regions-page .nav-tabs .nav-link {
        padding: 8px 14px;
        font-size: 13px;
    }
    .manage-regions-page .data-table {
        min-width: 500px;
    }
    .manage-regions-page .action-buttons {
        flex-wrap: wrap;
    }
}
/* ============================================
   sales/manage_hardware.php - مدیریت سخت‌افزارها
   ============================================ */

.manage-hardware-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.manage-hardware-page .card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 25px;
}

.manage-hardware-page .card-body {
    padding: 25px;
}

.manage-hardware-page .hardware-table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    border-radius: 16px;
    overflow: hidden;
}

.manage-hardware-page .hardware-table th {
    background: #faf0f5;
    padding: 12px 10px;
    text-align: right;
    font-weight: 600;
    color: #6b4e5e;
    font-size: 13px;
}

.manage-hardware-page .hardware-table td {
    padding: 10px;
    border-bottom: 1px solid #f0eae6;
    font-size: 13px;
    vertical-align: middle;
}

.manage-hardware-page .hardware-table tr:hover {
    background: #fff5f0;
}

.manage-hardware-page .hardware-name {
    font-weight: 600;
    color: #4a3a42;
}

.manage-hardware-page .hardware-price {
    font-weight: 600;
    color: #2d523a;
}

.manage-hardware-page .hardware-desc {
    font-size: 12px;
    color: #999;
    max-width: 200px;
}

.manage-hardware-page .status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.manage-hardware-page .status-active {
    background: #a3c4a8;
    color: #2d523a;
}

.manage-hardware-page .status-inactive {
    background: #e0d0d8;
    color: #6b4e5e;
}

.manage-hardware-page .actions-cell {
    white-space: nowrap;
}

.manage-hardware-page .action-buttons {
    display: flex;
    gap: 6px;
}

.manage-hardware-page .action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.manage-hardware-page .action-btn.edit {
    background: #f3d9b1;
    color: #7a5a3e;
}

.manage-hardware-page .action-btn.edit:hover {
    background: #e8c89a;
    transform: translateY(-2px);
}

.manage-hardware-page .action-btn.toggle {
    background: #b8d8e3;
    color: #2c5a6e;
}

.manage-hardware-page .action-btn.toggle:hover {
    background: #a0c8d5;
    transform: translateY(-2px);
}

.manage-hardware-page .action-btn.delete {
    background: #e4a8a8;
    color: #7a3e3e;
}

.manage-hardware-page .action-btn.delete:hover {
    background: #d48a8a;
    transform: translateY(-2px);
}

.manage-hardware-page .text-center {
    text-align: center;
}

/* ============================================
   ریسپانسیو
   ============================================ */

@media (max-width: 768px) {
    .manage-hardware-page .page-header {
        flex-direction: column;
        text-align: center;
    }
    .manage-hardware-page .page-header .btn {
        width: 100%;
        justify-content: center;
    }
    .manage-hardware-page .hardware-table {
        min-width: 600px;
    }
    .manage-hardware-page .hardware-desc {
        max-width: 120px;
    }
    .manage-hardware-page .modal-body .form-group {
        margin-bottom: 12px;
    }
}
/* ============================================
   sales/finance_settings.php - تنظیمات مالی فروش
   ============================================ */

.finance-settings-page .page-header {
    margin-bottom: 20px;
}

.finance-settings-page .page-description {
    color: #999;
    font-size: 13px;
    margin-top: 5px;
}

.finance-settings-page .card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 25px;
}

.finance-settings-page .card-body {
    padding: 25px;
}

.finance-settings-page .form-group {
    margin-bottom: 20px;
}

.finance-settings-page .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #6b4e5e;
    font-size: 14px;
}

.finance-settings-page .form-group .form-control {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #e0d0d8;
    font-size: 14px;
    transition: all 0.2s;
}

.finance-settings-page .form-group .form-control:focus {
    outline: none;
    border-color: #d4a5c2;
    box-shadow: 0 0 0 3px rgba(212, 165, 194, 0.15);
}

.finance-settings-page .form-group .form-text {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.finance-settings-page .form-group .form-text.text-muted {
    color: #999;
}

.finance-settings-page .form-actions {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0eae6;
}

.finance-settings-page .btn-primary {
    background: #d4a5c2;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.finance-settings-page .btn-primary:hover {
    background: #b5839e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 194, 0.3);
}

/* ============================================
   ریسپانسیو
   ============================================ */

@media (max-width: 768px) {
    .finance-settings-page .page-header {
        flex-direction: column;
        text-align: center;
    }
    .finance-settings-page .form-actions {
        text-align: center;
    }
    .finance-settings-page .btn-primary {
        width: 100%;
        justify-content: center;
    }
    .finance-settings-page .form-group .form-control {
        font-size: 16px; /* برای جلوگیری از زوم در موبایل */
    }
}
/* ============================================
   استایل‌های اختصاصی finance_settings.php
   ============================================ */

.finance-settings-page .last-update-badge {
    background: white;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 12px;
    color: #6b4e5e;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.finance-settings-page .last-update-badge i {
    color: #d4a5c2;
}

.finance-settings-page .input-with-info .form-control {
    margin-bottom: 5px;
}

.finance-settings-page .btn-secondary {
    background: #f0eae6;
    color: #6b4e5e;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.finance-settings-page .btn-secondary:hover {
    background: #e4d8dc;
}

.finance-settings-page .settings-summary-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-top: 25px;
}

.finance-settings-page .settings-summary-card .summary-header {
    padding: 15px 20px;
    background: #faf0f5;
    border-bottom: 1px solid #f0eae6;
}

.finance-settings-page .settings-summary-card .summary-header h4 {
    margin: 0;
    font-size: 15px;
    color: #6b4e5e;
}

.finance-settings-page .settings-summary-card .summary-header h4 i {
    color: #d4a5c2;
    margin-left: 8px;
}

.finance-settings-page .settings-summary-card .summary-body {
    padding: 15px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.finance-settings-page .settings-summary-card .summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: #fef9f7;
    border-radius: 10px;
    border: 1px solid #f0eae6;
}

.finance-settings-page .settings-summary-card .summary-label {
    color: #6b4e5e;
    font-size: 13px;
}

.finance-settings-page .settings-summary-card .summary-value {
    font-weight: 700;
    color: #d4a5c2;
    font-size: 14px;
}

@media (max-width: 768px) {
    .finance-settings-page .last-update-badge {
        width: 100%;
        justify-content: center;
    }
    .finance-settings-page .settings-summary-card .summary-body {
        grid-template-columns: 1fr;
    }
    .finance-settings-page .form-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .finance-settings-page .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
/* ============================================
   sales/finalize_contracts.php - تأیید نهایی قرارداد
   ============================================ */

.finalize-contracts-page .page-header {
    margin-bottom: 20px;
}

.finalize-contracts-page .page-description {
    color: #999;
    font-size: 13px;
    margin-top: 5px;
}

.finalize-contracts-page .nav-tabs {
    display: flex;
    gap: 5px;
    border-bottom: 1px solid #e0d0d8;
    margin-bottom: 20px;
    padding: 0;
    list-style: none;
}

.finalize-contracts-page .nav-item {
    margin-bottom: -1px;
}

.finalize-contracts-page .nav-link {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #6b4e5e;
    border-radius: 10px 10px 0 0;
    transition: all 0.2s;
    cursor: pointer;
    background: none;
    border: none;
}

.finalize-contracts-page .nav-link i {
    margin-left: 8px;
}

.finalize-contracts-page .nav-link:hover {
    background: #f5e6f0;
}

.finalize-contracts-page .nav-link.active {
    background: #faf0f5;
    border: 1px solid #e0d0d8;
    border-bottom-color: #faf0f5;
    color: #d4a5c2;
}

.finalize-contracts-page .nav-link .badge {
    background: #d4a5c2;
    color: white;
    border-radius: 20px;
    padding: 2px 8px;
    margin-right: 8px;
    font-size: 11px;
}

.finalize-contracts-page .tab-content {
    display: none;
}

.finalize-contracts-page .tab-content.active {
    display: block;
}

.finalize-contracts-page .contracts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
}

.finalize-contracts-page .contract-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0eae6;
    transition: all 0.2s;
}

.finalize-contracts-page .contract-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.finalize-contracts-page .contract-card-header {
    padding: 12px 15px;
    background: #faf0f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid #f0eae6;
}

.finalize-contracts-page .contract-id {
    font-weight: 600;
    color: #6b4e5e;
}

.finalize-contracts-page .contract-status {
    font-size: 12px;
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.finalize-contracts-page .contract-status.status-approved {
    background: #e8f5e9;
    color: #2d523a;
}

.finalize-contracts-page .contract-status.status-finalized {
    background: #e3f2fd;
    color: #2c5a6e;
}

.finalize-contracts-page .contract-card-body {
    padding: 15px;
}

.finalize-contracts-page .lead-name {
    font-weight: 600;
    font-size: 15px;
    color: #4a3a42;
    margin-bottom: 5px;
}

.finalize-contracts-page .lead-contact {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.finalize-contracts-page .lead-contact i {
    color: #d4a5c2;
}

.finalize-contracts-page .sales-agent {
    font-size: 12px;
    color: #d4a5c2;
    margin-bottom: 10px;
}

.finalize-contracts-page .contract-info {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0eae6;
}

.finalize-contracts-page .info-item {
    font-size: 12px;
    display: flex;
    gap: 5px;
}

.finalize-contracts-page .info-label {
    color: #999;
}

.finalize-contracts-page .info-value {
    font-weight: 500;
    color: #4a3a42;
}

.finalize-contracts-page .payments-preview {
    background: #fef9f7;
    border-radius: 12px;
    padding: 10px;
    border: 1px solid #f0eae6;
}

.finalize-contracts-page .payments-header {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    color: #6b4e5e;
}

.finalize-contracts-page .payments-header .badge {
    background: #d4a5c2;
    color: white;
    padding: 0px 8px;
    border-radius: 12px;
    font-size: 10px;
}

.finalize-contracts-page .payment-item-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    padding: 5px 0;
    border-bottom: 1px solid #f0eae6;
}

.finalize-contracts-page .payment-item-preview:last-child {
    border-bottom: none;
}

.finalize-contracts-page .payment-method {
    color: #6b4e5e;
}

.finalize-contracts-page .payment-amount {
    font-weight: 600;
    color: #2d523a;
}

.finalize-contracts-page .view-image {
    color: #b8d8e3;
    text-decoration: none;
}

.finalize-contracts-page .view-image:hover {
    color: #a0c8d5;
}

.finalize-contracts-page .contract-card-footer {
    padding: 15px;
    background: #fef9f7;
    border-top: 1px solid #f0eae6;
}

.finalize-contracts-page .finalize-form .form-group {
    margin-bottom: 12px;
}

.finalize-contracts-page .finalize-form .form-group label {
    display: block;
    font-size: 12px;
    margin-bottom: 5px;
    color: #6b4e5e;
    font-weight: 500;
}

.finalize-contracts-page .finalize-form .form-control {
    width: 100%;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #e0d0d8;
    font-size: 13px;
    transition: all 0.2s;
}

.finalize-contracts-page .finalize-form .form-control:focus {
    outline: none;
    border-color: #d4a5c2;
    box-shadow: 0 0 0 3px rgba(212, 165, 194, 0.15);
}

.finalize-contracts-page .finalize-form .text-muted {
    color: #999;
    font-size: 10px;
}

.finalize-contracts-page .btn-block {
    width: 100%;
}

.finalize-contracts-page .btn-success {
    background: #a3c4a8;
    color: #2d523a;
    border: none;
    padding: 10px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.finalize-contracts-page .btn-success:hover {
    background: #8bae91;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(163, 196, 168, 0.3);
}

.finalize-contracts-page .btn-info {
    background: #b8d8e3;
    color: #2c5a6e;
    border: none;
    padding: 10px;
    border-radius: 30px;
    text-decoration: none;
    display: block;
    text-align: center;
    font-weight: 600;
    transition: all 0.2s;
}

.finalize-contracts-page .btn-info:hover {
    background: #a0c8d5;
    transform: translateY(-2px);
}

.finalize-contracts-page .empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #999;
}

.finalize-contracts-page .empty-state i {
    font-size: 48px;
    color: #e0d0d8;
    margin-bottom: 15px;
    display: block;
}

.finalize-contracts-page .empty-state p {
    margin: 0;
}

/* ============================================
   ریسپانسیو
   ============================================ */

@media (max-width: 992px) {
    .finalize-contracts-page .contracts-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .finalize-contracts-page .page-header {
        flex-direction: column;
        text-align: center;
    }
    .finalize-contracts-page .nav-tabs {
        justify-content: center;
        flex-wrap: wrap;
    }
    .finalize-contracts-page .nav-link {
        padding: 8px 14px;
        font-size: 13px;
    }
    .finalize-contracts-page .contracts-grid {
        grid-template-columns: 1fr;
    }
    .finalize-contracts-page .contract-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .finalize-contracts-page .contract-info {
        flex-direction: column;
        gap: 5px;
    }
}
/* ============================================
   مشاهده قرارداد
   ============================================ */
.contract-view-page .page-header{ display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; flex-wrap:wrap; gap:10px; }
.contract-id-badge{ background:linear-gradient(135deg,#f5e6f0 0,#fef3f0 100%); padding:5px 15px; border-radius:30px; display:inline-flex; align-items:center; gap:8px; }
.action-buttons-header{ display:flex; gap:8px; }
.btn-info{ background:#b8d8e3; color:#2c5a6e; padding:6px 12px; border-radius:20px; text-decoration:none; }
.btn-secondary{ background:#e0d0d8; color:#6b4e5e; padding:6px 12px; border-radius:20px; text-decoration:none; }
.contract-view-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.card{ background:white; border-radius:16px; overflow:hidden; box-shadow:0 2px 8px rgba(0,0,0,0.05); margin-bottom:20px; }
.card-header-custom{ background:#faf0f5; padding:12px 15px; border-bottom:1px solid #f0eae6; display:flex; justify-content:space-between; align-items:center; }
.card-header-custom h3{ margin:0; font-size:14px; color:#6b4e5e; }
.card-body{ padding:15px; }
.info-table{ width:100%; }
.info-row{ display:flex; padding:6px 0; border-bottom:1px solid #f0eae6; }
.info-label{ width:110px; font-weight:600; color:#6b4e5e; font-size:12px; }
.info-value{ flex:1; color:#4a3a42; font-size:12px; }
.total-amount{ font-size:16px; font-weight:700; color:#2d523a; }
.payment-item{ background:#fef9f7; border-radius:12px; padding:12px; margin-bottom:10px; border:1px solid #f0eae6; }
.payment-header{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; margin-bottom:8px; }
.payment-method{ font-weight:500; color:#6b4e5e; }
.payment-amount{ font-weight:700; color:#2d523a; }
.status-badge{ padding:2px 10px; border-radius:20px; font-size:11px; display:inline-block; }
.status-warning{ background:#f3d9b1; color:#7a5a3e; }
.status-success{ background:#a3c4a8; color:#2d523a; }
.status-danger{ background:#e4a8a8; color:#7a3e3e; }
.status-info{ background:#b8d8e3; color:#2c5a6e; }
.payment-details{ margin-top:8px; padding-top:8px; border-top:1px solid #f0eae6; }
.detail-row{ display:flex; gap:10px; font-size:11px; margin-bottom:4px; }
.detail-label{ color:#999; min-width:70px; }
.payments-summary{ margin-top:15px; padding-top:10px; border-top:1px solid #f0eae6; }
.summary-row{ display:flex; justify-content:space-between; padding:5px 0; font-size:13px; }
.text-success{ color:#a3c4a8; }
.text-danger{ color:#e4a8a8; }
.link-box{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-top:10px; }
.link-box .form-control{ flex:1; padding:8px 12px; border-radius:8px; border:1px solid #c8e6c9; background:#f8fff8; font-size:12px; }
.btn-copy{ background:#b8d8e3; color:#2c5a6e; border:none; padding:8px 16px; border-radius:30px; cursor:pointer; }
.alert-info{ background:#e3f2fd; color:#2c5a6e; padding:10px; border-radius:8px; font-size:13px; text-align:center; }
.empty-state{ text-align:center; padding:30px; color:#999; }
@media (max-width:768px){ .contract-view-grid{ grid-template-columns:1fr; } }

/* ============================================
   مشاهده فاکتور
   ============================================ */
.invoice-view-page .page-header{ display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; flex-wrap:wrap; gap:10px; }
.invoice-view-page .page-header h2{ margin:0; font-size:20px; }
.invoice-number{ background:linear-gradient(135deg,#f5e6f0 0,#fef3f0 100%); padding:5px 15px; border-radius:30px; font-weight:500; font-size:14px; }
.action-buttons{ display:flex; gap:8px; }
.btn-sm{ padding:5px 12px; font-size:12px; border-radius:20px; text-decoration:none; display:inline-block; }
.btn-secondary{ background:#e0d0d8; color:#6b4e5e; }
.btn-primary{ background:#d4a5c2; color:white; border:none; cursor:pointer; }
.invoice-container{ background:white; border-radius:16px; padding:20px; box-shadow:0 2px 10px rgba(0,0,0,0.05); border:1px solid #e0d0d8; }
.invoice-header{ display:flex; justify-content:space-between; align-items:center; border-bottom:2px solid #d4a5c2; padding-bottom:12px; margin-bottom:15px; flex-wrap:wrap; gap:15px; }
.company-info h3{ margin:0 0 5px 0; font-size:18px; color:#6b4e5e; }
.company-details{ display:flex; gap:15px; font-size:11px; color:#999; }
.invoice-title h1{ margin:0 0 5px 0; font-size:18px; color:#d4a5c2; }
.invoice-meta{ display:flex; gap:15px; font-size:11px; color:#999; }
.customer-info{ background:#fef9f7; border-radius:12px; padding:12px 15px; margin-bottom:15px; border:1px solid #f0eae6; }
.customer-row{ display:flex; gap:20px; margin-bottom:6px; flex-wrap:wrap; }
.customer-row:last-child{ margin-bottom:0; }
.customer-field{ flex:1; display:flex; align-items:baseline; min-width:200px; }
.customer-field.full-width{ flex:100%; }
.customer-field .label{ width:70px; font-size:12px; font-weight:600; color:#6b4e5e; }
.customer-field .value{ flex:1; font-size:12px; color:#4a3a42; }
.items-table{ margin-bottom:15px; overflow-x:auto; }
.invoice-items-table{ width:100%; border-collapse:collapse; font-size:12px; border:1px solid #e0d0d8; }
.invoice-items-table th{ background:#faf0f5; padding:10px 6px; text-align:center; font-weight:600; color:#6b4e5e; border:1px solid #e0d0d8; }
.invoice-items-table td{ padding:8px 6px; border-bottom:1px solid #f0eae6; border:1px solid #e0d0d8; vertical-align:middle; }
.col-row{ width:45px; }
.col-desc{ text-align:right; }
.col-price{ width:100px; }
.col-qty{ width:55px; }
.col-total{ width:110px; }
.text-center{ text-align:center; }
.text-left{ text-align:left; }
.item-desc{ font-size:10px; color:#999; display:block; margin-top:3px; }
.invoice-items-table tfoot td{ border:1px solid #e0d0d8; }
.invoice-items-table tfoot .total td{ background:#f5e6f0; font-weight:600; }
.financial-info{ background:#fef9f7; border-radius:12px; padding:12px 15px; margin-bottom:15px; border:1px solid #f0eae6; }
.financial-row{ display:flex; gap:20px; flex-wrap:wrap; }
.financial-field{ display:flex; align-items:baseline; gap:8px; }
.financial-field .label{ font-size:12px; font-weight:600; color:#6b4e5e; }
.financial-field .value{ font-size:12px; font-weight:500; }
.badge-paid{ background:#a3c4a8; color:#2d523a; padding:3px 12px; border-radius:20px; font-size:11px; display:inline-block; }
.badge-partial{ background:#f3d9b1; color:#7a5a3e; padding:3px 12px; border-radius:20px; font-size:11px; display:inline-block; }
.badge-pending{ background:#e4a8a8; color:#7a3e3e; padding:3px 12px; border-radius:20px; font-size:11px; display:inline-block; }
.badge-warning{ background:#f3d9b1; color:#7a5a3e; padding:3px 12px; border-radius:20px; font-size:11px; display:inline-block; }
.text-success{ color:#a3c4a8; }
.text-danger{ color:#e4a8a8; }
.payments-history{ margin-bottom:15px; }
.payments-history h4{ font-size:13px; color:#6b4e5e; margin-bottom:10px; }
.payments-list{ display:flex; flex-direction:column; gap:6px; }
.payment-row{ display:flex; justify-content:space-between; align-items:center; padding:8px 12px; background:#fef9f7; border-radius:10px; font-size:12px; border:1px solid #f0eae6; flex-wrap:wrap; gap:8px; }
.payment-date{ color:#999; font-size:11px; }
.payment-method{ font-weight:500; color:#6b4e5e; }
.payment-amount{ font-weight:600; color:#2d523a; }
.payment-image a{ color:#d4a5c2; font-size:14px; text-decoration:none; }
.badge-small-success{ background:#a3c4a8; color:#2d523a; padding:2px 10px; border-radius:15px; font-size:10px; display:inline-block; }
.badge-small-warning{ background:#f3d9b1; color:#7a5a3e; padding:2px 10px; border-radius:15px; font-size:10px; display:inline-block; }
.badge-small-danger{ background:#e4a8a8; color:#7a3e3e; padding:2px 10px; border-radius:15px; font-size:10px; display:inline-block; }
.badge-small-info{ background:#b8d8e3; color:#2c5a6e; padding:2px 10px; border-radius:15px; font-size:10px; display:inline-block; }
.online-payment-box{ background:#e8f5e9; border-radius:12px; padding:15px; margin-bottom:15px; border:1px solid #c8e6c9; }
.online-payment-header{ display:flex; align-items:center; gap:10px; margin-bottom:12px; font-size:13px; flex-wrap:wrap; }
.online-payment-header i{ color:#2d523a; }
.remaining-amount{ background:#2d523a; color:white; padding:3px 10px; border-radius:20px; font-size:12px; }
.link-box{ display:flex; flex-direction:column; gap:10px; }
.link-row{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.link-label{ font-size:11px; color:#666; min-width:65px; }
.link-row .form-control{ flex:1; min-width:200px; padding:8px 12px; font-size:12px; border-radius:8px; border:1px solid #c8e6c9; background:white; }
.link-row .short-link{ background:#f0f8f0; font-family:monospace; direction:ltr; text-align:left; }
.btn-copy{ background:#b8d8e3; color:#2c5a6e; padding:8px 16px; font-size:12px; border-radius:30px; border:none; cursor:pointer; }
.btn-copy:hover{ background:#9bc4d3; }
.btn-send{ background:#a3c4a8; color:#2d523a; padding:10px 20px; font-size:14px; border-radius:30px; border:none; cursor:pointer; width:100%; margin-top:5px; font-weight:600; }
.btn-send:hover{ background:#8bae91; }
.alert-info{ background:#e3f2fd; color:#2c5a6e; padding:10px; border-radius:8px; font-size:12px; }
.alert-success{ background:#e8f5e9; color:#2d523a; padding:10px; border-radius:8px; font-size:12px; }
.alert-warning{ background:#fff8e1; color:#7a5a3e; padding:10px; border-radius:8px; font-size:12px; }
.text-muted{ color:#999; font-size:11px; display:block; margin-top:8px; }
.invoice-footer{ border-top:1px solid #e0d0d8; padding-top:10px; text-align:center; font-size:10px; color:#999; }
.invoice-footer p{ margin:3px 0; }
@media print{ .sidebar,.app-sidebar,.sidebar-toggle-btn,.page-header .btn,.action-buttons,.print-hide,.btn-copy,.btn-send,.online-payment-box,.payment-image a{ display:none !important; } .app-main{ margin:0 !important; padding:0 !important; } .invoice-container{ box-shadow:none; padding:0; border:none; } .invoice-view-page .page-header{ display:none; } .invoice-items-table th,.invoice-items-table td{ border:1px solid #000 !important; } .customer-info,.financial-info,.payments-history{ border:1px solid #000 !important; background:none !important; } .invoice-header{ border-bottom:2px solid #000 !important; } .badge-paid,.badge-partial,.badge-pending,.badge-warning{ border:1px solid #000 !important; background:none !important; color:#000 !important; } .payment-row{ border:1px solid #000 !important; background:none !important; } .invoice-footer{ border-top:1px solid #000 !important; } }
@media (max-width:768px){ .invoice-header{ flex-direction:column; text-align:center; } .customer-row{ flex-direction:column; gap:5px; } .financial-row{ flex-direction:column; gap:8px; } .payment-row{ flex-direction:column; text-align:center; } .link-row{ flex-direction:column; align-items:stretch; } .link-row .form-control{ width:100%; } }

/* ============================================
   استایل‌های lead_view.php
   ============================================ */
.lead-view-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.lead-view-page .lead-name-badge {
    background: linear-gradient(135deg, #f5e6f0 0, #fef3f0 100%);
    padding: 6px 15px;
    border-radius: 30px;
    font-weight: 500;
}

.lead-view-page .action-buttons-header {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lead-view-page .action-buttons-header .btn-group {
    display: flex;
    gap: 5px;
}

.lead-view-page .lead-view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.lead-view-page .info-table {
    width: 100%;
}

.lead-view-page .info-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #f0eae6;
}

.lead-view-page .info-label {
    width: 100px;
    font-weight: 600;
    color: #6b4e5e;
}

.lead-view-page .info-value {
    flex: 1;
    color: #4a3a42;
}

.lead-view-page .text-danger {
    color: #e4a8a8 !important;
}

.lead-view-page .text-success {
    color: #a3c4a8 !important;
}

/* ====== کارت مالی ====== */
.lead-view-page .financial-status-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    overflow: hidden;
}

.lead-view-page .financial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #faf0f5;
    border-bottom: 1px solid #f0eae6;
}

.lead-view-page .financial-header h3 {
    font-size: 14px;
    margin: 0;
}

.lead-view-page .financial-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
}

.lead-view-page .financial-badge.paid {
    background: #a3c4a8;
    color: #2d523a;
}

.lead-view-page .financial-badge.partial {
    background: #f3d9b1;
    color: #7a5a3e;
}

.lead-view-page .financial-badge.unpaid {
    background: #e4a8a8;
    color: #7a3e3e;
}

.lead-view-page .financial-body {
    padding: 15px;
}

.lead-view-page .financial-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.lead-view-page .stat-item {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.lead-view-page .stat-value {
    font-weight: 600;
}

/* ====== Progress Bar ====== */
.lead-view-page .progress-bar-container {
    margin-bottom: 12px;
}

.lead-view-page .progress-label {
    font-size: 11px;
    color: #999;
    margin-bottom: 3px;
}

.lead-view-page .progress-bar {
    background: #f0eae6;
    border-radius: 10px;
    height: 6px;
    overflow: hidden;
}

.lead-view-page .progress-fill {
    background: linear-gradient(90deg, #a3c4a8, #d4a5c2);
    height: 100%;
    border-radius: 10px;
}

.lead-view-page .progress-percent {
    font-size: 10px;
    color: #d4a5c2;
    text-align: left;
    margin-top: 3px;
}

/* ====== پرداخت‌ها ====== */
.lead-view-page .recent-payments {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f0eae6;
}

.lead-view-page .recent-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
}

.lead-view-page .btn-link {
    font-size: 11px;
    color: #d4a5c2;
    text-decoration: none;
}

.lead-view-page .payments-mini-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lead-view-page .payment-mini-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 8px;
    background: #fef9f7;
    border-radius: 8px;
    font-size: 11px;
    flex-wrap: wrap;
    gap: 4px;
}

.lead-view-page .financial-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f0eae6;
    flex-wrap: wrap;
}

/* ====== دکمه‌های کوچک ====== */
.lead-view-page .btn-sm {
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.lead-view-page .btn-sm.btn-success {
    background: #a3c4a8;
    color: #2d523a;
}

.lead-view-page .btn-sm.btn-info {
    background: #b8d8e3;
    color: #2c5a6e;
}

.lead-view-page .btn-sm.btn-secondary {
    background: #d9c7d0;
    color: #5a3e4a;
}

/* ====== کارت‌ها ====== */
.lead-view-page .card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}

.lead-view-page .full-width-card {
    margin-top: 20px;
}

.lead-view-page .card-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #faf0f5;
    border-bottom: 1px solid #f0eae6;
}

.lead-view-page .card-header-custom h3 {
    font-size: 14px;
    margin: 0;
}

.lead-view-page .card-body {
    padding: 15px;
}

.lead-view-page .badge-count {
    background: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
}

/* ====== وضعیت‌ها ====== */
.lead-view-page .status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
}

.lead-view-page .status-secondary { background: #e0d0d8; color: #6b4e5e; }
.lead-view-page .status-info { background: #b8d8e3; color: #2c5a6e; }
.lead-view-page .status-primary { background: #d4a5c2; color: white; }
.lead-view-page .status-warning { background: #f3d9b1; color: #7a5a3e; }
.lead-view-page .status-danger { background: #e4a8a8; color: #7a3e3e; }
.lead-view-page .status-success { background: #a3c4a8; color: #2d523a; }

/* ====== فرم‌ها ====== */
.lead-view-page .form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.lead-view-page .form-row .form-group {
    flex: 1;
}

.lead-view-page .form-group {
    margin-bottom: 12px;
}

.lead-view-page .form-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #6b4e5e;
}

.lead-view-page .form-control {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #e0d0d8;
    background: white;
}

.lead-view-page .form-control:focus {
    outline: none;
    border-color: #d4a5c2;
    box-shadow: 0 0 0 3px rgba(212, 165, 194, 0.1);
}

/* ====== دکمه‌ها ====== */
.lead-view-page .btn {
    padding: 6px 15px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.lead-view-page .btn-primary {
    background: #d4a5c2;
    color: white;
}

.lead-view-page .btn-primary:hover {
    background: #b5839e;
}

.lead-view-page .btn-secondary {
    background: #f0eae6;
    color: #6b4e5e;
}

.lead-view-page .btn-secondary:hover {
    background: #e4d8dc;
}

.lead-view-page .btn-warning {
    background: #f3d9b1;
    color: #7a5a3e;
}

.lead-view-page .btn-warning:hover {
    background: #e8c89a;
}

.lead-view-page .btn-info {
    background: #b8d8e3;
    color: #2c5a6e;
}

.lead-view-page .btn-info:hover {
    background: #a0c8d5;
}

.lead-view-page .btn-success {
    background: #a3c4a8;
    color: #2d523a;
}

.lead-view-page .btn-success:hover {
    background: #8bae91;
}

/* ====== تایم‌لاین ====== */
.lead-view-page .timeline {
    position: relative;
    padding: 15px 0;
}

.lead-view-page .timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 60px;
    width: 2px;
    background: #f0eae6;
}

.lead-view-page .timeline-item {
    position: relative;
    margin-bottom: 20px;
    padding-right: 85px;
}

.lead-view-page .timeline-icon {
    position: absolute;
    right: 30px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid;
    z-index: 1;
}

.lead-view-page .timeline-icon.icon-interaction {
    border-color: #b8d8e3;
    color: #2c5a6e;
}
.lead-view-page .timeline-icon.icon-assign {
    border-color: #a3c4a8;
    color: #2d523a;
}
.lead-view-page .timeline-icon.icon-status {
    border-color: #f3d9b1;
    color: #7a5a3e;
}
.lead-view-page .timeline-icon.icon-refer {
    border-color: #b8d8e3;
    color: #2c5a6e;
}
.lead-view-page .timeline-icon.icon-return {
    border-color: #e4a8a8;
    color: #7a3e3e;
}
.lead-view-page .timeline-icon.icon-expired {
    border-color: #e4a8a8;
    color: #7a3e3e;
}
.lead-view-page .timeline-icon.icon-create {
    border-color: #a3c4a8;
    color: #2d523a;
}
.lead-view-page .timeline-icon.icon-contract {
    border-color: #d4a5c2;
    color: #6b4e5e;
}
.lead-view-page .timeline-icon.icon-payment {
    border-color: #b8d8e3;
    color: #2c5a6e;
}
.lead-view-page .timeline-icon.icon-payment-confirm {
    border-color: #a3c4a8;
    color: #2d523a;
}
.lead-view-page .timeline-icon.icon-edit {
    border-color: #e0d0d8;
    color: #6b4e5e;
}

.lead-view-page .timeline-content {
    background: #fef9f7;
    border-radius: 12px;
    padding: 10px;
    border: 1px solid #f0eae6;
}

.lead-view-page .timeline-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.lead-view-page .timeline-title {
    font-weight: 600;
    color: #6b4e5e;
    font-size: 12px;
}

.lead-view-page .timeline-date {
    font-size: 10px;
    color: #999;
}

.lead-view-page .timeline-body {
    font-size: 12px;
    margin-bottom: 6px;
}

.lead-view-page .timeline-message {
    margin-top: 5px;
    padding: 5px;
    background: white;
    border-radius: 6px;
    font-size: 11px;
}

.lead-view-page .old-value {
    color: #e4a8a8;
    text-decoration: line-through;
}

.lead-view-page .new-value {
    color: #a3c4a8;
    font-weight: 500;
}

.lead-view-page .timeline-footer {
    margin-top: 5px;
    padding-top: 4px;
    border-top: 1px solid #f0eae6;
    font-size: 10px;
    color: #999;
}

.lead-view-page .empty-state {
    text-align: center;
    padding: 30px;
    color: #999;
}

/* ====== واکنش‌گرا ====== */
@media (max-width: 768px) {
    .lead-view-page .lead-view-grid {
        grid-template-columns: 1fr;
    }
    
    .lead-view-page .timeline:before {
        right: 35px;
    }
    
    .lead-view-page .timeline-item {
        padding-right: 60px;
    }
    
    .lead-view-page .timeline-icon {
        width: 32px;
        height: 32px;
        right: 10px;
    }
    
    .lead-view-page .financial-stats {
        grid-template-columns: 1fr;
    }
    
    .lead-view-page .page-header {
        flex-direction: column;
        text-align: center;
    }
    
    .lead-view-page .action-buttons-header {
        justify-content: center;
    }
    
    .lead-view-page .financial-actions {
        flex-direction: column;
    }
    
    .lead-view-page .form-row {
        flex-direction: column;
    }
}

.payment-review-page { padding: 0; }

/* ====== هدر ====== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-header h2 {
    margin: 0;
    font-size: 22px;
}

.payment-id-badge {
    background: linear-gradient(135deg, #f5e6f0, #fef3f0);
    padding: 6px 18px;
    border-radius: 30px;
    font-weight: 500;
}

.btn-secondary {
    background: #f0eae6;
    color: #6b4e5e;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
}

/* ====== گرید ====== */
.review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* ====== کارت‌ها ====== */
.card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.card:last-child {
    margin-bottom: 0;
}

.card-header-custom {
    background: #faf0f5;
    padding: 12px 20px;
    border-bottom: 1px solid #f0eae6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header-custom h3 {
    margin: 0;
    font-size: 16px;
    color: #6b4e5e;
}

.card-header-custom h3 i {
    margin-left: 8px;
    color: #d4a5c2;
}

.card-body {
    padding: 20px;
}

/* ====== اطلاعات ====== */
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0eae6;
    flex-wrap: wrap;
    gap: 5px;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    font-weight: 600;
    color: #6b4e5e;
    min-width: 120px;
}

.info-row .value {
    color: #4a3a42;
    text-align: left;
    flex: 1;
}

.info-row .value.amount {
    font-weight: 700;
    color: #2d523a;
    font-size: 16px;
}

.info-row.highlight {
    background: #fff8e1;
    margin: -8px -20px -8px -20px;
    padding: 8px 20px;
    border-radius: 0;
}

/* ====== وضعیت‌ها ====== */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.status-success { background: #a3c4a8; color: #2d523a; }
.status-warning { background: #f3d9b1; color: #7a5a3e; }
.status-danger { background: #e4a8a8; color: #7a3e3e; }

/* ====== جزئیات ====== */
.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-item.full-width {
    grid-column: span 2;
}

.detail-item.highlight-item {
    background: #e8f5e9;
    padding: 8px 12px;
    border-radius: 8px;
}

.detail-item .label {
    font-size: 12px;
    color: #999;
}

.detail-item .value {
    font-weight: 500;
    color: #4a3a42;
}

.detail-item .value.ref-id {
    color: #2d523a;
    font-weight: 700;
    font-size: 16px;
    direction: ltr;
}

.detail-item .value.token-value {
    font-family: monospace;
    font-size: 12px;
    color: #666;
}

.text-success { color: #28a745 !important; }
.text-warning { color: #ffc107 !important; }
.text-danger { color: #dc3545 !important; }
.text-secondary { color: #6c757d !important; }

/* ====== تصاویر ====== */
.image-preview {
    margin-top: 5px;
}

.image-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.thumbnail {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
    border: 1px solid #e0d0d8;
    padding: 4px;
    background: white;
}

.image-link span {
    color: #d4a5c2;
    font-size: 12px;
}

/* ====== دکمه‌های عملیات ====== */
.action-buttons-card {
    margin-top: 20px;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-confirm, .btn-reject {
    padding: 12px 30px;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-confirm {
    background: #a3c4a8;
    color: #2d523a;
}

.btn-confirm:hover {
    background: #8bae91;
    transform: translateY(-2px);
}

.btn-reject {
    background: #e4a8a8;
    color: #7a3e3e;
}

.btn-reject:hover {
    background: #d99494;
    transform: translateY(-2px);
}

/* ====== دکمه‌های مودال ====== */
.btn-success {
    background: #a3c4a8;
    color: #2d523a;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
}

.btn-danger {
    background: #e4a8a8;
    color: #7a3e3e;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
}

.btn-secondary {
    background: #f0eae6;
    color: #6b4e5e;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
}

/* ====== هشدارها ====== */
.alert-warning {
    background: #fff8e1;
    border-right: 4px solid #f3d9b1;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 13px;
}

.alert-warning i {
    color: #f3d9b1;
    margin-left: 8px;
}

.alert-success {
    background: #d4edda;
    border-right: 4px solid #a3c4a8;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 13px;
}

.alert-success i {
    color: #a3c4a8;
    margin-left: 8px;
}

.alert-warning ul {
    margin: 0;
    padding-right: 20px;
}

.alert-warning ul li {
    margin-bottom: 3px;
}

/* ====== بج آنلاین ====== */
.badge-online {
    background: #d1ecf1;
    color: #0c5460;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
}

/* ====== مودال ====== */
.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f0eae6;
}

.modal-header h5 {
    margin: 0;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #f0eae6;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ====== واکنش‌گرا ====== */
@media (max-width: 768px) {
    .review-grid {
        grid-template-columns: 1fr;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-item.full-width {
        grid-column: span 1;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .page-header {
        flex-direction: column;
        text-align: center;
    }
    
    .info-row {
        flex-direction: column;
        gap: 3px;
    }
    
    .info-row .label {
        min-width: auto;
    }
    
    .info-row .value {
        text-align: right;
    }
}

/* ====== چاپ ====== */
@media print {
    .action-buttons-card {
        display: none !important;
    }
    .btn {
        display: none !important;
    }
}