:root {
    --bg-primary: #0f172a;
    --panel: rgba(255, 255, 255, 0.9);
    --line: rgba(148, 163, 184, 0.25);
    --text-primary: #e2e8f0;
    --text-dark: #0f172a;
    --text-soft: #475569;
    --accent: #f97316;
    --accent-dark: #ea580c;
}

* {
    box-sizing: border-box;
}

body.ticket-app {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.22), transparent 34%),
        radial-gradient(circle at left center, rgba(249, 115, 22, 0.26), transparent 28%),
        linear-gradient(160deg, #020617 0%, #0f172a 48%, #1d4ed8 100%);
    color: var(--text-primary);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body.regencia-app,
body.regencia-status-page {
    background:
        radial-gradient(circle at top left, rgba(16, 185, 129, 0.24), transparent 32%),
        radial-gradient(circle at right center, rgba(245, 158, 11, 0.22), transparent 28%),
        linear-gradient(160deg, #052e2b 0%, #0b3b39 46%, #164e63 100%);
}

body.operator-session-open {
    overflow: hidden;
}

a {
    color: var(--accent);
}

.hero-shell {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.7));
    box-shadow: 0 20px 60px rgba(2, 6, 23, 0.35);
}

.hero-shell--compact {
    padding: 2.95rem 1.75rem 1.5rem;
}

.hero-shell--agremiado {
    padding: 2.9rem 1.6rem 1.35rem;
}

.hero-shell--lef {
    padding: 2.9rem 2rem 1.9rem;
}

.hero-shell--agremiado .hero-menu-link {
    top: 0.7rem;
}

.hero-shell--lef .hero-menu-link {
    top: 0.7rem;
}

.hero-shell--agremiado .hero-actions {
    padding-top: 0.35rem;
}

.hero-shell--lef .hero-actions {
    padding-top: 0.35rem;
}

.hero-shell--agremiado > div:first-of-type,
.hero-shell--lef > div:first-of-type {
    padding-top: 0.35rem;
}

.agremiado-app .container.py-4.py-lg-5 {
    padding-top: 1.2rem !important;
    padding-bottom: 1.5rem !important;
}

.agremiado-app .hero-shell--agremiado {
    padding: 2.7rem 1.35rem 1.15rem;
}

.agremiado-app .hero-shell--agremiado h1 {
    font-size: 1.95rem;
    line-height: 1.14;
    margin-top: 0.35rem;
}

.agremiado-app .hero-shell--agremiado .hero-actions .btn {
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
}

.agremiado-app .hero-shell--agremiado .hero-menu-link {
    top: 0.65rem;
    right: 0.9rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.84rem;
}

.agremiado-app .hero-shell--agremiado .operator-toolbar {
    top: 0.7rem;
    left: 0.9rem;
    padding: 0.38rem 0.62rem;
    gap: 0.45rem;
}

.agremiado-app .hero-shell--agremiado .operator-toolbar__label {
    font-size: 0.76rem;
}

.agremiado-app .hero-shell--agremiado .operator-toolbar__button {
    padding: 0.2rem 0.52rem;
    font-size: 0.72rem;
}

.agremiado-app #agremiadoRegisterCard {
    padding: 1.35rem;
}

.agremiado-app #agremiadoRegisterCard .section-title {
    margin-bottom: 0.35rem;
}

.agremiado-app #agremiadoRegisterCard .section-title h2 {
    font-size: 1.18rem;
}

.agremiado-app #agremiadoRegisterCard .status-pill {
    padding: 0.45rem 0.8rem;
    font-size: 0.88rem;
}

.agremiado-app #agremiadoRegisterForm {
    row-gap: 0.75rem;
}

.agremiado-app #agremiadoRegisterForm .form-label {
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.agremiado-app #agremiadoRegisterForm .form-control-lg,
.agremiado-app #agremiadoRegisterForm .form-select-lg {
    padding: 0.65rem 0.85rem;
    font-size: 1rem;
}

.agremiado-app .procedure-selector {
    gap: 0.65rem 0.8rem;
    padding: 0.8rem 0.9rem;
    border-radius: 18px;
}

.agremiado-app .procedure-selector__option {
    font-size: 0.92rem;
}

.agremiado-app .procedure-selector__other {
    gap: 0.55rem;
}

.agremiado-app .procedure-selector__other-input {
    padding: 0.55rem 0.75rem;
}

.agremiado-app #agremiadoRegisterForm .btn-lg {
    padding: 0.6rem 1rem;
    font-size: 1rem;
}

.agremiado-app .ticket-preview {
    margin-top: 1rem !important;
}

.panel-app .container.py-4.py-lg-5 {
    padding-top: 1.3rem !important;
    padding-bottom: 1.5rem !important;
}

.panel-app .hero-shell--compact {
    padding: 2.7rem 1.45rem 1.15rem;
}

.panel-app .hero-shell--compact h1 {
    font-size: 2.1rem;
    margin-bottom: 0.55rem !important;
}

.panel-app .hero-shell--compact > div:first-of-type {
    padding-top: 0.45rem;
}

.panel-app .hero-shell--compact .operator-toolbar {
    top: 0.75rem;
    left: 0.85rem;
    padding: 0.35rem 0.58rem;
    gap: 0.4rem;
}

.panel-app .hero-shell--compact .operator-toolbar__label {
    font-size: 0.75rem;
}

.panel-app .hero-shell--compact .operator-toolbar__button {
    padding: 0.2rem 0.5rem;
    font-size: 0.71rem;
}

.panel-app .hero-shell--compact .hero-actions .btn {
    padding: 0.6rem 0.95rem;
    font-size: 0.94rem;
}

.panel-app .ticket-summary {
    margin-top: 0.65rem;
    padding: 0.45rem 0.65rem;
}

.panel-app .ticket-summary__row {
    gap: 0.7rem;
}

.panel-app .ticket-summary__row span {
    font-size: 0.8rem;
}

.panel-app .ticket-summary__label {
    min-width: 62px;
    font-size: 0.68rem;
}

.panel-app .ticket-summary__row strong {
    font-size: 0.92rem;
}

.panel-app .panel-search-card {
    padding: 1.15rem 1.35rem;
}

.panel-app .panel-search-card .section-title {
    margin-bottom: 0.45rem;
}

.panel-app .panel-search-card .section-title h2 {
    font-size: 1.12rem;
}

.panel-app .panel-search-card .form-control-lg {
    padding: 0.7rem 0.9rem;
    font-size: 1rem;
}

.seal-app .container.py-4.py-lg-5 {
    padding-top: 1.2rem !important;
    padding-bottom: 1.5rem !important;
}

.regencia-app .container.py-4.py-lg-5,
.regencia-status-page .container.py-4.py-lg-5 {
    padding-top: 0.95rem !important;
    padding-bottom: 1.1rem !important;
}

.regencia-app .hero-shell--compact {
    padding: 0.95rem 1.05rem 0.78rem;
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.96), rgba(21, 94, 117, 0.82));
}

.regencia-app .hero-shell--compact h1 {
    font-size: 1.46rem;
    line-height: 1.08;
    margin-bottom: 0.2rem !important;
}

.regencia-app .hero-shell--compact .hero-menu-link {
    top: 0.55rem;
    right: 0.65rem;
    padding: 0.3rem 0.7rem;
    font-size: 0.78rem;
}

.regencia-app .hero-shell--compact .btn.btn-sm {
    padding: 0.28rem 0.68rem;
    font-size: 0.79rem;
}

.regencia-app .hero-shell--compact .mt-2 {
    margin-top: 0.35rem !important;
}

.regencia-app .seal-form-card,
.regencia-app .seal-search-card,
.regencia-app .seal-grid-card,
.regencia-status-page .seal-status-search-card,
.regencia-status-page .seal-status-results-card {
    background: rgba(255, 255, 255, 0.94);
}

.regencia-form-card,
.regencia-search-card,
.regencia-grid-card {
    padding: 0.62rem 0.78rem;
}

.regencia-form-card__header {
    margin-bottom: 0;
}

.regencia-form-grid {
    --bs-gutter-x: 0.58rem;
    --bs-gutter-y: 0.2rem;
    row-gap: 0.2rem !important;
}

.regencia-search-card .row.g-2 {
    --bs-gutter-x: 0.58rem;
    --bs-gutter-y: 0.22rem;
}

.regencia-search-card .row.g-2.mt-1 {
    margin-top: 0.12rem !important;
}

.regencia-app .seal-form-card .form-label,
.regencia-app .seal-search-card .form-label {
    margin-bottom: 0.12rem;
    font-size: 0.76rem;
}

.regencia-app .seal-form-card .form-control-lg,
.regencia-app .seal-form-card .form-select-lg,
.regencia-app .seal-search-card .form-control-lg,
.regencia-app .seal-search-card .form-select-lg {
    min-height: calc(1.4em + 0.58rem + 2px);
    padding: 0.28rem 0.52rem;
    font-size: 0.83rem;
}

.regencia-app .seal-form-card__header h2,
.regencia-app .seal-search-card .section-title h2,
.regencia-app .seal-grid-card .section-title h2 {
    font-size: 0.94rem;
}

.regencia-app .section-kicker,
.regencia-app .eyebrow {
    font-size: 0.67rem;
}

.regencia-search-card .section-title,
.regencia-grid-card .section-title {
    margin-bottom: 0.02rem;
}

.regencia-app .seal-form-card__header-actions {
    gap: 0.25rem;
}

.regencia-app .seal-form-card__header-actions .btn {
    padding: 0.24rem 0.56rem;
    font-size: 0.77rem;
}

.regencia-number-group .form-control-lg {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.regencia-number-group .regencia-suggestion-btn {
    padding: 0.24rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 800;
    border-top-right-radius: 0.78rem;
    border-bottom-right-radius: 0.78rem;
}

.regencia-app .alert {
    margin-bottom: 0.45rem;
}

.regencia-app .regencia-form-card,
.regencia-app .regencia-search-card {
    margin-bottom: 0.7rem !important;
}

.regencia-app--vista-carnet .hero-report-wrap,
.regencia-app--vista-carnet .hero-shell--compact .mt-2,
.regencia-app--vista-carnet .regencia-form-card,
.regencia-app--vista-carnet .regencia-constancia-card {
    display: none !important;
}

.regencia-table .regencia-carnet-only-col {
    display: none;
}

.regencia-app--con-carnet .regencia-table .regencia-carnet-only-col {
    display: table-cell;
    width: 146px;
    min-width: 146px;
    max-width: 146px;
    text-align: center;
}

.regencia-carnet-image-cell {
    width: 146px;
    min-width: 146px;
    max-width: 146px;
    padding-top: 0.55rem !important;
    padding-bottom: 0.55rem !important;
    vertical-align: middle !important;
}

.regencia-carnet-table-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 132px;
    min-height: 148px;
    margin: 0 auto;
    padding: 0.38rem 0.48rem 0.5rem;
    border: 1px dashed rgba(14, 116, 144, 0.52);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.9), rgba(239, 246, 255, 0.92));
    color: #123047;
    cursor: pointer;
    line-height: 1.1;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.regencia-carnet-table-dropzone strong {
    font-size: 0.82rem;
    white-space: normal;
}

.regencia-carnet-table-dropzone span {
    color: var(--text-soft);
    font-size: 0.7rem;
    margin-top: 0.12rem;
    text-align: center;
}

