/* Registrazione movimenti — stili globali (componenti figli inclusi) */
.reg-mov-page {
    --reg-mov-blue: #2563eb;
    --reg-mov-green: #16a34a;
    --reg-mov-orange: #ea580c;
    --reg-mov-border: #e2e8f0;
    --reg-mov-surface: #fff;
    --reg-mov-bg: #f1f5f9;
    max-width: 1320px;
    margin: 0 auto;
}

.reg-mov-page svg.reg-mov-icon {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    display: block;
}

.reg-mov-page svg.reg-mov-icon--title {
    width: 1.5rem;
    height: 1.5rem;
    color: #64748b;
}

.reg-mov-page svg.reg-mov-icon--chevron {
    width: 1rem;
    height: 1rem;
    color: #94a3b8;
}

.reg-mov-page svg.reg-mov-icon--btn {
    width: 1rem;
    height: 1rem;
}

.reg-mov-page svg.reg-mov-icon--sm {
    width: 0.85rem;
    height: 0.85rem;
}

.reg-mov-page svg.reg-mov-icon--bolt {
    width: 1rem;
    height: 1rem;
    color: #f59e0b;
}

/* Header */
.reg-mov-page__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reg-mov-page__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
}

.reg-mov-page__subtitle {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0.2rem 0 0;
}

.reg-mov-page__header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.reg-mov-page__period-filters {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.reg-mov-page__period-filters .form-select {
    width: auto;
    min-width: 5.5rem;
    font-size: 0.85rem;
}

.reg-mov-page__config-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    font-size: 0.875rem;
}

/* Workflow shell */
.reg-mov-workflow-shell {
    background: var(--reg-mov-surface);
    border: 1px solid var(--reg-mov-border);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    /* Avoid overflow:hidden — it clipped the sticky Azioni column (Riconcilia / Altre azioni). */
    overflow: visible;
}

/* Stepper */
.reg-mov-stepper {
    display: flex;
    flex-wrap: nowrap;
    border-bottom: 1px solid var(--reg-mov-border);
    background: #fff;
    overflow-x: auto;
    border-radius: 12px 12px 0 0;
}

.reg-mov-stepper__step {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.85rem 0.9rem 0.75rem;
    margin: 0;
    border: 0;
    border-bottom: 3px solid #e2e8f0;
    border-radius: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}

.reg-mov-stepper__step:hover {
    background: #f8fafc;
}

.reg-mov-stepper__step--current {
    background: #f8fbff;
}

.reg-mov-stepper__step--done {
    border-bottom-color: var(--reg-mov-green);
}

.reg-mov-stepper__step--active,
.reg-mov-stepper__step--current {
    border-bottom-color: var(--reg-mov-blue);
}

.reg-mov-stepper__step--attention:not(.reg-mov-stepper__step--current) {
    border-bottom-color: var(--reg-mov-orange);
}

.reg-mov-stepper__indicator {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    border: 2px solid #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    flex-shrink: 0;
    background: #fff;
}

.reg-mov-stepper__indicator--done {
    border-color: var(--reg-mov-green);
    background: rgba(22, 163, 74, 0.1);
    color: var(--reg-mov-green);
}

.reg-mov-stepper__indicator--active,
.reg-mov-stepper__step--current .reg-mov-stepper__indicator {
    border-color: var(--reg-mov-blue);
    background: var(--reg-mov-blue);
    color: #fff;
}

.reg-mov-stepper__indicator--attention {
    border-color: var(--reg-mov-orange);
    background: rgba(234, 88, 12, 0.12);
    color: var(--reg-mov-orange);
}

.reg-mov-stepper__text {
    min-width: 0;
}

