/* VHIP v0.4.6.9.4 — Structured Antecedentes Clinical Context Workspace */
.vhip-guided-history-form{--hist-accent:#4fd6dc;--hist-green:#60d6a5;--hist-yellow:#f1c75b;--hist-muted:#87a6b2}
.vhip-history-toolbar{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;padding:13px 14px;border:1px solid #1d6170;border-radius:13px;background:linear-gradient(135deg,rgba(9,64,75,.92),rgba(6,39,49,.88));margin-bottom:12px}
.vhip-history-mode{display:flex;gap:6px}.vhip-history-mode button,.vhip-history-review,.vhip-history-group-actions button{border:1px solid #2a7080;background:#082f3a;color:#dffaff;border-radius:9px;min-height:36px;padding:7px 11px;font-size:12px;font-weight:750;cursor:pointer;transition:.18s ease}.vhip-history-mode button.is-active{background:#116b7c;border-color:#57d8e2;box-shadow:0 0 0 2px rgba(76,214,224,.1)}
.vhip-history-toolbar-copy{display:grid;gap:2px}.vhip-history-toolbar-copy b{font-size:13px;color:#fff}.vhip-history-toolbar-copy span{font-size:11px;color:#a9c4cc}.vhip-history-review:hover,.vhip-history-group-actions button:hover{border-color:#64dbe3;background:#0b4754;transform:translateY(-1px)}
.vhip-history-profile{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #205866;border-radius:11px;background:rgba(7,45,55,.76);margin-bottom:12px}.vhip-history-profile>.dashicons{color:#5cdae3}.vhip-history-profile div{display:grid;gap:2px}.vhip-history-profile b{font-size:12px;color:#effdff}.vhip-history-profile small{font-size:10.5px;line-height:1.45;color:#8fb3be}
.vhip-guided-history-workspace{display:grid;grid-template-columns:minmax(220px,260px) minmax(0,1fr) minmax(270px,320px);gap:12px;align-items:start}.vhip-history-category-rail,.vhip-history-editor,.vhip-history-summary{border:1px solid #175766;border-radius:13px;background:#062b35;overflow:hidden}.vhip-history-category-rail{padding:10px}.vhip-history-category-rail>header{padding:4px 5px 9px}.vhip-history-category-rail>header small,.vhip-history-summary header small,.vhip-history-panel-head small{font-size:9px;letter-spacing:.09em;color:#55dce4;font-weight:800}.vhip-history-category-rail>header h4,.vhip-history-summary header h4,.vhip-history-panel-head h4{margin:3px 0 0;color:#fff;font-size:14px}
.vhip-history-category{width:100%;display:grid;grid-template-columns:30px 1fr auto;gap:8px;align-items:center;text-align:left;padding:10px 8px;border:1px solid transparent;border-bottom-color:#164c58;background:transparent;color:#eafcff;cursor:pointer;transition:.18s ease}.vhip-history-category:first-of-type{border-top-color:#164c58}.vhip-history-category:hover{background:#083943}.vhip-history-category.is-active{background:linear-gradient(90deg,#0d5260,#0a3c48);border-color:#48ccd6;border-radius:9px}.vhip-history-category.is-contextual:not(.is-active){opacity:.78}.vhip-history-category>.dashicons{color:#57d7df}.vhip-history-category-copy{display:grid;gap:2px}.vhip-history-category-copy b{font-size:11.5px}.vhip-history-category-copy small{font-size:9.5px;color:#7fa7b3}.vhip-history-category i{font-style:normal;min-width:25px;height:25px;border-radius:999px;display:grid;place-items:center;background:#0b4552;border:1px solid #287383;color:#86edf2;font-size:10px;font-weight:800}
.vhip-history-rail-note{display:flex;gap:8px;margin:10px 3px 2px;padding:9px;border:1px solid #164d59;border-radius:9px;background:#073641}.vhip-history-rail-note .dashicons{color:#55d7df}.vhip-history-rail-note p{margin:0;font-size:9.7px;line-height:1.45;color:#8eb4be}
.vhip-history-editor{padding:12px;min-height:430px}.vhip-history-panel{animation:vhipHistoryIn .18s ease}.vhip-history-panel-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;padding-bottom:10px;border-bottom:1px solid #18505d}.vhip-history-panel-head p{margin:4px 0 0;color:#91b1ba;font-size:10.5px;line-height:1.4}.vhip-history-panel-head>span{white-space:nowrap;border:1px solid #277384;border-radius:999px;padding:5px 9px;color:#99e9ed;font-size:10px;font-weight:800}.vhip-history-group-actions{display:flex;gap:7px;flex-wrap:wrap;padding:10px 0}.vhip-history-group-actions button{min-height:32px;font-size:10.5px;padding:5px 9px}.vhip-history-group-actions .dashicons{font-size:15px;width:15px;height:15px}
.vhip-history-subgroup{margin:8px 0 13px}.vhip-history-subgroup h5{margin:0 0 6px;color:#aeeef1;font-size:10.5px;text-transform:uppercase;letter-spacing:.06em}.vhip-history-items{display:grid;gap:8px}.vhip-history-item{border:1px solid #194f5b;border-radius:11px;background:#07313b;padding:9px 10px;transition:.18s ease}.vhip-history-item.is-present{border-color:#2ea678;background:linear-gradient(135deg,rgba(10,66,57,.9),#07313b)}.vhip-history-item.is-denied{border-color:#2b6673}.vhip-history-item.is-unknown{border-color:#9c7a32}.vhip-history-item.is-flash{animation:vhipHistoryFlash .34s ease}.vhip-history-item-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.vhip-history-item-top>div:first-child{display:grid;gap:2px}.vhip-history-item-top b{font-size:11.5px;color:#f4fdff}.vhip-history-item-top small{font-size:9px;color:#86aab5}
.vhip-history-status-buttons{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end}.vhip-history-status-buttons button{border:1px solid #276270;background:#082a34;color:#a9c7ce;border-radius:7px;padding:5px 7px;font-size:9.3px;font-weight:750;cursor:pointer}.vhip-history-status-buttons button.is-selected[data-history-status-value="present"]{background:#136c53;border-color:#55d8a5;color:#effff8}.vhip-history-status-buttons button.is-selected[data-history-status-value="denied"]{background:#104756;border-color:#55bed1;color:#effcff}.vhip-history-status-buttons button.is-selected[data-history-status-value="unknown"]{background:#655022;border-color:#e0b85a;color:#fff8db}.vhip-history-status-buttons button.is-selected[data-history-status-value="not_explored"]{background:#243942;border-color:#688591;color:#d4e2e6}.vhip-history-native-select{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important}
.vhip-history-detail{margin-top:8px;padding-top:8px;border-top:1px dashed #225461;display:grid;gap:3px}.vhip-history-detail label{display:grid;gap:4px;color:#9fc2ca;font-size:9.5px}.vhip-history-detail input,.vhip-history-medication-card textarea{width:100%;box-sizing:border-box;background:#062630;border:1px solid #286675;color:#eefcff;border-radius:8px;padding:8px 9px;font-size:11px;outline:none}.vhip-history-detail input:focus,.vhip-history-medication-card textarea:focus{border-color:#5ad8e1;box-shadow:0 0 0 2px rgba(80,214,224,.08)}.vhip-history-detail small{font-size:8.8px;color:#739ca8}.vhip-guided-history-form[data-history-mode="quick"] .vhip-history-item:not(.is-present):not(.is-unknown):not(.has-detail) .vhip-history-detail{display:none}
.vhip-history-medication-card{margin-top:11px;padding:11px;border:1px solid #1e5a68;border-radius:11px;background:#073540;display:grid;gap:8px}.vhip-history-medication-card>div{display:flex;gap:9px;align-items:center}.vhip-history-medication-card .dashicons{color:#5edce4}.vhip-history-medication-card b{font-size:11.5px;color:#fff}.vhip-history-medication-card small{display:block;font-size:9.5px;color:#88adb7;margin-top:2px}.vhip-history-medication-card textarea{min-height:72px;resize:vertical}
.vhip-history-summary{position:sticky;top:155px;padding:11px}.vhip-history-summary>header{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding-bottom:9px;border-bottom:1px solid #18515e}.vhip-history-summary>header>span{font-size:17px;font-weight:850;color:#70e0e6}.vhip-history-summary-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:9px 0}.vhip-history-summary-stats div{padding:8px 5px;border:1px solid #1d5663;border-radius:9px;background:#07333d;text-align:center}.vhip-history-summary-stats b{display:block;color:#fff;font-size:15px}.vhip-history-summary-stats span{font-size:8.5px;color:#7fa7b0}.vhip-history-positive-box,.vhip-history-timeline,.vhip-history-next,.vhip-history-twin-note{border:1px solid #18515e;border-radius:10px;background:#07313b;padding:9px;margin-top:8px}.vhip-history-positive-box>b,.vhip-history-timeline>b,.vhip-history-next b{font-size:10.5px;color:#dffcff}.vhip-history-positive-box p,.vhip-history-timeline p,.vhip-history-next p,.vhip-history-twin-note p{margin:4px 0 0;font-size:9.5px;line-height:1.42;color:#8eb1ba}.vhip-history-positive-chip{display:grid;gap:2px;padding:6px 0;border-bottom:1px dashed #164b57}.vhip-history-positive-chip:last-child{border-bottom:0}.vhip-history-positive-chip b{font-size:9.8px;color:#bff5df}.vhip-history-positive-chip span{font-size:8.8px;color:#7ea5af}.vhip-history-timepoint{display:grid;grid-template-columns:46px 1fr;gap:7px;padding:5px 0;border-bottom:1px dashed #164b57}.vhip-history-timepoint:last-child{border-bottom:0}.vhip-history-timepoint time{font-size:9px;font-weight:800;color:#65dce3}.vhip-history-timepoint div{font-size:9.3px;color:#a8c5cc}.vhip-history-next{display:flex;gap:7px}.vhip-history-next .dashicons,.vhip-history-twin-note .dashicons{color:#5bdce4}.vhip-history-twin-note{display:flex;gap:7px;background:#073944}
.vhip-guided-history-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:12px;padding:11px 13px;border:1px solid #1a5967;border-radius:11px;background:#073640}.vhip-guided-history-footer>div{display:grid;gap:2px}.vhip-guided-history-footer b{font-size:11px;color:#fff}.vhip-guided-history-footer span{font-size:9.5px;color:#84aab4}.vhip-guided-history-footer .vhip-semiology-save{width:auto!important;min-width:285px!important;margin:0!important}
@keyframes vhipHistoryIn{from{opacity:.35;transform:translateY(5px)}to{opacity:1;transform:none}}@keyframes vhipHistoryFlash{0%{box-shadow:0 0 0 0 rgba(78,219,226,.42)}100%{box-shadow:0 0 0 8px rgba(78,219,226,0)}}
@media(prefers-reduced-motion:reduce){.vhip-history-item,.vhip-history-category,.vhip-history-panel{animation:none!important;transition:none!important}}
@media(max-width:1180px){.vhip-guided-history-workspace{grid-template-columns:230px minmax(0,1fr)}.vhip-history-summary{grid-column:1/-1;position:static;display:grid;grid-template-columns:1fr 1fr;gap:8px}.vhip-history-summary>header,.vhip-history-summary-stats{grid-column:1/-1}}
@media(max-width:850px){.vhip-history-toolbar{grid-template-columns:1fr}.vhip-guided-history-workspace{grid-template-columns:1fr}.vhip-history-category-rail{display:grid;grid-template-columns:repeat(2,1fr);gap:5px}.vhip-history-category-rail>header,.vhip-history-rail-note{grid-column:1/-1}.vhip-history-category{border:1px solid #164c58;border-radius:9px}.vhip-history-item-top{align-items:flex-start;flex-direction:column}.vhip-history-status-buttons{justify-content:flex-start}.vhip-history-summary{display:block}.vhip-guided-history-footer{flex-direction:column;align-items:stretch}.vhip-guided-history-footer .vhip-semiology-save{min-width:0!important;width:100%!important}}
@media(max-width:560px){.vhip-history-category-rail{grid-template-columns:1fr}.vhip-history-status-buttons{display:grid;grid-template-columns:repeat(2,1fr);width:100%}.vhip-history-status-buttons button{width:100%}}