.regencia-carnet-table-preview {
    display: block;
    width: 88px;
    height: 100px;
    margin-top: 0.35rem;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 8px;
    background: #fff;
    object-fit: cover;
    object-position: center center;
}

.regencia-carnet-table-preview--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    font-size: 0.62rem;
    font-weight: 700;
}

.regencia-carnet-table-dropzone:focus,
.regencia-carnet-table-dropzone:focus-within {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 0.18rem rgba(14, 165, 233, 0.16);
    outline: 0;
    transform: translateY(-1px);
}

.regencia-carnet-table-dropzone--seleccionada {
    border-color: #2563eb;
    box-shadow: 0 0 0 0.18rem rgba(37, 99, 235, 0.18);
}

.regencia-carnet-table-dropzone--guardada {
    border-style: solid;
    border-color: rgba(22, 163, 74, 0.55);
    background: linear-gradient(135deg, rgba(240, 253, 244, 0.95), rgba(236, 253, 245, 0.92));
}

.regencia-carnet-table-dropzone--cargando {
    opacity: 0.72;
    pointer-events: none;
}

.regencia-carnet-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.regencia-carnet-icon svg {
    width: 1.05rem;
    height: 1.05rem;
}

.carnet-vista-table .carnet-vista-image-cell {
    min-width: 150px;
}

.glass-card.carnet-vista-filter-card {
    padding: 0.9rem 1rem;
    border-radius: 1.25rem;
    margin-bottom: 1rem !important;
}

.carnet-vista-filter-card .section-title {
    margin-bottom: 0.35rem;
    align-items: center;
}

.carnet-vista-filter-card .section-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
}

.carnet-vista-filter-card .section-title h2 {
    margin-bottom: 0;
    font-size: 1rem;
}

.carnet-vista-filter-card .form-label {
    margin-bottom: 0.12rem;
    font-size: 0.78rem;
}

.carnet-vista-filter-card .form-control-sm,
.carnet-vista-filter-card .form-select-sm {
    min-height: 2.15rem;
    padding: 0.32rem 0.65rem;
    border-radius: 0.75rem;
    font-size: 0.86rem;
}

.carnet-vista-filter-card .btn {
    padding: 0.24rem 0.55rem;
    font-size: 0.78rem;
}

.carnet-vista-table .carnet-vista-preview--firma {
    object-fit: contain;
    padding: 0.2rem;
}

.carnet-vista-print-btn {
    width: 2rem;
    min-width: 2rem;
    padding: 0;
    font-weight: 400;
}

.regencia-constancia-card {
    padding: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.94);
}

.regencia-constancia-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.62rem 0.78rem;
    cursor: pointer;
    list-style: none;
}

.regencia-constancia-summary::-webkit-details-marker {
    display: none;
}

.regencia-constancia-summary strong {
    display: block;
    font-size: 0.96rem;
}

.regencia-constancia-summary__hint {
    color: var(--text-soft);
    font-size: 0.78rem;
}

.regencia-constancia-body {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding: 0.64rem 0.78rem 0.78rem;
}

.regencia-constancia-card .form-label {
    margin-bottom: 0.12rem;
    font-size: 0.75rem;
}

.regencia-constancia-card .form-control-sm,
.regencia-constancia-card .form-select-sm {
    min-height: 30px;
    padding: 0.22rem 0.48rem;
    font-size: 0.78rem;
    border-radius: 0.65rem;
}

.constancia-check {
    margin-bottom: 0.14rem;
    font-size: 0.75rem;
}

.regencia-table {
    min-width: 1800px;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
}

.regencia-table thead {
    --bs-table-bg: #475569;
    --bs-table-color: #fff;
    --bs-table-border-color: #475569;
    background: #475569 !important;
    border-color: #475569 !important;
}

.regencia-table thead tr {
    background: #475569 !important;
    border-color: #475569 !important;
}

.regencia-app--con-carnet .regencia-table {
    min-width: 2250px;
}

.regencia-table .regencia-col-numero-lr {
    width: 134px;
    min-width: 134px;
    max-width: 134px;
}

.regencia-table .regencia-col-fecha {
    width: 142px;
    min-width: 142px;
    max-width: 142px;
}

.regencia-table .regencia-col-fecha-larga {
    width: 160px;
    min-width: 160px;
    max-width: 160px;
}

.regencia-table th,
.regencia-table td {
    padding: 0.34rem 0.38rem;
    font-size: 0.8rem;
    line-height: 1.2;
}

.regencia-table thead th {
    font-size: 0.72rem;
    white-space: nowrap;
    background: #475569 !important;
    background-color: #475569 !important;
    border-color: #475569 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    box-shadow: inset 0 0 0 9999px #475569 !important;
}

.regencia-table thead tr:first-child th {
    overflow: visible;
}

.regencia-table thead tr:first-child th::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 8px;
    background: #475569;
    pointer-events: none;
}

.regencia-table .seal-table__filter-row th {
    background: #475569 !important;
    background-color: #475569 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    box-shadow: inset 0 0 0 9999px #475569 !important;
    padding: 0.32rem 0.24rem;
    top: 28px;
}

.regencia-table .seal-table__filter-row .form-control,
.regencia-table .seal-table__filter-row .form-select {
    width: 100%;
    min-width: 0;
    padding: 0.26rem 0.42rem;
    font-size: 0.73rem;
}

.regencia-table .seal-table__action-col,
.regencia-table .seal-table__action-cell {
    width: 1%;
    min-width: 56px;
    white-space: nowrap;
}

.regencia-table .seal-table__action-cell {
    padding-left: 0.45rem;
    padding-right: 0.45rem;
}

.regencia-action-stack {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: center;
}

.regencia-check {
    padding: 0.08rem 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.regencia-check.form-switch {
    padding-left: 0;
}

.regencia-check .form-check-input {
    margin-top: 0.04rem;
    margin-left: 0;
    float: none;
}

.regencia-check .form-check-input:focus {
    box-shadow: none;
}

.seal-table__editable-row--editing td {
    background: rgba(248, 250, 252, 0.94);
    vertical-align: top;
}

.regencia-inline-input,
.regencia-inline-select {
    min-width: 98px;
    min-height: 30px;
    font-size: 0.77rem;
}

.regencia-inline-number-group {
    min-width: 150px;
}

.regencia-inline-number-group .regencia-inline-input {
    min-width: 92px;
}

.regencia-inline-suggestion-btn {
    padding: 0.18rem 0.42rem;
    font-size: 0.68rem;
    font-weight: 800;
}

.regencia-inline-check {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin: 0;
}

.regencia-inline-check .form-check-input {
    margin: 0;
    float: none;
}

.regencia-inline-actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: stretch;
    min-width: 72px;
}

.regencia-inline-actions .btn {
    padding: 0.26rem 0.42rem;
    font-size: 0.72rem;
}

.regencia-icon-btn {
    width: 2rem;
    height: 2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.regencia-icon-btn svg {
    width: 0.95rem;
    height: 0.95rem;
    fill: currentColor;
}

.regencia-status {
    background: rgba(13, 148, 136, 0.16);
    color: #0f766e;
}

.regencia-status--emision {
    background: #5da12d;
    color: #fff;
}

.regencia-status--inspectoria {
    background: #f59e0b;
    color: #fff;
}

.regencia-status--entregado {
    background: #2563eb;
    color: #fff;
}

.regencia-status--listo {
    background: #7e35b2;
    color: #fff;
}

.regencia-status--muted {
    background: rgba(148, 163, 184, 0.18);
    color: #475569;
}

.regencia-state-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
}

.regencia-state-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0;
    cursor: pointer;
}

.regencia-state-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.regencia-state-option__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0.36rem 0.68rem;
    border-radius: 12px;
    border: 2px solid rgba(148, 163, 184, 0.25);
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.08;
    text-align: center;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    opacity: 0.72;
}

.regencia-state-option__chip--emision {
    background: rgba(93, 161, 45, 0.18);
    color: #3f6212;
}

.regencia-state-option__chip--inspectoria {
    background: rgba(245, 158, 11, 0.18);
    color: #b45309;
}

.regencia-state-option__chip--entregado {
    background: #dbeafe;
    color: #1e40af;
}

.regencia-state-option__chip--listo {
    background: rgba(126, 53, 178, 0.16);
    color: #6b21a8;
}

.regencia-state-option input:checked + .regencia-state-option__chip {
    opacity: 1;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
}

.regencia-state-option input:checked + .regencia-state-option__chip--emision {
    background: #5da12d;
    color: #fff;
    border-color: #5da12d;
}

.regencia-state-option input:checked + .regencia-state-option__chip--inspectoria {
    background: #f59e0b;
    color: #fff;
    border-color: #f59e0b;
}

.regencia-state-option input:checked + .regencia-state-option__chip--entregado {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.regencia-state-option input:checked + .regencia-state-option__chip--listo {
    background: #7e35b2;
    color: #fff;
    border-color: #7e35b2;
}

body.ticket-app.rg17-app {
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.24), transparent 28%),
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.22), transparent 30%),
        linear-gradient(180deg, #7c2d12 0%, #c2410c 48%, #ea580c 100%);
}

body.ticket-app.rg77-app {
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.24), transparent 28%),
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.22), transparent 30%),
        linear-gradient(180deg, #7c2d12 0%, #c2410c 48%, #ea580c 100%);
}

body.ticket-app.depositos-app {
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.22), transparent 34%),
        radial-gradient(circle at left center, rgba(14, 165, 233, 0.18), transparent 30%),
        linear-gradient(160deg, #020617 0%, #0f172a 48%, #1d4ed8 100%);
}

.depositos-main {
    max-width: none;
    margin: 0 auto;
}

.depositos-hero {
    min-height: 48px;
    padding: 0.42rem 0.72rem 0.36rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 64, 175, 0.72));
}

.depositos-app .depositos-hero h1 {
    font-size: 1.08rem;
    line-height: 1;
    margin-bottom: 0 !important;
}

.depositos-app .depositos-hero .eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
}

.depositos-app .depositos-hero .hero-menu-link {
    top: 0.42rem;
    right: 0.78rem;
    padding: 0.25rem 0.56rem;
    font-size: 0.72rem;
}

.depositos-form-card,
.depositos-search-card,
.depositos-grid-card {
    padding: 0.38rem 0.55rem;
}

.depositos-form-card.mb-2,
.depositos-search-card.mb-2 {
    margin-bottom: 0.45rem !important;
}

.depositos-form-grid,
.depositos-search-grid {
    --bs-gutter-x: 0.38rem;
    --bs-gutter-y: 0.2rem;
}

.depositos-app .section-title {
    margin-bottom: 0.08rem;
}

.depositos-app .section-kicker {
    color: #334155;
    font-weight: 800;
    opacity: 1;
}

.depositos-app .section-title h2 {
    font-size: 0.84rem;
}

.depositos-app .form-label {
    margin-bottom: 0.08rem;
    font-size: 0.68rem;
}

.depositos-app .form-control-lg,
.depositos-app .form-select-lg {
    min-height: 1.48rem;
    padding: 0.12rem 0.36rem;
    font-size: 0.7rem;
    border-radius: 0.48rem;
}

.depositos-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 1.48rem;
    gap: 0.35rem;
    padding: 0.12rem 0.38rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 0.58rem;
    background: #fff;
    font-size: 0.7rem;
    font-weight: 700;
}