.reg-mov-stepper__title {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reg-mov-stepper__subtitle {
    display: block;
    font-size: 0.68rem;
    color: #64748b;
    margin-top: 0.15rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dashboard */
.reg-mov-dashboard {
    display: grid;
    grid-template-columns: 1.35fr 0.9fr;
    gap: 1rem;
    padding: 1rem;
    background: var(--reg-mov-bg);
    border-bottom: 1px solid var(--reg-mov-border);
}

.gesq-stat-section__body .reg-mov-dashboard {
    padding: 0.25rem 0 0;
    background: transparent;
    border-bottom: none;
}

.reg-mov-dashboard-card {
    background: #fff;
    border: 1px solid var(--reg-mov-border);
    border-radius: 10px;
    overflow: hidden;
}

.reg-mov-dashboard-card__header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.reg-mov-dashboard-card__title {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
}

.reg-mov-dashboard-card__body {
    padding: 1rem;
}

.reg-mov-status-card__body-inner {
    display: grid;
    grid-template-columns: minmax(200px, 0.95fr) minmax(240px, 1.05fr);
    gap: 1rem;
    align-items: start;
}

.reg-mov-status-card__next {
    background: rgba(22, 163, 74, 0.07);
    border: 1px solid rgba(22, 163, 74, 0.22);
    border-radius: 10px;
    padding: 1rem;
}

.reg-mov-status-card__next-kicker {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}

.reg-mov-status-card__next-label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.85rem;
    color: #0f172a;
    line-height: 1.35;
}

.reg-mov-btn-primary {
    font-weight: 600;
    padding: 0.45rem 1rem;
    font-size: 0.875rem;
}

.reg-mov-status-card__metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 1rem;
}

.reg-mov-metric__value {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.1;
    color: #0f172a;
}

.reg-mov-metric__value--ok { color: var(--reg-mov-green); }
.reg-mov-metric__value--warn { color: var(--reg-mov-orange); }
.reg-mov-metric__value--info { color: var(--reg-mov-blue); }

.reg-mov-metric__label {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 0.1rem;
}

.reg-mov-actions-list__item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.reg-mov-actions-list__item:last-child {
    border-bottom: 0;
}

.reg-mov-actions-list__icon {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 999px;
    flex-shrink: 0;
}

.reg-mov-actions-list__icon--info { background: var(--reg-mov-blue); }
.reg-mov-actions-list__icon--warn { background: var(--reg-mov-orange); }
.reg-mov-actions-list__icon--neutral { background: #94a3b8; }

.reg-mov-actions-list__text {
    flex: 1;
    font-size: 0.84rem;
    color: #334155;
    line-height: 1.3;
}

.reg-mov-actions-list__btn {
    flex-shrink: 0;
    font-size: 0.78rem;
    padding: 0.2rem 0.55rem;
}

.reg-mov-actions-list__btn--info {
    border-color: var(--reg-mov-blue);
    color: var(--reg-mov-blue);
}

.reg-mov-actions-list__btn--info:hover {
    background: rgba(37, 99, 235, 0.08);
}

.reg-mov-actions-list__btn--warn {
    border-color: var(--reg-mov-orange);
    color: var(--reg-mov-orange);
}

.reg-mov-actions-list__btn--warn:hover {
    background: rgba(234, 88, 12, 0.08);
}

/* Section content */
.reg-mov-section-card {
    border-radius: 0 0 12px 12px;
    overflow: visible;
}

.reg-mov-section-card__header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--reg-mov-border);
    background: #fff;
}

.reg-mov-section-card__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
}

.reg-mov-section-card__badge {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
}

.reg-mov-section-card__body {
    padding: 1.25rem;
    background: #fff;
}

/* Import */
.reg-mov-import-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.reg-mov-import-card {
    border: 1px solid var(--reg-mov-border);
    border-radius: 8px;
    padding: 0.75rem;
    background: #fff;
}

.reg-mov-import-card--done {
    border-color: rgba(22, 163, 74, 0.35);
    background: rgba(22, 163, 74, 0.04);
}

.reg-mov-import-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.reg-mov-import-card__ai-btn {
    padding: 0.1rem 0.45rem;
    font-size: 0.7rem;
    line-height: 1.2;
}

.reg-mov-import-card__actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

/* Reconciliation */
.reg-mov-ricon__toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.reg-mov-ricon__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 1;
    min-width: 280px;
}

