@import"https://fonts.googleapis.com/css2?family=Fira+Sans:wght@400;500;600;700;800;900&display=swap";.react-flow{direction:ltr}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1;cursor:-webkit-grab;cursor:grab}.react-flow__pane.selection{cursor:pointer}.react-flow__pane.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow .react-flow__edges{pointer-events:none;overflow:visible}.react-flow__edge-path,.react-flow__connection-path{stroke:#b1b1b7;stroke-width:1;fill:none}.react-flow__edge{pointer-events:visibleStroke;cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;-webkit-animation:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge:focus .react-flow__edge-path,.react-flow__edge:focus-visible .react-flow__edge-path{stroke:#555}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge-textbg{fill:#fff}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__connectionline{z-index:1001}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:-webkit-grab;cursor:grab}.react-flow__node.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:-webkit-grab;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background:#1a192b;border:1px solid white;border-radius:100%}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:-4px;transform:translate(-50%)}.react-flow__handle-top{left:50%;top:-4px;transform:translate(-50%)}.react-flow__handle-left{top:50%;left:-4px;transform:translateY(-50%)}.react-flow__handle-right{right:-4px;top:50%;transform:translateY(-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.center{left:50%;transform:translate(-50%)}.react-flow__attribution{font-size:10px;background:#ffffff80;padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@-webkit-keyframes dashdraw{0%{stroke-dashoffset:10}}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-default,.react-flow__node-input,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:3px;width:150px;font-size:12px;color:#222;text-align:center;border-width:1px;border-style:solid;border-color:#1a192b;background-color:#fff}.react-flow__node-default.selectable:hover,.react-flow__node-input.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:0 1px 4px 1px #00000014}.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:0 0 0 .5px #1a192b}.react-flow__node-group{background-color:#f0f0f040}.react-flow__nodesselection-rect,.react-flow__selection{background:#0059dc14;border:1px dotted rgba(0,89,220,.8)}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls{box-shadow:0 0 2px 1px #00000014}.react-flow__controls-button{border:none;background:#fefefe;border-bottom:1px solid #eee;box-sizing:content-box;display:flex;justify-content:center;align-items:center;width:16px;height:16px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:5px}.react-flow__controls-button:hover{background:#f4f4f4}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__minimap{background-color:#fff}.react-flow__minimap svg{display:block}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:4px;height:4px;border:1px solid #fff;border-radius:1px;background-color:#3367d9;transform:translate(-50%,-50%)}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:#3367d9;border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}:root{--primary:#0D3B66;--primary2:#0a2f52;--secondary:#2A9D8F;--accent:#E63946;--bg:#f8fafc;--line:#e5e7eb;--text:#102033}*{box-sizing:border-box}body{margin:0;background:var(--bg);font-family:Fira Sans,Arial,sans-serif;color:var(--text)}button,input,select,textarea{font-family:inherit}button{cursor:pointer}.login{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:linear-gradient(135deg,#0d3b66,#2a9d8f)}.login-card{width:min(520px,100%);background:#fff;border-radius:24px;box-shadow:0 28px 70px #00000038;overflow:hidden}.login-head{padding:30px;text-align:center;background:linear-gradient(135deg,#0d3b66,#2a9d8f);color:#fff}.login-head img{max-width:310px;width:80%;background:#fff;border-radius:12px;padding:8px;margin-bottom:10px}.login-body{padding:26px}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}.field label{font-size:12px;font-weight:700;color:#475569}.field input,.field select,.field textarea{border:1px solid var(--line);border-radius:14px;padding:12px 14px;font-size:14px;background:#fff}.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--secondary);box-shadow:0 0 0 4px #2a9d8f24}.btn{border:0;border-radius:13px;padding:11px 15px;font-weight:800;font-size:14px;display:inline-flex;gap:8px;align-items:center;justify-content:center}.btn-primary{background:var(--primary);color:#fff}.btn-secondary{background:var(--secondary);color:#fff}.btn-soft{background:#eef2f7;color:#334155}.btn-danger{background:#fee2e2;color:#b91c1c}.app{display:flex;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:288px;background:#fff;border-right:1px solid var(--line);box-shadow:0 10px 30px #0f172a14;z-index:20;overflow:auto}.brand{padding:22px 22px 16px;border-bottom:1px solid var(--line)}.brand img{width:210px;max-width:100%;display:block}.brand small{color:#64748b;font-weight:700}.group{padding:14px 16px 6px}.group-title{font-size:11px;text-transform:uppercase;color:#94a3b8;font-weight:900;letter-spacing:.08em;margin:12px 8px 6px}.nav-item{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;color:#475569;font-weight:700;font-size:14px;border-right:3px solid transparent}.nav-item:hover,.nav-item.active{background:#0d3b6614;color:var(--primary);border-right-color:var(--primary)}.main{margin-left:288px;width:calc(100% - 288px);min-height:100vh}.topbar{position:sticky;top:0;z-index:10;background:#f8fafcdb;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid var(--line);padding:16px 24px;display:flex;align-items:center;justify-content:space-between}.page{padding:24px}.title h1{margin:0;font-size:26px;color:var(--primary);font-weight:900}.title p{margin:4px 0 0;color:#64748b}.grid{display:grid;gap:18px}.stats{grid-template-columns:repeat(4,minmax(0,1fr))}.card{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 6px 20px #0f172a0d;padding:18px}.card h3{margin:0 0 12px;color:var(--primary)}.stat{display:flex;align-items:center;justify-content:space-between}.stat .num{font-size:28px;font-weight:900;color:var(--primary)}.pill{display:inline-flex;align-items:center;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:800}.pill-ok{background:#dcfce7;color:#15803d}.pill-warn{background:#fef3c7;color:#a16207}.toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:14px}.toolbar input,.toolbar select{border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:#fff}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:16px;background:#fff}table{border-collapse:collapse;width:100%;font-size:14px}th,td{padding:13px 14px;border-bottom:1px solid #eef2f7;text-align:left}th{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#64748b;background:#f8fafc}.modal-back{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;z-index:40;display:flex;align-items:center;justify-content:center;padding:18px}.modal{background:#fff;border-radius:20px;width:min(760px,100%);max-height:90vh;overflow:auto;box-shadow:0 30px 90px #00000042}.modal-head{padding:18px 22px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.modal-body{padding:22px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.search-result{border:1px solid var(--line);border-radius:12px;margin-top:8px;max-height:210px;overflow:auto}.search-item{padding:10px 12px;border-bottom:1px solid #eef2f7;cursor:pointer}.search-item:hover{background:#ecfdf5}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.tab{border:0;background:#eef2f7;color:#475569;border-radius:999px;padding:9px 12px;font-weight:800}.tab.active{background:var(--secondary);color:#fff}.placeholder{min-height:280px;display:flex;align-items:center;justify-content:center;text-align:center;color:#64748b;border:1px dashed #cbd5e1;border-radius:18px;background:#fff}.sidebar-back{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;z-index:15;display:none;align-items:flex-start;justify-content:flex-end;padding:18px}.sidebar-back svg{margin-top:8px;margin-right:8px}.mobile-toggle{display:none}@media(max-width:1000px){.sidebar{transform:translate(-100%);transition:.2s;z-index:50}.sidebar.open{transform:translate(0)}.sidebar-back{display:flex}.main{margin-left:0;width:100%}.mobile-toggle{display:inline-flex}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid{grid-template-columns:1fr}}@media(max-width:620px){.stats{grid-template-columns:1fr}.topbar{padding:12px}.page{padding:14px}.title h1{font-size:22px}.brand img{width:180px}}.specialty-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.specialty-card{background:#fff;border:1px solid #eef2f7;border-radius:16px;padding:20px;cursor:default}.specialty-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.specialty-icon{font-size:34px;line-height:1}.specialty-card h4{margin:0;color:var(--primary);font-size:16px}.specialty-card p{margin:8px 0 0;color:#64748b;font-size:13px;min-height:36px}.specialty-foot{display:flex;align-items:center;justify-content:space-between;margin-top:14px;padding-top:13px;border-top:1px solid #eef2f7;color:#334155;font-size:14px}.specialty-foot button{border:0;background:transparent;color:var(--secondary);font-weight:800}.badge-soft{font-size:12px;font-weight:800;border-radius:999px;padding:4px 9px}.badge-blue{background:#dbeafe;color:#1d4ed8}.badge-pink{background:#fce7f3;color:#be185d}.badge-purple{background:#f3e8ff;color:#7e22ce}.badge-green{background:#dcfce7;color:#15803d}.badge-teal{background:#ccfbf1;color:#0f766e}.badge-orange{background:#ffedd5;color:#c2410c}.badge-red{background:#fee2e2;color:#b91c1c}.badge-indigo{background:#e0e7ff;color:#4338ca}.badge-cyan{background:#cffafe;color:#0e7490}.badge-amber{background:#fef3c7;color:#b45309}@media(max-width:1200px){.specialty-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:850px){.specialty-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.specialty-grid{grid-template-columns:1fr}}.patient-specialty-box{margin:18px 0;padding:18px;border:1px solid #e6eef6;border-radius:18px;background:linear-gradient(180deg,#fff,#f8fafc)}.patient-specialty-box h4{margin:0;color:var(--primary)}.patient-specialty-box p{margin:4px 0 14px;color:#64748b;font-size:13px}.patient-specialty-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.patient-specialty-card{border:1px solid #e5e7eb;background:#fff;border-radius:15px;padding:12px;text-align:left;display:flex;flex-direction:column;gap:5px;transition:.16s}.patient-specialty-card span{font-size:24px}.patient-specialty-card b{color:#0d3b66;font-size:13px}.patient-specialty-card small{color:#64748b;line-height:1.25}.patient-specialty-card:hover,.patient-specialty-card.selected{border-color:#2a9d8f;background:#ecfdf5;box-shadow:0 8px 22px #2a9d8f21}.service-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.service-card{padding:20px}.service-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.service-icon{font-size:34px}.service-price{font-size:18px;font-weight:900;color:var(--secondary)}.service-card h4{margin:0;color:var(--primary)}.service-card p{font-size:13px;color:#64748b;min-height:38px}.service-pay{font-size:12px;color:#64748b;margin:10px 0}.demand-row{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#64748b}.demand-row b.good{color:#16a34a}.demand-row b.bad{color:#e63946}.demand-bar{width:100%;height:7px;background:#e5e7eb;border-radius:999px;overflow:hidden;margin-top:6px}.demand-bar i{display:block;height:100%;border-radius:999px}.demand-bar i.ok{background:#22c55e}.demand-bar i.warn{background:#e63946}.invoice-services{border:1px solid #e6eef6;border-radius:18px;background:#f8fafc;padding:15px;margin:12px 0}.invoice-services h4{margin:0 0 10px;color:var(--primary)}.invoice-service-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:220px;overflow:auto}.invoice-service-list button{border:1px solid #e5e7eb;background:#fff;border-radius:13px;padding:10px;text-align:left;display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center}.invoice-service-list button:hover{border-color:#2a9d8f;background:#ecfdf5}.invoice-service-list small{color:#2a9d8f;font-weight:900}@media(max-width:1000px){.service-grid,.patient-specialty-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.service-grid,.patient-specialty-grid,.invoice-service-list{grid-template-columns:1fr}}.finance-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:18px}.finance-card{border-radius:18px;padding:20px;border:1px solid}.finance-card p{margin:0 0 7px;font-size:14px;font-weight:800}.finance-card h2{margin:0;font-size:30px}.finance-card small{font-size:12px}.finance-card.income{background:#f0fdf4;border-color:#bbf7d0;color:#15803d}.finance-card.expense{background:#fef2f2;border-color:#fecaca;color:#b91c1c}.finance-card.balance{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}.pill-danger{background:#fee2e2;color:#b91c1c}.money-in{color:#16a34a;font-weight:900}.money-out{color:#dc2626;font-weight:900}@media(max-width:850px){.finance-stats{grid-template-columns:1fr}}.history-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;background:linear-gradient(135deg,#fff,#eef9f7)}.history-hero h3{margin:0;color:var(--primary);font-size:22px}.history-hero p{margin:5px 0 0;color:#64748b}.history-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}.history-wide,.history-patient{grid-column:1/-1}.history-patient{background:linear-gradient(135deg,#0d3b66,#2a9d8f);color:#fff}.history-patient h3{color:#fff}.history-patient p{color:#ffffffe6}.history-item{border:1px solid #eef2f7;border-radius:14px;padding:12px;margin-bottom:10px;background:#fbfdff}.history-item div{display:flex;align-items:center;justify-content:space-between;gap:10px}.history-item b{color:var(--primary)}.history-item span,.muted{color:#64748b;font-size:13px}.history-item p{margin:8px 0 0;color:#334155}.pae-summary{border:1px solid #e6eef6;border-radius:14px;padding:13px;margin-bottom:12px;background:#f8fafc}.pae-summary h4{margin:0 0 8px;color:var(--primary)}.pae-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}@media(max-width:800px){.history-grid{grid-template-columns:1fr}.history-hero{align-items:flex-start;flex-direction:column}}.recipe-item{border:1px solid #e6eef6;border-radius:16px;padding:14px;margin-bottom:12px;background:#fbfdff}.recipe-item .field textarea{min-height:76px}.recipe-item b{color:var(--primary)}@media(max-width:620px){.recipe-item{padding:12px}}.history-detail{display:flex;flex-direction:column;gap:4px;margin-top:8px;padding:10px;border-radius:12px;background:#f8fafc;color:#334155;font-size:12px}.compact-table{border-radius:12px;margin-top:10px}.compact-table table{font-size:12px}.compact-table th,.compact-table td{padding:9px 10px}.doc-board{background:#fff;border:1px solid #e6eef6;border-radius:18px;padding:20px;margin-bottom:16px;box-shadow:0 6px 20px #0f172a0d}.doc-board-head{display:flex;align-items:center;gap:14px}.doc-icon{width:58px;height:58px;border-radius:16px;background:#dbeafe;color:#0d3b66;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:13px}.doc-board h2{margin:0;color:#0d3b66}.doc-board p{margin:3px 0 0;color:#64748b}.doc-progress-label{margin-left:auto;display:flex;align-items:center;gap:12px;color:#94a3b8}.doc-progress-label b{background:#bfdbfe;color:#0d3b66;border-radius:999px;padding:5px 10px}.doc-progress{height:8px;background:#e5e7eb;border-radius:999px;margin-top:20px;overflow:hidden}.doc-progress i{display:block;height:100%;background:#0d3b66;border-radius:999px}.doc-list{display:flex;flex-direction:column;gap:12px}.doc-row{display:grid;grid-template-columns:auto 1fr auto auto auto;gap:12px;align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:14px 16px}.doc-row.done{background:#f0fdf4;border-color:#86efac}.doc-row.pending{background:#fff;border-color:#e5e7eb}.doc-check{width:25px;height:25px;border-radius:999px;border:2px solid #cbd5e1;display:flex;align-items:center;justify-content:center;font-weight:900;color:#fff}.doc-row.done .doc-check{background:#22c55e;border-color:#22c55e}.doc-row-main b{color:#0d3b66}.doc-row-main p{margin:4px 0 0;color:#64748b;font-size:13px}.doc-row-main a{display:inline-block;margin-top:5px;color:#2a9d8f;font-weight:800;text-decoration:none}@media(max-width:760px){.doc-board-head{align-items:flex-start}.doc-progress-label{margin-left:0}.doc-row{grid-template-columns:auto 1fr}.doc-row .pill,.doc-row .btn{grid-column:2}.doc-board-head{flex-wrap:wrap}}.agenda-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;background:linear-gradient(135deg,#0d3b66,#2a9d8f);color:#fff;border-radius:20px;padding:22px;margin-bottom:16px}.agenda-hero h2{margin:0;font-size:26px}.agenda-hero p{margin:5px 0 0;color:#ffffffdb}.agenda-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}.agenda-stats div{background:#fff;border:1px solid #e6eef6;border-radius:16px;padding:16px}.agenda-stats b{display:block;color:#0d3b66;font-size:26px}.agenda-stats span{color:#64748b;font-weight:800}.agenda-list{display:flex;flex-direction:column;gap:12px}.agenda-card{display:grid;grid-template-columns:auto 1fr auto auto;gap:14px;align-items:center;background:#fff;border:1px solid #e6eef6;border-radius:18px;padding:14px;box-shadow:0 6px 18px #0f172a0a}.agenda-date{width:58px;height:58px;border-radius:16px;background:#e8f7f5;color:#0d3b66;display:flex;flex-direction:column;align-items:center;justify-content:center}.agenda-date b{font-size:22px}.agenda-date span{font-size:12px;font-weight:900;color:#2a9d8f}.agenda-main h3{margin:0;color:#0d3b66}.agenda-main p{margin:4px 0;color:#64748b;font-weight:700}.agenda-main small{color:#64748b}.agenda-meta{display:flex;flex-direction:column;gap:6px;align-items:flex-end;color:#64748b;font-size:12px}.agenda-actions{display:flex;gap:8px}.permission-matrix{border:1px solid #e6eef6;border-radius:16px;overflow:auto;margin:14px 0;background:#fff}.permission-head,.permission-row{display:grid;grid-template-columns:minmax(150px,1.4fr) repeat(5,minmax(76px,.7fr)) 82px;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid #eef2f7}.permission-head{background:#f8fafc;color:#0d3b66;text-transform:uppercase;font-size:11px}.permission-row span{font-weight:800;color:#334155}.perm-check{display:flex;justify-content:center}.perm-check input{width:18px;height:18px;accent-color:#2A9D8F}@media(max-width:800px){.agenda-hero{align-items:flex-start;flex-direction:column}.agenda-stats{grid-template-columns:1fr}.agenda-card{grid-template-columns:auto 1fr}.agenda-meta,.agenda-actions{grid-column:2;align-items:flex-start}.permission-head,.permission-row{min-width:720px}}.agenda-calendar{margin-bottom:16px}.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.calendar-toolbar h3{margin:0;color:#0d3b66;text-transform:capitalize}.calendar-week,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.calendar-week span{text-align:center;color:#64748b;font-weight:900;font-size:12px;text-transform:uppercase}.calendar-day{min-height:92px;border:1px solid #e6eef6;background:#fff;border-radius:14px;padding:10px;text-align:left;display:flex;flex-direction:column;gap:8px;transition:.15s}.calendar-day b{font-size:20px;color:#0d3b66}.calendar-day small{align-self:flex-start;background:#e8f7f5;color:#0f766e;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:900}.calendar-day:hover:not(:disabled){border-color:#2a9d8f;box-shadow:0 8px 20px #2a9d8f21}.calendar-day.selected{background:#0d3b66;border-color:#0d3b66}.calendar-day.selected b{color:#fff}.calendar-day.selected small{background:#fff;color:#0d3b66}.calendar-day.today{border-color:#e63946}.calendar-day.empty{background:#f8fafc;cursor:default}@media(max-width:760px){.calendar-week,.calendar-grid{gap:5px}.calendar-day{min-height:68px;padding:7px;border-radius:10px}.calendar-day b{font-size:16px}.calendar-day small{font-size:10px;padding:3px 6px}.calendar-toolbar{flex-wrap:wrap}}.wa-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;background:linear-gradient(135deg,#075e54,#25d366);color:#fff;border-radius:20px;padding:22px;margin-bottom:16px}.wa-hero h2{margin:0;font-size:26px}.wa-hero p{margin:5px 0 0;color:#ffffffe0}.wa-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:16px;margin-bottom:16px}.wa-session{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;border:1px solid #e6eef6;border-radius:14px;padding:12px;margin-bottom:10px;background:#f8fafc}.wa-session b{color:#0d3b66}.wa-session span{color:#64748b}@media(max-width:850px){.wa-hero{align-items:flex-start;flex-direction:column}.wa-grid,.wa-session{grid-template-columns:1fr}}.wa-session-card{border:1px solid #e6eef6;border-radius:16px;padding:12px;margin-bottom:12px;background:#fbfdff}.wa-qr-box{border:1px dashed #94a3b8;border-radius:16px;background:#f8fafc;padding:16px;text-align:center}.wa-qr-placeholder{width:180px;height:180px;margin:0 auto 12px;border-radius:14px;background:repeating-linear-gradient(45deg,#0d3b66 0,#0d3b66 8px,#fff 8px,#fff 16px);display:flex;align-items:center;justify-content:center;color:#e63946;font-size:28px;font-weight:900;border:8px solid #fff;box-shadow:0 8px 22px #0f172a24}.wa-qr-img{width:220px;max-width:100%;display:block;margin:0 auto 12px;border-radius:14px;background:#fff;padding:10px;box-shadow:0 8px 22px #0f172a24}.wa-qr-box p{margin:0 0 6px;color:#0d3b66;font-weight:800}.wa-qr-box small{color:#64748b}.wa-error{margin:10px 0;padding:9px 11px;border-radius:12px;background:#fee2e2;color:#991b1b;font-size:12px;font-weight:800;word-break:break-word}.qr-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px;margin-top:14px}.qr-card{display:flex;flex-direction:column;gap:8px}.qr-thumb{height:180px;border:1px dashed #b8c7d9;border-radius:14px;background:#f8fafc;display:flex;align-items:center;justify-content:center;overflow:hidden;color:#64748b;font-weight:900}.qr-thumb img{width:100%;height:100%;object-fit:contain;padding:10px;background:#fff}.qr-preview-card{border:1px solid #dbe4ef;border-radius:14px;background:#f8fafc;padding:10px;display:flex;align-items:center;gap:12px;min-height:92px}.qr-preview-card img{width:82px;height:82px;object-fit:contain;background:#fff;border-radius:10px;border:1px solid #e5e7eb;padding:4px}.qr-preview-card b{color:#0d3b66}.bot-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;background:linear-gradient(135deg,#0d3b66,#2a9d8f);color:#fff;border-radius:20px;padding:22px;margin-bottom:16px}.bot-hero h2{margin:0;font-size:26px}.bot-hero p{margin:5px 0 0;color:#ffffffe0}.bot-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.bot-tabs button{border:0;background:#eef2f7;color:#475569;border-radius:999px;padding:10px 14px;font-weight:900}.bot-tabs button.active{background:#0d3b66;color:#fff}.bot-chat{display:grid;grid-template-columns:330px 1fr;gap:16px}.bot-list{max-height:72vh;overflow:auto}.bot-conv{display:block;width:100%;text-align:left;border:1px solid #e6eef6;background:#fff;border-radius:14px;padding:12px;margin-bottom:10px}.bot-conv.active,.bot-conv:hover{border-color:#2a9d8f;background:#ecfdf5}.bot-conv b{display:block;color:#0d3b66}.bot-conv span,.bot-conv small{display:block;color:#64748b;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bot-window{min-height:520px;display:flex;flex-direction:column}.bot-messages{flex:1;display:flex;flex-direction:column;gap:10px;overflow:auto;background:#f8fafc;border:1px solid #e6eef6;border-radius:16px;padding:14px}.bot-msg{max-width:78%;display:flex;flex-direction:column;gap:4px}.bot-msg span{border-radius:16px;padding:10px 12px}.bot-msg small{font-size:11px;color:#94a3b8}.bot-msg.in span{background:#fff;border:1px solid #e6eef6}.bot-msg.out{align-self:flex-end}.bot-msg.out span{background:#0d3b66;color:#fff}.bot-msg.out small{text-align:right}.bot-send{display:grid;grid-template-columns:1fr auto;gap:10px;margin-top:12px}.bot-send input{border:1px solid #e5e7eb;border-radius:14px;padding:12px}.bot-lines{display:flex;flex-direction:column;gap:7px;border:1px solid #e6eef6;border-radius:14px;background:#f8fafc;padding:10px}.bot-lines label{display:flex;align-items:center;gap:8px;font-weight:800;color:#334155}.bot-lines small{color:#64748b;font-weight:600}.bot-schedule{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}.bot-day{border:1px solid #e6eef6;border-radius:16px;background:#f8fafc;padding:12px}.bot-day>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.bot-day b{color:#0d3b66}.bot-block{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;margin-top:8px}.bot-block input{border:1px solid #e5e7eb;border-radius:12px;padding:9px}.bot-flow-tools{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.bot-flow-wrap{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:14px;margin-bottom:14px}.bot-canvas{position:relative;height:520px;overflow:auto;border:1px solid #dbe4ef;border-radius:18px;background:linear-gradient(#f8fafc,#f8fafc),radial-gradient(#cbd5e1 1px,transparent 1px);background-size:100% 100%,20px 20px}.bot-node{position:absolute;width:200px;min-height:88px;background:#fff;border:2px solid #dbe4ef;border-radius:16px;box-shadow:0 10px 24px #0f172a14;padding:12px;cursor:move}.bot-node.selected{border-color:#2a9d8f;box-shadow:0 12px 28px #2a9d8f2e}.bot-node b{display:block;color:#0d3b66;text-transform:uppercase;font-size:12px}.bot-node small{display:block;color:#64748b;margin-top:6px;line-height:1.25}.bot-node button{display:block;width:100%;margin-top:7px;border:1px solid #e6eef6;background:#f8fafc;border-radius:10px;padding:6px;text-align:left;color:#0d3b66;font-size:12px}.bot-edge{position:absolute;top:0;right:0;bottom:0;left:0;width:1200px;height:900px;pointer-events:none}.bot-edge line{stroke:#2a9d8f;stroke-width:3;stroke-linecap:round}.bot-props{border:1px solid #e6eef6;border-radius:18px;background:#fff;padding:14px;max-height:520px;overflow:auto}.bot-props h3{margin:0 0 10px;color:#0d3b66}@media(max-width:980px){.bot-chat,.bot-flow-wrap,.bot-schedule{grid-template-columns:1fr}.bot-list,.bot-props{max-height:none}}.bot-rf-canvas{height:560px;border:1px solid #dbe4ef;border-radius:18px;background:#f8fafc;overflow:hidden}.rf-bot-node{width:220px;min-height:92px;background:#fff;border:2px solid #dbe4ef;border-radius:16px;box-shadow:0 10px 24px #0f172a14;padding:10px}.rf-bot-node.selected{border-color:#2a9d8f;box-shadow:0 12px 28px #2a9d8f2e}.rf-bot-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.rf-bot-head b{text-transform:uppercase;color:#0d3b66;font-size:12px}.rf-bot-head button{border:0;border-radius:9px;background:#eef2f7;color:#0d3b66;font-size:11px;font-weight:900;padding:5px 7px}.rf-bot-text{margin:0;color:#475569;font-size:12px;line-height:1.3}.rf-bot-menu p{margin:0 0 7px;color:#475569;font-size:12px}.rf-bot-option{position:relative;display:flex;align-items:center;justify-content:space-between;min-height:28px;margin-top:5px;padding:6px 22px 6px 8px;border:1px solid #e6eef6;border-radius:10px;background:#f8fafc;color:#0d3b66;font-size:12px;font-weight:800}.rf-bot-handle{width:11px;height:11px;background:#2a9d8f;border:2px solid white}.rf-bot-option-handle{right:-7px;width:12px;height:12px;background:#0d3b66;border:2px solid white}.react-flow__edge-path{stroke:#2a9d8f;stroke-width:2.5}.react-flow__controls{border-radius:10px;overflow:hidden;box-shadow:0 8px 22px #0f172a24}.ind-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(135deg,#0d3b66,#2a9d8f);color:#fff;border-radius:22px;padding:24px;margin-bottom:14px;box-shadow:0 18px 45px #0d3b662e}.ind-hero h2{margin:0;font-size:28px;font-weight:900}.ind-hero p{margin:6px 0 0;color:#ffffffe0;max-width:720px}.ind-filters{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.ind-filters select,.ind-filters input{border:1px solid rgba(255,255,255,.32);background:#fffffff5;border-radius:13px;padding:11px 12px;color:#0d3b66;font-weight:800}.ind-range{margin:0 0 16px;color:#64748b;font-size:13px}.ind-range b{color:#0d3b66}.ind-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}.ind-kpi{position:relative;background:#fff;border:1px solid #e6eef6;border-radius:18px;padding:18px;box-shadow:0 6px 20px #0f172a0d;overflow:hidden}.ind-kpi:after{content:"";position:absolute;right:-28px;top:-28px;width:92px;height:92px;border-radius:999px;background:#2a9d8f1a}.ind-kpi-icon{width:42px;height:42px;border-radius:14px;background:#e8f7f5;color:#2a9d8f;display:flex;align-items:center;justify-content:center;margin-bottom:12px}.ind-kpi p{margin:0;color:#64748b;font-weight:800;font-size:13px}.ind-kpi h3{margin:6px 0;color:#0d3b66;font-size:24px;line-height:1.1}.ind-kpi span{display:block;color:#334155;font-size:13px}.ind-kpi small{display:inline-flex;margin-top:10px;border-radius:999px;padding:5px 9px;font-weight:900;font-size:11px}.ind-kpi small.up{background:#dcfce7;color:#15803d}.ind-kpi small.down{background:#fee2e2;color:#b91c1c}.ind-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:16px;margin-bottom:16px}.ind-panel{min-height:280px}.ind-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}.ind-panel-head h3{margin:0;color:#0d3b66}.ind-panel-head span{color:#64748b;font-size:13px;font-weight:800}.ind-bars{display:flex;flex-direction:column;gap:13px}.ind-bar-row{display:grid;grid-template-columns:minmax(140px,1fr) minmax(160px,1.1fr) 52px;gap:12px;align-items:center}.ind-bar-row b{display:block;color:#0d3b66}.ind-bar-row span{display:block;color:#64748b;font-size:12px;margin-top:2px}.ind-bar-row em{font-style:normal;color:#2a9d8f;font-weight:900;text-align:right}.ind-bar-track{height:11px;background:#e5e7eb;border-radius:999px;overflow:hidden}.ind-bar-track i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#0d3b66,#2a9d8f)}.ind-donut{width:190px;height:190px;border-radius:999px;margin:12px auto 18px;display:flex;align-items:center;justify-content:center}.ind-donut div{width:122px;height:122px;border-radius:999px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:inset 0 0 0 1px #eef2f7}.ind-donut b{font-size:30px;color:#0d3b66}.ind-donut span{color:#64748b;font-size:12px;font-weight:900}.ind-mini{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.ind-mini span{background:#f8fafc;border:1px solid #e6eef6;border-radius:13px;padding:10px;color:#64748b;font-size:12px}.ind-mini b{display:block;color:#0d3b66;font-size:18px}.ind-conv{min-height:205px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#0d3b66;background:linear-gradient(135deg,#f8fafc,#ecfdf5);border-radius:18px;border:1px solid #e6eef6}.ind-conv b{font-size:46px;line-height:1;margin-top:8px}.ind-conv span,.ind-conv small{color:#64748b;font-weight:800}.ind-conv strong{font-size:28px;color:#2a9d8f;margin-top:14px}.ind-table{margin-top:4px}@media(max-width:1150px){.ind-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.ind-grid{grid-template-columns:1fr}}@media(max-width:720px){.ind-hero{align-items:flex-start;flex-direction:column}.ind-filters{justify-content:flex-start;width:100%}.ind-filters select,.ind-filters input,.ind-filters button{width:100%}.ind-kpis,.ind-bar-row{grid-template-columns:1fr}.ind-bar-row em{text-align:left}.ind-mini{grid-template-columns:1fr}}.doc-row.done .doc-check:before{content:"";width:7px;height:12px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg);margin-top:-2px}.doc-row.pending .doc-check:before{content:"";width:10px;height:10px;border-radius:999px;background:#fff}.agenda-sep{color:#cbd5e1;font-weight:900;margin:0 6px}.icon-actions{display:inline-flex;gap:7px;align-items:center;flex-wrap:wrap}.icon-btn{width:34px;height:34px;border:0;border-radius:11px;display:inline-flex;align-items:center;justify-content:center;background:#eef2f7;color:#334155}.icon-btn:hover{filter:brightness(.96)}.icon-btn.view{background:#e0f2fe;color:#0369a1}.icon-btn.edit{background:#fef3c7;color:#a16207}.icon-btn.danger{background:#fee2e2;color:#b91c1c}.icon-btn.pdf{background:#e8f7f5;color:#0f766e}.detail-view{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.detail-view>div{border:1px solid #e6eef6;border-radius:14px;background:#f8fafc;padding:12px}.detail-view span{display:block;color:#64748b;font-size:12px;font-weight:800;margin-bottom:5px;text-transform:uppercase}.detail-view b{color:#0d3b66;word-break:break-word}.detail-view p{margin:0;color:#334155;white-space:pre-wrap}.detail-view .wide{grid-column:1/-1}@media(max-width:620px){.detail-view{grid-template-columns:1fr}}.ajax-picker{position:relative}.ajax-picker small{display:block;margin-top:5px;color:#64748b}.picker-line{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center}.picker-line b{color:#0d3b66}.picker-line small{color:#2a9d8f;font-weight:900;white-space:nowrap}.consent-patient-card{display:flex;flex-direction:column;gap:4px;margin:8px 0 14px;padding:12px 14px;border:1px solid #dbe4ef;border-radius:14px;background:#f8fafc;color:#0d3b66}.consent-patient-card span{color:#64748b;font-size:12px}.switch-line{display:flex!important;align-items:center;gap:8px;font-weight:700;color:#0d3b66}.switch-line input{width:auto!important}.consent-preview{margin:12px 0;padding:13px 15px;border:1px dashed #94a3b8;border-radius:14px;background:linear-gradient(135deg,#f8fafc,#eefdf9)}.consent-preview h3{margin:0 0 5px;color:#0d3b66}.consent-preview p{margin:0;color:#64748b}.segmented{display:inline-flex;align-items:center;gap:6px;padding:5px;border:1px solid #dbe4ef;border-radius:16px;background:#fff;box-shadow:0 8px 22px #0f172a0f}.segmented button{border:0;border-radius:12px;background:transparent;color:#64748b;padding:10px 14px;font-weight:900;transition:.16s}.segmented button:hover{background:#f1f5f9;color:#0d3b66}.segmented button.active{background:linear-gradient(135deg,#0d3b66,#2a9d8f);color:#fff;box-shadow:0 8px 18px #0d3b662e}.btn{transition:transform .14s ease,box-shadow .14s ease,filter .14s ease}.btn:hover{transform:translateY(-1px);box-shadow:0 8px 18px #0f172a1c}.btn:active{transform:translateY(0);box-shadow:none}.btn-primary{background:linear-gradient(135deg,#0d3b66,#10598d);box-shadow:0 8px 18px #0d3b662e}.btn-secondary{background:linear-gradient(135deg,#2a9d8f,#19b9a6);box-shadow:0 8px 18px #2a9d8f2e}.btn-soft{background:#f1f5f9;color:#0d3b66;border:1px solid #dbe4ef}.btn-danger{background:#fff1f2;color:#be123c;border:1px solid #fecdd3}.table-wrap td .btn{padding:8px 11px;border-radius:11px;font-size:12px}.table-wrap td .btn-secondary:before{content:"PDF";font-size:10px;letter-spacing:.04em;background:#ffffff38;border-radius:999px;padding:2px 5px;margin-right:2px}.table-wrap td .btn-soft:before{content:"✎";font-size:13px;margin-right:1px}.table-wrap td .btn-danger:before{content:"×";font-size:16px;line-height:0;margin-right:1px}.consent-preview{position:relative;overflow:hidden}.consent-preview:before{content:"DOC";position:absolute;right:14px;top:12px;border-radius:999px;background:#dbeafe;color:#0d3b66;font-weight:900;font-size:10px;padding:5px 8px}@media(max-width:640px){.segmented{width:100%;display:grid;grid-template-columns:1fr 1fr}.segmented button{width:100%}.table-wrap td .btn{margin:2px 0}}.employee-services-panel{border:1px solid #e6eef6;border-radius:18px;background:linear-gradient(180deg,#fff,#f8fafc);padding:16px;max-height:58vh;overflow:auto}.employee-services-panel>.toolbar{position:sticky;top:-16px;z-index:1;background:linear-gradient(180deg,#fff,#f8fafc);padding:4px 0 12px;margin-bottom:10px;border-bottom:1px solid #eef2f7}.check-group{border:1px solid #e6eef6;border-radius:16px;background:#fff;padding:14px;margin:12px 0;box-shadow:0 5px 16px #0f172a09}.check-group h4{margin:0 0 10px;color:#0d3b66;font-size:14px;display:flex;align-items:center;gap:8px}.check-group h4:before{content:"";width:9px;height:9px;border-radius:999px;background:#2a9d8f;box-shadow:0 0 0 4px #e8f7f5}.check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.check-card{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:flex-start;border:1px solid #e5e7eb;border-radius:14px;background:#fff;padding:11px 12px;cursor:pointer;transition:.15s;min-height:68px}.check-card:hover{border-color:#2a9d8f;background:#ecfdf5;box-shadow:0 8px 20px #2a9d8f1a}.check-card input{width:18px;height:18px;margin-top:2px;accent-color:#2A9D8F;flex-shrink:0}.check-card span{display:flex;flex-direction:column;gap:4px;min-width:0}.check-card b{color:#0d3b66;font-size:13px;line-height:1.25;white-space:normal;word-break:break-word}.check-card small{color:#64748b;font-size:12px;font-weight:700;line-height:1.2}.check-card:has(input:checked){border-color:#2a9d8f;background:#e8f7f5;box-shadow:0 8px 22px #2a9d8f24}.check-card:has(input:checked) b{color:#0f766e}.employee-block{border:1px solid #e6eef6;border-radius:14px;background:#fff;padding:10px;margin-top:8px}@media(max-width:760px){.check-grid{grid-template-columns:1fr}.employee-services-panel{max-height:none}.employee-services-panel>.toolbar{position:static}}.modal:has(.employee-services-panel){width:min(980px,100%)}.tri-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;background:linear-gradient(135deg,#0d3b66,#2a9d8f);color:#fff;border-radius:22px;padding:24px;margin-bottom:16px;box-shadow:0 18px 45px #0d3b662e}.tri-hero h2{margin:0;font-size:28px;font-weight:900}.tri-hero p{margin:6px 0 0;color:#ffffffe0;max-width:720px}.tri-toast{margin-bottom:14px;border:1px solid #bbf7d0;background:#f0fdf4;color:#15803d;border-radius:14px;padding:12px 14px;font-weight:900}.tri-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}.tri-stats div{position:relative;background:#fff;border:1px solid #e6eef6;border-radius:18px;padding:18px;box-shadow:0 6px 20px #0f172a0d;overflow:hidden}.tri-stats div:after{content:"";position:absolute;right:-24px;top:-24px;width:80px;height:80px;border-radius:999px;background:#2a9d8f17}.tri-stats span{display:block;color:#64748b;font-weight:800;font-size:13px}.tri-stats b{display:block;margin-top:5px;color:#0d3b66;font-size:28px;line-height:1.1}.tri-filters{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:16px}.tri-filters input{border:1px solid #e5e7eb;border-radius:13px;padding:11px 12px;background:#fff;color:#0d3b66;font-weight:700}.tri-dashboard{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:16px}.tri-chart,.tri-empty-chart{background:#fff;border:1px solid #e6eef6;border-radius:18px;padding:14px;box-shadow:0 6px 20px #0f172a0a}.tri-chart b{display:block;color:#0d3b66;margin-bottom:8px}.tri-chart svg{width:100%;height:150px}.tri-chart line{stroke:#e5e7eb}.tri-chart path{fill:none;stroke-width:2.5}.tri-chart text{font-size:10px;fill:#64748b;font-weight:700}.tri-empty-chart{min-height:150px;display:flex;align-items:center;justify-content:center;color:#94a3b8;font-weight:800;text-align:center}.tri-vitals{display:flex;flex-wrap:wrap;gap:6px}.tri-vitals span{border-radius:999px;background:#f1f5f9;color:#334155;padding:4px 8px;font-size:12px;font-weight:800}.tri-priority{display:inline-flex;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:900;text-transform:capitalize}.tri-red{background:#fee2e2;color:#b91c1c}.tri-orange{background:#ffedd5;color:#c2410c}.tri-amber{background:#fef3c7;color:#a16207}.tri-green{background:#dcfce7;color:#15803d}.tri-patient-card{display:flex;flex-direction:column;gap:4px;margin:8px 0 14px;padding:13px 15px;border:1px solid #dbe4ef;border-radius:16px;background:linear-gradient(135deg,#f8fafc,#ecfdf5);color:#0d3b66}.tri-patient-card span{color:#64748b;font-size:12px}.tri-form-section{border:1px solid #e6eef6;border-radius:18px;background:#fbfdff;padding:16px;margin-bottom:14px}.tri-form-section h3{margin:0 0 12px;color:#0d3b66}.tri-vital-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}@media(max-width:900px){.tri-stats,.tri-dashboard,.tri-vital-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tri-hero{align-items:flex-start;flex-direction:column}}@media(max-width:620px){.tri-stats,.tri-dashboard,.tri-vital-grid{grid-template-columns:1fr}.tri-filters input,.tri-filters button{width:100%}}.pae-picker-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;border:1px solid #e6eef6;border-radius:18px;background:linear-gradient(135deg,#f8fafc,#ecfdf5);padding:15px;margin:14px 0}.pae-picker-head h3{margin:0;color:#0d3b66}.pae-picker-head p{margin:5px 0 0;color:#64748b;font-weight:700}.pae-item-card{border:1px solid #dbe4ef;border-radius:18px;background:#fff;padding:14px;margin-bottom:12px;box-shadow:0 6px 20px #0f172a0a}.pae-item-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.pae-selected{margin:8px 0 12px;border:1px solid #bbf7d0;background:#f0fdf4;border-radius:14px;padding:11px 13px;color:#0f766e}.pae-selected b{display:block;color:#0d3b66;margin-bottom:3px}.pae-selected span{font-weight:800;color:#0f766e}@media(max-width:720px){.pae-picker-head{flex-direction:column}.pae-picker-head .toolbar,.pae-picker-head .toolbar button{width:100%}}.agenda-form{display:grid;gap:16px}.agenda-form-section{border:1px solid #dfe7ef;border-radius:16px;background:#fff;padding:17px}.agenda-form-primary{border-color:#b8ded9;background:#f8fffd}.agenda-form-section-head{display:flex;align-items:flex-start;gap:11px;margin-bottom:15px}.agenda-form-section-head>span{width:28px;height:28px;flex:0 0 28px;border-radius:50%;display:grid;place-items:center;background:#0d3b66;color:#fff;font-size:13px;font-weight:900}.agenda-form-primary .agenda-form-section-head>span{background:#2a9d8f}.agenda-form-section-head h3{margin:1px 0 3px;color:#0d3b66;font-size:16px}.agenda-form-section-head p{margin:0;color:#64748b;font-size:12px}.agenda-form-section:first-child .agenda-form-grid{grid-template-columns:2fr 1fr 1.35fr}.agenda-form-grid .field{margin-bottom:0}.agenda-form-stack{display:grid;gap:12px}.agenda-service-selected{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid #99d5cc;border-left:4px solid #2A9D8F;border-radius:12px;background:#fff;padding:12px 13px}.agenda-service-selected div{min-width:0;display:grid;gap:3px}.agenda-service-selected small{color:#64748b;font-weight:700}.agenda-service-selected b{color:#0d3b66;overflow-wrap:anywhere}.agenda-service-selected span{color:#0f766e;font-size:12px;font-weight:800}.agenda-form select:disabled,.agenda-form input:disabled{background:#f1f5f9;color:#94a3b8;cursor:not-allowed}.agenda-form-notice{border:1px solid #fde68a;border-radius:12px;background:#fffbeb;color:#92400e;padding:10px 12px;font-size:12px;font-weight:700}.agenda-employee-selected{display:flex;align-items:center;justify-content:space-between;gap:10px;border-radius:12px;background:#eef6fb;padding:10px 12px}.agenda-employee-selected b{color:#0d3b66}.agenda-employee-selected span{color:#64748b;font-size:12px;font-weight:700}.agenda-time-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;border-radius:12px;background:#0d3b66;color:#fff;padding:10px 13px}.agenda-time-summary b{font-size:16px}.agenda-time-summary span{font-size:12px;font-weight:700;color:#dcecf7}.agenda-field-full{grid-column:1/-1}.agenda-field-full textarea{min-height:84px;resize:vertical}.agenda-form-actions{display:flex;justify-content:flex-end;padding-top:2px}.agenda-form-actions .btn{min-width:170px}@media(max-width:720px){.agenda-form-section{padding:14px}.agenda-form-section:first-child .agenda-form-grid{grid-template-columns:1fr}.agenda-service-selected,.agenda-employee-selected,.agenda-time-summary{align-items:flex-start;flex-direction:column}.agenda-service-selected .btn,.agenda-form-actions .btn{width:100%}.agenda-form-actions{position:sticky;bottom:-22px;background:#fff;padding:12px 0 2px}}.modal-wide{width:min(1120px,100%)}.modal-loading{min-height:180px;display:grid;place-items:center;color:#64748b;font-weight:800}.modal-actions{display:flex;justify-content:flex-end;margin-top:16px}.empty-cell{text-align:center!important;color:#94a3b8;padding:28px!important}.fe-hero,.daily-head{display:flex;align-items:center;justify-content:space-between;gap:20px;border-radius:18px;padding:22px;margin-bottom:16px}.fe-hero{background:#0d3b66;color:#fff}.fe-hero h2,.daily-head h2{margin:3px 0 5px;font-size:27px}.fe-hero p,.daily-head p{margin:0;color:#ffffffd1}.fe-kicker{font-size:11px;font-weight:900;text-transform:uppercase;color:#9fe3da;letter-spacing:.08em}.fe-hero-actions{display:flex;gap:10px;flex-wrap:wrap}.fe-kpis,.daily-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.fe-kpis>div,.daily-kpis>div{border:1px solid #e2e8f0;border-radius:14px;background:#fff;padding:16px}.fe-kpis small,.daily-kpis span{display:block;color:#64748b;font-size:12px;font-weight:800}.fe-kpis b,.daily-kpis b{display:block;margin-top:5px;color:#0d3b66;font-size:23px}.fe-section{border-top:1px solid #e2e8f0;padding-top:16px;margin-top:16px}.fe-section:first-child{border-top:0;padding-top:0;margin-top:0}.fe-section h3{margin:0 0 14px;color:#0d3b66}.fe-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.fe-section-title h3,.fe-section-title h4{margin:0;color:#0d3b66}.fe-doc-choice{display:grid;grid-template-columns:1fr 1fr;gap:12px}.fe-doc-choice button{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;text-align:left;border:1px solid #dbe4ef;border-radius:14px;background:#fff;padding:14px;color:#64748b}.fe-doc-choice button svg{grid-row:1/3;color:#2a9d8f}.fe-doc-choice button b{color:#0d3b66}.fe-doc-choice button span{font-size:12px}.fe-doc-choice button.active{border-color:#2a9d8f;background:#ecfdf5;box-shadow:0 0 0 3px #2a9d8f1f}.fe-items{display:grid;gap:10px}.fe-item{display:grid;grid-template-columns:32px .7fr 2fr .8fr .7fr .9fr auto;gap:10px;align-items:end;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc;padding:12px}.fe-item .field{margin:0}.fe-item-number{align-self:center;width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#0d3b66;color:#fff;font-size:12px;font-weight:900}.fe-bottom{display:grid;grid-template-columns:1fr 310px;gap:18px;align-items:start}.fe-totals{border:1px solid #cfe0ee;border-radius:14px;background:#f8fbfe;padding:15px;margin-top:16px}.fe-totals div{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #e2e8f0}.fe-totals .grand{font-size:19px;color:#0d3b66}.fe-totals .btn{width:100%;margin-top:14px}.fe-credit{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.fe-credit input{border:1px solid #e2e8f0;border-radius:10px;padding:10px}.daily-head{background:#fff;border:1px solid #dbe4ef}.daily-head h2{color:#0d3b66}.daily-head p{color:#64748b}.daily-filters{display:grid;grid-template-columns:repeat(5,minmax(125px,1fr)) auto;gap:10px;align-items:end;border:1px solid #dbe4ef;border-radius:16px;background:#fff;padding:14px;margin-bottom:16px}.daily-filters .field{margin:0}.daily-charts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:16px}.daily-chart{min-height:230px}.daily-bar{margin:13px 0}.daily-bar>div{display:flex;justify-content:space-between;gap:10px;font-size:12px}.daily-bar span{color:#334155;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.daily-bar b{color:#0d3b66;white-space:nowrap}.daily-bar i{display:block;height:8px;margin-top:6px;border-radius:999px;background:#e2e8f0;overflow:hidden}.daily-bar em{display:block;height:100%;border-radius:999px;background:#2a9d8f}.daily-table table{min-width:980px}.daily-brand{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:8px;background:#e8f0f8;color:#0d3b66;font-weight:900}@media(max-width:1050px){.fe-kpis,.daily-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.daily-filters{grid-template-columns:repeat(3,1fr)}.daily-charts{grid-template-columns:1fr}.fe-item{grid-template-columns:32px 1fr 1fr}.fe-item .field:nth-of-type(2){grid-column:2/4}.fe-bottom{grid-template-columns:1fr}}@media(max-width:680px){.fe-hero,.daily-head{align-items:flex-start;flex-direction:column}.fe-hero-actions,.fe-hero-actions .btn,.daily-head .btn{width:100%}.fe-kpis,.daily-kpis,.daily-filters,.fe-doc-choice{grid-template-columns:1fr}.fe-item{grid-template-columns:28px 1fr}.fe-item .field,.fe-item .field:nth-of-type(2){grid-column:2}.fe-item .icon-btn{grid-column:2;justify-self:end}.fe-credit{grid-template-columns:1fr}.modal-wide .modal-body{padding:15px}}.company-dashboard-grid{grid-template-columns:2fr 1fr}.dashboard-operational{height:220px;background:#e8f0f8;border:1px solid #d9e4ef;border-radius:8px;display:flex;align-items:center;justify-content:center;color:#0d3b66;font-weight:900}.employee-dashboard{display:flex;flex-direction:column;gap:18px}.employee-welcome{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:20px 22px;background:#0d3b66;color:#fff;border-radius:8px}.employee-welcome small{color:#9ed9d2;text-transform:uppercase;font-weight:800}.employee-welcome h2{margin:4px 0;font-size:24px}.employee-welcome p{margin:0;color:#dbeafe}.employee-dashboard-tabs{display:flex;gap:6px;background:#fff;padding:5px;border-radius:7px}.employee-dashboard-tabs .tab{margin:0}.dashboard-error{border-color:#fecaca;color:#b91c1c}.employee-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:18px}.personal-panel-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:14px}.personal-panel-head h3,.personal-panel-head p{margin:0}.personal-panel-head p{color:#64748b;font-size:13px;margin-top:4px}.personal-service-list{display:flex;flex-direction:column}.personal-service-list>div{display:grid;grid-template-columns:28px 1fr auto;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid #edf2f7}.service-position{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#e7f4f2;color:#13766d;font-weight:800;font-size:12px}.personal-upcoming{display:flex;flex-direction:column;gap:9px}.personal-agenda{display:flex;flex-direction:column;gap:14px}.personal-appointment{position:relative;cursor:pointer}.appointment-triage-btn{position:absolute;left:-8px;top:-8px;width:30px;height:30px;border:0;border-radius:50%;display:grid;place-items:center;background:#0d9488;color:#fff;box-shadow:0 5px 14px #0f766e44;z-index:2}.appointment-triage-btn:hover{transform:translateY(-1px);background:#0f766e}.clinical-form{display:flex;flex-direction:column;gap:12px}.clinical-form textarea{min-height:78px}.clinical-checks{display:flex;flex-wrap:wrap;gap:9px}.clinical-checks label{display:flex;align-items:center;gap:7px;padding:9px 12px;border:1px solid #dbe4ef;border-radius:10px;background:#f8fafc;font-weight:700}.personal-agenda-toolbar{display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center;padding:12px}.agenda-view-switch{display:flex;gap:5px}.agenda-period-nav{display:grid;grid-template-columns:auto minmax(180px,1fr) auto;gap:10px;align-items:center}.agenda-period-nav>div{text-align:center;display:flex;flex-direction:column}.agenda-period-nav small{color:#64748b;margin-top:3px}.personal-days{display:grid;grid-template-columns:repeat(7,minmax(145px,1fr));gap:10px;overflow-x:auto;padding-bottom:5px}.personal-days.single{grid-template-columns:minmax(300px,760px);justify-content:center}.personal-day{padding:0;overflow:hidden;min-height:230px}.personal-day-head{display:flex;align-items:baseline;gap:6px;padding:11px 12px;background:#eff6fb;color:#0d3b66;text-transform:capitalize}.personal-day-head b{font-size:20px}.personal-day-head span,.personal-day-head small{font-weight:700}.personal-day-body{padding:9px;display:flex;flex-direction:column;gap:8px}.personal-empty{color:#94a3b8;font-size:12px;text-align:center;margin:42px 0}.personal-appointment{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;padding:9px;background:#fff;border:1px solid #e2e8f0;border-left:3px solid #2A9D8F;border-radius:6px}.personal-appointment>div:nth-child(2){min-width:0;display:flex;flex-direction:column}.personal-appointment>div:nth-child(2)>b,.personal-appointment>div:nth-child(2)>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.personal-appointment>div:nth-child(2)>span,.personal-appointment>div:nth-child(2)>small{font-size:11px;color:#64748b;margin-top:2px}.personal-appointment>.pill{grid-column:1/-1;justify-self:start}.personal-appointment.compact{grid-template-columns:auto minmax(0,1fr) auto;align-items:center}.personal-appointment.compact>.pill{grid-column:auto;justify-self:end}.appointment-time{display:flex;flex-direction:column;color:#0d3b66}.appointment-time small{font-size:10px;color:#64748b}@media(max-width:900px){.company-dashboard-grid,.employee-summary-grid{grid-template-columns:1fr!important}.employee-welcome{align-items:stretch;flex-direction:column}.employee-dashboard-tabs{align-self:stretch}.employee-dashboard-tabs .tab{flex:1}.personal-agenda-toolbar{grid-template-columns:1fr}.agenda-view-switch{justify-content:center}.agenda-period-nav{order:3}}@media(max-width:600px){.personal-days{grid-template-columns:1fr;overflow:visible}.personal-agenda-toolbar{padding:10px}.agenda-period-nav{grid-template-columns:auto 1fr auto}.agenda-period-nav .btn{padding:8px}.personal-appointment.compact{grid-template-columns:auto minmax(0,1fr)}.personal-appointment.compact>.pill{grid-column:1/-1;justify-self:start}}.report-patient{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-radius:16px;background:linear-gradient(135deg,#e8fbf8,#eef6ff);color:#123b56;margin-bottom:12px}.report-patient div{display:flex;flex-direction:column;gap:4px}.report-patient b{font-size:18px}.report-patient span{color:#64748b}.report-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0}.report-actions span{margin-left:auto;color:#64748b;font-weight:700}.appointment-report-list{display:grid;gap:9px;max-height:390px;overflow:auto;padding:3px}.appointment-report-list label{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;padding:13px;border:1px solid #dce7ef;border-radius:14px;background:#fff;cursor:pointer;transition:.18s}.appointment-report-list label:hover,.appointment-report-list label.selected{border-color:#2a9d8f;background:#f0fdfa;box-shadow:0 5px 16px #0f766e16}.appointment-report-list label>div{display:flex;flex-direction:column;gap:3px}.appointment-report-list label span{color:#64748b}.appointment-report-list em{font-style:normal;font-size:12px;font-weight:800;padding:5px 9px;border-radius:999px}.appointment-report-list em.ready{color:#08745f;background:#d9f8ef}.appointment-report-list em.pending{color:#9a6700;background:#fff4ce}
