.restaunsa-idocs {
    contain: inline-size;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    color: #212529;
}

.restaunsa-idocs *,
.restaunsa-idocs *::before,
.restaunsa-idocs *::after {
    box-sizing: border-box;
}

.restaunsa-idocs > *,
.restaunsa-idocs .card,
.restaunsa-idocs .card-body,
.restaunsa-idocs .card-header,
.restaunsa-idocs .card-footer,
.restaunsa-idocs .d-flex,
.restaunsa-idocs .row,
.restaunsa-idocs .form-row,
.restaunsa-idocs details {
    min-width: 0;
    max-width: 100%;
}

.restaunsa-idocs input,
.restaunsa-idocs select,
.restaunsa-idocs textarea,
.restaunsa-idocs pre,
.restaunsa-idocs code {
    max-width: 100%;
}

.restaunsa-idocs pre,
.restaunsa-idocs details code {
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    word-break: break-word;
}

.restaunsa-idocs__heading,
.restaunsa-idocs__panel,
.restaunsa-idocs__summary,
.restaunsa-idocs .alert {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.restaunsa-idocs__eyebrow {
    display: block;
    margin-bottom: .2rem;
    color: #495057;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.restaunsa-idocs__view-context {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    min-width: 0;
    max-width: 100%;
    margin: -.25rem 0 1rem;
    padding: .55rem .75rem;
    color: #212529;
    background: #f1f3f5;
    border-left: 4px solid #1b6ec2;
    overflow-wrap: anywhere;
}

.restaunsa-idocs__view-context strong {
    flex: 0 0 auto;
}

.restaunsa-idocs__section-heading {
    gap: .75rem;
}

.restaunsa-idocs__toolbar,
.restaunsa-idocs__toolbar-row,
.restaunsa-idocs__actions,
.restaunsa-idocs__pagination,
.restaunsa-idocs__summary-header {
    gap: .5rem;
}

.restaunsa-idocs__actions {
    display: flex;
    flex-wrap: wrap;
}

.restaunsa-idocs__actions .btn {
    margin-right: 0 !important;
}

.restaunsa-idocs__date-context,
.restaunsa-idocs__help {
    min-width: 0;
    overflow-wrap: anywhere;
}

.restaunsa-idocs__tabs {
    max-width: 100%;
    overflow: hidden;
}

.restaunsa-idocs__tabs-current {
    display: none;
    padding: .4rem .6rem;
    color: #29343d;
    background: #f1f3f5;
    border: 1px solid #dee2e6;
    border-bottom: 0;
    font-size: .8rem;
}

.restaunsa-idocs__tabs-list {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.restaunsa-idocs__tabs-list .nav-item {
    flex: 0 0 auto;
}

.restaunsa-idocs__tab {
    color: #495057;
    background: #fff;
    border-color: transparent transparent #dee2e6;
}

.restaunsa-idocs__tab:hover,
.restaunsa-idocs__tab:focus {
    color: #172b4d;
    background: #f1f3f5;
    border-color: #ced4da #ced4da #adb5bd;
}

.restaunsa-idocs__tab--active,
.restaunsa-idocs__tab--active:hover,
.restaunsa-idocs__tab--active:focus {
    color: #102a43 !important;
    background: #e7f1ff !important;
    border-color: #1b6ec2 #1b6ec2 #fff !important;
    box-shadow: inset 0 3px 0 #1b6ec2;
    font-weight: 700;
}

.restaunsa-idocs__tab--active::after {
    margin-left: .4rem;
    color: #334e68;
    content: "Activo";
    font-size: .7rem;
    font-weight: 600;
}

.restaunsa-idocs__table-wrap {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    border-bottom: 1px solid #dee2e6;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.restaunsa-idocs__table-wrap:focus {
    outline: 3px solid rgba(27, 110, 194, .35);
    outline-offset: -3px;
}

.restaunsa-idocs__table-wrap--staging {
    max-height: 58vh;
    overflow: auto;
}

.restaunsa-idocs__table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
    table-layout: fixed;
}

.restaunsa-idocs__table th,
.restaunsa-idocs__table td {
    min-width: 7rem;
    max-width: 18rem;
    vertical-align: middle;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.restaunsa-idocs__table--summary {
    min-width: 38rem;
}

.restaunsa-idocs__table--validations {
    min-width: 62rem;
}

.restaunsa-idocs__table--history {
    min-width: 70rem;
}

.restaunsa-idocs__table--staging {
    width: max-content;
    min-width: 100%;
    max-width: none;
    table-layout: auto;
}

.restaunsa-idocs__table--staging th,
.restaunsa-idocs__table--staging td {
    width: 12rem;
    min-width: 9rem;
    max-width: 18rem;
}

.restaunsa-idocs__key-column {
    position: sticky;
    left: 0;
    z-index: 3;
    width: 10rem !important;
    min-width: 10rem !important;
    max-width: 10rem !important;
    color: #29343d;
    background-color: #f1f3f5;
    border-right: 2px solid #adb5bd !important;
}

.restaunsa-idocs__actions-column {
    position: sticky;
    right: 0;
    z-index: 3;
    width: 8.5rem !important;
    min-width: 8.5rem !important;
    max-width: 8.5rem !important;
    color: #29343d;
    background-color: #fff;
    border-left: 2px solid #adb5bd !important;
    text-align: center !important;
    vertical-align: middle !important;
}

.restaunsa-idocs__key-column--header,
.restaunsa-idocs__actions-column--header {
    z-index: 6;
    background-color: #e9ecef !important;
}

.restaunsa-idocs__table-head {
    position: sticky;
    top: 0;
    z-index: 2;
}

.restaunsa-idocs__table-head th {
    background-color: #e9ecef;
}

.restaunsa-idocs__cell .form-control {
    width: 100%;
    min-width: 0;
}

.restaunsa-idocs__cell--readonly {
    color: #29343d !important;
    background-color: #f1f3f5 !important;
}

.restaunsa-idocs__readonly-value {
    display: flex;
    align-items: center;
    min-width: 0;
    color: #29343d;
    font-weight: 600;
}

.restaunsa-idocs__validation-action {
    text-align: center;
    vertical-align: middle !important;
}

.restaunsa-idocs__validation-action .btn,
.restaunsa-idocs__actions-column .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.restaunsa-idocs__readonly-value .restaunsa-idocs__text {
    flex: 1 1 auto;
    min-width: 0;
}

.restaunsa-idocs__row,
.restaunsa-idocs__row td,
.restaunsa-idocs__row a {
    color: #212529;
}

.restaunsa-idocs__row:hover td {
    color: #172b4d;
    background-color: #eef3f7;
}

.restaunsa-idocs__row:hover .restaunsa-idocs__cell--readonly,
.restaunsa-idocs__row:hover .restaunsa-idocs__key-column {
    color: #172b4d !important;
    background-color: #e1e9ef !important;
}

.restaunsa-idocs__row:hover .restaunsa-idocs__actions-column {
    color: #172b4d;
    background-color: #eef3f7;
}

.restaunsa-idocs__row:focus-within td,
.restaunsa-idocs__row--selected td {
    color: #102a43;
    background-color: #e7f1ff;
}

.restaunsa-idocs__row:focus-within .restaunsa-idocs__cell--readonly,
.restaunsa-idocs__row:focus-within .restaunsa-idocs__key-column,
.restaunsa-idocs__row--selected .restaunsa-idocs__cell--readonly,
.restaunsa-idocs__row--selected .restaunsa-idocs__key-column,
.restaunsa-idocs__row:focus-within .restaunsa-idocs__actions-column,
.restaunsa-idocs__row--selected .restaunsa-idocs__actions-column {
    color: #102a43 !important;
    background-color: #d6e8ff !important;
}

.restaunsa-idocs__row--modified td {
    color: #332701;
    background-color: #fff7d6;
}

.restaunsa-idocs__row--modified:hover td {
    color: #2b2100;
    background-color: #ffefad;
}

.restaunsa-idocs__row--modified .restaunsa-idocs__cell--readonly,
.restaunsa-idocs__row--modified .restaunsa-idocs__key-column,
.restaunsa-idocs__row--modified .restaunsa-idocs__actions-column {
    color: #332701 !important;
    background-color: #fff2bf !important;
}

.restaunsa-idocs__row--modified:hover .restaunsa-idocs__cell--readonly,
.restaunsa-idocs__row--modified:hover .restaunsa-idocs__key-column,
.restaunsa-idocs__row--modified:hover .restaunsa-idocs__actions-column {
    color: #2b2100 !important;
    background-color: #ffe99a !important;
}

.restaunsa-idocs__row--modified:focus-within td,
.restaunsa-idocs__row--modified.restaunsa-idocs__row--selected td {
    color: #102a43;
    background-color: #e7f1ff;
}

.restaunsa-idocs__row--modified:focus-within .restaunsa-idocs__cell--readonly,
.restaunsa-idocs__row--modified:focus-within .restaunsa-idocs__key-column,
.restaunsa-idocs__row--modified:focus-within .restaunsa-idocs__actions-column,
.restaunsa-idocs__row--modified.restaunsa-idocs__row--selected .restaunsa-idocs__cell--readonly,
.restaunsa-idocs__row--modified.restaunsa-idocs__row--selected .restaunsa-idocs__key-column,
.restaunsa-idocs__row--modified.restaunsa-idocs__row--selected .restaunsa-idocs__actions-column {
    color: #102a43 !important;
    background-color: #cce2ff !important;
}

.restaunsa-idocs__row--modified a {
    color: #174f86;
}

.restaunsa-idocs__cell--modified,
.restaunsa-idocs__row--modified:hover .restaunsa-idocs__cell--modified {
    color: #241c00 !important;
    background-color: #ffe28a !important;
    box-shadow: inset 3px 0 0 #8a6500;
}

.restaunsa-idocs__row--modified:focus-within .restaunsa-idocs__cell--modified,
.restaunsa-idocs__row--modified.restaunsa-idocs__row--selected .restaunsa-idocs__cell--modified {
    color: #102a43 !important;
    background-color: #d6e8ff !important;
    box-shadow: inset 3px 0 0 #1b6ec2;
}

.restaunsa-idocs__cell-input {
    color: #212529;
    background: #fff;
    border-color: #6c757d;
}

.restaunsa-idocs__cell--modified .restaunsa-idocs__cell-input {
    color: #212529;
    background: #fffdf5;
    border-color: #8a6500;
}

.restaunsa-idocs__modified-label {
    color: #5c4500;
    font-weight: 700;
}

.restaunsa-idocs__status {
    color: #212529;
    border: 1px solid transparent;
    font-weight: 700;
    white-space: normal;
}

.restaunsa-idocs__status--active {
    color: #102a43;
    background-color: #d6e8ff;
    border-color: #7eafe6;
}

.restaunsa-idocs__status--success {
    color: #123b1e;
    background-color: #d9f2df;
    border-color: #79b88a;
}

.restaunsa-idocs__status--pending {
    color: #29343d;
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.restaunsa-idocs__status--warning {
    color: #493800;
    background-color: #fff1b8;
    border-color: #c9a227;
}

.restaunsa-idocs__status--error {
    color: #611a15;
    background-color: #f8d7da;
    border-color: #c96b74;
}

.restaunsa-idocs__text {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.restaunsa-idocs__summary-grid {
    row-gap: .25rem;
}

.restaunsa-idocs__summary-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .5rem;
}

.restaunsa-idocs__audit-trigger {
    color: #212529;
    border: 1px solid #ced4da;
}

.restaunsa-idocs__drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 1080;
    background: rgba(0, 0, 0, .42);
    animation: restaunsa-idocs-fade-in .18s ease-out;
}

.restaunsa-idocs__drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1090;
    display: flex;
    flex-direction: column;
    width: min(38rem, 92vw);
    max-width: 100%;
    min-width: 0;
    color: #212529;
    background: #fff;
    border-left: 1px solid #adb5bd;
    box-shadow: -8px 0 24px rgba(0, 0, 0, .18);
    animation: restaunsa-idocs-drawer-in .22s ease-out;
}

.restaunsa-idocs__drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex: 0 0 auto;
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.restaunsa-idocs__close-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    align-self: flex-start;
    width: 2.75rem;
    min-width: 2.75rem;
    height: 2.75rem;
    min-height: 2.75rem;
    margin-left: auto;
    padding: 0;
    color: #212529;
    background: #fff;
    border: 1px solid #adb5bd;
    border-radius: .2rem;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 3;
}