.reg-mov-ricon__view-toggle {
    display: inline-flex;
    border: 1px solid var(--reg-mov-border);
    border-radius: 8px;
    overflow: hidden;
    flex: 0 0 auto;
}

.reg-mov-ricon__view-toggle__btn {
    border: none;
    border-radius: 0;
    margin: 0;
    font-size: 0.82rem;
    padding: 0.35rem 0.65rem;
    background: var(--reg-mov-surface-muted, #f3f4f6);
    color: var(--reg-mov-text-muted, #6b7280);
}

.reg-mov-ricon__view-toggle__btn + .reg-mov-ricon__view-toggle__btn {
    border-left: 1px solid var(--reg-mov-border);
}

.reg-mov-ricon__view-toggle__btn--active {
    background: var(--reg-mov-primary-soft, #e8f1ff);
    color: var(--reg-mov-primary, #1d4ed8);
    font-weight: 600;
}

.reg-mov-ricon__search {
    min-width: 16rem;
    flex: 2 1 16rem;
}

.reg-mov-ricon__filter {
    min-width: 8.5rem;
}

.reg-mov-ricon__exports {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.reg-mov-ricon__table-wrap {
    border: 1px solid var(--reg-mov-border);
    border-radius: 10px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    /* Keep toolbar/filters/footer visible; only the table scrolls. */
    max-height: calc(100vh - 17.5rem);
    max-height: calc(100dvh - 17.5rem);
}

.reg-mov-ricon-table {
    width: 100%;
    table-layout: fixed;
    /* Prefer horizontal scroll over squeezing the Azioni column. */
    min-width: 68rem;
}

.reg-mov-ricon-col--sticky {
    position: sticky;
    right: 0;
    z-index: 2;
    background: #fff;
    box-shadow: -6px 0 10px rgba(15, 23, 42, 0.05);
    min-width: 15rem;
    width: 15rem;
    padding-right: 0.85rem !important;
    box-sizing: border-box;
    vertical-align: middle;
}

/* Elevate sticky cell above adjacent rows while dropdown is open */
.reg-mov-ricon-row--menu-open .reg-mov-ricon-col--sticky {
    z-index: 12;
}

.reg-mov-ricon-table thead th.reg-mov-ricon-col--sticky {
    background: #f8fafc;
    z-index: 6;
}

.reg-mov-ricon-row--pending .reg-mov-ricon-col--sticky {
    background: rgba(234, 88, 12, 0.03);
}

.reg-mov-ricon-table thead th {
    position: sticky;
    top: 0;
    z-index: 4;
    background: #f8fafc;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    font-weight: 600;
    border-bottom: 1px solid var(--reg-mov-border);
    white-space: nowrap;
    padding: 0.6rem 0.75rem;
}

.reg-mov-ricon-th {
    position: sticky;
    top: 0;
}

.reg-mov-ricon-table thead th .gesq-sort-header {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.7rem;
    font-weight: 600;
    color: inherit;
}

.reg-mov-ricon-table tbody td {
    padding: 0.7rem 0.75rem;
    vertical-align: top;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
}

.reg-mov-ricon-row--pending {
    background: rgba(234, 88, 12, 0.03);
    cursor: pointer;
}

.reg-mov-ricon-row--pending .reg-mov-ricon-row__giustificativo,
.reg-mov-ricon-row--pending .reg-mov-ricon-row__sug,
.reg-mov-ricon-row--pending .reg-mov-ricon-row__azioni {
    cursor: default;
}

.reg-mov-ricon-row__conto {
    max-width: 6rem;
    color: #64748b;
    font-size: 0.8rem;
}

.reg-mov-ricon-row__desc {
    min-width: 12rem;
    max-width: 18rem;
}

.reg-mov-ricon-col--giustificativo,
.reg-mov-ricon-row__giustificativo {
    min-width: 11rem;
    width: 12rem;
}

.reg-mov-ricon-row__giustificativo .reg-mov-ricon-row__nota-input {
    background: #fffbeb;
    border-color: #fcd34d;
}

.reg-mov-ricon-row__nota-label {
    display: block;
    margin-top: 0.45rem;
    margin-bottom: 0.15rem;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
}

.reg-mov-ricon-row__nota-input {
    min-width: 10rem;
    font-size: 0.8rem;
    line-height: 1.35;
    resize: vertical;
}

.reg-mov-ricon-row__desc .form-text {
    font-size: 0.68rem;
    margin-top: 0.15rem;
}

.reg-mov-ricon-row__desc-main {
    font-weight: 500;
    color: #0f172a;
}

.reg-mov-ricon-row__desc-sub {
    font-size: 0.8rem;
    margin-top: 0.15rem;
    color: #64748b;
}

.reg-mov-ricon-row__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.3rem;
}

.reg-mov-tag {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
    font-size: 0.65rem;
    border-radius: 4px;
    padding: 0.1rem 0.35rem;
}

.reg-mov-ricon-row__sug {
    min-width: 14rem;
    width: 16rem;
    max-width: 18rem;
    overflow: hidden;
}

.reg-mov-ricon-row__stato {
    width: 5.5rem;
    min-width: 5rem;
    white-space: nowrap;
}

.reg-mov-suggestion {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
    padding: 0.4rem 0.5rem;
    border: 1px solid var(--reg-mov-border);
    font-size: 0.78rem;
    background: #fff;
    box-sizing: border-box;
}

.reg-mov-suggestion--high {
    background: rgba(22, 163, 74, 0.06);
    border-color: rgba(22, 163, 74, 0.28);
}

.reg-mov-suggestion--medium {
    background: rgba(234, 88, 12, 0.06);
    border-color: rgba(234, 88, 12, 0.25);
}

.reg-mov-suggestion__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    min-width: 0;
}

.reg-mov-suggestion__label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    font-weight: 600;
    flex-shrink: 0;
}

.reg-mov-suggestion__name {
    font-weight: 600;
    line-height: 1.25;
    min-width: 0;
    overflow: hidden;
}

.reg-mov-suggestion__link {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: inherit;
    text-decoration: none;
    max-width: 100%;
}

.reg-mov-suggestion__link:hover {
    color: var(--reg-mov-blue, #2563eb);
    text-decoration: underline;
}

.reg-mov-suggestion__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
}

.reg-mov-suggestion__actions .btn {
    padding: 0.15rem 0.4rem;
    font-size: 0.72rem;
    line-height: 1.2;
}

.reg-mov-suggestion__score {
    font-size: 0.68rem;
    font-weight: 600;
    color: #64748b;
    background: rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    padding: 0.05rem 0.4rem;
    flex-shrink: 0;
    line-height: 1.3;
}

.reg-mov-wizard__suggestion {
    max-width: 22rem;
}

.reg-mov-stato {
    font-weight: 600;
    font-size: 0.7rem;
}

.reg-mov-stato--ok {
    background: rgba(22, 163, 74, 0.12) !important;
    color: var(--reg-mov-green) !important;
}

.reg-mov-stato--warn {
    background: rgba(234, 88, 12, 0.12) !important;
    color: var(--reg-mov-orange) !important;
}

.reg-mov-ricon-row__azioni {
    /* Keep td as table-cell (display:flex on td squeezed/clipped the sticky column). */
    white-space: nowrap;
}

.reg-mov-ricon-row__azioni-inner {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 0.3rem;
    align-items: center;
}

.reg-mov-ricon-row__menu {
    position: relative;
    flex-shrink: 0;
}

.reg-mov-ricon-row__menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.25rem);
    z-index: 1;
    min-width: 11rem;
    background: #fff;
    border: 1px solid var(--reg-mov-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    padding: 0.35rem 0;
}

.reg-mov-ricon-row__menu-panel .dropdown-item {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 0.4rem 0.85rem;
    font-size: 0.84rem;
}

.reg-mov-ricon-row__detail td {
    background: #f8fafc;
    padding: 0.75rem !important;
}

.reg-mov-ricon__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.25rem 0;
}