.depositos-table {
    width: 100%;
    min-width: 1775px;
    table-layout: fixed;
}

.depositos-table th,
.depositos-table td {
    padding: 0.12rem 0.16rem;
    font-size: 0.62rem;
    line-height: 1.08;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    vertical-align: top;
}

.depositos-table thead th {
    font-size: 0.56rem;
}

.depositos-table .depositos-actions-heading {
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0.04em;
    text-align: left;
}

.depositos-table .seal-table__sort-btn {
    white-space: normal;
    line-height: 1.05;
}

.depositos-table .seal-table__filter-row .form-control,
.depositos-table .seal-table__filter-row .form-select {
    width: 100%;
    min-width: 0;
    min-height: 1.42rem;
    padding: 0.08rem 0.2rem;
    font-size: 0.56rem;
    border-radius: 0.38rem;
}

.depositos-table .depositos-table-clear-btn {
    width: 100%;
    min-width: 0;
    min-height: 1.42rem;
    padding: 0.08rem 0.12rem;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.9);
}

.depositos-table th:nth-child(1),
.depositos-table td:nth-child(1) {
    width: 82px;
    min-width: 82px;
}

.depositos-table th:nth-child(2),
.depositos-table td:nth-child(2) {
    width: 64px;
}

.depositos-table th:nth-child(3),
.depositos-table td:nth-child(3) {
    width: 72px;
}

.depositos-table th:nth-child(4),
.depositos-table td:nth-child(4) {
    width: 92px;
}

.depositos-table th:nth-child(5),
.depositos-table td:nth-child(5) {
    width: 260px;
}

.depositos-table th:nth-child(6),
.depositos-table td:nth-child(6),
.depositos-table th:nth-child(7),
.depositos-table td:nth-child(7) {
    width: 90px;
}

.depositos-table th:nth-child(8),
.depositos-table td:nth-child(8) {
    width: 110px;
}

.depositos-table th:nth-child(9),
.depositos-table td:nth-child(9) {
    width: 130px;
}

.depositos-table th:nth-child(10),
.depositos-table td:nth-child(10) {
    width: 116px;
}

.depositos-table th:nth-child(11),
.depositos-table td:nth-child(11) {
    width: 82px;
}

.depositos-table th:nth-child(12),
.depositos-table td:nth-child(12) {
    width: 104px;
}

.depositos-table th:nth-child(13),
.depositos-table td:nth-child(13),
.depositos-table th:nth-child(14),
.depositos-table td:nth-child(14) {
    width: 128px;
}

.depositos-table th:nth-child(15),
.depositos-table td:nth-child(15) {
    width: 110px;
}

.depositos-table th:nth-child(16),
.depositos-table td:nth-child(16) {
    width: 120px;
}

.depositos-table th:nth-child(17),
.depositos-table td:nth-child(17) {
    width: 104px;
}

.depositos-table th:nth-child(18),
.depositos-table td:nth-child(18) {
    width: 180px;
}

.depositos-action-stack {
    display: inline-grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.2rem;
}

.depositos-action-stack .table-icon-btn {
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 0.45rem;
    font-size: 0.72rem;
}

.depositos-inline-row td {
    background: rgba(219, 234, 254, 0.72);
}

.depositos-inline-input {
    width: 100%;
    min-width: 0;
    min-height: 1.45rem;
    padding: 0.1rem 0.24rem;
    border-radius: 0.42rem;
    font-size: 0.62rem;
}

.depositos-inline-textarea {
    min-height: 2.55rem;
    resize: vertical;
}

.depositos-inline-check,
.depositos-applied-check {
    width: 1.05rem;
    height: 1.05rem;
    cursor: pointer;
}

.depositos-applied-check:checked {
    background-color: #16a34a;
    border-color: #16a34a;
}

.depositos-applied-check:disabled,
.depositos-inline-check:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.depositos-prescripcion-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.8rem;
    border-radius: 999px;
    padding: 0.12rem 0.42rem;
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1.1;
}

.depositos-badge--vigente {
    background: rgba(22, 163, 74, 0.16);
    color: #15803d;
    border: 1px solid rgba(22, 163, 74, 0.28);
}

.depositos-badge--prescrito {
    background: rgba(220, 38, 38, 0.14);
    color: #b91c1c;
    border: 1px solid rgba(220, 38, 38, 0.28);
}

.depositos-prescrito-row td {
    background: rgba(254, 242, 242, 0.62);
}

.depositos-report-wrap {
    right: 10.5rem;
}

.depositos-template-wrap {
    position: absolute;
    top: 1rem;
    right: 25.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem;
    z-index: 2;
}

.depositos-template-wrap .btn {
    border-radius: 999px;
    font-weight: 700;
}

.depositos-report-wrap .hero-report-panel {
    width: min(470px, calc(100vw - 2rem));
}

.depositos-report-wrap .form-select-sm {
    min-height: 2rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.depositos-report-wrap .hero-report-panel__actions {
    flex-wrap: wrap;
}

.depositos-company,
.depositos-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 0.16rem 0.38rem;
    border-radius: 999px;
    font-weight: 800;
    line-height: 1;
}

.depositos-company {
    background: rgba(249, 115, 22, 0.15);
    color: #9a3412;
}

.depositos-badge--ok {
    background: rgba(22, 163, 74, 0.16);
    color: #15803d;
}

.depositos-badge--pending {
    background: rgba(148, 163, 184, 0.16);
    color: #475569;
}

@media (max-width: 991px) {
    .depositos-hero {
        min-height: 112px;
    }

    .depositos-app .depositos-hero .hero-menu-link {
        position: static;
        display: inline-flex;
        margin-bottom: 0.35rem;
    }

    .depositos-template-wrap,
    .depositos-report-wrap {
        position: static;
        align-items: flex-start;
        justify-content: flex-start;
        margin: 0.3rem 0;
    }
}

.rg77-main {
    max-width: none;
    margin: 0 auto;
}

.rg77-hero {
    min-height: 46px;
    padding: 0.4rem 0.68rem 0.36rem;
    background: linear-gradient(135deg, rgba(154, 52, 18, 0.96), rgba(234, 88, 12, 0.84));
}

.rg77-app .rg77-hero h1 {
    font-size: 1.02rem;
    line-height: 1;
    margin-bottom: 0 !important;
}

.rg77-app .rg77-hero .eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
}

.rg77-app .rg77-hero .hero-menu-link {
    top: 0.35rem;
    right: 0.72rem;
    padding: 0.24rem 0.54rem;
    font-size: 0.72rem;
}

.rg77-form-card,
.rg77-search-card,
.rg77-grid-card {
    padding: 0.42rem 0.58rem;
}

.rg77-form-card.mb-3,
.rg77-search-card.mb-3 {
    margin-bottom: 0.45rem !important;
}

.rg77-readonly .rg77-form-card {
    display: none !important;
}

.rg77-form-grid,
.rg77-search-grid {
    --bs-gutter-x: 0.45rem;
    --bs-gutter-y: 0.26rem;
}

.rg77-app .rg77-form-card .form-label,
.rg77-app .rg77-search-card .form-label {
    margin-bottom: 0.12rem;
    font-size: 0.73rem;
}

.rg77-app .form-control-lg,
.rg77-app .form-select-lg {
    min-height: 1.62rem;
    padding: 0.18rem 0.4rem;
    font-size: 0.74rem;
    border-radius: 0.56rem;
}

.rg77-document-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.35rem;
    align-items: center;
}

.rg77-document-box .btn {
    min-height: 1.62rem;
    border-radius: 0.75rem;
    padding: 0.2rem 0.46rem;
    font-size: 0.72rem;
    white-space: nowrap;
}

.rg77-document-list {
    display: grid;
    gap: 0.24rem;
    margin-top: 0.28rem;
    color: #48607a;
    font-size: 0.72rem;
}

.rg77-document-item {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto auto;
    gap: 0.35rem;
    align-items: center;
    padding: 0.24rem 0.32rem;
    border: 1px solid rgba(71, 85, 105, 0.16);
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.7);
}

.rg77-document-item a {
    overflow: hidden;
    color: #0f3b5b;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rg77-document-item .btn {
    padding: 0.15rem 0.38rem;
    font-size: 0.68rem;
}

.rg77-document-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    padding: 0.18rem 0.4rem;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.14);
    color: #0f3b5b;
    font-weight: 800;
}

.rg77-app .section-title {
    margin-bottom: 0.12rem;
}

.rg77-app .section-title h2 {
    font-size: 0.86rem;
}

.rg77-table {
    width: 100%;
    min-width: 1320px;
    table-layout: fixed;
}

.rg77-top-scroll {
    height: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 999px;
}

.rg77-top-scroll__spacer {
    height: 1px;
}

.rg77-top-scroll::-webkit-scrollbar {
    height: 7px;
}

.rg77-top-scroll::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
}

.rg77-top-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(71, 85, 105, 0.64);
}

.rg77-table th,
.rg77-table td {
    padding: 0.14rem 0.18rem;
    font-size: 0.67rem;
    line-height: 1.08;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    vertical-align: top;
}

.rg77-table thead th {
    font-size: 0.61rem;
}

.rg77-table .seal-table__sort-btn {
    white-space: normal;
    line-height: 1.05;
}

.rg77-action-stack {
    display: grid;
    gap: 0.22rem;
    justify-items: center;
}

.rg77-action-stack .regencia-icon-btn {
    width: 24px;
    height: 24px;
    padding: 0;
    font-size: 0.7rem;
}

.rg77-action-stack .rg77-standard-action-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    font-size: 0.78rem;
}

.rg77-action-stack .rg77-duplicate-action-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    padding: 0;
    color: #9a3412;
    border: 1px solid #9a3412;
    background: transparent;
    box-shadow: none;
}

.rg77-action-stack .rg77-duplicate-action-btn:hover,
.rg77-action-stack .rg77-duplicate-action-btn:focus {
    color: #fff;
    background: #c2410c;
    border-color: #9a3412;
}

.rg77-inline-input,
.rg77-inline-select {
    width: 100%;
    min-width: 0;
    min-height: 23px;
    padding: 0.12rem 0.28rem;
    font-size: 0.66rem;
}

.rg77-table .seal-table__filter-row .form-control,
.rg77-table .seal-table__filter-row .form-select {
    width: 100%;
    min-width: 0;
    min-height: 23px;
    padding: 0.12rem 0.24rem;
    font-size: 0.65rem;
    border-radius: 0.38rem;
}

.rg77-table .seal-table__filter-row th {
    padding-top: 0.18rem;
    padding-bottom: 0.2rem;
}

.rg77-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 0.16rem 0.28rem;
    border-radius: 0;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
}

.rg77-table th:nth-child(1),
.rg77-table td:nth-child(1) {
    width: 36px;
}

.rg77-table th:nth-child(2),
.rg77-table td:nth-child(2) {
    width: 38px;
}

.rg77-table th:nth-child(3),
.rg77-table td:nth-child(3) {
    width: 54px;
}

.rg77-table th:nth-child(4),
.rg77-table td:nth-child(4) {
    width: 78px;
}

.rg77-table th:nth-child(5),
.rg77-table td:nth-child(5),
.rg77-table th:nth-child(6),
.rg77-table td:nth-child(6),
.rg77-table th:nth-child(7),
.rg77-table td:nth-child(7) {
    width: 34px;
}

.rg77-table th:nth-child(8),
.rg77-table td:nth-child(8) {
    width: 54px;
}