.restaunsa-idocs__close-button:hover {
    color: #102a43;
    background: #e9ecef;
    border-color: #6c757d;
}

.restaunsa-idocs__close-button:focus,
.restaunsa-idocs__close-button:focus-visible {
    color: #102a43;
    background: #e7f1ff;
    border-color: #1b6ec2;
    outline: 3px solid rgba(27, 110, 194, .4);
    outline-offset: 2px;
}

.restaunsa-idocs__close-button-icon {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
}

.restaunsa-idocs__drawer-status {
    flex: 0 0 auto;
    padding: .75rem 1.25rem;
    border-bottom: 1px solid #e9ecef;
}

.restaunsa-idocs__drawer-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    overscroll-behavior: contain;
}

.restaunsa-idocs__audit-item {
    margin-bottom: .75rem;
    padding: .85rem 1rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-left: 4px solid #6c757d;
}

.restaunsa-idocs__audit-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .65rem;
}

.restaunsa-idocs__audit-details {
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: .3rem .65rem;
    margin: 0;
}

.restaunsa-idocs__audit-details dt,
.restaunsa-idocs__audit-details dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.restaunsa-idocs__audit-details dt {
    color: #495057;
}

.restaunsa-idocs__audit-changes {
    margin-top: .75rem;
    padding-top: .65rem;
    border-top: 1px solid #e9ecef;
}

