/* Mismo Diseño A; listas compactas, diálogos cortos y visor compartido. */
.auth-heading{display:flex;justify-content:space-between;gap:20px;align-items:center}.auth-heading>div,.auth-service-row>span:first-child,.auth-page-row>span:first-child{min-width:0}.auth-toolbar{display:grid;grid-template-columns:minmax(200px,1fr) minmax(170px,.6fr) auto;align-items:end;gap:14px;margin:24px 0 12px}.auth-list{display:grid;gap:10px}.auth-service-row,.auth-page-row{width:100%;display:grid!important;grid-template-columns:minmax(0,1fr) auto auto;gap:20px;align-items:center;text-align:left!important;padding:18px 22px!important;border:1px solid var(--line,#40534b)!important;border-radius:14px!important;background:var(--card,#fff)!important;color:inherit!important;box-shadow:none!important}.auth-service-row small,.auth-page-row small,.auth-recipient small,.auth-history small{display:block;color:var(--muted,#b8c7c0);font-weight:400;line-height:1.6}.auth-service-row b,.auth-page-row b,.auth-recipient b{display:block;overflow-wrap:anywhere}.auth-row-hint{color:var(--brand-gold,#ba9f67);font-size:.85rem;white-space:nowrap}.auth-status{display:inline-flex;padding:6px 10px;border:1px solid var(--line,#40534b);border-radius:30px;font-size:.78rem;line-height:1.35;max-width:100%;white-space:normal;align-items:center}.auth-status.complete{background:#124b39;color:#d9f7e7}.auth-status.received{background:#4b432d;color:#f6e4b8}.auth-status.warning{background:#553c23;color:#ffe2aa}.authorization-dialog{width:min(820px,calc(100vw - 32px))!important;max-width:820px!important;max-height:calc(100dvh - 32px)!important;overflow:auto!important;box-sizing:border-box}.authorization-dialog form,.authorization-dialog>section{min-width:0;max-width:100%}.auth-dialog-head{display:flex;gap:18px;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.auth-dialog-head>div{min-width:0}.auth-dialog-head h2{font-size:clamp(1.8rem,4vw,2.3rem);margin:.4rem 0}.auth-dialog-head .quiet{flex:0 0 auto;min-width:44px}.auth-service-panel{padding:20px!important;margin:18px 0!important;border:1px solid var(--line,#40534b);border-radius:14px}.auth-service-panel h3{margin:.4rem 0}.auth-service-panel .row{flex-wrap:wrap;gap:10px}.auth-document{padding:14px 0;border-bottom:1px solid var(--line,#40534b)}.auth-document>b{display:block;overflow-wrap:anywhere;margin-bottom:12px}.auth-recipient{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:18px 0}.auth-actions{margin:14px 0}.auth-history{margin-top:24px}.auth-history article{display:flex;gap:12px;padding:15px 0;border-bottom:1px solid var(--line,#40534b);align-items:center;flex-wrap:wrap}.auth-history article>div{flex:1 1 270px;min-width:0;overflow-wrap:anywhere}.auth-history article span{display:block;font-size:.87rem}.auth-check{display:flex!important;gap:12px;align-items:flex-start;margin:18px 0!important;line-height:1.5;font-weight:400!important}.auth-check input[type=checkbox]{width:20px!important;height:20px!important;min-width:20px!important;flex:0 0 20px;margin:2px 0 0!important;accent-color:#0b7859}.auth-page-options{max-height:230px;overflow:auto}.auth-form-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}.auth-form-grid .full{grid-column:1/-1}.auth-upload-gate{margin:16px 0}.authorization-dialog .form-actions{flex-wrap:wrap;gap:12px;justify-content:space-between;position:static!important}.authorization-dialog .button,.auth-service-panel .button{display:inline-flex;align-items:center;justify-content:center;padding:12px 18px;border-radius:10px;text-decoration:none;min-height:44px;font-weight:600;border:1px solid var(--line,#40534b);color:inherit}.authorization-dialog label{max-width:100%;min-width:0}.authorization-dialog input,.authorization-dialog select,.authorization-dialog textarea{max-width:100%;box-sizing:border-box}.auth-service-row:focus-visible,.auth-page-row:focus-visible{outline:3px solid var(--brand-gold,#ba9f67);outline-offset:3px}
@media(max-width:700px){.auth-heading{display:block}.auth-heading>.row{margin-top:16px}.auth-toolbar{grid-template-columns:minmax(0,1fr)}.auth-service-row,.auth-page-row{grid-template-columns:minmax(0,1fr)!important;gap:12px;padding:16px!important}.auth-service-row .auth-status,.auth-page-row .auth-status{justify-self:start}.auth-row-hint{justify-self:end}.auth-recipient{align-items:flex-start;flex-direction:column}.auth-form-grid{grid-template-columns:minmax(0,1fr)}.auth-service-panel{padding:16px!important}.authorization-dialog{padding:18px!important;width:calc(100vw - 20px)!important;max-height:calc(100dvh - 20px)!important}.authorization-dialog .form-actions{justify-content:center}.authorization-dialog .form-actions>*{flex:1 1 160px;text-align:center}.auth-dialog-head{gap:10px}.auth-dialog-head h2{overflow-wrap:anywhere}}

.auth-service-row:hover,.auth-page-row:hover{border-color:var(--brand-gold)!important;background:var(--ui-surface-raised,var(--card))!important}.auth-row-hint{color:color-mix(in srgb,var(--brand-gold) 65%,var(--text))}