.rg77-table th:nth-child(9),
.rg77-table td:nth-child(9),
.rg77-table th:nth-child(10),
.rg77-table td:nth-child(10),
.rg77-table th:nth-child(11),
.rg77-table td:nth-child(11),
.rg77-table th:nth-child(12),
.rg77-table td:nth-child(12) {
    width: 66px;
}

.rg77-table th:nth-child(13),
.rg77-table td:nth-child(13),
.rg77-table th:nth-child(14),
.rg77-table td:nth-child(14) {
    width: 116px;
}

.rg77-table th:nth-child(15),
.rg77-table td:nth-child(15),
.rg77-table th:nth-child(16),
.rg77-table td:nth-child(16) {
    width: 58px;
}

.rg77-table th:nth-child(17),
.rg77-table td:nth-child(17),
.rg77-table th:nth-child(18),
.rg77-table td:nth-child(18) {
    width: 98px;
}

.rg77-table th:nth-child(19),
.rg77-table td:nth-child(19) {
    width: 40px;
}

.rg77-table th:nth-child(20),
.rg77-table td:nth-child(20) {
    width: 92px;
}

.rg77-status--nuevo {
    background: #fff200;
    color: #111827;
}

.rg77-status--prestado {
    background: #008000;
}

.rg77-status--problemas {
    background: #d71920;
}

.rg77-status--eliminados {
    background: #f4b183;
    color: #111827;
}

.rg17-app .rg17-main {
    max-width: 1520px;
    margin: 0 auto;
    padding-top: 0.65rem !important;
    padding-bottom: 0.8rem !important;
}

.rg17-form-card,
.rg17-search-card,
.rg17-grid-card {
    padding: 0.85rem 0.95rem;
}

.rg17-form-grid {
    --bs-gutter-x: 0.65rem;
    --bs-gutter-y: 0.4rem;
    row-gap: 0;
}

.rg17-app .seal-form-card .form-label,
.rg17-app .seal-search-card .form-label {
    margin-bottom: 0.16rem;
    font-size: 0.75rem;
}

.rg17-app .seal-form-card .form-control-lg,
.rg17-app .seal-form-card .form-select-lg,
.rg17-app .seal-search-card .form-control-lg,
.rg17-app .seal-search-card .form-select-lg {
    min-height: 2.35rem;
    padding: 0.42rem 0.72rem;
    font-size: 0.9rem;
    border-radius: 0.95rem;
}

.rg17-textarea {
    min-height: 4.05rem;
}

.rg17-app .seal-form-card .rg17-autogrow-textarea {
    min-height: 2.35rem;
    height: 2.35rem;
    overflow: hidden;
    resize: none;
    line-height: 1.25;
}

.rg17-app .regencia-state-group {
    gap: 0.36rem;
    width: 100%;
}

.rg17-app .regencia-state-option {
    flex: 1 1 0;
    min-width: 5.1rem;
}

.rg17-app .regencia-state-option__chip {
    width: 100%;
}

.rg17-chip {
    min-width: 0;
    padding: 0.5rem 0.72rem;
    font-size: 0.77rem;
}

.rg17-chip--producto {
    color: #0f766e;
    background: rgba(20, 184, 166, 0.12);
}

.rg17-chip--servicio {
    color: #0369a1;
    background: rgba(14, 165, 233, 0.12);
}

.rg17-chip--aprobada {
    color: #166534;
    background: rgba(34, 197, 94, 0.14);
}

.rg17-chip--rechazada {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.12);
}

.rg17-chip--pospuesta {
    color: #7c2d12;
    background: rgba(249, 115, 22, 0.14);
}

.rg17-detail-card {
    margin-top: 0;
    padding: 0.6rem 0.65rem 0.45rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.24);
}

.rg17-detail-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.4rem;
}

.rg17-detail-card__actions {
    display: flex;
    align-items: flex-end;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.rg17-detail-card__header h3 {
    margin: 0;
    font-size: 0.94rem;
    font-weight: 800;
    color: #0f172a;
}

.rg17-tax-picker {
    min-width: 8.35rem;
}

.rg17-tax-picker .form-label {
    display: block;
    margin-bottom: 0.15rem !important;
    font-size: 0.67rem;
}

.rg17-items-wrap {
    overflow-x: visible;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(255, 255, 255, 0.94);
}

.rg17-item-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    margin-bottom: 0;
}

.rg17-item-table thead th {
    padding: 0.42rem 0.32rem;
    background: #475569;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.08;
    white-space: nowrap;
}

.rg17-item-table tbody td {
    padding: 0.26rem;
    vertical-align: top;
    background: rgba(255, 255, 255, 0.98);
}

.rg17-item-table .form-control,
.rg17-item-table .form-select {
    min-height: 1.88rem;
    padding: 0.26rem 0.38rem;
    font-size: 0.78rem;
    border-radius: 0.75rem;
}

.rg17-item-total {
    background: #eef2ff !important;
    font-weight: 700;
}

.rg17-item-description {
    width: 100%;
    min-width: 0;
    min-height: 2.05rem;
    resize: vertical;
    overflow: hidden;
    line-height: 1.25;
    white-space: pre-wrap;
}

.rg17-item-table__small {
    min-width: 0;
}

.rg17-item-table__tiny {
    min-width: 0;
    text-align: center;
}

.rg17-item-table__action {
    width: 2.85rem;
}

.rg17-item-table__line {
    font-weight: 800;
    text-align: center;
    color: #0f172a;
}

.rg17-item-remove {
    min-width: 1.7rem;
    padding-inline: 0.28rem;
}

.rg17-item-table th:nth-child(1),
.rg17-item-table td:nth-child(1) {
    width: 3.1%;
}

.rg17-item-table th:nth-child(2),
.rg17-item-table td:nth-child(2) {
    width: 14.8%;
}

.rg17-item-table th:nth-child(3),
.rg17-item-table td:nth-child(3) {
    width: 7.2%;
}

.rg17-item-table th:nth-child(4),
.rg17-item-table td:nth-child(4) {
    width: 6.4%;
}

.rg17-item-table th:nth-child(5),
.rg17-item-table td:nth-child(5) {
    width: 8.3%;
}

.rg17-item-table th:nth-child(6),
.rg17-item-table td:nth-child(6) {
    width: 6.6%;
}

.rg17-item-table th:nth-child(n+7):nth-child(-n+13),
.rg17-item-table td:nth-child(n+7):nth-child(-n+13) {
    width: 4.5%;
}

.rg17-item-table th:nth-child(14),
.rg17-item-table td:nth-child(14) {
    width: 10.8%;
}

.rg17-item-table th:nth-child(15),
.rg17-item-table td:nth-child(15) {
    width: 6.1%;
}

.rg17-item-table th:nth-child(16),
.rg17-item-table td:nth-child(16) {
    width: 8.5%;
}

.rg17-item-table th:nth-child(17),
.rg17-item-table td:nth-child(17) {
    width: 2.6%;
}

.rg17-delete-btn {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

.rg17-delete-btn span {
    display: inline-block;
    transform: translateY(-0.02rem);
}

.rg17-metrics {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.36rem;
    margin-top: 0.38rem;
}

.rg17-metric {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.54rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: #334155;
    font-size: 0.74rem;
    font-weight: 700;
}

.rg17-metric strong {
    color: #0f172a;
}

.rg17-metric--accent {
    background: rgba(8, 145, 178, 0.14);
}

.rg17-detail-legend {
    display: grid;
    gap: 0.12rem;
    margin-top: 0.42rem;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.36;
}

.rg17-oc-panel {
    padding: 0.62rem 0.72rem 0.72rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.24);
}

.rg17-oc-panel summary {
    cursor: pointer;
    list-style: none;
    font-size: 0.84rem;
    font-weight: 800;
    color: #0f172a;
}

.rg17-oc-panel summary::-webkit-details-marker {
    display: none;
}

.rg17-oc-panel summary::after {
    content: "▾";
    float: right;
    color: #475569;
}

.rg17-oc-panel[open] summary::after {
    content: "▴";
}

.rg17-readonly-badge {
    display: inline-flex;
    margin-left: 0.55rem;
    padding: 0.14rem 0.48rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
    color: #475569;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.rg17-readonly-badge.d-none {
    display: none !important;
}

.rg17-confirm-box {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    width: 100%;
    min-height: 2.35rem;
    padding: 0.42rem 0.72rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
}

.rg17-facturas-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.42rem;
}

.rg17-facturas-summary span {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    padding: 0.32rem 0.55rem;
    border-radius: 999px;
    background: rgba(241, 245, 249, 0.95);
    font-size: 0.78rem;
    font-weight: 800;
}

.rg17-facturas-card {
    padding: 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.62);
    overflow: visible;
}

.rg17-facturas-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.35rem;
}

.rg17-facturas-card h4 {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 900;
}

.rg17-facturas-table {
    min-width: 1120px;
}

.rg17-facturas-card .table-responsive {
    overflow: visible;
}

.rg17-facturas-table th {
    padding: 0.34rem 0.4rem;
    background: #475569;
    color: #fff;
    font-size: 0.72rem;
    text-transform: uppercase;
}

.rg17-facturas-table td {
    padding: 0.22rem 0.28rem;
    vertical-align: top;
}

.rg17-facturas-table .form-control,
.rg17-facturas-table .form-select {
    min-height: 1.92rem;
    padding: 0.25rem 0.45rem;
    font-size: 0.78rem;
}

.rg17-factura-comentarios-cell {
    min-width: 360px;
    width: 42%;
}

.rg17-factura-comentarios-combo {
    position: relative;
}

.rg17-facturas-table .rg17-factura-comentarios {
    min-height: 2.1rem;
    line-height: 1.25;
    overflow: hidden;
    padding-right: 2.1rem;
    resize: none;
}

.rg17-factura-comentarios-toggle {
    position: absolute;
    top: 0.2rem;
    right: 0.25rem;
    width: 1.45rem;
    height: 1.45rem;
    border: 0;
    border-left: 1px solid rgba(148, 163, 184, 0.35);
    background: transparent;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
}

.rg17-factura-comentarios-menu {
    display: none;
    position: absolute;
    z-index: 30;
    right: 0;
    bottom: calc(100% + 0.22rem);
    min-width: 260px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}

.rg17-factura-comentarios-combo.is-open .rg17-factura-comentarios-menu {
    display: block;
}

.rg17-factura-comentarios-menu button {
    display: block;
    width: 100%;
    border: 0;
    background: #fff;
    padding: 0.45rem 0.65rem;
    color: #0f172a;
    font-size: 0.78rem;
    text-align: left;
}

.rg17-factura-comentarios-menu button:hover {
    background: #eef6ff;
    color: #0d6efd;
}

.rg17-document-status {
    margin-top: 0.25rem;
    font-size: 0.78rem;
    font-weight: 800;
    color: #475569;
}

.rg17-document-status a {
    color: #0f766e;
    text-decoration: none;
}

.rg17-document-status a:hover {
    text-decoration: underline;
}

.rg17-document-list {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.rg17-document-item {
    align-items: center;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(15, 118, 110, 0.16);
    border-radius: 12px;
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    padding: 0.38rem 0.5rem;
}

.rg17-document-item a {
    min-width: 0;
    overflow-wrap: anywhere;
}

.rg17-document-item .btn {
    flex: 0 0 auto;
    font-size: 0.72rem;
    padding: 0.16rem 0.45rem;
}

.rg17-consulta-lines {
    display: grid;
    gap: 16px;
}

.rg17-consulta-line-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.rg17-consulta-line,
.rg17-consulta-factura {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 35, 65, 0.08);
    border-radius: 14px;
    padding: 10px 12px;
}

