/* ENFERMERIA001: local layout, using the established clinic palette and SVG set. */
.nursing-care-home,.nursing-care-new,.nursing-care-editor{display:grid;gap:16px;min-width:0}
.nursing-care-home h2,.nursing-care-new h2,.nursing-care-editor h2{margin:0 0 6px}
.nursing-care-heading{justify-content:space-between;align-items:center}
.nursing-care-heading .btn{min-height:40px}
.nursing-care-filters{display:grid;grid-template-columns:minmax(220px,2fr) minmax(130px,1fr) minmax(160px,1fr) auto auto;gap:10px;align-items:end}
.nursing-care-filters label,.nursing-care-editor label,.nursing-care-new label{display:grid;gap:6px;font-weight:400}
.nursing-care-filters input,.nursing-care-filters select,.nursing-care-editor textarea,.nursing-care-new input,.nursing-care-new select{width:100%;box-sizing:border-box}
.nursing-care-table-scroll{overflow:auto;max-height:65vh;border:1px solid var(--border,#dce3e8);border-radius:8px}
.nursing-care-table{margin:0;width:100%;table-layout:fixed;min-width:820px}
.nursing-care-table th{position:sticky;top:0;z-index:1;background:var(--surface-soft,#f5f7fa)}
.nursing-care-table th:nth-child(1){width:23%}.nursing-care-table th:nth-child(2){width:13%}.nursing-care-table th:nth-child(3){width:22%}.nursing-care-table th:nth-child(4){width:14%}.nursing-care-table th:nth-child(5){width:10%}.nursing-care-table th:nth-child(6){width:18%}
.nursing-care-table td{vertical-align:top;overflow-wrap:anywhere;padding:10px}
.nursing-care-table td strong{font-weight:600}.nursing-care-table td small,.nursing-care-editor small{display:block;margin-top:4px;color:var(--muted,#66778b)}
.nursing-care-table td .btn{margin:0 4px 5px 0;min-height:32px;white-space:normal}
.nursing-care-pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding-top:12px}.nursing-care-pagination>span{margin-right:auto}
.nursing-care-grow{flex:1;min-width:220px}.nursing-care-message{white-space:pre-wrap}.nursing-care-error{color:#8a2424;background:#fff3f1;border-color:#efc6c1}
.nursing-care-patient{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.nursing-care-patient p{margin:6px 0}
.nursing-care-editor-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(250px,1fr);gap:16px;align-items:start;min-width:0}
.nursing-care-editor-grid .nursing-care-main,.nursing-care-editor-grid aside{min-width:0}.nursing-care-editor-grid aside{display:grid;gap:16px}
.nursing-care-editor-grid h3{font-weight:600;margin:20px 0 12px}.nursing-care-editor-grid h3:first-child{margin-top:0}
.nursing-care-editor-grid textarea{resize:vertical;min-height:85px;font-weight:400;line-height:1.5;margin-bottom:12px}
.nursing-care-editor-grid textarea[readonly],.nursing-care-editor-grid input[readonly]{background:#f8fafc}
.nursing-care-editor-grid .table td{vertical-align:top;white-space:pre-wrap;overflow-wrap:anywhere}
.nursing-care-vitals{padding:12px;background:var(--surface-soft,#f8fafc);border:1px solid var(--border,#dce3e8);border-radius:8px;margin-bottom:14px}.nursing-care-vitals h3{font-size:14px}
.nursing-care-vitals article+article{margin-top:10px;padding-top:10px;border-top:1px solid var(--border,#dce3e8)}.nursing-care-vitals p{font-size:12px}
.nursing-care-add-intervention{margin-top:12px;padding:10px;border:1px solid var(--border,#dce3e8);border-radius:6px}.nursing-care-add-intervention summary{cursor:pointer;font-weight:600;margin-bottom:10px}
.nursing-care-actions{grid-column:1/-1;display:flex;gap:10px;align-items:center;position:sticky;bottom:0;z-index:2;box-shadow:0 -3px 15px #00000008}.nursing-care-actions>span{margin-right:auto}
.nursing-care-confirm{display:flex!important;align-items:flex-start;grid-template-columns:auto 1fr;gap:10px;margin:16px 0}.nursing-care-confirm input{width:18px;height:18px;flex:none;margin:0}
.nursing-care-history-record{border-top:1px solid var(--border,#dce3e8);padding:12px 0}.nursing-care-history-record header{display:flex;justify-content:space-between;gap:12px}.nursing-care-history-record h4{margin:0 0 5px;font-weight:600}.nursing-care-history-record small{display:block;color:var(--muted,#66778b);margin:3px 0}.nursing-care-history-record summary{cursor:pointer;margin:12px 0}.nursing-care-history-record dl{display:grid;grid-template-columns:1fr 1fr;gap:12px}.nursing-care-history-record dt{font-weight:600}.nursing-care-history-record dd{margin:5px 0;white-space:pre-wrap}.nursing-care-history-record p{white-space:pre-wrap}
@media(max-width:1100px){.nursing-care-filters{grid-template-columns:2fr 1fr 1fr}.nursing-care-filters>.btn{justify-self:start}.nursing-care-editor-grid{grid-template-columns:minmax(0,1fr)}.nursing-care-editor-grid aside{grid-template-columns:1fr 1fr}.nursing-care-editor-grid aside section:last-child{grid-column:1/-1}}
@media(max-width:650px){.nursing-care-filters,.nursing-care-editor-grid aside{grid-template-columns:1fr}.nursing-care-heading,.nursing-care-patient{align-items:stretch;flex-direction:column}.nursing-care-actions{flex-wrap:wrap;position:static}.nursing-care-actions>span{width:100%}.nursing-care-actions .btn{flex:1}.nursing-care-history-record dl{grid-template-columns:1fr}.nursing-care-pagination{flex-wrap:wrap}.nursing-care-pagination>span{width:100%}}
