body.app-shell {
    font-family: "IBM Plex Sans", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(22, 184, 166, 0.10), transparent 40%),
        radial-gradient(circle at bottom right, rgba(19, 84, 122, 0.08), transparent 45%),
        linear-gradient(180deg, #eef2f6 0%, #dee6ee 100%);
    background-attachment: fixed;
    color: #18212b;
    min-height: 100vh;
}

.app-layout {
    display: flex;
    min-height: 100vh;
}

.app-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.app-content main {
    /* flex-basis:auto (em vez do 0% de `flex:1`) faz o item usar o proprio
       `height` (ex.: calc(100vh - 4.25rem) das paginas *-main) como base,
       entao a pagina nao cresce com o conteudo — quem rola e o painel
       interno de cada tela. */
    flex: 1 1 auto;
    min-height: 0;
}

.navbar-custom {
    background: linear-gradient(
        100deg,
        var(--navbar-color-start, #041422) 0%,
        var(--navbar-color-start, #041422) 48%,
        var(--navbar-color-end, #008545) 100%
    );
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    isolation: isolate;
    min-height: 4.25rem;
    padding: 0.75rem 1.5rem;
    position: relative;
}

.navbar-custom__layout {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.navbar-custom__layout > * {
    position: relative;
    z-index: 1;
}

.navbar-brand-wrap {
    min-width: 0;
}

.navbar-brand-mark {
    border: 0.3rem solid #16b8a6;
    border-radius: 999px;
    display: inline-block;
    height: 1.55rem;
    width: 1.55rem;
}

.navbar-brand-text {
    color: #ffffff;
    font-weight: 700;
}

.navbar-toggle-btn,
.navbar-user-btn {
    color: #ffffff;
}

.navbar-toggle-btn:hover,
.navbar-user-btn:hover {
    color: #ffffff;
}

.navbar-divider {
    background: rgba(255, 255, 255, 0.35);
    display: inline-block;
    height: 1.75rem;
    width: 1px;
}

.navbar-page-title {
    color: #ffffff;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.navbar-client-brand {
    align-items: center;
    color: #ffffff;
    display: inline-flex;
    gap: 0.6rem;
    justify-self: center;
    min-width: 0;
}

/* Fallback (sem logo configurado): chip com o monograma do cliente. */
.navbar-client-brand__monogram {
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 0.45rem;
    color: #ffffff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.68rem;
    font-weight: 700;
    height: 2rem;
    justify-content: center;
    letter-spacing: 0;
    padding: 0.2rem;
    width: 2rem;
}

/* Logo colorido do cliente com contorno branco hugando o corpo da marca
   (sem retangulo): o traco separa o logo do gradiente escuro da navbar.
   Grossura do contorno: ajuste APENAS --logo-outline (1px fino, 2px medio,
   3px grosso). As 4 direcoes usam essa mesma medida. */
.navbar-client-brand__logo {
    --logo-outline: 0.0px;
    display: block;
    filter: none;
    flex: 0 0 auto;
    /* TAMANHO da logo (desktop): aumente/diminua este `height`. Teto seguro
       ~2.75rem — acima disso a navbar (min-height 4.25rem) cresce e desalinha
       o calc(100vh - 4.25rem) das telas. Para ir maior, suba tambem o
       min-height da .navbar-custom e esses calc(). */
    height: 3.00rem;
    max-width: min(52vw, 17rem);
    object-fit: contain;
    width: auto;
}

.navbar-client-brand__name {
    font-size: 1.05rem;
    font-weight: 700;
    white-space: nowrap;
}

.navbar-user-wrap {
    justify-self: end;
}

.navbar-icon-btn {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: #041422;
    display: inline-flex;
    height: 2.25rem;
    justify-content: center;
    position: relative;
    width: 2.25rem;
}

.navbar-icon-btn:hover {
    background: rgba(22, 184, 166, 0.1);
    color: #16b8a6;
}

.navbar-badge-dot {
    background: #cc3366;
    border: 2px solid #ffffff;
    border-radius: 999px;
    height: 0.65rem;
    position: absolute;
    right: 0.45rem;
    top: 0.4rem;
    width: 0.65rem;
}

.user-avatar {
    align-items: center;
    background: #16b8a6;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 700;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.navbar-custom .user-avatar {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #ffffff;
}

@media (max-width: 767.98px) {
    .navbar-custom {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .navbar-custom__layout {
        gap: 0.55rem;
    }

    .navbar-brand-wrap {
        gap: 0.65rem !important;
    }

    .navbar-page-title {
        max-width: 7rem;
    }

    .navbar-client-brand {
        gap: 0.35rem;
    }

    .navbar-client-brand__logo {
        /* TAMANHO da logo (mobile): espelha o height do desktop, um pouco menor. */
        height: 2.3rem;
        max-width: 52vw;
    }

    .navbar-client-brand__name {
        font-size: 0.88rem;
    }

    .navbar-user-btn {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

.page-hero {
    padding: 0.5rem 0 0.25rem;
}

.card {
    border-radius: 1rem;
}

.alert {
    border: 0;
}

.login-main {
    background:
        radial-gradient(circle at 50% 28%, rgba(22, 184, 166, 0.16), transparent 20rem),
        radial-gradient(circle at 50% 78%, rgba(204, 51, 102, 0.08), transparent 24rem),
        #041422;
    min-height: 100vh;
    overflow: hidden;
    padding: 0;
}

.login-container {
    height: 100vh;
    max-width: none;
    padding: 0;
}

.login-screen {
    align-items: center;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
    height: 100%;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.login-screen::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 2rem 2rem;
    content: "";
    inset: 0;
    mask-image: radial-gradient(circle at center, black 0, transparent 72%);
    opacity: 0.45;
    pointer-events: none;
    position: absolute;
}

.login-brand,
.login-form {
    position: relative;
    z-index: 1;
}

.login-brand {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    text-align: center;
}

.login-brand__logo {
    display: block;
    max-width: 14rem;
    width: min(14rem, 58vw);
}

.login-brand strong {
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
}

.login-form {
    display: grid;
    gap: 1.1rem;
    max-width: 28rem;
    width: min(28rem, 100%);
}

.login-error {
    background: rgba(204, 51, 102, 0.14);
    border: 1px solid rgba(255, 98, 139, 0.45);
    border-radius: 0.45rem;
    color: #ffdbe5;
    font-size: 0.9rem;
    padding: 0.8rem 0.95rem;
}

.login-field {
    display: grid;
    gap: 0.45rem;
}

.login-field span {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.95rem;
    font-weight: 600;
}

.login-field input {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 0.45rem;
    color: #ffffff;
    font: inherit;
    min-height: 3.65rem;
    outline: 0;
    padding: 0 1rem;
    transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
    width: 100%;
}

.login-field input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #16b8a6;
    box-shadow: 0 0 0 0.18rem rgba(22, 184, 166, 0.18);
}

.login-submit {
    background: linear-gradient(135deg, #20c6bb 0%, #0a9f92 100%);
    border: 0;
    border-radius: 0.45rem;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    min-height: 3.65rem;
    padding: 0 1rem;
    transition: transform 120ms ease, filter 120ms ease;
}

.login-submit:hover,
.login-submit:focus {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.login-submit:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.clinic-sidebar {
    background: #041422;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 1.5rem 0.75rem;
    transition: width 160ms ease, padding 160ms ease;
    width: 15rem;
}

.clinic-sidebar__brand {
    align-items: center;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.5rem 0.75rem 1.75rem;
    text-decoration: none;
}

.clinic-sidebar__brand:hover {
    color: #ffffff;
}

.clinic-sidebar__brand-logo {
    display: block;
    height: auto;
    max-width: 8rem;
    transition: max-width 160ms ease;
}

.clinic-sidebar__project-name {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    transition: opacity 120ms ease;
}

.clinic-sidebar__nav {
    display: grid;
    gap: 0.35rem;
}

.clinic-sidebar__link {
    align-items: center;
    border-left: 0.2rem solid transparent;
    border-radius: 0.25rem;
    color: rgba(255, 255, 255, 0.78);
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem 0.9rem;
    text-decoration: none;
    transition: background-color 120ms ease, color 120ms ease, padding 160ms ease;
}

.clinic-sidebar__link i {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    line-height: 1;
}

.clinic-sidebar__link:hover,
.clinic-sidebar__link:focus {
    background: rgba(22, 184, 166, 0.12);
    color: #ffffff;
}

.clinic-sidebar__link.active {
    background: rgba(22, 184, 166, 0.16);
    border-left-color: #16b8a6;
    color: #ffffff;
    font-weight: 700;
}

.clinic-sidebar__link.active i {
    color: #16b8a6;
}

.app-layout.sidebar-collapsed .clinic-sidebar {
    padding-left: 0.55rem;
    padding-right: 0.55rem;
    width: 5rem;
}

.app-layout.sidebar-collapsed .clinic-sidebar__brand {
    padding-left: 0;
    padding-right: 0;
}

.app-layout.sidebar-collapsed .clinic-sidebar__brand-logo {
    max-width: 3.1rem;
}

.app-layout.sidebar-collapsed .clinic-sidebar__project-name,
.app-layout.sidebar-collapsed .clinic-sidebar__link span {
    height: 1px;
    margin: -1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

.app-layout.sidebar-collapsed .clinic-sidebar__nav {
    justify-items: center;
}

.app-layout.sidebar-collapsed .clinic-sidebar__link {
    border-left-color: transparent;
    justify-content: center;
    padding: 0.9rem;
    width: 3.25rem;
}

.app-layout.sidebar-collapsed .clinic-sidebar__link.active {
    border-left-color: transparent;
    box-shadow: inset 0 0 0 1px rgba(22, 184, 166, 0.35);
}

.home-main {
    height: calc(100vh - 4.25rem);
    min-height: 0;
    overflow: hidden;
    padding: 1rem;
}

.home-container {
    height: 100%;
    max-width: none;
    min-height: 0;
    padding: 0;
}

.home-shell {
    display: grid;
    gap: 1rem;
    grid-template-rows: auto auto minmax(0, 1fr);
    height: 100%;
    min-height: 0;
}

.home-header {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.home-header h1 {
    color: #041422;
    font-size: 1.65rem;
    font-weight: 700;
    margin: 0;
}

.home-header p {
    color: #5d6875;
    margin: 0.2rem 0 0;
}

.home-updated {
    align-items: center;
    color: #526173;
    display: inline-flex;
    font-size: 0.9rem;
    gap: 0.5rem;
    white-space: nowrap;
}

.home-updated i {
    color: #0a8f82;
}

.home-overview-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.home-metric {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(4, 20, 34, 0.1);
    border-radius: 0.5rem;
    display: flex;
    gap: 1rem;
    min-height: 7rem;
    padding: 1rem;
}

.home-metric__icon {
    align-items: center;
    color: #0a9f92;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 2.2rem;
    justify-content: center;
    line-height: 0.8;
}

.home-metric--danger .home-metric__icon {
    color: #cc3366;
}

.home-metric--warning .home-metric__icon {
    color: #b87700;
}

.home-metric__body {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.home-metric__body > span {
    color: #263445;
    font-size: 0.9rem;
    font-weight: 600;
}

.home-metric__body strong {
    color: #0a9f92;
    font-size: 2rem;
    line-height: 1;
}

.home-metric--danger .home-metric__body strong {
    color: #cc3366;
}

.home-metric--warning .home-metric__body strong {
    color: #b87700;
}

.home-trend {
    align-items: center;
    color: #667485;
    display: inline-flex;
    font-size: 0.78rem;
    gap: 0.25rem;
}

.home-trend--up {
    color: #0a8f82;
}

.home-trend--down {
    color: #cc3366;
}

.home-workbench {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) 24rem;
    min-height: 0;
    overflow: hidden;
}

.home-table-panel,
.home-queue-panel,
.home-bottlenecks-panel {
    background: #ffffff;
    border: 1px solid rgba(4, 20, 34, 0.1);
    border-radius: 0.5rem;
    min-width: 0;
}

.home-table-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.home-panel-heading {
    align-items: center;
    border-bottom: 1px solid rgba(4, 20, 34, 0.08);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 1.15rem;
}

.home-panel-heading h2 {
    color: #041422;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}

.home-panel-heading p {
    color: #667485;
    font-size: 0.82rem;
    margin: 0.2rem 0 0;
}

.home-table-wrap {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.home-table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 62rem;
    width: 100%;
}

.home-table th {
    background: #ffffff;
    color: #334150;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.85rem 1rem;
    position: sticky;
    text-transform: uppercase;
    top: 0;
    z-index: 1;
}

.home-table td {
    border-top: 1px solid rgba(4, 20, 34, 0.08);
    color: #25313d;
    font-size: 0.86rem;
    padding: 0.8rem 1rem;
    vertical-align: middle;
}

.home-table tbody tr:hover td {
    background: rgba(22, 184, 166, 0.05);
}

.home-side-panel {
    display: grid;
    gap: 1rem;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
    overflow: auto;
}

.home-queue-list {
    display: grid;
    gap: 0;
}

.home-queue-item {
    border-bottom: 1px solid rgba(4, 20, 34, 0.08);
    display: grid;
    gap: 0.9rem;
    padding: 1rem 1.15rem;
}

.home-queue-item:last-child {
    border-bottom: 0;
}

.home-queue-item__header {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.home-queue-item__header > span {
    align-items: center;
    color: #041422;
    display: flex;
    gap: 0.5rem;
    min-width: 0;
}

.home-queue-item__header i {
    color: #0a8f82;
    font-size: 1.25rem;
}

.home-queue-item__header small {
    color: #667485;
    font-size: 0.76rem;
}

.home-queue-counts {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-queue-counts span {
    display: grid;
    gap: 0.1rem;
}

.home-queue-counts strong {
    font-size: 1.25rem;
    line-height: 1;
}

.home-queue-counts small {
    color: #667485;
    font-size: 0.72rem;
}

.home-segment-count--sucesso {
    color: #0a9f92;
}

.home-segment-count--revisao {
    color: #f2a007;
}

.home-segment-count--erro {
    color: #cc3366;
}

.home-segment-count--pendente {
    color: #526173;
}

.home-progress {
    background: #dce3ea;
    border-radius: 999px;
    display: flex;
    height: 0.38rem;
    overflow: hidden;
}

.home-progress__segment--sucesso {
    background: #0a9f92;
}

.home-progress__segment--revisao {
    background: #f2a007;
}

.home-progress__segment--erro {
    background: #cc3366;
}

.home-progress__segment--pendente {
    background: #9aa7b4;
}

.home-bottlenecks {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 1rem 1.15rem;
}

.home-bottlenecks div {
    align-items: start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.home-bottlenecks dt {
    color: #667485;
    font-size: 0.78rem;
    font-weight: 700;
}

.home-bottlenecks dd {
    color: #18212b;
    font-size: 0.88rem;
    font-weight: 700;
    margin: 0;
    text-align: right;
}

.home-empty {
    align-items: center;
    color: #667485;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.45rem;
    justify-content: center;
    min-height: 18rem;
    padding: 1.5rem;
    text-align: center;
}

.home-empty i {
    color: #16b8a6;
    font-size: 2rem;
}

.home-empty strong {
    color: #18212b;
}

.approval-main {
    height: calc(100vh - 4.25rem);
    min-height: 0;
    overflow: hidden;
    padding: 1rem;
}

.approval-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: none;
    min-height: 0;
    padding-left: 0;
    padding-right: 0;
}

.approval-shell {
    display: grid;
    flex: 1;
    gap: 1rem;
    grid-template-columns: minmax(12rem, 15rem) minmax(20rem, 1.2fr) minmax(21rem, 0.95fr);
    height: 100%;
    min-height: 0;
}

.revisao-shell {
    display: grid;
    flex: 1;
    gap: 1rem;
    grid-template-columns: minmax(20rem, 1.3fr) minmax(21rem, 0.95fr);
    height: 100%;
    min-height: 0;
}

.revisao-shell .approval-action-bar {
    align-items: start;
}

.revisao-shell .approval-validation-scroll {
    overflow: auto;
    overscroll-behavior: contain;
}

.revisao-shell .approval-form-grid {
    flex: 0 0 auto;
    overflow: visible;
}

.revisao-shell .approval-form-grid--readonly input,
.revisao-shell .approval-form-grid--readonly textarea {
    pointer-events: none;
}

.revisao-shell .approval-actions form {
    /* `.approval-form-panel form` (seletor descendente, nao so filho
       direto) tambem pega esses forms pequenos dos botoes de destino e
       forca `height:100%`/`flex:1` neles — display:contents neutraliza
       isso, deixando o <button> como item direto do flex de
       .approval-actions, do tamanho certo. */
    display: contents;
}

.approval-queue-panel,
.approval-document-panel,
.approval-form-panel {
    background: #ffffff;
    border: 1px solid rgba(4, 20, 34, 0.08);
    border-radius: 0.5rem;
    box-shadow: 0 0.8rem 2rem rgba(4, 20, 34, 0.06);
    min-width: 0;
}

.approval-queue-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.approval-queue-count {
    align-items: center;
    border-bottom: 1px solid rgba(4, 20, 34, 0.08);
    display: flex;
    justify-content: space-between;
    padding: 1rem;
}

.approval-queue-count span {
    color: #5c6873;
    font-size: 0.85rem;
    font-weight: 600;
}

.approval-queue-count strong {
    align-items: center;
    background: rgba(22, 184, 166, 0.12);
    border-radius: 999px;
    color: #0a8f82;
    display: inline-flex;
    font-size: 1rem;
    height: 2rem;
    justify-content: center;
    min-width: 2rem;
    padding: 0 0.7rem;
}

#bulkDiscardPeriodForm,
#bulkDiscardConfirmForm {
    /* `.approval-form-panel form` (seletor descendente) pega qualquer
       <form> dentro do painel, inclusive esses dois — que sao so "forms de
       ligacao" vazios (os campos de verdade vivem no cabecalho, ligados via
       atributo `form="..."`). Sem isso, cada um vira height:100%/flex:1 e
       ocupa um espaco em branco enorme no meio do painel. */
    display: contents;
}

.approval-bulk-discard {
    border-bottom: 1px solid rgba(4, 20, 34, 0.08);
    flex: 0 0 auto;
}

.approval-bulk-discard--header {
    border-bottom: none;
    position: relative;
}

.approval-bulk-discard--header .approval-bulk-discard-body {
    background: #ffffff;
    border: 1px solid rgba(4, 20, 34, 0.12);
    border-radius: 0.5rem;
    box-shadow: 0 0.8rem 2rem rgba(4, 20, 34, 0.12);
    left: 0;
    padding: 1rem;
    position: absolute;
    top: calc(100% + 0.4rem);
    width: 22rem;
    z-index: 20;
}

.approval-bulk-discard summary {
    align-items: center;
    color: #041422;
    cursor: pointer;
    display: flex;
    font-size: 0.82rem;
    font-weight: 700;
    justify-content: space-between;
    padding: 0.85rem 1rem;
}

.approval-bulk-discard summary::-webkit-details-marker {
    display: none;
}

.approval-bulk-discard summary i.bi-chevron-down {
    color: #6b7785;
    transition: transform 140ms ease;
}

.approval-bulk-discard[open] summary i.bi-chevron-down {
    transform: rotate(180deg);
}

.approval-bulk-discard summary:hover {
    color: #0a8f82;
}

.approval-bulk-discard summary:hover i.bi-chevron-down {
    color: #0a8f82;
}

.approval-bulk-discard-body {
    padding: 0 1rem 1rem;
}

.approval-bulk-discard-form {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 1fr;
}

.approval-bulk-discard-form button {
    grid-column: 1 / -1;
}

.approval-bulk-discard-form .approval-field input {
    /* .approval-field input usa 1rem, pensado pro painel largo da direita —
       a sidebar da fila e bem mais estreita, entao o texto da data corta. */
    font-size: 0.85rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.approval-bulk-discard-preview {
    background: #fff6f6;
    border: 1px solid rgba(220, 53, 69, 0.22);
    border-radius: 0.4rem;
    margin-top: 0.75rem;
    padding: 0.65rem;
}

.approval-bulk-discard-preview p {
    color: #4d5a66;
    font-size: 0.8rem;
    margin: 0 0 0.5rem;
}

.approval-bulk-discard-preview .approval-field {
    margin-bottom: 0.5rem;
}

.approval-bulk-discard--header {
    border: 1px solid rgba(4, 20, 34, 0.1);
    border-radius: 0.45rem;
    flex: 1 1 18rem;
    min-width: 16rem;
}

.approval-bulk-discard--header summary {
    padding: 0.55rem 0.7rem;
}

.approval-bulk-discard--header .approval-bulk-discard-body {
    padding: 0 0.7rem 0.7rem;
}

.approval-queue-list {
    display: grid;
    gap: 0.65rem;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 0.75rem;
}

.approval-queue-item {
    border: 1px solid rgba(4, 20, 34, 0.09);
    border-radius: 0.45rem;
    color: #18212b;
    display: grid;
    gap: 0.2rem;
    padding: 0.8rem;
    text-decoration: none;
}

.approval-queue-item:hover,
.approval-queue-item.active {
    border-color: #16b8a6;
    box-shadow: inset 0.2rem 0 0 #16b8a6;
    color: #18212b;
}

.approval-queue-item__title {
    font-weight: 700;
}

.approval-queue-item small {
    color: #6b7785;
}

.approval-document-panel,
.approval-form-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.approval-panel-header {
    align-items: flex-start;
    border-bottom: 1px solid rgba(4, 20, 34, 0.08);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem;
}

.approval-stopwatch {
    align-items: center;
    background: rgba(22, 184, 166, 0.1);
    border: 1px solid rgba(22, 184, 166, 0.24);
    border-radius: 0.45rem;
    color: #0a8f82;
    display: grid;
    flex: 0 0 auto;
    gap: 0.05rem 0.45rem;
    grid-template-columns: auto auto;
    padding: 0.55rem 0.7rem;
}

.approval-stopwatch i {
    font-size: 1.1rem;
    grid-row: 1 / span 2;
}

.approval-stopwatch span {
    color: #526173;
    font-size: 0.7rem;
    font-weight: 700;
}

.approval-stopwatch strong {
    color: #041422;
    font-size: 0.95rem;
    line-height: 1;
}

.approval-panel-header h2 {
    color: #041422;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}

.approval-panel-header p {
    color: #6b7785;
    font-size: 0.82rem;
    margin: 0.25rem 0 0;
}

.approval-viewer-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.approval-viewer-toolbar button,
.approval-viewer-upload {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(4, 20, 34, 0.14);
    border-radius: 0.35rem;
    color: #041422;
    display: inline-flex;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.approval-viewer-upload {
    cursor: pointer;
    margin: 0;
}

.approval-viewer-upload input {
    height: 1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

.approval-viewer-toolbar button:hover,
.approval-viewer-upload:hover {
    border-color: #16b8a6;
    color: #0a8f82;
}

.approval-document-stage {
    align-items: center;
    background: #f3f6f8;
    display: flex;
    flex: 1;
    justify-content: center;
    overflow: auto;
    padding: 1rem;
}

.approval-document-frame,
.approval-document-image {
    background: #ffffff;
    border: 1px solid rgba(4, 20, 34, 0.12);
    box-shadow: 0 1rem 2rem rgba(4, 20, 34, 0.12);
    transition: transform 140ms ease;
}

.approval-document-frame {
    height: 100%;
    width: 100%;
}

.approval-document-image {
    display: block;
    max-height: 100%;
    max-width: 100%;
}

.approval-document-placeholder,
.approval-empty {
    align-items: center;
    color: #6b7785;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
    min-height: 12rem;
    overflow-wrap: anywhere;
    padding: 1.5rem;
    text-align: center;
}

.approval-document-placeholder i,
.approval-empty i {
    color: #16b8a6;
    font-size: 2rem;
}

.approval-document-placeholder strong,
.approval-empty strong {
    color: #18212b;
}

.approval-form-panel form {
    display: flex;
    flex: 1;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.approval-validation-scroll {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.approval-form-grid {
    display: grid;
    flex: 1 1 auto;
    gap: 0.85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 1rem;
}

.approval-field {
    display: grid;
    gap: 0.35rem;
}

.approval-field span {
    color: #4d5a66;
    font-size: 0.78rem;
    font-weight: 700;
}

.approval-field input,
.approval-field select,
.approval-field textarea {
    background: #ffffff;
    border: 1px solid rgba(4, 20, 34, 0.18);
    border-radius: 0.35rem;
    color: #18212b;
    font: inherit;
    min-height: 2.35rem;
    padding: 0.55rem 0.65rem;
    width: 100%;
}

.approval-field textarea {
    resize: vertical;
}

.approval-field textarea[data-autogrow-textarea] {
    max-height: 12rem;
    overflow: hidden auto;
    resize: none;
}

.approval-field input:focus,
.approval-field select:focus,
.approval-field textarea:focus {
    border-color: #16b8a6;
    box-shadow: 0 0 0 0.18rem rgba(22, 184, 166, 0.14);
    outline: 0;
}

.approval-field--unmatched .approval-search-select-trigger,
.approval-field--unmatched input,
.approval-field--unmatched select,
.approval-field--unmatched textarea,
.approval-field--invalid .approval-search-select-trigger,
.approval-field--invalid input,
.approval-field--invalid select,
.approval-field--invalid textarea {
    background: #fff6f6;
    border-color: rgba(220, 53, 69, 0.62);
    box-shadow: 0 0 0 0.12rem rgba(220, 53, 69, 0.08);
}

.approval-field--unmatched > span,
.approval-field--invalid > span {
    color: #b4232f;
}

.approval-field--full {
    grid-column: 1 / -1;
}

.approval-form-grid--readonly input,
.approval-form-grid--readonly textarea {
    background: #f4f6f8;
    color: #4d5a66;
    cursor: default;
}

.approval-form-grid--readonly input:focus,
.approval-form-grid--readonly textarea:focus {
    box-shadow: none;
    outline: 0;
}

.approval-exam-list {
    display: grid;
    gap: 0.5rem;
}

.approval-parecer-list {
    display: grid;
    gap: 0.5rem;
}

.approval-exam-row {
    align-items: start;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.approval-exam-row-fields {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: minmax(0, 1fr) 10rem;
}

.approval-exam-remove {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: #c6283d;
    display: flex;
    font-size: 0.85rem;
    height: 1.5rem;
    justify-content: center;
    padding: 0;
    width: 1.5rem;
}

.approval-parecer-row {
    align-items: center;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.approval-exam-remove:hover {
    background: transparent;
    color: #8f1d2c;
}

.approval-exam-remove:focus-visible {
    outline: 2px solid rgba(198, 40, 61, 0.45);
    outline-offset: 2px;
}

.approval-exam-add {
    align-items: center;
    background: transparent;
    border: 1px dashed rgba(4, 20, 34, 0.24);
    border-radius: 0.35rem;
    color: #16b8a6;
    display: inline-flex;
    font-weight: 600;
    gap: 0.35rem;
    margin-top: 0.5rem;
    padding: 0.45rem 0.75rem;
}

.approval-exam-add:hover {
    background: rgba(22, 184, 166, 0.08);
    border-color: #16b8a6;
}

.approval-exam-row--unmatched,
.approval-exam-row--invalid {
    background: #fff6f6;
    border: 1px solid rgba(220, 53, 69, 0.22);
    border-radius: 0.45rem;
    padding: 0.5rem;
}

.approval-exam-row--unmatched .approval-search-select-trigger,
.approval-exam-row--unmatched input,
.approval-exam-row--unmatched select,
.approval-exam-row--invalid .approval-search-select-trigger,
.approval-exam-row--invalid input,
.approval-exam-row--invalid select {
    border-color: rgba(220, 53, 69, 0.62);
}

.approval-action-bar {
    border-top: 1px solid rgba(4, 20, 34, 0.08);
    display: grid;
    flex: 0 0 auto;
    gap: 0.85rem;
    grid-template-columns: 1fr;
    margin-top: auto;
    padding: 1rem;
    position: relative;
    z-index: 5;
}

.approval-discard-reasons {
    min-width: 0;
}

.approval-reason-select {
    position: relative;
}

.approval-native-select-hidden {
    display: none;
}

.approval-search-select {
    min-width: 0;
}

.approval-reason-trigger,
.approval-search-select-trigger {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(4, 20, 34, 0.18);
    border-radius: 0.35rem;
    color: #18212b;
    display: flex;
    font: inherit;
    justify-content: space-between;
    min-height: 2.35rem;
    padding: 0.55rem 0.65rem;
    text-align: left;
    width: 100%;
}

.approval-reason-trigger span,
.approval-search-select-trigger span {
    color: #334150;
    font-size: 0.85rem;
    font-weight: 500;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.approval-reason-trigger i,
.approval-search-select-trigger i {
    color: #6b7785;
    flex: 0 0 auto;
    transition: transform 120ms ease;
}

.approval-reason-select.open .approval-reason-trigger,
.approval-search-select.open .approval-search-select-trigger {
    border-color: #16b8a6;
    box-shadow: 0 0 0 0.18rem rgba(22, 184, 166, 0.14);
}

.approval-reason-select.open .approval-reason-trigger i,
.approval-search-select.open .approval-search-select-trigger i {
    transform: rotate(180deg);
}

.approval-reason-menu,
.approval-search-select-menu {
    background: #ffffff;
    border: 1px solid rgba(4, 20, 34, 0.12);
    border-radius: 0.45rem;
    box-shadow: inset 0 0 0 1px rgba(4, 20, 34, 0.02);
    display: none;
    margin-top: 0.45rem;
    padding: 0.5rem;
}

.approval-reason-menu {
    bottom: calc(100% + 0.45rem);
    left: 0;
    margin-top: 0;
    position: absolute;
    right: 0;
    z-index: 20;
}

.approval-reason-select.open .approval-reason-menu,
.approval-search-select.open .approval-search-select-menu {
    display: grid;
    gap: 0.5rem;
}

.approval-reason-search-wrap {
    align-items: center;
    border: 1px solid rgba(4, 20, 34, 0.14);
    border-radius: 0.35rem;
    display: flex;
    gap: 0.4rem;
    padding: 0 0.55rem;
}

.approval-reason-search-wrap i {
    color: #6b7785;
}

.approval-reason-search {
    border: 0;
    color: #18212b;
    font: inherit;
    min-height: 2rem;
    outline: 0;
    width: 100%;
}

.approval-reason-list {
    display: grid;
    gap: 0.4rem;
    max-height: min(15rem, 32vh);
    overflow: auto;
    padding-right: 0.25rem;
}

.approval-search-select-list {
    display: grid;
    gap: 0.35rem;
    max-height: min(15rem, 32vh);
    overflow: auto;
    padding-right: 0.25rem;
}

.approval-search-select-option {
    background: #f7f9fb;
    border: 1px solid rgba(4, 20, 34, 0.08);
    border-radius: 0.35rem;
    color: #334150;
    font: inherit;
    font-size: 0.82rem;
    min-height: 2rem;
    padding: 0.4rem 0.55rem;
    text-align: left;
}

.approval-search-select-option:hover,
.approval-search-select-option.active {
    background: rgba(22, 184, 166, 0.1);
    border-color: rgba(22, 184, 166, 0.42);
    color: #041422;
}

.approval-search-select-empty {
    color: #6b7785;
    font-size: 0.8rem;
    padding: 0.45rem 0.55rem;
}

.approval-reason-list label {
    align-items: center;
    background: #f7f9fb;
    border: 1px solid rgba(4, 20, 34, 0.08);
    border-radius: 0.35rem;
    color: #334150;
    display: flex;
    font-size: 0.78rem;
    gap: 0.4rem;
    min-height: 2rem;
    padding: 0.35rem 0.5rem;
}

.approval-reason-list input {
    accent-color: #16b8a6;
    flex: 0 0 auto;
    height: 0.95rem;
    width: 0.95rem;
}

.approval-observation textarea {
    min-height: 4.5rem;
}

.approval-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.approval-actions .btn {
    align-items: center;
    display: inline-flex;
    font-weight: 700;
    min-height: 2.65rem;
}

.approval-actions .btn-success {
    background: #16b8a6;
    border-color: #16b8a6;
}

.approval-actions .btn-success:hover {
    background: #0a8f82;
    border-color: #0a8f82;
}

.approval-paused {
    opacity: 0.72;
}

.approval-empty--large {
    flex: 1;
    min-height: 28rem;
}

@media (max-width: 1199.98px) {
    .approval-shell {
        grid-template-columns: minmax(13rem, 16rem) minmax(0, 1fr);
        overflow: auto;
    }

    .approval-form-panel {
        grid-column: 1 / -1;
    }
}

@media (max-width: 991.98px) {
    .approval-main {
        height: auto;
        overflow: visible;
    }

    .approval-shell {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
    }

    .approval-form-grid,
    .approval-action-bar {
        grid-template-columns: 1fr;
    }

    .approval-exam-row {
        grid-template-columns: 1fr;
    }

    .approval-actions {
        justify-content: stretch;
    }

    .approval-actions .btn {
        justify-content: center;
        flex: 1 1 10rem;
    }
}

.execution-main {
    height: calc(100vh - 4.25rem);
    min-height: 0;
    overflow: hidden;
    padding: 0;
}

.execution-container {
    height: 100%;
    min-height: 0;
    padding: 1rem;
}

.execution-shell {
    display: grid;
    gap: 1rem;
    grid-template-rows: auto auto minmax(0, 1fr);
    height: 100%;
    min-height: 0;
}

.execution-kpis {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.execution-kpi {
    background: #ffffff;
    border: 1px solid rgba(4, 20, 34, 0.08);
    border-radius: 0.5rem;
    box-shadow: 0 0.6rem 1.6rem rgba(4, 20, 34, 0.05);
    display: grid;
    gap: 0.2rem;
    min-width: 0;
    padding: 0.9rem 1rem;
}

.execution-kpi span {
    color: #5c6873;
    font-size: 0.78rem;
    font-weight: 700;
}

.execution-kpi strong {
    color: #041422;
    font-size: 1.35rem;
    line-height: 1.1;
}

.execution-kpi--danger strong {
    color: #c4314b;
}

.execution-kpi--warning strong {
    color: #ab6b00;
}

.execution-kpi--success strong {
    color: #0a8f82;
}

.execution-filters,
.execution-table-panel,
.execution-detail-panel {
    background: #ffffff;
    border: 1px solid rgba(4, 20, 34, 0.08);
    border-radius: 0.5rem;
    box-shadow: 0 0.8rem 2rem rgba(4, 20, 34, 0.06);
}

.execution-filters {
    padding: 1rem;
}

.execution-filter-form {
    align-items: end;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(14rem, 1.4fr) repeat(4, minmax(9rem, 1fr)) auto;
}

.execution-filter-form label,
.execution-reprocess-note {
    display: grid;
    gap: 0.35rem;
}

.execution-filter-form span,
.execution-reprocess-note span {
    color: #4d5a66;
    font-size: 0.76rem;
    font-weight: 700;
}

.execution-filter-form input,
.execution-filter-form select,
.execution-reprocess-note textarea {
    background: #ffffff;
    border: 1px solid rgba(4, 20, 34, 0.18);
    border-radius: 0.35rem;
    color: #18212b;
    font: inherit;
    min-height: 2.35rem;
    padding: 0.5rem 0.65rem;
    width: 100%;
}

.execution-filter-form input:focus,
.execution-filter-form select:focus,
.execution-reprocess-note textarea:focus {
    border-color: #16b8a6;
    box-shadow: 0 0 0 0.18rem rgba(22, 184, 166, 0.14);
    outline: 0;
}

.execution-filter-form .btn-success,
.execution-detail-actions .btn-success {
    background: #16b8a6;
    border-color: #16b8a6;
}

.execution-filter-form .btn-success:hover,
.execution-detail-actions .btn-success:hover {
    background: #0a8f82;
    border-color: #0a8f82;
}

.execution-workbench {
    align-items: stretch;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem);
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.execution-table-panel,
.execution-detail-panel {
    height: 100%;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.execution-table-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.execution-panel-heading {
    align-items: flex-start;
    border-bottom: 1px solid rgba(4, 20, 34, 0.08);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem;
}

.execution-panel-heading h2 {
    color: #041422;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}

.execution-panel-heading p {
    color: #6b7785;
    font-size: 0.82rem;
    margin: 0.25rem 0 0;
}

.execution-table-wrap {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.execution-processo-badge--app {
    background-color: #16b8a6;
    color: #ffffff;
}

.execution-processo-badge--soc {
    background-color: #3457d5;
    color: #ffffff;
}

.execution-processo-badge--ged {
    background-color: #7c5cbf;
    color: #ffffff;
}

.execution-btn-processo {
    border: none;
    color: #ffffff;
    flex: 0 0 auto;
    padding: 0.6rem 1.75rem;
    border-radius: 0.3rem;
    font-size: 1.0rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow:
        0 1px 2px rgba(4, 20, 34, 0.14),
        0 3px 8px rgba(4, 20, 34, 0.16);
    transition: transform 100ms ease, box-shadow 130ms ease, background-color 130ms ease;
}

/* Vence `.approval-actions .btn` (min-height/font-weight) por especificidade,
   deixando o botao com altura definida pelo padding — compacto. */
.approval-actions .execution-btn-processo {
    min-height: 2.4rem;
    font-weight: 600;
}

.approval-actions .execution-btn-processo:hover {
    transform: translateY(-1px);
    box-shadow:
        0 2px 4px rgba(4, 20, 34, 0.18),
        0 6px 16px rgba(4, 20, 34, 0.22);
}

.approval-actions .execution-btn-processo:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(4, 20, 34, 0.16);
}

.execution-btn-processo--app {
    background-color: #109c8d;
}

.execution-btn-processo--app:hover {
    background-color: #0d8578;
    color: #ffffff;
}

.execution-btn-processo--soc {
    background-color: #2f4fc9;
}

.execution-btn-processo--soc:hover {
    background-color: #2842ab;
    color: #ffffff;
}

.execution-btn-processo--ged {
    background-color: #6f4fb3;
}

.execution-btn-processo--ged:hover {
    background-color: #5b3f96;
    color: #ffffff;
}

.execution-pagination {
    align-items: center;
    border-top: 1px solid rgba(4, 20, 34, 0.08);
    display: flex;
    flex: 0 0 auto;
    justify-content: space-between;
    padding: 0.75rem 1rem;
}

.execution-pagination-info {
    color: #5c6873;
    font-size: 0.8rem;
}

.execution-pagination-controls {
    display: flex;
    gap: 0.5rem;
}

.execution-pagination-controls .disabled {
    opacity: 0.5;
    pointer-events: none;
}

.execution-table {
    border-collapse: collapse;
    min-width: 74rem;
    width: 100%;
}

.execution-table th {
    background: #f5f7fa;
    color: #4d5a66;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.75rem;
    text-transform: uppercase;
}

.execution-table td {
    border-top: 1px solid rgba(4, 20, 34, 0.08);
    color: #25313d;
    font-size: 0.86rem;
    padding: 0.75rem;
    vertical-align: middle;
}

.execution-table tr.active td {
    background: rgba(22, 184, 166, 0.08);
}

.execution-table-row {
    cursor: pointer;
}

.execution-table-row:hover td,
.execution-table-row:focus td {
    background: rgba(22, 184, 166, 0.05);
}

.execution-table-row:focus {
    outline: 0;
}

.execution-row-link {
    color: #041422;
    font-weight: 700;
    text-decoration: none;
}

.execution-row-link:hover {
    color: #0a8f82;
}

.execution-message {
    color: #6b7785;
    max-width: 18rem;
}

.execution-detail-panel {
    max-height: 100%;
    overflow: auto;
}

.execution-detail-grid,
.execution-context-list {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 1rem;
}

.execution-detail-grid div,
.execution-context-list div {
    min-width: 0;
}

.execution-detail-grid dt,
.execution-context-list dt {
    color: #6b7785;
    font-size: 0.74rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.execution-detail-grid dd,
.execution-context-list dd {
    color: #18212b;
    font-size: 0.86rem;
    margin: 0;
    overflow-wrap: anywhere;
}

.execution-timeline,
.execution-detail-section,
.execution-detail-actions,
.execution-dates,
.execution-dados-validados {
    border-top: 1px solid rgba(4, 20, 34, 0.08);
    padding: 1rem;
}

.execution-dados-validados .execution-detail-grid,
.execution-dates .execution-detail-grid {
    padding: 0 0 0.75rem;
}

.execution-exames-list {
    display: grid;
    gap: 0.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.execution-exames-list li {
    align-items: baseline;
    color: #18212b;
    display: flex;
    font-size: 0.86rem;
    gap: 0.5rem;
    justify-content: space-between;
}

.execution-exames-list small {
    color: #6b7785;
    white-space: nowrap;
}

.execution-timeline h3,
.execution-detail-section h3,
.execution-dates h3,
.execution-dados-validados h3 {
    color: #041422;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.execution-timeline-step {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: 0.85rem minmax(0, 1fr);
    padding: 0.4rem 0;
}

.execution-timeline-step > span {
    background: #c8d0d8;
    border-radius: 999px;
    height: 0.75rem;
    margin-top: 0.25rem;
    width: 0.75rem;
}

.execution-timeline-step--done > span {
    background: #16b8a6;
}

.execution-timeline-step--active > span {
    background: #2f80ed;
}

.execution-timeline-step--issue > span {
    background: #c4314b;
}

/* "Nao se aplica": etapa que o tipo de documento nao percorre. Neutro e
   esmaecido, com bolinha vazada — sem cor de status (nunca amarelo/revisao). */
.execution-timeline-step--na {
    opacity: 0.5;
}

.execution-timeline-step--na > span {
    background: transparent;
    border: 2px dashed #b3bcc6;
    box-sizing: border-box;
}

.execution-timeline-step--na small {
    font-style: italic;
}

.execution-timeline-step strong {
    color: #18212b;
    display: block;
    font-size: 0.86rem;
}

.execution-timeline-step small {
    color: #6b7785;
}

.execution-detail-message {
    background: #f7f9fb;
    border: 1px solid rgba(4, 20, 34, 0.08);
    border-radius: 0.35rem;
    color: #334150;
    font-size: 0.86rem;
    margin: 0;
    padding: 0.75rem;
    white-space: pre-wrap;
}

/* Ação sugerida: mesma caixa da mensagem, em teal para diferenciar
   "o que aconteceu" (mensagem, neutra) de "o que fazer" (orientação). */
.revisao-acao-sugerida {
    align-items: flex-start;
    background: rgba(10, 159, 146, 0.06);
    border: 1px solid rgba(10, 159, 146, 0.25);
    border-radius: 0.35rem;
    color: #1f4f4a;
    display: flex;
    font-size: 0.86rem;
    gap: 0.5rem;
    margin: 0;
    padding: 0.75rem;
    white-space: pre-wrap;
}

.revisao-acao-sugerida i {
    color: #0a9f92;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Legenda da marcação vermelha em "Dados validados". Reaproveita a paleta de
   `approval-field--unmatched` — mesmo significado ("sem vínculo no catálogo"),
   mesma cor — mas em caixa discreta: aqui é explicação, não erro de formulário. */
.revisao-sem-vinculo-legenda {
    align-items: flex-start;
    color: #b4232f;
    display: flex;
    font-size: 0.8rem;
    gap: 0.45rem;
    margin: 0 0 0.6rem;
}

.revisao-sem-vinculo-legenda i {
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.execution-detail-actions {
    display: grid;
    gap: 0.75rem;
}

.execution-reprocess-note {
    margin-bottom: 0.75rem;
}

.execution-empty {
    align-items: center;
    color: #6b7785;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
    min-height: 18rem;
    padding: 1.5rem;
    text-align: center;
}

.execution-empty i {
    color: #16b8a6;
    font-size: 2rem;
}

.execution-empty strong {
    color: #18212b;
}

.execution-empty--detail {
    min-height: 32rem;
}

@media (max-width: 1399.98px) {
    .home-overview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-workbench {
        grid-template-columns: 1fr;
        overflow: auto;
    }

    .home-side-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
        overflow: visible;
    }

    .execution-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .execution-filter-form {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .execution-workbench {
        grid-template-columns: 1fr;
        overflow: auto;
    }

    .execution-detail-panel {
        max-height: none;
        position: static;
    }
}

@media (max-width: 767.98px) {
    .home-main {
        height: auto;
        overflow: visible;
    }

    .home-shell {
        height: auto;
    }

    .home-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-overview-grid,
    .home-side-panel {
        grid-template-columns: 1fr;
    }

    .execution-kpis,
    .execution-filter-form,
    .execution-detail-grid,
    .execution-context-list {
        grid-template-columns: 1fr;
    }

    .execution-main {
        height: auto;
        overflow: visible;
    }

    .execution-shell {
        height: auto;
    }
}

/* ==========================================================================
   Dashboard de Graficos (apps/graficos) — ver docs/tela-graficos.md
   ========================================================================== */
.grafico-main {
    height: calc(100vh - 4.25rem);
    overflow: hidden;
    padding: 0;
}

.grafico-container {
    height: 100%;
    padding: 1rem;
}

.grafico-shell {
    display: grid;
    gap: 1rem;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    height: 100%;
}

.grafico-header {
    align-items: flex-end;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.grafico-periodo {
    align-items: center;
    background: #f4f6f8;
    border: 1px solid rgba(4, 20, 34, 0.18);
    border-radius: 0.35rem;
    color: #4d5a66;
    display: inline-flex;
    font-weight: 600;
    min-height: 2.35rem;
    padding: 0.45rem 0.6rem;
    white-space: nowrap;
}

.grafico-filter-form {
    align-items: flex-end;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.grafico-filter-form label {
    display: grid;
    gap: 0.3rem;
}

.grafico-filter-form span {
    color: #4d5a66;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.grafico-filter-form select,
.grafico-filter-form input[data-date-mask] {
    background: #ffffff;
    border: 1px solid rgba(4, 20, 34, 0.18);
    border-radius: 0.35rem;
    color: #18212b;
    font: inherit;
    min-height: 2.35rem;
    min-width: 12rem;
    padding: 0.45rem 0.6rem;
}

/* Data ocupa menos que os selects -- caberia 12rem, mas fica desproporcional */
.grafico-filter-form input[data-date-mask] {
    min-width: 9.5rem;
}

.grafico-filter-erro {
    color: #cc3366;
    font-size: 0.8rem;
    margin: 0.6rem 0 0;
}

.grafico-filter-form select[name="empresa"] {
    max-width: 100%;
    width: 20rem;
}

.grafico-native-select-hidden {
    height: 1px;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    width: 1px;
}

.grafico-company-select {
    position: relative;
    width: 20rem;
}

.grafico-company-select__trigger {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(4, 20, 34, 0.18);
    border-radius: 0.35rem;
    color: #18212b;
    display: flex;
    font: inherit;
    gap: 0.5rem;
    justify-content: space-between;
    min-height: 2.35rem;
    overflow: hidden;
    padding: 0.45rem 0.6rem;
    text-align: left;
    width: 100%;
}

.grafico-company-select__trigger span,
.grafico-company-select__option {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.grafico-company-select__menu {
    background: #ffffff;
    border: 1px solid rgba(4, 20, 34, 0.18);
    border-radius: 0.35rem;
    box-shadow: 0 0.5rem 1rem rgba(4, 20, 34, 0.14);
    display: none;
    left: 0;
    overflow: hidden;
    position: absolute;
    top: calc(100% + 0.25rem);
    width: 100%;
    z-index: 20;
}

.grafico-company-select.open .grafico-company-select__menu {
    display: block;
}

.grafico-company-select__search {
    border: 0;
    border-bottom: 1px solid rgba(4, 20, 34, 0.12);
    font: inherit;
    outline: 0;
    padding: 0.55rem 0.65rem;
    width: 100%;
}

.grafico-company-select__list {
    max-height: 12rem;
    overflow-y: auto;
}

.grafico-company-select__option {
    background: #ffffff;
    border: 0;
    color: #18212b;
    display: block;
    font: inherit;
    padding: 0.55rem 0.65rem;
    text-align: left;
    width: 100%;
}

.grafico-company-select__option:hover,
.grafico-company-select__option.active {
    background: #e8f7f5;
    color: #087d73;
}

.grafico-company-select__empty {
    color: #667485;
    font-size: 0.82rem;
    padding: 0.65rem;
}

/* Faixa de KPIs — painel unico com blocos divididos (ver Imagem 5) */
.grafico-kpis {
    align-items: stretch;
    background: #ffffff;
    border: 1px solid rgba(4, 20, 34, 0.08);
    border-radius: 0.5rem;
    box-shadow: 0 0.6rem 1.6rem rgba(4, 20, 34, 0.05);
    display: flex;
    flex-wrap: wrap;
    padding: 0.35rem 0;
}

.grafico-kpi {
    align-items: center;
    border-left: 1px solid rgba(4, 20, 34, 0.08);
    display: flex;
    flex: 1 1 12rem;
    gap: 0.7rem;
    min-width: 11rem;
    padding: 0.75rem 1rem;
}

.grafico-kpi:first-child {
    border-left: 0;
}

/* Grupo IA/SOC/GED levemente destacado do bloco principal */
.grafico-kpi--etapa {
    flex-basis: 8rem;
    min-width: 7.5rem;
}

/* Icone do KPI: glifo colorido, SEM fundo/chip. TAMANHO = font-size
   (aumente/diminua aqui). A cor vem dos modificadores abaixo. */
.grafico-kpi__icon {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 2.1rem;
    justify-content: center;
    line-height: 0.8;
}

.grafico-kpi__icon--brand {
    color: #16b8a6;
}

.grafico-kpi__icon--success {
    color: #0a9f92;
}

.grafico-kpi__icon--danger {
    color: #cc3366;
}

.grafico-kpi__icon--muted {
    color: #0a8f82;
}

.grafico-kpi__body {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
}

.grafico-kpi__label {
    color: #5d6875;
    font-size: 0.72rem;
    font-weight: 600;
}

.grafico-kpi__value {
    color: #18212b;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.15;
}

.grafico-kpi__sub {
    color: #8895a6;
    font-size: 0.68rem;
}

.grafico-charts {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1.4fr 1.4fr 0.7fr;
    min-height: 0;
}

.grafico-chart-panel {
    background: #ffffff;
    border: 1px solid rgba(4, 20, 34, 0.08);
    border-radius: 0.5rem;
    box-shadow: 0 0.8rem 2rem rgba(4, 20, 34, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 0;
    padding: 1rem;
}

/* Cabecalho do grafico: titulo + legenda no topo */
.grafico-chart-head {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    justify-content: space-between;
}

.grafico-chart-head h2 {
    color: #041422;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.grafico-chart-head h2 small {
    color: #8895a6;
    font-weight: 600;
}

.grafico-chart-note {
    color: #8895a6;
    font-size: 0.68rem;
    margin: 0;
}

/* --- Linha --- */
.grafico-line {
    display: flex;
    flex: 1 1 auto;
    gap: 0.4rem;
    min-height: 8rem;
}

.grafico-line__yaxis {
    color: #8895a6;
    display: flex;
    flex-direction: column;
    font-size: 0.66rem;
    justify-content: space-between;
    padding: 0.1rem 0;
    text-align: right;
    width: 2.2rem;
}

.grafico-line__plot {
    flex: 1 1 auto;
    position: relative;
}

.grafico-line__svg {
    height: 100%;
    position: absolute;
    width: 100%;
}

.grafico-line__grid {
    stroke: #e4e9ef;
    stroke-dasharray: 1.5 1.5;
    stroke-width: 0.3;
}

.grafico-line__dot {
    border-radius: 50%;
    height: 0.4rem;
    position: absolute;
    transform: translate(-50%, -50%);
    width: 0.4rem;
}

.grafico-line__labels {
    color: #6b7785;
    display: flex;
    font-size: 0.68rem;
}

.grafico-line__labels-spacer {
    flex: 0 0 2.6rem;
}

.grafico-line__labels span:not(.grafico-line__labels-spacer) {
    flex: 1 1 0;
    text-align: center;
}

/* --- Barras empilhadas 100% --- */
.grafico-bars {
    display: flex;
    flex: 1 1 auto;
    gap: 0.4rem;
    min-height: 13rem;
}

.grafico-bars__yaxis {
    color: #8895a6;
    display: flex;
    flex-direction: column;
    font-size: 0.66rem;
    justify-content: space-between;
    text-align: right;
    padding-bottom: 1.55rem;
    width: 2.2rem;
}

.grafico-bars__plot {
    flex: 1 1 auto;
    min-width: 0;
    padding-bottom: 1.55rem;
    position: relative;
}

.grafico-bars__grid {
    bottom: 1.55rem;
    display: flex;
    flex-direction: column;
    inset: 0 0 1.55rem 0;
    justify-content: space-between;
    pointer-events: none;
    position: absolute;
}

.grafico-bars__grid span {
    border-top: 1px solid #e4e9ef;
    width: 100%;
}

.grafico-bars__grid span:last-child {
    border-bottom: 1px solid #b7c1cc;
    border-top: 0;
}

.grafico-bars__columns {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(4, minmax(3rem, 6rem));
    height: 100%;
    justify-content: space-evenly;
    position: relative;
}

.grafico-bar {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-height: 0;
    text-align: center;
}

.grafico-bar__stack {
    border-bottom: 1px solid #b7c1cc;
    border-left: 1px solid #b7c1cc;
    border-radius: 0;
    display: flex;
    /* column-reverse: 1o segmento (sucesso) vai pra BASE, ultimo (erro) pro
       topo -> ordem visual sucesso / revisao / erro de baixo pra cima. */
    flex-direction: column-reverse;
    flex: 1 1 auto;
    overflow: hidden;
}

.grafico-bar__seg {
    align-items: center;
    display: flex;
    flex-shrink: 1;
    justify-content: center;
    /* O percentual continua sendo a base do segmento, mas toda faixa com
       dados reserva espaco suficiente para quantidade + percentual. Quando
       uma faixa pequena cresce, a de sucesso absorve a diferenca visual. */
    min-height: 2.5rem;
    overflow: hidden;
    width: 100%;
}

.grafico-bar__seg span {
    color: #ffffff;
    display: flex;
    flex-direction: column;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
}

.grafico-bar__seg small {
    font-size: 0.62rem;
    font-weight: 500;
    opacity: 0.9;
}

.grafico-bar__seg strong {
    font-size: 0.72rem;
    font-weight: 700;
}

.grafico-bar__label {
    color: #18212b;
    font-size: 0.8rem;
    font-weight: 700;
}

/* --- Donut --- */
.grafico-donut {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 6rem;
    position: relative;
}

.grafico-donut__svg {
    height: auto;
    max-height: 8.5rem;
    width: 100%;
}

.grafico-donut__center {
    display: flex;
    flex-direction: column;
    left: 50%;
    position: absolute;
    text-align: center;
    top: 50%;
    transform: translate(-50%, -50%);
}

.grafico-donut__center strong {
    color: #041422;
    font-size: 1.25rem;
}

.grafico-donut__center span {
    color: #6b7785;
    font-size: 0.72rem;
}

.grafico-donut__legend {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.grafico-donut__legend li {
    align-items: center;
    display: flex;
    font-size: 0.76rem;
    justify-content: space-between;
}

.grafico-donut__legend-label {
    align-items: center;
    color: #4d5a66;
    display: flex;
    gap: 0.4rem;
}

.grafico-donut__legend-label i {
    border-radius: 3px;
    height: 0.7rem;
    width: 0.7rem;
}

.grafico-donut__legend-val {
    color: #18212b;
    font-weight: 600;
}

.grafico-donut__legend-val small {
    color: #8895a6;
    font-weight: 500;
}

.grafico-donut__legend-total {
    border-top: 1px solid rgba(4, 20, 34, 0.08);
    margin-top: 0.15rem;
    padding-top: 0.35rem;
}

.grafico-donut__legend-total .grafico-donut__legend-label {
    color: #18212b;
    font-weight: 700;
    padding-left: 1.1rem;
}

.grafico-chart-panel--status .grafico-chart-head {
    display: block;
}

.grafico-chart-panel--status .grafico-legend {
    margin-top: 0.55rem;
}

/* Legenda */
.grafico-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.grafico-legend--stacked {
    flex-direction: column;
    gap: 0.35rem;
}

.grafico-legend__item {
    align-items: center;
    color: #4d5a66;
    display: flex;
    font-size: 0.75rem;
    gap: 0.35rem;
}

.grafico-legend__item i {
    border-radius: 3px;
    display: inline-block;
    height: 0.7rem;
    width: 0.7rem;
}

.grafico-legend__item strong {
    color: #18212b;
    margin-left: 0.2rem;
}

.grafico-legend__dash {
    border-radius: 0 !important;
    height: 0.18rem !important;
    width: 1.1rem !important;
}

/* Tabela por empresa */
.grafico-table-panel {
    border-radius: 0;
    min-height: 0;
    overflow: hidden;
    padding: 0;
}

.grafico-company-table {
    min-width: 52rem;
    table-layout: fixed;
}

.grafico-company-table__empresa {
    width: 18%;
}

.grafico-company-table__fichas {
    width: 12%;
}

.grafico-company-table__status {
    width: 14%;
}

.grafico-company-table__taxa {
    width: 18%;
}

.grafico-company-table__tempo {
    width: 10%;
}

.grafico-company-table th,
.grafico-company-table td {
    padding: 0.5rem 0.65rem;
}

.grafico-company-table th:not(:last-child),
.grafico-company-table td:not(:last-child) {
    border-right: 1px solid rgba(4, 20, 34, 0.08);
}

.grafico-company-table thead th {
    background: #6d767e;
    color: #ffffff;
}

.grafico-company-table thead th:not(:last-child) {
    border-right-color: rgba(255, 255, 255, 0.16);
}

.grafico-company-table td:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.grafico-company-table td small {
    color: #6b7785;
    font-size: 0.72rem;
}

.grafico-company-table__total td {
    background: #f3f6f8;
    font-weight: 700;
}

.grafico-taxa-cell {
    align-items: center;
    display: flex;
    gap: 0.5rem;
}

.grafico-company-table .grafico-taxa-cell {
    gap: 0.35rem;
}

.grafico-taxa-cell .home-progress {
    flex: 1 1 auto;
    min-width: 4rem;
}

.grafico-company-table .grafico-taxa-cell .home-progress {
    min-width: 3rem;
}

.grafico-taxa-cell span {
    color: #18212b;
    font-size: 0.78rem;
    font-weight: 600;
    min-width: 3rem;
    text-align: right;
}

.grafico-empty {
    color: #6b7785;
    padding: 1.5rem;
    text-align: center;
}

@media (max-width: 1199.98px) {
    .grafico-charts {
        grid-template-columns: 1fr 1fr;
    }
}


@media (max-width: 767.98px) {
    .grafico-main {
        height: auto;
        overflow: visible;
    }

    .grafico-shell {
        height: auto;
    }

    .grafico-charts {
        grid-template-columns: 1fr;
    }
}

/* ========================================================================
   Configuracao — acoes de sincronizacao do cliente
   ======================================================================== */
.config-main {
    height: calc(100vh - 4.25rem);
    min-height: 0;
    overflow: hidden;
    padding: 0;
}

.config-container {
    height: 100%;
    min-height: 0;
    padding: 1rem 1.25rem;
}

.config-shell {
    display: grid;
    gap: 1rem;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    height: 100%;
    min-height: 0;
}

.config-header,
.config-history-panel,
.config-action-card {
    background: #ffffff;
    border: 1px solid rgba(4, 20, 34, 0.08);
    border-radius: 0.5rem;
    box-shadow: 0 0.7rem 1.7rem rgba(4, 20, 34, 0.05);
}

.config-header {
    align-items: center;
    display: flex;
    min-height: 6rem;
    padding: 1.1rem 1.25rem;
}

.config-eyebrow {
    color: #0a8f82;
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.config-header h1,
.config-section-heading h2 {
    color: #041422;
    font-weight: 700;
    margin: 0;
}

.config-header h1 {
    font-size: clamp(1.6rem, 2.2vw, 2.15rem);
}

.config-header p,
.config-section-heading p {
    color: #607080;
    font-size: 0.86rem;
    margin: 0.25rem 0 0;
}

.config-actions-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
}

.config-action-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.05rem 1.2rem;
}

.config-action-heading {
    align-items: flex-start;
    display: flex;
    gap: 0.9rem;
    min-height: 5.2rem;
}

.config-action-icon {
    align-items: center;
    background: rgba(22, 184, 166, 0.12);
    border-radius: 0.55rem;
    color: #0a9f96;
    display: inline-flex;
    flex: 0 0 3.2rem;
    font-size: 1.7rem;
    height: 3.2rem;
    justify-content: center;
}

.config-action-card:nth-child(2) .config-action-icon {
    background: rgba(51, 87, 213, 0.1);
    color: #3457d5;
}

.config-action-copy {
    min-width: 0;
}

.config-action-copy h2 {
    color: #041422;
    font-size: 1.08rem;
    font-weight: 700;
    margin: 0.15rem 0 0.3rem;
}

.config-action-copy p {
    color: #607080;
    font-size: 0.82rem;
    line-height: 1.4;
    margin: 0;
}

.config-action-divider {
    border-top: 1px solid rgba(4, 20, 34, 0.09);
    margin: 0.95rem 0;
}

.config-action-details {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin: 0;
}

.config-action-details dt {
    color: #607080;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.config-action-details dd {
    align-items: center;
    color: #18212b;
    display: flex;
    font-size: 0.82rem;
    gap: 0.4rem;
    margin: 0;
    min-height: 1.8rem;
}

.config-action-details dd > i {
    color: #607080;
    font-size: 1rem;
}

.config-status {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 700;
    gap: 0.4rem;
    padding: 0.32rem 0.65rem;
}

.config-status-dot {
    background: currentColor;
    border-radius: 50%;
    display: inline-block;
    height: 0.55rem;
    width: 0.55rem;
}

.config-status--info {
    background: #dff0ff;
    color: #1474d4;
}

.config-status--success {
    background: #d8f7e8;
    color: #0b9f62;
}

.config-status--danger {
    background: #ffe5ea;
    color: #c4314b;
}

.config-status--muted {
    background: #e9eef2;
    color: #5d7182;
}

.config-action-footer {
    align-items: end;
    display: flex;
    flex: 1;
    justify-content: flex-end;
    margin-top: 0.85rem;
}

.config-action-footer form,
.config-action-button {
    width: 100%;
}

.config-action-button {
    align-items: center;
    background: #16b8a6;
    border: 1px solid #16b8a6;
    border-radius: 0.4rem;
    color: #ffffff;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    gap: 0.5rem;
    justify-content: center;
    min-height: 2.55rem;
    padding: 0.55rem 0.8rem;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.config-action-button:hover:not(:disabled) {
    background: #0a8f82;
    border-color: #0a8f82;
}

.config-action-button:disabled {
    cursor: wait;
    opacity: 0.68;
}

.config-history-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.config-section-heading {
    align-items: center;
    border-bottom: 1px solid rgba(4, 20, 34, 0.08);
    display: flex;
    justify-content: space-between;
    padding: 0.9rem 1.1rem;
}

.config-section-heading h2 {
    font-size: 1rem;
}

.config-section-heading > i {
    color: #0a8f82;
    font-size: 1.35rem;
}

.config-history-wrap {
    min-height: 0;
    overflow: auto;
}

.config-history-table {
    margin: 0;
    min-width: 46rem;
}

.config-history-table th {
    background: #f5f7fa;
    color: #607080;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.6rem 0.85rem;
    text-transform: uppercase;
}

.config-history-table td {
    border-top: 1px solid rgba(4, 20, 34, 0.07);
    color: #25313d;
    font-size: 0.8rem;
    padding: 0.6rem 0.85rem;
    vertical-align: middle;
}

.config-cancel-form {
    display: inline-block;
    margin-left: 0.65rem;
}

.config-cancel-button {
    background: transparent;
    border: 0;
    color: #b42318;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.25rem;
}

.config-cancel-button:hover {
    color: #8f1d14;
    text-decoration: underline;
}

.config-empty {
    color: #6b7785;
    display: block;
    padding: 1rem;
    text-align: center;
}

.config-footer {
    align-items: center;
    color: #607080;
    display: flex;
    font-size: 0.72rem;
    justify-content: space-between;
    padding: 0 0.25rem;
}

.config-footer i {
    color: #0b9f62;
    font-size: 0.55rem;
    margin-right: 0.25rem;
    vertical-align: middle;
}

@media (max-width: 767.98px) {
    .config-main {
        height: auto;
        overflow: visible;
    }

    .config-container,
    .config-shell {
        height: auto;
    }

    .config-actions-grid,
    .config-action-details {
        grid-template-columns: 1fr;
    }

    .config-history-panel {
        min-height: 18rem;
    }

    .config-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
        padding-bottom: 0.25rem;
    }
}
