/* Patrón común de las vistas operativas del prototipo. */
.page-title{align-items:center;gap:16px;margin-bottom:18px}
.page-title>div:first-child{display:flex;align-items:baseline;gap:8px 20px;flex-wrap:wrap;min-width:0}
.page-title h1{margin:0}
.page-title .eyebrow{display:none}
.page-title p{margin:0;font-size:15px}
.page-title>.badge,.page-title>.button{flex-shrink:0}

/* La misma alternancia se conserva cuando las tablas se convierten en tarjetas. */
tbody tr:nth-child(odd){background-color:#ffffff}
tbody tr:nth-child(even){background-color:#f1f4f7}
tbody tr{transition:background-color .12s ease}
tbody tr:focus-within{background-color:#ffeadb}
@media(hover:hover){tbody tr:hover{background-color:#ffeadb}}
@media(prefers-reduced-motion:reduce){tbody tr{transition:none}}

@media(max-width:720px){
  .page-title{gap:10px;margin-bottom:16px;flex-wrap:wrap}
  .page-title>div:first-child{gap:6px}
  .page-title>.badge{white-space:normal}
  .page-title h1{font-size:26px;line-height:1.25}
}
.context-control{display:flex;gap:8px;align-items:start}.context-control>select{flex:1;min-width:0}.context-control>.button{min-height:46px;flex-shrink:0}.context-route-field{grid-column:1/-1}.context-return{padding:12px;background:#fff1e5;border-radius:8px;color:#8b390e;font-size:14px;margin:0 0 20px}.context-return:empty{display:none}#user-form .context-route-field[hidden]{display:none}
@media(max-width:720px){.context-control{flex-wrap:wrap}.context-control>.button,.context-control>select{width:100%;flex-basis:100%}}

/* Patrón compartido de formularios por pestañas. */
.form-tabs{padding:0;margin:0 0 24px;overflow-x:auto;flex-wrap:nowrap}.form-tabs .tab{white-space:nowrap;font-size:16px}.form-tab-panel[hidden]{display:none!important}.form-tab-panel>h2{display:none}.form-tab-panel.client-form-section{border:0;padding:0;margin:0}.form-tab-panel{min-width:0}.form-tab-panel .notice{margin-top:20px}.form-footer{flex-wrap:wrap}@media(max-width:720px){.form-tabs{margin-bottom:20px}.form-tabs .tab{font-size:15px}.form-tab-panel .form-grid{gap:16px}}

.profile-actions{display:flex;justify-content:flex-end;gap:18px;padding:16px 26px;border-bottom:1px solid var(--line);flex-wrap:wrap}

.record-actions{min-width:230px}.record-actions .text-button{display:inline-block;margin-right:12px}.danger-text{color:#a52b26}.danger-button{background:#a52b26;color:white;border-color:#a52b26}.record-delete-dialog{border:0;padding:0;border-radius:14px;width:560px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);color:var(--ink);box-shadow:0 24px 90px #0004}.record-delete-dialog::backdrop{background:#12171c66}.record-delete-dialog .notice{margin-top:18px}@media(max-width:720px){td.record-actions{min-width:0;display:flex;flex-wrap:wrap;gap:8px}td.record-actions:before{flex-basis:100%}td.record-actions .text-button{flex:1;margin:0}}

.roles-dialog{border:0;padding:0;border-radius:14px;width:760px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);color:var(--ink);box-shadow:0 24px 90px #0004}.roles-dialog::backdrop{background:#12171c66}.roles-dialog table{margin-top:18px;white-space:normal}.roles-dialog .field{margin-bottom:18px}.roles-dialog td:first-child{overflow-wrap:anywhere}