.rg17-consulta-line span,
.rg17-consulta-section h3 {
    color: #53627a;
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.rg17-consulta-line strong {
    color: #061832;
    display: block;
    font-size: 1rem;
    margin-top: 2px;
}

.rg17-consulta-section {
    background: rgba(247, 250, 255, 0.78);
    border: 1px solid rgba(15, 35, 65, 0.08);
    border-radius: 18px;
    padding: 14px;
}

.rg17-consulta-section h3 {
    margin: 0 0 10px;
}

.rg17-consulta-facturas {
    display: grid;
    gap: 8px;
}

.rg17-consulta-factura {
    align-items: center;
    display: grid;
    grid-template-columns: minmax(120px, 1fr) 120px minmax(110px, auto);
    gap: 8px;
}

.rg17-consulta-factura strong {
    text-align: right;
}

@media (max-width: 640px) {
    .rg17-consulta-factura {
        grid-template-columns: 1fr;
    }

    .rg17-consulta-factura strong {
        text-align: left;
    }
}

.rg17-oc-textarea {
    min-height: 3.25rem;
}

.rg17-oc-number-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.rg17-oc-number-group .btn {
    border-top-right-radius: 0.95rem;
    border-bottom-right-radius: 0.95rem;
    font-size: 0.76rem;
    font-weight: 800;
}

.rg17-table th,
.rg17-table td {
    white-space: nowrap;
}

.rg17-table .rg17-actions-col,
.rg17-table .rg17-actions-cell {
    width: 5.9rem;
    min-width: 5.9rem;
    max-width: 5.9rem;
}

.rg17-table .regencia-action-stack {
    flex-direction: row;
    justify-content: center;
}

.rg17-clear-filters-btn {
    width: 100%;
    padding: 0.24rem 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
}

.rg17-table .rg17-provider-col,
.rg17-table .rg17-provider-cell {
    width: 8.5rem;
    min-width: 8.5rem;
    max-width: 8.5rem;
}

.rg17-table .rg17-provider-cell {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.18;
}

.rg17-table .rg17-provider-col .form-control {
    min-width: 7.25rem;
}

.rg17-status {
    min-width: 8.75rem;
    justify-content: center;
}

.rg17-status--aprobada {
    background: rgba(34, 197, 94, 0.12);
    color: #166534;
}

.rg17-status--rechazada {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.rg17-status--pospuesta {
    background: rgba(249, 115, 22, 0.14);
    color: #9a3412;
}

.rg17-status--sin-estado {
    background: rgba(148, 163, 184, 0.16);
    color: #475569;
}

.rg17-estado-select,
.rg17-estado-inline,
.rg17-tramite-inline {
    font-weight: 800;
}

.rg17-estado-inline,
.rg17-tramite-inline {
    min-height: auto;
    padding: 0.35rem 1.75rem 0.35rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    line-height: 1.2;
}

.rg17-estado-select--pendiente,
.rg17-estado-inline--pendiente {
    background-color: #fff7ed;
    border-color: #fdba74;
    color: #9a3412;
}

.rg17-estado-select--completado,
.rg17-estado-inline--completado {
    background-color: #ecfdf5;
    border-color: #86efac;
    color: #166534;
}

.rg17-estado-select--cancelado,
.rg17-estado-inline--cancelado {
    background-color: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
    color: #b91c1c;
}

.rg17-tramite-inline--aprobada {
    background-color: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
    color: #166534;
}

.rg17-tramite-inline--rechazada {
    background-color: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
    color: #b91c1c;
}

.rg17-tramite-inline--pospuesta {
    background-color: rgba(249, 115, 22, 0.14);
    border-color: rgba(249, 115, 22, 0.35);
    color: #9a3412;
}

.rg17-tramite-inline--sin-estado {
    background-color: rgba(148, 163, 184, 0.16);
    border-color: rgba(148, 163, 184, 0.35);
    color: #475569;
}

.rg17-estado-badge {
    min-width: 7.5rem;
    justify-content: center;
}

.rg17-estado-badge--pendiente {
    background: rgba(249, 115, 22, 0.16);
    color: #9a3412;
}

.rg17-estado-badge--completado {
    background: rgba(34, 197, 94, 0.16);
    color: #166534;
}

.rg17-estado-badge--cancelado {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #b91c1c;
}

body.ticket-app.rg17-app .hero-shell--compact {
    padding: 0.78rem 1rem 0.62rem;
    background: linear-gradient(135deg, rgba(154, 52, 18, 0.96), rgba(234, 88, 12, 0.84));
}

body.ticket-app.rg17-app .hero-shell--compact h1 {
    font-size: 1.24rem;
    line-height: 1.06;
    margin-bottom: 0.12rem !important;
}

body.ticket-app.rg17-app .hero-shell--compact .ticket-meta {
    font-size: 0.88rem;
}

body.ticket-app.rg17-app .hero-shell--compact .hero-menu-link {
    top: 0.58rem;
    right: 0.7rem;
    padding: 0.32rem 0.68rem;
    font-size: 0.78rem;
}

.rg17-app .section-title h2 {
    margin-bottom: 0;
    font-size: 1.32rem;
}

.rg17-app .section-kicker,
.rg17-app .section-title .section-kicker {
    font-size: 0.64rem;
}

.rg17-app .seal-form-card__header {
    gap: 0.45rem;
    margin-bottom: 0.38rem;
}

.rg17-app .seal-form-card__header-actions {
    gap: 0.36rem;
}

.rg17-app .section-title {
    margin-bottom: 0.25rem;
}

.rg17-app .seal-form-card__header-actions .btn,
.rg17-app .seal-search-card .btn,
.rg17-app .rg17-detail-card__actions .btn {
    padding: 0.34rem 0.68rem;
    font-size: 0.8rem;
}

.rg17-app .rg17-search-card .row {
    --bs-gutter-x: 0.65rem;
    --bs-gutter-y: 0.42rem;
}

.rg17-app .rg17-search-card .section-title,
.rg17-app .rg17-grid-card .section-title {
    margin-bottom: 0.22rem;
}

@media (max-width: 1399.98px) {
    .rg17-app .rg17-main {
        max-width: 100%;
    }

    .rg17-form-card,
    .rg17-search-card,
    .rg17-grid-card {
        padding: 0.72rem;
    }

    .rg17-app .seal-form-card__header {
        align-items: flex-start;
    }

    .rg17-app .seal-form-card__header-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .rg17-app .seal-form-card__header-actions .btn {
        padding-inline: 0.56rem;
        font-size: 0.76rem;
    }
}

@media (max-width: 991.98px) {
    .rg17-items-wrap {
        overflow-x: auto;
    }

    .rg17-item-table {
        min-width: 1080px;
    }

    .rg17-detail-card__header {
        align-items: stretch;
        flex-direction: column;
    }

    .rg17-detail-card__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    body.ticket-app.rg17-app .hero-shell--compact {
        padding: 3rem 0.95rem 0.85rem;
    }

    .rg17-app .seal-form-card__header {
        flex-direction: column;
    }

    .rg17-app .seal-form-card__header-actions {
        justify-content: flex-start;
    }
}

.seal-form-card,
.seal-search-card,
.seal-grid-card {
    padding: 1.35rem;
}

.seal-form-card__header {
    align-items: center;
    flex-wrap: nowrap;
}

.seal-form-card__header-actions {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0.45rem;
    flex: 0 0 auto;
}

.seal-form-card__header-actions .btn {
    min-width: 0;
    padding: 0.4rem 0.75rem;
    white-space: nowrap;
}

.seal-form-card__header > div:first-child {
    min-width: 0;
    flex: 1 1 auto;
}

.seal-form-card__header h2 {
    margin-bottom: 0;
}

.seal-form-card__header h2,
.seal-search-card .section-title h2,
.seal-grid-card .section-title h2 {
    font-size: 1.22rem;
}

.seal-form-card .form-label,
.seal-search-card .form-label {
    margin-bottom: 0.3rem;
    font-size: 0.92rem;
}

.seal-form-card .form-control-lg,
.seal-form-card .form-select-lg,
.seal-search-card .form-control-lg,
.seal-search-card .form-select-lg {
    padding: 0.68rem 0.85rem;
    font-size: 0.98rem;
}

.seal-form-textarea {
    min-height: 118px;
    resize: vertical;
}

.seal-status-search-card,
.seal-status-results-card {
    padding: 1.35rem;
}

.seal-status-page .container.py-4.py-lg-5,
.regencia-status-page .container.py-4.py-lg-5 {
    padding-top: 0.8rem !important;
    padding-bottom: 1rem !important;
}

.seal-status-page .status-links-bar,
.regencia-status-page .status-links-bar {
    gap: 0.5rem;
    margin-bottom: 0.8rem !important;
}

.seal-status-page .status-links-bar .btn,
.regencia-status-page .status-links-bar .btn {
    padding: 0.34rem 0.72rem;
    font-size: 0.8rem;
}

.seal-status-page .seal-status-search-card,
.seal-status-page .seal-status-results-card,
.regencia-status-page .seal-status-search-card,
.regencia-status-page .seal-status-results-card {
    padding: 0.9rem 1rem;
    border-radius: 24px;
}

.seal-status-page .seal-status-search-card form,
.regencia-status-page .seal-status-search-card form {
    --bs-gutter-x: 0.7rem;
    --bs-gutter-y: 0.45rem;
}

.seal-status-page .seal-status-search-card .form-label,
.regencia-status-page .seal-status-search-card .form-label {
    margin-bottom: 0.22rem;
    font-size: 0.84rem;
}

.seal-status-page .seal-status-search-card .form-control-lg,
.seal-status-page .seal-status-search-card .btn-lg,
.regencia-status-page .seal-status-search-card .form-control-lg,
.regencia-status-page .seal-status-search-card .btn-lg {
    min-height: calc(1.5em + 0.9rem + 2px);
    padding: 0.45rem 0.78rem;
    font-size: 0.92rem;
}

.seal-status-page .seal-status-results-card .section-title,
.regencia-status-page .seal-status-results-card .section-title {
    margin-bottom: 0.15rem;
}

.seal-status-page .seal-status-results-card .section-title h2,
.regencia-status-page .seal-status-results-card .section-title h2 {
    font-size: 1.18rem;
}

.seal-status-page .seal-status-results-card .section-kicker,
.regencia-status-page .seal-status-results-card .section-kicker {
    font-size: 0.72rem;
}

.status-links-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.seal-status-list {
    display: grid;
    gap: 1rem;
}

.seal-status-page .seal-status-list,
.regencia-status-page .seal-status-list {
    gap: 0.7rem;
    margin-top: 0.55rem !important;
}

.seal-status-card {
    padding: 1rem 1.1rem;
    border-radius: 22px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
}

.seal-status-page .seal-status-card,
.regencia-status-page .seal-status-card {
    padding: 0.78rem 0.92rem;
    border-radius: 18px;
}

.seal-status-card__line {
    display: grid;
    gap: 0.2rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.seal-status-page .seal-status-card__line,
.regencia-status-page .seal-status-card__line {
    grid-template-columns: minmax(128px, 180px) minmax(0, 1fr);
    align-items: center;
    gap: 0.35rem 0.75rem;
    padding: 0.36rem 0;
}

.seal-status-card__line:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.seal-status-card__line:first-child {
    padding-top: 0;
}

.seal-status-card__line > span {
    font-size: 0.82rem;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.seal-status-page .seal-status-card__line > span,
.regencia-status-page .seal-status-card__line > span {
    font-size: 0.74rem;
    line-height: 1.2;
}

.seal-status-card__line strong {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.seal-status-page .seal-status-card__line strong,
.seal-status-page .seal-status-card__line .seal-status,
.regencia-status-page .seal-status-card__line strong,
.regencia-status-page .seal-status-card__line .seal-status {
    font-size: 0.92rem;
    line-height: 1.28;
}

.seal-status-page .empty-state,
.regencia-status-page .empty-state {
    padding: 0.95rem;
    border-radius: 16px;
    font-size: 0.92rem;
}

.seal-table-wrap {
    overflow-x: auto;
}

.table-top-scroll {
    height: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 999px;
}

.table-top-scroll__spacer {
    height: 1px;
}

.table-top-scroll::-webkit-scrollbar {
    height: 8px;
}

.table-top-scroll::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
}

.table-top-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(71, 85, 105, 0.64);
}

.seal-table {
    min-width: 1100px;
}

.seal-table--public {
    min-width: 620px;
}

.seal-table__action-col,
.seal-table__action-cell {
    width: 1%;
    min-width: 56px;
    white-space: nowrap;
}

.seal-table__action-cell {
    padding-left: 0.45rem;
    padding-right: 0.45rem;
}

.table-icon-btn {
    width: 2rem;
    height: 2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.table-icon-btn svg {
    width: 0.95rem;
    height: 0.95rem;
    fill: currentColor;
}

.app-view-btn {
    background: #fff !important;
    color: #0d6efd !important;
    border: 1px solid #0d6efd !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.app-view-icon {
    width: 1.05rem;
    height: 1.05rem;
    display: inline-block;
    flex: 0 0 auto;
    color: #0d6efd !important;
    fill: #0d6efd !important;
    vertical-align: -0.14rem;
}

.app-view-icon path {
    fill: #0d6efd !important;
}

.app-view-btn.table-icon-btn,
.app-view-btn.row-icon-btn,
.app-view-btn.regencia-icon-btn,
.app-view-btn.action-mini {
    min-width: 2rem;
    width: 2rem;
    padding-left: 0;
    padding-right: 0;
    gap: 0;
}

.seal-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #475569;
    color: #fff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: none;
    white-space: nowrap;
}

.seal-table__sort-btn {
    width: 100%;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 800;
    text-transform: inherit;
    letter-spacing: inherit;
    text-align: left;
    padding: 0;
}

.seal-table__filter-row th {
    background: #64748b;
    padding: 0.45rem 0.35rem;
    top: 38px;
}

.seal-table__filter-row .form-control,
.seal-table__filter-row .form-select {
    min-width: 110px;
    padding: 0.35rem 0.5rem;
    border-radius: 10px;
    font-size: 0.78rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.seal-table__filter-cell--date-list {
    position: relative;
}

.seal-date-filter {
    position: relative;
    min-width: 160px;
}

.seal-date-filter__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    background: #fff;
    color: var(--text-dark);
    cursor: pointer;
}

.seal-date-filter__toggle::after {
    content: "▾";
    margin-left: 0.5rem;
    color: var(--text-soft);
    font-size: 0.72rem;
}

.seal-date-filter__panel {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    z-index: 20;
    width: 210px;
    max-height: 220px;
    overflow: auto;
    padding: 0.45rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18);
}

.seal-date-filter__actions {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.45rem;
}

.seal-date-filter__actions .btn {
    padding: 0.2rem 0.45rem;
    font-size: 0.7rem;
}

.seal-date-filter__options {
    display: grid;
    gap: 0.2rem;
}

.seal-date-filter__option {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.15rem 0.1rem;
    color: var(--text-dark);
    font-size: 0.8rem;
    cursor: pointer;
}

.seal-date-filter__option input {
    margin: 0;
}

.seal-date-filter__empty {
    color: var(--text-soft);
    font-size: 0.78rem;
    padding: 0.15rem 0.1rem;
}

.seal-table__date-input {
    min-width: 210px !important;
}

.seal-table tbody td {
    font-size: 0.92rem;
    vertical-align: middle;
}

.seal-table tbody tr {
    cursor: default;
}

.seal-table tbody tr:hover {
    background: rgba(14, 165, 233, 0.06);
}

.seal-table__editable-row {
    cursor: pointer !important;
}

.seal-table__observations {
    min-width: 220px;
    max-width: 320px;
    white-space: normal;
    color: var(--text-soft);
}

.seal-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.seal-status--imprenta-pendiente {
    background: #16a34a;
    color: #fff;
}

.seal-status--imprenta {
    background: #111827;
    color: #fff;
}

.seal-status--entrega-pendiente {
    background: #dc2626;
    color: #fff;
}

.seal-status--entregado {
    background: #fbbf24;
    color: #7c2d12;
}

.seal-status--mensajeria {
    background: #0ea5e9;
    color: #fff;
}

.carnet-status--produccion {
    background: #2f855a;
    color: #fff;
}

.carnet-status--inspectoria {
    background: #7c3aed;
    color: #fff;
}

.carnet-status--entregado {
    background: #fbbf24;
    color: #7c2d12;
}

.carnet-status--mensajeria {
    background: #f97316;
    color: #fff;
}

.carnet-status--falta-info {
    background: #0ea5e9;
    color: #fff;
}

.carnet-status--pendiente {
    background: #991b1b;
    color: #fff;
}

.carnet-status--vencido {
    background: #dc2626;
    color: #fff;
}

.hero-actions {
    display: flex;
    align-items: center;
}

.hero-menu-link {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(251, 146, 60, 0.7);
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.28);
    z-index: 2;
}

.hero-link-group {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
}

.hero-link-group .hero-menu-link {
    position: static;
    margin: 0;
}

.hero-report-wrap {
    position: absolute;
    top: 1rem;
    right: 11rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.45rem;
    z-index: 2;
}

.hero-report-trigger {
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    font-size: 0.84rem;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.38);
    border-color: rgba(255, 255, 255, 0.48);
    color: #fff;
}

