@import"https://fonts.googleapis.com/css2?family=Noto+Sans+Georgian:wght@400;500;600;700&family=Noto+Sans:wght@400;500;600;700&display=swap";.app{display:grid;grid-template-columns:280px 1fr;min-height:100vh}.app:has(.split){height:100vh;overflow:hidden}.app.collapsed{grid-template-columns:92px 1fr}.sidebar{background:#0b3a6e;color:#fff;padding:20px 16px;display:flex;flex-direction:column;gap:12px;position:relative;overflow:visible}.sidebar.collapsed{align-items:stretch;padding:12px 8px;gap:10px}.sidebar.collapsed .brand{flex-direction:column;align-items:center}.sidebar.collapsed .brand>div{display:none}.sidebar.collapsed .primary{font-size:11px;padding:8px 6px;line-height:1.25}.sidebar-toggle{width:36px;height:36px;border:0;border-radius:8px;background:#ffffff29;color:#fff;font-size:26px;line-height:1;flex-shrink:0}.sidebar-toggle:hover{background:#ffffff47}.sidebar:not(.collapsed) .sidebar-toggle{position:absolute;top:18px;right:-14px;margin-left:0;z-index:5;box-shadow:0 1px 4px #0003}.brand{display:flex;gap:10px;align-items:center;flex-shrink:0;border:0;background:transparent;color:inherit;padding:0;text-align:left;cursor:pointer}.brand>div{min-width:0}.brand strong{white-space:nowrap}.brand img{width:48px;height:48px;background:#fff;border-radius:8px;padding:4px}.brand strong,.brand span{display:block}.brand span{opacity:.8;font-size:12px}.primary{background:#2f80ed;color:#fff;border:0;border-radius:8px;padding:10px 14px;font-weight:600}.primary:hover{background:#1d6fd6}.search,.form input,.form textarea,.form select{width:100%;border:1px solid #cdd6e1;border-radius:8px;padding:8px 10px;background:#fff}.search{border:0}.sidebar-stats{display:flex;flex-direction:column;gap:8px;flex-shrink:0;color:var(--ink)}.sidebar-stats .stat-physicians{padding:6px 10px;color:var(--ink)}.stat-physicians-toggle{display:flex;width:100%;align-items:center;justify-content:space-between;gap:8px;border:0;background:transparent;color:inherit;font:inherit;font-weight:700;padding:6px 2px;cursor:pointer;text-align:left}.stat-physicians-arrow{flex-shrink:0;font-size:14px;line-height:1;opacity:.75}.stat-physicians.open{padding-bottom:6px}.sidebar-stats .stat-list button{color:var(--ink);align-items:center;padding:6px 4px;gap:6px}.sidebar-stats .stat-list button span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink)}.sidebar-stats .phys-list{max-height:210px;overflow-y:auto}.phys-order{width:40px;flex-shrink:0;border:1px solid #cdd6e1;border-radius:6px;padding:4px 2px;font-size:12px;color:var(--ink);background:#fff}.phys-empty{display:flex;align-items:center;min-height:36px;padding:4px}.phys-order-slot{width:40px;text-align:center;color:var(--muted);font-size:12px}.sidebar-stats .stat-card{padding:10px 12px}.sidebar-stats .stat-card strong{font-size:22px}.archive-btn{width:100%;border:0;border-radius:12px;background:#fff;color:#0b3a6e;font-weight:700;font-size:15px;padding:12px 14px;text-align:center;box-shadow:0 1px 2px #1018280f}.archive-btn:hover,.archive-btn.active{background:#e8f1fd;outline:2px solid #2f80ed}.card-list{list-style:none;margin:0;padding:0;overflow:auto;flex:1}.card-list .item{width:100%;text-align:left;background:transparent;color:#fff;border:0;border-radius:8px;padding:10px}.card-list .item span{display:block;font-size:12px;opacity:.75}.card-list .item.active,.card-list .item:hover{background:#ffffff1f}.empty{opacity:.7;padding:8px;font-size:13px}.workspace{padding:20px;min-height:0}.workspace:has(.split){display:flex;flex-direction:column;height:100%;overflow:hidden}.dashboard{max-width:none;margin:0;display:flex;flex-direction:column;min-height:calc(100vh - 40px);min-height:calc(100dvh - 40px)}.dash-workspace{display:grid;grid-template-columns:minmax(240px,320px) 1fr;gap:16px;flex:1;min-height:0}.dash-patients{display:flex;flex-direction:column;gap:10px;min-height:0}.dash-search{border:1px solid #cdd6e1;flex-shrink:0}.dash-patient-list{overflow:auto;background:#fff;border-radius:12px;padding:4px 8px;flex:1}.dash-patient-row{display:flex;align-items:center;gap:8px;border-radius:10px;padding:4px 6px;border:2px solid transparent}.dash-patient-row:hover{background:#f4f7fb}.dash-patient-row.selected{border-color:#2f80ed;background:#eef5ff;box-shadow:0 0 0 3px #2f80ed2e}.dash-patient-row>button:first-child{flex:1;min-width:0}.dash-patient-list .dash-patient-row.selected>button:first-child{outline:none;background:transparent}.filter-list .dash-edit,.filter-list .dash-print{flex-shrink:0;width:auto;border:1px solid #cdd6e1;background:#fff;color:var(--ink);border-radius:8px;padding:6px 10px;font-size:12px}.filter-list .dash-print{background:#2f80ed;border-color:#2f80ed;color:#fff;font-weight:600}.filter-list .dash-print:hover{background:#1d6fd6}.dash-preview{background:#fff;border-radius:12px;padding:12px}.dash-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:22px}.dash-head h1{margin:0 0 6px;font-size:26px}.dash-head p{margin:0;color:var(--muted)}.dashboard h2{margin:0 0 10px;font-size:15px;color:var(--accent)}.dashboard section{margin-bottom:22px}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.opened-strip{display:grid;grid-template-columns:minmax(240px,1.5fr) repeat(4,1fr);gap:12px;align-items:stretch}.stat-physicians{background:#fff;border-radius:12px;box-shadow:0 1px 2px #1018280f;padding:14px 16px 8px;min-width:0}.stat-physicians>span{display:block;font-size:13px;color:var(--muted);margin-bottom:8px}.stat-physicians .stat-list{box-shadow:none;border-radius:0}.stat-grid.two{grid-template-columns:1fr 1fr}.stat-card{background:#fff;border:0;border-radius:12px;padding:14px 16px;box-shadow:0 1px 2px #1018280f;text-align:left;width:100%;color:inherit}.stat-card:hover,.stat-list button:hover{box-shadow:0 2px 8px #1018281a}.stat-card.selected,.stat-list button.selected{outline:2px solid #2f80ed}.stat-card span,.stat-card small{display:block;color:var(--muted)}.stat-card span{font-size:13px}.stat-card strong{display:block;font-size:32px;line-height:1.2;margin:4px 0 2px;color:#0b3a6e}.stat-card small{font-size:11px}.dash-split{display:grid;grid-template-columns:1fr 1fr;gap:16px}.stat-list{list-style:none;margin:0;padding:0;background:#fff;border-radius:12px;overflow:hidden}.stat-list li{border-bottom:1px solid #eef2f6}.stat-list button{display:flex;justify-content:space-between;gap:12px;width:100%;padding:12px 16px;border:0;background:transparent;text-align:left;color:inherit}.sidebar .stat-physicians,.sidebar .stat-physicians>span,.sidebar .stat-list button,.sidebar .stat-list button span,.sidebar .stat-list button strong{color:#111}.stat-list li:last-child{border-bottom:0}.filter-results{background:#fff;border-radius:12px;padding:16px;margin-bottom:22px}.filter-results-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}.filter-results-head h2{margin:0}.filter-results-head button{border:1px solid #cdd6e1;background:#fff;border-radius:8px;padding:6px 10px}.filter-empty{margin:0;color:var(--muted)}.filter-list{list-style:none;margin:0;padding:0}.filter-list li{border-top:1px solid #eef2f6}.filter-list button{width:100%;border:0;background:transparent;text-align:left;padding:10px 4px;color:inherit}.filter-list button span{display:block;font-size:12px;color:var(--muted)}.filter-list button:hover,.filter-list button.selected{background:#f4f7fb}.filter-list button.selected{outline:2px solid #2f80ed}.info-panel textarea{width:100%;border:1px solid #cdd6e1;border-radius:12px;padding:12px;min-height:140px;resize:vertical;background:#fff}@media(max-width:900px){.stat-grid,.opened-strip{grid-template-columns:1fr 1fr}.stat-physicians{grid-column:1 / -1}.dash-split,.stat-grid.two,.dash-workspace{grid-template-columns:1fr}}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;flex-shrink:0}.toolbar-title{display:flex;flex-direction:column;min-width:0}.toolbar h1{margin:0;font-size:22px}.toolbar-card{margin:2px 0 0;font-size:13px;color:#5b6b7c}.toolbar-right{display:flex;align-items:center;justify-content:flex-end;gap:16px;margin-left:auto}.archive-action{display:inline-flex;align-items:center;gap:6px;border:1px solid #c5d4e8;background:#fff;color:#0b3a6e;border-radius:8px;padding:8px 12px;font-weight:700;white-space:nowrap}.archive-action svg{width:16px;height:16px;flex-shrink:0}.archive-action:hover{background:#e8f1fd;border-color:#2f80ed}.save-hint{margin:0;color:var(--danger);font-size:13px;text-align:right;white-space:nowrap}.actions{display:flex;gap:8px}.actions button{border:1px solid #cdd6e1;background:#fff;color:var(--ink);border-radius:8px;padding:8px 12px}.actions .primary{background:#2f80ed;color:#fff;border-color:#2f80ed}.actions .danger{color:var(--danger);border-color:#f0c4c0}.form-tabs{display:flex;gap:8px;margin-bottom:12px;flex-shrink:0}.form-tabs button{border:1px solid #cdd6e1;background:#fff;color:var(--ink);border-radius:8px;padding:8px 18px;font-weight:600;min-height:40px}.form-tabs button.active{background:#2f80ed;border-color:#2f80ed;color:#fff}.form-n2-empty{background:#fff;border-radius:12px;padding:24px;color:var(--muted)}.form-n2-empty h2{margin:0 0 8px;color:var(--accent);font-size:18px}.form-n2-empty p{margin:0}.split{display:grid;grid-template-columns:minmax(340px,420px) 1fr;gap:16px;align-items:stretch;flex:1;min-height:0}.sidebar.collapsed .sidebar-toggle{position:static;align-self:center;box-shadow:none}.editor{background:#fff;border-radius:12px;padding:16px;min-height:0;height:100%;overflow:auto;display:flex;flex-direction:column}.form{flex:1;display:flex;flex-direction:column;min-height:0}.form>section:last-child{flex:1;display:flex;flex-direction:column;min-height:0;margin-bottom:0}.form>section:last-child textarea{flex:1;min-height:90px}.form>section:last-child .photo-form{flex:1;display:flex;flex-direction:column;min-height:0}.form>section:last-child .photo-strip{flex:1;min-height:140px}.form>section:last-child .photo-cell{min-height:140px;height:100%}.form section{margin-bottom:22px}.form h2{font-size:15px;margin:0 0 10px;color:var(--accent)}.form label{display:block;font-size:12px;color:var(--muted);margin-bottom:10px}.dt-picker{display:flex;gap:8px;align-items:center}.dt-picker input[type=datetime-local]{flex:1;min-width:0}.dt-picker-ok{flex:0 0 auto;padding:8px 14px;min-width:52px}.form .row2,.form .row3,.form .mini-grid{display:grid;gap:8px}.form .row2{grid-template-columns:1fr 1fr;align-items:end}.form .oocytes-row{display:grid;grid-template-columns:minmax(0,1fr) 88px;gap:8px;width:100%;flex:0 0 auto}.form .oocytes-row label{min-width:0;margin-bottom:0}.form .row3{grid-template-columns:1fr 1fr 1fr}.form .mini-grid{grid-template-columns:repeat(3,1fr)}.form fieldset{border:1px solid #e3e8ef;border-radius:8px;margin:8px 0}.form .check{display:flex;align-items:center;gap:8px;margin-bottom:6px}.form .check input{width:auto}.table-wrap{overflow:auto;border:1px solid #e3e8ef;border-radius:8px}.form table{border-collapse:separate;border-spacing:0;min-width:720px;font-size:11px}.form th,.form td{border:1px solid #e3e8ef;padding:2px;background:#fff}.form thead th{background:#f4f7fb}.form thead th:nth-child(1),.form tbody th:nth-child(1){position:sticky;left:0;z-index:3;min-width:72px;width:72px;max-width:72px;background:#fff;box-shadow:1px 0 #cdd6e1;font-size:10px;line-height:1.15;word-break:break-word}.form thead th:nth-child(2),.form tbody td:nth-child(2){position:sticky;left:72px;z-index:3;min-width:52px;width:52px;max-width:52px;background:#fff;box-shadow:2px 0 6px #0f28461f}.form tbody td:nth-child(2) select{width:100%;min-width:0;padding:2px 0;font-size:10px}.form thead th:nth-child(1),.form thead th:nth-child(2){z-index:4;background:#f4f7fb}.form table.scroll-days thead th:nth-child(2),.form table.scroll-days tbody td:nth-child(2){position:static;left:auto;z-index:auto;min-width:0;width:auto;max-width:none;box-shadow:none}.form td input{border:0;padding:4px;border-radius:0}.form td .grid-cell{display:block;width:7ch;min-width:7ch;max-width:7ch;margin:0 auto;border:0;padding:2px 0;resize:none;overflow:hidden;word-break:break-all;overflow-wrap:anywhere;line-height:1.2;font:inherit;font-size:11px;background:transparent}.preview-pane{overflow:auto;min-height:0;height:100%}.sheet{width:1120px;background:#fff;color:#111;border:2px solid #111;padding:8px;font-size:11px}.top{display:grid;grid-template-columns:110px 1fr 280px;gap:6px;margin-bottom:6px}.logo-cell{border:1.5px solid #111;display:flex;align-items:center;justify-content:center;padding:6px}.logo-cell img{width:88px;height:auto}.title-block{display:grid;grid-template-columns:150px 1fr;border:1.5px solid #111}.card-label{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;font-weight:600;border-right:1px solid #111;padding:8px;gap:4px}.card-no{display:block;min-height:18px;font-size:14px;font-weight:700;letter-spacing:.3px}.stim-title{text-align:center;font-size:14px;font-weight:800;color:#000;padding:8px;line-height:1.25}.stim-title span{font-weight:700;font-size:12px;color:#000}.cycle-type{border:1.5px solid #111}.cycle-head{text-align:center;font-weight:600;border-bottom:1px solid #111;padding:4px}.cycle-opts{display:grid;grid-template-columns:1fr 1fr 1fr 1.4fr;min-height:52px}.cycle-opts label{display:flex;align-items:center;justify-content:center;gap:6px;text-align:center;font-size:10px;padding:4px;border-right:1px solid #111}.cycle-opts label:last-child{border-right:0}.box{display:inline-flex;width:14px;height:14px;border:1.5px solid #111;align-items:center;justify-content:center;font-size:11px;flex:0 0 14px}.box.on{background:#111;color:#fff}.meta{display:grid;grid-template-columns:110px 1.2fr 1.6fr 1.3fr;gap:6px;margin-bottom:6px}.clinic-name{border:1.5px solid #111;display:flex;align-items:center;justify-content:center;text-align:center;font-weight:800;letter-spacing:.4px;color:#0b3a6e}.patient-block,.stats,.right-meta{border:1.5px solid #111}.meta-label,.stats span,.right-meta span{display:block;font-size:10px;color:#444;padding:4px 6px 0}.meta-value,.stats strong,.right-meta strong{display:block;min-height:18px;padding:2px 6px 6px;font-weight:600}.patient-block .big{font-size:16px;min-height:52px}.stats,.right-meta{display:grid;grid-template-columns:1fr 1fr}.grid{width:100%;border-collapse:collapse;table-layout:fixed}.grid th,.grid td{border:1px solid #111;height:18px;text-align:center;font-size:10px;overflow:hidden}.grid td:has(.cell-wrap){height:auto;min-height:18px;overflow:visible;vertical-align:middle}.grid .cell-wrap{display:inline-block;width:7ch;max-width:7ch;word-break:break-all;overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.15}.grid tr.sec-start>*{border-top:2.5px solid #000}.grid tr.sec-end>*{border-bottom:2.5px solid #000}.grid tr.sec-row>.section{border-left:2.5px solid #000;border-bottom:2.5px solid #000}.grid tr.sec-row>td:last-child{border-right:2.5px solid #000}.sheet.sheet-n2{width:1460px}.sheet-n2 .top{grid-template-columns:110px 1fr}.sheet-n2 .stim-title{font-size:20px;font-weight:800;color:#000;line-height:1.2}.sheet-n2 .stim-title span{font-size:15px;font-weight:700;color:#000}.sheet-n2 .bottom .notes{border-top:0}.sheet-n2 .grid col.n2-col-section{width:16px}.sheet-n2 .grid col.n2-col-label{width:48px}.sheet-n2 .grid col.n2-col-hour{width:42px}.sheet-n2 .grid .section{width:16px;padding:0;font-size:12px;font-weight:800;color:#000;line-height:1}.sheet-n2 .grid tr.us-n2>td,.sheet-n2 .grid tr.us-n2>th.row-label{height:42px}.sheet-n2 .grid .row-label{width:48px;padding:0 3px}.sheet-n2 .grid .row-label[colspan="2"]{width:90px}.sheet-n2 .grid .hour-col{width:42px;min-width:42px}.grid .stub,.grid .row-label,.grid .section{text-align:left;padding:0 4px;width:auto}.grid .section{writing-mode:vertical-rl;transform:rotate(180deg);text-align:center;font-weight:700;width:22px}.grid .row-label{width:88px;font-weight:700;color:#000;font-size:10px;line-height:1.15;word-break:break-word}.grid .hour-col{width:46px;min-width:46px;font-size:8px;padding:0}.grid .hour-col select{width:100%;border:0;background:transparent;font-size:8px;text-align:center;padding:0}.grid .day-date{font-size:9px;line-height:1.1;padding:2px 0}.grid .day-date small{display:block;font-size:8px;font-weight:500;color:#444}.grid .visit-on{background:#7dce7a;print-color-adjust:exact;-webkit-print-color-adjust:exact}.grid .visit-on small{color:#14532d}.form .visit-picked select{background:#7dce7a;border-color:#4caf50}.bottom{display:grid;grid-template-columns:1.2fr 1.3fr 1.3fr 1fr .6fr;gap:0;border:1.5px solid #111;border-top:0}.bottom>div:not(.photo-strip):not(.photo-board){border-right:1px solid #111;min-height:54px;padding:4px 6px}.bottom .filled-alert{background:#f7c4c4;print-color-adjust:exact;-webkit-print-color-adjust:exact}.bottom>div:not(.photo-strip):not(.notes):last-of-type,.bottom>.notes{border-right:0}.bottom span{display:block;font-size:9px;color:#444}.bottom strong{display:block;margin-top:6px;white-space:pre-wrap}.bottom .notes{grid-column:1 / -1;border-top:1px solid #111;border-right:0;min-height:70px}.photo-strip{grid-column:1 / -1;display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid #111;min-height:88px}.photo-cell{position:relative;border-right:1px solid #111;min-height:88px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#fafafa}.photo-cell:last-child{border-right:0}.photo-cell span{color:#888;font-size:10px}.photo-cell img{width:100%;height:100%;object-fit:cover;display:block}.photo-actions{position:absolute;inset:auto 4px 4px;display:flex;gap:4px;flex-wrap:wrap;justify-content:center}.photo-actions button{border:0;border-radius:4px;padding:3px 6px;font-size:10px;background:#ffffffeb;color:#1a2330}.photo-actions .danger-text{color:var(--danger)}.photo-form{margin-top:12px}.photo-form>span{display:block;font-size:12px;color:var(--muted);margin-bottom:8px}.photo-form .photo-strip{border:1px solid #cdd6e1;border-radius:8px;overflow:hidden}.photo-form .photo-cell{min-height:110px}.crop-modal{position:fixed;inset:0;z-index:80;background:#0c18289e;display:flex;align-items:center;justify-content:center;padding:16px}.crop-dialog{width:min(720px,100%);background:#fff;border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:10px;max-height:92vh;overflow:hidden}.crop-dialog h2{margin:0;font-size:18px;color:var(--accent)}.crop-dialog p{margin:0;font-size:13px;color:var(--muted)}.crop-stage{overflow:auto;display:flex;justify-content:center;background:#1a2330;border-radius:8px;padding:12px;touch-action:none;flex:1;min-height:0}.crop-image-wrap{position:relative;display:inline-block;overflow:hidden;line-height:0;max-width:100%}.crop-image-wrap img{display:block;max-width:min(92vw,680px);max-height:46vh;-webkit-user-select:none;user-select:none;pointer-events:none}.crop-box{position:absolute;box-sizing:border-box;border:2px solid #fff;box-shadow:0 0 0 9999px #00000073;cursor:move;touch-action:none}.crop-handle{position:absolute;width:18px;height:18px;background:#2f80ed;border:2px solid #fff;border-radius:2px;touch-action:none}.crop-handle.nw{left:-9px;top:-9px;cursor:nwse-resize}.crop-handle.ne{right:-9px;top:-9px;cursor:nesw-resize}.crop-handle.sw{left:-9px;bottom:-9px;cursor:nesw-resize}.crop-handle.se{right:-9px;bottom:-9px;cursor:nwse-resize}.crop-actions{display:flex;justify-content:flex-end;gap:8px;flex-shrink:0}.crop-actions button{min-height:44px;padding:8px 16px;border-radius:8px;border:1px solid #cdd6e1;background:#fff;color:#1a2330;font-weight:600}.crop-actions button.primary{background:#2f80ed;border-color:#2f80ed;color:#fff}.crop-actions button.primary:disabled{background:#8bb8f3;border-color:#8bb8f3;color:#fff}@media print{@page{size:landscape;margin:8mm}html,body,#root{background:#fff;width:100%;height:100%;margin:0;padding:0;overflow:hidden}.no-print{display:none!important}.app,.app:has(.split),.app.collapsed,.workspace,.split,.preview-pane,.dashboard,.dash-workspace,.dash-preview{display:block!important;padding:0!important;margin:0!important;width:100%!important;height:100%!important;max-width:none!important;overflow:hidden!important;background:#fff!important;grid-template-columns:none!important}.split.pane-form .preview-pane{display:block!important}.sheet{width:100%;max-width:100%;height:100%;max-height:100%;padding:2px;font-size:8px;border-width:1px;box-shadow:none;display:flex;flex-direction:column;box-sizing:border-box;overflow:hidden}.grid{flex:0 0 auto}.bottom{flex:1 1 auto;min-height:0;grid-template-rows:auto auto 1fr}.top,.meta{gap:3px;margin-bottom:3px}.top{grid-template-columns:72px 1fr 220px}.sheet.sheet-n2{width:100%}.sheet-n2 .top{grid-template-columns:72px 1fr}.sheet-n2 .bottom{grid-template-rows:auto 1fr}.logo-cell{padding:2px}.logo-cell img{width:52px}.card-label,.stim-title{padding:3px 4px;line-height:1.15;font-size:9px}.stim-title span{font-size:8px}.sheet-n2 .stim-title{font-size:13px;font-weight:800;color:#000}.sheet-n2 .stim-title span{font-size:10px;font-weight:700;color:#000}.cycle-head{padding:1px;font-size:8px}.cycle-opts{min-height:0}.cycle-opts label{font-size:8px;padding:2px;gap:3px}.box{width:11px;height:11px;flex-basis:11px;font-size:9px}.meta{grid-template-columns:72px 1.2fr 1.6fr 1.3fr}.clinic-name{font-size:9px}.meta-label,.stats span,.right-meta span{font-size:7.5px;padding:1px 4px 0}.meta-value,.stats strong,.right-meta strong{min-height:12px;padding:0 4px 2px;font-size:9px}.patient-block .big{font-size:12px;min-height:28px}.grid th,.grid td{height:12.5px;font-size:8px;line-height:1}.grid td:has(.cell-wrap){height:auto;min-height:12.5px}.grid .section{width:14px;font-size:8px}.grid .row-label,.grid .stub{font-size:8px;width:70px}.grid .row-label{font-weight:700;color:#000}.grid .hour-col{width:36px;min-width:36px;font-size:7px}.grid .hour-col select{font-size:7px;appearance:none;background:transparent}.grid .day-date{font-size:7.5px;padding:0}.grid .day-date small{display:none}.bottom>div{min-height:28px;padding:2px 4px}.bottom span{font-size:7.5px}.bottom strong{margin-top:2px;font-size:9px}.bottom .notes{min-height:24px}.photo-strip,.photo-cell{min-height:0;height:100%}.photo-cell span{font-size:7px}}.mobile-only,.mobile-pane-switch,.preview-scroll-hint,.sidebar-sticky-actions{display:none}@media(max-width:1100px){.app,.app.collapsed{grid-template-columns:1fr}.app:has(.split),.workspace:has(.split){height:auto;overflow:visible}.split{grid-template-columns:1fr}.sidebar,.sidebar.collapsed{flex-direction:row;flex-wrap:wrap;align-items:center;max-height:none;position:sticky;top:0;z-index:30}.sidebar.collapsed{padding:12px}.sidebar.collapsed .brand{flex-direction:row}.sidebar.collapsed .brand>div{display:block}.sidebar.collapsed .primary{font-size:13px;padding:8px 12px;line-height:1.3}.sidebar.collapsed .sidebar-stats,.sidebar.collapsed .search,.sidebar.collapsed .card-list,.sidebar.collapsed .sidebar-sticky-actions{display:none}.app.collapsed .admin-nav{display:block}.sidebar-toggle{display:flex;align-items:center;justify-content:center;margin-left:auto}.sidebar:not(.collapsed) .sidebar-toggle,.sidebar.collapsed .sidebar-toggle{position:static;box-shadow:none}.sidebar-sticky-actions{display:flex;flex:1 1 160px;min-width:0;gap:8px;align-items:center;justify-content:flex-end}.sidebar-sticky-actions .primary{flex:1;min-width:0;white-space:nowrap;font-size:13px;padding:8px 10px;line-height:1.2}.sidebar-stats{width:100%}.card-list{display:flex;gap:8px;overflow:auto;max-height:140px;width:100%}.card-list .item{min-width:180px}.editor,.preview-pane{height:auto}}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#e8eef4}.login-box{width:min(400px,92vw);background:#fff;border-radius:16px;padding:28px;display:flex;flex-direction:column;gap:10px}.login-box img{width:72px;align-self:center}.login-box h1{margin:0;text-align:center;font-size:22px}.login-box p{margin:0 0 8px;text-align:center;color:var(--muted)}.login-box label{display:block;font-size:13px;color:var(--muted)}.login-box input{width:100%;margin-top:4px;border:1px solid #cdd6e1;border-radius:8px;padding:10px}.login-error{color:var(--danger);font-size:13px}.nav-btn{border:0;background:#ffffff1f;color:#fff;border-radius:8px;padding:8px 12px;text-align:left}.nav-btn.active,.nav-btn:hover{background:#ffffff38}.app.collapsed .admin-nav{display:none}.user-form{display:grid;grid-template-columns:1fr 1fr;gap:10px;background:#fff;padding:16px;border-radius:12px}.user-form-actions{grid-column:1 / -1;display:flex;gap:8px}.user-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 4px}.user-list{background:#fff;border-radius:12px;padding:8px 16px}@media(max-width:720px){.mobile-only{display:flex;align-items:center;justify-content:center}.mobile-pane-switch{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px;flex-shrink:0}.mobile-pane-switch button{border:1px solid #cdd6e1;background:#fff;color:var(--ink);border-radius:8px;padding:10px 12px;font-weight:600;min-height:44px}.mobile-pane-switch button.active{background:#2f80ed;border-color:#2f80ed;color:#fff}.preview-scroll-hint{display:block;margin:0 0 8px;color:var(--muted);font-size:13px}.app,.app.collapsed{min-height:100dvh}.sidebar,.sidebar.collapsed{padding:10px 12px;padding-top:max(10px,env(safe-area-inset-top));gap:8px}.brand strong{font-size:14px;white-space:normal}.brand span{font-size:12px}.brand img{width:40px;height:40px}.primary,.nav-btn,.actions button,.filter-results-head button,.user-form button{min-height:44px}.workspace{padding:12px;padding-bottom:max(16px,env(safe-area-inset-bottom))}.dash-head,.toolbar,.toolbar-right,.filter-results-head,.user-row{flex-wrap:wrap;align-items:stretch}.dash-head h1,.toolbar h1{font-size:20px}.dash-head p{font-size:13px}.toolbar-right,.save-hint,.actions{width:100%;margin-left:0}.save-hint{white-space:normal;text-align:left;line-height:1.35}.actions{display:grid;grid-template-columns:1fr 1fr}.stat-card strong{font-size:26px}.stat-card span{font-size:12px}.form .row2,.form .row3,.form .mini-grid,.form .oocytes-row,.user-form{grid-template-columns:1fr}.form input,.form select,.form textarea,.search,.login-box input,.info-panel textarea,.user-form input,.user-form select{font-size:16px;min-height:44px}.form td .grid-cell{font-size:11px;min-height:0;width:7ch;max-width:7ch}.form label{font-size:13px}.form h2,.dashboard h2{font-size:16px}.form table{min-width:640px}.table-wrap,.preview-pane{-webkit-overflow-scrolling:touch}.split.pane-form .preview-pane,.split.pane-preview .editor{display:none}.photo-form .photo-strip{grid-template-columns:1fr 1fr}.photo-form .photo-cell{min-height:160px}.photo-actions button{min-height:36px;font-size:12px;padding:6px 8px}.login-page{padding:max(16px,env(safe-area-inset-top)) 16px max(16px,env(safe-area-inset-bottom));align-items:flex-start}.login-box{width:100%;padding:22px 16px}.login-box h1{font-size:20px}.user-row{flex-direction:column;align-items:stretch}.user-row .actions{width:100%}}@media print{@page{size:landscape;margin:8mm}.split.pane-form .preview-pane,.preview-pane{display:block!important}.sheet{width:100%!important;max-width:100%!important;height:100%!important;max-height:100%!important;overflow:hidden!important}}@media screen{.sidebar{background:linear-gradient(180deg,#0d4380,#0b3a6e 55%,#092f59);box-shadow:2px 0 12px #092f5940}.primary{box-shadow:0 1px 2px #1d6fd659;transition:background .15s,box-shadow .15s,transform .1s}.primary:hover{box-shadow:0 3px 8px #1d6fd659}.primary:active{transform:translateY(1px)}.toolbar h1{color:var(--clinic);letter-spacing:.2px}.toolbar-card{color:var(--muted)}.actions button,.form-tabs button{transition:background .15s,border-color .15s,box-shadow .15s,color .15s;box-shadow:0 1px 2px #1a23300f}.actions button:hover,.form-tabs button:hover{border-color:#9db4d1;background:#f4f8fd}.actions .primary:hover,.form-tabs button.active:hover{background:#1d6fd6;border-color:#1d6fd6}.actions .danger:hover{background:#fdf1f0;border-color:#e4a29c}.form-tabs button.active{box-shadow:0 2px 8px #2f80ed59}.editor{border:1px solid #dde5ef;box-shadow:0 4px 18px #1a233012;scrollbar-width:thin;scrollbar-color:#b7c5d8 transparent}.form h2{margin-bottom:4px;padding-bottom:6px;border-bottom:1px solid #e3e8ef;letter-spacing:.2px}.form label{font-weight:500;color:#4a5666}.form input,.form textarea,.form select{border-color:#d3dce8;transition:border-color .15s,box-shadow .15s,background .15s}.form input:hover,.form textarea:hover,.form select:hover{border-color:#a9bdd6}.form input:focus,.form textarea:focus,.form select:focus{outline:0;border-color:#2f80ed;box-shadow:0 0 0 3px #2f80ed29}.form td input:focus,.form td .grid-cell:focus{box-shadow:none;background:#eaf3ff}.form input::placeholder,.form textarea::placeholder{color:#9aa7b8}.form fieldset{background:#fafcfe;border-color:#dde5ef}.table-wrap{border-color:#dde5ef;box-shadow:inset 0 0 0 1px #fff9;scrollbar-width:thin;scrollbar-color:#b7c5d8 transparent}.form thead th{background:#eef3f9;color:#1e4d8c;font-weight:700}.form tbody th:nth-child(1){background:#f6f9fd;color:#1a2330;font-weight:700}.form tbody tr:hover td{background:#f3f8ff}.form tbody tr:hover th{background:#eaf2fc}.preview-pane{scrollbar-width:thin;scrollbar-color:#9fb2c9 transparent}.sheet{border-radius:3px;box-shadow:0 8px 28px #0f284624,0 1px 3px #0f28461f}.logo-cell{background:#fff}.card-no{color:var(--clinic)}.cycle-head{background:#eef3f9;color:#1e4d8c}.meta-label,.stats span,.right-meta span,.bottom span{color:#566274;letter-spacing:.15px}.patient-block .big{color:var(--clinic)}.sheet .meta-value,.sheet .stats strong,.sheet .right-meta strong{color:#0f1722}.grid th,.grid td{border-color:#3b4658}.grid thead th:not(.visit-on){background:#eef3f9}.grid tbody th{background:#f7f9fc}.grid .section{background:#e4edf8;color:#0b2a4f}.grid tbody th.stub{background:#eef3f9}.grid td.hour-col,.grid th.hour-col{background:#fafcfe}.grid .day-date small{color:#566274;font-size:11.2px}.grid thead th.day-date{font-size:12.6px;line-height:1.05;height:auto;min-height:30px;overflow:visible}.grid thead th:not(.stub):not(.hour-col):not(.day-date){font-size:14px;line-height:1;height:auto;min-height:22px;overflow:visible}.grid tbody tr:not(.sec-row)>td:not(.visit-on):hover,.grid tr.sec-row>td:hover{background:#f1f7ff}.photo-cell{background:linear-gradient(180deg,#fbfcfe,#f1f5fa)}.photo-cell span{color:#7a8798}.photo-actions button{box-shadow:0 1px 3px #0f284633;transition:background .15s}.photo-actions button:hover{background:#fff}}.photo-board{grid-column:1 / -1;display:flex;flex-direction:column;min-width:0}.photo-board .photo-strip{width:100%}.photo-board.cols-3 .photo-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.photo-board.cols-3 .photo-cell{min-width:0;height:124px;min-height:124px;overflow:hidden}.photo-board.cols-3 .photo-cell img{width:100%;height:100%;object-fit:contain;object-position:center;background:#f7f9fc}.photo-row-label{display:block;margin:10px 0 4px;font-size:12px;font-weight:700;color:#1e4d8c}.form>section:last-child .photo-form.photo-n2 .photo-strip{flex:0 0 auto;min-height:0}.form>section:last-child .photo-form.photo-n2 .photo-cell{height:auto;min-height:0;aspect-ratio:4 / 3}@media(max-width:720px){.photo-form.photo-n2 .photo-strip,.photo-board.cols-3 .photo-strip{grid-template-columns:repeat(3,minmax(0,1fr))}}@media print{.sheet-n2 .photo-board{padding:0;min-height:0}.sheet-n2 .photo-board.cols-3 .photo-cell{height:72px;min-height:0}}:root{--ink: #1a2330;--muted: #5b6573;--line: #1a2330;--paper: #fff;--bg: #e8eef4;--accent: #1e4d8c;--clinic: #0b3a6e;--soft: #f4f7fb;--danger: #b42318}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%;text-size-adjust:100%}html,body,#root{margin:0;min-height:100%;min-height:100dvh}body{font-family:Noto Sans Georgian,Noto Sans,sans-serif;color:var(--ink);background:var(--bg)}@media(display-mode:standalone),(display-mode:fullscreen){html,body,#root{height:100%;min-height:100dvh;overflow:hidden}body{padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}#root{overflow:auto;-webkit-overflow-scrolling:touch}}button,input,textarea,select{font-family:inherit}button{cursor:pointer}
