/* Preserve v8 spacing and imagery, add restrained motion and working states. */
.sidebar-nav .icon svg,.module-card .icon svg,.bottom-nav .icon svg{stroke:currentColor}
.module-card:hover{transform:translateY(-3px);box-shadow:0 10px 24px #07192e20}
.module-card:active{transform:scale(.98)}
.module-card>img{transition:transform .45s ease}.module-card:hover>img{transform:scale(1.035)}
.card,.operation-card{animation:card-appear .25s ease both}
@keyframes card-appear{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
#operation-dialog{width:min(850px,calc(100% - 24px));max-height:92svh;padding:28px;border:1px solid var(--border);border-radius:20px;color:var(--navy);box-shadow:0 24px 90px #07192e4d}
#operation-dialog::backdrop{background:#07192eae;backdrop-filter:blur(4px)}
#operation-dialog[open]{animation:screen-enter .2s ease both}#operation-title{padding-right:35px;margin-bottom:24px}
#operation-form fieldset{border:0;padding:0;margin:0}#operation-form details{padding:16px;background:#f4f6f8;border-radius:12px;margin:18px 0}summary{cursor:pointer;min-height:36px}
.operation-card{display:flex;justify-content:space-between;gap:20px;padding:20px 0;border-bottom:1px solid var(--border);min-width:0}.operation-card:last-child{border:0}.operation-card h3{margin:10px 0 6px}.operation-card h3 small{display:block;color:var(--muted);font-size:11px;font-weight:400;overflow-wrap:anywhere}.operation-card p{color:var(--muted);font-size:13px;margin:5px 0;overflow-wrap:anywhere}.operation-card small{color:var(--muted)}.record-actions{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex-shrink:0}.record-actions strong{font-size:18px}.record-actions .btn{min-height:40px;font-size:13px;padding:8px 13px}.record-actions .text-button{min-height:36px}
.status-confirmado{color:#16634b;background:#e5f4ec}.status-completado{color:#234e88;background:#e6f0ff}.status-cancelado,.status-no-aceptado{color:#9e3b36;background:#fbecea}.status-pendiente{color:#866023;background:#fcf3de}
.helper-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.helper-checks label{padding:9px 10px;border:1px solid var(--border);border-radius:10px;margin:0;display:flex;gap:9px;align-items:center;font-size:13px;min-height:44px}.helper-checks input{accent-color:var(--navy);width:18px;height:18px}
.payment-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.signature-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.signature-grid canvas{background:#fafbfc;border:1px dashed #94a3b8;border-radius:12px;width:100%;height:auto;touch-action:none}.signature-grid p{margin:6px 0}
.admin-row{display:flex;gap:15px;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);padding:16px 0}.admin-row p{margin:4px 0 0;font-size:12px;color:var(--muted);overflow-wrap:anywhere}.audit-entry{border-bottom:1px solid var(--border);padding:10px 0;font-size:12px}.audit-entry pre{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--bg);padding:12px;max-height:240px;overflow:auto}.checkbox-field{display:flex;align-items:center;gap:10px;min-height:44px}.checkbox-field input{width:20px;min-height:20px}.calendar-days [role=button]{cursor:pointer;position:relative}.calendar-days [role=button]:hover{background:#c9a05225}.calendar-days [role=button]:focus-visible{outline:2px solid var(--gold)}.calendar-days .has-service:after{content:'';position:absolute;bottom:2px;width:4px;height:4px;border-radius:50%;background:var(--gold)}
.connection-warning{position:sticky;top:0;z-index:1000;background:#fff1ce;color:#6e4a0b;padding:12px 20px;text-align:center;font-size:13px}.demo-badge.offline{color:#ffcd9a}.login-options input{accent-color:var(--navy)}#invitation-token{width:100%;min-height:110px;padding:14px;margin-bottom:14px;overflow-wrap:anywhere;border:1px solid var(--border);border-radius:10px;font:inherit}.search-field{max-width:600px}.screen-heading{flex-wrap:wrap}#operation-error{position:sticky;bottom:0;background:white;padding:8px 0}.field select{max-width:100%}
@media(max-width:700px){#operation-dialog{padding:22px 16px}.operation-card{flex-direction:column;gap:13px}.record-actions{flex-direction:row;align-items:center;flex-wrap:wrap}.record-actions strong{width:100%}.record-actions .text-button{padding:8px}.signature-grid{grid-template-columns:1fr}.payment-grid{gap:7px}.payment-grid .field span{font-size:11px}.payment-grid input{padding:10px}.admin-row{align-items:flex-start}.admin-row .btn{padding:8px 12px;font-size:12px}.helper-checks{grid-template-columns:1fr}.demo-badge{display:none}.connection-warning{font-size:12px}.two-fields{min-width:0}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.module-card:hover,.module-card:hover>img{transform:none}}