.hero-report-trigger:hover,
.hero-report-trigger:focus {
    color: #fff;
    background: rgba(15, 23, 42, 0.62);
    border-color: rgba(255, 255, 255, 0.68);
}

.hero-report-panel {
    width: min(360px, calc(100vw - 2rem));
    padding: 0.72rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.32);
}

.hero-report-panel__title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #fff;
}

.hero-report-panel__hint {
    margin: 0.24rem 0 0.55rem;
    color: rgba(226, 232, 240, 0.82);
    font-size: 0.74rem;
    line-height: 1.32;
}

.hero-report-panel .form-label {
    margin-bottom: 0.18rem;
    font-size: 0.74rem;
    color: rgba(226, 232, 240, 0.84);
}

.hero-report-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.hero-report-panel .form-control {
    padding: 0.38rem 0.56rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.hero-report-panel__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.38rem;
    margin-top: 0.55rem;
}

.hero-report-panel__actions--stacked {
    flex-wrap: wrap;
}

.hero-menu-link:hover,
.hero-menu-link:focus {
    color: #fff;
    background: linear-gradient(135deg, #ea580c, #f97316);
    border-color: rgba(253, 186, 116, 0.92);
}

.operator-toolbar {
    position: absolute;
    left: 1rem;
    top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.5);
    color: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    z-index: 2;
}

.operator-toolbar__label {
    font-size: 0.82rem;
    white-space: nowrap;
}

.operator-toolbar__label strong {
    color: #fff;
}

.operator-toolbar__button {
    border: none;
    background: rgba(249, 115, 22, 0.18);
    color: #fed7aa;
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    font-size: 0.76rem;
    font-weight: 700;
}

.operator-session-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
}

.operator-session-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.72);
}

.operator-session-modal__dialog {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.operator-session-modal__card {
    width: min(100%, 460px);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--text-dark);
    padding: 1.75rem;
    box-shadow: 0 28px 70px rgba(2, 6, 23, 0.35);
}

.operator-session-modal__eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.74rem;
    color: var(--accent-dark);
    font-weight: 700;
}

.operator-session-modal__card h2 {
    margin: 0 0 0.65rem;
    font-size: 1.55rem;
    font-weight: 800;
}

.operator-session-modal__text {
    margin: 0 0 1rem;
    color: var(--text-soft);
}

.operator-session-modal__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.eyebrow,
.section-kicker {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    color: rgba(226, 232, 240, 0.72);
}

.glass-card .section-kicker,
.rg17-detail-card .section-kicker,
.investment-card .section-kicker,
.admin-catalog-card .section-kicker,
.admin-provider-card .section-kicker,
.access-page .glass-card .section-kicker {
    color: #334155;
    font-weight: 800;
    opacity: 1;
}

.glass-card,
.queue-panel {
    border-radius: 28px;
    border: 1px solid var(--line);
    box-shadow: 0 30px 60px rgba(2, 6, 23, 0.28);
}

.glass-card {
    background: var(--panel);
    color: var(--text-dark);
    padding: 1.75rem;
}

body.regencia-app details.regencia-constancia-card.glass-card {
    padding: 0 !important;
    border-radius: 18px;
    box-shadow: 0 14px 32px rgba(2, 6, 23, 0.16);
}

body.regencia-app details.regencia-constancia-card:not([open]) {
    margin-bottom: 0.45rem !important;
}

body.regencia-app details.regencia-constancia-card:not([open]) .regencia-constancia-summary {
    min-height: 42px;
    padding: 0.34rem 0.72rem;
}

body.regencia-app details.regencia-constancia-card:not([open]) .section-kicker {
    display: none;
}

body.regencia-app details.regencia-constancia-card:not([open]) .regencia-constancia-summary strong {
    font-size: 0.9rem;
}

body.regencia-app details.regencia-constancia-card:not([open]) .regencia-constancia-summary__hint {
    font-size: 0.72rem;
}

.queue-panel {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.86));
    padding: 1.75rem;
}

.section-title,
.queue-panel__header,
.ticket-strip,
.print-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.section-title h2,
.queue-panel h2 {
    margin: 0.25rem 0 0;
    font-size: 1.6rem;
}

.status-pill,
.mini-status {
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.12);
    color: var(--accent-dark);
    font-weight: 700;
    white-space: nowrap;
}

.ticket-summary {
    display: grid;
    gap: 0.3rem;
    margin-top: 1rem;
    width: 100%;
    max-width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow-x: auto;
}

.ticket-summary__row {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.9rem;
    align-items: center;
    min-width: max-content;
}

.ticket-summary__row--quantity {
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ticket-summary__row span {
    color: rgba(226, 232, 240, 0.82);
    font-size: 0.86rem;
    white-space: nowrap;
    flex: 0 0 auto;
}

.ticket-summary__row b,
.ticket-summary__label {
    font-weight: 700;
    color: rgba(226, 232, 240, 0.72);
}

.ticket-summary__label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    min-width: 70px;
}

.ticket-summary__row strong {
    margin-left: 0.25rem;
    color: #fff;
    font-size: 1rem;
}

