:root {
    --green: #19b45a;
    --green-dark: #0d9146;
    --navy: #172838;
    --ink: #171d23;
    --muted: #6f7881;
    --line: #d9dee3;
    --soft: #f5f6f7;
    --sidebar: #353b41;
    --sidebar-active: #282c2f;
    --brand-bg: #d6d6d6;
    --brand-dark: #101f35;
    --brand-blue: #0b95a2;
    --brand-green: #0f9d52;
    --brand-orange: #f67220;
    --settings-black: #111315;
    --danger: #eb3f4c;
    --shadow: 0 14px 34px rgba(20, 32, 44, .12);
    --page-gutter: clamp(20px, 2.6vw, 40px);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font: 14px/1.45 Arial, Helvetica, sans-serif;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
textarea {
    border: 1px solid #bcc3c8;
    border-radius: 5px;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease;
}
textarea:focus {
    border-color: var(--green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(25, 180, 90, .1);
}
button, .button { cursor: pointer; }
body.is-request-pending,
body.is-request-pending * { cursor: progress; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Home */
.home-page {
    min-width: 320px;
    background: #dce6eb;
}
.home-screen {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}
.home-background {
    position: fixed;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    user-select: none;
}
.home-shell {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    min-height: 100vh;
    padding: 32px 44px 24px;
    flex-direction: column;
}
.home-header {
    display: flex;
    min-height: 68px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
}
.home-brand {
    display: block;
    width: clamp(175px, 14.2vw, 215px);
}
.home-brand img {
    display: block;
    width: 100%;
    height: auto;
}
.home-user-tools {
    display: flex;
    min-height: 45px;
    align-items: center;
    justify-content: flex-end;
    gap: 11px;
    color: #17212a;
    font-size: 12px;
}
.home-user-tools time {
    margin-right: 15px;
    white-space: nowrap;
}
.home-user-tools > strong {
    max-width: 180px;
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-profile-avatar.user-avatar {
    width: 39px;
    height: 39px;
    color: #111820;
    font-size: 32px;
}
.home-profile-avatar .profile-photo-current,
.home-profile-avatar .profile-photo-current img {
    width: 39px;
    height: 39px;
}
.home-tool-link {
    display: grid;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    place-items: center;
    color: #111820;
    text-decoration: none;
    transition: color .16s ease, background .16s ease;
}
.home-tool-link:hover,
.home-tool-link:focus-visible {
    color: var(--green);
    background: rgba(255, 255, 255, .48);
}
.home-logout-form {
    margin: 0 0 0 5px;
}
.home-logout-form button {
    display: flex;
    min-height: 34px;
    padding: 0 0 0 2px;
    border: 0;
    align-items: center;
    gap: 10px;
    color: #111820;
    background: transparent;
    font-size: 12px;
    font-weight: 700;
}
.home-logout-form button:hover,
.home-logout-form button:focus-visible {
    color: var(--green);
}
.home-content {
    display: grid;
    width: 100%;
    margin-top: clamp(38px, 5.4vh, 58px);
    padding-right: clamp(30px, 4.5vw, 72px);
    grid-template-columns: minmax(520px, 1fr) minmax(375px, 488px);
    align-items: start;
    gap: clamp(54px, 8vw, 132px);
}
.home-modules h1 {
    margin: 0 0 42px 5px;
    color: #1c2a36;
    font-size: clamp(17px, 1.35vw, 20px);
    font-weight: 400;
    line-height: 1.3;
}
.home-modules h1 strong {
    font-weight: 800;
}
.home-module-grid {
    display: grid;
    width: max-content;
    grid-template-columns: repeat(3, 163px);
    gap: 15px;
}
.home-module-card {
    position: relative;
    display: flex;
    width: 163px;
    height: 156px;
    padding: 20px;
    border-radius: 13px;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(21, 35, 46, .04);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
a.home-module-card:hover,
a.home-module-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(21, 35, 46, .16);
}
.home-module-card > i:not(.home-module-lock) {
    font-size: 22px;
}
.home-module-card > span {
    display: block;
    max-width: 100%;
    font-size: 15px;
    line-height: 1.16;
}
.home-module-card--dashboard {
    color: #26333e;
    background: rgba(255, 255, 255, .95);
}
.home-module-card--oba {
    background: linear-gradient(145deg, #1fc26a, #14ad58);
}
.home-module-card--documentos {
    background: #172838;
}
.home-module-card--fornecedores {
    background: linear-gradient(145deg, #ff7e24, #f36112);
}
.home-module-card--indicadores {
    background: linear-gradient(145deg, #16aab2, #078f99);
}
.home-module-card--checklist {
    background: #111315;
}
.home-module-card.is-disabled {
    filter: saturate(.45);
    opacity: .62;
    cursor: not-allowed;
}
.home-module-lock {
    position: absolute;
    top: 19px;
    right: 18px;
    color: currentColor;
    font-size: 11.5px;
    opacity: .7;
}
.home-banner-area {
    width: 100%;
}
.home-carousel {
    width: 100%;
}
.home-carousel-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    border: 5px solid #fff;
    border-radius: 10px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 13px 32px rgba(25, 35, 44, .26);
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}
.home-carousel.is-dragging .home-carousel-frame {
    cursor: grabbing;
}
.home-carousel-track {
    display: flex;
    width: 100%;
    transition: transform .58s cubic-bezier(.45, 0, .2, 1);
    will-change: transform;
}
.home-carousel.is-dragging .home-carousel-track {
    transition: none;
}
.home-carousel-slide {
    width: 100%;
    min-width: 100%;
    margin: 0;
    flex: 0 0 100%;
    aspect-ratio: 4 / 5;
}
.home-carousel-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    -webkit-user-drag: none;
}
.home-carousel-dots {
    display: flex;
    min-height: 34px;
    align-items: end;
    justify-content: center;
    gap: 10px;
}
.home-carousel-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    background: rgba(255, 255, 255, .46);
    transition: transform .16s ease, background .16s ease;
}
.home-carousel-dots button.is-active {
    transform: scale(1.12);
    background: #fff;
}
.home-banner-empty {
    display: grid;
    width: 100%;
    min-height: 300px;
    border: 5px solid rgba(255, 255, 255, .92);
    border-radius: 10px;
    place-content: center;
    gap: 12px;
    color: #53616c;
    background: rgba(255, 255, 255, .48);
    text-align: center;
}
.home-banner-empty i {
    font-size: 36px;
}
.home-footer {
    display: flex;
    min-height: 44px;
    margin-top: auto;
    align-items: end;
}
.home-footer img {
    display: block;
    width: 100px;
    height: auto;
    opacity: .48;
}
@media (prefers-reduced-motion: reduce) {
    .home-carousel-track {
        transition: none;
    }
}

/* Autenticação */
.auth-page { background: #eaf0f5; }
.auth-screen {
    display: flex;
    min-height: 100vh;
    padding: 30px 16px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    background: #edf2f7 url("../img/bg_login.jpg") center / cover no-repeat;
}
.auth-card {
    width: min(476px, 100%);
    min-height: 566px;
    padding: 52px 40px 36px;
    border: 1px solid rgba(255, 255, 255, .64);
    border-radius: 12px;
    background: rgba(255, 255, 255, .30);
    box-shadow: 0 24px 70px rgba(24, 43, 60, .16);
    backdrop-filter: blur(5px);
}
.auth-logo {
    display: block;
    width: min(250px, 80%);
    margin: 0 auto 44px;
}
.auth-form { display: grid; gap: 11px; }
.auth-heading {
    margin: -8px 0 0;
    text-align: center;
    font-size: 22px;
}
.auth-description {
    max-width: 360px;
    margin: 0 auto 14px;
    color: #56616b;
    text-align: center;
}
.auth-form input[type="email"],
.password-field input {
    width: 100%;
    height: 53px;
    padding: 0 16px;
    border: 1px solid rgba(21, 43, 61, .12);
    border-radius: 6px;
    outline: none;
    color: var(--ink);
    background: rgba(255, 255, 255, .94);
    font-size: 17px;
}
.auth-form input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(25, 180, 90, .14);
}
.password-field { position: relative; }
.password-field input { padding-right: 52px !important; }
.password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    width: 50px;
    height: 53px;
    border: 0;
    place-items: center;
    color: #7a848d;
    background: transparent;
}
.password-toggle i { font-size: 17px; }
.remember {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 2px 0 5px;
    color: #56616b;
    font-size: 13px;
}
.auth-submit {
    height: 76px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: var(--green);
    font-size: 17px;
    font-weight: 800;
    transition: background .18s ease, transform .18s ease;
}
.auth-submit.compact { height: 58px; margin-top: 6px; }
.auth-submit:hover { background: var(--green-dark); transform: translateY(-1px); }
.auth-help {
    margin: 46px 0 0;
    color: #3f4b55;
    text-align: center;
    line-height: 1.35;
}
.auth-help a { font-weight: 700; text-underline-offset: 3px; }
.auth-wsc-logo { width: 84px; opacity: .55; }

/* Licença indisponível */
.license-error-page {
    min-height: 100vh;
    background: #edf2f7 url("../img/bg_login.jpg") center / cover no-repeat;
}
.license-error-screen {
    display: grid;
    min-height: 100vh;
    padding: 24px;
    place-items: center;
}
.license-error-card {
    display: grid;
    width: min(520px, 100%);
    padding: 28px;
    place-items: center;
    color: var(--ink);
    background: transparent;
    text-align: center;
}
.license-error-card img { width: min(245px, 80%); margin-bottom: 30px; }
.license-error-card p { margin: 0; color: #525d66; font-size: 15px; }

/* Alertas */
.flash-stack {
    position: fixed;
    z-index: 1600;
    right: 24px;
    bottom: 24px;
    display: grid;
    width: min(390px, calc(100vw - 32px));
    gap: 10px;
    pointer-events: none;
}
.alert {
    position: relative;
    display: grid;
    min-height: 62px;
    margin: 0;
    padding: 15px 44px 15px 16px;
    border: 1px solid transparent;
    border-left-width: 4px;
    border-radius: 8px;
    align-items: center;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 11px;
    box-shadow: 0 16px 42px rgba(16, 30, 42, .2);
    pointer-events: auto;
    font-size: 13px;
    line-height: 1.45;
    animation: flash-enter .25s ease-out both;
}
.alert.is-hiding {
    animation: flash-leave .22s ease-in both;
}
.alert-success { color: #146736; border-color: #a8dfbd; background: #eaf8ef; }
.alert-warning { color: #725616; border-color: #ebd798; background: #fff9e4; }
.alert-error { color: #8b2730; border-color: #efb8bd; background: #fff0f1; }
.flash-icon {
    text-align: center;
    font-size: 17px;
}
.flash-message {
    min-width: 0;
}
.flash-close {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    place-items: center;
    color: currentColor;
    background: transparent;
    opacity: .62;
}
.flash-close:hover {
    background: rgba(0, 0, 0, .07);
    opacity: 1;
}
@keyframes flash-enter {
    from { opacity: 0; transform: translate3d(24px, 0, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes flash-leave {
    from { opacity: 1; transform: translate3d(0, 0, 0); }
    to { opacity: 0; transform: translate3d(24px, 0, 0); }
}

/* Estrutura interna */
.app-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 286px minmax(0, 1fr);
    transition: grid-template-columns .22s ease;
}
.app-shell.sidebar-state-restoring { transition: none; }
.app-shell.sidebar-collapsed { grid-template-columns: 94px minmax(0, 1fr); }
.sidebar {
    position: sticky;
    z-index: 30;
    top: 0;
    height: 100vh;
    overflow: hidden auto;
    color: #e6ebef;
    background: var(--sidebar);
    box-shadow: none;
}
.sidebar-collapse-button {
    position: fixed;
    z-index: 31;
    top: 0;
    left: 286px;
    display: grid;
    width: 29px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(23, 40, 56, .14);
    border-left: 0;
    border-radius: 0 6px 6px 0;
    place-items: center;
    color: var(--navy);
    background: var(--brand-bg);
    font-size: 10px;
    transition: color .16s ease;
}
.sidebar-collapse-button:hover {
    color: var(--green);
}
.app-shell.sidebar-collapsed .sidebar-collapse-button { display: none; }
.brand-panel {
    display: grid;
    height: 106px;
    overflow: hidden;
    place-items: center;
    background: var(--brand-bg);
}
.brand-toggle {
    display: grid;
    width: 100%;
    height: 100%;
    border: 0;
    place-items: center;
    background: transparent;
}
.brand-logo-full { width: 185px; max-width: 78%; }
.brand-logo-icon { display: none; width: 54px; }
.app-shell.sidebar-collapsed .brand-logo-full { display: none; }
.app-shell.sidebar-collapsed .brand-logo-icon { display: block; }
.user-panel {
    display: grid;
    min-height: 98px;
    padding: 16px 18px;
    grid-template-columns: 45px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    background: #262a2e;
}
.user-avatar {
    position: relative;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 50%;
    place-items: center;
    color: #fff;
    background: transparent;
    font-size: 34px;
}
.user-avatar:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
}
.profile-photo-current,
.profile-photo-current img {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 50%;
}
.profile-photo-current {
    display: grid;
    place-items: center;
}
.profile-photo-current img {
    object-fit: cover;
}
.profile-photo-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    border-radius: 50%;
    place-items: center;
    color: #fff;
    background: rgba(16, 23, 29, .72);
    font-size: 15px;
    opacity: 0;
    transition: opacity .18s ease;
}
.user-avatar:hover .profile-photo-overlay,
.user-avatar:focus-visible .profile-photo-overlay { opacity: 1; }
.user-copy { min-width: 0; }
.user-copy strong,
.user-copy span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-copy strong { color: #fff; font-size: 13px; }
.user-copy span { color: #afb7be; font-size: 11px; }
.logout-button {
    height: 30px;
    padding: 0 11px;
    border: 0;
    border-radius: 4px;
    color: #222;
    background: #fff;
    font-size: 11px;
    font-weight: 700;
}
.side-nav { padding: 1px 0 28px; }
.nav-link {
    display: flex;
    min-height: 47px;
    padding: 0 19px;
    border-left: 4px solid transparent;
    align-items: center;
    gap: 11px;
    color: #e0e5e9;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    transition: color .16s ease, background .16s ease, border .16s ease;
}
.nav-parent {
    width: 100%;
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    text-align: left;
    background: transparent;
}
.nav-logout-form { margin: 0; }
.nav-logout-button {
    width: 100%;
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    text-align: left;
    background: transparent;
    font: inherit;
    cursor: pointer;
}
.nav-link:hover,
.nav-link.is-active,
.nav-group.is-active > .nav-parent {
    border-left-color: var(--green);
    color: var(--green);
    background: var(--sidebar-active);
}
.nav-icon {
    width: 24px;
    min-width: 24px;
    text-align: center;
    font-size: 16px;
}
.nav-lock {
    margin-left: auto;
    color: #7f878e;
    font-size: 10px;
}
.nav-link.is-disabled,
.nav-link.is-disabled:hover {
    border-left-color: transparent;
    color: #858d94;
    background: transparent;
    cursor: not-allowed;
}
.nav-link.is-disabled.is-current {
    border-left-color: var(--green);
    color: #aeb6bc;
    background: var(--sidebar-active);
}
.nav-chevron {
    margin-left: auto;
    font-size: 10px;
    transition: transform .2s ease;
}
.nav-group.is-open .nav-chevron { transform: rotate(180deg); }
.nav-submenu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    background: #30353a;
    transition: max-height .22s ease, opacity .18s ease;
}
.nav-group.is-open .nav-submenu {
    max-height: var(--nav-submenu-height, 600px);
    opacity: 1;
}
.nav-sublink {
    display: flex;
    min-height: 41px;
    padding: 0 18px 0 51px;
    align-items: center;
    gap: 10px;
    color: #cbd1d6;
    text-decoration: none;
    white-space: nowrap;
    transition: color .16s ease, background .16s ease;
}
.nav-sublink i {
    width: 18px;
    text-align: center;
    font-size: 13px;
}
.nav-sublink:hover,
.nav-sublink.is-active {
    color: #fff;
    background: rgba(0, 0, 0, .2);
}
.nav-sublink.is-active { color: var(--green); }
.app-shell.sidebar-collapsed .user-panel {
    min-height: 80px;
    padding: 13px 8px;
    grid-template-columns: 1fr;
    justify-items: center;
}
.app-shell.sidebar-collapsed .user-copy,
.app-shell.sidebar-collapsed .logout-button { display: none; }
.app-shell.sidebar-collapsed .nav-link {
    min-height: 49px;
    padding: 0;
    justify-content: center;
}
.app-shell.sidebar-collapsed .nav-text { display: none; }
.app-shell.sidebar-collapsed .nav-icon { font-size: 18px; }
.app-shell.sidebar-collapsed .nav-lock { display: none; }
.app-shell.sidebar-collapsed .nav-chevron,
.app-shell.sidebar-collapsed .nav-submenu { display: none; }
.workspace {
    display: flex;
    min-width: 0;
    min-height: 100vh;
    flex-direction: column;
}
.page-header {
    display: flex;
    min-height: 107px;
    width: 100%;
    margin: 0;
    padding: 0 var(--page-gutter);
    border-bottom: 3px solid var(--green);
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #fff;
}
.page-header h1 {
    margin: 0;
    color: var(--green);
    font-size: 27px;
    letter-spacing: -.4px;
}
.page-heading {
    min-width: 0;
}
.page-heading p {
    margin: 4px 0 0;
    color: #4f5a62;
    font-size: 11px;
}
.page-title-composed {
    display: flex;
    align-items: baseline;
    gap: 3px;
}
.page-header.header-tone-green .page-title-composed span {
    color: #171d23;
}
.page-title-composed strong {
    color: var(--brand-green);
    font-size: 1.06em;
}
.page-header.header-tone-black {
    border-bottom-color: #646a70;
    background: var(--settings-black);
}
.page-header.header-tone-dark {
    border-bottom-color: #d1d8df;
    background: #e7ebef;
}
.page-header.header-tone-navy {
    border-bottom-color: #cedae6;
    background: #e8eef4;
}
.page-header.header-tone-green {
    border-bottom-color: #caead8;
    background: #e7f6ed;
}
.page-header.header-tone-blue {
    border-bottom-color: #c8e7ea;
    background: #e5f4f5;
}
.page-header.header-tone-orange {
    border-bottom-color: #f5d6c2;
    background: #fcece2;
}
.page-header.header-tone-light-gray {
    border-bottom-color: #d9dde0;
    background: #eef0f2;
}
.page-header.header-tone-black h1 { color: #fff; }
.page-header.header-tone-dark h1,
.page-header.header-tone-light-gray h1 { color: #111315; }
.page-header.header-tone-navy h1 { color: var(--navy); }
.page-header.header-tone-green h1 { color: var(--brand-green); }
.page-header.header-tone-blue h1 { color: var(--brand-blue); }
.page-header.header-tone-orange h1 { color: var(--brand-orange); }
.page-actions { display: flex; align-items: center; gap: 9px; }
.mobile-menu {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #fff;
}
.page-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 25px var(--page-gutter) 56px;
}
.page-content.page-content-error {
    display: flex;
    min-height: 0;
    padding: 0;
    flex: 1;
}
.app-footer {
    display: flex;
    margin-top: auto;
    padding: 16px 38px;
    border-top: 1px solid #edf0f2;
    align-items: center;
    justify-content: space-between;
    color: #8c949b;
    font-size: 11px;
}
.app-footer img { width: 54px; opacity: .42; }
.sidebar-backdrop { display: none; }

/* Imagem de perfil */
body.profile-photo-modal-open { overflow: hidden; }
.profile-photo-modal {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    padding: 24px;
    place-items: center;
}
.profile-photo-modal[hidden] { display: none; }
.profile-photo-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 23, 31, .72);
    backdrop-filter: blur(3px);
}
.profile-photo-dialog {
    position: relative;
    width: min(540px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border-radius: 10px;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 26px 80px rgba(0, 0, 0, .3);
}
.profile-photo-header {
    display: flex;
    padding: 22px 24px 17px;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}
.profile-photo-header h2 { margin: 0 0 3px; font-size: 20px; }
.profile-photo-header p { margin: 0; color: var(--muted); font-size: 12px; }
.profile-photo-close {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 50%;
    place-items: center;
    color: #626b73;
    background: #f0f2f4;
}
.profile-photo-close:hover { color: #222; background: #e4e7e9; }
.profile-photo-form { padding: 20px 24px 23px; }
.profile-photo-file {
    display: flex;
    margin-bottom: 16px;
    justify-content: center;
}
.profile-photo-file input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}
.profile-photo-file span {
    display: inline-flex;
    min-height: 39px;
    padding: 0 16px;
    border: 1px solid #aeb6bc;
    border-radius: 5px;
    align-items: center;
    gap: 8px;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.profile-photo-file input:focus-visible + span {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}
.profile-crop-area {
    position: relative;
    width: min(360px, 100%);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #d0d5d9;
    border-radius: 8px;
    aspect-ratio: 1;
    background-color: #edf0f2;
    background-image:
        linear-gradient(45deg, #e1e5e8 25%, transparent 25%),
        linear-gradient(-45deg, #e1e5e8 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e1e5e8 75%),
        linear-gradient(-45deg, transparent 75%, #e1e5e8 75%);
    background-position: 0 0, 0 9px, 9px -9px, -9px 0;
    background-size: 18px 18px;
}
.profile-crop-area canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
    touch-action: none;
}
.profile-crop-area.is-dragging canvas { cursor: grabbing; }
.profile-crop-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    color: #88929a;
    background: #f3f5f6;
    pointer-events: none;
}
.profile-crop-placeholder i { font-size: 58px; }
.profile-crop-placeholder span { font-size: 12px; }
.profile-crop-area.is-ready .profile-crop-placeholder { display: none; }
.profile-zoom-control {
    display: grid;
    width: min(360px, 100%);
    margin: 15px auto 0;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    color: #5f6870;
}
.profile-zoom-control span { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; }
.profile-zoom-control input { width: 100%; accent-color: var(--green); }
.profile-photo-help {
    margin: 10px 0 0;
    color: var(--muted);
    text-align: center;
    font-size: 11px;
}
.profile-photo-status {
    margin: 13px 0 0;
    padding: 10px 12px;
    border-radius: 5px;
    color: #8b2730;
    background: #fff0f1;
    text-align: center;
    font-size: 12px;
}
.profile-photo-status.is-success { color: #146736; background: #eaf8ef; }
.profile-photo-actions {
    display: flex;
    margin-top: 20px;
    justify-content: flex-end;
    gap: 9px;
}
.profile-photo-actions .button { min-width: 115px; }
.profile-photo-delete {
    margin-right: auto;
    border-color: #efb8bd;
    color: var(--danger);
    background: #fff;
}
.profile-photo-delete:hover,
.profile-photo-delete.is-confirming { color: #fff; background: var(--danger); }
.profile-photo-delete[hidden] { display: none; }
.profile-photo-actions .button[disabled] { cursor: not-allowed; opacity: .52; }
.profile-photo-actions .button.is-loading { cursor: wait; }

/* Componentes */
.button {
    display: inline-flex;
    min-height: 37px;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: 5px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
}
.button-primary { color: #fff; background: var(--green); }
.button-primary:hover { background: var(--green-dark); }
.button-success { color: #fff; background: #18b45b; }
.button-success:hover { background: #129447; }
.button-danger { color: #fff; background: #dc386b; }
.button-danger:hover { background: #bd2857; }
.button-secondary { color: #fff; background: #39434b; }
.button-outline { border-color: #adb5bc; color: #20262b; background: #fff; }
.button-muted { border-color: #d0d5d9; color: #333; background: #f5f5f5; }
.button-dark { color: #fff; background: #090909; }
.is-request-loading,
.button.is-loading {
    pointer-events: none;
    opacity: .72;
}
.is-request-loading::before,
.button.is-loading::before {
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-right: 7px;
    flex: 0 0 13px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    content: "";
    vertical-align: -2px;
    animation: request-loading-spin .65s linear infinite;
}
.is-request-loading > i,
.button.is-loading > i {
    display: none;
}
@keyframes request-loading-spin {
    to { transform: rotate(360deg); }
}

/* Títulos em seta: use arrow arrow--2 + uma cor (green, orange, blue, red, gray ou black). */
.arrow {
    --arrow-background: #d4d4d4;
    --arrow-detail: #e8e8e8;
    --arrow-color: #171d23;
    position: relative;
    display: inline-flex;
    width: max-content;
    min-height: 28px;
    margin-right: 20px;
    padding: 0 14px;
    border: solid var(--arrow-detail);
    border-width: 0 9px 0 0;
    border-radius: 6px 0 0 6px;
    align-items: center;
    color: var(--arrow-color);
    background: var(--arrow-background);
    white-space: nowrap;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}
.arrow--2::before,
.arrow--2::after {
    position: absolute;
    top: 0;
    left: 100%;
    width: 0;
    height: 0;
    border: 14px solid transparent;
    content: "";
    pointer-events: none;
}
.arrow--2::before {
    margin-left: 9px;
    border-left-color: var(--arrow-detail);
}
.arrow--2::after {
    border-left-color: var(--arrow-background);
}
.arrow.green {
    --arrow-background: #2aa300;
    --arrow-detail: #94d07e;
    --arrow-color: #fff;
}
.arrow.orange {
    --arrow-background: #f4772a;
    --arrow-detail: #ffc09a;
    --arrow-color: #fff;
}
.arrow.blue {
    --arrow-background: #2691f7;
    --arrow-detail: #91c8fa;
    --arrow-color: #fff;
}
.arrow.red {
    --arrow-background: #dc386b;
    --arrow-detail: #f2a7be;
    --arrow-color: #fff;
}
.arrow.gray {
    --arrow-background: #8f989f;
    --arrow-detail: #d3d8db;
    --arrow-color: #fff;
}
.arrow.black {
    --arrow-background: #242a2f;
    --arrow-detail: #858e95;
    --arrow-color: #fff;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, .7fr);
    gap: 22px;
}
.dashboard-card {
    padding: 25px;
    border: 1px solid #e3e7ea;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 7px 24px rgba(27, 42, 54, .06);
}
.card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}
.dashboard-card h2,
.records-section h2,
.list-panel h2 {
    margin: 3px 0 0;
    font-size: 18px;
}
.eyebrow {
    color: var(--green);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}
.dashboard-chart-legend {
    display: flex;
    color: #68727a;
    font-size: 10px;
    gap: 14px;
}
.dashboard-chart-legend > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.dashboard-chart-legend i {
    display: inline-block;
    width: 18px;
    height: 3px;
    border-radius: 3px;
}
.dashboard-chart-legend .is-opening { background: #19b45a; }
.dashboard-chart-legend .is-closing { background: #2788c9; }
.dashboard-line-chart {
    display: block;
    width: 100%;
    margin-top: 16px;
}
.dashboard-line-chart svg {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 86 / 25;
    overflow: visible;
}
.dashboard-chart-grid {
    stroke: #dfe4e7;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}
.dashboard-chart-axis-label,
.dashboard-chart-month {
    fill: #66717a;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 700;
}
.dashboard-chart-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.5;
    vector-effect: non-scaling-stroke;
}
.dashboard-chart-line.is-opening { stroke: #19b45a; }
.dashboard-chart-line.is-closing { stroke: #2788c9; }
.dashboard-chart-point {
    stroke: #fff;
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
}
.dashboard-chart-point.is-opening { fill: #19b45a; }
.dashboard-chart-point.is-closing { fill: #2788c9; }
.dashboard-chart-empty {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}
.module-shortcuts { display: grid; margin-top: 17px; gap: 8px; }
.module-shortcuts > a,
.module-shortcut {
    display: flex;
    padding: 11px 12px;
    border: 1px solid #e3e7ea;
    border-radius: 5px;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: border-color .16s ease, transform .16s ease;
}
.module-shortcuts a:hover { border-color: var(--green); transform: translateX(2px); }
.module-shortcut.is-disabled {
    color: #899198;
    background: #f6f7f8;
    cursor: not-allowed;
}
.module-shortcuts i { width: 25px; color: var(--green); text-align: center; font-size: 17px; }
.module-shortcuts .is-disabled > i { color: #9ea5ab; }
.module-shortcuts .module-shortcut-lock { margin-left: auto; font-size: 11px; }
.module-shortcuts strong, .module-shortcuts small { display: block; }
.module-shortcuts strong { font-size: 12px; }
.module-shortcuts small { color: var(--muted); font-size: 10px; }
.records-section { margin-top: 48px; }
.section-title {
    display: flex;
    margin-bottom: 16px;
    align-items: baseline;
    gap: 20px;
}
.section-title span { color: var(--muted); font-size: 11px; }
.section-title a {
    color: #30373d;
    font-size: 11px;
    font-weight: 700;
}
.section-title a:hover,
.section-title a:focus-visible { color: var(--green); }
.table-wrap { width: 100%; overflow: auto; }
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.data-table th {
    padding: 12px 10px;
    border-top: 1px solid #aeb4b9;
    border-bottom: 1px solid #bfc4c8;
    text-align: left;
    white-space: nowrap;
}
.data-table td {
    padding: 16px 10px;
    border-bottom: 1px solid #fff;
    background: #f7f7f7;
}
.data-table tbody tr:nth-child(even) td { background: #ededed; }
.oba-deadline-cell {
    text-align: center;
    white-space: nowrap;
}
.oba-table th.oba-deadline-heading { text-align: center; }
.table-empty {
    padding: 35px 16px !important;
    color: var(--muted);
    text-align: center;
}
.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
}
.status i {
    width: 15px;
    text-align: center;
}
.status-link { text-decoration: none; }
.status-link:hover,
.status-link:focus-visible { text-decoration: none; }
.status-link:hover span,
.status-link:focus-visible span { text-decoration: underline; }
.oba-table .status i { color: #70787e; }
.oba-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: inherit;
    text-decoration: none;
}
.oba-sort-link i {
    color: #a2a9ae;
    font-size: 10px;
}
.oba-sort-link:hover,
.oba-sort-link:focus-visible {
    color: var(--green);
    text-decoration: none;
}
.oba-sort-link.is-active i { color: var(--green); }
.status-open, .deadline { color: #ee344f; }
.status-progress { color: var(--green); }
.status-evaluation { color: #2788c9; }
.status-waiting { color: #a26b00; }
.status-stopped { color: #70787e; }
.status-done { color: #b5bbc0; }
.list-panel {
    width: 100%;
    padding-top: 0;
}
.list-toolbar {
    display: flex;
    min-height: 55px;
    margin-bottom: 8px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.list-description {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12px;
}
.search-field {
    display: flex;
    width: min(270px, 100%);
    height: 38px;
    padding: 0 12px;
    border: 1px solid #ccd2d7;
    border-radius: 5px;
    align-items: center;
    gap: 9px;
    color: #949ca3;
}
.search-field input { width: 100%; border: 0; outline: 0; }
.actions-col { width: 150px; text-align: right !important; }
.row-actions {
    width: 150px;
    text-align: right;
    white-space: nowrap;
}
.row-actions > a,
.row-actions > form {
    display: inline-block;
    margin: 0 0 0 12px;
    vertical-align: middle;
}
.row-actions a, .row-actions button {
    padding: 2px;
    border: 0;
    color: #5f686f;
    background: transparent;
}
.row-actions a:hover, .row-actions button:hover { color: var(--green); }
.row-actions .danger-link { color: var(--danger); }
.row-actions .success-link { color: var(--green); }
.record-state {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 20px;
    color: #677078;
    background: #e7eaec;
    font-size: 10px;
    font-weight: 800;
}
.record-state.is-active {
    color: #14753c;
    background: #dff5e8;
}
.user-status-form { display: inline-flex; }
.toggle-state {
    display: inline-flex;
    width: 47px;
    height: 24px;
    padding: 0 6px;
    border: 1px solid #d4d9dd;
    border-radius: 4px;
    align-items: center;
    justify-content: flex-end;
    color: #68737b;
    background: #edf0f2;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}
.toggle-state.is-on {
    justify-content: flex-start;
    border-color: var(--green);
    color: #fff;
    background: var(--green);
}
.toggle-state:not([disabled]):hover,
.toggle-state:not([disabled]):focus-visible {
    border-color: var(--green-dark);
    box-shadow: 0 0 0 3px rgba(25, 180, 90, .13);
    outline: none;
}
.toggle-state[disabled] {
    cursor: not-allowed;
    opacity: .68;
}
.form-card {
    width: 100%;
    padding: 4px 5px 20px;
}
.form-card-narrow { max-width: none; }
.form-heading { margin-bottom: 25px; }
.form-heading h2 { margin: 0 0 4px; font-size: 18px; }
.form-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 19px 14px;
}
.quality-settings-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    row-gap: 32px;
}
.quality-settings-manager {
    grid-column: 1 / span 6;
}
.quality-settings-notifications {
    grid-column: 1 / span 4;
}
.field { display: grid; min-width: 0; gap: 7px; }
.field-wide { grid-column: 1 / -1; }
.field > span { font-size: 12px; font-weight: 800; }
.field input,
.field select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #bcc3c8;
    border-radius: 5px;
    outline: none;
    color: #222;
    background: #fff;
}
.field input:focus, .field select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(25, 180, 90, .1);
}
.user-form-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 24px;
}
.user-form-details {
    display: grid;
    gap: 19px;
}
.user-groups-field {
    min-width: 0;
    margin: 0;
    padding: 18px;
    border: 1px solid #d4d9dd;
    border-radius: 7px;
    background: #fafbfb;
}
.user-groups-field legend {
    padding: 0 6px;
    font-size: 14px;
    font-weight: 800;
}
.user-groups-field > p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 11px;
}
.user-groups-table {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d7dce0;
    border-radius: 5px;
    background: #fff;
}
.user-groups-head,
.user-group-option {
    display: grid;
    min-width: 480px;
    grid-template-columns: minmax(150px, 1.2fr) minmax(150px, 1fr) 130px;
    align-items: center;
    gap: 14px;
}
.user-groups-head {
    min-height: 39px;
    padding: 0 13px;
    border-bottom: 1px solid #cdd3d7;
    color: #4f5961;
    background: #eef1f3;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}
.user-groups-list {
    max-height: 336px;
    overflow: auto;
}
.user-group-option {
    min-height: 56px;
    padding: 8px 13px;
    border-bottom: 1px solid #e6e9eb;
    background: #fff;
}
.user-group-option:last-child { border-bottom: 0; }
.user-group-membership,
.user-group-manager {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.user-group-membership input,
.user-group-manager input {
    width: 16px;
    height: 16px;
    accent-color: var(--green);
}
.user-group-manager {
    color: var(--brand-green);
    font-size: 11px;
}
.user-group-manager.is-unavailable {
    color: #969da3;
    cursor: not-allowed;
}
.user-group-manager-info {
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
}
.switch-field { align-content: end; }
.switch {
    display: inline-flex;
    width: max-content;
    height: 42px;
    align-items: center;
    gap: 9px;
}
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch i {
    position: relative;
    display: block;
    width: 48px;
    height: 25px;
    border-radius: 20px;
    background: #cbd1d5;
    transition: background .18s ease;
}
.switch i::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    content: "";
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
    transition: transform .18s ease;
}
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { transform: translateX(23px); }
.switch b { font-size: 12px; }
.form-actions { display: flex; margin-top: 40px; gap: 12px; }
.form-actions .button { min-width: 108px; }
.oba-bottom-workflow-actions {
    display: flex;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid #d8dcdf;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}
.oba-list-toolbar { margin-bottom: 18px; }
.oba-filter-panel {
    margin-bottom: 12px;
    border: 0;
    border-top: 3px solid var(--green);
    background: #f6f7f7;
}
.oba-filter-panel > summary {
    display: flex;
    min-height: 46px;
    padding: 0 18px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    list-style: none;
    cursor: pointer;
    user-select: none;
}
.oba-filter-panel > summary::-webkit-details-marker { display: none; }
.oba-filter-panel > summary > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 800;
}
.oba-filter-panel > summary > span i { font-size: 12px; }
.oba-filter-chevron {
    color: #6b747b;
    font-size: 10px;
    transition: transform .18s ease, color .18s ease;
}
.oba-filter-panel:not([open]) .oba-filter-chevron { transform: rotate(180deg); }
.oba-filter-panel > summary:hover .oba-filter-chevron { color: var(--green); }
.oba-filter-form { padding: 4px 18px 18px; }
.oba-filters {
    display: grid;
    grid-template-columns: repeat(18, minmax(0, 1fr));
    gap: 14px 16px;
}
.filter-field {
    display: grid;
    min-width: 0;
    grid-column: span 3;
    gap: 6px;
}
.filter-field > span,
.oba-filter-label-row > span {
    font-size: 14px;
    font-weight: 800;
}
.filter-field-catalog { grid-column: span 3; }
.filter-field-status { grid-column: span 4; }
.filter-field-user { grid-column: span 5; }
.filter-field-type { grid-column: span 4; }
.filter-field-stage { grid-column: span 4; }
.filter-field-search { grid-column: 1 / -1; }
.filter-field-period {
    display: grid;
    min-width: 0;
    grid-column: span 8;
    gap: 6px;
}
.oba-filter-label-row {
    display: flex;
    min-height: 17px;
    align-items: center;
    gap: 20px;
}
.oba-filter-label-row button {
    padding: 0;
    border: 0;
    color: var(--ink);
    background: transparent;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}
.oba-filter-label-row button:hover,
.oba-filter-label-row button:focus-visible {
    outline: none;
    color: var(--green-dark);
}
.oba-period-inputs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.bootstrap-date-field {
    display: grid;
    min-width: 0;
    height: 38px;
    grid-template-columns: auto minmax(0, 1fr) 36px;
    overflow: hidden;
    border: 1px solid #ccd2d7;
    border-radius: 5px;
    background: #fff;
    transition: border-color .16s ease, box-shadow .16s ease;
}
.bootstrap-date-field--single {
    grid-template-columns: minmax(0, 1fr) 36px;
}
.bootstrap-date-field:focus-within {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(25, 180, 90, .1);
}
.bootstrap-date-prefix {
    display: flex;
    padding: 0 10px;
    align-items: center;
    border-right: 1px solid #d7dce0;
    color: #4e5961;
    background: #e9ecef;
    font-size: 14px;
}
.bootstrap-date-field input {
    min-width: 0;
    height: 36px;
    padding: 0 8px;
    border: 0;
    outline: none;
    color: var(--ink);
    background: #fff;
    font: inherit;
    font-size: 14px;
    cursor: text;
}
.bootstrap-date-field input::-webkit-calendar-picker-indicator {
    display: none;
    opacity: 0;
}
.bootstrap-date-field input.is-empty:not(:focus)::-webkit-datetime-edit {
    color: transparent;
}
.bootstrap-date-icon {
    display: grid;
    width: 36px;
    padding: 0;
    border-left: 1px solid #d7dce0;
    place-items: center;
    color: #59636a;
    background: #e9ecef;
    pointer-events: none;
}
.filter-field select,
.oba-filter-search-control {
    width: 100%;
    height: 38px;
    border: 1px solid #ccd2d7;
    border-radius: 5px;
    outline: none;
    color: var(--ink);
    background: #fff;
}
.filter-field select {
    padding: 0 10px;
    font-size: 14px;
}
.filter-field select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(25, 180, 90, .1);
}
.oba-filter-search-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    transition: border-color .16s ease, box-shadow .16s ease;
}
.oba-filter-search-control:focus-within {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(25, 180, 90, .1);
}
.oba-filter-search-control input {
    min-width: 0;
    height: 36px;
    padding: 0 10px;
    border: 0;
    outline: none;
    color: var(--ink);
    background: transparent;
    font-size: 14px;
    font-weight: 400;
}
.oba-filter-search-control input::placeholder {
    font-weight: 400;
}
.oba-filter-actions {
    display: flex;
    margin-top: 16px;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}
.oba-filter-actions .button { min-width: 115px; }
.oba-result-summary {
    display: flex;
    min-height: 31px;
    align-items: center;
    justify-content: flex-end;
    color: var(--muted);
    font-size: 11px;
}
.oba-pagination {
    display: flex;
    margin-top: 24px;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}
.oba-pagination a,
.oba-pagination > span {
    display: inline-flex;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #d4d9dd;
    border-radius: 4px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #4b555c;
    background: #fff;
    font-size: 11px;
    text-decoration: none;
}
.oba-pagination a:hover {
    border-color: var(--green);
    color: var(--green-dark);
}
.oba-pagination .is-current {
    border-color: var(--green);
    color: #fff;
    background: var(--green);
    font-weight: 800;
}
.oba-pagination .is-disabled {
    color: #a0a7ac;
    background: #f2f3f4;
}
.oba-pagination .oba-pagination-ellipsis {
    min-width: 24px;
    padding: 0 4px;
    border-color: transparent;
    background: transparent;
}
.oba-number-link {
    color: var(--brand-green);
    font-weight: 800;
    text-decoration: none;
}
.oba-number-link:hover { text-decoration: underline; }
.oba-title-link {
    color: var(--ink);
    text-decoration: none;
}
.oba-title-link:hover,
.oba-title-link:focus-visible { text-decoration: underline; }
.oba-stage-link {
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
}
.oba-stage-link:hover,
.oba-stage-link:focus-visible { text-decoration: underline; }
.oba-detail {
    width: 100%;
    padding: 4px 5px 20px;
}
.oba-detail-grid {
    display: grid;
    margin: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--line);
}
.oba-detail-grid > div {
    min-width: 0;
    min-height: 96px;
    padding: 18px;
    background: #fff;
}
.oba-detail-grid dt {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
.oba-detail-grid dd {
    margin: 0;
    overflow-wrap: anywhere;
}
.oba-detail-grid .oba-detail-wide { grid-column: 1 / -1; }

/* Fluxo OBA */
body.oba-modal-open { overflow: hidden; }
.oba-stage-form {
    width: 100%;
}
.oba-record-summary {
    margin-bottom: 24px;
    border-bottom: 1px solid #d7dcdf;
}
.oba-record-heading {
    display: flex;
    padding: 3px 0 20px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
}
.oba-record-heading h2 {
    margin: 4px 0 4px;
    font-size: 25px;
}
.oba-record-heading h2 strong { color: var(--green); }
.oba-record-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}
.oba-status-display {
    min-width: 190px;
    padding: 11px 15px;
    border-left: 3px solid #99a2a9;
    background: #f4f5f6;
}
.oba-status-display span,
.oba-status-display strong { display: block; }
.oba-status-display span {
    margin-bottom: 3px;
    color: #717b82;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}
.oba-status-display strong { font-size: 14px; }
.oba-status-display.status-aberto { border-color: #ed6d28; color: #c94d0e; background: #fff0e8; }
.oba-status-display.status-em_andamento { border-color: #19b15a; color: #117a3e; background: #e7f8ee; }
.oba-status-display.status-em_avaliacao { border-color: #2788c9; color: #1c6798; background: #e9f4fb; }
.oba-status-display.status-aguardando_aprovacao { border-color: #e0a126; color: #805500; background: #fff5d9; }
.oba-status-display.status-parado { border-color: #df3767; color: #9f2147; background: #fde9ef; }
.oba-status-display.status-finalizado,
.oba-status-display.status-cancelado { border-color: #8f989f; color: #535b61; background: #eef0f1; }
.oba-stage-section {
    width: 100%;
    padding: 0 0 8px;
}
.oba-stage-section-title {
    display: flex;
    margin-bottom: 22px;
    border-bottom: 1px solid #cfd5d9;
    align-items: center;
    gap: 12px;
}
.oba-stage-section-title span {
    display: inline-flex;
    min-height: 29px;
    padding: 0 17px;
    align-items: center;
    color: #fff;
    background: #3d474e;
    font-size: 11px;
    font-weight: 800;
}
.oba-stage-section-title h3 {
    margin: 0;
    font-size: 15px;
}
.oba-lock-message {
    display: flex;
    margin: 0 0 20px;
    padding: 13px 15px;
    border-left: 3px solid #8b969e;
    align-items: center;
    gap: 10px;
    color: #525c63;
    background: #f0f2f3;
    font-size: 12px;
}
.oba-stage-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 30px;
}
.oba-stage-grid--opening {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.oba-stage-grid .oba-field-wide { grid-column: 1 / -1; }
.oba-overview-card {
    width: calc(100% + (var(--page-gutter) * 2));
    margin: -25px calc(var(--page-gutter) * -1) 0;
    padding: 23px var(--page-gutter) 18px;
    color: #fff;
    background: var(--green);
}
.oba-overview-heading {
    display: flex;
    min-height: 42px;
    margin-bottom: 4px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}
.oba-overview-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
}
.oba-overview-edit {
    flex: 0 0 auto;
    padding: 2px 0;
    border: 0;
    color: #fff;
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}
.oba-overview-edit:hover {
    color: rgba(255, 255, 255, .72);
}
.oba-overview-edit i {
    margin-right: 3px;
    font-size: 9px;
}
.oba-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 36px;
}
.oba-overview-item {
    display: flex;
    min-width: 0;
    min-height: 58px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    align-items: center;
    gap: 7px;
    color: #fff;
    font-size: 14px;
}
.oba-overview-item:nth-last-child(-n + 2) {
    border-bottom: 0;
}
.oba-overview-item strong {
    flex: 0 0 auto;
    font-weight: 800;
}
.oba-overview-status-stage {
    justify-content: flex-start;
    gap: 40px;
}
.oba-overview-meta {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
}
.oba-overview-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 800;
}
.oba-overview-status i {
    color: #fff;
}
.oba-overview-status.status-aberto,
.oba-overview-status.status-em_andamento,
.oba-overview-status.status-em_avaliacao,
.oba-overview-status.status-aguardando_aprovacao,
.oba-overview-status.status-parado,
.oba-overview-status.status-finalizado,
.oba-overview-status.status-cancelado { color: #fff; }
.oba-overview-related {
    display: flex;
    min-height: 45px;
    padding: 11px 0 0;
    border-top: 1px solid rgba(0, 0, 0, .1);
    align-items: center;
    gap: 7px;
    color: #fff;
    font-size: 14px;
}
.oba-overview-related strong { font-weight: 800; }
.oba-overview-related a,
.oba-closing-summary a {
    color: #fff;
    font-weight: 800;
    text-decoration: underline;
}
.oba-closing-summary {
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid rgba(0, 0, 0, .16);
}
.oba-closing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 36px;
}
.oba-closing-grid .oba-overview-item:nth-last-child(-n + 2) {
    border-bottom: 0;
}
.oba-closing-longtext {
    min-height: 92px;
    align-items: flex-start;
    flex-direction: column;
    line-height: 1.55;
}
.oba-details-dialog {
    width: min(760px, 100%);
}
.oba-details-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.oba-details-form-grid .oba-field-wide {
    grid-column: 1 / -1;
}
.oba-readonly-value {
    display: flex;
    min-height: 42px;
    padding: 10px 12px;
    border-bottom: 1px solid #d4d9dd;
    align-items: center;
    color: #283138;
    background: #fafafa;
    font-size: 12px;
}
.oba-overview-inline-edit {
    margin-left: 8px;
    padding: 0;
    border: 0;
    color: #59636b;
    background: transparent;
    font-size: 12px;
    font-weight: 700;
}
.oba-overview-inline-edit:hover,
.oba-overview-inline-edit:focus-visible {
    color: var(--green-dark);
}
.oba-text-grid {
    display: grid;
    margin-top: 28px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px;
}
.oba-text-grid--single {
    grid-template-columns: minmax(0, 1fr);
}
.oba-field-arrow-heading {
    display: flex;
    margin-bottom: -1px;
    align-items: center;
}
.oba-field-arrow-heading--editable {
    justify-content: space-between;
    gap: 16px;
}
.oba-field-heading-action {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    color: #20272c;
    background: transparent;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}
.oba-field-heading-action:hover,
.oba-field-heading-action:focus-visible {
    color: var(--green-dark);
    text-decoration: underline;
    outline: none;
}
.oba-field-arrow-heading > .arrow {
    margin-bottom: 0;
}
.oba-field-arrow-heading > .arrow > label {
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.oba-information-trigger {
    display: inline-grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    place-items: center;
    color: inherit;
    background: transparent;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}
.oba-information-trigger:hover,
.oba-information-trigger:focus-visible {
    color: inherit;
    background: transparent;
    text-decoration: none;
    opacity: .72;
}
.arrow > .oba-information-trigger {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
    margin-left: 8px;
    color: inherit;
    font-size: 14px;
}
.oba-investigation-model-title {
    display: flex;
    align-items: center;
}
.oba-investigation-model-title .oba-information-trigger {
    margin-left: 8px;
}
.oba-text-field textarea,
.oba-readonly-text {
    width: 100%;
    min-height: 245px;
    padding: 22px;
    border: 1px solid #bec5ca;
    border-radius: 5px;
    color: #252d32;
    background: #fff;
    outline: none;
    line-height: 1.6;
    resize: vertical;
}
.oba-text-field textarea:focus {
    border-color: var(--green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(25, 180, 90, .1);
}
.oba-readonly-text { background: #fbfbfb; }
.oba-occurrence-assignment-action {
    display: flex;
    margin-top: 14px;
    justify-content: flex-end;
}
.oba-opening-advance-action {
    display: flex;
    margin-top: 22px;
    justify-content: flex-end;
}
.oba-investigation-section {
    width: 100%;
    margin-top: 42px;
}
.oba-effectiveness-section {
    width: 100%;
    margin-top: 42px;
}
.oba-effectiveness-deadline-empty {
    display: flex;
    min-height: 74px;
    padding: 16px 18px;
    border: 1px solid #d8dde0;
    border-radius: 5px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: #f7f8f8;
}
.oba-effectiveness-deadline-empty p {
    margin: 0;
    color: #626d74;
}
.oba-effectiveness-deadline {
    display: flex;
    min-height: 45px;
    margin-bottom: 22px;
    padding: 0 2px 10px;
    border-bottom: 1px solid #d8dcdf;
    align-items: center;
    gap: 8px;
}
.oba-effectiveness-deadline strong {
    color: #dc386b;
    font-size: 14px;
}
.oba-effectiveness-deadline > button {
    margin-left: 5px;
    padding: 3px;
    border: 0;
    color: #69757d;
    background: transparent;
    cursor: pointer;
}
.oba-effectiveness-deadline > button:hover,
.oba-effectiveness-deadline > button:focus-visible {
    color: var(--green);
}
.oba-effectiveness-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}
.oba-effectiveness-toggle-field {
    display: flex;
    min-width: 0;
    min-height: 42px;
    align-items: center;
}
.oba-effectiveness-switch {
    width: 100%;
    height: auto;
    min-height: 42px;
    gap: 12px;
}
.oba-effectiveness-switch b {
    color: #20282e;
    font-size: 14px;
    font-weight: 700;
}
.oba-effectiveness-state {
    display: inline-flex;
    min-width: 35px;
    margin-left: -5px;
    padding: 4px 8px;
    border-radius: 20px;
    justify-content: center;
    color: #7a848a;
    background: #e8ebed;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}
.oba-effectiveness-state.is-yes {
    color: #08773a;
    background: #dcf5e7;
}
.oba-effectiveness-switch input:disabled + i {
    opacity: .65;
}
.oba-effectiveness-switch input:disabled ~ b {
    color: #7a848a;
}
.oba-choice-field {
    display: flex;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}
.oba-choice-field legend {
    width: 100%;
    margin: 0 0 10px;
    color: #20282e;
    font-size: 12px;
    font-weight: 800;
}
.oba-choice-field label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    cursor: pointer;
}
.oba-choice-field input { margin: 0; }
.oba-effectiveness-longtext textarea,
.oba-effectiveness-longtext .oba-readonly-text {
    min-height: 180px;
    padding: 18px;
}
.oba-effectiveness-actions {
    display: flex;
    margin-top: 26px;
    justify-content: flex-end;
    gap: 10px;
}
.oba-effectiveness-actions.is-review {
    justify-content: flex-start;
}
.oba-modal-dialog.oba-effectiveness-dialog {
    display: flex;
    width: min(860px, 100%);
    max-height: calc(100vh - 40px);
    flex-direction: column;
}
.oba-effectiveness-dialog .oba-modal-body {
    display: grid;
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    gap: 22px;
}
.oba-effectiveness-confirmation {
    margin: 0;
    padding: 14px 16px;
    border-left: 3px solid #2788c9;
    color: #465159;
    background: #edf6fc;
    line-height: 1.55;
}
.oba-related-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding-top: 4px;
}
.oba-related-fields .oba-field-wide {
    grid-column: 1 / -1;
}
.oba-related-review-intro {
    margin: 0;
    color: #59646c;
    line-height: 1.55;
}
.oba-related-review-grid {
    display: grid;
    margin: 0;
    overflow: hidden;
    border: 1px solid #d8dde0;
    border-radius: 5px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: #d8dde0;
    gap: 1px;
}
.oba-related-review-grid > div {
    min-width: 0;
    padding: 14px 16px;
    background: #f7f8f8;
}
.oba-related-review-grid .oba-related-review-wide {
    grid-column: 1 / -1;
}
.oba-related-review-grid dt {
    margin-bottom: 5px;
    color: #626d74;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
.oba-related-review-grid dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #20282e;
    font-size: 14px;
}
.oba-related-review-grid dd small {
    display: block;
    margin-top: 3px;
    color: #69757d;
    font-size: 11px;
}
.oba-related-review-texts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.oba-related-review-texts section {
    min-width: 0;
}
.oba-related-review-texts h3 {
    margin: 0 0 7px;
    color: #20282e;
    font-size: 12px;
}
.oba-related-review-texts .oba-related-review-text {
    min-height: 130px;
    padding: 16px;
}
.oba-effectiveness-longtext[hidden],
.oba-related-fields[hidden] {
    display: none;
}
.oba-section-arrow-heading {
    display: flex;
    margin-bottom: 16px;
    align-items: center;
    gap: 0;
}
.oba-section-arrow-heading h3.arrow {
    margin: 0 20px 0 0;
    flex: 0 0 auto;
}
.oba-section-arrow-heading > span {
    height: 1px;
    flex: 1 1 auto;
    background: #d8dcdf;
}
.oba-section-arrow-heading > button,
.oba-investigation-model-heading > button {
    flex: 0 0 auto;
    margin-left: 16px;
    padding: 3px 0;
    border: 0;
    color: #252d32;
    background: transparent;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}
.oba-section-arrow-heading > button:hover,
.oba-section-arrow-heading > button:focus-visible,
.oba-investigation-model-heading > button:hover,
.oba-investigation-model-heading > button:focus-visible {
    color: var(--green);
    text-decoration: underline;
}
.oba-investigation-model-heading {
    display: flex;
    min-height: 38px;
    margin-bottom: 4px;
    padding: 0 8px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.oba-investigation-model-heading h4 {
    margin: 0;
    color: #20282e;
    font-size: 15px;
    font-weight: 800;
}
.oba-five-whys-table-wrap {
    width: 100%;
    margin-bottom: 38px;
}
.oba-five-whys-table {
    table-layout: fixed;
}
.oba-five-whys-table th,
.oba-five-whys-table td {
    line-height: 1.55;
    vertical-align: top;
}
.oba-five-whys-table th:first-child,
.oba-five-whys-table td:first-child,
.oba-five-whys-table th:nth-child(2),
.oba-five-whys-table td:nth-child(2) {
    width: calc((100% - 58px) / 2);
}
.oba-five-whys-table .actions-col,
.oba-five-whys-table .row-actions {
    width: 58px;
}
.oba-five-whys-table .row-actions {
    padding-left: 4px;
    padding-right: 4px;
    white-space: nowrap;
}
.oba-five-whys-table .row-actions button {
    margin-left: 3px;
    cursor: pointer;
}
.oba-five-whys-table .oba-five-whys-inline-row td {
    padding-top: 14px;
    padding-bottom: 14px;
    vertical-align: top;
}
.oba-five-whys-table .oba-five-whys-inline-row td:nth-child(2) {
    padding-right: 0;
}
.oba-five-whys-inline-row textarea {
    display: block;
    width: 100%;
    height: 76px;
    min-height: 76px;
    padding: 12px 14px;
    border: 1px solid #bec5ca;
    border-radius: 8px;
    outline: 0;
    color: #252d32;
    background: #fff;
    font: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.oba-five-whys-inline-row textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(24, 184, 99, .12);
}
.oba-five-whys-table .oba-five-whys-inline-actions {
    width: 58px;
    padding-left: 7px;
    padding-right: 7px;
    text-align: center;
    vertical-align: middle;
}
.oba-five-whys-inline-actions .button {
    width: 30px;
    min-width: 0;
    height: 76px;
    padding: 0;
    font-size: 18px;
    line-height: 1;
}
.oba-five-whys-add-button.is-request-loading > span {
    display: none;
}
.oba-five-whys-add-button.is-request-loading::before {
    margin-right: 0;
}
.oba-root-cause-section {
    width: 100%;
}
.oba-root-cause-text {
    width: 100%;
    min-height: 205px;
    padding: 30px;
    border: 1px solid #bec5ca;
    border-radius: 8px;
    color: #252d32;
    background: #fff;
    font-size: 14px;
    line-height: 1.65;
}
.oba-root-cause-text > span {
    color: #8b949a;
}
.oba-action-plan-section {
    width: 100%;
    margin-top: 42px;
}
.oba-action-plan-heading {
    margin-bottom: 24px;
}
.oba-action-plan-heading-actions {
    display: inline-flex;
    flex: 0 0 auto;
    margin-left: 16px;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}
.oba-action-plan-heading-actions > button {
    padding: 3px 0;
    border: 0;
    color: #252d32;
    background: transparent;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}
.oba-action-plan-heading-actions > button:hover,
.oba-action-plan-heading-actions > button:focus-visible {
    color: #1688d4;
}
.oba-action-plan-separator {
    color: #77838b;
    font-size: 12px;
}
.oba-action-plan-heading-actions > strong {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #dc386b;
    font-size: 12px;
}
.oba-action-plan-heading-actions > strong span {
    color: #59636b;
    font-weight: 500;
}
.oba-action-plan-heading-actions .oba-action-plan-icon {
    color: #77838b;
    font-size: 13px;
}
.oba-action-plan-heading-actions > strong .oba-deadline-status--warning,
.oba-action-plan-table .oba-deadline-status--warning {
    color: var(--brand-orange);
    font-weight: 700;
}
.oba-action-plan-heading-actions > strong .oba-deadline-status--overdue,
.oba-action-plan-table .oba-deadline-status--overdue {
    color: var(--danger);
    font-weight: 700;
}
.oba-action-plan-table-wrap {
    width: 100%;
}
.oba-action-plan-table {
    table-layout: fixed;
}
.oba-action-plan-table th,
.oba-action-plan-table td {
    line-height: 1.55;
    vertical-align: top;
}
.oba-action-plan-table th:first-child,
.oba-action-plan-table td:first-child { width: auto; }
.oba-action-plan-table th:nth-child(2),
.oba-action-plan-table td:nth-child(2) { width: 18%; }
.oba-action-plan-table th:nth-child(3),
.oba-action-plan-table td:nth-child(3),
.oba-action-plan-table th:nth-child(4),
.oba-action-plan-table td:nth-child(4) {
    width: 13%;
    text-align: center;
    white-space: nowrap;
}
.oba-action-plan-table .actions-col,
.oba-action-plan-table .row-actions {
    width: 180px;
    text-align: right;
    white-space: nowrap;
}
.oba-action-plan-table .row-actions button {
    margin-left: 10px;
    cursor: pointer;
}
.oba-modal-dialog.oba-action-plan-logs-dialog {
    width: min(860px, 100%);
}
.oba-action-plan-form-fields {
    display: grid;
    gap: 22px;
}
.oba-action-plan-form-fields textarea[readonly] {
    color: #5d666d;
    background: #f5f6f7;
    cursor: default;
}
.oba-action-plan-logs-dialog .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.oba-action-plan-date-log-table {
    min-width: 720px;
}
.oba-action-plan-date-log-table th,
.oba-action-plan-date-log-table td,
.oba-action-plan-item-log-table th,
.oba-action-plan-item-log-table td {
    padding: 11px 12px;
    white-space: nowrap;
}
.oba-action-plan-date-log-table th:first-child,
.oba-action-plan-date-log-table td:first-child {
    width: 155px;
}
.oba-action-plan-date-log-table th:nth-child(3),
.oba-action-plan-date-log-table td:nth-child(3),
.oba-action-plan-date-log-table th:nth-child(4),
.oba-action-plan-date-log-table td:nth-child(4) {
    width: 125px;
}
.oba-action-plan-item-log-table {
    min-width: 680px;
}
.oba-action-plan-item-log-table th:first-child,
.oba-action-plan-item-log-table td:first-child {
    width: 155px;
}
.oba-action-plan-item-log-table th:nth-child(2),
.oba-action-plan-item-log-table td:nth-child(2) {
    width: 190px;
}
.oba-execution-section {
    width: 100%;
    margin-top: 42px;
}
.oba-execution-table-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.oba-execution-table {
    min-width: 0;
    table-layout: fixed;
}
.oba-execution-table th,
.oba-execution-table td {
    line-height: 1.55;
    vertical-align: top;
}
.oba-execution-table th:first-child,
.oba-execution-table td:first-child { width: 105px; }
.oba-execution-table th:nth-child(2),
.oba-execution-table td:nth-child(2) { width: auto; }
.oba-execution-table th:nth-child(3),
.oba-execution-table td:nth-child(3) {
    width: 18%;
    text-align: left;
}
.oba-execution-table th:nth-child(4),
.oba-execution-table td:nth-child(4) {
    width: 110px;
    text-align: center;
}
.oba-execution-table th:nth-child(5),
.oba-execution-table td:nth-child(5) {
    width: 145px;
    text-align: center;
}
.oba-execution-table .actions-col,
.oba-execution-table .row-actions {
    width: 150px;
}
.oba-execution-table .row-actions > form {
    margin-left: 8px;
}
.oba-execution-table .row-actions > button {
    margin-left: 8px;
    cursor: pointer;
}
.oba-execution-evidence-link {
    padding: 0;
    border: 0;
    color: #4f5961;
    background: transparent;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}
.oba-execution-evidence-link:hover,
.oba-execution-evidence-link:focus-visible {
    color: var(--green-dark);
}
.oba-execution-status {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 20px;
    color: #616b73;
    background: #e8ebed;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}
.oba-execution-status.status-aguardando_aprovacao {
    color: #8b6600;
    background: #fff4c9;
}
.oba-execution-status.status-aprovada {
    color: #08773a;
    background: #dcf5e7;
}
.oba-execution-status.status-reprovada {
    color: #a51d49;
    background: #fde5ee;
}
.oba-modal-dialog.oba-execution-upload-dialog {
    width: min(720px, 100%);
    max-height: calc(100vh - 40px);
}
.oba-execution-upload-dialog > form {
    display: flex;
    max-height: calc(100vh - 118px);
    flex-direction: column;
}
.oba-execution-upload-dialog .oba-modal-body {
    overflow-y: auto;
}
.oba-execution-form-fields {
    display: grid;
    gap: 20px;
}
.oba-execution-form-fields textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #bcc3c8;
    line-height: 1.5;
    resize: vertical;
}
.oba-execution-form-fields textarea:focus {
    border-color: var(--green);
}
.oba-execution-plan-reference {
    padding: 14px 16px;
    border-left: 3px solid #178ad0;
    border-radius: 5px;
    color: #4f5961;
    background: #f1f5f8;
}
.oba-execution-plan-reference strong {
    display: block;
    margin-bottom: 5px;
    color: #283138;
    font-size: 12px;
}
.oba-execution-plan-reference p {
    margin: 0;
}
.oba-execution-file-input {
    width: 100%;
    height: 42px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #bcc3c8;
    border-radius: 5px;
    outline: none;
    color: #4f5961;
    background: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease;
}
.oba-execution-file-input:focus,
.oba-execution-file-input:focus-visible {
    border-color: var(--green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(25, 180, 90, .1);
}
.oba-execution-file-input::file-selector-button,
.oba-execution-file-input::-webkit-file-upload-button {
    height: 40px;
    margin: 0 12px 0 0;
    padding: 0 15px;
    border: 0;
    border-right: 1px solid #d0d5d9;
    color: #333;
    background: #f5f5f5;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: color .16s ease, background .16s ease;
}
.oba-execution-file-input:hover::file-selector-button,
.oba-execution-file-input:hover::-webkit-file-upload-button {
    color: var(--green-dark);
    background: #eef7f1;
}
.oba-execution-form-fields .field > span small {
    margin-left: 5px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 400;
}
.oba-execution-existing-files {
    display: grid;
    gap: 12px;
}
.oba-execution-existing-files > strong {
    font-size: 12px;
}
.oba-execution-existing-file {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px 34px;
    align-items: end;
    gap: 10px;
}
.oba-execution-existing-file-meta {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: flex-end;
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
}
.oba-execution-existing-file-remove {
    display: inline-flex;
    width: 34px;
    height: 42px;
    padding: 0;
    border: 0;
    align-items: center;
    justify-content: center;
    color: var(--danger);
    background: transparent;
    cursor: pointer;
}
.oba-execution-existing-file-remove:hover,
.oba-execution-existing-file-remove:focus-visible {
    color: #b32633;
}
.oba-execution-existing-file.is-marked-for-deletion .field input {
    border-color: rgba(235, 63, 76, .45);
    color: #9b5960;
    background: #fff4f5;
    text-decoration: line-through;
}
.oba-execution-existing-file.is-marked-for-deletion .oba-execution-existing-file-meta {
    color: #9b5960;
    text-decoration: line-through;
}
.oba-execution-existing-file.is-marked-for-deletion .oba-execution-existing-file-remove {
    color: var(--green-dark);
}
.oba-execution-upload-help {
    margin: -10px 0 0;
    color: var(--muted);
    font-size: 11px;
}
.oba-execution-file-names {
    display: grid;
    gap: 12px;
}
.oba-execution-file-name {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    align-items: center;
    gap: 10px;
}
.oba-execution-selected-file-remove {
    display: inline-flex;
    width: 34px;
    height: 42px;
    padding: 0;
    border: 0;
    align-items: center;
    justify-content: center;
    color: var(--danger);
    background: transparent;
    cursor: pointer;
}
.oba-execution-selected-file-remove:hover,
.oba-execution-selected-file-remove:focus-visible {
    color: #b32633;
}
.oba-execution-upload-status {
    padding: 10px 12px;
    border-radius: 5px;
    color: #9d2148;
    background: #fdebf1;
    font-size: 11px;
}
.oba-execution-upload-status[hidden],
.oba-execution-upload-progress[hidden] {
    display: none;
}
.oba-execution-upload-progress {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: center;
    gap: 10px;
}
.oba-execution-upload-progress > div {
    height: 8px;
    overflow: hidden;
    border-radius: 20px;
    background: #e2e6e8;
}
.oba-execution-upload-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--green);
    transition: width .12s linear;
}
.oba-execution-upload-progress strong {
    color: #59636b;
    font-size: 11px;
    text-align: right;
}
.oba-execution-files-table,
.oba-execution-logs-table {
    min-width: 720px;
}
.oba-execution-files-table {
    table-layout: fixed;
}
.oba-execution-files-table th,
.oba-execution-files-table td,
.oba-execution-logs-table th,
.oba-execution-logs-table td {
    padding: 11px 12px;
}
.oba-execution-files-table th:nth-child(2),
.oba-execution-files-table td:nth-child(2) {
    width: 90px;
    text-align: right;
    white-space: nowrap;
}
.oba-execution-files-table th:nth-child(3),
.oba-execution-files-table td:nth-child(3) {
    width: 110px;
    text-align: right;
    white-space: nowrap;
}
.oba-execution-files-table .actions-col,
.oba-execution-files-table .row-actions {
    width: 70px;
    text-align: right;
    white-space: nowrap;
}
.oba-execution-logs-table th:first-child,
.oba-execution-logs-table td:first-child {
    width: 145px;
    white-space: nowrap;
}
.oba-execution-logs-table th:nth-child(2),
.oba-execution-logs-table td:nth-child(2) {
    width: 170px;
}
.oba-modal-header-action {
    margin-left: auto;
    padding: 4px 0;
    border: 0;
    color: #59636b;
    background: transparent;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}
.oba-modal-header-action:hover,
.oba-modal-header-action:focus-visible {
    color: var(--green-dark);
}
.oba-rejection-section { margin-top: 25px; }
.oba-rejection-heading {
    display: flex;
    margin-bottom: 21px;
    align-items: center;
    gap: 0;
}
.oba-rejection-heading h4.arrow {
    margin-top: 0;
    margin-bottom: 0;
    flex: 0 0 auto;
    font-size: 12px;
}
.oba-rejection-heading > span {
    height: 1px;
    flex: 1 1 auto;
    background: #d8dcdf;
}
.oba-rejection-message {
    position: relative;
    padding: 22px 28px;
    border-radius: 8px;
    color: #75233e;
    background: rgba(236, 61, 112, .11);
}
.oba-rejection-message p { margin: 0; line-height: 1.6; font-size: 12px; }
.oba-rejection-message .oba-rejection-meta {
    margin-bottom: 12px;
    padding-right: 62px;
    font-weight: 800;
}
.oba-rejection-edit {
    position: absolute;
    top: 17px;
    right: 28px;
    padding: 0;
    border: 0;
    color: #a61f4a;
    background: transparent;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}
.oba-rejection-edit:hover,
.oba-rejection-edit:focus-visible {
    color: #dc386b;
    text-decoration: underline;
}
.oba-pending-approval-notice {
    margin: 18px 0 25px;
    padding: 18px 28px;
    border-radius: 8px;
    color: #75233e;
    background: rgba(236, 61, 112, .11);
}
.oba-pending-approval-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.oba-pending-approval-row + .oba-pending-approval-row {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(117, 35, 62, .14);
}
.oba-pending-approval-row p {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
}
.oba-pending-approval-row .button {
    flex: 0 0 auto;
}
.data-table tbody tr.oba-row-awaiting-user td {
    background: #fff9e4 !important;
}
.data-table tbody tr.oba-row-rejected-user td {
    background: rgba(220, 56, 107, .11) !important;
}
.oba-modal {
    position: fixed;
    z-index: 1200;
    inset: 0;
    display: grid;
    padding: 20px;
    place-items: center;
}
.oba-modal[hidden] { display: none; }
.oba-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(13, 23, 31, .72);
    backdrop-filter: blur(3px);
}
.oba-modal-dialog {
    position: relative;
    width: min(520px, 100%);
    overflow: hidden;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 26px 80px rgba(0, 0, 0, .3);
}
.oba-information-dialog {
    width: min(460px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}
.oba-information-modal .oba-modal-backdrop {
    background: rgba(13, 23, 31, .08);
    backdrop-filter: blur(1px);
}
.oba-information-modal.is-hover-open {
    pointer-events: none;
}
.oba-information-modal.is-hover-open .oba-information-dialog {
    pointer-events: auto;
}
.oba-information-card {
    padding: 25px 25px 20px;
}
.oba-information-card p {
    margin: 0;
    color: #303940;
    font-size: 14px;
    line-height: 1.65;
    white-space: pre-line;
}
@media (min-width: 761px) {
    .oba-information-modal {
        place-items: start;
    }
    .oba-information-modal .oba-information-dialog {
        position: absolute;
        top: var(--oba-information-top, 20px);
        left: var(--oba-information-left, 20px);
    }
}
.oba-modal-dialog > header {
    display: flex;
    padding: 20px 23px 16px;
    border-bottom: 1px solid #dfe3e5;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}
.oba-modal-dialog h2 { margin: 0 0 3px; font-size: 19px; }
.oba-modal-dialog header p { margin: 0; color: var(--muted); font-size: 11px; }
.oba-modal-close {
    display: grid;
    width: 33px;
    height: 33px;
    border: 0;
    border-radius: 50%;
    place-items: center;
    color: #626b73;
    background: #f0f2f4;
}
.oba-modal-body { padding: 24px 23px; line-height: 1.6; }
.oba-modal-body > p { margin: 0; }
.oba-modal-form-fields {
    display: grid;
    gap: 22px;
}
.oba-modal-dialog footer {
    display: flex;
    padding: 0 23px 22px;
    justify-content: flex-end;
    gap: 9px;
}
.oba-modal-dialog footer form { display: inline-flex; }
.oba-approval-logs {
    margin-top: 18px;
}
.oba-approval-logs[hidden] {
    display: none;
}
.oba-approval-history-toggle {
    display: inline-flex;
    margin-left: auto;
    padding: 0;
    border: 0;
    align-items: center;
    gap: 7px;
    color: #59636b;
    background: transparent;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}
.oba-approval-history-toggle:hover,
.oba-approval-history-toggle:focus-visible {
    color: #374149;
}
.oba-approval-history-toggle[aria-expanded="true"] {
    color: #59636b;
}
.oba-approval-logs-empty {
    margin: 0;
    padding: 17px 19px;
    border-radius: 6px;
    color: var(--muted);
    background: #f1f3f4;
}
.oba-approval-log {
    padding: 17px 19px;
    border: 1px solid #e1e4e6;
    border-radius: 6px;
    color: #374149;
    background: #f1f3f4;
}
.oba-approval-log + .oba-approval-log {
    margin-top: 12px;
}
.oba-approval-log > header {
    margin-bottom: 11px;
}
.oba-approval-log > header strong {
    color: #737d85;
    font-size: 12px;
    font-weight: 700;
}
.oba-approval-log-result.is-approved {
    color: #15934a;
}
.oba-approval-log p {
    margin: 0;
    line-height: 1.55;
}
.audit-filters {
    display: flex;
    margin-bottom: 18px;
    align-items: center;
    gap: 9px;
}
.audit-action-filter select {
    height: 38px;
    padding: 0 11px;
    border: 1px solid #ccd2d7;
    border-radius: 5px;
    background: #fff;
}
.audit-total {
    margin-left: auto;
    color: var(--muted);
    font-size: 11px;
}
.audit-user-id {
    display: block;
    color: var(--muted);
    font-size: 9px;
}
select:not([multiple]) {
    padding-right: 40px !important;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2359636b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 13px center !important;
    background-size: 10px 6px !important;
}
.audit-action {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
}
.audit-action-adicao { color: #14753c; background: #dff5e8; }
.audit-action-edicao { color: #76570d; background: #fff2c7; }
.audit-action-exclusao { color: #922d37; background: #ffe0e3; }
.audit-action-login { color: #155b83; background: #dceff9; }
.audit-action-logout { color: #545b62; background: #e8eaec; }
.audit-pagination {
    display: flex;
    margin-top: 20px;
    justify-content: flex-end;
    gap: 5px;
}
.audit-pagination a {
    display: inline-grid;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #d1d6da;
    border-radius: 4px;
    place-items: center;
    color: #4d565d;
    background: #fff;
    text-decoration: none;
}
.audit-pagination a:hover,
.audit-pagination a.is-current {
    border-color: var(--settings-black);
    color: #fff;
    background: var(--settings-black);
}
.audit-detail { width: 100%; }
.audit-meta {
    display: grid;
    margin: 0 0 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--line);
}
.audit-meta > div {
    min-width: 0;
    padding: 15px;
    background: #fff;
}
.audit-meta dt {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}
.audit-meta dd {
    margin: 0;
    overflow-wrap: anywhere;
}
.audit-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.audit-values section {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
}
.audit-values h2 { margin: 0 0 12px; font-size: 15px; }
.audit-values pre {
    max-height: 460px;
    margin: 0;
    padding: 14px;
    overflow: auto;
    border-radius: 5px;
    color: #dfe8ed;
    background: #1d2328;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font: 11px/1.55 monospace;
}
.test-email {
    display: grid;
    margin-top: 27px;
    grid-template-columns: minmax(260px, 488px) 110px;
    align-items: end;
    gap: 8px;
}
.test-email .button { height: 42px; }
.empty-state {
    display: grid;
    min-height: 430px;
    padding: 40px;
    border: 1px dashed #ccd3d8;
    border-radius: 8px;
    place-items: center;
    align-content: center;
    text-align: center;
}
.empty-state > i { margin-bottom: 18px; color: var(--green); font-size: 54px; }
.empty-state h2 { margin: 0 0 7px; }
.empty-state p { margin: 0 0 9px; font-size: 16px; }
.empty-state span { max-width: 540px; margin-bottom: 25px; color: var(--muted); }
.error-state {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 100%;
    padding: 40px;
    flex: 1;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    place-items: center;
    align-content: center;
    background: #fff;
    text-align: center;
}
.error-state::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    content: "";
    background: url("../img/bg_login.jpg") center / cover no-repeat;
    opacity: .5;
}
.error-state > * { position: relative; z-index: 1; }
.error-state > i { margin-bottom: 17px; color: var(--green); font-size: 38px; }
.error-state h2 { margin: 0 0 7px; font-size: 21px; }
.error-state p { max-width: 520px; margin: 0; color: #505a63; font-size: 14px; }

@media (max-width: 1050px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .user-form-layout { grid-template-columns: 1fr; }
    .audit-values { grid-template-columns: 1fr; }
    .oba-filters { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .filter-field,
    .filter-field-catalog,
    .filter-field-status,
    .filter-field-type,
    .filter-field-stage { grid-column: span 2; }
    .filter-field-period,
    .filter-field-user { grid-column: span 3; }
    .filter-field-search { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    .auth-card { min-height: 0; padding: 38px 24px 30px; }
    .auth-logo { margin-bottom: 35px; }
    .app-shell, .app-shell.sidebar-collapsed { display: block; }
    .sidebar {
        position: fixed;
        left: 0;
        width: min(286px, 86vw);
        transform: translateX(-105%);
        transition: transform .22s ease;
    }
    .app-shell.mobile-menu-open .sidebar { transform: translateX(0); }
    .sidebar-collapse-button {
        left: min(286px, 86vw);
        display: none;
    }
    .app-shell.mobile-menu-open .sidebar-collapse-button { display: grid; }
    .app-shell.sidebar-collapsed .brand-logo-full { display: block; }
    .app-shell.sidebar-collapsed .brand-logo-icon { display: none; }
    .app-shell.sidebar-collapsed .user-panel {
        min-height: 98px;
        padding: 16px 18px;
        grid-template-columns: 45px minmax(0, 1fr) auto;
        justify-items: initial;
    }
    .app-shell.sidebar-collapsed .user-copy,
    .app-shell.sidebar-collapsed .logout-button,
    .app-shell.sidebar-collapsed .nav-text { display: block; }
    .app-shell.sidebar-collapsed .nav-link { min-height: 47px; padding: 0 19px; justify-content: flex-start; }
    .app-shell.mobile-menu-open .sidebar-backdrop {
        position: fixed;
        z-index: 20;
        inset: 0;
        display: block;
        background: rgba(9, 19, 28, .42);
    }
    .page-header {
        min-height: 82px;
        margin: 0;
        padding: 0 18px;
        justify-content: flex-start;
    }
    .page-header h1 { font-size: 22px; }
    .page-actions { margin-left: auto; }
    .mobile-menu { display: block; }
    .page-content { padding: 22px 18px 45px; }
    .flash-stack {
        right: 16px;
        bottom: 16px;
        width: calc(100vw - 32px);
    }
    .form-grid { grid-template-columns: 1fr; }
    .quality-settings-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .quality-settings-manager { grid-column: 1 / -1; }
    .quality-settings-notifications { grid-column: 1 / -1; }
    .user-groups-field { padding: 15px; }
    .user-groups-table { overflow-x: auto; }
    .oba-filter-panel > summary { padding: 0 13px; }
    .oba-filter-form { padding: 4px 13px 15px; }
    .oba-filters { grid-template-columns: 1fr; }
    .filter-field,
    .filter-field-catalog,
    .filter-field-status,
    .filter-field-type,
    .filter-field-stage,
    .filter-field-period,
    .filter-field-user,
    .filter-field-search { grid-column: 1 / -1; }
    .oba-period-inputs { grid-template-columns: 1fr; }
    .oba-filter-actions { align-items: stretch; flex-direction: column; }
    .oba-filter-actions .button { width: 100%; }
    .oba-pagination { justify-content: center; flex-wrap: wrap; }
    .oba-pagination a,
    .oba-pagination > span { padding: 0 8px; }
    .oba-detail-grid { grid-template-columns: 1fr; }
    .oba-detail-grid .oba-detail-wide { grid-column: auto; }
    .oba-stage-grid,
    .oba-text-grid { grid-template-columns: 1fr; }
    .oba-occurrence-assignment-action .button,
    .oba-opening-advance-action .button { width: 100%; }
    .oba-stage-grid .oba-field-wide { grid-column: auto; }
    .oba-overview-card {
        width: calc(100% + 36px);
        margin: -22px -18px 0;
        padding: 20px 18px;
    }
    .oba-overview-grid,
    .oba-details-form-grid,
    .oba-closing-grid,
    .oba-effectiveness-grid,
    .oba-related-fields,
    .oba-related-review-grid,
    .oba-related-review-texts { grid-template-columns: 1fr; }
    .oba-overview-item:nth-last-child(2) { border-bottom: 1px solid rgba(0, 0, 0, .1); }
    .oba-pending-approval-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
    .oba-bottom-workflow-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .oba-bottom-workflow-actions .button {
        width: 100%;
    }
    .oba-details-form-grid .oba-field-wide { grid-column: auto; }
    .oba-related-fields .oba-field-wide { grid-column: auto; }
    .oba-related-review-grid .oba-related-review-wide { grid-column: auto; }
    .oba-effectiveness-deadline-empty {
        align-items: stretch;
        flex-direction: column;
    }
    .oba-investigation-model-heading {
        padding: 5px 0;
        align-items: flex-start;
        flex-direction: column;
    }
    .oba-investigation-model-heading > button {
        margin-left: 0;
    }
    .oba-section-arrow-heading {
        flex-wrap: wrap;
    }
    .oba-section-arrow-heading > button {
        width: 100%;
        margin: 10px 0 0;
        text-align: right;
    }
    .oba-action-plan-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .oba-action-plan-heading > span {
        display: none;
    }
    .oba-action-plan-heading-actions {
        width: 100%;
        margin: 12px 0 0;
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .oba-action-plan-heading-actions > strong {
        margin-left: auto;
    }
    .oba-action-plan-table {
        min-width: 1040px;
    }
    .oba-execution-table {
        min-width: 900px;
    }
    .oba-execution-file-name {
        grid-template-columns: minmax(0, 1fr) 34px;
        gap: 10px;
    }
    .oba-execution-existing-file {
        grid-template-columns: minmax(0, 1fr) 34px;
    }
    .oba-execution-existing-file-meta {
        min-height: 0;
        grid-column: 1;
        justify-content: flex-start;
    }
    .oba-execution-existing-file-remove {
        grid-column: 2;
        grid-row: 1;
    }
    .oba-root-cause-text {
        min-height: 160px;
        padding: 22px;
    }
    .oba-record-heading { flex-direction: column; }
    .oba-status-display { width: 100%; }
    .field-wide { grid-column: auto; }
    .test-email { grid-template-columns: 1fr; }
    .list-toolbar { align-items: stretch; flex-direction: column; }
    .audit-filters { align-items: stretch; flex-direction: column; }
    .audit-filters .search-field,
    .audit-action-filter select { width: 100%; }
    .audit-total { margin-left: 0; }
    .audit-meta { grid-template-columns: 1fr; }
    .search-field { width: 100%; }
    .dashboard-line-chart,
    .dashboard-line-chart svg { min-height: 0; height: auto; }
    .dashboard-chart-legend { flex-wrap: wrap; }
    .card-heading { flex-direction: column; }
    .page-actions .button { padding: 0 10px; }
    .app-footer { padding: 14px 18px; }
    .profile-photo-modal { padding: 12px; }
    .profile-photo-dialog { max-height: calc(100vh - 24px); }
    .profile-photo-header { padding: 18px 18px 14px; }
    .profile-photo-form { padding: 16px 18px 19px; }
}

@media (max-width: 1270px) {
    .home-screen {
        overflow: visible;
    }
    .home-shell {
        padding: 26px 28px 22px;
    }
    .home-header {
        align-items: center;
    }
    .home-user-tools time {
        display: none;
    }
    .home-content {
        margin-top: 42px;
        padding-right: 0;
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .home-modules h1 {
        margin-bottom: 30px;
    }
    .home-banner-area {
        width: min(488px, 100%);
        margin: 0;
    }
    .home-footer {
        margin-top: 52px;
    }
}

@media (max-width: 700px) {
    .home-module-grid {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .home-module-card {
        width: 100%;
        min-width: 0;
        height: 148px;
    }
}

@media (max-width: 600px) {
    .home-shell {
        padding: 20px 18px;
    }
    .home-header {
        align-items: flex-start;
        gap: 18px;
    }
    .home-brand {
        width: 148px;
    }
    .home-user-tools {
        gap: 7px;
    }
    .home-user-tools > strong {
        display: none;
    }
    .home-profile-avatar.user-avatar,
    .home-profile-avatar .profile-photo-current,
    .home-profile-avatar .profile-photo-current img {
        width: 35px;
        height: 35px;
    }
    .home-profile-avatar.user-avatar {
        font-size: 29px;
    }
    .home-tool-link {
        width: 28px;
    }
    .home-logout-form {
        margin-left: 0;
    }
    .home-logout-form button span {
        display: none;
    }
    .home-content {
        margin-top: 38px;
        gap: 42px;
    }
    .home-modules h1 {
        margin-left: 0;
        font-size: 17px;
    }
    .home-module-grid {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .home-module-card {
        width: 100%;
        min-width: 0;
        height: 148px;
    }
    .home-banner-area {
        width: 100%;
    }
    .home-footer {
        margin-top: 45px;
    }
    .home-footer img {
        width: 86px;
    }
}

/* Administração master: banners e licença */
.home-carousel-link {
    display: block;
    width: 100%;
    height: 100%;
}
.banner-admin-panel {
    width: 100%;
}
.banner-admin-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.banner-admin-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d8dde1;
    border-radius: 9px;
    background: #fff;
}
.banner-admin-image {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #eef1f3;
}
.banner-admin-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    padding: 18px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    background: rgba(23, 29, 34, .66);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}
.banner-admin-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.banner-admin-link {
    color: #57adff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}
.banner-admin-link:hover,
.banner-admin-link:focus-visible {
    color: #86c6ff;
    text-decoration: underline;
    outline: none;
}
.banner-admin-card:hover .banner-admin-overlay,
.banner-admin-card:focus-within .banner-admin-overlay,
.banner-admin-card.is-actions-visible .banner-admin-overlay {
    opacity: 1;
    pointer-events: auto;
}
.banner-admin-overlay form {
    margin: 0;
}
.banner-admin-overlay button {
    display: inline-flex;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 5px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #fff;
    background: rgba(0, 0, 0, .32);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.banner-admin-overlay button:hover,
.banner-admin-overlay button:focus-visible {
    border-color: #fff;
    color: #fff;
    background: rgba(0, 0, 0, .62);
    outline: none;
}
.banner-admin-overlay .danger-link:hover,
.banner-admin-overlay .danger-link:focus-visible {
    border-color: #ffb5bc;
    color: #fff;
    background: rgba(166, 28, 43, .82);
}
.banner-upload-dialog {
    width: min(540px, 100%);
}
.profile-crop-area.banner-crop-area {
    aspect-ratio: 4 / 5;
}
.banner-admin-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.license-admin-form {
    max-width: 820px;
}
.license-admin-grid {
    display: grid;
    gap: 10px;
}
.license-admin-item {
    display: flex;
    min-height: 68px;
    padding: 14px 16px;
    border: 1px solid #dfe3e6;
    border-radius: 7px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.license-admin-item--application {
    border-color: #b8dfc9;
    background: #f1fbf5;
}
.license-admin-item > div {
    display: grid;
    gap: 4px;
}
.license-admin-item strong {
    font-size: 14px;
}
.license-admin-item > div span {
    color: var(--muted);
    font-size: 12px;
}
.license-admin-item .switch {
    flex: 0 0 auto;
}

.oba-overview-inline-edit {
    margin-left: 10px;
    padding: 0;
    border: 0;
    color: rgba(255, 255, 255, .9);
    background: transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.oba-overview-inline-edit:hover,
.oba-overview-inline-edit:focus-visible {
    color: #fff;
    text-decoration: underline;
    outline: none;
}
.oba-responsible-picker {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
}
.oba-inline-field-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

@media (max-width: 1500px) {
    .banner-admin-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
    .banner-admin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
    .banner-admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .banner-admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .license-admin-item { align-items: flex-start; }
    .oba-responsible-picker { grid-template-columns: 1fr; }
}
