:root{--primary:#7c3aed;--secondary:#2563eb;--gradient:linear-gradient(135deg,#7c3aed,#2563eb);--glass:#ffffff0f;--glass-border:#ffffff1f;--bg:#0f172a10;--text:#0f172a;--muted:#6b7280;--success:#10b981;--warning:#f59e0b;--error:#ef4444}.health-panel{background:linear-gradient(180deg,#ffffff0a,#ffffff05);border:1px solid #ffffff0f;border-radius:14px;box-shadow:0 6px 24px #2563eb0f;margin-bottom:12px;overflow:hidden}.health-header{align-items:center;background:linear-gradient(135deg,#7c3aed,#2563eb);background:var(--gradient);color:#fff;cursor:pointer;display:flex;justify-content:space-between;padding:12px 14px}.health-header .title{align-items:center;display:flex;font-weight:700}.health-body{background:linear-gradient(180deg,#ffffff05,#ffffff03);padding:12px}.health-row{align-items:flex-start;border-bottom:1px dashed #ffffff08;display:flex;gap:12px;padding:8px 0}.health-row:last-child{border-bottom:none}.health-row-label{color:#7c3aed;color:var(--primary);font-weight:600;min-width:130px}.health-row-tags{color:#0f172a;color:var(--text);flex:1 1;line-height:1.6;white-space:pre-wrap}@media (max-width:600px){.health-row{align-items:flex-start;flex-direction:column}.health-row-label{margin-bottom:6px;min-width:0}}.empty-timeline{color:#6b7280;color:var(--muted);padding:24px;text-align:center}.empty-timeline .emoji{font-size:36px;margin-bottom:8px}.timeline{display:flex;flex-direction:column;gap:12px;margin-top:8px}.timeline-item{align-items:flex-start;display:flex;gap:14px}.timeline-left{align-items:flex-end;display:flex;flex-direction:column;gap:8px;padding-top:6px;width:110px}.date-badge{background:linear-gradient(135deg,#7c3aed1f,#2563eb1f);border-radius:12px;color:#7c3aed;color:var(--primary);font-size:13px;font-weight:700;padding:8px 10px}.vline{background:linear-gradient(180deg,#7c3aed,#2563eb);background:linear-gradient(180deg,var(--primary),var(--secondary));border-radius:4px;height:100%;margin-top:4px;opacity:.9;width:2px}.timeline-right{display:flex;flex:1 1;flex-direction:column;gap:10px}.session-card{background:linear-gradient(180deg,#ffffff05,#ffffff03);border:1px solid #ffffff0a;border-radius:12px;box-shadow:0 6px 18px #2563eb0a;padding:12px}.session-row{align-items:center;justify-content:space-between}.session-parts,.session-row{display:flex;flex-wrap:wrap;gap:8px}.chip{background:#7c3aed1f;border-radius:999px;color:#7c3aed;color:var(--primary);font-size:13px;font-weight:600;padding:6px 10px}.session-meta{color:#6b7280;color:var(--muted);font-size:13px}.meta{font-weight:600;margin-left:8px}.meta,.notes{color:#0f172a;color:var(--text)}.notes{background:#00000005;border-radius:8px;font-size:13px;margin-top:8px;padding:8px}@media (max-width:700px){.timeline-left{width:90px}}@media (max-width:480px){.timeline-item{flex-direction:column}.timeline-left{align-items:flex-start;order:2;width:100%}.timeline-right{order:1}}.modal-overlay{align-items:center;background:#0009;bottom:0;display:flex;justify-content:center;left:0;padding:20px;position:fixed;right:0;top:0;z-index:1000}.modal-content{background:#fff;border-radius:16px;box-shadow:0 20px 60px #0003;max-height:90vh;max-width:500px;overflow-y:auto;padding:0;width:100%}.modal-header{align-items:center;background:linear-gradient(135deg,#7c3aed,#2563eb);background:var(--gradient);border-bottom:1px solid #e5e7eb;border-radius:16px 16px 0 0;color:#fff;display:flex;justify-content:space-between;padding:20px 24px}.modal-header h3{font-size:18px;font-weight:700;margin:0}.close-btn{background:none;border:none;border-radius:4px;color:#fff;cursor:pointer;font-size:18px;padding:4px}.close-btn:hover{background:#ffffff1a}.modal-form{padding:24px}.form-section{margin-bottom:24px}.section-label{color:#0f172a;color:var(--text);display:block;font-size:14px;font-weight:600;margin-bottom:12px}.selected-parts-list{display:flex;flex-direction:column;gap:8px}.part-item{align-items:center;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;display:flex;justify-content:space-between;padding:12px}.part-name{color:#0f172a;color:var(--text);font-weight:600}.part-price{color:#7c3aed;color:var(--primary);font-weight:700}.price-summary{background:#f0f9ff;border:1px solid #bae6fd;border-radius:8px;margin-bottom:24px;padding:16px}.price-row{align-items:center;display:flex;font-size:16px;font-weight:600;justify-content:space-between}.total-price{color:#7c3aed;color:var(--primary);font-size:18px}.input-group{margin-bottom:16px}.input-group label{color:#0f172a;color:var(--text);display:block;font-weight:500;margin-bottom:6px}.form-input,.form-textarea{border:1px solid #d1d5db;border-radius:8px;font-size:14px;padding:12px;transition:border-color .2s;width:100%}.form-input:focus,.form-textarea:focus{border-color:#7c3aed;border-color:var(--primary);box-shadow:0 0 0 3px #7c3aed1a;outline:none}.form-textarea{min-height:80px;resize:vertical}.payment-status{background:#f8fafc;border-radius:8px;margin-top:16px;padding:16px}.status-row{align-items:center;display:flex;justify-content:space-between;margin-bottom:8px}.status-row:last-child{margin-bottom:0}.amount.remaining{color:#f59e0b;color:var(--warning);font-weight:600}.amount.paid,.status.success{color:#10b981;color:var(--success);font-weight:600}.status.warning{color:#f59e0b;color:var(--warning);font-weight:600}.modal-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:24px}.btn{border-radius:8px;font-size:14px;padding:12px 24px;transition:all .2s}.btn.primary:hover:not(:disabled){box-shadow:0 8px 20px #7c3aed4d;transform:translateY(-1px)}.btn.primary:disabled{cursor:not-allowed;opacity:.6}.btn.secondary{background:#f3f4f6;border:1px solid #d1d5db;color:#0f172a;color:var(--text)}.btn.secondary:hover{background:#e5e7eb}.container{color:#0f172a;color:var(--text);direction:rtl;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial;padding:14px}.top-row{align-items:center;display:flex;gap:14px;margin-bottom:12px;transition:opacity .3s ease;z-index:30}@media (max-width:1024px){.top-row.sidebar-open{display:none!important}}.profile{flex:1 1;gap:12px}.avatar,.profile{align-items:center;display:flex}.avatar{background:linear-gradient(135deg,#7c3aed,#2563eb);background:var(--gradient);border-radius:12px;box-shadow:0 10px 30px #7c3aed1f;color:#fff;font-size:20px;font-weight:700;height:60px;justify-content:center;width:60px}.meta .name{font-size:18px;font-weight:700}.meta .sub{color:#6b7280;color:var(--muted);font-size:13px;margin-top:4px}.actions{gap:12px}.actions,.stats{align-items:center;display:flex}.stats{gap:8px}.stat{background:linear-gradient(180deg,#ffffff05,#ffffff03);border:1px solid #ffffff08;border-radius:12px;padding:8px 12px;text-align:center}.stat .label{color:#6b7280;color:var(--muted);font-size:12px}.stat .value{color:#0f172a;color:var(--text);font-size:16px;font-weight:700;margin-top:4px}.buttons{align-items:center;display:flex;gap:8px}.btn{border:none;border-radius:10px;cursor:pointer;font-weight:600;padding:8px 12px}.btn.ghost{background:#ffffff05;border:1px solid #ffffff08;color:#0f172a;color:var(--text)}.btn.primary{background:linear-gradient(135deg,#7c3aed,#2563eb);background:var(--gradient);box-shadow:0 8px 26px #2563eb1f;color:#fff}.btn.disabled{cursor:not-allowed;opacity:.5}.main-grid{grid-gap:14px;display:grid;gap:14px;grid-template-columns:1fr 360px;margin-top:8px;z-index:10}.map-card{background:linear-gradient(180deg,#ffffff05,#ffffff03);border:1px solid #ffffff0a;border-radius:14px;box-shadow:0 10px 40px #7c3aed0f;display:flex;flex-direction:column;height:420px;overflow:hidden}.map-card canvas{display:block;height:100%;width:100%}.map-footer{background:linear-gradient(180deg,#ffffff03,#0000);border-top:1px solid #ffffff05;justify-content:space-between;padding:10px 12px}.legend,.map-footer{align-items:center;display:flex}.legend{color:#6b7280;color:var(--muted);font-size:13px;gap:8px}.dot{border-radius:99px;display:inline-block;height:10px;margin-left:6px;width:10px}.dot.selected{background:#7c3aed;background:var(--primary);box-shadow:0 6px 18px #7c3aed2e}.dot.normal{background:#d1d5db}.selected-list{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.tag{background:#2563eb0f;border-radius:999px;color:#2563eb;color:var(--secondary);font-weight:600;padding:6px 10px}.right-card{background:linear-gradient(180deg,#ffffff05,#ffffff03);border:1px solid #ffffff0a;border-radius:14px;height:420px;overflow:auto;padding:12px}.section-title{color:#7c3aed;color:var(--primary);font-size:14px;font-weight:800;margin-bottom:8px;margin-top:6px}@media (max-width:1000px){.main-grid{grid-template-columns:1fr}.right-card{height:auto;order:2}.map-card{height:420px;order:1}}@media (max-width:480px){.avatar{font-size:16px;height:52px;width:52px}.stat .value{font-size:14px}}.discounts-list{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:12px}.discount-item{margin-bottom:8px}.discount-item:last-child{margin-bottom:0}.discount-label{align-items:center;border-radius:6px;cursor:pointer;display:flex;gap:8px;padding:8px;transition:background-color .2s}.discount-label:hover{background:#f1f5f9}.discount-label input[type=checkbox]{height:16px;width:16px}.discount-text{color:#374151;font-size:14px}.price-row.discount{color:#ef4444;font-size:14px}.price-row.final{border-top:1px solid #e5e7eb;color:#059669;font-weight:700;margin-top:8px;padding-top:8px}.discount-amount{color:#ef4444;font-weight:600}.final-price{color:#059669;font-size:18px;font-weight:700}.date-note{color:#6b7280;display:block;font-size:.8rem;margin-top:.25rem}.input-group input[type=date]{background:#f8fafc;border:1px solid #e2e8f0;cursor:not-allowed}.input-group input[type=date]:focus{border-color:#e2e8f0;box-shadow:none}@media (max-width:768px){.container{padding:10px}.top-row{align-items:flex-start;flex-direction:column;gap:16px}.actions{justify-content:space-between;width:100%}.stats{flex:1 1;justify-content:space-around}.buttons{flex:1 1;gap:10px;justify-content:flex-end}.btn{font-size:14px;min-height:44px;padding:10px 16px}.btn.primary:not(.disabled){min-width:120px;text-align:center}}@media (max-width:480px){.actions{flex-direction:column;gap:12px}.buttons,.stats{justify-content:space-between;width:100%}.btn{flex:1 1;margin:0 4px}.btn.ghost{order:2}.btn.primary{order:1}}.container{position:relative;z-index:1}.top-row{position:relative;z-index:100}.main-grid{position:relative;z-index:1}@media (max-width:600px){.modal-overlay{align-items:flex-end;padding:10px}.modal-content{border-radius:16px 16px 0 0;max-height:85vh}.modal-actions{flex-direction:column-reverse}.modal-actions .btn{margin-bottom:8px;width:100%}}@media (hover:none) and (pointer:coarse){.btn{min-height:44px;padding:12px 16px}.health-header{min-height:44px;padding:16px 14px}.chip,.tag{align-items:center;display:inline-flex;min-height:32px}}@media (max-width:360px){.button-text{font-size:12px}.btn.primary .button-text:before{content:"💾 "}}@media (max-width:480px){.btn .button-text{align-items:center;display:flex;gap:4px;justify-content:center}}.container-max{margin-inline:auto;max-width:1200px}.table-break,.table-break-word{word-break:break-word}.table-break-word{overflow-wrap:break-word}table{border-collapse:initial;border-spacing:0}td,th{border-bottom:1px solid #e5e7eb}tr:last-child td{border-bottom:none}.overflow-x-auto{scrollbar-color:#c7d2fe #f8fafc;scrollbar-width:thin}.overflow-x-auto::-webkit-scrollbar{height:6px}.overflow-x-auto::-webkit-scrollbar-track{background:#f8fafc}.overflow-x-auto::-webkit-scrollbar-thumb{background:#c7d2fe;border-radius:3px}.overflow-x-auto::-webkit-scrollbar-thumb:hover{background:#a5b4fc}