.btn-accent {
    border: none;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #fb923c);
    box-shadow: 0 16px 30px rgba(249, 115, 22, 0.28);
}

.btn-accent:hover,
.btn-accent:focus {
    color: #fff;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
}

.form-control,
.form-select {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    padding: 0.85rem 1rem;
}

.procedure-selector {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem 1rem;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.procedure-selector__option {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text-dark);
    font-size: 0.98rem;
    cursor: pointer;
}

.procedure-selector__checkbox {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    accent-color: var(--accent-dark);
}

.procedure-selector__other {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
}

.procedure-selector__other-input {
    min-width: 0;
    padding: 0.65rem 0.85rem;
}

.ticket-preview {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 237, 0.95));
}

.ticket-meta {
    color: var(--text-soft);
}

.ticket-paper {
    padding: 1.5rem;
    border-radius: 24px;
    background: #fff;
    border: 1px dashed rgba(15, 23, 42, 0.22);
}

.ticket-paper--receipt {
    max-width: 360px;
    margin: 0 auto;
    text-align: center;
}

.ticket-paper--agremiado {
    max-width: 340px;
}

.ticket-receipt-title {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--text-dark);
}

.ticket-receipt-code {
    margin-top: 0.35rem;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
}

.ticket-receipt-qr-wrap {
    display: flex;
    justify-content: center;
}

.ticket-receipt-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.35);
    text-align: left;
}

.ticket-paper--agremiado .ticket-receipt-name {
    font-size: 1rem;
}

.ticket-paper--agremiado .ticket-receipt-status {
    font-size: 0.92rem;
}

.ticket-paper--agremiado .ticket-receipt-line {
    font-size: 0.86rem;
    line-height: 1.36;
    margin-top: 0.3rem;
}

.print-only {
    display: none;
}

.ticket-print-notes {
    text-align: left;
    margin-bottom: 1rem;
}

.ticket-print-notes--footer {
    margin-top: 1rem;
    margin-bottom: 0;
    padding-top: 0.85rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.35);
}