/* Config panel */
.reg-mov-processing-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.reg-mov-processing-dialog {
    width: min(420px, 100%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.2);
    padding: 1.5rem 1.25rem;
    text-align: center;
}

.reg-mov-processing-dialog__spinner {
    width: 2.5rem;
    height: 2.5rem;
}

.reg-mov-processing-dialog__title {
    font-weight: 600;
    font-size: 1rem;
    color: #0f172a;
    margin-top: 0.75rem;
}

.reg-mov-processing-dialog__text {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.45;
}

.reg-mov-config-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    z-index: 1040;
}

.reg-mov-config-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(480px, 100vw);
    height: 100vh;
    background: #fff;
    z-index: 1050;
    box-shadow: -8px 0 32px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
}

.reg-mov-config-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--reg-mov-border);
}

.reg-mov-config-panel__body {
    padding: 1rem 1.25rem 1.5rem;
    overflow-y: auto;
}

.reg-mov-config-section + .reg-mov-config-section {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--reg-mov-border);
}

.reg-mov-config-section__title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.reg-mov-conti-config__list .list-group-item {
    padding: 0.65rem 0.75rem;
}

.reg-mov-ai-config__list .list-group-item {
    padding: 0.65rem 0.75rem;
}

.reg-mov-ai-config__textarea {
    font-size: 0.78rem;
    line-height: 1.35;
    min-height: 18rem;
}

