:root{
  --sage:#6f8069;
  --sage-700:#566753;
  --sage-800:#41503f;
  --sage-100:#e8eee5;
  --sage-050:#f3f6f1;
  --ivory:#f5f1e8;
  --ivory-2:#ece5d9;
  --paper:#fffdfa;
  --paper-2:#fbfaf7;
  --ink:#202620;
  --muted:#737a72;
  --line:#e7e1d7;
  --danger:#ba5a55;
  --danger-bg:#fbe9e6;
  --warning:#a87937;
  --warning-bg:#fff3df;
  --purple:#786398;
  --purple-bg:#f0ebf8;
  --blue:#617b97;
  --blue-bg:#eaf0f6;
  --shadow:0 18px 48px rgba(56,66,54,.09);
  --shadow-sm:0 8px 24px rgba(56,66,54,.065);
  --radius:18px;
  --radius-sm:12px;
}

*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--ivory);color:var(--ink)}
html{scroll-behavior:smooth}
body{font-family:Inter,"Segoe UI","Noto Sans Georgian",system-ui,-apple-system,BlinkMacSystemFont,sans-serif;font-size:14px;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
.hidden{display:none!important}

.boot-loader{min-height:50vh;display:flex;align-items:center;justify-content:center;gap:12px;color:var(--muted)}
.spinner{width:24px;height:24px;border:2px solid var(--line);border-top-color:var(--sage);border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

.icon{width:18px;height:18px;display:inline-block;vertical-align:middle}
.logo-mark{width:38px;height:38px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(145deg,#eef3eb,#dfe8dc);color:var(--sage-700);font-weight:800;font-size:20px;box-shadow:inset 0 0 0 1px rgba(86,103,83,.06)}
.brand{display:flex;align-items:center;gap:11px}
.brand-name{font-family:Georgia,"Times New Roman",serif;font-size:22px;font-weight:600;letter-spacing:-.45px;color:#354433}
.brand-sub{font-size:10px;color:var(--muted);margin-top:2px;max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.btn{border:1px solid var(--line);background:var(--paper);padding:10px 14px;border-radius:11px;font-weight:680;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:.16s ease;min-height:40px;box-shadow:0 1px 0 rgba(33,39,32,.02)}
.btn:hover{transform:translateY(-1px);border-color:#d6d0c5;box-shadow:var(--shadow-sm)}
.btn-primary{background:linear-gradient(180deg,#788b72,#687b62);color:#fff;border-color:#687b62;box-shadow:0 8px 18px rgba(86,103,83,.18)}
.btn-primary:hover{background:linear-gradient(180deg,#6f8269,#5f715a)}
.btn-danger{color:var(--danger);border-color:#ead2cf;background:#fff}
.btn-danger.fill{background:var(--danger);color:#fff;border-color:var(--danger)}
.btn-ghost{background:transparent;box-shadow:none}
.btn-sm{padding:7px 10px;min-height:34px;font-size:12px;border-radius:10px}
.btn-block{width:100%}
.btn:disabled{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}
.icon-btn{width:39px;height:39px;border-radius:11px;border:1px solid var(--line);background:var(--paper);display:grid;place-items:center;color:#586157;transition:.16s ease}
.icon-btn:hover{background:var(--sage-050);border-color:#d7dfd4}

.field{display:flex;flex-direction:column;gap:7px}
.field label{font-size:11px;font-weight:750;color:#555d53;letter-spacing:.01em}
.input,.select,.textarea{width:100%;border:1px solid var(--line);background:#fff;padding:11px 12px;border-radius:11px;outline:none;transition:.15s;box-shadow:inset 0 1px 0 rgba(33,39,32,.01)}
.textarea{min-height:90px;resize:vertical}
.input:hover,.select:hover,.textarea:hover{border-color:#d5d0c7}
.input:focus,.select:focus,.textarea:focus{border-color:#9eae98;box-shadow:0 0 0 3px rgba(111,128,105,.11)}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px}
.helper{font-size:11px;color:var(--muted)}

/* Auth */
.auth-page{min-height:100vh;padding:30px;background:radial-gradient(circle at 12% 92%,rgba(111,128,105,.16),transparent 31%),radial-gradient(circle at 86% 13%,rgba(255,255,255,.95),transparent 28%),linear-gradient(135deg,#fbf9f4,var(--ivory))}
.auth-shell{min-height:calc(100vh - 60px);max-width:1450px;margin:auto;display:grid;grid-template-columns:1.06fr .94fr;border:1px solid var(--line);border-radius:30px;background:rgba(255,255,255,.42);overflow:hidden;box-shadow:0 28px 80px rgba(50,59,48,.11)}
.auth-hero{padding:58px;position:relative;overflow:hidden}
.auth-hero:before{content:"";position:absolute;width:500px;height:500px;border-radius:50%;border:1px solid rgba(111,128,105,.14);right:-180px;top:110px;box-shadow:inset 72px 0 rgba(255,255,255,.45),inset 150px 0 rgba(111,128,105,.035)}
.auth-hero:after{content:"";position:absolute;left:0;right:0;bottom:0;height:180px;background:linear-gradient(180deg,transparent,rgba(111,128,105,.07))}
.hero-copy{position:relative;z-index:1;max-width:620px;margin-top:20vh}
.hero-copy h1{font-family:Georgia,"Times New Roman",serif;font-size:56px;line-height:1.02;font-weight:500;letter-spacing:-1.7px;margin:0 0 22px;color:#2f3c2d}
.hero-copy p{font-size:17px;line-height:1.8;color:var(--muted);max-width:520px}
.hero-chip{display:inline-flex;padding:7px 11px;border-radius:999px;background:var(--sage-100);color:var(--sage-700);font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}
.auth-side{background:rgba(255,255,255,.76);display:flex;align-items:center;justify-content:center;padding:48px;border-left:1px solid var(--line)}
.auth-card{width:min(480px,100%);background:rgba(255,253,250,.96);border:1px solid var(--line);border-radius:24px;padding:36px;box-shadow:0 18px 46px rgba(50,59,48,.085)}
.auth-card h2{font-family:Georgia,"Times New Roman",serif;font-size:32px;font-weight:500;margin:0 0 8px;color:#334132}
.auth-card>p{color:var(--muted);margin:0 0 26px}
.auth-card .field{margin-bottom:14px}
.setup-note{background:var(--sage-050);border:1px solid #dce5d8;border-radius:12px;padding:12px;color:var(--sage-700);font-size:12px;margin-bottom:18px}

/* Shell */
.app-shell{min-height:100vh;display:grid;grid-template-columns:218px minmax(0,1fr);background:#f7f5f0}
.sidebar{position:sticky;top:0;height:100vh;background:rgba(255,253,250,.97);border-right:1px solid var(--line);padding:17px 13px;display:flex;flex-direction:column;z-index:8}
.sidebar-brand{padding:7px 8px 24px}
.nav{display:flex;flex-direction:column;gap:5px}
.nav-btn{border:0;background:transparent;border-radius:11px;padding:10px 11px;display:flex;align-items:center;gap:10px;text-align:left;color:#515950;font-size:13px;transition:.14s ease}
.nav-btn .icon{width:17px;height:17px;color:#626b60}
.nav-btn:hover{background:#f2f4ef;color:#334031}
.nav-btn.active{background:linear-gradient(135deg,#809278,#6f8269);color:#fff;box-shadow:0 8px 20px rgba(86,103,83,.15)}
.nav-btn.active .icon{color:#fff}
.sidebar-foot{margin-top:auto;border-top:1px solid var(--line);padding-top:13px}
.workspace-card{display:flex;align-items:center;gap:9px;padding:11px;border:1px solid var(--line);background:linear-gradient(145deg,#fbfaf7,#f3f0e9);border-radius:13px;margin-bottom:9px}
.workspace-card strong,.workspace-card small{display:block}
.workspace-card strong{font-size:12px;max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.workspace-card small{font-size:10px;color:var(--muted);margin-top:2px}
.workspace-dot{width:9px;height:9px;border-radius:50%;background:#7d9a73;box-shadow:0 0 0 4px #e9f0e6;flex:0 0 auto}
.user-mini{padding:10px;border-radius:13px;background:var(--sage-050);margin-bottom:8px;display:flex;align-items:center;gap:9px}
.user-mini>div{min-width:0}.user-mini strong{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-mini span{font-size:10px;color:var(--muted)}
.mini-avatar,.top-avatar{display:grid;place-items:center;border-radius:50%;background:linear-gradient(145deg,#e4eadf,#d6e1d2);color:#52634e;font-weight:800;border:1px solid rgba(86,103,83,.08)}
.mini-avatar{width:32px;height:32px;font-size:10px;flex:0 0 auto}

.main{min-width:0;background:#f8f6f2}
.topbar{height:76px;background:rgba(255,253,250,.90);backdrop-filter:blur(16px);border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 24px;gap:14px;position:sticky;top:0;z-index:7}
.top-title h1{font-size:16px;margin:1px 0 0;font-weight:760;letter-spacing:-.15px}
.top-kicker{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.12em;color:#92988f;font-weight:800}
.topbar-spacer{flex:1}
.top-user{display:flex;align-items:center;gap:9px;padding:5px 8px 5px 5px;border-radius:12px}
.top-user:hover{background:var(--sage-050)}
.top-avatar{width:34px;height:34px;font-size:10px}
.top-user strong,.top-user small{display:block}.top-user strong{font-size:11px}.top-user small{font-size:9px;color:var(--muted);margin-top:1px}
.support-banner{background:#fff4da;border-bottom:1px solid #eddbab;padding:8px 24px;display:flex;align-items:center;justify-content:space-between;color:#765a20;position:sticky;top:0;z-index:9}
.content{padding:24px;max-width:1760px;margin:auto}

.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin-bottom:18px}
.page-head h2{font-family:Georgia,"Times New Roman",serif;font-weight:500;font-size:28px;line-height:1.2;margin:0 0 4px;color:#344132;letter-spacing:-.35px}
.page-head p{margin:0;color:var(--muted);font-size:12px}
.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.stat-card{background:var(--paper);border:1px solid var(--line);border-radius:17px;padding:17px;box-shadow:var(--shadow-sm);display:flex;gap:13px;align-items:center}
.stat-icon{width:42px;height:42px;border-radius:50%;background:linear-gradient(145deg,#f1f5ef,#e1e9de);display:grid;place-items:center;font-size:17px;color:#53634f}
.stat-card small{display:block;color:var(--muted);margin-bottom:3px;font-size:10px}.stat-card strong{font-size:23px;letter-spacing:-.6px}
.panel{background:var(--paper);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow-sm)}
.panel-head{padding:14px 16px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:58px}
.panel-head h3{font-size:13px;margin:0;display:flex;align-items:center;gap:7px}.panel-body{padding:17px}.mt{margin-top:16px}

.table-wrap{overflow:auto}.table{width:100%;border-collapse:separate;border-spacing:0}.table th,.table td{text-align:left;padding:11px 12px;border-bottom:1px solid #ece7df;white-space:nowrap}.table th{font-size:9px;text-transform:uppercase;letter-spacing:.07em;color:#858b83;background:#fbfaf7;position:sticky;top:0;z-index:1}.table tbody tr:hover td{background:#fafbf8}.table tr:last-child td{border-bottom:0}.table .actions{display:flex;gap:6px}.badge{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;font-size:9px;font-weight:800;background:#eaf1e7;color:#577052}.badge.danger{background:var(--danger-bg);color:var(--danger)}.badge.warning{background:var(--warning-bg);color:var(--warning)}.badge.purple{background:var(--purple-bg);color:var(--purple)}.badge.neutral{background:#efefec;color:#666}.empty{padding:42px;text-align:center;color:var(--muted)}

.admin-grid{display:grid;grid-template-columns:1.3fr .7fr;gap:16px}.org-card{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:13px;margin-bottom:9px;background:#fff}.org-avatar{width:38px;height:38px;border-radius:11px;background:var(--sage-100);display:grid;place-items:center;font-weight:800;color:var(--sage-700)}.org-card .grow{flex:1}.org-card strong{display:block}.org-card small{color:var(--muted)}

/* Calendar */
.calendar-layout{display:grid;grid-template-columns:minmax(760px,1fr) 340px;gap:15px;align-items:start}
.calendar-panel{overflow:hidden;border-radius:19px}
.calendar-toolbar{padding:11px 12px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#fffdfa}
.calendar-toolbar .select{width:auto;min-width:205px}.calendar-toolbar .input{width:auto}
.calendar-scroll{overflow:auto;max-height:calc(100vh - 198px);scrollbar-color:#b8bdb5 transparent;scrollbar-width:thin}
.cal-grid{display:grid;min-width:860px;position:relative;background:#fff}
.cal-head{display:grid;grid-template-columns:64px repeat(var(--cols),minmax(165px,1fr));position:sticky;top:0;background:rgba(255,253,250,.98);z-index:4;border-bottom:1px solid var(--line);box-shadow:0 5px 12px rgba(42,48,41,.035)}
.cal-head>div{padding:10px;border-right:1px solid #ece7df;min-height:58px}
.sp-head{display:flex;align-items:center;gap:9px}.sp-avatar{width:32px;height:32px;border-radius:50%;background:linear-gradient(145deg,#ede7dd,#e2e9de);display:grid;place-items:center;color:#596957;font-size:9px;font-weight:850;flex:0 0 auto}.sp-head strong{display:block;font-size:11px;line-height:1.2}.sp-head small{display:block;color:var(--muted);font-size:9px;margin-top:3px}
.cal-row{display:grid;grid-template-columns:64px repeat(var(--cols),minmax(165px,1fr));min-height:35px}
.time-label{padding:8px 8px 0;color:#7b8279;font-size:9px;text-align:right;border-right:1px solid #ece7df;border-bottom:1px solid #f0ece5;font-variant-numeric:tabular-nums;background:#fffdfa}
.cal-row:nth-child(4n+2) .time-label{font-weight:800;color:#515950}
.cal-cell{position:relative;border-right:1px solid #ece7df;border-bottom:1px solid #f0ece5;padding:2px;min-height:35px;background:#fff}
.cal-cell.free{background:#fff}.cal-cell.free:hover{background:#f4f7f2}.free-btn{width:100%;height:100%;min-height:30px;border:1px dashed #c9d5c4;background:transparent;border-radius:7px;color:#789173;opacity:.22;font-size:10px;transition:.14s}.cal-cell.free:hover .free-btn{opacity:1;background:#f4f8f2}
.cal-cell.closed{background:#fcfbf9}.cal-cell.closed:after{content:"";position:absolute;left:8px;right:8px;top:50%;height:1px;background:#efeae3}
.appointment{height:100%;min-height:31px;width:100%;border:1px solid #c7d5c3;background:linear-gradient(135deg,#edf4ea,#e1eadc);border-radius:7px;padding:5px 7px;text-align:left;overflow:hidden;box-shadow:0 2px 5px rgba(86,103,83,.045)}
.appointment:hover{filter:saturate(1.05);box-shadow:0 5px 12px rgba(86,103,83,.09)}
.appointment.unpaid{border-color:#e6cfa9;background:linear-gradient(135deg,#fff8e8,#f8edd8)}.appointment.cancelled{opacity:.45;text-decoration:line-through}.appointment strong{display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.appointment small{font-size:8.5px;color:#6d756d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;margin-top:1px}.occupied-tail{height:100%;border-radius:6px;background:rgba(111,128,105,.055)}

.assistant{display:flex;flex-direction:column;min-height:620px;max-height:calc(100vh - 120px);position:sticky;top:92px;overflow:hidden}
.assistant .panel-head{background:#fffdfa}.assistant-messages{padding:13px;overflow:auto;flex:1;display:flex;flex-direction:column;gap:10px;background:linear-gradient(180deg,#fffdfa,#fbfaf7)}.msg{padding:10px 11px;border-radius:13px;max-width:94%;line-height:1.5;font-size:11px}.msg.user{align-self:flex-end;background:linear-gradient(135deg,#7b8d74,#6c7f66);color:white;border-bottom-right-radius:4px}.msg.system{align-self:flex-start;background:#f1f5ef;border:1px solid #dce5d8;border-bottom-left-radius:4px}.slot-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.slot-chip{border:1px solid #ccd7c8;background:#fff;padding:6px 8px;border-radius:8px;font-size:10px}.assistant-form{border-top:1px solid var(--line);padding:10px;display:flex;gap:7px;background:#fffdfa}.assistant-form .input{flex:1}.assistant-hint{padding:8px 12px;border-top:1px solid var(--line);font-size:9px;color:#8a9088;background:#fbfaf7}

.two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px}.specialist-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.specialist-card{padding:15px;background:var(--paper);border:1px solid var(--line);border-radius:17px;box-shadow:var(--shadow-sm)}.person-row{display:flex;align-items:center;gap:11px}.avatar{width:42px;height:42px;border-radius:50%;background:linear-gradient(145deg,#eef2eb,#dee7da);display:grid;place-items:center;color:var(--sage-700);font-weight:800}.person-row .grow{flex:1}.person-row strong{display:block}.person-row small{color:var(--muted)}.tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:12px}.tag{font-size:9px;padding:5px 7px;border-radius:999px;background:#f1eee8;color:#666}.schedule-table{width:100%;border-collapse:collapse}.schedule-table td{padding:7px 5px;border-bottom:1px solid #eee9e2}.schedule-table .input{padding:7px;width:92px}.check-row{display:flex;align-items:center;gap:7px}.switch{width:38px;height:22px;border-radius:99px;background:#d8d8d3;position:relative;display:inline-block}.switch:after{content:"";width:16px;height:16px;border-radius:50%;background:white;position:absolute;top:3px;left:3px;transition:.18s}.switch.on{background:var(--sage)}.switch.on:after{left:19px}

/* Modal */
.modal-backdrop{position:fixed;inset:0;background:rgba(30,35,28,.42);backdrop-filter:blur(5px);z-index:50;display:flex;align-items:center;justify-content:center;padding:20px}.modal{width:min(610px,100%);max-height:90vh;overflow:auto;background:var(--paper);border:1px solid rgba(231,225,215,.95);border-radius:20px;box-shadow:0 34px 95px rgba(29,35,27,.25)}.modal.wide{width:min(920px,100%)}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:17px 19px;border-bottom:1px solid var(--line);background:#fffdfa;position:sticky;top:0;z-index:2}.modal-head h3{margin:0;font-size:15px}.modal-body{padding:19px}.modal-close{width:34px;height:34px;border-radius:50%;border:0;background:#f5f3ee;font-size:20px;color:var(--muted)}.modal-close:hover{background:#eeebe4}.summary-box{background:linear-gradient(145deg,#f3f6f1,#edf2ea);border:1px solid #dce5d8;border-radius:13px;padding:12px;margin-bottom:15px;display:grid;grid-template-columns:1fr 1fr;gap:9px}.summary-box small{display:block;color:var(--muted);font-size:9px}.summary-box strong{font-size:12px}.danger-box{padding:10px;border:1px solid #e8c9c6;background:var(--danger-bg);border-radius:10px;color:var(--danger);font-size:12px}

#toast-root{position:fixed;top:18px;right:18px;z-index:100;display:flex;flex-direction:column;gap:8px}.toast{min-width:260px;max-width:420px;background:#2f3b2d;color:#fff;border-radius:12px;padding:11px 13px;box-shadow:var(--shadow);animation:toastIn .2s ease}.toast.error{background:#823f3a}.toast small{display:block;opacity:.75;margin-top:2px}@keyframes toastIn{from{transform:translateY(-6px);opacity:0}}

.kpi-line{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}.kpi-line:last-child{border:0}.money{font-variant-numeric:tabular-nums;font-weight:750}.link-box{font-family:ui-monospace,Consolas,monospace;background:#f5f3ee;border:1px solid var(--line);border-radius:9px;padding:7px 9px;font-size:10px;max-width:360px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.searchbar{display:flex;gap:8px}.searchbar .input{max-width:360px}.section-note{border-left:3px solid var(--sage);padding:9px 12px;background:var(--sage-050);color:#5f6b5b;border-radius:0 9px 9px 0;font-size:11px}.muted{color:var(--muted)}.right{text-align:right}.nowrap{white-space:nowrap}.stack{display:flex;flex-direction:column;gap:10px}.inline{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.grow{flex:1}.sep{height:1px;background:var(--line);margin:14px 0}

@media(max-width:1280px){.cards{grid-template-columns:repeat(2,1fr)}.calendar-layout{grid-template-columns:1fr}.assistant{position:relative;top:auto;max-height:none;min-height:430px}.specialist-grid{grid-template-columns:repeat(2,1fr)}.admin-grid{grid-template-columns:1fr}}
@media(max-width:900px){.app-shell{grid-template-columns:1fr}.sidebar{position:relative;height:auto;border-right:0;border-bottom:1px solid var(--line);padding:11px}.sidebar-brand{padding:2px 4px 10px}.nav{flex-direction:row;overflow:auto;padding-bottom:2px}.nav-btn{white-space:nowrap}.sidebar-foot{display:none}.topbar{top:0;height:66px;padding:0 13px}.top-user>div{display:none}.content{padding:13px}.cards,.two-col,.specialist-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.calendar-layout{display:block}.summary-box{grid-template-columns:1fr}.auth-shell{grid-template-columns:1fr}.auth-hero{display:none}.auth-side{border-left:0}.calendar-scroll{max-height:70vh}}
@media(max-width:600px){.auth-page{padding:12px}.auth-shell{min-height:calc(100vh - 24px);border-radius:20px}.auth-side{padding:18px}.auth-card{padding:24px}.content{padding:10px}.page-head{align-items:flex-start;flex-direction:column}.page-head .btn{width:100%}.calendar-toolbar .select{min-width:100%;width:100%}.calendar-toolbar .input{flex:1}.top-title .top-kicker{display:none}.top-title h1{font-size:14px}.top-user{display:none}}

/* SOREVA V4_REFERENCE_PATCH */
:root{--sage:#788a72;--sage-700:#62705e;--sage-100:#e4eadf;--sage-050:#f1f5ef;--paper:#fffefa;--bg:#f8f5ef;--line:#e9e3d9;--text:#252a25;--muted:#7d827b;--shadow-sm:0 7px 24px rgba(49,58,48,.055);--shadow:0 18px 55px rgba(43,50,42,.09)}
body{background:#f8f5ef;color:var(--text)}.app-shell{grid-template-columns:184px minmax(0,1fr)}.sidebar{padding:16px 11px;background:#fffefa}.sidebar-brand{padding:5px 8px 22px}.brand-name{font-family:Georgia,serif;font-size:24px;letter-spacing:-.04em}.logo-image{overflow:hidden}.logo-image img{width:100%;height:100%;object-fit:cover}.nav-btn{min-height:39px;border-radius:9px;font-size:11px;padding:0 10px}.nav-btn.active{background:linear-gradient(135deg,#84947e,#71836c);box-shadow:0 7px 18px rgba(86,105,82,.15)}
.topbar{height:72px;padding:0 22px;background:rgba(255,254,250,.95)}.top-title{min-width:180px}.top-title h1{font-size:14px}.top-kicker{font-size:8px}.top-search-wrap{position:relative;width:min(360px,30vw);margin-left:auto}.top-search-icon{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:#778077}.top-search{width:100%;height:38px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:0 12px 0 34px;outline:none;font-size:11px}.top-search:focus{border-color:#aab9a5;box-shadow:0 0 0 3px #eef3ec}.topbar-spacer{flex:0}.notif-wrap{position:relative}.notif-btn{font-size:17px;position:relative}.notif-count{position:absolute;right:1px;top:1px;min-width:16px;height:16px;border-radius:99px;background:#d65c58;color:#fff;font-size:8px;display:grid;place-items:center;border:2px solid #fff}.notif-panel{position:absolute;right:0;top:46px;width:330px;background:#fffefa;border:1px solid var(--line);border-radius:16px;box-shadow:0 20px 60px rgba(34,41,34,.16);overflow:hidden;z-index:30}.notif-title{padding:14px 15px;border-bottom:1px solid var(--line)}.notif-title strong,.notif-title small{display:block}.notif-title small{font-size:9px;color:var(--muted);margin-top:2px}.notif-summary{padding:10px 14px;background:#f1f5ef;color:#52604f;font-size:10px}.notif-item{width:100%;border:0;border-bottom:1px solid #f0ebe4;background:#fff;text-align:left;padding:10px 13px;display:grid;grid-template-columns:45px 1fr;gap:8px}.notif-item:hover{background:#faf8f4}.notif-item strong,.notif-item small{display:block}.notif-item small{color:var(--muted);font-size:9px;margin-top:2px}.notif-time{font-weight:800;color:#667861;font-size:10px}.empty-mini{padding:18px;color:var(--muted);font-size:10px;text-align:center}
.content{padding:18px 20px 26px;max-width:none}.crm-calendar-page{max-width:1540px;margin:0 auto}.reference-layout{grid-template-columns:minmax(690px,1fr) 310px;gap:13px}.calendar-main-column{min-width:0;display:flex;flex-direction:column;gap:12px}.calendar-panel,.todays-panel,.calendar-side-card{border-radius:17px;border-color:#e8e1d6;box-shadow:0 6px 24px rgba(56,64,54,.045)}.reference-toolbar{height:58px;flex-wrap:nowrap;padding:10px 12px;gap:6px}.toolbar-today{padding-inline:15px}.icon-only{width:35px;padding:0;font-size:16px}.hidden-date{width:1px;height:1px;opacity:0;position:absolute}.date-title{min-width:160px;display:flex;align-items:center;gap:9px;margin:0 8px;cursor:pointer}.date-icon{color:#758271}.date-title strong,.date-title small{display:block}.date-title strong{font-size:11px}.date-title small{font-size:8px;color:var(--muted);margin-top:1px}.view-switch{display:flex;margin-left:auto;border:1px solid var(--line);border-radius:9px;overflow:hidden}.view-switch button{height:34px;min-width:50px;border:0;border-right:1px solid var(--line);background:#fff;color:#6f756e;font-size:9px}.view-switch button:last-child{border:0}.view-switch button.active{background:#788a72;color:white}.filter-select{width:170px!important;min-width:170px!important;height:36px;font-size:9px}.reference-scroll{max-height:590px}.reference-grid{min-width:680px}.cal-head{grid-template-columns:58px repeat(var(--cols),minmax(132px,1fr))}.cal-head>div{min-height:58px;padding:9px 8px}.sp-head strong{font-size:10px}.sp-head small{font-size:8px}.sp-avatar{width:31px;height:31px}.has-photo{padding:0!important;overflow:hidden}.has-photo img{width:100%;height:100%;object-fit:cover;display:block}.cal-row{grid-template-columns:58px repeat(var(--cols),minmax(132px,1fr));min-height:31px}.time-label{font-size:8px;min-height:31px;padding:7px 6px 0}.cal-row.full-hour .time-label{font-weight:850;color:#454d45}.cal-row.full-hour .cal-cell{border-top-color:#ddd7ce}.cal-cell{min-height:31px;padding:2px}.reference-free{border:1px dashed transparent;opacity:0}.cal-cell.free:hover .reference-free{opacity:1;border-color:#aebbab;background:#f4f8f1}.reference-free span{width:22px;height:22px;border:1px solid #b9c8b5;border-radius:50%;display:grid;place-items:center;margin:auto;color:#6c8067;background:#fff}.appointment{position:relative;padding:4px 7px;min-height:27px;border-radius:7px;background:#edf4ea;border-color:#cad7c6}.appointment .appt-time{display:block;font-size:7.5px;color:#55715a;margin-bottom:1px}.appointment strong{font-size:9px}.appointment small{font-size:7.5px}.appt-check{position:absolute;right:5px;bottom:4px;width:13px;height:13px;border:1px solid currentColor;border-radius:50%;display:grid;place-items:center;font-size:7px;opacity:.65}.appointment.tone-1,.occupied-tail.tone-1{background:#f7e8ef;border-color:#ebcbd9}.appointment.tone-1 .appt-time{color:#9b5875}.appointment.tone-2,.occupied-tail.tone-2{background:#e8f0f5;border-color:#c7d9e5}.appointment.tone-2 .appt-time{color:#55768d}.appointment.tone-3,.occupied-tail.tone-3{background:#eee9fa;border-color:#d8ccef}.appointment.tone-3 .appt-time{color:#725f9c}.appointment.unpaid{background:#fff1dc;border-color:#eed3a8}.occupied-tail{border-radius:6px;background:#edf4ea}
.calendar-side-card{position:sticky;top:90px;min-height:590px;max-height:calc(100vh - 108px);overflow:hidden;background:#fffefa}.side-tabs{height:56px;display:flex;border-bottom:1px solid var(--line);padding:9px;gap:5px}.side-tabs button{flex:1;border:0;border-radius:9px;background:transparent;color:#737a72;font-size:9px;font-weight:750;display:flex;align-items:center;justify-content:center;gap:5px}.side-tabs button.active{background:#eef3eb;color:#566852}.side-tabs .icon{width:14px;height:14px}#calendar-side-content{height:calc(100% - 56px);min-height:532px;display:flex;flex-direction:column}.embedded-assistant{position:static;min-height:532px;max-height:none;border:0;box-shadow:none}.embedded-assistant .assistant-messages{padding:12px}.embedded-assistant .assistant-form{margin-top:auto}.side-empty{padding:48px 24px;text-align:center;color:var(--muted)}.side-empty-icon{width:50px;height:50px;border-radius:15px;background:#f0f3ed;margin:0 auto 15px;display:grid;place-items:center;color:#71816d;font-size:20px}.side-empty strong{display:block;color:var(--text);font-size:13px}.side-empty p{font-size:10px;line-height:1.6}.appointment-detail-pane{padding:14px;overflow:auto}.detail-date{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;font-weight:700;margin-bottom:14px}.detail-client{display:flex;align-items:center;gap:11px;padding:14px;border:1px solid var(--line);border-radius:13px;background:#fff}.detail-client h3{margin:0 0 3px;font-size:14px}.detail-client strong{font-size:11px}.detail-avatar{width:44px;height:44px;border-radius:50%;background:#e4eadf;display:grid;place-items:center;font-weight:800;color:#64745f;flex:0 0 auto}.detail-meta{display:flex;align-items:center;gap:7px;padding:11px 2px;color:#6d746d;font-size:10px}.service-dot{width:9px;height:9px;border-radius:50%;background:#9ab290}.service-dot.tone-1{background:#c993ab}.service-dot.tone-2{background:#87a9bc}.service-dot.tone-3{background:#9d8bc1}.detail-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;padding-bottom:13px;border-bottom:1px solid var(--line)}.detail-actions .btn{padding:0 6px;font-size:8px}.side-section{padding:14px 0;border-bottom:1px solid var(--line)}.side-section>label{display:block;font-size:9px;font-weight:800;margin-bottom:8px}.status-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.status-choice{border:1px solid var(--line);background:#fff;border-radius:9px;padding:8px 3px;font-size:8px;color:#737a72}.status-choice.active{border-color:#8ea087;background:#edf3ea;color:#4f674c}.payment-box{display:flex;justify-content:space-between;align-items:center;background:#faf8f4;border:1px solid var(--line);border-radius:10px;padding:10px 11px;margin-bottom:10px}.payment-box small,.payment-box strong{display:block}.payment-box small{font-size:8px;color:var(--muted)}.payment-box strong{font-size:15px;margin-top:2px}.todays-panel{overflow:hidden}.compact-head{min-height:48px;padding:10px 13px}.today-table th{font-size:8px}.today-table td{font-size:9px;padding:8px 10px}.client-cell{display:flex;align-items:center;gap:8px}.client-cell strong,.client-cell small{display:block}.client-cell small{font-size:8px;color:var(--muted);margin-top:1px}.table-avatar{width:27px;height:27px;border-radius:50%;background:#e8ede5;display:grid;place-items:center;color:#61705e;font-size:7px;font-weight:800;flex:0 0 auto}.dots-btn{width:28px;height:28px;border:0;background:transparent;border-radius:7px;color:#778077}.dots-btn:hover{background:#f0eee8}
.booking-modal-summary{border:1px solid var(--line);border-radius:14px;background:#faf9f5;padding:12px;margin-bottom:15px}.booking-person{display:flex;align-items:center;gap:9px;margin-bottom:10px}.booking-avatar{width:34px;height:34px;border-radius:50%;background:#e2e8df;display:grid;place-items:center;font-size:9px;font-weight:800}.booking-person small,.booking-person strong{display:block}.booking-person small{font-size:8px;color:var(--muted)}.booking-summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.booking-summary-grid>div{background:#fff;border:1px solid #eee9e1;border-radius:9px;padding:8px}.booking-summary-grid small,.booking-summary-grid strong{display:block}.booking-summary-grid small{font-size:7px;color:var(--muted)}.booking-summary-grid strong{font-size:9px;margin-top:2px}.booking-two-fields{grid-template-columns:1fr 1fr}.photo-upload-wrap{display:flex;align-items:center;gap:14px;padding:12px;border:1px solid var(--line);background:#faf9f5;border-radius:14px;margin-bottom:15px}.photo-upload-wrap>div:last-child{display:flex;flex-direction:column;align-items:flex-start;gap:3px}.photo-upload-wrap small{color:var(--muted);font-size:9px}.photo-btn{margin-top:5px}.photo-preview{width:72px;height:72px;border-radius:50%;background:#e5ebe1;display:grid;place-items:center;color:#63725f;font-weight:800;font-size:18px;overflow:hidden;flex:0 0 auto}.photo-preview img{width:100%;height:100%;object-fit:cover}.specialist-photo{width:52px;height:52px}.org-logo-editor .logo-preview{border-radius:16px}.profile-editor{background:#fff}.logo-mark.logo-image{border-radius:10px}
@media(max-width:1180px){.reference-layout{grid-template-columns:1fr}.calendar-side-card{position:relative;top:auto;max-height:none;min-height:430px}.reference-scroll{max-height:560px}.top-search-wrap{display:none}}
@media(max-width:800px){.app-shell{grid-template-columns:1fr}.sidebar{position:relative;height:auto}.reference-toolbar{height:auto;flex-wrap:wrap}.date-title{order:-1;min-width:140px}.view-switch{margin-left:0}.filter-select{width:100%!important}.booking-two-fields,.booking-summary-grid{grid-template-columns:1fr 1fr}.notif-panel{right:-80px;width:300px}}


/* SOREVA UX FIX PACK 01B */
.user-mini,.top-user{cursor:pointer}.user-mini:hover,.top-user:hover{background:#f1f3ee}.mini-avatar.has-photo,.top-avatar.has-photo,.photo-preview.has-photo,.booking-avatar.has-photo{overflow:hidden}.mini-avatar img,.top-avatar img,.photo-preview img,.booking-avatar img{width:100%;height:100%;object-fit:cover;display:block}.profile-editor{display:grid;gap:20px}.photo-upload-wrap{display:flex;align-items:center;gap:16px;padding:16px;border:1px solid var(--line,#e8e2d8);border-radius:16px;background:#fbfaf6}.photo-upload-wrap>div:last-child{display:grid;gap:6px}.photo-upload-wrap small{color:#7d827c}.photo-preview{width:70px;height:70px;border-radius:50%;display:grid;place-items:center;background:#e5ebdf;color:#65745f;font-weight:800;flex:0 0 auto}.grow{flex:1}.booking-service-field{min-width:190px}.booking-service-field .select{margin-top:5px}.calendar-alt-panel{overflow:hidden}.week-grid{display:grid;grid-template-columns:repeat(7,minmax(150px,1fr));gap:1px;background:#e8e2d8;overflow:auto;min-height:560px}.week-day-card{appearance:none;border:0;text-align:left;background:#fffdf9;min-width:150px;padding:0;color:inherit}.week-day-card:hover,.month-day:hover{background:#fbfaf6}.week-day-head{padding:14px 12px;border-bottom:1px solid #e8e2d8}.week-day-head strong,.week-day-head span,.week-appt span,.week-appt strong,.week-appt small{display:block}.week-day-head span{color:#7d827c;font-size:11px;margin-top:2px}.week-appts{padding:10px;display:grid;gap:7px}.week-appt{border-radius:9px;padding:8px;border:1px solid rgba(100,110,100,.10)}.week-appt span{color:#66745f;font-size:10px}.week-appt strong{font-size:12px}.week-appt small{font-size:10px;color:#787e78}.empty-mini{padding:12px 4px;color:#999;font-size:11px}.month-weekdays{display:grid;grid-template-columns:repeat(7,1fr);background:#f8f5ef}.month-weekdays>div{padding:10px;text-align:center;font-size:10px;font-weight:700;color:#747a74;border-bottom:1px solid #e8e2d8}.month-grid{display:grid;grid-template-columns:repeat(7,minmax(110px,1fr));gap:1px;background:#e8e2d8}.month-day{appearance:none;border:0;min-height:110px;padding:9px;background:#fffdf9;text-align:left;color:inherit}.month-day.outside{background:#f6f4ef;color:#aaa}.month-date{display:flex;align-items:center;justify-content:space-between}.month-date span{display:grid;place-items:center;min-width:21px;height:21px;padding:0 5px;border-radius:999px;background:#e6ece2;color:#65745f;font-size:10px}.month-appts{margin-top:7px;display:grid;gap:4px}.month-appt{padding:4px 5px;border-radius:6px;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tone-green{background:#eaf2e7!important;border-color:#d2e0cd!important}.tone-pink{background:#f7e8ee!important;border-color:#ecd1dc!important}.tone-blue{background:#e7f0f6!important;border-color:#d1e0eb!important}.tone-purple{background:#eee9f7!important;border-color:#ddd2ef!important}.tone-amber{background:#fbf0df!important;border-color:#ecdcc4!important}.tone-red{background:#fae8e6!important;border-color:#efd0cc!important}@media(max-width:1100px){.week-grid,.month-grid,.month-weekdays{min-width:980px}}


/* SOREVA NOTIFICATION READ FIX */

.soreva-notification-header{
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
}

.soreva-read-all-notifications{
    margin-left:auto;
    border:1px solid #dfe5db;
    background:#f6f8f3;
    color:#66745f;
    min-height:32px;
    padding:0 11px;
    border-radius:9px;
    font-size:11px;
    font-weight:700;
    cursor:pointer;
    transition:.18s ease;
    white-space:nowrap;
}

.soreva-read-all-notifications:hover{
    background:#e9eee6;
    border-color:#ccd7c8;
}

.soreva-read-all-notifications.is-read{
    color:#8a9188;
    background:#f5f5f2;
    cursor:default;
    opacity:.8;
}

.soreva-all-notifications-read{
    --notification-read-opacity:.78;
}

/* SOREVA NOTIFICATION HEADER ALIGNMENT V2 */

.soreva-notification-header{
    position:relative !important;
    display:block !important;
    min-height:50px !important;
    padding-right:128px !important;
}

.soreva-read-all-notifications{
    position:absolute !important;
    right:0 !important;
    top:50% !important;
    transform:translateY(-50%) !important;

    margin:0 !important;
    width:auto !important;
    min-width:112px !important;
    max-width:none !important;
    min-height:30px !important;

    padding:0 9px !important;

    border-radius:8px !important;

    font-size:10px !important;
    line-height:1 !important;
    font-weight:700 !important;

    white-space:nowrap !important;
}

.soreva-read-all-notifications.is-read{
    min-width:112px !important;
    font-size:9px !important;
}

/* SOREVA MULTI PROCEDURE V2 */

.multi-booking-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
}

.multi-booking-hint{
    max-width:300px;
    color:#7b817a;
    font-size:11px;
    line-height:1.45;
    text-align:right;
}

.multi-procedure-list{
    display:grid;
    gap:10px;
    margin-top:16px;
}

.multi-procedure-row{
    display:grid;
    grid-template-columns:
        32px
        minmax(180px,1.4fr)
        minmax(170px,1.2fr)
        minmax(120px,.8fr)
        34px;
    gap:10px;
    align-items:end;

    padding:13px;

    border:
        1px solid #e8e2d8;

    border-radius:14px;

    background:
        #fffdf9;
}

.multi-procedure-number{
    width:28px;
    height:28px;

    display:grid;
    place-items:center;

    align-self:center;

    border-radius:50%;

    background:#e4ebe0;
    color:#62705e;

    font-size:11px;
    font-weight:800;
}

.multi-procedure-meta{
    display:grid;
    gap:3px;
    align-self:center;
}

.multi-procedure-meta span{
    font-weight:800;
    font-size:12px;
    color:#384238;
}

.multi-procedure-meta small{
    color:#777e77;
    font-size:10px;
}

.multi-remove{
    width:32px;
    height:32px;

    border:
        1px solid #eadbd6;

    border-radius:9px;

    background:#fff8f6;
    color:#a45d53;

    font-size:18px;
    line-height:1;

    cursor:pointer;
}

.multi-remove:hover{
    background:#fcece8;
}

.multi-add-btn{
    margin-top:12px;

    border-style:dashed !important;

    color:#65745f !important;

    background:#f7faf5 !important;
}

.multi-booking-total{
    display:grid;
    grid-template-columns:
        repeat(3,1fr);

    gap:1px;

    margin:14px 0 17px;

    overflow:hidden;

    border:
        1px solid #e3ddd2;

    border-radius:13px;

    background:#e3ddd2;
}

.multi-booking-total>div{
    padding:12px 14px;
    background:#f8f6f0;
}

.multi-booking-total small,
.multi-booking-total strong{
    display:block;
}

.multi-booking-total small{
    color:#858a84;
    font-size:9px;
    margin-bottom:3px;
}

.multi-booking-total strong{
    color:#334033;
    font-size:13px;
}

@media(max-width:850px){

    .multi-booking-head{
        align-items:flex-start;
        flex-direction:column;
    }

    .multi-booking-hint{
        max-width:none;
        text-align:left;
    }

    .multi-procedure-row{
        grid-template-columns:
            28px
            1fr
            34px;
    }

    .multi-procedure-row .field{
        grid-column:
            2 / 3;
    }

    .multi-procedure-meta{
        grid-column:
            2 / 3;
    }

    .multi-remove{
        grid-column:3;
        grid-row:1;
    }
}

/* SOREVA AVAILABILITY AWARE MULTI */

.multi-procedure-row.is-unavailable{
    border-color:#e7b9b1 !important;
    background:#fff8f6 !important;
}

.availability-ok{
    color:#5f7b5b !important;
    font-weight:700;
}

.availability-bad{
    color:#a04e44 !important;
    font-weight:700;
}

.multi-availability-message{
    margin:0 0 14px;
    padding:9px 11px;
    border-radius:10px;
    font-size:11px;
    font-weight:700;
}

.multi-availability-message.ok{
    background:#edf5ea;
    color:#5e7759;
    border:1px solid #d7e6d2;
}

.multi-availability-message.error{
    background:#fff0ed;
    color:#9c4b42;
    border:1px solid #efd1cb;
}

.multi-availability-message.checking{
    background:#f6f5f0;
    color:#777d76;
    border:1px solid #e4e0d7;
}

#multi-save-button:disabled{
    opacity:.5;
    cursor:not-allowed;
}

/* SOREVA ADD NEXT PROCEDURE DETAILS */

.append-procedure-launch{
    margin-top:16px;
    padding:12px 0 2px;
    border-top:1px solid #e6e0d6;
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
}

.append-procedure-launch small{
    color:#7c827b;
    font-size:10px;
}

.append-procedure-button{
    border-style:dashed !important;
    background:#f6f9f3 !important;
    color:#61735d !important;
    font-weight:800 !important;
}

.append-procedure-box{
    margin-top:12px;
    padding:15px;
    border:1px solid #dfe7da;
    border-radius:14px;
    background:#f8faf6;
}

.append-procedure-box[hidden]{
    display:none !important;
}

.append-procedure-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:12px;
}

.append-procedure-head strong,
.append-procedure-head small{
    display:block;
}

.append-procedure-head small{
    margin-top:3px;
    color:#7c837b;
    font-size:10px;
}

.append-availability{
    min-height:0;
    margin-top:10px;
    border-radius:9px;
    font-size:10px;
    font-weight:700;
}

.append-availability.checking,
.append-availability.ok,
.append-availability.error{
    padding:8px 10px;
}

.append-availability.checking{
    color:#70766f;
    background:#f1f1ed;
}

.append-availability.ok{
    color:#5d7758;
    background:#eaf3e6;
    border:1px solid #d5e5d0;
}

.append-availability.error{
    color:#9b4a42;
    background:#fff0ed;
    border:1px solid #efd1cb;
}

.append-preview{
    margin-top:10px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:1px;
    overflow:hidden;
    border:1px solid #e2ddd3;
    border-radius:11px;
    background:#e2ddd3;
}

.append-preview[hidden]{
    display:none !important;
}

.append-preview>div{
    padding:10px;
    background:#fffdf9;
}

.append-preview small,
.append-preview strong{
    display:block;
}

.append-preview small{
    color:#858a84;
    font-size:9px;
    margin-bottom:3px;
}

.append-preview strong{
    font-size:12px;
    color:#354035;
}

@media(max-width:720px){
    .append-preview{
        grid-template-columns:repeat(2,1fr);
    }
}

/* SOREVA VISIT PROCEDURE MANAGER */

.visit-procedure-manager{
    margin-top:16px;
    margin-bottom:14px;
    border:1px solid #e1ddd4;
    border-radius:14px;
    overflow:hidden;
    background:#fffdf9;
}

.visit-manager-head{
    padding:12px 14px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    background:#f7f8f3;
    border-bottom:1px solid #e5e1d8;
}

.visit-manager-head strong,
.visit-manager-head small{
    display:block;
}

.visit-manager-head strong{
    font-size:13px;
    color:#303930;
}

.visit-manager-head small{
    margin-top:3px;
    font-size:9px;
    color:#7c837b;
}

.visit-count{
    min-width:27px;
    height:27px;
    padding:0 8px;
    display:grid;
    place-items:center;
    border-radius:999px;
    background:#dfe9db;
    color:#60735d;
    font-size:11px;
    font-weight:800;
}

.visit-procedure-list{
    display:grid;
}

.visit-procedure-item{
    display:grid;
    grid-template-columns:
        30px
        minmax(130px,1.4fr)
        minmax(120px,1fr)
        auto
        minmax(190px,auto);

    align-items:center;
    gap:10px;

    padding:11px 13px;

    border-bottom:
        1px solid #ebe7df;
}

.visit-procedure-item:last-child{
    border-bottom:0;
}

.visit-procedure-item.is-current{
    background:#f4f8f1;
}

.visit-procedure-item.is-cancelled{
    opacity:.62;
}

.visit-number{
    width:26px;
    height:26px;

    display:grid;
    place-items:center;

    border-radius:50%;

    background:#e4ebe0;
    color:#60725d;

    font-size:10px;
    font-weight:800;
}

.visit-main{
    min-width:0;
}

.visit-time{
    margin-bottom:2px;

    color:#60735d;

    font-size:10px;
    font-weight:800;
}

.visit-main strong,
.visit-main small{
    display:block;
}

.visit-main strong{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;

    font-size:11px;
}

.visit-main small{
    margin-top:2px;

    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;

    color:#7c817c;
    font-size:9px;
}

.visit-status{
    display:grid;
    grid-template-columns:auto auto;
    align-items:center;
    gap:4px 7px;

    font-size:8px;
    color:#858a84;
}

.visit-status .badge{
    font-size:8px;
}

.visit-price{
    white-space:nowrap;

    font-size:11px;
    font-weight:800;
}

.visit-actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:5px;
    flex-wrap:wrap;
}

.visit-actions .btn{
    min-height:30px;
}

.current-pill{
    display:inline-flex;
    align-items:center;

    min-height:29px;

    padding:0 9px;

    border-radius:8px;

    background:#e4eee0;
    color:#60755b;

    font-size:9px;
    font-weight:800;
}

@media(max-width:850px){

    .visit-procedure-item{
        grid-template-columns:
            28px
            1fr
            auto;
    }

    .visit-status{
        grid-column:
            2 / 4;
    }

    .visit-price{
        grid-column:2;
    }

    .visit-actions{
        grid-column:
            2 / 4;

        justify-content:flex-start;
    }
}

/* === SOREVA OFFICIAL LOGIN LOGO === */
.soreva-login-brand {
    display:flex !important;
    align-items:center !important;
    width:auto !important;
}

.soreva-login-logo {
    display:block !important;
    width:150px !important;
    height:auto !important;
    max-height:62px !important;
    object-fit:contain !important;
}

@media(max-width:900px){
    .soreva-login-logo {
        width:135px !important;
        max-height:55px !important;
    }
}

/* ===== SOREVA HERO TEXT FIX ===== */
.hero h1,
.hero-title,
.hero__title,
.hero-content h1,
.hero-left h1,
.login-hero h1,
.auth-hero h1,
section.hero h1,
main section:first-of-type h1,
h1.hero-heading {
    font-size: clamp(42px, 4.8vw, 78px) !important;
    line-height: 0.95 !important;
    letter-spacing: -0.02em !important;
    max-width: 9ch !important;
    word-break: break-word !important;
}

@media (max-width: 1280px) {
    .hero h1,
    .hero-title,
    .hero__title,
    .hero-content h1,
    .hero-left h1,
    .login-hero h1,
    .auth-hero h1,
    section.hero h1,
    main section:first-of-type h1,
    h1.hero-heading {
        font-size: clamp(38px, 4.2vw, 68px) !important;
        line-height: 0.97 !important;
        max-width: 10ch !important;
    }
}

@media (max-width: 992px) {
    .hero h1,
    .hero-title,
    .hero__title,
    .hero-content h1,
    .hero-left h1,
    .login-hero h1,
    .auth-hero h1,
    section.hero h1,
    main section:first-of-type h1,
    h1.hero-heading {
        font-size: clamp(34px, 3.8vw, 56px) !important;
        line-height: 1.02 !important;
        max-width: 11ch !important;
    }
}

@media (max-width: 768px) {
    .hero h1,
    .hero-title,
    .hero__title,
    .hero-content h1,
    .hero-left h1,
    .login-hero h1,
    .auth-hero h1,
    section.hero h1,
    main section:first-of-type h1,
    h1.hero-heading {
        font-size: clamp(28px, 7vw, 44px) !important;
        line-height: 1.05 !important;
        max-width: 100% !important;
    }
}
/* ===== END SOREVA HERO TEXT FIX ===== */


/* === SOREVA CRM LOGIN TITLE ACTUAL SMALL SIZE === */
.auth-hero .hero-copy h1 {
    font-size: 34px !important;
    line-height: 1.10 !important;
    letter-spacing: -0.015em !important;
    max-width: 540px !important;
    width: 100% !important;
    margin: 18px 0 18px !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

@media (max-width: 1100px) {
    .auth-hero .hero-copy h1 {
        font-size: 30px !important;
    }
}