.ticket-print-note-heading {
    margin-bottom: 0.4rem;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.ticket-print-note-line {
    margin-bottom: 0.35rem;
    color: var(--text-dark);
    font-size: 0.82rem;
    line-height: 1.4;
}

.ticket-receipt-name {
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
}

.ticket-receipt-status {
    margin-top: 0.25rem;
    color: var(--accent-dark);
    font-size: 0.95rem;
    font-weight: 700;
}

.ticket-receipt-line {
    margin-top: 0.35rem;
    color: var(--text-soft);
    font-size: 0.88rem;
    line-height: 1.45;
    word-break: break-word;
}

.qr-image {
    width: 200px;
    height: 200px;
    border-radius: 24px;
    background: #fff;
    padding: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.qr-image--receipt {
    width: 220px;
    height: 220px;
}

.ticket-paper--agremiado .qr-image--receipt {
    width: 205px;
    height: 205px;
}

.current-ticket-card {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(14, 165, 233, 0.2), rgba(249, 115, 22, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.stack-list {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.queue-item,
.status-row {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.glass-card .queue-item,
.glass-card .status-row {
    background: #fff;
}

.queue-item__header,
.status-row__header,
.queue-item__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.queue-item__header > :first-child,
.status-row__header > :first-child {
    min-width: 0;
    flex: 1 1 auto;
}

.queue-item__header strong,
.status-row__header strong,
.queue-item__header div,
.status-row__header div,
.queue-item__meta,
.status-row__meta,
.ticket-detail-line {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.queue-item__actions {
    flex-wrap: wrap;
}

.queue-item__actions .btn {
    flex: 0 1 auto;
    max-width: 100%;
}

.status-row .badge-status,
.queue-item .badge-status {
    flex: 0 1 auto;
    max-width: 100%;
    text-align: center;
    white-space: normal;
}

.queue-item__meta {
    margin-top: 0.55rem;
    color: rgba(226, 232, 240, 0.8);
}

.glass-card .queue-item__meta,
.glass-card .status-row__meta {
    color: var(--text-soft);
}

.ticket-detail-list {
    display: grid;
    gap: 0.2rem;
}

.ticket-detail-line {
    font-size: 0.92rem;
    color: var(--text-soft);
}

.ticket-observation-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-soft);
}

.ticket-observation-input {
    min-height: 72px;
    resize: vertical;
}

.info-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 1rem;
}

.info-item {
    padding: 1rem;
    border-radius: 20px;
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.info-item span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-soft);
}

.info-item strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.05rem;
}

.empty-state {
    padding: 1.2rem;
    border-radius: 20px;
    border: 1px dashed rgba(148, 163, 184, 0.28);
    text-align: center;
    color: rgba(226, 232, 240, 0.82);
}

.glass-card .empty-state {
    color: var(--text-soft);
}

.badge-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.8rem;
}

.badge-status--atendiendo {
    background: rgba(56, 189, 248, 0.18);
    color: #0ea5e9;
}

.badge-status--por-completar {
    background: rgba(245, 158, 11, 0.18);
    color: #b45309;
}

.badge-status--completado {
    background: rgba(22, 163, 74, 0.16);
    color: #15803d;
}

.badge-status--anulado {
    background: rgba(220, 38, 38, 0.16);
    color: #b91c1c;
}

@media (max-width: 991px) {
    .hero-shell,
    .section-title,
    .queue-panel__header,
    .ticket-strip,
    .print-header,
    .queue-item__header,
    .status-row__header,
    .queue-item__actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-menu-link {
        position: static;
        align-self: flex-start;
        margin-bottom: 0.5rem;
    }

    .hero-link-group {
        position: static;
        align-self: flex-start;
        flex-wrap: wrap;
        margin-bottom: 0.5rem;
    }

    .hero-link-group .hero-menu-link {
        margin-bottom: 0;
    }

    .hero-report-wrap {
        position: static;
        align-items: flex-start;
        width: 100%;
    }

    .hero-report-panel {
        width: min(420px, 100%);
    }

    .operator-toolbar {
        position: static;
        align-self: flex-start;
        margin-bottom: 0.5rem;
        flex-wrap: wrap;
    }

    .seal-form-card__header {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .seal-form-card__header-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .ticket-summary__row {
        display: grid;
        min-width: 0;
        gap: 0.25rem;
    }

    .procedure-selector {
        grid-template-columns: 1fr;
    }

    .procedure-selector__other {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }
}

@media (max-width: 575.98px) {
    .seal-status-page .seal-status-card__line,
    .regencia-status-page .seal-status-card__line {
        grid-template-columns: 1fr;
        gap: 0.14rem;
    }

    .seal-status-page .seal-status-search-card,
    .seal-status-page .seal-status-results-card,
    .regencia-status-page .seal-status-search-card,
    .regencia-status-page .seal-status-results-card {
        padding: 0.82rem 0.88rem;
    }
}

@media print {
    @page {
        size: auto;
        margin: 5mm;
    }

    body.ticket-app {
        background: #fff;
        color: #000;
    }

    .hero-shell,
    #registerForm,
    #formAlert,
    #agremiadoRegisterCard,
    #agremiadoFormAlert,
    .panel-search-card,
    .queue-panel,
    #refreshDashboardBtn {
        display: none !important;
    }

    .screen-only {
        display: none !important;
    }

    .print-only {
        display: block !important;
    }

    .glass-card {
        box-shadow: none;
        border: none;
        padding: 0;
        background: #fff;
    }

    .ticket-preview {
        display: block !important;
    }

    .ticket-paper--receipt {
        max-width: 300px;
        padding: 1rem 0;
        border: none;
    }

    .ticket-paper--agremiado {
        max-width: 235px;
        padding: 0.3rem 0;
    }

    .ticket-receipt-title {
        font-size: 1.1rem;
    }

    .ticket-receipt-code {
        font-size: 1.45rem;
    }

    .qr-image--receipt {
        width: 180px;
        height: 180px;
        padding: 0;
        border: none;
        border-radius: 0;
    }

    .ticket-receipt-details {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }

    .ticket-receipt-line {
        font-size: 0.78rem;
    }

    .ticket-paper--agremiado .ticket-receipt-title {
        font-size: 0.9rem;
    }

    .ticket-paper--agremiado .ticket-receipt-code {
        font-size: 1.08rem;
    }

    .ticket-paper--agremiado .qr-image--receipt {
        width: 128px;
        height: 128px;
    }

    .ticket-paper--agremiado .ticket-receipt-details {
        margin-top: 0.28rem;
        padding-top: 0.28rem;
    }

    .ticket-paper--agremiado .ticket-receipt-name {
        font-size: 0.72rem;
    }

    .ticket-paper--agremiado .ticket-receipt-status,
    .ticket-paper--agremiado .ticket-receipt-line {
        font-size: 0.6rem;
        line-height: 1.12;
        margin-top: 0.12rem;
    }

    .ticket-print-notes {
        margin-bottom: 0.7rem;
    }

    .ticket-print-notes--footer {
        margin-top: 0.75rem;
        padding-top: 0.7rem;
    }

    .ticket-print-note-heading,
    .ticket-print-note-line {
        font-size: 0.74rem;
    }
}

.rg17-consulta-app {
    background:
        radial-gradient(circle at top left, rgba(255, 122, 24, 0.2), transparent 32rem),
        linear-gradient(135deg, #07101f 0%, #0f2c4a 52%, #183f73 100%);
    min-height: 100vh;
}

.rg17-consulta-main {
    margin: 0 auto;
    max-width: 1320px;
}

.rg17-consulta-hero,
.rg17-consulta-search-card,
.rg17-consulta-result-card {
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 22px 54px rgba(2, 8, 23, 0.18);
}

.rg17-consulta-hero {
    align-items: center;
    background: linear-gradient(135deg, rgba(15, 35, 65, 0.96), rgba(18, 91, 123, 0.92));
    border-radius: 22px;
    color: #fff;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    min-height: 82px;
    padding: 14px 18px;
}

.rg17-consulta-hero h1 {
    color: #fff;
    font-size: clamp(1.25rem, 2.1vw, 1.8rem);
    font-weight: 900;
    line-height: 1.05;
    margin: 0;
}

.rg17-consulta-hero p {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.84rem;
    margin: 0.25rem 0 0;
}

.rg17-consulta-menu-link {
    align-self: flex-start;
    flex: 0 0 auto;
    padding: 0.38rem 0.75rem;
}

.rg17-consulta-search-card,
.rg17-consulta-result-card {
    background: rgba(245, 248, 252, 0.96);
    border-color: rgba(15, 35, 65, 0.08);
    border-radius: 20px;
    padding: 13px 14px;
}

.rg17-consulta-search-title,
.rg17-consulta-result-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.rg17-consulta-search-title h2,
.rg17-consulta-result-header h2 {
    color: #07182d;
    font-size: 1rem;
    font-weight: 900;
    margin: 0;
}

.rg17-consulta-app .section-kicker,
.rg17-consulta-search-card .form-label {
    color: #334155;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 0.22rem;
}

.rg17-consulta-search-card .section-kicker,
.rg17-consulta-result-card .section-kicker {
    color: #475569;
}

.rg17-consulta-search-card .form-control-lg,
.rg17-consulta-search-card .btn-lg {
    border-radius: 13px;
    font-size: 0.98rem;
    min-height: 2.5rem;
    padding: 0.42rem 0.75rem;
}

.rg17-consulta-content {
    display: grid;
    gap: 10px;
}

.rg17-consulta-form {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
}

.rg17-consulta-field {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(15, 35, 65, 0.08);
    border-radius: 13px;
    min-height: 52px;
    padding: 7px 10px;
}

.rg17-consulta-field--featured {
    background: #eef8ff;
    border-color: rgba(14, 116, 144, 0.24);
}

.rg17-consulta-field span,
.rg17-consulta-summary span,
.rg17-consulta-section h3 {
    color: #53627a;
    display: block;
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rg17-consulta-field strong {
    color: #07182d;
    display: block;
    font-size: 0.88rem;
    line-height: 1.25;
    margin-top: 2px;
    overflow-wrap: anywhere;
}

.rg17-consulta-summary {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.rg17-consulta-summary div {
    background: linear-gradient(135deg, #0e2038, #143a5f);
    border-radius: 13px;
    color: #fff;
    padding: 8px 10px;
}

.rg17-consulta-summary span {
    color: rgba(255, 255, 255, 0.7);
}

.rg17-consulta-summary strong {
    display: block;
    font-size: 0.92rem;
    line-height: 1.2;
    margin-top: 4px;
}

.rg17-consulta-section {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 35, 65, 0.08);
    border-radius: 14px;
    padding: 10px;
}

.rg17-consulta-section h3 {
    margin: 0 0 8px;
}

@media (max-width: 640px) {
    .rg17-consulta-main {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .rg17-consulta-hero,
    .rg17-consulta-search-card,
    .rg17-consulta-result-card {
        border-radius: 18px;
        padding: 13px;
    }

    .rg17-consulta-hero {
        align-items: flex-start;
        flex-direction: column;
        min-height: auto;
    }

    .rg17-consulta-menu-link {
        align-self: flex-start;
    }

    .rg17-consulta-form,
    .rg17-consulta-summary {
        grid-template-columns: 1fr;
    }
}

.pagare-app .hero-shell {
    background: linear-gradient(135deg, rgba(12, 31, 55, 0.95), rgba(18, 84, 112, 0.95));
    align-items: center;
    border-radius: 22px;
    margin-bottom: 0.7rem !important;
    min-height: auto;
    padding: 1.05rem 1.35rem 0.95rem !important;
}

.pagare-app .hero-shell h1 {
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    line-height: 1.08;
}

.pagare-app .hero-shell .eyebrow {
    margin-bottom: 0.25rem;
}

.pagare-app .hero-menu-link {
    top: 0.75rem;
}

.pagare-app main.container-fluid {
    padding-top: 0.75rem !important;
}

.pagare-app .mb-3 {
    margin-bottom: 0.7rem !important;
}

.pagare-app .mt-3 {
    margin-top: 0.6rem !important;
}

.pagare-form-card,
.pagare-filter-card,
.pagare-table-card {
    border-radius: 20px;
    padding: 12px 14px;
}

.pagare-form-header,
.pagare-search-title {
    align-items: flex-start;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin-bottom: 7px;
}

.pagare-form-header h2,
.pagare-search-title h2,
.pagare-table-card h2 {
    font-size: 1.08rem;
    margin-bottom: 0;
}

.pagare-form-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.pagare-grid {
    display: grid;
    gap: 6px 8px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.pagare-grid > div {
    min-width: 0;
}

.pagare-grid__wide {
    grid-column: span 2;
}

.pagare-grid__full {
    grid-column: span 6;
}

.pagare-app .form-label {
    color: #07182d;
    font-size: 0.72rem;
    margin-bottom: 0.14rem;
}

.pagare-app .form-control,
.pagare-app .form-select {
    border-radius: 11px;
    font-size: 0.86rem;
    min-height: 2rem;
    padding: 0.26rem 0.62rem;
}

.pagare-textarea {
    min-height: 46px;
}

.pagare-summary {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.pagare-summary div {
    background: linear-gradient(135deg, #10284a, #0c5c7a);
    border-radius: 15px;
    box-shadow: 0 12px 28px rgba(15, 35, 65, 0.14);
    color: #fff;
    min-height: 46px;
    padding: 7px 9px;
}

.pagare-summary span {
    color: rgba(255, 255, 255, 0.68);
    display: block;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pagare-summary strong {
    display: block;
    font-size: 0.92rem;
    line-height: 1.15;
    margin-top: 2px;
}

.pagare-cuotas-wrap {
    border: 1px solid rgba(15, 35, 65, 0.08);
    border-radius: 16px;
    max-height: 210px;
    overflow: auto;
}

.pagare-cuotas-table,
.pagare-table {
    font-size: 0.84rem;
}

.pagare-cuotas-table thead th,
.pagare-table thead th {
    background: #32445e;
    color: #fff;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    padding: 0.42rem 0.55rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.pagare-cuotas-table td,
.pagare-table td {
    padding: 0.32rem 0.48rem;
    vertical-align: middle;
}

.pagare-search-grid {
    display: grid;
    gap: 7px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pagare-count {
    align-self: center;
    background: #dff3ff;
    border-radius: 999px;
    color: #075985;
    font-size: 0.78rem;
    font-weight: 900;
    padding: 0.34rem 0.7rem;
}

.pagare-table-wrap {
    max-height: 520px;
}

.pagare-table {
    min-width: 1180px;
}

.pagare-name-cell {
    max-width: 280px;
    overflow-wrap: anywhere;
}

.pagare-date-cell {
    min-width: 92px;
    white-space: nowrap;
}

.pagare-icon-btn {
    border-radius: 10px;
    font-size: 0.78rem;
    min-width: 34px;
    padding: 0.22rem 0.42rem;
}

.pagare-action-stack {
    display: inline-grid;
    gap: 0.2rem;
    justify-items: center;
}

.pagare-table th:first-child,
.pagare-table td:first-child {
    min-width: 48px;
    text-align: center;
    white-space: nowrap;
}

.pagare-top-scroll {
    margin-bottom: 4px;
}

@media (max-width: 1100px) {
    .pagare-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pagare-grid__wide {
        grid-column: span 2;
    }

    .pagare-grid__full {
        grid-column: span 3;
    }

    .pagare-search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .pagare-form-card,
    .pagare-filter-card,
    .pagare-table-card {
        border-radius: 18px;
        padding: 13px;
    }

    .pagare-form-header,
    .pagare-search-title {
        align-items: stretch;
        flex-direction: column;
    }

    .pagare-form-actions {
        justify-content: flex-start;
    }

    .pagare-grid,
    .pagare-search-grid {
        grid-template-columns: 1fr;
    }

    .pagare-grid__wide,
    .pagare-grid__full {
        grid-column: span 1;
    }
}

body.ticket-app.alquileres-app {
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.24), transparent 30%),
        radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.18), transparent 32%),
        linear-gradient(180deg, #07172d 0%, #0f355d 48%, #155e75 100%);
}

.alquileres-main {
    max-width: 1540px;
    margin: 0 auto;
}

.alquileres-app .hero-shell--compact {
    padding: 0.9rem 1.05rem 0.75rem;
    align-items: center;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(14, 116, 144, 0.86));
    border-radius: 22px;
}

.alquileres-app .hero-shell--compact h1 {
    font-size: clamp(1.35rem, 2vw, 2rem);
    line-height: 1.08;
}

.alquileres-app .hero-shell--compact .hero-menu-link {
    top: 0.58rem;
    right: 0.72rem;
    padding: 0.3rem 0.68rem;
    font-size: 0.78rem;
}

.alquileres-app .eyebrow,
.alquileres-app .section-kicker {
    color: #e2e8f0;
    font-size: 0.68rem;
    opacity: 1;
}

.alquileres-app .glass-card .section-kicker {
    color: #334155;
    font-weight: 800;
}

.alquileres-toolbar-card,
.alquileres-calendar-card {
    padding: 0.95rem;
    border-radius: 22px;
}

.alquileres-toolbar {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    align-items: center;
    gap: 0.65rem;
}

.alquileres-month-title {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: #0f172a;
}

.alquileres-month-jump {
    display: inline-grid;
    grid-template-columns: minmax(8.5rem, 1fr) auto;
    gap: 0.35rem;
    align-items: center;
}

.alquileres-calendar-heading {
    margin-bottom: 0.55rem;
}

.alquileres-calendar-heading h2 {
    font-size: 1rem;
}

.alquileres-calendar-scroll {
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.alquileres-calendar {
    min-width: 1120px;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border: 1px solid rgba(100, 116, 139, 0.32);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(148, 163, 184, 0.24);
}

.alquileres-weekday {
    padding: 0.48rem 0.35rem;
    text-align: center;
    font-size: 1rem;
    line-height: 1;
    font-weight: 900;
    color: #102a16;
    background: #eef9e8;
    border-right: 1px solid rgba(100, 116, 139, 0.28);
    border-bottom: 1px solid rgba(100, 116, 139, 0.28);
}

.alquileres-weekday:nth-child(7) {
    border-right: 0;
}

.alquileres-day {
    position: relative;
    min-height: 142px;
    padding: 1.35rem 0.28rem 0.28rem;
    background: #f8fff4;
    border-right: 1px solid rgba(100, 116, 139, 0.28);
    border-bottom: 1px solid rgba(100, 116, 139, 0.28);
}

.alquileres-day:nth-child(7n) {
    border-right: 0;
}

.alquileres-day--muted {
    background: #f1f5f9;
}

.alquileres-day__number {
    position: absolute;
    top: 0.12rem;
    left: 0.28rem;
    font-size: 1rem;
    line-height: 1;
    font-weight: 900;
    color: #111827;
}

.alquileres-slot {
    position: relative;
    display: grid;
    gap: 0.22rem;
    min-height: 54px;
    padding: 0.2rem;
    border: 1px solid rgba(100, 116, 139, 0.28);
    background: #fdebd8;
}

.alquileres-slot + .alquileres-slot {
    margin-top: 0.28rem;
}

.alquileres-slot--2 {
    background: #dff3f8;
}

.alquileres-slot__select,
.alquileres-slot__comment-input {
    min-height: 1.42rem;
    padding: 0.12rem 0.28rem;
    border-radius: 0.35rem;
    font-size: 0.72rem;
    line-height: 1.1;
}

.alquileres-slot__comment-input {
    resize: none;
    min-height: 2.35rem;
    overflow: hidden;
}

.alquileres-slot__status {
    position: absolute;
    right: 0.32rem;
    bottom: 0.12rem;
    font-size: 0.6rem;
    font-weight: 800;
    color: #64748b;
}

.alquileres-slot__status--saved {
    color: #15803d;
}

.alquileres-slot__status--error {
    color: #dc2626;
}

.alquileres-slot--readonly {
    align-content: start;
    font-size: 0.76rem;
    line-height: 1.12;
    min-height: auto;
    overflow: visible;
}

.alquileres-slot--available {
    background: #eef8ff;
    border-color: rgba(14, 165, 233, 0.28);
}

.alquileres-slot--event {
    background: #fee2e2;
    border-color: rgba(220, 38, 38, 0.38);
    box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.22);
}

.alquileres-slot__type {
    font-weight: 900;
    color: #0f172a;
}

.alquileres-slot__comment {
    color: #1f2937;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 767px) {
    .alquileres-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .alquileres-month-title {
        grid-column: 1 / -1;
        grid-row: 1;
        margin-bottom: 0.2rem;
    }

    .alquileres-month-jump {
        grid-column: 1 / -1;
    }
}
