@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #D3146C;
    --primary-dark: #A60E61;
    --primary-light: rgba(211,20,108,0.12);
    --secondary: #681665;
    --accent: #F1CCAF;
    --bg-page: #F9F2F2;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FFFFFF;
    --text-primary: #231E1C;
    --text-secondary: rgba(35,30,28,0.7);
    --text-muted: #A39CA1;
    --border-color: rgba(163,156,161,0.25);
    --shadow: 0 8px 32px rgba(166,14,97,0.1);
    --radius: 16px;
    --radius-sm: 10px;
    --sidebar-width: 260px;
    --header-height: 70px;
    --gradient-primary: linear-gradient(135deg, #D3146C, #A60E61);
    --gradient-secondary: linear-gradient(135deg, #681665, #A60E61);
    --gradient-bg: linear-gradient(135deg, #F9F2F2 0%, #FEF5F8 50%, #FDF0F5 100%);
    --success: #65B32E;
    --card-bg: #fff;
    --card-border: rgba(163,156,161,0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    height: 100%;
    font-family: 'Inter', sans-serif;
    background: var(--gradient-bg);
    color: var(--text-primary);
    overflow: hidden;
}

::selection {
    background: rgba(211,20,108,0.25);
    color: #2D3748;
}

/* Login Page */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--gradient-bg);
    position: relative;
    overflow: hidden;
}

.login-body::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(211,20,108,0.1) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
}

.login-body::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(211,20,108,0.08) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
}

.login-body::before,
.login-body::after {
    z-index: 0;
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: 0 8px 40px rgba(211,20,108,0.15);
    overflow: hidden;
}

.login-header {
    text-align: center;
    padding: 40px 30px 20px;
}

.login-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
    box-shadow: 0 8px 25px rgba(166,14,97,0.3);
}

.login-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #D3146C;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.login-body-content {
    padding: 10px 30px 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group label i {
    margin-right: 6px;
    color: var(--primary);
}

.modern-input {
    width: 100% !important;
    max-width: 100% !important;
    height: 48px;
    background: #fff !important;
    border: 1.5px solid rgba(211,20,108,0.2) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text-primary) !important;
    font-size: 14px;
    padding: 0 16px !important;
    transition: all 0.3s;
}

.modern-input:focus {
    border-color: var(--primary) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(211,20,108,0.12) !important;
    outline: none !important;
}

.modern-input::placeholder { color: var(--text-muted); }

.modern-input option {
    background: #fff;
    color: var(--text-primary);
}

.filter-dropdown {
    width: 200px !important;
}

.user-profile-section {
    text-align: center;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(211,20,108,0.04);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.profile-image-container {
    width: 64px;
    height: 64px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-status {
    display: block;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
}

.user-status.verified {
    color: #65B32E;
    background: rgba(101,179,46,0.12);
}

.user-status.locked {
    color: #ef476f;
    background: rgba(239,71,111,0.12);
}

.login-error {
    display: block;
    background: rgba(255,77,77,0.15);
    border: 1px solid rgba(255,77,77,0.3);
    color: #ff6b6b;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 20px;
    text-align: center;
}

.btn-login {
    width: 100%;
    height: 48px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(211,20,108,0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211,20,108,0.4);
}

.btn-login:active {
    transform: translateY(0);
}

/* Dashboard Layout */
.dashboard-wrapper {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: #681665;
    background: linear-gradient(180deg, #681665 0%, #4f104d 100%);
    border-right: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-brand {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    gap: 12px;
    overflow: hidden;
}

.sidebar-logo-wrapper {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,0.3);
    overflow: hidden;
}

.sidebar-logo-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: none;
}

.sidebar-logo-icon {
    color: #fff;
    font-size: 20px;
}

.sidebar-brand-text {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-item:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.nav-item.active {
    background: #A60E61;
    color: #fff;
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.nav-parent {
    position: relative;
}

.nav-arrow {
    margin-left: auto !important;
    font-size: 12px !important;
    transition: transform 0.3s ease;
    width: auto !important;
}

.nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding-left: 16px;
}

.nav-parent.open .nav-submenu {
    max-height: 300px;
}

.nav-subitem {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.25s;
    margin: 2px 0;
}

.nav-subitem:hover {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.85);
}

.nav-subitem.active {
    background: #A60E61;
    color: #fff;
}

.nav-subitem i {
    width: 18px;
    text-align: center;
    font-size: 13px;
}

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.sidebar-footer .nav-item {
    color: rgba(255,255,255,0.7);
}

.sidebar-footer .nav-item:hover {
    color: #ff6b6b;
    background: rgba(255,107,107,0.12);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.top-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(211,20,108,0.06);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    width: 300px;
}

.header-search i { color: var(--text-muted); }

.header-search input {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    width: 100%;
    outline: none;
}

.header-search input::placeholder { color: var(--text-muted); }

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-profile-img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(211,20,108,0.3);
}

.user-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.user-name i { font-size: 20px; color: var(--primary); }

.user-name span:not(.fas) {
    color: var(--text-primary);
}

.salon-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(211,20,108,0.1);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.header-salon-logo {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(211,20,108,0.3);
}

.content-area {
    flex: 1;
    padding: 24px 30px 30px;
    overflow-y: auto;
}

/* Dashboard */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 700;
}

.page-header .date-badge {
    background: rgba(255,255,255,0.06);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
}

