/* SALON17: administración de documentos con nombres completos y vista previa. */
.zdt-page-host,.zdt-shell{min-width:0;width:100%;height:auto;min-height:640px;color:#172b45;background:#f4f7fb}
.zdt-shell *{box-sizing:border-box}
.zdt-shell [hidden]{display:none!important}
.zdt-topbar{padding:24px;gap:20px;background:transparent;align-items:center}
.zdt-topbar h2{font-size:26px;line-height:1.25;letter-spacing:-.025em;margin:5px 0 7px;color:#102a47}
.zdt-topbar p{font-size:13px;line-height:1.6;color:#65758b;max-width:750px}
.zdt-breadcrumb{font-size:11px;margin-bottom:7px}
.zdt-layout{display:grid;grid-template-columns:minmax(270px,310px) minmax(0,1fr) minmax(230px,270px);gap:18px;padding:0 24px 30px;align-items:start}
.zdt-list,.zdt-editor,.zdt-preview-panel{min-width:0;border:1px solid #dfe6ef;border-radius:16px;background:#fff;box-shadow:0 3px 12px rgba(26,49,77,.035)}
.zdt-list{position:sticky;top:16px;max-height:calc(100dvh - 110px);overflow:hidden}
.zdt-list-head{padding:16px;gap:10px;background:#fff;flex:none}
.zdt-list-head strong{color:#153354;font-size:14px}
.zdt-list-head small{display:block;font-size:11px;color:#7a8899;margin-top:4px}
.zdt-list-head button{background:#2463eb;padding:9px 12px;font-size:12px;border-radius:9px}
.zdt-list-search{padding:12px 14px;border-bottom:1px solid #edf1f6;flex:none}
.zdt-list-search input{width:100%;min-width:0;border:1px solid #dce4ef;background:#f8fafd;border-radius:9px;padding:10px 11px;color:#34465e;font:inherit;font-size:12px}
.zdt-list-scroll{padding:9px;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.zdt-doc-row,.zdt-doc-row.is-system{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;width:100%;padding:12px;margin:0 0 7px;cursor:default;opacity:1;border:1px solid #e8edf4;border-radius:11px;background:#fff;overflow:visible}
.zdt-doc-row:hover{border-color:#c6d8f0;background:#f8faff}
.zdt-doc-row.is-active{border-color:#aac9fb;background:#f1f6ff;box-shadow:inset 3px 0 0 #2463eb}
.zdt-doc-row.is-inactive{opacity:1;background:#f8fafc}
.zdt-doc-row strong{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;font-size:13px;line-height:1.4;color:#153354}
.zdt-doc-row small{white-space:normal;overflow-wrap:anywhere;color:#7b8798;font-size:10px;line-height:1.45;margin-top:3px}
.zdt-doc-meta{display:flex;align-items:center;justify-content:space-between;gap:9px;min-width:0}
.zdt-doc-row em,.zdt-doc-row.is-system em{color:#326195;background:#edf4ff;font-size:9px;padding:3px 7px;white-space:normal}
.zdt-availability{font-size:10px;color:#168263;display:flex;align-items:center;gap:5px}
.zdt-availability:before{content:"";width:5px;height:5px;border-radius:50%;background:#24a681}
.zdt-availability.is-off{color:#8b95a3}.zdt-availability.is-off:before{background:#a3abb7}
.zdt-system-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:stretch}
.zdt-system-actions button{border:1px solid #d5e3f8;color:#22529a;background:#fff;border-radius:8px;padding:7px 9px;font:700 11px Inter,system-ui,sans-serif;cursor:pointer;white-space:normal;min-width:0;flex:1}
.zdt-system-actions button:hover{background:#eaf2ff;border-color:#a6c5f5}
.zdt-system-actions button[data-zdoc-system-toggle]{color:#637389;border-color:#dfe5ee}
.zdt-system-actions button:disabled{opacity:.65;cursor:wait}
.zdt-editor{overflow:visible;min-height:0}
.zdt-editor form{padding:0;min-width:0}
.zdt-editor-head{padding:18px 20px;margin:0;border-bottom:1px solid #e8edf4;align-items:center;gap:14px;background:#fff;border-radius:16px 16px 0 0}
.zdt-editor-head h3{font-size:20px;line-height:1.4;color:#153354;overflow-wrap:anywhere;margin-top:4px}
.zdt-editor-head span:first-child{font-size:10px;letter-spacing:.06em;color:#79869a}
.zdt-editor-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end;flex:none;max-width:45%}
.zdt-state{background:#eef4ff;color:#3163ac;font-size:9px;letter-spacing:.03em;padding:5px 8px}
.zdt-shell button.zdt-primary{border:1px solid #2463eb;background:#2463eb;color:white;font-size:12px;font-weight:800;border-radius:9px;padding:10px 13px;cursor:pointer}
.zdt-shell button.zdt-primary:hover{background:#1e55cf}
.zdt-readonly{font-size:11px;color:#79869a}
.zdt-section{padding:20px;border-bottom:1px solid #edf1f6;min-width:0}
.zdt-section-head{display:flex;gap:10px;align-items:flex-start;margin:0 0 16px}
.zdt-section-head>span{background:#eef4ff;color:#346caf;border:1px solid #dce8fb;display:grid;place-items:center;flex:none;width:29px;height:29px;border-radius:8px;font-size:10px;font-weight:800}
.zdt-section-head h4{font-size:14px;font-weight:800;line-height:1.4;margin:0;color:#173758}
.zdt-section-head p{font-size:11px;line-height:1.6;color:#758399;margin:3px 0 0}
.zdt-grid-2{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.zdt-grid-2 label{min-width:0}
.zdt-grid-2 label>span,.zdt-print-settings label>span{font-size:10px;letter-spacing:.025em;color:#718198;line-height:1.6}
.zdt-grid-2 input,.zdt-grid-2 select,.zdt-print-settings select,.zdt-print-settings textarea{width:100%;max-width:100%;min-width:0;border:1px solid #d3dde9;background:white;color:#344b66;font-size:13px;border-radius:9px}
.zdt-grid-2 input:focus,.zdt-grid-2 select:focus,.zdt-print-settings textarea:focus,.zdt-list-search input:focus{outline:0;border-color:#83b2fb;box-shadow:0 0 0 3px rgba(36,99,235,.09)}
.zdt-shell input:disabled,.zdt-shell select:disabled,.zdt-shell textarea:disabled{opacity:1;color:#8a96a7;background:#f3f6fa;cursor:not-allowed}
.zdt-locked-help{display:block;font-size:11px;line-height:1.6;color:#8490a0;margin-top:7px;white-space:normal;overflow-wrap:anywhere}
.zdt-switches{margin:0;gap:10px}
.zdt-switch-row{gap:14px;padding:13px 14px;border:1px solid #e0e7f0;border-radius:10px;background:white;min-width:0}
.zdt-switch-row span{min-width:0}
.zdt-switch-row strong{font-size:12px;line-height:1.5;color:#274564;overflow-wrap:anywhere}
.zdt-switch-row small{font-size:11px;line-height:1.6;color:#7a889b;margin-top:3px}
.zdt-switch-row input{width:19px;height:19px;flex:none;accent-color:#2463eb;cursor:pointer}
.zdt-switch-row:has(input:disabled){background:#f9fbfd}.zdt-switch-row input:disabled{cursor:not-allowed}
.zdt-company-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-left:12px;padding-left:12px;border-left:2px solid #dce7f7}
.zdt-print-settings{margin:0;border-width:0 0 1px;border-color:#edf1f6;border-radius:0;background:#fff}
.zdt-print-settings textarea{min-height:95px;resize:vertical;line-height:1.6;padding:10px}
.zdt-footer-field>small{display:block;text-align:right;font-size:10px;color:#8a96a7;margin-top:5px}
.zdt-print-settings>.zdt-switch-row{margin-top:14px}
.zdt-print-help{font-size:11px;line-height:1.6;color:#8a96a7;margin:11px 0 0}
.zdt-roles{border:0;border-top:1px solid #edf1f6;border-radius:0;padding:16px 0 0;margin-top:17px}
.zdt-roles>div:first-child strong{font-size:12px;color:#3a5571}
.zdt-roles p{font-size:11px;line-height:1.6;color:#7a889b}
.zdt-role-grid{gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}
.zdt-role{font-size:11px;border-color:#e5ebf3;min-width:0;align-items:flex-start;line-height:1.5;overflow-wrap:anywhere}
.zdt-role input{flex:none;accent-color:#2463eb;margin-top:2px}
.zdt-integrity{display:block;background:#f8fafc;border:1px solid #e3eaf3;color:#6c7c91;border-radius:10px;margin:16px 20px;padding:11px 13px;min-width:0}
.zdt-integrity summary{font-size:11px;font-weight:700;cursor:pointer}.zdt-integrity p{font-size:11px;line-height:1.6;margin-bottom:0}
.zdt-actions{position:sticky;bottom:0;z-index:3;margin:0;padding:14px 20px;border-top:1px solid #e1e8f1;border-radius:0 0 16px 16px;background:rgba(255,255,255,.97);flex-wrap:wrap;gap:12px}
.zdt-actions>div{margin-left:auto;flex-wrap:wrap}.zdt-actions button{font-size:11px;padding:9px 12px;border-radius:9px}.zdt-actions .zdt-danger{color:#b24444;font-weight:700}
.zdt-error,.zdt-success{margin:14px 20px;border-radius:10px;padding:12px 14px;font-size:12px;line-height:1.6}
.zdt-success{border:1px solid #bce8d3;background:#edfaf3;color:#197651;font-weight:700}
.zdt-preview-panel{position:sticky;top:16px;padding:16px;background:#edf3fa}
.zdt-preview-head{margin-bottom:16px}.zdt-preview-head strong{display:block;font-size:13px;color:#26496f}.zdt-preview-head span{display:block;font-size:10px;line-height:1.6;color:#7c8da3;margin-top:4px}
.zdt-receipt{background:white;border:1px solid #dce5f0;box-shadow:0 5px 12px rgba(41,72,110,.06);padding:17px 13px;color:#192f49;font-family:Arial,Helvetica,sans-serif;font-size:10px;max-width:100%;width:100%;margin:0 auto;overflow-wrap:anywhere}
.zdt-receipt.is-50{width:160px;padding:13px 9px;font-size:9px}
.zdt-receipt-brand{text-align:center;display:grid;gap:4px;margin-bottom:17px}.zdt-receipt-brand img{max-width:135px;width:auto;max-height:62px;object-fit:contain;margin:0 auto}.zdt-receipt-brand>strong{font-size:12px}.zdt-receipt-brand>span{font-size:8px;line-height:1.4}
.zdt-receipt h4{text-align:center;text-transform:uppercase;letter-spacing:.06em;font-size:10px;line-height:1.5;padding:0 0 12px;margin:0 0 12px;border-bottom:1px dashed #cbd9ea;color:#516a88}
.zdt-receipt-meta{display:grid;gap:6px}.zdt-receipt-meta>span,.zdt-receipt-line{display:flex;justify-content:space-between;gap:12px}.zdt-receipt-meta b{font-size:9px;text-align:right}
.zdt-receipt-item{display:flex;align-items:flex-start;justify-content:space-between;gap:9px;padding:13px 0;margin:12px 0;border-top:1px solid #e3eaf4;border-bottom:1px solid #e3eaf4}.zdt-receipt-item small{color:#8193aa;display:block;margin-top:4px}.zdt-receipt-line{font-size:9px;margin:6px 0}
.zdt-receipt-total{display:flex;justify-content:space-between;gap:9px;font-size:15px;font-weight:800;margin-top:12px}.zdt-receipt>p{font-size:9px;line-height:1.6;text-align:center;border-top:1px dashed #d7e1f0;padding-top:11px;margin-bottom:0;white-space:normal}
.zdt-preview-status{display:grid;gap:7px;margin-top:14px}.zdt-preview-status>span{display:flex;justify-content:space-between;font-size:10px;color:#7d8da2}.zdt-preview-status b{color:#335779;font-weight:700}
.zdt-preview-note{font-size:10px;line-height:1.7;color:#7e8fa5;margin:15px 0 0}
.zdt-shell button:focus-visible,.zdt-shell summary:focus-visible{outline:2px solid #2463eb;outline-offset:3px}
@media(max-width:1450px){.zdt-layout{grid-template-columns:minmax(270px,290px) minmax(0,1fr)}.zdt-preview-panel{position:static;grid-column:2}.zdt-preview-panel>[data-zdoc-live-preview]{display:grid;grid-template-columns:minmax(0,280px) minmax(0,1fr);gap:22px;align-items:start}.zdt-preview-status{margin-top:0}.zdt-receipt{margin:0}.zdt-company-options{grid-template-columns:1fr}}
@media(min-width:901px) and (max-width:1150px){.zdt-layout{padding:0 16px 24px;gap:12px;grid-template-columns:260px minmax(0,1fr)}.zdt-grid-2{grid-template-columns:1fr}.zdt-editor-head{align-items:flex-start}.zdt-editor-tools{max-width:50%}.zdt-editor-head h3{font-size:18px}.zdt-section{padding:16px}.zdt-role-grid{grid-template-columns:1fr}}
@media(max-width:900px){.zdt-topbar{padding:18px 14px}.zdt-topbar h2{font-size:22px}.zdt-topbar p{display:block;font-size:12px}.zdt-back{padding:9px;font-size:11px}.zdt-layout{grid-template-columns:minmax(0,1fr);padding:0 12px 24px;gap:14px}.zdt-list{position:static;max-height:330px}.zdt-list-scroll{max-height:230px}.zdt-doc-row{grid-template-columns:minmax(0,1fr) auto;align-items:start}.zdt-doc-info{grid-row:span 2}.zdt-doc-meta{min-width:110px}.zdt-system-actions{grid-column:2}.zdt-preview-panel{grid-column:1}.zdt-grid-2,.zdt-role-grid{grid-template-columns:1fr}.zdt-editor-head{padding:16px}.zdt-editor-head h3{font-size:18px}.zdt-section{padding:16px}.zdt-company-options{margin-left:5px;padding-left:8px}.zdt-actions{padding:12px 16px}.zdt-topbar{align-items:flex-start}.zdt-editor-tools{max-width:46%}.zdt-integrity{margin:14px 16px}}
@media(max-width:520px){.zdt-editor-head{flex-wrap:wrap;align-items:flex-start}.zdt-editor-tools{max-width:none;width:100%;justify-content:space-between}.zdt-shell button.zdt-primary{padding:10px 12px}.zdt-doc-row{grid-template-columns:minmax(0,1fr)}.zdt-doc-info{grid-row:auto}.zdt-doc-meta{min-width:0}.zdt-system-actions{grid-column:1}.zdt-preview-panel>[data-zdoc-live-preview]{grid-template-columns:minmax(0,1fr)}.zdt-receipt{width:260px;margin:auto}.zdt-receipt.is-50{width:160px}.zdt-actions{position:static}.zdt-actions>div{width:100%;margin-left:0;justify-content:space-between}.zdt-topbar h2{font-size:20px}.zdt-back{white-space:nowrap}.zdt-switch-row{padding:11px}.zdt-preview-status{margin-top:0}}