.restaunsa-idocs__audit-changes summary {
    color: #174f86;
    font-weight: 700;
    cursor: pointer;
}

.restaunsa-idocs__audit-change-grid {
    display: grid;
    grid-template-columns: minmax(7rem, .75fr) minmax(10rem, 1fr) minmax(10rem, 1fr);
    min-width: 32rem;
    margin-top: .65rem;
    border-top: 1px solid #dee2e6;
    border-left: 1px solid #dee2e6;
}

.restaunsa-idocs__audit-change-grid > * {
    min-width: 0;
    margin: 0;
    padding: .45rem .55rem;
    border-right: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.restaunsa-idocs__audit-change-heading {
    color: #29343d;
    background: #f1f3f5;
    font-size: .78rem;
    font-weight: 700;
}

.restaunsa-idocs__audit-change-field {
    color: #29343d;
    background: #f8f9fa;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.restaunsa-idocs__audit-value {
    max-width: 100%;
    max-height: 8rem;
    overflow: auto;
    color: #212529;
    background: #fff;
    font-family: var(--font-mono, Consolas, "Courier New", monospace);
    font-size: .76rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    word-break: break-word;
}

.restaunsa-idocs__audit-value:focus {
    outline: 3px solid rgba(27, 110, 194, .35);
    outline-offset: -3px;
}

.restaunsa-idocs__audit-raw {
    display: grid;
    gap: .35rem;
    margin-top: .65rem;
}

.restaunsa-idocs__audit-changes[open] {
    overflow-x: auto;
}

@keyframes restaunsa-idocs-drawer-in {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes restaunsa-idocs-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .restaunsa-idocs__drawer,
    .restaunsa-idocs__drawer-overlay {
        animation: none;
    }
}

.restaunsa-idocs__summary-item {
    min-width: 0;
    overflow-wrap: anywhere;
}

.restaunsa-idocs__modal-backdrop {
    z-index: 1070;
    overflow-y: auto;
    padding: 1rem;
    background-color: rgba(0, 0, 0, .5);
}

.restaunsa-idocs__modal-dialog {
    position: relative;
    z-index: 1;
    width: auto;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.restaunsa-idocs__modal-content {
    position: relative;
    pointer-events: auto;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    overflow-wrap: anywhere;
}

.restaunsa-idocs__modal-content .modal-header {
    align-items: flex-start;
    gap: .75rem;
}

.restaunsa-idocs__modal-content .modal-title {
    min-width: 0;
    overflow-wrap: anywhere;
}

.restaunsa-idocs__progress {
    min-width: 0;
    max-width: 100%;
}

.restaunsa-idocs__counts {
    max-height: 16rem;
    overflow-y: auto;
}

.restaunsa-idocs__counts dt,
.restaunsa-idocs__counts dd {
    min-width: 0;
    overflow-wrap: anywhere;
}

.restaunsa-idocs .btn:focus-visible,
.restaunsa-idocs .form-control:focus-visible,
.restaunsa-idocs .page-link:focus-visible,
.restaunsa-idocs .nav-link:focus-visible {
    outline: 3px solid rgba(27, 110, 194, .45);
    outline-offset: 2px;
}

@media (max-width: 767.98px) {
    .restaunsa-idocs {
        padding-left: .75rem !important;
        padding-right: .75rem !important;
    }

    .restaunsa-idocs h2 {
        font-size: 1.5rem;
    }

    .restaunsa-idocs__toolbar,
    .restaunsa-idocs__toolbar-row,
    .restaunsa-idocs__pagination,
    .restaunsa-idocs__summary-header {
        align-items: stretch !important;
        flex-direction: column;
    }

    .restaunsa-idocs__actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .restaunsa-idocs__actions .btn,
    .restaunsa-idocs__toolbar .btn,
    .restaunsa-idocs__date-context .btn {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .restaunsa-idocs__date-context {
        display: grid;
        gap: .5rem;
        width: 100%;
    }

    .restaunsa-idocs__view-context {
        align-items: stretch;
        flex-direction: column;
        gap: .15rem;
    }

    .restaunsa-idocs__section-heading {
        align-items: stretch !important;
        flex-direction: column;
    }

    .restaunsa-idocs__section-heading .btn {
        width: 100%;
    }

    .restaunsa-idocs__tab--active {
        position: sticky;
        left: 0;
        z-index: 1;
    }

    .restaunsa-idocs__tabs-current {
        display: block;
    }

    .restaunsa-idocs__summary-header .badge {
        align-self: flex-start;
    }

    .restaunsa-idocs__summary-actions {
        align-items: stretch;
        justify-content: flex-start;
        width: 100%;
    }

    .restaunsa-idocs__audit-trigger {
        width: 100%;
    }

    .restaunsa-idocs__drawer {
        width: 100%;
    }

    .restaunsa-idocs__drawer-header,
    .restaunsa-idocs__drawer-status,
    .restaunsa-idocs__drawer-body {
        padding-left: .85rem;
        padding-right: .85rem;
    }

    .restaunsa-idocs__audit-details {
        grid-template-columns: 1fr;
        gap: .1rem;
    }

    .restaunsa-idocs__audit-details dd {
        margin-bottom: .4rem;
    }

    .restaunsa-idocs__audit-change-grid {
        grid-template-columns: minmax(6rem, .65fr) minmax(9rem, 1fr) minmax(9rem, 1fr);
        min-width: 28rem;
    }

    .restaunsa-idocs__summary-item {
        flex: 0 0 100%;
        max-width: 100%;
        padding-bottom: .5rem;
        border-bottom: 1px solid #e9ecef;
    }

    .restaunsa-idocs__table-wrap::after {
        display: block;
        padding: .35rem .5rem;
        color: #6c757d;
        background: #f8f9fa;
        content: "Deslice horizontalmente para ver todas las columnas.";
        font-size: .75rem;
        text-align: center;
    }

    .restaunsa-idocs__table th,
    .restaunsa-idocs__table td {
        font-size: .8125rem;
    }

    .restaunsa-idocs__key-column {
        width: 8rem !important;
        min-width: 8rem !important;
        max-width: 8rem !important;
    }

    .restaunsa-idocs__actions-column {
        width: 7.75rem !important;
        min-width: 7.75rem !important;
        max-width: 7.75rem !important;
    }

    .restaunsa-idocs__actions-column .btn {
        width: 100%;
        padding-left: .35rem;
        padding-right: .35rem;
        white-space: normal;
    }

    .restaunsa-idocs__modal-backdrop {
        padding: .5rem;
    }

    .restaunsa-idocs__modal-dialog {
        margin-top: .5rem;
        margin-bottom: .5rem;
    }

    .restaunsa-idocs__modal-content .modal-footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .restaunsa-idocs__modal-content .modal-footer .btn {
        width: 100%;
        margin: .25rem 0;
    }

    .restaunsa-idocs__diff-filter {
        max-width: none;
        width: 100%;
    }

    .restaunsa-idocs__diff-raw {
        margin-left: .5rem;
    }

    .restaunsa-idocs__diff-toggle {
        flex-basis: 100%;
        padding-left: calc(3.25rem + .5rem);
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .restaunsa-idocs__actions .btn {
        flex: 1 1 calc(33.333% - .5rem);
    }

    .restaunsa-idocs__summary-item {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

.restaunsa-idocs__modal-dialog.modal-xl {
    max-width: min(1200px, 96vw);
}

.restaunsa-idocs__diff-filter {
    max-width: 320px;
}

.restaunsa-idocs__diff-list {
    max-height: 65vh;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: .375rem;
}

.restaunsa-idocs__diff-item {
    padding: .35rem .6rem;
    border-bottom: 1px solid #f1f3f5;
    font-size: .82rem;
}

.restaunsa-idocs__diff-item:last-child {
    border-bottom: none;
}

.restaunsa-idocs__diff-item:hover {
    background: #f8f9fa;
}

.restaunsa-idocs__diff-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: .35rem .5rem;
}

.restaunsa-idocs__diff-toggle {
    flex: 0 0 auto;
    padding: 0 0 0 .25rem;
    font-size: .72rem;
    white-space: nowrap;
    text-decoration: none;
}

.restaunsa-idocs__diff-toggle:hover {
    text-decoration: underline;
}

.restaunsa-idocs__diff-raw {
    margin: .4rem 0 .15rem calc(3.25rem + .5rem);
    font-size: .76rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: .3rem;
    padding: .4rem .5rem;
}

.restaunsa-idocs__diff-raw div + div {
    margin-top: .2rem;
}

.restaunsa-idocs__diff-raw-label {
    display: inline-block;
    min-width: 3.5rem;
    color: #6c757d;
    font-weight: 600;
}

.restaunsa-idocs__diff-raw code {
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.restaunsa-idocs__diff-linea {
    flex: 0 0 auto;
    min-width: 3.25rem;
    color: #6c757d;
    font-family: var(--bs-font-monospace, monospace);
    font-size: .78rem;
    padding-top: .15rem;
}

.restaunsa-idocs__diff-fields {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    flex: 1 1 auto;
    min-width: 0;
}

.restaunsa-idocs__diff-field {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: .3rem;
    padding: .15rem .45rem;
    max-width: 100%;
    flex-wrap: wrap;
}

.restaunsa-idocs__diff-field-label {
    font-size: .7rem;
    font-weight: 700;
    color: #6c757d;
}

.restaunsa-idocs__diff-old,
.restaunsa-idocs__diff-new {
    font-size: .78rem;
    padding: .05rem .3rem;
    border-radius: .25rem;
    overflow-wrap: anywhere;
}

.restaunsa-idocs__diff-old {
    background: #fdecea;
    color: #842029;
}

.restaunsa-idocs__diff-new {
    background: #e6f6ea;
    color: #0f5132;
}

.restaunsa-idocs__diff-arrow {
    color: #adb5bd;
    font-size: .7rem;
}

.restaunsa-idocs__diff-delta {
    font-size: .7rem;
    font-weight: 700;
    color: #6a4a00;
    background: #fff3cd;
    border-radius: .25rem;
    padding: .05rem .3rem;
    margin-left: .1rem;
}
