.ml-history-pro{display:grid;gap:12px}.ml-history-pro-head{margin-bottom:8px}.ml-history-pro-head h1{line-height:1.05}.ml-history-pro-head p{margin-top:4px}.ml-history-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.ml-history-kpi{position:relative;display:grid;grid-template-columns:40px minmax(0,1fr);grid-template-areas:"icon label" "icon value" "icon note";align-items:center;min-width:0;min-height:82px;border:1px solid #e2e8f0;border-radius:18px;padding:12px 14px;background:radial-gradient(circle at 92% 14%,rgb(37 99 235 / .08),transparent 32%),linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);box-shadow:0 12px 26px rgb(15 23 42 / .05);transition:transform 0.18s ease,border-color 0.18s ease,box-shadow 0.18s ease}.ml-history-kpi:hover{transform:translateY(-2px);border-color:#bfdbfe;box-shadow:0 18px 32px rgb(37 99 235 / .12)}.ml-history-kpi__icon{grid-area:icon;display:grid;place-items:center;width:34px;height:34px;border-radius:12px;background:#eff6ff;color:#1d4ed8;font-size:14px;font-weight:900}.ml-history-kpi__label{grid-area:label;color:#64748b;font-size:11px;line-height:1.2;font-weight:900}.ml-history-kpi strong{grid-area:value;color:#0f172a;font-size:24px;line-height:1;font-weight:950}.ml-history-kpi small{grid-area:note;color:#64748b;font-size:10px;line-height:1.2;font-weight:750}.ml-history-kpi--green .ml-history-kpi__icon{background:#dcfce7;color:#15803d}.ml-history-kpi--amber .ml-history-kpi__icon{background:#ffedd5;color:#ea580c}.ml-history-kpi--violet .ml-history-kpi__icon{background:#f3e8ff;color:#7e22ce}.ml-history-filter-pro,.ml-history-list-pro,.ml-history-side-card{border:1px solid #e2e8f0;border-radius:18px;padding:14px;background:linear-gradient(180deg,rgb(255 255 255 / .98),rgb(248 250 252 / .98));box-shadow:0 12px 26px rgb(15 23 42 / .045);overflow:hidden}.ml-history-section-head{display:flex;align-items:flex-start;gap:9px;min-width:0}.ml-history-section-icon,.ml-history-side-icon{display:grid;place-items:center;width:28px;height:28px;flex:0 0 28px;border-radius:10px;background:#eff6ff;color:#1d4ed8;font-size:12px;font-weight:900}.ml-history-section-head h2,.ml-history-list-head-pro h2,.ml-history-side-card h2{margin:1px 0 0;color:#0f172a;font-size:16px;line-height:1.2;font-weight:950}.ml-history-filter-form-pro{max-width:none;display:grid;grid-template-columns:1.35fr 0.95fr 0.95fr 0.95fr;gap:10px;margin-top:12px}.ml-history-filter-form-pro .ml-field,.ml-history-field{min-width:0}.ml-history-filter-form-pro .ml-field>span:first-child,.ml-history-field>span:first-child{display:block;margin-bottom:5px;color:#334155;font-size:11px;line-height:1.1;font-weight:900}.ml-history-filter-form-pro input,.ml-history-filter-form-pro select,.ml-history-input{width:100%;min-width:0;min-height:39px;border:1px solid #cbd5e1;border-radius:12px;background:#fff;color:#0f172a;font-size:12px;box-shadow:inset 0 1px 0 rgb(15 23 42 / .03);transition:border-color 0.18s ease,box-shadow 0.18s ease,background 0.18s ease}.ml-history-filter-form-pro input,.ml-history-filter-form-pro select{padding:0 12px}.ml-history-filter-form-pro select{appearance:none;-webkit-appearance:none;background-image:linear-gradient(45deg,transparent 50%,#64748b 50%),linear-gradient(135deg,#64748b 50%,transparent 50%);background-position:calc(100% - 16px) calc(50% - 2px),calc(100% - 11px) calc(50% - 2px);background-size:5px 5px,5px 5px;background-repeat:no-repeat;padding-right:32px}.ml-history-filter-form-pro input:focus,.ml-history-filter-form-pro select:focus,.ml-history-input:focus-within{border-color:#60a5fa;box-shadow:0 0 0 4px rgb(59 130 246 / .12);outline:none}.ml-history-input{display:grid;grid-template-columns:36px minmax(0,1fr);align-items:center;padding:0 10px 0 0}.ml-history-input__icon{display:grid;place-items:center;color:#1d4ed8;font-size:12px;font-weight:900}.ml-history-input input{min-height:37px;border:0;padding:0;background:#fff0;box-shadow:none}.ml-history-input input:focus{box-shadow:none}.ml-history-filter-form-pro .ml-field--history-date input[type="date"]{padding-right:38px;appearance:none;-webkit-appearance:none}.ml-history-filter-form-pro .ml-field--history-date input[type="date"]::-webkit-calendar-picker-indicator{opacity:.68;cursor:pointer}.ml-history-chipbar{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:10px}.ml-history-chip,.ml-history-clear{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:31px;border:1px solid #dbe3ef;border-radius:11px;padding:6px 10px;background:#fff;color:#334155;font-size:11px;line-height:1;font-weight:850;cursor:pointer;transition:transform 0.18s ease,border-color 0.18s ease,background 0.18s ease,color 0.18s ease,box-shadow 0.18s ease}.ml-history-chip:hover,.ml-history-clear:hover{transform:translateY(-1px);border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8;box-shadow:0 10px 20px rgb(37 99 235 / .08)}.ml-history-chip.is-active{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8}.ml-history-chip .dot{width:6px;height:6px;border-radius:999px}.ml-history-chip .is-blue{background:#2563eb}.ml-history-chip .is-green{background:#22c55e}.ml-history-chip .is-amber{background:#f97316}.ml-history-chip .is-violet{background:#7e22ce}.ml-history-clear{margin-left:auto;border-color:#fff0;background:#fff0;color:#1d4ed8}.ml-history-layout-pro{display:grid;grid-template-columns:minmax(0,1fr) 208px;gap:10px;align-items:start}.ml-history-list-head-pro{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.ml-history-new{min-width:120px;min-height:36px;border-radius:12px;font-size:12px;box-shadow:0 10px 18px rgb(29 78 216 / .2)}.ml-history-table{display:grid;gap:7px;width:100%;min-width:0}.ml-history-table__head,.ml-history-row{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,0.95fr) minmax(80px,0.72fr) minmax(122px,0.82fr);gap:10px;align-items:center}.ml-history-table__head{padding:0 10px;color:#64748b;font-size:10px;font-weight:950;text-transform:uppercase;letter-spacing:.04em}.ml-history-table__body{display:grid;gap:8px}.ml-history-row{position:relative;border:1px solid #e5e7eb;border-radius:15px;padding:10px 10px 10px 12px;min-height:54px;background:#fff;box-shadow:0 7px 16px rgb(15 23 42 / .035);transition:transform 0.18s ease,border-color 0.18s ease,box-shadow 0.18s ease,background 0.18s ease}.ml-history-row::before{content:"";position:absolute;inset:10px auto 10px 0;width:3px;border-radius:999px;background:#1d4ed8;opacity:0;transition:opacity 0.18s ease}.ml-history-row:hover{transform:translateY(-1px);border-color:#bfdbfe;background:#fbfdff;box-shadow:0 18px 34px rgb(37 99 235 / .1)}.ml-history-row:hover::before{opacity:1}.ml-history-cell{min-width:0;color:#334155;font-size:11.5px;line-height:1.2;font-weight:750}.ml-history-cell>span,.ml-history-cell small,.ml-history-cell strong{overflow-wrap:anywhere}.ml-history-patient{display:grid;grid-template-columns:30px minmax(0,1fr);gap:8px;align-items:center}.ml-history-avatar{display:grid;place-items:center;width:28px;height:28px;border-radius:10px;background:#dbeafe;color:#1d4ed8;font-size:10px;font-weight:950}.ml-history-row--pending .ml-history-avatar{background:#ffedd5;color:#c2410c}.ml-history-row--recurrent .ml-history-avatar{background:#f3e8ff;color:#7e22ce}.ml-history-patient strong,.ml-history-date strong{display:block;color:#0f172a;font-size:12px;line-height:1.2;font-weight:950}.ml-history-patient small,.ml-history-date small,.ml-history-attention small{display:block;margin-top:2px;color:#64748b;font-size:10.5px;line-height:1.22;font-weight:750}.ml-history-patient small{display:grid;gap:1px}.ml-history-doc,.ml-history-phone{display:block}.ml-history-result{display:grid;gap:5px}.ml-history-status{display:inline-flex;align-items:center;justify-content:center;min-height:24px;width:fit-content;border-radius:999px;padding:5px 9px;font-size:10px;line-height:1;font-weight:950;white-space:nowrap}.ml-history-status--confirmed{background:#dcfce7;color:#15803d}.ml-history-status--pending{background:#ffedd5;color:#c2410c}.ml-history-status--recurrent{background:#dbeafe;color:#1d4ed8}.ml-history-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;min-width:0}.ml-history-action,.ml-history-icon-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:31px;border:1px solid #dbe3ef;border-radius:10px;padding:6px 10px;background:#fff;color:#1d4ed8;font-size:10.5px;line-height:1;font-weight:950;white-space:nowrap;cursor:pointer;transition:transform 0.18s ease,border-color 0.18s ease,background 0.18s ease,box-shadow 0.18s ease}.ml-history-action:hover,.ml-history-icon-btn:hover{transform:translateY(-1px);border-color:#bfdbfe;background:#eff6ff;box-shadow:0 10px 20px rgb(37 99 235 / .1)}.ml-history-action--follow{color:#15803d}.ml-history-icon-btn{width:31px;padding:0;color:#334155}.ml-history-side-pro{display:grid;gap:10px}.ml-history-side-card{display:grid;gap:10px;align-content:start}.ml-history-side-card p{margin:0;color:#64748b;font-size:12px;line-height:1.45;font-weight:700}.ml-history-summary-grid{display:grid;grid-template-columns:1fr;gap:7px}.ml-history-summary-grid span{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;border-radius:12px;padding:9px 10px;background:#f8fafc;color:#64748b;font-size:11px;line-height:1.2;font-weight:800}.ml-history-summary-grid strong{color:#0f172a;font-size:18px;line-height:1;font-weight:950}.ml-history-side-card .ml-btn{width:100%;min-height:36px;border-radius:12px}@media (max-width:1200px){.ml-history-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.ml-history-filter-form-pro{grid-template-columns:repeat(2,minmax(0,1fr))}.ml-history-layout-pro{grid-template-columns:1fr}.ml-history-side-pro{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:860px){.ml-history-table__head,.ml-history-row{grid-template-columns:minmax(0,1.2fr) minmax(0,0.95fr) minmax(0,0.9fr) minmax(72px,0.68fr) minmax(112px,0.8fr);gap:8px}.ml-history-actions{flex-direction:column;align-items:stretch}.ml-history-action,.ml-history-icon-btn{width:100%}.ml-history-icon-btn{width:100%;min-width:0}}@media (max-width:700px){.ml-history-pro{gap:12px}.ml-history-kpis,.ml-history-filter-form-pro,.ml-history-layout-pro,.ml-history-side-pro{grid-template-columns:1fr}.ml-history-kpi{grid-template-columns:42px minmax(0,1fr);min-height:82px;border-radius:18px;padding:13px 14px}.ml-history-kpi__icon{width:36px;height:36px;border-radius:13px;font-size:15px}.ml-history-kpi strong{font-size:25px}.ml-history-filter-pro,.ml-history-list-pro,.ml-history-side-card{border-radius:20px;padding:14px;overflow:hidden}.ml-history-section-head{gap:10px}.ml-history-section-icon,.ml-history-side-icon{width:30px;height:30px;flex:0 0 30px;border-radius:11px}.ml-history-section-head h2,.ml-history-list-head-pro h2,.ml-history-side-card h2{font-size:18px;line-height:1.15}.ml-history-filter-form-pro{gap:10px;margin-top:12px}.ml-history-filter-form-pro input,.ml-history-filter-form-pro select,.ml-history-input{min-height:42px;border-radius:13px;font-size:12px}.ml-history-input{grid-template-columns:40px minmax(0,1fr);padding:0 12px 0 0}.ml-history-input__icon{width:40px}.ml-history-input input{min-height:40px}.ml-history-filter-form-pro .ml-field--history-date input[type="date"]{min-height:42px;line-height:40px}.ml-history-chipbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}.ml-history-chip,.ml-history-clear{width:100%;justify-content:flex-start;min-height:38px;margin-left:0;border-radius:12px;padding:8px 12px;font-size:12px}.ml-history-clear{grid-column:1 / -1;justify-content:center;background:#fff;border-color:#dbe3ef}.ml-history-list-head-pro{display:grid;grid-template-columns:1fr;gap:12px;margin-bottom:12px}.ml-history-new{width:100%;min-height:42px;border-radius:14px}.ml-history-table,.ml-history-table__body{display:grid;gap:12px;width:100%;min-width:0}.ml-history-table__head{display:none}.ml-history-row{display:grid;grid-template-columns:1fr;gap:8px;min-width:0;min-height:auto;border-radius:18px;padding:12px 12px 12px 15px}.ml-history-row::before{inset:14px auto 14px 0;width:3px;opacity:1}.ml-history-cell{display:grid;grid-template-columns:74px minmax(0,1fr);gap:8px;align-items:center;min-width:0;color:#334155;font-size:12px;line-height:1.28;text-align:left}.ml-history-cell::before{content:attr(data-label);color:#64748b;font-size:10px;line-height:1.2;font-weight:950;text-align:left;text-transform:uppercase;letter-spacing:.06em}.ml-history-patient{grid-template-columns:74px 30px minmax(0,1fr)}.ml-history-patient::before{grid-column:1}.ml-history-patient>.ml-history-avatar{grid-column:2}.ml-history-patient>div{grid-column:3;min-width:0}.ml-history-patient strong,.ml-history-patient small,.ml-history-cell>span,.ml-history-date strong,.ml-history-date small,.ml-history-attention strong,.ml-history-attention small{justify-self:start;min-width:0;text-align:left;overflow-wrap:anywhere}.ml-history-status{justify-self:start;min-height:26px;padding:6px 10px;font-size:10.5px}.ml-history-actions{display:grid;grid-template-columns:74px minmax(0,1fr);gap:8px;align-items:stretch;justify-content:stretch}.ml-history-actions::before{content:attr(data-label);color:#64748b;font-size:10px;line-height:1.2;font-weight:950;text-transform:uppercase;letter-spacing:.06em;align-self:center}.ml-history-action{width:100%;min-height:38px;justify-self:stretch;border-radius:12px}.ml-history-icon-btn{display:none}.ml-history-summary-grid span{grid-template-columns:44px minmax(0,1fr)}}.ml-history-pro .ml-history-input{position:relative;display:block;min-height:42px;padding:0;border:1px solid #cbd5e1;border-radius:13px;background:#fff;overflow:hidden}.ml-history-pro .ml-history-input__icon{position:absolute;top:50%;left:12px;z-index:1;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:9px;background:#eff6ff;color:#1d4ed8;font-size:12px;font-weight:900;line-height:1;transform:translateY(-50%);pointer-events:none}.ml-history-pro .ml-history-input input,.ml-history-filter-form-pro .ml-history-input input[type="search"]{display:block;width:100%;min-width:0;min-height:40px;border:0;border-radius:0;padding:0 12px 0 46px;background:#fff0;color:#0f172a;box-shadow:none;line-height:40px}.ml-history-pro .ml-history-input input:focus,.ml-history-filter-form-pro .ml-history-input input[type="search"]:focus{outline:none}.ml-history-pro .ml-history-table__head,.ml-history-pro .ml-history-row{grid-template-columns:minmax(150px,1.18fr) minmax(130px,1fr) minmax(140px,1.05fr) 88px minmax(116px,0.82fr);gap:8px}.ml-history-pro .ml-history-row{align-items:center;padding:10px 10px 10px 12px}.ml-history-pro .ml-history-attention strong,.ml-history-pro .ml-history-result>span:first-child{display:block;color:#0f172a;font-size:11.5px;line-height:1.2;font-weight:900}.ml-history-pro .ml-history-attention small{display:block;margin-top:4px;color:#64748b;font-size:10.5px;line-height:1.2;font-weight:750}.ml-history-pro .ml-history-result{display:grid;gap:5px;align-content:center}.ml-history-pro .ml-history-result .ml-history-status{justify-self:start}.ml-history-pro .ml-history-actions{justify-content:end;min-width:0}.ml-history-pro .ml-history-action{max-width:100%;white-space:nowrap}@media (max-width:1200px) and (min-width:701px){.ml-history-pro .ml-history-table__head,.ml-history-pro .ml-history-row{grid-template-columns:minmax(132px,1.1fr) minmax(112px,0.95fr) minmax(120px,1fr) 78px minmax(98px,0.8fr);gap:6px}.ml-history-pro .ml-history-action{padding-inline:7px;font-size:10px}}@media (max-width:700px){.ml-history-pro .ml-history-input{min-height:44px;border-radius:14px;padding:0}.ml-history-pro .ml-history-input__icon{left:13px;width:25px;height:25px;border-radius:9px}.ml-history-pro .ml-history-input input,.ml-history-filter-form-pro .ml-history-input input[type="search"]{min-height:42px;padding-left:50px;line-height:42px}.ml-history-pro .ml-history-table__head{display:none}.ml-history-pro .ml-history-row{display:grid;grid-template-columns:1fr;gap:8px;padding:12px 12px 12px 15px}.ml-history-pro .ml-history-cell,.ml-history-pro .ml-history-actions{display:grid;grid-template-columns:72px minmax(0,1fr);gap:8px;align-items:center;min-width:0}.ml-history-pro .ml-history-cell::before,.ml-history-pro .ml-history-actions::before{content:attr(data-label);color:#64748b;font-size:10px;line-height:1.2;font-weight:950;text-transform:uppercase;letter-spacing:.06em}.ml-history-pro .ml-history-patient{grid-template-columns:72px 30px minmax(0,1fr)}.ml-history-pro .ml-history-attention strong,.ml-history-pro .ml-history-result>span:first-child,.ml-history-pro .ml-history-attention small,.ml-history-pro .ml-history-result .ml-history-status,.ml-history-pro .ml-history-date strong,.ml-history-pro .ml-history-date small{justify-self:start;text-align:left}.ml-history-pro .ml-history-actions .ml-history-action{width:100%;min-height:38px;justify-self:stretch}.ml-history-pro .ml-history-actions .ml-history-icon-btn{display:none}}.ml-history-pro .ml-history-filter-form-pro .ml-field--history-date input[type="date"],.ml-history-pro .ml-history-filter-form-pro .ml-field--history-date input[type="date"]:focus,.ml-history-pro .ml-history-filter-form-pro .ml-field--history-date input[type="date"]:active{border:1px solid #cbd5e1;outline:none;background-color:#fff;box-shadow:inset 0 1px 0 rgb(15 23 42 / .03)}.ml-history-pro .ml-history-filter-form-pro .ml-field--history-date input[type="date"]:focus{border-color:#60a5fa;box-shadow:0 0 0 3px rgb(59 130 246 / .1)}@media (min-width:701px){.ml-history-pro .ml-history-layout-pro{grid-template-columns:minmax(0,1fr) 180px;gap:10px;align-items:start}.ml-history-pro .ml-history-list-pro,.ml-history-pro .ml-history-table,.ml-history-pro .ml-history-table__body,.ml-history-pro .ml-history-row,.ml-history-pro .ml-history-cell,.ml-history-pro .ml-history-actions{min-width:0}.ml-history-pro .ml-history-list-pro{overflow:hidden}.ml-history-pro .ml-history-list-head-pro{gap:8px;margin-bottom:8px}.ml-history-pro .ml-history-new{min-width:104px;min-height:34px;padding:0 12px;font-size:11px;border-radius:12px}.ml-history-pro .ml-history-table__head,.ml-history-pro .ml-history-row{grid-template-columns:minmax(106px,1.14fr) minmax(92px,0.92fr) minmax(108px,0.96fr) minmax(58px,0.48fr) minmax(84px,0.60fr);gap:6px}.ml-history-pro .ml-history-table__head{padding:0 8px;font-size:9.3px;letter-spacing:.035em}.ml-history-pro .ml-history-row{padding:8px 8px 8px 11px;min-height:52px}.ml-history-pro .ml-history-patient{grid-template-columns:26px minmax(0,1fr);gap:6px}.ml-history-pro .ml-history-avatar{width:25px;height:25px;font-size:9.8px}.ml-history-pro .ml-history-cell{font-size:10.4px;line-height:1.15}.ml-history-pro .ml-history-patient strong,.ml-history-pro .ml-history-attention strong,.ml-history-pro .ml-history-date strong,.ml-history-pro .ml-history-result>span:first-child{font-size:10.9px;line-height:1.12}.ml-history-pro .ml-history-patient small,.ml-history-pro .ml-history-attention small,.ml-history-pro .ml-history-date small{margin-top:2px;font-size:9.3px;line-height:1.14}.ml-history-pro .ml-history-status{min-height:21px;padding:4px 8px;font-size:9px}.ml-history-pro .ml-history-actions{display:grid;grid-template-columns:1fr;align-items:center;justify-items:stretch;gap:4px}.ml-history-pro .ml-history-action{display:inline-flex;align-items:center;justify-content:center;width:100%;min-width:0;min-height:24px;padding:4px 6px;border-radius:10px;font-size:9px;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box}.ml-history-pro .ml-history-icon-btn{display:none}.ml-history-pro .ml-history-side-card{padding:13px}.ml-history-pro .ml-history-side-card h2{font-size:14px;line-height:1.18}.ml-history-pro .ml-history-side-card p,.ml-history-pro .ml-history-summary-grid span{font-size:10.5px;line-height:1.34}.ml-history-pro .ml-history-summary-grid{gap:7px}.ml-history-pro .ml-history-summary-grid span{grid-template-columns:34px minmax(0,1fr);padding:8px}}@media (min-width:701px) and (max-width:1366px){.ml-history-pro .ml-history-layout-pro{grid-template-columns:minmax(0,1fr) 172px}.ml-history-pro .ml-history-table__head,.ml-history-pro .ml-history-row{grid-template-columns:minmax(100px,1.1fr) minmax(88px,0.88fr) minmax(100px,0.92fr) minmax(54px,0.45fr) minmax(76px,0.55fr);gap:5px}.ml-history-pro .ml-history-cell{font-size:10px}.ml-history-pro .ml-history-patient strong,.ml-history-pro .ml-history-attention strong,.ml-history-pro .ml-history-date strong,.ml-history-pro .ml-history-result>span:first-child{font-size:10.5px}.ml-history-pro .ml-history-patient small,.ml-history-pro .ml-history-attention small,.ml-history-pro .ml-history-date small{font-size:9px}.ml-history-pro .ml-history-action{min-height:23px;font-size:8.7px;padding-inline:5px}}@media (max-width:700px){.ml-history-pro .ml-history-filter-form-pro .ml-field--history-date input[type="date"],.ml-history-pro .ml-history-filter-form-pro .ml-field--history-date input[type="date"]:focus,.ml-history-pro .ml-history-filter-form-pro .ml-field--history-date input[type="date"]:active{border:1px solid #cbd5e1;outline:none;background-color:#fff}}