/* Documenti 0.3 — sei schede e foglio da modello. Stile e intestazione della V4.6 invariati. */
.tabs6{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.tabs6 button{min-height:40px;font-size:13px;padding:6px 4px;line-height:1.15}
@media(min-width:800px){.tabs6{grid-template-columns:repeat(6,minmax(0,1fr))}}

#doc-models,#doc-patient,#doc-sheet,#doc-info{display:none}
body.tabClin:not(.modeSrl) #doc-models{display:block}
body.tabDoc:not(.modeSrl) #doc-patient,body.docModel:not(.modeSrl) #doc-patient{display:block}
body.tabDoc .panel-models.clinicalOnly{display:none}
body.tabDoc .panel-details:not(#doc-patient),body.docModel:not(.modeSrl) .panel-details:not(#doc-patient){display:none}
body.docModel:not(.modeSrl) #sheet{display:none}
body.docModel:not(.modeSrl) #doc-sheet{display:block}
body.docModel:not(.modeSrl) #doc-info{display:flex}
@media(max-width:799px){
  body.navModels #doc-patient,body.navDocument #doc-patient{display:none!important}
  body.navDetail #doc-models,body.navDocument #doc-models{display:none!important}
}

.doc-list{margin-top:10px}
.doc-picks{grid-template-columns:1fr}
.doc-picks .pick strong{font-size:13px;line-height:1.35}
.pick small.st-approvato{color:#1f6b45;font-weight:700}
.pick small.st-da_rivedere{color:#8a5a12}
.pick small.st-traccia{color:#a32419;font-weight:700}
.pick.aeq-on small{color:#e5ede9!important}

.docinfo{max-width:820px;margin:0 auto 10px;gap:8px;flex-wrap:wrap;align-items:center;font-size:12px;color:#40524b}
.docinfo .docid{font-weight:700;letter-spacing:.03em}
.badge{display:inline-block;border-radius:20px;padding:3px 9px;font-size:11px;font-weight:700;background:#eef2ef;border:1px solid #d5ddd7}
.badge.st-approvato{background:#e1f1e7;color:#1f6b45;border-color:#b9dcc6}
.badge.st-da_rivedere{background:#fbf0d9;color:#7a4a12;border-color:#ecd3a1}
.badge.st-traccia{background:#fbe3e0;color:#a32419;border-color:#efb9b2}
.badge.manual{background:#e3ecf7;color:#234a7a;border-color:#bccfe6}

.docbody{font-size:13px;line-height:1.55;overflow-wrap:anywhere}
.docbody p{margin:0 0 8px}
.docbody ul,.docbody ol{margin:0 0 8px;padding-left:22px}
.docbody li{margin-bottom:3px}
.docbody mark.ph{background:#fff1b8;color:inherit;border-radius:3px;padding:0 2px}
.docbody.editing{outline:1px dashed #88b09b;outline-offset:6px}
.docbody .empty{color:#687870}
@media(max-width:799px){.docbody{font-size:12px}}
@media print{#doc-info{display:none!important}.docbody mark.ph{background:none}}
@media(max-width:600px){.tabs6{gap:5px}.tabs6 button{min-height:36px;font-size:12px;padding:4px 2px}.modes.tabs6{margin-top:9px}}

/* 0.3.1 — certificato di malattia (Prescrizioni) e scadenze post-login */
.cert-scadenze{margin:10px 12px 0;padding:10px 12px;border:1px solid #d5ddd7;background:#f7faf8}
.cert-scadenze .eyebrow{margin:0 0 4px}
.cert-scad-row,.cert-reg-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;padding:6px 0;border-bottom:1px solid #e4ebe6;font-size:13px}
.cert-panel{margin:10px 0 14px}
.cert-body .cert-actions{flex-wrap:wrap;gap:8px}
.cert-table-wrap{overflow:auto;margin:8px 0}
.cert-table{width:100%;border-collapse:collapse;font-size:13px}
.cert-table th,.cert-table td{border:1px solid #d5ddd7;padding:6px 8px;text-align:left}
.cert-table input.cert-day{width:4.5rem;max-width:100%}
.cert-registro{margin-top:8px}
body:not(.tab-prescrizioni) #cert-panel{display:none}