@media (max-width: 1024px) {
    .reg-mov-dashboard {
        grid-template-columns: 1fr;
    }

    .reg-mov-status-card__body-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .reg-mov-stepper {
        flex-direction: column;
    }

    .reg-mov-stepper__step {
        border-bottom: 1px solid var(--reg-mov-border);
        border-left: 3px solid #e2e8f0;
    }

    .reg-mov-stepper__step--done { border-left-color: var(--reg-mov-green); }
    .reg-mov-stepper__step--current { border-left-color: var(--reg-mov-blue); }
    .reg-mov-stepper__step--attention { border-left-color: var(--reg-mov-orange); }

    .reg-mov-stepper__title,
    .reg-mov-stepper__subtitle {
        white-space: normal;
    }

    .reg-mov-page__header {
        flex-direction: column;
    }

    /* On mobile leave more room for stacked chrome; table still scrolls in-place. */
    .reg-mov-ricon__table-wrap {
        max-height: calc(100vh - 22rem);
        max-height: calc(100dvh - 22rem);
    }
}

.reg-mov-conto-sug {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin-top: 0.35rem;
}

.reg-mov-conto-sug__label {
    font-size: 0.75rem;
    color: var(--reg-mov-blue, #2563eb);
    line-height: 1.3;
}

.reg-mov-fattura-dettaglio-row > td {
    padding-top: 0;
    border-top: none;
}

.reg-mov-fattura-dettaglio {
    padding: 0.65rem 0.75rem;
    background: #f8fafc;
    border: 1px solid var(--reg-mov-border, #e2e8f0);
    border-radius: 8px;
}

.reg-mov-fattura-dettaglio__head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.65rem;
}

.reg-mov-fattura-dettaglio__totale {
    font-size: 1.05rem;
    font-weight: 600;
    text-align: right;
}

.reg-mov-fattura-dettaglio__meta {
    display: block;
    font-size: 0.75rem;
    font-weight: normal;
    color: #64748b;
}

.reg-mov-fattura-dettaglio__xml {
    font-size: 0.75rem;
}

.reg-mov-fattura-dettaglio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    gap: 0.5rem 1rem;
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
}

.reg-mov-fattura-dettaglio__grid dt {
    margin: 0;
    font-size: 0.72rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.reg-mov-fattura-dettaglio__grid dd {
    margin: 0.1rem 0 0;
}

.reg-mov-fattura-dettaglio__righe {
    max-height: 16rem;
}

.reg-mov-fattura-dettaglio__desc {
    max-width: 22rem;
}