.branch-dates {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

.branch-dates span i {
    margin-right: 4px;
    color: var(--primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.3s;
    box-shadow: 0 2px 12px rgba(211,20,108,0.06);
}

.stat-card:hover {
    background: #fff;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(211,20,108,0.12);
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.stat-card-header .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-icon.rose { background: rgba(211,20,108,0.15); color: #D3146C; }
.stat-icon.gold { background: rgba(211,20,108,0.18); color: #D3146C; }
.stat-icon.blue { background: rgba(72,149,239,0.12); color: #4895ef; }
.stat-icon.green { background: rgba(101,179,46,0.12); color: #65B32E; }
.stat-icon.pink { background: rgba(239,71,111,0.12); color: #ef476f; }

.stat-card-body .stat-value {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 4px;
    color: #2D3748;
}

.stat-card-body .stat-label {
    font-size: 13px;
    color: #718096;
}

.stat-change {
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}

.stat-change.up { color: #65B32E; }
.stat-change.down { color: #ef476f; }

.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.charts-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.badge-limit {
    display: inline-block;
    background: rgba(211,20,108,0.12);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 12px;
    vertical-align: middle;
    margin-left: 8px;
}

.chart-card {
    background: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 2px 12px rgba(211,20,108,0.06);
}

.chart-card.full-width {
    grid-column: 1 / -1;
}

.chart-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.chart-card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2D3748;
}

.chart-card-header .chart-actions {
    display: flex;
    gap: 8px;
}

.chart-card-header .chart-actions select {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    padding: 6px 12px;
    font-size: 12px;
    outline: none;
}

.chart-container {
    position: relative;
    height: 300px;
}

/* Data Grid Sections */
.section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 32px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(211,20,108,0.2);
    color: var(--primary);
}

.section-title i {
    margin-right: 10px;
}

.data-grid-card {
    background: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    overflow-x: auto;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(211,20,108,0.06);
}

.grid-view {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    color: var(--text-primary);
}

.grid-view th {
    background: rgba(211,20,108,0.08);
    color: #D3146C;
    font-weight: 600;
    padding: 10px 14px;
    text-align: left;
    white-space: nowrap;
}

.grid-view td {
    padding: 8px 14px;
    border-bottom: 1px solid rgba(211,20,108,0.08);
    color: #4A5568;
}

.grid-view tr:last-child td {
    border-bottom: none;
}

.grid-view tr:hover td {
    background: rgba(211,20,108,0.03);
}

.subtotal-row td {
    background: rgba(211,20,108,0.08) !important;
    border-top: 2px solid #D3146C !important;
    font-weight: 600;
    color: #D3146C !important;
}

.subtotal-row.total-row td {
    background: rgba(211,20,108,0.15) !important;
    border-top: 2px solid #D3146C !important;
    font-weight: 700;
    color: #fff !important;
}

.cf-opening-row td {
    background: rgba(72,149,239,0.08) !important;
}
.cf-credit-row td {
    background: rgba(101,179,46,0.08) !important;
}
.cf-debit-row td {
    background: rgba(239,71,111,0.08) !important;
}
.cf-closing-row td {
    background: rgba(211,20,108,0.1) !important;
    border-top: 2px solid #D3146C !important;
    font-weight: 600;
    color: #D3146C !important;
}
.cf-total-credit-row td {
    background: rgba(101,179,46,0.15) !important;
    border-top: 2px solid #65B32E !important;
    font-weight: 700;
    color: #65B32E !important;
}
.cf-total-debit-row td {
    background: rgba(239,71,111,0.15) !important;
    border-top: 2px solid #ef476f !important;
    font-weight: 700;
    color: #ef476f !important;
}

/* Reports Page - New Card Design */
.rp-toolbar {
    margin-bottom: 20px;
}
.rp-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.rp-date-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.pill {
    background: #fff;
    border: 1px solid rgba(211,20,108,0.2);
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    color: #4A5568;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    display: inline-block;
    text-decoration: none;
}
.pill:hover {
    background: rgba(211,20,108,0.08);
    border-color: #D3146C;
    color: #D3146C;
}
.pill.active {
    background: var(--gradient-primary);
    border-color: #D3146C;
    color: #fff;
    box-shadow: 0 4px 12px rgba(211,20,108,0.25);
}
.rp-search {
    position: relative;
}
.rp-search input {
    height: 40px;
    background: #fff;
    border: 1.5px solid rgba(211,20,108,0.2);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    padding: 0 16px 0 36px;
    outline: none;
    width: 260px;
    transition: all 0.3s;
}
.rp-search input:focus {
    border-color: #D3146C;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(211,20,108,0.1);
}
.rp-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.rp-category-pills {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.cat-pill {
    background: #fff;
    border: 1px solid rgba(211,20,108,0.15);
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 500;
    color: #4A5568;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}
.cat-pill:hover {
    background: rgba(211,20,108,0.06);
    color: #D3146C;
}
.cat-pill.active {
    background: var(--gradient-primary);
    border: 2px solid #D3146C;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(211,20,108,0.3);
}
.cat-pill .count {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 0 8px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 4px;
}
.cat-pill.active .count {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.rp-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.rp-empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    color: rgba(163,156,161,0.4);
}
.rp-empty-state p {
    font-size: 15px;
    font-weight: 500;
}

/* Report Cards Grid */
.rp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}
.rp-card {
    display: flex;
    background: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(211,20,108,0.04);
}
.rp-card:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(211,20,108,0.1);
}
.rp-card-left {
    width: 80px;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.rp-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.rp-card-body {
    flex: 1;
    padding: 16px 18px 16px 14px;
    display: flex;
    flex-direction: column;
}
.rp-card-top {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.rp-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 12px;
}
.rp-badge.blue { background: rgba(72,149,239,0.15); color: #4895ef; }
.rp-badge.green { background: rgba(101,179,46,0.15); color: #65B32E; }
.rp-badge.orange { background: rgba(255,159,67,0.15); color: #ff9f43; }
.rp-badge.purple { background: rgba(155,93,229,0.15); color: #9b5de5; }
.rp-badge.pink { background: rgba(168,85,247,0.15); color: #a855f7; }
.rp-badge.teal { background: rgba(32,201,151,0.15); color: #20c997; }
.rp-badge.gray { background: rgba(255,255,255,0.08); color: var(--text-muted); }
.rp-card-body h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}
.rp-card-body p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
    flex: 1;
}
.rp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s;
    align-self: flex-start;
}
.rp-btn:hover {
    color: var(--primary-dark);
    gap: 10px;
}

/* Report Viewer */
.rv-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.rv-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.rv-export-bar {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
}
.rv-export-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    padding: 7px 14px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(211,20,108,0.25);
}
.rv-export-btn:hover {
    background: linear-gradient(135deg, #A60E61, #D3146C);
    box-shadow: 0 4px 14px rgba(211,20,108,0.4);
    transform: translateY(-1px);
}
.rv-export-btn i { font-size: 14px; }
@media (max-width: 992px) {
    .rv-header-right { flex-direction: column; align-items: flex-end; gap: 8px; }
    .rv-export-bar { flex-wrap: wrap; justify-content: flex-end; }
}
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1.5px solid rgba(211,20,108,0.2);
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #4A5568;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}
.btn-back:hover {
    background: rgba(211,20,108,0.06);
    border-color: #D3146C;
    color: #D3146C;
}
.rv-title {
    font-size: 22px;
    font-weight: 700;
}
.rv-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}
.rv-custom-range {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.rv-range-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}
.rv-range-label i {
    color: var(--primary);
    margin-right: 4px;
}
.date-input {
    width: 150px !important;
    height: 36px !important;
    font-size: 13px !important;
    color-scheme: dark;
}
.date-input::-webkit-calendar-picker-indicator {
    filter: invert(0.8);
    cursor: pointer;
}

.rv-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.rv-modal-content {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(211,20,108,0.15);
}
.rv-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}
.rv-modal-header h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.rv-modal-header h3 i { color: var(--primary); }
.rv-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
}
.rv-modal-close:hover { color: #ef476f; }
.rv-modal-body { padding: 20px; }
.rv-modal-body .form-group { margin-bottom: 14px; }
.rv-modal-body label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.rv-modal-body label i { color: var(--primary); margin-right: 4px; }
.rv-modal-body textarea { resize: vertical; }
.rv-modal-footer {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    justify-content: flex-end;
}

.report-viewer-info {
    margin-bottom: 16px;
}

/* Reports Page */
.report-search {
    position: relative;
    margin-bottom: 28px;
    max-width: 480px;
}

.report-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
}

.report-search input {
    width: 100%;
    height: 48px;
    background: #fff;
    border: 1.5px solid rgba(211,20,108,0.2);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    padding: 0 16px 0 44px;
    outline: none;
    transition: all 0.3s;
}

.report-search input:focus {
    border-color: #D3146C;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(211,20,108,0.1);
}

.report-search input::placeholder { color: var(--text-muted); }

.report-categories {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.report-section {
    background: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px 24px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(211,20,108,0.04);
}

.report-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    border-left: 3px solid var(--primary);
    padding-left: 12px;
}

.report-section-header i { font-size: 20px; }

.report-section-header h2 {
    font-size: 16px;
    font-weight: 600;
    flex: 1;
}

.report-count {
    font-size: 12px;
    font-weight: 600;
    background: rgba(255,255,255,0.06);
    padding: 2px 10px;
    border-radius: 12px;
    color: var(--text-muted);
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 8px;
}

.report-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: rgba(211,20,108,0.03);
    border: 1px solid transparent;
    color: #4A5568;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.25s;
}

.report-card:hover {
    background: rgba(211,20,108,0.06);
    border-color: rgba(211,20,108,0.15);
    color: #D3146C;
    transform: translateX(3px);
}

.report-card i {
    width: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--primary);
}

/* Appointment Calendar */
.appt-summary-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.appt-sum-card { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: var(--card-bg); border-radius: 12px; border: 1px solid var(--card-border); transition: transform 0.3s; }
.appt-sum-card:hover { transform: translateY(-2px); }
.appt-sum-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2em; }
.appt-sum-icon.blue { background: rgba(72,149,239,0.15); color: #4895ef; }
.appt-sum-icon.gold { background: rgba(211,20,108,0.18); color: #D3146C; }
.appt-sum-icon.green { background: rgba(101,179,46,0.15); color: #65B32E; }
.appt-sum-icon.pink { background: rgba(239,71,111,0.15); color: #ef476f; }
.appt-sum-value { font-size: 1.8em; font-weight: 800; color: #2D3748; line-height: 1.1; }
.appt-sum-label { font-size: 0.8em; color: #718096; text-transform: uppercase; letter-spacing: 0.5px; }

.appt-next-alert { display: flex; align-items: center; gap: 16px; padding: 16px 24px; background: linear-gradient(135deg, rgba(211,20,108,0.08), rgba(211,20,108,0.06)); border: 1px solid rgba(211,20,108,0.2); border-radius: 12px; margin-bottom: 20px; position: relative; overflow: hidden; }
.appt-next-urgent { background: linear-gradient(135deg, rgba(239,71,111,0.08), rgba(211,20,108,0.06)); border-color: rgba(239,71,111,0.3); animation: apptPulse 2s infinite; }
@keyframes apptPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(239,71,111,0.15); } 50% { box-shadow: 0 0 20px 5px rgba(239,71,111,0.1); } }
.appt-next-pulse { width: 12px; height: 12px; background: #65B32E; border-radius: 50%; animation: apptPulseDot 1.5s infinite; flex-shrink: 0; }
@keyframes apptPulseDot { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.3); opacity: 0.7; } }
.appt-next-info { flex: 1; }
.appt-next-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: #718096; margin-bottom: 4px; }
.appt-next-time { font-size: 1.2em; font-weight: 700; color: #D3146C; }
.appt-next-customer { font-size: 1em; color: #2D3748; font-weight: 600; }
.appt-next-service, .appt-next-stylist { font-size: 0.85em; color: #718096; }
.appt-next-countdown { text-align: center; flex-shrink: 0; }
.appt-next-mins { display: block; font-size: 2.2em; font-weight: 800; color: #D3146C; line-height: 1; }
.appt-next-mins-label { font-size: 0.7rem; color: #718096; text-transform: uppercase; }

.appt-calendar-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 20px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 12px; margin-bottom: 16px; }
.appt-cal-nav { display: flex; align-items: center; gap: 8px; }
.appt-cal-nav-btn { padding: 6px 14px; background: #fff; border: 1.5px solid rgba(211,20,108,0.2); border-radius: 8px; color: #4A5568; cursor: pointer; font-size: 0.85em; transition: all 0.2s; }
.appt-cal-nav-btn:hover { background: #D3146C; color: #fff; border-color: #D3146C; }
.appt-cal-title { font-size: 1.1em; font-weight: 700; color: #2D3748; margin-left: 8px; }
.appt-cal-views { display: flex; gap: 4px; }
.appt-view-btn { padding: 6px 14px; background: transparent; border: 1.5px solid rgba(211,20,108,0.15); border-radius: 8px; color: #718096; cursor: pointer; font-size: 0.8em; transition: all 0.2s; }
.appt-view-btn:hover { background: rgba(211,20,108,0.05); color: #D3146C; }
.appt-view-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.appt-cal-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.appt-filter-input, .appt-filter-select { padding: 6px 12px; background: #fff; border: 1.5px solid rgba(211,20,108,0.15); border-radius: 8px; color: #4A5568; font-size: 0.8em; }
.appt-filter-input:focus, .appt-filter-select:focus { border-color: #D3146C; outline: none; box-shadow: 0 0 0 2px rgba(211,20,108,0.1); }

.appt-day-timeline { }
.appt-hour-row { display: flex; border-bottom: 1px solid rgba(211,20,108,0.06); min-height: 60px; }
.appt-hour-label { width: 100px; padding: 8px 12px; font-size: 0.8em; color: #718096; text-align: right; border-right: 2px solid rgba(211,20,108,0.2); flex-shrink: 0; padding-top: 12px; }
.appt-hour-cards { flex: 1; padding: 6px 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.appt-hour-empty { opacity: 0; }
.appt-card { padding: 10px 14px; border-radius: 8px; cursor: pointer; border-left: 4px solid; flex: 1; min-width: 180px; transition: all 0.2s; }
.appt-card:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.appt-card.upcoming { background: rgba(72,149,239,0.1); border-left-color: #4895ef; }
.appt-card.checkedin { background: rgba(101,179,46,0.1); border-left-color: #65B32E; }
.appt-card.completed { background: rgba(0,128,0,0.1); border-left-color: #008000; }
.appt-card.cancelled { background: rgba(239,71,111,0.1); border-left-color: #ef476f; }
.appt-card.noshow { background: rgba(255,159,67,0.1); border-left-color: #ff9f43; }
.appt-card-time { font-size: 0.75em; color: #D3146C; font-weight: 700; margin-bottom: 2px; }
.appt-card-customer { font-size: 0.95em; font-weight: 700; color: #2D3748; }
.appt-card-service { font-size: 0.8em; color: #4A5568; margin-top: 2px; }
.appt-card-stylist { font-size: 0.75em; color: #718096; margin-top: 4px; }
.appt-card-status { font-size: 0.65em; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; padding: 2px 6px; border-radius: 4px; display: inline-block; }
.appt-card.upcoming .appt-card-status { background: rgba(72,149,239,0.2); color: #4895ef; }
.appt-card.checkedin .appt-card-status { background: rgba(101,179,46,0.2); color: #65B32E; }
.appt-card.cancelled .appt-card-status { background: rgba(239,71,111,0.2); color: #ef476f; }
.appt-card.noshow .appt-card-status { background: rgba(255,159,67,0.2); color: #ff9f43; }

.appt-week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.appt-week-day { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 10px; padding: 8px; min-height: 200px; }
.appt-week-today { border-color: #D3146C; background: rgba(211,20,108,0.03); }
.appt-week-day-header { font-size: 0.8em; font-weight: 700; color: #D3146C; text-align: center; padding: 4px; border-bottom: 1px solid rgba(211,20,108,0.08); margin-bottom: 6px; }
.appt-mini-card { padding: 6px 8px; border-radius: 6px; margin-bottom: 4px; cursor: pointer; border-left: 3px solid; transition: all 0.2s; }
.appt-mini-card:hover { transform: scale(1.02); }
.appt-mini-card.upcoming { background: rgba(72,149,239,0.1); border-left-color: #4895ef; }
.appt-mini-card.checkedin { background: rgba(101,179,46,0.1); border-left-color: #65B32E; }
.appt-mini-card.cancelled { background: rgba(239,71,111,0.1); border-left-color: #ef476f; }
.appt-mini-card.noshow { background: rgba(255,159,67,0.1); border-left-color: #ff9f43; }
.appt-mini-time { font-size: 0.7em; color: var(--primary); font-weight: 700; }
.appt-mini-customer { font-size: 0.75em; color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt-mini-service { font-size: 0.65em; color: rgba(255,255,255,0.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.appt-month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.appt-month-header { padding: 8px; text-align: center; font-size: 0.75em; font-weight: 700; color: #D3146C; text-transform: uppercase; }
.appt-month-cell:hover { border-color: #D3146C; }
.appt-month-today { border-color: #D3146C; background: rgba(211,20,108,0.04); }
.appt-month-empty { opacity: 0.3; cursor: default; }
.appt-month-daynum { font-size: 0.85em; font-weight: 700; color: #2D3748; margin-bottom: 2px; }
.appt-month-count { font-size: 0.65em; color: #D3146C; margin-bottom: 2px; }
.appt-month-dot { font-size: 0.6em; color: rgba(255,255,255,0.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 1px 3px; border-radius: 3px; margin-bottom: 1px; }
.appt-month-dot.upcoming { background: rgba(72,149,239,0.15); }
.appt-month-dot.checkedin { background: rgba(101,179,46,0.15); }
.appt-month-dot.cancelled { background: rgba(239,71,111,0.15); }
.appt-month-dot.noshow { background: rgba(255,159,67,0.15); }
.appt-month-more { font-size: 0.6em; color: rgba(255,255,255,0.4); }

.appt-agenda-list { }
.appt-agenda-date-header { padding: 10px 16px; background: rgba(211,20,108,0.06); border-radius: 8px; font-size: 0.9em; font-weight: 700; color: #D3146C; margin-bottom: 6px; margin-top: 12px; }
.appt-agenda-row { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-radius: 8px; margin-bottom: 4px; cursor: pointer; border-left: 4px solid; transition: all 0.2s; }
.appt-agenda-row:hover { background: rgba(211,20,108,0.03); }
.appt-agenda-row.upcoming { border-left-color: #4895ef; background: rgba(72,149,239,0.05); }
.appt-agenda-row.checkedin { border-left-color: #65B32E; background: rgba(101,179,46,0.05); }
.appt-agenda-row.cancelled { border-left-color: #ef476f; background: rgba(239,71,111,0.05); }
.appt-agenda-row.noshow { border-left-color: #ff9f43; background: rgba(255,159,67,0.05); }
.appt-agenda-time { font-size: 0.9em; font-weight: 700; color: #D3146C; width: 80px; flex-shrink: 0; }
.appt-agenda-info { flex: 1; }
.appt-agenda-customer { font-size: 0.95em; font-weight: 700; color: #2D3748; }
.appt-agenda-service { font-size: 0.8em; color: #718096; }
.appt-agenda-status { flex-shrink: 0; }
.appt-status-badge { padding: 3px 10px; border-radius: 12px; font-size: 0.7em; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.appt-status-badge.upcoming { background: rgba(72,149,239,0.2); color: #4895ef; }
.appt-status-badge.checkedin { background: rgba(101,179,46,0.2); color: #65B32E; }
.appt-status-badge.cancelled { background: rgba(239,71,111,0.2); color: #ef476f; }
.appt-status-badge.noshow { background: rgba(255,159,67,0.2); color: #ff9f43; }
.appt-agenda-empty { text-align: center; padding: 40px; color: rgba(255,255,255,0.4); }

.appt-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.appt-timeline-panel, .appt-insights-panel { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 12px; padding: 16px; }
.appt-panel-header { font-size: 1em; font-weight: 700; color: #D3146C; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(211,20,108,0.1); }
.appt-timeline { max-height: 400px; overflow-y: auto; }
.appt-tl-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.03); position: relative; }
.appt-tl-time { width: 80px; font-size: 0.8em; color: #D3146C; font-weight: 700; text-align: right; flex-shrink: 0; padding-top: 2px; }
.appt-tl-dot { width: 10px; height: 10px; border-radius: 50%; background: #D3146C; margin-top: 5px; flex-shrink: 0; position: relative; z-index: 1; }
.appt-tl-item.checkedin .appt-tl-dot { background: #65B32E; }
.appt-tl-item.cancelled .appt-tl-dot { background: #ef476f; }
.appt-tl-item.noshow .appt-tl-dot { background: #ff9f43; }
.appt-tl-content { flex: 1; }
.appt-tl-customer { font-size: 0.9em; font-weight: 700; color: #2D3748; }
.appt-tl-service { font-size: 0.8em; color: #4A5568; }
.appt-tl-stylist { font-size: 0.75em; color: #718096; }
.appt-tl-empty { text-align: center; padding: 30px; color: #A0AEC0; }

.appt-insights-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.appt-insight-item { padding: 10px 12px; background: rgba(211,20,108,0.03); border-radius: 8px; font-size: 0.85em; color: #4A5568; }
.appt-insight-item strong { color: #2D3748; }

.appt-detail-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; }
.appt-detail-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.appt-detail-popup { position: relative; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 16px; width: 90%; max-width: 480px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.appt-detail-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.appt-detail-header h3 { margin: 0; font-size: 1em; color: #D3146C; }
.appt-detail-close { background: none; border: none; color: rgba(255,255,255,0.5); font-size: 1.5em; cursor: pointer; padding: 0; line-height: 1; }
.appt-detail-close:hover { color: #ef476f; }
.appt-detail-body { padding: 16px 20px; }
.appt-detail-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(211,20,108,0.06); }
.appt-detail-label { font-size: 0.85em; color: #718096; }
.appt-detail-val { font-size: 0.85em; color: #2D3748; font-weight: 600; text-align: right; }

/* Reports responsive */
@media (max-width: 768px) {
    .report-grid { grid-template-columns: 1fr; }
    .report-section { padding: 16px; }
}

/* Scrollbar */
.content-area::-webkit-scrollbar { width: 6px; }
.content-area::-webkit-scrollbar-track { background: transparent; }
.content-area::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
.content-area::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* Responsive */
@media (max-width: 1200px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .charts-grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 992px) {
    .charts-grid-3 { grid-template-columns: 1fr; }
}

.beautician-subtotal-row td {
    background: rgba(211,20,108,0.08) !important;
    border-top: 2px solid #D3146C !important;
    border-bottom: 1px solid rgba(211,20,108,0.15) !important;
    font-weight: 600;
    color: #D3146C !important;
}

.beautician-grand-total-row td {
    background: rgba(211,20,108,0.18) !important;
    border-top: 3px double #D3146C !important;
    border-bottom: 2px solid rgba(211,20,108,0.3) !important;
    font-weight: 700;
    color: #fff !important;
    font-size: 1.05em;
}

.collection-total-row td {
    background: rgba(211,20,108,0.12) !important;
    border-top: 3px double #D3146C !important;
    border-bottom: 2px solid rgba(211,20,108,0.2) !important;
    font-weight: 700;
    color: #D3146C !important;
    font-size: 1.05em;
}

.service-subtotal-row td {
    background: rgba(211,20,108,0.1) !important;
    border-top: 2px solid #D3146C !important;
    border-bottom: 1px solid rgba(211,20,108,0.15) !important;
    font-weight: 700;
    color: #D3146C !important;
    text-shadow: none;
}

.service-grand-total-row td {
    background: rgba(211,20,108,0.2) !important;
    border-top: 3px double #D3146C !important;
    border-bottom: 2px solid rgba(211,20,108,0.3) !important;
    font-weight: 700;
    color: #fff !important;
    font-size: 1.05em;
    text-shadow: 0 1px 1px rgba(0,0,0,0.15);
}

.free-invoice-subtotal-row td {
    background: rgba(211,20,108,0.1) !important;
    border-top: 2px solid #D3146C !important;
    border-bottom: 1px solid rgba(211,20,108,0.15) !important;
    font-weight: 700;
    color: #D3146C !important;
    text-shadow: none;
}

.free-invoice-grand-total-row td {
    background: rgba(211,20,108,0.2) !important;
    border-top: 3px double #D3146C !important;
    border-bottom: 2px solid rgba(211,20,108,0.3) !important;
    font-weight: 700;
    color: #fff !important;
    font-size: 1.05em;
    text-shadow: 0 1px 1px rgba(0,0,0,0.15);
}

.gv-subtotal-row td {
    background: rgba(211,20,108,0.1) !important;
    border-top: 2px solid #D3146C !important;
    border-bottom: 1px solid rgba(211,20,108,0.15) !important;
    font-weight: 700;
    color: #D3146C !important;
    text-shadow: none;
}

.gv-grand-total-row td {
    background: rgba(211,20,108,0.2) !important;
    border-top: 3px double #D3146C !important;
    border-bottom: 2px solid rgba(211,20,108,0.3) !important;
    font-weight: 700;
    color: #fff !important;
    font-size: 1.05em;
    text-shadow: 0 1px 1px rgba(0,0,0,0.15);
}

.rv-table td:first-child {
    white-space: nowrap;
}

.subtotal-row td {
    background: rgba(211,20,108,0.1) !important;
    border-top: 2px solid #D3146C !important;
    border-bottom: 2px solid rgba(211,20,108,0.15) !important;
    font-weight: 700;
    color: #D3146C !important;
    font-size: 1.02em;
    text-shadow: none;
}

.collection-date-subtotal-row td {
    background: rgba(211,20,108,0.1) !important;
    border-top: 2px solid #D3146C !important;
    border-bottom: 2px solid rgba(211,20,108,0.15) !important;
    font-weight: 700;
    color: #D3146C !important;
    text-shadow: none;
}

.outstanding-subtotal-row td {
    background: rgba(211,20,108,0.1) !important;
    border-top: 2px solid #D3146C !important;
    border-bottom: 1px solid rgba(211,20,108,0.15) !important;
    font-weight: 700;
    color: #D3146C !important;
    text-shadow: none;
}

.outstanding-grand-total-row td {
    background: rgba(211,20,108,0.2) !important;
    border-top: 3px double #D3146C !important;
    border-bottom: 2px solid rgba(211,20,108,0.3) !important;
    font-weight: 700;
    color: #fff !important;
    font-size: 1.05em;
    text-shadow: 0 1px 1px rgba(0,0,0,0.15);
}

.product-subtotal-row td {
    background: rgba(211,20,108,0.1) !important;
    border-top: 2px solid #D3146C !important;
    font-weight: 700;
    color: #D3146C !important;
    text-shadow: none;
}

.product-grand-total-row td {
    background: rgba(211,20,108,0.2) !important;
    border-top: 3px double #D3146C !important;
    border-bottom: 2px solid rgba(211,20,108,0.3) !important;
    font-weight: 700;
    color: #fff !important;
    font-size: 1.05em;
    text-shadow: 0 1px 1px rgba(0,0,0,0.15);
}

.retail-sup-subtotal-row td {
    background: rgba(211,20,108,0.06) !important;
    border-top: 2px solid #D3146C !important;
    font-weight: 700;
    color: #D3146C !important;
}
.retail-sup-subtotal-row td:first-child {
    font-size: 1.02em;
    letter-spacing: 0.3px;
}

.retail-grand-total-row td {
    background: rgba(211,20,108,0.18) !important;
    border-top: 3px solid #D3146C !important;
    border-bottom: 2px solid rgba(211,20,108,0.3) !important;
    font-weight: 800;
    color: #fff !important;
    font-size: 1.05em;
    text-shadow: 0 1px 1px rgba(0,0,0,0.15);
}

.svc-summary-subtotal-row td {
    background: rgba(104,22,101,0.08) !important;
    border-top: 2px solid #681665 !important;
    font-weight: 700;
    color: #681665 !important;
    font-size: 0.95em;
}

.svc-summary-cat-total-row td {
    background: rgba(104,22,101,0.15) !important;
    border-top: 2px solid #681665 !important;
    border-bottom: 1px solid rgba(104,22,101,0.2) !important;
    font-weight: 700;
    color: #fff !important;
    font-size: 0.98em;
    text-shadow: 0 1px 1px rgba(0,0,0,0.15);
}

.svc-summary-grand-total-row td {
    background: rgba(211,20,108,0.2) !important;
    border-top: 3px double #D3146C !important;
    border-bottom: 2px solid rgba(211,20,108,0.3) !important;
    font-weight: 800;
    color: #fff !important;
    font-size: 1.05em;
    text-shadow: 0 1px 1px rgba(0,0,0,0.15);
}

/* ===========================
   Product Wise Sales Widget (Top 10) - Current Month
   =========================== */
.top-products-widget {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 4px 24px rgba(211,20,108,0.08);
    border: 1px solid var(--border-color);
}
.top-products-chart-wrap {
    min-height: 340px;
    position: relative;
}
.top-products-chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}
.top-products-table-wrap {
    max-height: 380px;
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
}
.top-products-table-wrap::-webkit-scrollbar { width: 4px; }
.top-products-table-wrap::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); }
.top-products-table-wrap::-webkit-scrollbar-thumb { background: #D3146C; border-radius: 4px; }
.top-products-table {
    width: 100%;
    border-collapse: collapse;
}
.top-products-table thead th {
    position: sticky;
    top: 0;
    background: rgba(211,20,108,0.06);
    color: #D3146C;
    padding: 10px 14px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(211,20,108,0.2);
    z-index: 1;
}
.top-products-table tbody tr {
    transition: background 0.2s;
    border-bottom: 1px solid rgba(211,20,108,0.04);
}
.top-products-table tbody tr:hover {
    background: rgba(211,20,108,0.04);
}
.top-products-table tbody tr:nth-child(1) {
    background: rgba(211,20,108,0.06);
}
.top-products-table tbody tr:nth-child(1) td:first-child {
    color: #D3146C;
    font-weight: 700;
}
.top-products-table tbody td {
    padding: 10px 14px;
    color: #4A5568;
    font-size: 13px;
}
.top-products-table tbody td:nth-child(1) {
    width: 36px;
    text-align: center;
    font-weight: 700;
    color: #718096;
}
@media (max-width: 768px) {
    .top-products-widget {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    .top-products-chart-wrap {
        min-height: 280px;
    }
}

/* ===========================
   Product Wise Sales (Top 10) - Current Month Widget
   =========================== */
.product-sales-widget {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 4px 24px rgba(211,20,108,0.08);
    border: 1px solid var(--border-color);
}
#productSalesChartContainer {
    position: relative;
    min-height: 400px;
}
#productSalesChart {
    width: 100% !important;
    height: 100% !important;
}
#noProductSalesMessage {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #A0AEC0;
}
#noProductSalesMessage i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

/* ===========================
   Supplier Wise Sales - Current Month Widget
   =========================== */
.supplier-sales-summary {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 4px 24px rgba(211,20,108,0.08);
    border: 1px solid var(--border-color);
}
.supplier-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}
.kpi-card {
    background: rgba(211,20,108,0.03);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}
.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(211,20,108,0.1);
}
.kpi-card-header {
    margin-bottom: 12px;
}
.kpi-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 18px;
    margin-bottom: 8px;
}
.kpi-icon.rose {
    background: rgba(183, 110, 121, 0.15);
    color: #D3146C;
}
.kpi-icon.gold {
    background: rgba(232, 197, 71, 0.18);
    color: #D3146C;
}
.kpi-icon.blue {
    background: rgba(72, 149, 239, 0.1);
    color: #4895ef;
}
.kpi-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: #65B32E;
}
.kpi-title {
    font-size: 13px;
    color: #718096;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.kpi-value {
    font-size: 28px;
    font-weight: 700;
    color: #2D3748;
    margin: 8px 0;
}
.kpi-sublabel {
    font-size: 13px;
    color: #A0AEC0;
}
.supplier-visualization {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
}
.supplier-chart-wrapper {
    background: rgba(211,20,108,0.02);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid var(--border-color);
}
.supplier-data-grid {
    background: rgba(211,20,108,0.02);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid var(--border-color);
}
.data-grid-header {
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}
.data-grid-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2D3748;
}
.data-grid-container {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 8px;
}
.data-grid-container::-webkit-scrollbar {
    width: 4px;
}
.data-grid-container::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.03);
    border-radius: 4px;
}
.data-grid-container::-webkit-scrollbar-thumb {
    background: #D3146C;
    border-radius: 4px;
}
.supplier-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(211,20,108,0.03);
    border-radius: 8px;
    border-left: 4px solid #D3146C;
    transition: background 0.3s;
}
.supplier-item:hover {
    background: rgba(211,20,108,0.05);
}
.supplier-rank {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #718096;
    background: rgba(211,20,108,0.06);
    margin-right: 10px;
    flex-shrink: 0;
}
.supplier-rank:first-child {
    color: #D3146C;
    background: rgba(211,20,108,0.12);
}
.supplier-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}
.supplier-info {
    flex: 1;
}
.supplier-name {
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 4px;
    font-size: 14px;
}
.supplier-stats {
    font-size: 13px;
    color: #718096;
}
@media (max-width: 1024px) {
    .supplier-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .supplier-kpi-grid {
        grid-template-columns: 1fr;
    }
    .supplier-visualization {
        grid-template-columns: 1fr;
    }
    .kpi-value {
        font-size: 24px;
    }
}

/* ===========================
   Product Wise Sales Analysis (Combined Chart)
   =========================== */
.product-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.ps-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 10px;
    padding: 16px 18px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 12px rgba(211,20,108,0.06);
    transition: transform 0.2s;
}
.ps-card:hover {
    transform: translateY(-2px);
}
.ps-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.ps-icon.rose { background: rgba(211,20,108,0.15); color: #D3146C; }
.ps-icon.gold { background: rgba(211,20,108,0.18); color: #D3146C; }
.ps-icon.blue { background: rgba(72,149,239,0.1); color: #4895ef; }
.ps-icon.green { background: rgba(101,179,46,0.1); color: #65B32E; }
.ps-icon.purple { background: rgba(155,93,229,0.1); color: #9b5de5; }
.ps-icon.orange { background: rgba(255,159,67,0.1); color: #ff9f43; }
.ps-body { flex: 1; min-width: 0; }
.ps-value {
    font-size: 20px;
    font-weight: 700;
    color: #2D3748;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ps-label {
    font-size: 12px;
    color: #718096;
    margin-top: 2px;
}
.product-sales-chart-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
    box-shadow: 0 4px 24px rgba(211,20,108,0.08);
    border: 1px solid var(--border-color);
}
.pcc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 15px;
    font-weight: 600;
    color: #2D3748;
}
.pcc-legend {
    display: flex;
    gap: 16px;
    font-size: 12px;
    font-weight: 400;
}
.pcc-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #718096;
}
.pcc-dot {
    width: 12px;
    height: 4px;
    border-radius: 2px;
    display: inline-block;
}
.pcc-dot.bar { background: #D3146C; }
.pcc-dot.line { background: #4895ef; }
.pcc-chart-wrap {
    position: relative;
    height: 380px;
}
@media (max-width: 900px) {
    .product-summary-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .product-summary-grid { grid-template-columns: 1fr; }
    .pcc-chart-wrap { height: 300px; }
    .pcc-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ===========================
   Employee Sales Performance (Current Financial Year)
   =========================== */
.employee-sales-widget {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 4px 24px rgba(211,20,108,0.08);
    border: 1px solid var(--border-color);
}
.emp-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.emp-visualization {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
}
.emp-chart-wrapper {
    background: rgba(211,20,108,0.02);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid var(--border-color);
}
.emp-chart-header {
    font-size: 15px;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 16px;
}
.emp-chart-container {
    position: relative;
    height: 380px;
}
#employeeSalesChart {
    width: 100% !important;
    height: 100% !important;
}
#noEmployeeSalesMessage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #A0AEC0;
}
#noEmployeeSalesMessage i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
    color: rgba(211,20,108,0.4);
}
#noEmployeeSalesMessage p {
    font-size: 16px;
    font-weight: 600;
}
.emp-data-grid {
    background: rgba(211,20,108,0.02);
    border-radius: 10px;
    padding: 16px;
    border: 1px solid var(--border-color);
    max-height: 420px;
    overflow-y: auto;
}
.emp-insight-panel {
    background: linear-gradient(135deg, rgba(211,20,108,0.03), rgba(104,22,101,0.03));
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(211,20,108,0.15);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.emp-insight-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #D3146C;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(211,20,108,0.12);
}
.emp-insight-header i {
    font-size: 18px;
}
.emp-insight-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 8px;
    padding: 12px 14px;
    box-shadow: 0 1px 6px rgba(211,20,108,0.06);
    border: 1px solid rgba(211,20,108,0.08);
}
.emp-insight-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.emp-insight-icon.gold {
    background: rgba(211,20,108,0.12);
    color: #D3146C;
}
.emp-insight-icon.warning {
    background: rgba(239,71,111,0.1);
    color: #ef476f;
}
.emp-insight-content {
    flex: 1;
    min-width: 0;
}
.emp-insight-label {
    font-size: 11px;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
    margin-bottom: 2px;
}
.emp-insight-value {
    font-size: 13px;
    font-weight: 700;
    color: #2D3748;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.emp-insight-divider {
    height: 1px;
    background: rgba(211,20,108,0.1);
    margin: 2px 0;
}
.emp-insight-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255,159,67,0.06);
    border-radius: 8px;
    border-left: 3px solid #ff9f43;
    font-size: 12px;
    color: #4A5568;
    line-height: 1.5;
}
.emp-insight-message i {
    font-size: 14px;
    margin-top: 1px;
    flex-shrink: 0;
}
.emp-insight-message span {
    flex: 1;
}
.emp-insight-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #A39CA1;
    padding-top: 4px;
}
.emp-chart-badge {
    font-size: 11px;
    color: #718096;
    font-weight: 400;
    background: rgba(211,20,108,0.06);
    padding: 2px 10px;
    border-radius: 12px;
}
@media (max-width: 1024px) {
    .emp-insight-panel { max-height: 300px; overflow-y: auto; }
}
@media (max-width: 768px) {
    .emp-insight-panel { max-height: none; }
}

/* ===========================
   Top Services by Revenue Widget
   =========================== */
.top-services-widget {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 4px 24px rgba(211,20,108,0.08);
    border: 1px solid var(--border-color);
}
.ts-fy-badge {
    font-size: 12px;
    font-weight: 400;
    color: #718096;
    background: rgba(211,20,108,0.06);
    padding: 4px 12px;
    border-radius: 20px;
    margin-left: 12px;
    white-space: nowrap;
}
.ts-fy-badge i { margin-right: 4px; color: var(--primary); }
.ts-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(211,20,108,0.02);
    border-radius: 10px;
    border: 1px solid rgba(211,20,108,0.1);
    margin-bottom: 20px;
}
.ts-pills {
    display: flex;
    gap: 4px;
}
.ts-pill {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: #718096;
    background: transparent;
    border: 1px solid rgba(211,20,108,0.15);
    transition: all 0.2s;
}
.ts-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.ts-pill.active {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
}
.ts-date-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #4A5568;
}
.ts-date-input {
    padding: 4px 8px;
    border: 1.5px solid rgba(211,20,108,0.2);
    border-radius: 6px;
    font-size: 12px;
    color: #2D3748;
    background: #fff;
    color-scheme: light;
}
.ts-date-input:focus {
    border-color: #D3146C;
    outline: none;
    box-shadow: 0 0 0 2px rgba(211,20,108,0.1);
}
.ts-apply-btn {
    padding: 5px 16px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.ts-apply-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(211,20,108,0.3);
}
.ts-visualization {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
}
.ts-chart-wrapper {
    background: rgba(211,20,108,0.02);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid var(--border-color);
}
.ts-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #2D3748;
}
.ts-count-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(211,20,108,0.1);
    padding: 2px 10px;
    border-radius: 12px;
}
.ts-chart-container {
    position: relative;
    min-height: 480px;
}
#topServicesChart {
    width: 100% !important;
    height: 100% !important;
}
#noTSServicesMessage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #A0AEC0;
}
#noTSServicesMessage i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
    color: rgba(211,20,108,0.4);
}
#noTSServicesMessage p {
    font-size: 16px;
    font-weight: 600;
}
.ts-data-panel {
    background: rgba(211,20,108,0.02);
    border-radius: 10px;
    padding: 16px;
    border: 1px solid var(--border-color);
}
.ts-data-header {
    font-size: 14px;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 12px;
}
.ts-data-scroll {
    max-height: 400px;
    overflow-y: auto;
}
.ts-rank-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.ts-rank-table thead th {
    text-align: left;
    padding: 6px 8px;
    font-size: 11px;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
    border-bottom: 2px solid rgba(211,20,108,0.1);
}
.ts-rank-table tbody td {
    padding: 8px 8px;
    border-bottom: 1px solid rgba(211,20,108,0.06);
    vertical-align: middle;
}
.ts-rank-table tbody tr:hover {
    background: rgba(211,20,108,0.03);
}
.ts-rank-table tbody tr:last-child td {
    border-bottom: none;
}
.ts-rank-num {
    width: 36px;
    font-weight: 700;
    color: #718096;
    text-align: center;
    white-space: nowrap;
}
.ts-rank-name {
    font-weight: 600;
    color: #2D3748;
    word-break: break-word;
    min-width: 0;
}
.ts-rank-value {
    font-weight: 700;
    color: #2D3748;
    text-align: right;
    white-space: nowrap;
}
.ts-rank-pct {
    color: #718096;
    text-align: right;
    font-weight: 500;
}
.ts-rank-top td { background: rgba(211,20,108,0.06); }
.ts-rank-top .ts-rank-num {
    color: #fff;
    background: #D3146C;
    border-radius: 4px;
}
.ts-rank-silver .ts-rank-num {
    color: #fff;
    background: rgba(211,20,108,0.75);
    border-radius: 4px;
}
.ts-rank-bronze .ts-rank-num {
    color: #fff;
    background: rgba(211,20,108,0.55);
    border-radius: 4px;
}
@media (max-width: 1024px) {
    .ts-visualization { grid-template-columns: 1fr; }
    .ts-data-scroll { max-height: 300px; }
}
@media (max-width: 768px) {
    .ts-filter-bar { flex-direction: column; align-items: stretch; }
    .ts-pills { flex-wrap: wrap; }
    .ts-date-inputs { justify-content: flex-start; }
    .ts-chart-container { min-height: 440px; }
}

/* ===========================
   Category Trend Insights
   =========================== */
.trend-insights {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(211,20,108,0.1);
}
.trend-insight-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.trend-insight-item {
    flex: 1;
    min-width: 180px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    color: #4A5568;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
}
.trend-insight-item i { font-size: 13px; }
.trend-insight-item.growing {
    background: rgba(101,179,46,0.08);
    border-color: rgba(101,179,46,0.2);
    color: #2F6B1E;
}
.trend-insight-item.growing i { color: #65B32E; }
.trend-insight-item.declining {
    background: rgba(239,71,111,0.08);
    border-color: rgba(239,71,111,0.2);
    color: #A02044;
}
.trend-insight-item.declining i { color: #ef476f; }
.trend-insight-item.stable {
    background: rgba(15,117,209,0.06);
    border-color: rgba(15,117,209,0.15);
    color: #0A4E8A;
}
.trend-insight-item.stable i { color: #0F75D1; }
@media (max-width: 768px) {
    .trend-insight-row { flex-direction: column; }
    .trend-insight-item { min-width: auto; }
}

.retail-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid rgba(211,20,108,0.15);
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(211,20,108,0.04);
}
.retail-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 140px;
}
.retail-filter-group label {
    font-size: 0.75rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.retail-date-input,
.retail-filter-select {
    padding: 8px 12px;
    background: #fff;
    border: 1.5px solid rgba(211,20,108,0.2);
    border-radius: 8px;
    color: #2D3748;
    font-size: 0.9rem;
    color-scheme: light;
    min-width: 140px;
}
.retail-date-input:focus,
.retail-filter-select:focus {
    border-color: #D3146C;
    outline: none;
    box-shadow: 0 0 0 2px rgba(211,20,108,0.15);
}
.retail-apply-btn {
    padding: 8px 24px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.retail-apply-btn:hover {
    background: linear-gradient(135deg, #A60E61, #D3146C);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(211,20,108,0.3);
}

.retail-table td:nth-child(1),
.retail-table th:nth-child(1) {
    min-width: 280px;
    white-space: nowrap;
}
.retail-table td:nth-child(3),
.retail-table th:nth-child(3) {
    min-width: 250px;
    white-space: nowrap;
}

.perf-grand-total-row td {
    background: rgba(211,20,108,0.18) !important;
    border-top: 3px solid #D3146C !important;
    border-bottom: 2px solid rgba(211,20,108,0.3) !important;
    font-weight: 800;
    color: #fff !important;
    font-size: 1.05em;
    text-shadow: 0 1px 1px rgba(0,0,0,0.15);
    letter-spacing: 0.3px;
}

.rv-table.perf-report td:nth-child(3),
.rv-table.perf-report th:nth-child(3) {
    min-width: 250px;
    white-space: nowrap;
}

.grid-clickable tbody tr {
    cursor: pointer;
    transition: background 0.2s;
}

.grid-clickable tbody tr:hover {
    background: rgba(211,20,108,0.06) !important;
}

.client-name-link {
    color: #D3146C;
    font-weight: 600;
    text-decoration: none;
}

.client-name-link:hover {
    color: #A60E61;
    text-decoration: underline;
}

.ai-analysis-card {
    background: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(211,20,108,0.06);
}
.ai-header {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ai-header i { font-size: 20px; }
.ai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.ai-item {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}
.ai-item strong { white-space: nowrap; }
.ai-good { background: rgba(101,179,46,0.1); border: 1px solid rgba(101,179,46,0.2); color: #65B32E; }
.ai-good i { color: #65B32E; }
.ai-warn { background: rgba(255,209,102,0.1); border: 1px solid rgba(255,209,102,0.2); color: #ffd166; }
.ai-warn i { color: #ffd166; }
.ai-bad { background: rgba(239,71,111,0.1); border: 1px solid rgba(239,71,111,0.2); color: #ef476f; }
.ai-bad i { color: #ef476f; }
.ai-info { background: rgba(72,149,239,0.1); border: 1px solid rgba(72,149,239,0.2); color: #4895ef; }
.ai-info i { color: #4895ef; }
.ai-summary {
    background: rgba(211,20,108,0.05);
    border: 1px solid rgba(211,20,108,0.12);
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.ai-summary-si {
    background: rgba(72,149,239,0.04);
    border: 1px solid rgba(72,149,239,0.1);
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .ai-grid { grid-template-columns: 1fr; }
    .ai-item { font-size: 12px; padding: 8px 10px; }
    .retail-filter-bar { flex-direction: column; gap: 10px; }
    .retail-filter-group { min-width: 100%; }
    .retail-date-input, .retail-filter-select { width: 100%; }
    .retail-apply-btn { width: 100%; }
    .appt-summary-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .appt-sum-card { padding: 12px; gap: 10px; }
    .appt-sum-value { font-size: 1.4em; }
    .appt-cal-toolbar { flex-direction: column; gap: 10px; }
    .appt-cal-nav { width: 100%; justify-content: center; }
    .appt-cal-views { width: 100%; justify-content: center; flex-wrap: wrap; }
    .appt-cal-filters { width: 100%; flex-direction: column; }
    .appt-filter-input, .appt-filter-select { width: 100%; }
    .appt-week-grid { grid-template-columns: repeat(3, 1fr); }
    .appt-month-grid { font-size: 0.8em; }
    .appt-month-cell { min-height: 50px; padding: 4px; }
    .appt-two-col { grid-template-columns: 1fr; }
    .appt-hour-label { width: 70px; font-size: 0.7em; }
    .appt-card { min-width: 140px; padding: 8px; }
    .appt-next-alert { flex-direction: column; text-align: center; }
    .appt-insights-grid { grid-template-columns: 1fr; }
    .appt-detail-popup { width: 95%; }
}

@keyframes logoEntry {
    0% { transform: scale(0.3) rotate(-15deg); opacity: 0; }
    50% { transform: scale(1.1) rotate(5deg); opacity: 0.8; }
    70% { transform: scale(0.95) rotate(-2deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes logoPulse {
    0% { box-shadow: 0 8px 25px rgba(211,20,108,0.3); }
    50% { box-shadow: 0 8px 40px rgba(211,20,108,0.5), 0 0 60px rgba(211,20,108,0.15); }
    100% { box-shadow: 0 8px 25px rgba(211,20,108,0.3); }
}

@keyframes logoFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

@keyframes salonLogoEntry {
    0% { transform: scale(0) rotate(-30deg); opacity: 0; }
    60% { transform: scale(1.15) rotate(5deg); opacity: 1; }
    80% { transform: scale(0.95) rotate(-2deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes salonLogo3DRotate {
    0% { transform: perspective(800px) rotateY(-180deg) rotateX(10deg); opacity: 0; }
    40% { transform: perspective(800px) rotateY(20deg) rotateX(-5deg); opacity: 1; }
    60% { transform: perspective(800px) rotateY(-10deg) rotateX(3deg); }
    80% { transform: perspective(800px) rotateY(5deg) rotateX(-1deg); }
    100% { transform: perspective(800px) rotateY(0deg) rotateX(0deg); opacity: 1; }
}

@keyframes salonLogo3DIdle {
    0% { transform: perspective(800px) rotateY(0deg) rotateX(0deg); }
    25% { transform: perspective(800px) rotateY(3deg) rotateX(2deg); }
    50% { transform: perspective(800px) rotateY(0deg) rotateX(0deg); }
    75% { transform: perspective(800px) rotateY(-3deg) rotateX(-2deg); }
    100% { transform: perspective(800px) rotateY(0deg) rotateX(0deg); }
}

@keyframes salonLogo3DShadow {
    0% { box-shadow: 0 10px 30px rgba(211,20,108,0.3), 0 0 0 rgba(0,0,0,0); }
    50% { box-shadow: 0 20px 50px rgba(211,20,108,0.5), 0 15px 20px rgba(0,0,0,0.15); }
    100% { box-shadow: 0 10px 30px rgba(211,20,108,0.3), 0 0 0 rgba(0,0,0,0); }
}

@keyframes salonLogoShine {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes salonLogoGlow {
    0% { box-shadow: 0 4px 15px rgba(211,20,108,0.2); }
    50% { box-shadow: 0 4px 30px rgba(211,20,108,0.4), inset 0 0 20px rgba(255,255,255,0.1); }
    100% { box-shadow: 0 4px 15px rgba(211,20,108,0.2); }
}

@keyframes salonNameSlideIn {
    0% { transform: translateY(10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.login-logo {
    animation: logoEntry 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
               logoPulse 2s ease-in-out 0.8s infinite,
               logoFloat 3s ease-in-out 1s infinite;
}

.salon-logo-section {
    text-align: center;
    padding: 15px 0 5px;
    display: none;
}

.salon-logo-section.active {
    display: block;
    animation: salonLogoEntry 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.salon-logo-3d-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    perspective: 800px;
    transform-style: preserve-3d;
    position: relative;
}

.salon-logo-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
    animation: salonLogo3DRotate 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
               salonLogo3DIdle 4s ease-in-out 1s infinite,
               salonLogo3DShadow 2s ease-in-out 1s infinite;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.salon-logo-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.4);
    animation: salonLogo3DRotate 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
               salonLogo3DIdle 4s ease-in-out 1s infinite,
               salonLogo3DShadow 2s ease-in-out 1s infinite;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    position: relative;
}

.salon-logo-3d-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.4) 45%, rgba(255,255,255,0.15) 50%, transparent 55%);
    background-size: 200% 100%;
    animation: salonLogoShine 3s ease-in-out 1.5s infinite;
    pointer-events: none;
}

.salon-logo-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    animation: salonNameSlideIn 0.4s ease-out 0.3s both;
}

.salon-logo-divider {
    width: 60px;
    height: 2px;
    background: var(--gradient-secondary);
    margin: 8px auto;
    border-radius: 1px;
    animation: salonNameSlideIn 0.4s ease-out 0.4s both;
}

/* ===== RESPONSIVE: Mobile Menu Toggle ===== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #D3146C;
    font-size: 22px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s;
    z-index: 1001;
}
.mobile-menu-btn:hover { background: rgba(211,20,108,0.08); }

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* ===== RESPONSIVE: Tablet (768px - 1024px) ===== */
@media (max-width: 1024px) {
    :root { --sidebar-width: 220px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .charts-grid { grid-template-columns: repeat(2, 1fr); }
    .chart-card.full-width { grid-column: span 2; }
    .history-stats { grid-template-columns: repeat(2, 1fr); }
    .rp-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .report-grid { grid-template-columns: repeat(2, 1fr); }
    .header-search input { width: 160px; }
}

/* ===== RESPONSIVE: Mobile (< 768px) ===== */
@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .sidebar-overlay.active { display: block; }

    .sidebar {
        position: fixed;
        top: 0; left: -280px;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        background: #681665;
        background: linear-gradient(180deg, #681665 0%, #4f104d 100%);
    }
    .sidebar.open { left: 0; }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .top-header {
        padding: 0 12px;
        gap: 8px;
        flex-wrap: nowrap;
    }
    .header-search {
        display: none;
    }
    .header-user {
        gap: 8px;
        margin-left: auto;
    }
    .header-user .user-name { font-size: 12px; }
    .header-user .salon-badge {
        padding: 4px 10px;
        font-size: 11px;
    }
    .header-profile-img { width: 30px; height: 30px; }
    .header-salon-logo { width: 18px; height: 18px; }

    .content-area { padding: 12px; }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .stat-card { padding: 14px 10px; }
    .stat-value { font-size: 20px; }
    .stat-label { font-size: 11px; }

    .charts-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .chart-card.full-width { grid-column: span 1; }
    .chart-card { padding: 12px; }
    .chart-card-header h3 { font-size: 13px; }
    .chart-container { height: 250px !important; }

    .section-title {
        font-size: 14px;
        padding: 10px 0;
    }
    .badge-limit { font-size: 10px; padding: 2px 8px; }

    .grid-view { font-size: 12px; }
    .grid-view th { padding: 8px 6px; font-size: 11px; }
    .grid-view td { padding: 8px 6px; font-size: 12px; }

    .data-grid-card {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -12px;
        padding: 0 12px;
    }

    .history-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .history-stat { padding: 12px 8px; }
    .history-stat .stat-val { font-size: 18px; }
    .history-header { flex-direction: column; text-align: center; padding: 20px 15px; }
    .history-info h2 { font-size: 18px; }
    .history-info p { font-size: 12px; }
    .history-section { padding: 12px; }
    .history-section h3 { font-size: 14px; }
    .history-table { font-size: 11px; }
    .history-table th { padding: 8px 6px; font-size: 10px; }
    .history-table td { padding: 8px 6px; font-size: 11px; }
    .tab-nav { flex-wrap: wrap; gap: 4px; }
    .tab-btn { padding: 8px 14px; font-size: 12px; }

    .rp-cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .rp-grid {
        grid-template-columns: 1fr;
    }
    .rp-card { flex-direction: column; }
    .rp-card-left { min-height: 60px; }
    .rp-card-body { padding: 12px; }
    .rp-card-body h3 { font-size: 14px; }
    .rp-card-body p { font-size: 12px; }

    .rp-toolbar { flex-direction: column; gap: 10px; }
    .rp-toolbar-row { flex-direction: column; gap: 10px; }
    .rp-date-pills { flex-wrap: wrap; }
    .rp-search { width: 100%; }
    .rp-search input { width: 100% !important; }

    .report-grid { grid-template-columns: 1fr; }

    .login-card { width: 95% !important; max-width: 400px; }
    .login-header { padding: 25px 20px 15px; }
    .login-logo { width: 65px; height: 65px; font-size: 30px; }
    .login-header h2 { font-size: 20px; }
    .login-body-content { padding: 20px; }

    .page-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    .page-header h1 { font-size: 20px; }

    .rv-toolbar { flex-direction: column; gap: 10px; }
    .rv-toolbar-row { flex-direction: column; gap: 10px; }
    .rv-range-row { flex-wrap: wrap; gap: 8px; }
    .rv-custom-range { flex-wrap: wrap; gap: 8px; }
    .rv-custom-range .date-input { width: 100% !important; min-width: 0 !important; }
    .rv-filter-row { flex-wrap: wrap; gap: 8px; }
    .rv-modal-content { width: 95%; }
    .rv-filter-row { flex-wrap: wrap; gap: 8px; }

    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

    .btn-login { width: 100%; padding: 14px; }

    .form-group { margin-bottom: 14px; }
    .form-group label { font-size: 13px; }
    .form-control { font-size: 14px; padding: 10px 12px; }

    .pnlDates { flex-direction: column; gap: 6px; }
    .pnlDates span { font-size: 11px; }
}

/* ===== RESPONSIVE: Small Mobile (< 480px) ===== */
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .stat-card { padding: 10px 8px; }
    .stat-value { font-size: 18px; }
    .stat-label { font-size: 10px; }
    .stat-icon { font-size: 16px; }

    .chart-container { height: 200px !important; }

    .login-card { width: 98% !important; padding: 0 !important; }
    .login-header { padding: 20px 15px 10px; }
    .login-logo { width: 55px; height: 55px; font-size: 26px; }
    .login-body-content { padding: 15px; }

    .history-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
    .history-stat .stat-val { font-size: 16px; }

    .tab-btn { padding: 6px 10px; font-size: 11px; }

    .top-header { height: 56px; }
    .content-area { padding: 8px; }

    .header-user .user-name span:not(.fas) { display: none; }
}

/* ===== RESPONSIVE: Landscape Phone ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .login-body { padding: 10px; }
    .login-card { max-height: 95vh; overflow-y: auto; }
    .login-header { padding: 15px; }
    .login-logo { width: 50px; height: 50px; }
}

/* ===== Attendance Penalty Report ===== */
.att-gender-header td {
    background: rgba(104,22,101,0.15) !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    color: #fff !important;
    border-top: 2px solid #681665 !important;
    border-bottom: 1px solid #681665 !important;
}
.att-emp-header td {
    background: rgba(211,20,108,0.06) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    color: #D3146C !important;
    border-bottom: 1px solid rgba(211,20,108,0.15) !important;
}
.att-emp-subtotal td {
    background: rgba(211,20,108,0.08) !important;
    font-weight: 600 !important;
    color: #D3146C !important;
    border-top: 1px solid #D3146C !important;
    border-bottom: 2px solid #D3146C !important;
    font-size: 12px !important;
}
.att-gender-subtotal td {
    background: rgba(104,22,101,0.12) !important;
    font-weight: 700 !important;
    color: #681665 !important;
    border-top: 2px solid #681665 !important;
    border-bottom: 2px solid #681665 !important;
    font-size: 13px !important;
}
.att-grand-total td {
    background: rgba(211,20,108,0.2) !important;
    font-weight: 800 !important;
    color: #fff !important;
    border-top: 3px double #D3146C !important;
    border-bottom: 2px solid rgba(211,20,108,0.3) !important;
    font-size: 14px !important;
    text-shadow: 0 1px 1px rgba(0,0,0,0.15);
}

/* ===== RESPONSIVE: Print ===== */
@media print {
    .sidebar, .top-header, .mobile-menu-btn, .sidebar-overlay { display: none !important; }
    .main-content { margin-left: 0 !important; width: 100% !important; }
    .content-area { padding: 0; }
    body { background: #fff; color: #000; overflow: visible; }
    .grid-view th { background: rgba(211,20,108,0.08) !important; color: #D3146C !important; }
    .grid-view td { color: #333 !important; border: 1px solid #ddd !important; }
}

/* ===== Placeholder page helpers (Services / Products / Employees / Reports) ===== */

.page-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 400;
}

/* Placeholder pages (Services / Products / Employees) */
.cust-empty-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.cust-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    color: var(--text-muted);
    text-align: center;
}

.cust-empty i {
    font-size: 48px;
    color: var(--border-color);
}

.cust-empty p {
    font-size: 15px;
    font-weight: 500;
}

/* Customers page (Premium Salon Theme) styles moved to Content/customers.css */
