@import"https://fonts.googleapis.com/css2?family=Mitr:wght@300;400;500;600;700&family=Noto+Sans+Thai:wght@300;400;500;600;700&display=swap";*{margin:0;padding:0;box-sizing:border-box}:root{--brand-gradient: linear-gradient(45deg, #46C1D8, #A0D17F);--primary-color: #46C1D8;--secondary-color: #A0D17F;--text-color: #424041;--error-color: #F6132E}body{font-family:Noto Sans Thai,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#f5f5f5;color:var(--text-color)}#root{min-height:100vh}.layout{display:flex;min-height:100vh}.sidebar{width:250px;background:linear-gradient(180deg,#37a0b3,#46c1d8);color:#fff;padding:1rem}.sidebar-header{display:flex;align-items:center;gap:.75rem;padding:1rem;border-bottom:1px solid rgba(255,255,255,.2);margin-bottom:1rem}.sidebar-logo{width:40px;height:40px;border-radius:8px}.sidebar-title{font-size:1.25rem;font-weight:600}.sidebar-nav{list-style:none}.sidebar-nav li{margin-bottom:.5rem}.sidebar-nav a{display:block;padding:.75rem 1rem;color:#ffffffd9;text-decoration:none;border-radius:8px;transition:all .2s}.sidebar-nav a:hover,.sidebar-nav a.active{background:#fff3;color:#fff}.main-content{flex:1;display:flex;flex-direction:column}.topbar{background:#fff;padding:1rem 2rem;border-bottom:1px solid #e5e7eb;display:flex;justify-content:space-between;align-items:center}.topbar-user{display:flex;align-items:center;gap:1rem}.content{flex:1;padding:2rem}.btn{padding:.5rem 1rem;border:none;border-radius:6px;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s;text-decoration:none;display:inline-block}.btn-primary{background:#3b82f6;color:#fff}.btn-primary:hover{background:#2563eb}.btn-secondary{background:#6b7280;color:#fff}.btn-secondary:hover{background:#4b5563}.btn-danger{background:#ef4444;color:#fff}.btn-danger:hover{background:#dc2626}.btn-sm{padding:.375rem .75rem;font-size:.8125rem}.btn:disabled{opacity:.6;cursor:not-allowed}.card{background:#fff;border-radius:8px;padding:1.5rem;box-shadow:0 1px 3px #0000001a;margin-bottom:1.5rem}.card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:1px solid #e5e7eb}.card-title{font-size:1.25rem;font-weight:600}.form-group{margin-bottom:1.5rem}.form-label{display:block;margin-bottom:.5rem;font-weight:500;color:#374151}.form-input,.form-select,.form-textarea{width:100%;padding:.5rem .75rem;border:1px solid #d1d5db;border-radius:6px;font-size:.875rem;transition:border-color .2s}.form-input:focus,.form-select:focus,.form-textarea:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.form-textarea{resize:vertical;min-height:100px}.form-control{width:100%;padding:.5rem .75rem;border:1px solid #d1d5db;border-radius:6px;font-size:.875rem;transition:border-color .2s}.form-control:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.table{width:100%;border-collapse:collapse}.table th,.table td{padding:.75rem;text-align:left;border-bottom:1px solid #e5e7eb}.table th{background:#f9fafb;font-weight:600;color:#374151}.table tbody tr:hover{background:#f9fafb}.badge{display:inline-block;padding:.25rem .75rem;border-radius:9999px;font-size:.75rem;font-weight:500}.badge-success{background:#d1fae5;color:#065f46}.badge-warning{background:#fef3c7;color:#92400e}.badge-danger{background:#fee2e2;color:#991b1b}.badge-info,.badge-primary{background:#dbeafe;color:#1e40af}.badge-secondary{background:#e5e7eb;color:#374151}.info-section{margin-bottom:2rem;padding-bottom:1.5rem;border-bottom:1px solid #e5e7eb}.info-section:last-child{border-bottom:none}.info-section h3{font-size:1.125rem;font-weight:600;color:#1e293b;margin-bottom:1rem;padding-bottom:.5rem;border-bottom:2px solid #3b82f6;display:inline-block}.info-row{display:grid;grid-template-columns:150px 1fr;gap:1rem;padding:.75rem 0;border-bottom:1px solid #f3f4f6}.info-row:last-child{border-bottom:none}.info-label{font-weight:500;color:#6b7280;font-size:.875rem}.info-value{color:#1e293b;font-size:.875rem}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;justify-content:center;align-items:center;z-index:1000;animation:fadeIn .2s ease-out}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.modal-content{background:#fff;padding:2rem;border-radius:12px;box-shadow:0 20px 60px #0000004d;max-width:500px;width:90%;max-height:90vh;overflow-y:auto;animation:slideUp .3s ease-out}@keyframes slideUp{0%{transform:translateY(50px);opacity:0}to{transform:translateY(0);opacity:1}}.modal-content h2{font-size:1.25rem;font-weight:600;margin-bottom:1.5rem;color:#1e293b;border-bottom:2px solid #3b82f6;padding-bottom:.75rem}.btn-info{background:#06b6d4;color:#fff}.btn-info:hover{background:#0891b2}.btn-success{background:#10b981;color:#fff}.btn-success:hover{background:#059669}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem;margin-bottom:2rem}.stat-card{background:#fff;padding:1.5rem;border-radius:8px;box-shadow:0 1px 3px #0000001a}.stat-value{font-size:2rem;font-weight:700;color:#1e293b;margin-bottom:.5rem}.stat-label{color:#64748b;font-size:.875rem}.login-container{min-height:100vh;display:flex;justify-content:center;align-items:center;background:linear-gradient(135deg,#667eea,#764ba2)}.login-box{background:#fff;padding:2rem;border-radius:12px;box-shadow:0 20px 60px #0000004d;width:100%;max-width:400px}.login-logo{width:80px;height:80px;margin:0 auto 1rem;display:block;border-radius:12px}.login-title{text-align:center;font-size:1.5rem;margin-bottom:2rem;color:#1e293b}.loading{display:flex;justify-content:center;align-items:center;padding:2rem}.error-message{background:#fee2e2;color:#991b1b;padding:.75rem;border-radius:6px;margin-bottom:1rem;font-size:.875rem}.success-message{background:#d1fae5;color:#065f46;padding:.75rem;border-radius:6px;margin-bottom:1rem;font-size:.875rem}.toast-container{position:fixed;top:1rem;right:1rem;z-index:9999;display:flex;flex-direction:column;gap:.75rem;max-width:400px}.toast{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem;border-radius:8px;box-shadow:0 4px 12px #00000026;cursor:pointer;animation:slideIn .3s ease-out;min-width:300px;background:#fff}@keyframes slideIn{0%{transform:translate(400px);opacity:0}to{transform:translate(0);opacity:1}}.toast-content{display:flex;align-items:center;gap:.75rem;flex:1}.toast-icon{width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.875rem;flex-shrink:0}.toast-message{font-size:.875rem;color:#1e293b;flex:1}.toast-close{background:none;border:none;color:#64748b;cursor:pointer;font-size:1.25rem;padding:0;margin-left:.5rem;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:background-color .2s}.toast-close:hover{background-color:#f1f5f9}.toast-success{border-left:4px solid #10b981}.toast-success .toast-icon{background:#d1fae5;color:#065f46}.toast-error{border-left:4px solid #ef4444}.toast-error .toast-icon{background:#fee2e2;color:#991b1b}.toast-warning{border-left:4px solid #f59e0b}.toast-warning .toast-icon{background:#fef3c7;color:#92400e}.toast-info{border-left:4px solid #3b82f6}.toast-info .toast-icon{background:#dbeafe;color:#1e40af}.page-container{max-width:1400px;margin:0 auto}.page-header{margin-bottom:2rem}.page-title{font-size:1.875rem;font-weight:700;color:#1e293b;margin-bottom:.5rem}.tabs{display:flex;gap:.5rem;margin-bottom:1.5rem;border-bottom:2px solid #e5e7eb;padding-bottom:0}.tab{padding:.75rem 1.5rem;background:transparent;border:none;border-bottom:3px solid transparent;color:#6b7280;font-weight:500;font-size:.9375rem;cursor:pointer;transition:all .2s;white-space:nowrap;margin-bottom:-2px}.tab:hover{color:#3b82f6;background:#f9fafb}.tab.active{color:#3b82f6;border-bottom-color:#3b82f6;background:transparent}.table-container{overflow-x:auto;margin:-1.5rem;padding:1.5rem}.table{min-width:100%}.text-center{text-align:center}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:2px solid #e5e7eb}.modal-header h2{margin:0;padding:0;border:none}.modal-close{background:none;border:none;font-size:1.5rem;color:#9ca3af;cursor:pointer;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:6px;transition:all .2s}.modal-close:hover{background:#f3f4f6;color:#1e293b}.modal-body{margin-bottom:1.5rem;max-height:60vh;overflow-y:auto;padding-right:.5rem}.modal-footer{display:flex;justify-content:flex-end;gap:.75rem;padding-top:1rem;border-top:1px solid #e5e7eb}.form-checkbox{display:flex;align-items:center;gap:.5rem;cursor:pointer;-webkit-user-select:none;user-select:none}.form-checkbox input[type=checkbox]{width:18px;height:18px;cursor:pointer;accent-color:#3b82f6}.form-checkbox span{color:#374151;font-weight:400}.loading-spinner{display:flex;justify-content:center;align-items:center;padding:3rem;color:#6b7280}.loading-spinner:before{content:"";width:40px;height:40px;border:4px solid #e5e7eb;border-top-color:#3b82f6;border-radius:50%;animation:spin .8s linear infinite;margin-right:1rem}.divider{height:1px;background:#e5e7eb;margin:1.5rem 0}.w-full{width:100%}.text-right{text-align:right}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}code{background:#f1f5f9;padding:.25rem .5rem;border-radius:4px;font-family:Monaco,Courier New,monospace;font-size:.85em;color:#0f172a;border:1px solid #e2e8f0}.form-input:disabled,.form-select:disabled{background-color:#f9fafb;cursor:not-allowed;opacity:.6}.table thead th{position:sticky;top:0;background:#f9fafb;z-index:10;font-size:.8125rem;text-transform:uppercase;letter-spacing:.05em}.table tbody tr{transition:background-color .15s}.table tbody tr:hover{background:#f8fafc}.card{transition:box-shadow .2s}.card:hover{box-shadow:0 4px 6px #00000012}.btn-group{display:inline-flex;gap:.5rem}.alert{padding:.875rem 1rem;border-radius:6px;margin-bottom:1rem;display:flex;align-items:center;gap:.75rem}.alert-info{background:#eff6ff;color:#1e40af;border-left:4px solid #3b82f6}.alert-warning{background:#fffbeb;color:#92400e;border-left:4px solid #f59e0b}.alert-success{background:#f0fdf4;color:#065f46;border-left:4px solid #10b981}.alert-danger{background:#fef2f2;color:#991b1b;border-left:4px solid #ef4444}@media (max-width: 1024px){.sidebar{width:220px}.topbar{padding:1rem 1.5rem}}@media (max-width: 768px){.layout{flex-direction:column}.sidebar{width:100%;padding:.75rem}.sidebar-header{padding:.75rem}.sidebar-nav{display:flex;overflow-x:auto;gap:.5rem}.sidebar-nav li{margin-bottom:0}.sidebar-nav a{white-space:nowrap;padding:.5rem 1rem}.content{padding:1rem}.topbar{padding:.75rem 1rem;flex-wrap:wrap}.stats-grid{grid-template-columns:1fr}.card{padding:1rem}.card-header{flex-direction:column;align-items:flex-start;gap:1rem}.table{font-size:.875rem}.table th,.table td{padding:.5rem}.toast-container{left:.5rem;right:.5rem;top:.5rem;max-width:none}.toast{min-width:auto}.form-group{margin-bottom:1rem}.btn{padding:.625rem 1rem;font-size:.875rem}}@media (max-width: 480px){body{font-size:14px}.sidebar-title{font-size:1rem}.card-title{font-size:1.125rem}.content,.card{padding:.75rem}.table{display:block;overflow-x:auto;white-space:nowrap}.stat-value{font-size:1.5rem}.stat-label{font-size:.8125rem}.toast{padding:.75rem 1rem}.toast-message{font-size:.8125rem}.login-box{padding:1.5rem;margin:1rem}.btn-sm{padding:.25rem .5rem;font-size:.75rem}}.analytics-page{min-height:100vh;background:#f5f7fa}.analytics-header{position:relative;background:var(--brand-gradient);padding:2rem;overflow:hidden}.analytics-header-bg{position:absolute;top:0;left:0;right:0;bottom:0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='80' cy='20' r='50' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='10' cy='90' r='40' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E");background-size:cover}.analytics-header-content{position:relative;display:flex;justify-content:space-between;align-items:center;max-width:1400px;margin:0 auto}.analytics-title{display:flex;align-items:center;gap:12px;font-size:28px;font-weight:700;color:#fff;margin:0}.title-icon{font-size:32px}.analytics-subtitle{color:#ffffffe6;font-size:14px;margin:8px 0 0}.header-stat{display:flex;flex-direction:column;align-items:flex-end;background:#fff3;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:16px 24px;border-radius:16px}.header-stat-value{font-size:28px;font-weight:700;color:#fff}.header-stat-label{font-size:12px;color:#ffffffe6}.analytics-filter-section{background:#fff;padding:16px 24px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;box-shadow:0 2px 8px #0000000f;position:sticky;top:0;z-index:10}.filter-presets{display:flex;gap:8px;flex-wrap:wrap}.preset-btn{padding:8px 16px;border:2px solid #e5e7eb;background:#fff;border-radius:20px;font-size:13px;font-weight:500;color:#6b7280;cursor:pointer;transition:all .2s}.preset-btn:hover{border-color:var(--primary-color);color:var(--primary-color)}.preset-btn.active{background:var(--primary-color);border-color:var(--primary-color);color:#fff}.filter-custom{display:flex;align-items:center;gap:12px}.custom-date-inputs{display:flex;align-items:center;gap:8px}.date-input{padding:8px 12px;border:2px solid #e5e7eb;border-radius:8px;font-size:13px;color:#374151;transition:border-color .2s}.date-input:focus{outline:none;border-color:var(--primary-color)}.date-separator{color:#9ca3af;font-size:13px}.filter-apply-btn{padding:8px 20px;background:var(--primary-color);border:none;border-radius:8px;color:#fff;font-size:13px;font-weight:500;cursor:pointer;transition:all .2s}.filter-apply-btn:hover{background:#3fb3c8}.analytics-error{display:flex;align-items:center;gap:8px;margin:16px 24px;padding:12px 16px;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;color:#dc2626;font-size:14px}.analytics-content{padding:24px;max-width:1400px;margin:0 auto}.analytics-section{margin-bottom:32px}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.section-title{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:600;color:#1f2937;margin:0}.section-icon{font-size:24px}.analytics-cards-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:20px}.analytics-cards-grid.four-cols{grid-template-columns:repeat(4,1fr)}.analytics-cards-grid.two-cols{grid-template-columns:repeat(2,1fr)}.analytics-card{background:#fff;border-radius:16px;padding:24px;display:flex;align-items:flex-start;gap:16px;box-shadow:0 2px 12px #0000000f;transition:transform .2s,box-shadow .2s}.analytics-card:hover{transform:translateY(-2px);box-shadow:0 4px 20px #0000001a}.card-icon-wrapper{width:56px;height:56px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:28px;flex-shrink:0}.card-icon-wrapper.revenue{background:linear-gradient(135deg,#10b981,#34d399)}.card-icon-wrapper.bookings{background:linear-gradient(135deg,#3b82f6,#60a5fa)}.card-icon-wrapper.avg{background:linear-gradient(135deg,#8b5cf6,#a78bfa)}.card-icon-wrapper.customer{background:linear-gradient(135deg,#46c1d8,#5fcadb)}.card-icon-wrapper.repeat{background:linear-gradient(135deg,#f59e0b,#fbbf24)}.card-content{display:flex;flex-direction:column;gap:4px}.card-label{font-size:13px;color:#6b7280}.card-value{font-size:28px;font-weight:700;color:#1f2937}.card-meta{font-size:12px;color:#9ca3af}.analytics-card.mini-card{flex-direction:column;align-items:stretch;padding:20px;gap:8px;border-left:4px solid #e5e7eb}.analytics-card.mini-card.success{border-left-color:#10b981}.analytics-card.mini-card.danger{border-left-color:#ef4444}.analytics-card.mini-card.info{border-left-color:#3b82f6}.mini-card-header{display:flex;align-items:center;gap:8px}.mini-icon{font-size:16px}.mini-label{font-size:13px;color:#6b7280}.mini-value{font-size:28px;font-weight:700;color:#1f2937}.mini-value.large{font-size:32px}.mini-percent{font-size:12px;color:#9ca3af}.chart-card{background:#fff;border-radius:16px;padding:24px;box-shadow:0 2px 12px #0000000f;margin-bottom:20px}.chart-title{font-size:16px;font-weight:600;color:#1f2937;margin:0 0 20px}.horizontal-bar-chart{display:flex;flex-direction:column;gap:16px}.bar-item{display:flex;flex-direction:column;gap:8px}.bar-label{display:flex;justify-content:space-between;align-items:center}.bar-name{font-size:14px;font-weight:500;color:#374151}.bar-value{font-size:14px;font-weight:600;color:#1f2937}.bar-track{height:32px;background:#f3f4f6;border-radius:8px;overflow:hidden}.bar-fill{height:100%;border-radius:8px;display:flex;align-items:center;justify-content:flex-end;padding-right:12px;transition:width .5s ease;min-width:fit-content}.bar-count{color:#fff;font-size:12px;font-weight:500;white-space:nowrap}.vertical-bar-chart{display:flex;align-items:flex-end;justify-content:space-around;height:220px;gap:16px;padding-top:20px}.v-bar-item{flex:1;display:flex;flex-direction:column;align-items:center;height:100%;max-width:80px}.v-bar-value{font-size:11px;font-weight:600;color:#1f2937;margin-bottom:8px;white-space:nowrap}.v-bar-track{flex:1;width:100%;background:#f3f4f6;border-radius:8px 8px 0 0;display:flex;align-items:flex-end;overflow:hidden}.v-bar-fill{width:100%;background:linear-gradient(180deg,var(--primary-color),#5fcadb);border-radius:8px 8px 0 0;transition:height .5s ease;min-height:4px}.v-bar-label{font-size:11px;color:#6b7280;margin-top:8px;white-space:nowrap}.status-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}.status-card{display:flex;flex-direction:column;align-items:center;padding:20px 16px;border-radius:12px;text-align:center;transition:transform .2s}.status-card:hover{transform:scale(1.02)}.status-icon{font-size:24px;margin-bottom:8px}.status-count{font-size:28px;font-weight:700}.status-name{font-size:12px;color:#6b7280;margin-top:4px}.leaderboard-card{background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 2px 12px #0000000f}.leaderboard-item{display:flex;align-items:center;padding:16px 20px;gap:16px;border-bottom:1px solid #f3f4f6;transition:background .2s}.leaderboard-item:hover{background:#f9fafb}.leaderboard-item:last-child{border-bottom:none}.leaderboard-item.top-three{background:linear-gradient(90deg,#fef9e7,#fff)}.rank-badge-wrapper{width:40px;display:flex;justify-content:center}.rank-badge{font-size:28px}.rank-number{width:32px;height:32px;background:#f3f4f6;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;color:#6b7280}.caregiver-info{display:flex;align-items:center;gap:12px;flex:1}.caregiver-avatar{width:44px;height:44px;background:var(--brand-gradient);border-radius:12px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:600;font-size:18px}.caregiver-details{display:flex;flex-direction:column;gap:2px}.caregiver-name{font-size:15px;font-weight:600;color:#1f2937}.caregiver-type{font-size:12px;color:#6b7280}.caregiver-stats{display:flex;gap:24px}.caregiver-stats .stat-item{display:flex;flex-direction:column;align-items:flex-end;gap:2px;min-width:80px}.caregiver-stats .stat-label{font-size:11px;color:#9ca3af}.caregiver-stats .stat-value{font-size:14px;font-weight:600;color:#1f2937}.caregiver-stats .stat-item.revenue .stat-value{color:#10b981}.caregiver-stats .stat-value small{font-size:11px;color:#9ca3af;font-weight:400;margin-left:4px}.customer-list{display:flex;flex-direction:column;gap:8px}.customer-item{display:flex;align-items:center;padding:14px 16px;background:#f9fafb;border-radius:12px;gap:16px;transition:all .2s}.customer-item:hover{background:#f3f4f6}.customer-rank{width:36px;display:flex;justify-content:center}.customer-rank .crown{font-size:24px}.customer-rank .rank-num{width:28px;height:28px;background:#e5e7eb;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;color:#6b7280}.customer-item .customer-info{flex:1;display:flex;flex-direction:column;gap:2px}.customer-item .customer-name{font-size:14px;font-weight:600;color:#1f2937}.customer-item .customer-phone{font-size:12px;color:#6b7280}.customer-value{display:flex;flex-direction:column;align-items:flex-end;gap:2px}.value-amount{font-size:16px;font-weight:700;color:#10b981}.value-bookings{font-size:11px;color:#9ca3af}.analytics-skeleton-card{background:#fff;border-radius:16px;padding:24px;display:flex;flex-direction:column;gap:12px}@media (max-width: 1024px){.analytics-cards-grid,.analytics-cards-grid.four-cols{grid-template-columns:repeat(2,1fr)}.caregiver-stats{gap:16px}.caregiver-stats .stat-item{min-width:60px}}@media (max-width: 768px){.analytics-header{padding:1.5rem}.analytics-header-content{flex-direction:column;align-items:flex-start;gap:16px}.header-stat{align-items:flex-start;width:100%}.analytics-filter-section{flex-direction:column;align-items:stretch;padding:12px 16px}.filter-presets{justify-content:center}.filter-custom{flex-direction:column;width:100%}.custom-date-inputs{width:100%;flex-wrap:wrap}.date-input{flex:1;min-width:120px}.filter-apply-btn{width:100%;padding:12px}.analytics-content{padding:16px}.analytics-cards-grid,.analytics-cards-grid.four-cols,.analytics-cards-grid.two-cols{grid-template-columns:1fr}.analytics-card{padding:16px}.card-value{font-size:24px}.leaderboard-item{flex-wrap:wrap;gap:12px}.caregiver-info{flex:1;min-width:150px}.caregiver-stats{width:100%;justify-content:space-between;padding-left:56px}.vertical-bar-chart{height:180px;gap:8px}.v-bar-value{font-size:9px}}.reports-page{padding:0;background:var(--bg-color);min-height:100vh}.reports-header{background:var(--brand-gradient);padding:32px 24px;color:#fff;margin-bottom:24px}.header-content{max-width:1400px;margin:0 auto}.reports-header .header-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.reports-header .title-section h1{font-size:28px;font-weight:700;margin:0 0 4px;color:#fff}.reports-header .subtitle{font-size:14px;opacity:.9;margin:0}.reports-header .header-actions{display:flex;gap:12px;flex-shrink:0}.reports-header .btn-header{display:flex;align-items:center;gap:8px;padding:10px 16px;border-radius:12px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s;border:none}.btn-header.outline{background:#ffffff26;color:#fff;border:1px solid rgba(255,255,255,.3)}.btn-header.outline:hover{background:#ffffff40}.btn-header.solid{background:#fff;color:var(--primary-color)}.btn-header.solid:hover{transform:translateY(-2px);box-shadow:0 4px 12px #0003}.header-stats{display:flex;gap:32px;flex-wrap:wrap}.header-stat{display:flex;flex-direction:column;gap:4px}.stat-label{font-size:12px;opacity:.8;text-transform:uppercase;letter-spacing:.5px}.stat-value{font-size:20px;font-weight:600}.reports-container{max-width:1400px;margin:0 auto;padding:0 24px 32px}.section-title{display:flex;align-items:center;gap:8px;font-size:18px;font-weight:600;color:var(--text-primary);margin-bottom:16px}.section-title .title-icon{font-size:20px}.report-cards-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:32px}.report-card{background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 2px 8px #0000000f;transition:all .3s ease;border:1px solid var(--border-color)}.report-card:hover{transform:translateY(-4px);box-shadow:0 8px 24px #0000001f}.report-card.selected{border-color:var(--primary-color);box-shadow:0 0 0 3px #3b82f633}.card-gradient{height:8px;width:100%}.card-body{padding:20px}.card-icon-title{display:flex;align-items:center;gap:12px;margin-bottom:12px}.card-icon-wrap{width:48px;height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:24px}.card-title{font-size:16px;font-weight:600;color:var(--text-primary);margin:0}.card-description{font-size:13px;color:var(--text-secondary);line-height:1.5;margin-bottom:16px}.card-features{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.feature-tag{display:flex;align-items:center;gap:4px;background:var(--bg-color);padding:4px 10px;border-radius:20px;font-size:11px;color:var(--text-secondary)}.card-actions{display:flex;gap:8px}.card-actions .btn{flex:1;padding:10px 16px;border-radius:10px;font-size:13px;font-weight:500;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center;gap:6px}.card-actions .btn-quick{background:var(--bg-color);border:1px solid var(--border-color);color:var(--text-primary)}.card-actions .btn-quick:hover{background:var(--border-color)}.card-actions .btn-configure{background:var(--primary-color);border:none;color:#fff}.card-actions .btn-configure:hover{background:var(--primary-hover);transform:translateY(-1px)}.report-filters{background:#fff;border-radius:16px;padding:24px;margin-bottom:32px;box-shadow:0 2px 8px #0000000f;border:1px solid var(--border-color)}.filters-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.selected-report{display:flex;align-items:center;gap:12px}.selected-icon{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:20px}.selected-info h3{font-size:16px;font-weight:600;color:var(--text-primary);margin:0 0 2px}.selected-info p{font-size:12px;color:var(--text-secondary);margin:0}.btn-change{background:var(--bg-color);border:1px solid var(--border-color);padding:8px 16px;border-radius:8px;font-size:13px;color:var(--text-secondary);cursor:pointer;transition:all .2s}.btn-change:hover{background:var(--border-color)}.quick-dates{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}.quick-date-btn{padding:8px 16px;border-radius:20px;font-size:13px;font-weight:500;cursor:pointer;transition:all .2s;border:1px solid var(--border-color);background:#fff;color:var(--text-secondary)}.quick-date-btn:hover{background:var(--bg-color);border-color:var(--primary-color);color:var(--primary-color)}.quick-date-btn.active{background:var(--primary-color);border-color:var(--primary-color);color:#fff}.filters-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:20px}.filter-group label{display:block;font-size:12px;font-weight:500;color:var(--text-secondary);margin-bottom:6px;text-transform:uppercase;letter-spacing:.5px}.filter-group input,.filter-group select{width:100%;padding:10px 14px;border:1px solid var(--border-color);border-radius:10px;font-size:14px;background:#fff;color:var(--text-primary);transition:all .2s}.filter-group input:focus,.filter-group select:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 3px #3b82f61a}.export-actions{display:flex;gap:12px;padding-top:20px;border-top:1px solid var(--border-color)}.btn-export{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px 24px;border-radius:12px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s;border:none}.btn-export.excel{background:linear-gradient(135deg,#10b981,#34d399);color:#fff}.btn-export.excel:hover{transform:translateY(-2px);box-shadow:0 4px 12px #10b98166}.btn-export.pdf{background:linear-gradient(135deg,#ef4444,#f87171);color:#fff}.btn-export.pdf:hover{transform:translateY(-2px);box-shadow:0 4px 12px #ef444466}.btn-export:disabled{opacity:.5;cursor:not-allowed;transform:none!important;box-shadow:none!important}.reports-layout{display:grid;grid-template-columns:1fr 350px;gap:24px}.reports-main,.reports-sidebar{display:flex;flex-direction:column;gap:24px}.receipt-card{background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 2px 8px #0000000f;border:1px solid var(--border-color)}.receipt-header{background:linear-gradient(135deg,#8b5cf6,#a78bfa);padding:16px 20px;color:#fff}.receipt-header h3{font-size:16px;font-weight:600;margin:0 0 4px;display:flex;align-items:center;gap:8px}.receipt-header p{font-size:12px;opacity:.9;margin:0}.receipt-body{padding:20px}.receipt-form{display:flex;flex-direction:column;gap:16px}.form-group label{display:block;font-size:12px;font-weight:500;color:var(--text-secondary);margin-bottom:6px}.form-group input{width:100%;padding:10px 14px;border:1px solid var(--border-color);border-radius:10px;font-size:14px;transition:all .2s}.form-group input:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 3px #3b82f61a}.btn-generate{width:100%;padding:12px;background:linear-gradient(135deg,#8b5cf6,#a78bfa);border:none;border-radius:10px;color:#fff;font-size:14px;font-weight:500;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;transition:all .2s}.btn-generate:hover{transform:translateY(-2px);box-shadow:0 4px 12px #8b5cf666}.history-card{background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 2px 8px #0000000f;border:1px solid var(--border-color)}.history-header{padding:16px 20px;border-bottom:1px solid var(--border-color);display:flex;justify-content:space-between;align-items:center}.history-header h3{font-size:16px;font-weight:600;color:var(--text-primary);margin:0;display:flex;align-items:center;gap:8px}.btn-clear{background:none;border:none;font-size:12px;color:var(--text-tertiary);cursor:pointer}.btn-clear:hover{color:var(--danger-color)}.history-list{max-height:300px;overflow-y:auto}.history-item{display:flex;align-items:center;gap:12px;padding:12px 20px;border-bottom:1px solid var(--border-color);transition:background .2s}.history-item:last-child{border-bottom:none}.history-item:hover{background:var(--bg-color)}.history-icon{width:36px;height:36px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0}.history-icon.excel{background:#10b9811a}.history-icon.pdf{background:#ef44441a}.history-info{flex:1;min-width:0}.history-info h4{font-size:13px;font-weight:500;color:var(--text-primary);margin:0 0 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-info p{font-size:11px;color:var(--text-tertiary);margin:0}.btn-download-history{width:32px;height:32px;border-radius:8px;border:1px solid var(--border-color);background:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:14px;transition:all .2s;flex-shrink:0}.btn-download-history:hover{background:var(--primary-color);border-color:var(--primary-color);color:#fff}.history-empty{padding:32px 20px;text-align:center}.history-empty .empty-icon{font-size:32px;margin-bottom:8px}.history-empty p{font-size:13px;color:var(--text-tertiary);margin:0}.tips-card{background:linear-gradient(135deg,#fef3c7,#fde68a);border-radius:16px;padding:20px;border:1px solid #F59E0B}.tips-header{display:flex;align-items:center;gap:8px;margin-bottom:16px}.tips-header h3{font-size:14px;font-weight:600;color:#92400e;margin:0}.tips-grid{display:flex;flex-direction:column;gap:12px}.tip-item{display:flex;gap:10px;font-size:12px;color:#78350f;line-height:1.4}.tip-icon{flex-shrink:0}.loading-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#ffffffe6;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:1000;gap:16px}.loading-overlay .spinner{width:48px;height:48px;border:4px solid var(--border-color);border-top-color:var(--primary-color);border-radius:50%;animation:spin 1s linear infinite}.loading-overlay p{font-size:16px;color:var(--text-secondary)}@keyframes spin{to{transform:rotate(360deg)}}.reports-skeleton{padding:24px}.skeleton-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.skeleton-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:24px}.skeleton-card{background:#fff;border-radius:16px;padding:20px;height:200px}.skeleton-filters{background:#fff;border-radius:16px;padding:24px;height:250px}@media (max-width: 1200px){.reports-layout{grid-template-columns:1fr}.reports-sidebar{flex-direction:row;flex-wrap:wrap}.receipt-card,.history-card,.tips-card{flex:1;min-width:280px}}@media (max-width: 1024px){.report-cards-grid,.skeleton-cards{grid-template-columns:repeat(2,1fr)}}@media (max-width: 768px){.reports-header{padding:24px 16px}.reports-header .header-top{flex-direction:column}.reports-header .header-actions{width:100%}.reports-header .btn-header{flex:1;justify-content:center}.header-stats{gap:24px}.reports-container{padding:0 16px 24px}.report-cards-grid,.skeleton-cards{grid-template-columns:1fr}.report-filters{padding:16px}.filters-header{flex-direction:column;gap:12px;align-items:flex-start}.filters-grid{grid-template-columns:1fr}.export-actions{flex-direction:column}.btn-export{width:100%}.reports-sidebar{flex-direction:column}.receipt-card,.history-card,.tips-card{min-width:unset}}
