.addBtn{background-color:#28a745;color:#fff;padding:8px 14px;border:none;border-radius:5px;cursor:pointer}.addBtn:hover{background-color:#42ca61}.updateBtn{background-color:#007bff;color:#fff;padding:8px 14px;border:none;border-radius:5px;cursor:pointer}.updateBtn:hover{background-color:#288ffd}.deleteBtn{background-color:#dc3545;color:#fff;padding:8px 14px;border:none;border-radius:5px;cursor:pointer}.deleteBtn:hover{background-color:#e63946}.canclenbtn{background-color:#6c757d;color:#fff;padding:8px 14px;border:none;border-radius:5px;cursor:pointer}.canclenbtn:hover{background-color:#868e96}.primaryColor{background-color:#f9f9f9}.sleep-dashboard{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}.sleep-table-container{overflow-x:auto;border-radius:12px;border:1px solid #e5e7eb;background:#fff}.sleep-table{width:100%;border-collapse:separate;border-spacing:0;min-width:800px}.sleep-table thead{background:#f9fafb}.sleep-table th{padding:16px 20px;text-align:left;font-weight:600;font-size:14px;color:#374151;border-bottom:2px solid #e5e7eb;white-space:nowrap;position:-webkit-sticky;position:sticky;top:0;background:#f9fafb;z-index:10}.sleep-table td{padding:18px 20px;font-size:14px;color:#374151;border-bottom:1px solid #f3f4f6;background:#fff}.sleep-table tr:hover td{background:#f9fafb}.sleep-card{overflow:hidden;transition:all .2s ease}.sleep-card:hover{border-color:#d1d5db;box-shadow:0 4px 12px rgba(0,0,0,.05)}.sleep-header-card{background:linear-gradient(135deg,#f8fafc,#f1f5f9);border:1px solid #e2e8f0;border-radius:16px;padding:24px;margin-bottom:24px}.patient-summary-card{background:#fff;border-radius:12px;border:1px solid #e5e7eb;padding:24px;margin-bottom:24px}.sleep-accordion{border:1px solid #e5e7eb;border-radius:12px;margin-bottom:16px;overflow:hidden;transition:all .3s ease}.sleep-accordion.active{border-color:#3b82f6;box-shadow:0 4px 12px rgba(59,130,246,.1)}.accordion-header{padding:20px 24px;background:#f9fafb;border-bottom:1px solid #e5e7eb;cursor:pointer;display:flex;justify-content:space-between;align-items:center;transition:background .2s ease}.accordion-header:hover{background:#f3f4f6}.accordion-content{padding:0;max-height:0;overflow:hidden;transition:all .3s ease}.accordion-content.expanded{padding:24px;max-height:5000px}.sleep-badge{display:inline-flex;align-items:center;padding:6px 12px;border-radius:20px;font-size:13px;font-weight:600;line-height:1;background:#f3f4f6;color:#374151;border:1px solid #e5e7eb}.badge-success{background:#d1fae5;color:#065f46;border-color:#a7f3d0}.badge-warning{background:#fef3c7;color:#92400e;border-color:#fde68a}.badge-danger{background:#fee2e2;color:#b91c1c;border-color:#fecaca}.badge-info{background:#dbeafe;color:#1e40af;border-color:#bfdbfe}.badge-primary{background:#e0e7ff;color:#3730a3;border-color:#c7d2fe}.sleep-btn{padding:10px 20px;border-radius:8px;font-size:14px;font-weight:600;border:none;cursor:pointer;transition:all .2s ease;display:inline-flex;align-items:center;gap:8px}.sleep-btn-primary{background:#2563eb;color:#fff}.sleep-btn-primary:hover{background:#1d4ed8;transform:translateY(-1px);box-shadow:0 4px 12px rgba(37,99,235,.2)}.sleep-btn-secondary{background:#fff;color:#374151;border:1px solid #d1d5db}.sleep-btn-secondary:hover{background:#f9fafb;border-color:#9ca3af}.sleep-input{padding:10px 16px;border:1px solid #d1d5db;border-radius:8px;font-size:14px;width:100%;transition:all .2s ease}.sleep-input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px rgba(59,130,246,.1)}.sleep-input-with-icon{padding-left:40px}.grid-cols-1{grid-template-columns:1fr}.grid-cols-4{grid-template-columns:repeat(4,1fr)}@media (max-width:768px){.grid-cols-2,.grid-cols-3,.grid-cols-4{grid-template-columns:1fr}}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-2{gap:8px}.gap-3{gap:12px}.gap-6{gap:24px}.mb-2{margin-bottom:8px}.mb-3{margin-bottom:12px}.mb-8{margin-bottom:32px}.p-4{padding:16px}.p-6{padding:24px}.px-4{padding-left:16px;padding-right:16px}.px-6{padding-left:24px;padding-right:24px}.py-2{padding-top:8px;padding-bottom:8px}.py-3{padding-top:12px;padding-bottom:12px}.py-4{padding-top:16px;padding-bottom:16px}.text-sm{font-size:14px}.text-base{font-size:16px}.text-lg{font-size:18px}.text-xl{font-size:20px}.text-2xl{font-size:24px}.font-semibold{font-weight:600}.font-bold{font-weight:700}.text-gray-600{color:#4b5563}.text-gray-700{color:#374151}.text-gray-900{color:#111827}.text-primary{color:#2563eb}.text-center{text-align:center}.sleep-loading{display:flex;justify-content:center;align-items:center;padding:80px;background:#fff;border-radius:12px}.loading-spinner{width:40px;height:40px;border:3px solid #e5e7eb;border-top-color:#2563eb;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(1turn)}}.empty-state{text-align:center;padding:80px 40px;color:#6b7280}.empty-state-icon{width:64px;height:64px;margin:0 auto 16px;color:#d1d5db}.medication-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:20px;transition:all .2s ease}.medication-card:hover{border-color:#3b82f6;box-shadow:0 4px 12px rgba(59,130,246,.1)}.medication-header{display:flex;align-items:flex-start;gap:12px;margin-bottom:16px}.medication-icon{width:40px;height:40px;border-radius:50%;background:#e0e7ff;display:flex;align-items:center;justify-content:center;flex-shrink:0}.medication-icon svg{width:20px;height:20px;color:#4f46e5}.medication-details{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:12px;gap:12px}.detail-item{display:flex;align-items:center;gap:8px}.detail-item svg{width:16px;height:16px;color:#6b7280;flex-shrink:0}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));grid-gap:16px;gap:16px;margin-bottom:32px}.stat-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:20px;text-align:center}.stat-value{font-size:32px;font-weight:700;color:#111827;margin-bottom:4px}.stat-label{font-size:14px;color:#6b7280}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:#f1f5f9;border-radius:4px}::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#94a3b8}@media (max-width:768px){.sleep-table-container{border-radius:8px}.sleep-table td,.sleep-table th{padding:12px;font-size:13px}.accordion-content.expanded,.accordion-header,.patient-summary-card,.sleep-header-card{padding:16px}}.sleep-accordion-content{padding:0}.sleep-key-value{margin-bottom:16px}.sleep-key{font-size:14px;color:#6b7280;margin-bottom:4px}.section-title,.sleep-value{font-size:16px;font-weight:600;color:#111827}.section-title{margin-bottom:16px;padding-bottom:8px;border-bottom:1px solid #e5e7eb}.sleep-grid{display:grid;grid-gap:24px;gap:24px}.grid-cols-2{grid-template-columns:repeat(2,1fr)}.grid-cols-3{grid-template-columns:repeat(3,1fr)}@media (max-width:768px){.grid-cols-2,.grid-cols-3{grid-template-columns:1fr}}.sleep-card{background:#fff;border-radius:12px;border:1px solid #e5e7eb;padding:20px}.symptoms-container{padding:16px}.symptoms-list{display:flex;flex-wrap:wrap;gap:8px}.symptom-chip{background:#f3f4f6;color:#374151;border:1px solid #e5e7eb;border-radius:16px;padding:6px 12px;font-size:13px;font-weight:500}.symptom-chip.danger{background:#fee2e2;color:#b91c1c;border-color:#fecaca}.no-symptoms{color:#6b7280;font-style:italic;padding:8px 0}.empty-medications{text-align:center;padding:40px;color:#6b7280}.empty-title{font-size:18px;font-weight:600;margin-bottom:8px}.empty-subtitle{font-size:14px;color:#9ca3af}.epworth-score{text-align:center;padding:20px}.epworth-circle{width:80px;height:80px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 12px;border:3px solid}.epworth-circle span{font-size:32px;font-weight:700}.epworth-label{font-size:20px;font-weight:700;margin-bottom:8px}.epworth-scale{font-size:12px;color:#6b7280;margin-top:8px}.flex{display:flex}.gap-4{gap:16px}.mt-4{margin-top:16px}.mt-6{margin-top:24px}.mb-4{margin-bottom:16px}.mb-6{margin-bottom:24px}.sa-wrap{padding:0}.sa-grid{display:grid;grid-template-columns:1fr;grid-gap:16px;gap:16px}.sa-section{background:#fff;border:1px solid #e5e7eb;border-radius:14px;overflow:hidden}.sa-section-h{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;background:#f9fafb;border-bottom:1px solid #e5e7eb}.sa-section-title{font-size:14px;font-weight:700;color:#111827;letter-spacing:.2px}.sa-section-meta{display:flex;gap:8px;align-items:center}.sa-section-b{padding:14px 16px}.sa-kv{display:flex;flex-wrap:wrap;gap:12px 16px}@media (max-width:768px){.sa-kv{grid-template-columns:1fr}}.sa-item{border:1px solid #eef2f7;border-radius:12px;padding:12px;background:#fff}.sa-label{font-size:12px;font-weight:700;color:#6b7280;margin-bottom:6px;line-height:1.2}.sa-value{font-size:12px;font-weight:600;color:#111827;line-height:1.25;word-break:break-word}.sa-pill{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:800;border:1px solid #e5e7eb;background:#f3f4f6;color:#374151;line-height:1;min-width:54px}.sa-pill-yes{background:#d1fae5;color:#065f46;border-color:#a7f3d0}.sa-pill-no{background:#fee2e2;color:#b91c1c;border-color:#fecaca}.sa-pill-null{background:#f3f4f6;color:#6b7280;border-color:#e5e7eb}.sa-chips{display:flex;flex-wrap:wrap;gap:8px}.sa-chip{display:inline-flex;align-items:center;padding:7px 10px;border-radius:999px;background:#f3f4f6;border:1px solid #e5e7eb;color:#374151;font-size:12px;font-weight:600}.sa-chip-yes{background:#d1fae5;border-color:#a7f3d0;color:#065f46}.sa-chip-no{background:#fee2e2;border-color:#fecaca;color:#b91c1c}.sa-cards{display:grid;grid-template-columns:1fr 1fr;grid-gap:12px;gap:12px}@media (max-width:768px){.sa-cards{grid-template-columns:1fr}}.sa-card{border:1px solid #eef2f7;border-radius:14px;overflow:hidden;background:#fff}.sa-card-h{padding:12px 14px;background:#fbfbfd;border-bottom:1px solid #eef2f7;display:flex;align-items:center;justify-content:space-between}.sa-card-title{font-size:13px;font-weight:800;color:#111827}.sa-card-b,.sa-json{padding:12px 14px}.sa-json{margin:0;border-radius:14px;border:1px solid #e5e7eb;background:#0b1220;color:#e5e7eb;font-size:12px;line-height:1.55;white-space:pre-wrap;word-break:break-word;max-height:320px;overflow:auto}.sa-empty{color:#6b7280;font-style:italic;padding:6px 0}.shx-expand{background:#fbfcff;border-top:1px solid #f1f5f9;padding:18px}.shx-shell{max-width:1200px;margin:0 auto;display:grid;grid-gap:14px;gap:14px}.shx-top{background:#fff;border:1px solid #eaecef;border-radius:16px;overflow:hidden}.shx-top-h{padding:16px 18px;background:linear-gradient(180deg,#fff,#fbfcff);display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.shx-title{font-size:15px;font-weight:800;color:#111827;line-height:1.2}.shx-subtitle{margin-top:4px;font-size:13px;color:#6b7280;font-weight:600}.shx-badges{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-end}.shx-badge{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:999px;font-size:12px;font-weight:800;border:1px solid #e5e7eb;background:#f3f4f6;color:#374151;line-height:1}.shx-badge.primary{background:#e0e7ff;border-color:#c7d2fe;color:#3730a3}.shx-badge.soft{background:#f9fafb;border-color:#e5e7eb;color:#374151}.shx-summary{padding:16px 18px;border-top:1px solid #eef2f7;background:#fff;display:grid;grid-template-columns:repeat(4,1fr);grid-gap:12px;gap:12px}@media (max-width:900px){.shx-summary{grid-template-columns:1fr 1fr}}@media (max-width:560px){.shx-summary{grid-template-columns:1fr}}.shx-mini{border:1px solid #eef2f7;border-radius:14px;padding:12px;background:#fff}.shx-mini-k{font-size:13px;color:#6b7280;font-weight:700;margin-bottom:6px}.shx-mini-v{font-size:13px;color:#111827;font-weight:800;word-break:break-word}.shx-section{background:#fff;border:1px solid #eaecef;border-radius:16px;overflow:hidden}.shx-section-h{padding:14px 16px;background:#f9fafb;border-bottom:1px solid #e5e7eb;display:flex;align-items:center;justify-content:space-between;gap:10px}.shx-section-title{font-size:14px;font-weight:900;color:#111827;letter-spacing:.2px}.shx-section-b{padding:14px 16px}.shx-kv{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:12px 14px;gap:12px 14px}@media (max-width:1100px){.shx-kv{grid-template-columns:1fr 1fr}}@media (max-width:560px){.shx-kv{grid-template-columns:1fr}}@media (max-width:768px){.shx-kv{grid-template-columns:1fr}}.shx-item{border:1px solid #eef2f7;border-radius:14px;padding:12px;background:#fff}.shx-label{font-size:13px;color:#6b7280;font-weight:700;margin-bottom:6px}.shx-value{font-size:14px;font-weight:600;color:#111827;word-break:break-word}.shx-pill{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:900;border:1px solid #e5e7eb;background:#f3f4f6;color:#374151;line-height:1;min-width:56px}.shx-pill.yes{background:#d1fae5;border-color:#a7f3d0;color:#065f46}.shx-pill.no{background:#fee2e2;border-color:#fecaca;color:#b91c1c}.shx-pill.na{background:#f3f4f6;border-color:#e5e7eb;color:#6b7280}.shx-chips{display:flex;flex-wrap:wrap;gap:8px}.shx-chip{display:inline-flex;align-items:center;padding:7px 10px;border-radius:999px;border:1px solid #e5e7eb;background:#f3f4f6;color:#374151;font-size:12px;font-weight:700}.shx-chip.yes{background:#d1fae5;border-color:#a7f3d0;color:#065f46}.shx-chip.no{background:#fee2e2;border-color:#fecaca;color:#b91c1c}.shx-cards{display:grid;grid-template-columns:1fr 1fr;grid-gap:12px;gap:12px}@media (max-width:768px){.shx-cards{grid-template-columns:1fr}}.shx-card{border:1px solid #eef2f7;border-radius:16px;overflow:hidden;background:#fff}.shx-card-h{padding:12px 14px;background:#fbfbfd;border-bottom:1px solid #eef2f7;display:flex;align-items:center;justify-content:space-between;gap:10px}.shx-card-title{font-size:13px;font-weight:900;color:#111827}.shx-card-b,.shx-json{padding:12px 14px}.shx-json{margin:0;border-radius:14px;border:1px solid #e5e7eb;background:#0b1220;color:#e5e7eb;font-size:12px;line-height:1.55;white-space:pre-wrap;word-break:break-word;max-height:340px;overflow:auto}.shx-empty{color:#6b7280;font-style:italic;padding:6px 0}.shx-table{width:100%;border-collapse:collapse;font-size:13px}.shx-table td,.shx-table th{border-bottom:1px solid #eef2f7;padding:10px;vertical-align:top}.shx-th{text-align:left;font-weight:700;font-size:12px;color:#374151;background:#f8fafc;border-bottom:1px solid #e5e7eb}.shx-td{color:#111827}.shx-td-k{width:180px;font-weight:650;color:#374151;background:#fbfdff}.shx-td-v{color:#111827}.shx-subgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:14px;gap:14px;margin-top:14px}@media (max-width:900px){.shx-subgrid{grid-template-columns:1fr}}.shx-subcard{border:1px solid #eef2f7;background:#fff;border-radius:14px;padding:12px;margin-top:14px}.shx-subtitle2{font-weight:700;color:#111827;font-size:13px;margin-bottom:10px}.dash-home-wrapper{min-height:80vh;display:flex;justify-content:center;align-items:center;padding:40px 20px}.dash-home-card{background:#fff;width:100%;max-width:1200px;padding:50px 40px;border-radius:18px;box-shadow:0 15px 40px rgba(0,0,0,.05);text-align:center;border:1px solid #e6edf4}.dash-logo img{height:70px;margin-bottom:20px}.dash-title{font-size:26px;font-weight:700;color:#1a9bdc;margin-bottom:15px}.dash-description{font-size:15px;color:#6b7280;line-height:1.6;max-width:600px;margin:0 auto 30px}.dash-divider{height:1px;background:#e5e7eb;margin:30px 0}.dash-info-grid{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:20px;gap:20px}.dash-info-box{background:#f8fbff;border:1px solid #e2e8f0;border-radius:12px;padding:20px;transition:all .25s ease}.dash-info-box h3{font-size:15px;font-weight:600;color:#1a9bdc;margin-bottom:8px}.dash-info-box p{font-size:13px;color:#6b7280}.dash-info-box:hover{transform:translateY(-4px);box-shadow:0 10px 25px rgba(0,0,0,.05)}@media (max-width:900px){.dash-info-grid{grid-template-columns:1fr}.dash-home-card{padding:35px 25px}}@page{size:A4;margin:10mm}@media print{body *{visibility:hidden!important}#sh-print-root,#sh-print-root *{visibility:visible!important}#sh-print-root{position:static!important;inset:auto!important;height:auto!important;min-height:auto!important;overflow:visible!important;background:#fff!important}.MuiDialog-container,.MuiDialog-paper,.MuiDialog-root{overflow:visible!important;height:auto!important;max-height:none!important}.shp-canvas,.shp-page{height:auto!important;overflow:visible!important}.page-break{break-before:page;page-break-before:always}.avoid-break{break-inside:avoid;page-break-inside:avoid}}.shp-canvas{background:#f8fafc;padding:16px;display:flex;justify-content:center}.shp-page{width:210mm;min-height:297mm;background:#fff;border:1px solid #eaecef;border-radius:14px;box-shadow:0 10px 30px rgba(15,23,42,.08);overflow:hidden}.shp-header,.shp-wrap{padding:14px}.shp-header{color:#000}.shp-title{font-size:18px;font-weight:950;letter-spacing:.2px}.shp-sub{font-size:11px;opacity:.95;margin-top:4px;line-height:1.35}.shp-grid2{display:grid;grid-template-columns:1fr 1fr;grid-gap:14px;gap:14px;margin-top:14px}@media (max-width:900px){.shp-grid2{grid-template-columns:1fr}}.shp-card{border:1px solid #eef2f7;background:#fff;border-radius:14px;padding:12px;break-inside:avoid;page-break-inside:avoid}.shp-card-h{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px}.shp-card-title{font-weight:800;color:#111827;font-size:13px}.shp-badge{display:inline-block;padding:3px 9px;border-radius:999px;font-size:10px;font-weight:850;border:1px solid #dbeafe;background:#eff6ff;color:#1d4ed8;white-space:nowrap}.shp-badge.ok{border-color:#a7f3d0;background:#ecfdf5;color:#065f46}.shp-badge.warn{border-color:#fde68a;background:#fffbeb;color:#92400e}.shp-badge.danger{border-color:#fecaca;background:#fef2f2;color:#991b1b}.shp-pill{display:inline-block;padding:2px 9px;border-radius:999px;font-size:10px;font-weight:850;border:1px solid}.shp-pill.yes{background:#ecfdf5;color:#065f46;border-color:#a7f3d0}.shp-pill.no{background:#fef2f2;color:#991b1b;border-color:#fecaca}.shp-pill.na{background:#f3f4f6;color:#6b7280;border-color:#e5e7eb}.shp-chips{display:flex;flex-wrap:wrap;gap:8px}.shp-chip{display:inline-block;padding:4px 10px;border-radius:999px;border:1px solid #e5e7eb;background:#f9fafb;font-size:10px;font-weight:800;color:#111827}.shp-foot{display:flex;justify-content:space-between;margin-top:12px;font-size:10px;color:#6b7280}