:root {
    --gt-navy: #0a2458;
    --gt-gold: #c9a04f;
    --gt-bg: #f4f6fb;
    --gt-text: #243049;
    --gt-soft: #eef2f9;
}

body {
    background: var(--gt-bg);
    color: var(--gt-text);
}

a { color: var(--gt-navy); }
a:hover { color: #143b86; }

.left-panel {
    background: linear-gradient(180deg, #081c45 0%, #0f2f73 100%);
}

.navbar .navbar-nav li > a,
.navbar .navbar-nav li > a .menu-icon {
    color: rgba(255,255,255,.88);
}

.navbar .navbar-nav li.active > a,
.navbar .navbar-nav li:hover > a {
    color: #fff;
    background: rgba(255,255,255,.08);
}

.menu-title {
    color: rgba(255,255,255,.5);
    letter-spacing: .08em;
}

.navbar-header {
    min-height: 78px;
    display: flex;
    align-items: center;
}

.gt-sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 12px;
}

.gt-sidebar-logo img {
    max-width: 180px;
    max-height: 54px;
}

.gt-header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gt-header-brand img {
    max-height: 46px;
}

.gt-page-title {
    color: var(--gt-navy);
    font-weight: 700;
    margin-bottom: .25rem;
}

.gt-page-subtitle {
    color: #6c7a96;
    font-size: .92rem;
}

.gt-card,
.card {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(27, 51, 100, .08);
}

.card-header {
    border-bottom: 1px solid rgba(10, 36, 88, .08);
    background: #fff;
}

.gt-kpi {
    padding: 1.2rem 1.25rem;
    min-height: 128px;
}

.gt-kpi-label {
    color: #7b879f;
    font-size: .85rem;
    margin-bottom: .45rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.gt-kpi-value {
    color: var(--gt-navy);
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.1;
}

.gt-kpi-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 160, 79, .12);
    color: var(--gt-gold);
    font-size: 1.2rem;
}

.btn-primary,
.badge-primary {
    background-color: var(--gt-navy);
    border-color: var(--gt-navy);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #143b86;
    border-color: #143b86;
}

.btn-outline-primary {
    color: var(--gt-navy);
    border-color: var(--gt-navy);
}

.btn-outline-primary:hover {
    background-color: var(--gt-navy);
    border-color: var(--gt-navy);
}

.btn-gold {
    color: #fff;
    background: var(--gt-gold);
    border-color: var(--gt-gold);
}

.btn-gold:hover { color: #fff; background: #b08b45; border-color: #b08b45; }

.badge-gold { background: rgba(201, 160, 79, .14); color: #9b7430; }

.form-control:focus,
.form-select:focus {
    border-color: rgba(10, 36, 88, .35);
    box-shadow: 0 0 0 .2rem rgba(10, 36, 88, .08);
}

.table thead th {
    border-top: 0;
    color: #66738f;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.gt-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: #7d89a4;
}

.gt-section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.gt-alert-soft {
    background: rgba(201, 160, 79, .12);
    color: #866220;
    border: 1px solid rgba(201,160,79,.18);
    border-radius: 12px;
    padding: .9rem 1rem;
}

.gt-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
      radial-gradient(circle at top left, rgba(201,160,79,.18), transparent 32%),
      linear-gradient(135deg, #081c45 0%, #102f73 55%, #163f95 100%);
}

.gt-login-card {
    background: rgba(255,255,255,.98);
    border-radius: 22px;
    box-shadow: 0 25px 80px rgba(0,0,0,.22);
    overflow: hidden;
}

.gt-login-side {
    background: linear-gradient(180deg, rgba(10,36,88,.98), rgba(12,48,114,.95));
    color: #fff;
    padding: 2.2rem;
    min-height: 100%;
}

.gt-login-side .tag {
    display: inline-block;
    background: rgba(201,160,79,.18);
    color: #f1d497;
    padding: .35rem .7rem;
    border-radius: 999px;
    font-size: .78rem;
    margin-bottom: 1rem;
}

.gt-login-logo img { max-width: 100%; max-height: 130px; }
.gt-login-form { padding: 2.2rem; }

.top-right .header-menu .dropdown .dropdown-toggle .count {
    background: var(--gt-gold);
}

.user-menu .nav-link i,
.header-left .dropdown .dropdown-toggle i,
.menutoggle i {
    color: var(--gt-navy);
}

.content {
    padding: 1.5rem 1.5rem 2.5rem;
}

.footer {
    background: transparent;
    color: #8c96ab;
    font-size: .88rem;
    padding: 1rem 1.5rem 2rem;
}

/* Compatibilidade com páginas legadas em Bootstrap 5 */
.form-select {
    display: block;
    width: 100%;
    height: calc(2.25rem + 2px);
    padding: .375rem 2rem .375rem .75rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 8px 10px;
    border: 1px solid #ced4da;
    border-radius: .25rem;
}
.text-end { text-align: right !important; }
.display-6 { font-size: 2rem; font-weight: 600; }
.gap-2 { gap: .5rem !important; }
.gap-3 { gap: 1rem !important; }
.g-3 { margin-left: -.5rem; margin-right: -.5rem; }
.g-3 > [class*='col'] { padding-left: .5rem; padding-right: .5rem; margin-bottom: 1rem; }
.text-bg-success{background:#d1e7dd!important;color:#0f5132!important;padding:.35rem .55rem;border-radius:.35rem;display:inline-block;}
.text-bg-danger{background:#f8d7da!important;color:#842029!important;padding:.35rem .55rem;border-radius:.35rem;display:inline-block;}
.text-bg-warning{background:#fff3cd!important;color:#664d03!important;padding:.35rem .55rem;border-radius:.35rem;display:inline-block;}
.text-bg-primary{background:#cfe2ff!important;color:#084298!important;padding:.35rem .55rem;border-radius:.35rem;display:inline-block;}
.text-bg-secondary{background:#e2e3e5!important;color:#41464b!important;padding:.35rem .55rem;border-radius:.35rem;display:inline-block;}
.btn-close { float: right; font-size: 1.2rem; line-height: 1; opacity: .6; background:none; border:0; }

@media (max-width: 991.98px) {
    .content { padding: 1rem 1rem 2rem; }
    .gt-login-side { display: none; }
}


.left-panel {
    background: linear-gradient(180deg, rgba(132,141,189,.98), rgba(18,11,55,.95));
}

.left-panel .navbar,
.left-panel .main-menu,
.left-panel .navbar-nav,
.left-panel .sub-menu {
    background: transparent;
}

.gt-sidebar-nav {
    padding-bottom: 2rem;
}

.gt-sidebar-logo-item {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.gt-sidebar-logo {
    min-height: 88px;
    padding: 1rem 1rem .75rem;
}

.gt-sidebar-logo img {
    max-width: 170px;
    max-height: 72px;
}

.left-panel .navbar .navbar-nav > li {
    padding-left: 1rem;
    padding-right: 1rem;
}

.left-panel .navbar .navbar-nav > li.active,
.left-panel .navbar .navbar-nav > li.show,
.left-panel .navbar .navbar-nav > li:hover {
    background: transparent;
}

.left-panel .navbar .menu-title {
    color: rgba(255,255,255,.72);
    font-size: .78rem;
    letter-spacing: .12em;
    line-height: 1.2;
    padding: 1rem 1rem .45rem;
    margin-top: .45rem;
}

.left-panel .navbar .navbar-nav li > a,
.left-panel .navbar .navbar-nav li > a .menu-icon,
.left-panel .navbar .navbar-nav li.menu-item-has-children .sub-menu i {
    color: rgba(255,255,255,.92);
}

.left-panel .navbar .navbar-nav li > a {
    border-radius: 12px;
    padding: .7rem .85rem;
    line-height: 1.25;
    font-size: .95rem;
}

.left-panel .navbar .navbar-nav li > a .menu-icon {
    width: 28px;
    margin-top: 0;
    font-size: 1rem;
}

.left-panel .navbar .navbar-nav li > a .menu-title-text {
    font-size: .95rem;
    font-weight: 600;
}

.left-panel .navbar .navbar-nav > li.active > a,
.left-panel .navbar .navbar-nav > li > a:hover,
.left-panel .navbar .navbar-nav > li.menu-item-has-children.show > a,
.left-panel .navbar .navbar-nav > .active > a,
.left-panel .navbar .navbar-nav > .active > a:focus,
.left-panel .navbar .navbar-nav > .active > a:hover {
    color: #ffffff;
    background: rgba(255,255,255,.16) !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.left-panel .navbar .navbar-nav li.menu-item-has-children > a:before {
    border-color: rgba(255,255,255,.85) rgba(255,255,255,.85) transparent transparent;
    top: 22px;
    right: 16px;
}

.left-panel .navbar .navbar-nav li.menu-item-has-children.show > a:before {
    border-color: transparent rgba(255,255,255,.95) rgba(255,255,255,.95) transparent;
    right: 12px;
}

.left-panel .navbar .navbar-nav li.menu-item-has-children .sub-menu {
    padding: .35rem 0 .5rem 0;
    margin: .35rem 0 .5rem;
    border-radius: 14px;
    background: rgba(255,255,255,.08);
}

.left-panel .navbar .navbar-nav li.menu-item-has-children .sub-menu li {
    padding-left: .55rem;
    padding-right: .55rem;
}

.left-panel .navbar .navbar-nav li.menu-item-has-children .sub-menu li a {
    padding: .55rem .75rem .55rem 2rem;
    border-radius: 10px;
    font-size: .9rem;
    color: rgba(255,255,255,.88);
}

.left-panel .navbar .navbar-nav li.menu-item-has-children .sub-menu li.active a,
.left-panel .navbar .navbar-nav li.menu-item-has-children .sub-menu li a:hover {
    background: rgba(255,255,255,.14) !important;
    color: #fff;
}

.left-panel .navbar .navbar-nav li.menu-item-has-children .sub-menu i {
    left: 1rem;
    top: 12px;
    font-size: .78rem;
    opacity: .85;
}

.gt-page-title {
    font-size: 2.7rem;
    line-height: 1.05;
}

.gt-kpi {
    padding: 1rem 1.05rem;
    min-height: 104px;
}

.gt-kpi-label {
    font-size: .8rem;
    margin-bottom: .35rem;
}

.gt-kpi-value {
    font-size: 1.7rem;
}

.gt-kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 1rem;
}

.card.gt-card {
    margin-bottom: .85rem;
}

.gt-card .card-header {
    padding: .85rem 1rem;
}

.gt-card .card-body {
    padding: 1rem;
}

.gt-dashboard-compact .row.g-3 {
    margin-left: -.4rem;
    margin-right: -.4rem;
}

.gt-dashboard-compact .row.g-3 > [class*='col'] {
    padding-left: .4rem;
    padding-right: .4rem;
    margin-bottom: .8rem;
}

@media (max-width: 991.98px) {
    .gt-page-title {
        font-size: 2.15rem;
    }
}

.gt-table-clickable tbody tr { transition: background .15s ease, transform .15s ease; }
.gt-table-clickable tbody tr:hover { background: rgba(10,36,88,.035); }
.gt-timeline-mini { display:grid; gap:.35rem; min-width:180px; }
.gt-timeline-mini div { display:flex; justify-content:space-between; gap:.75rem; font-size:.84rem; }
.gt-timeline-mini span { color:#7c89a1; }
.gt-timeline-mini strong { color:var(--gt-navy); font-weight:600; }
.gt-part-card { display:block; border:1px solid rgba(10,36,88,.08); border-radius:14px; padding:1rem; text-decoration:none !important; color:inherit; background:#fff; box-shadow:0 8px 24px rgba(27,51,100,.05); }
.gt-part-card:hover { transform:translateY(-1px); box-shadow:0 12px 28px rgba(27,51,100,.08); color:inherit; }
.gt-part-card-success { border-left:4px solid #28a745; }
.gt-part-card-warning { border-left:4px solid #ffc107; }
.gt-part-card-danger { border-left:4px solid #dc3545; }
.gt-part-card-secondary { border-left:4px solid #98a6bf; }
.gt-mini-label { display:block; color:#7c89a1; font-size:.76rem; margin-bottom:.15rem; }
.gt-flow-row { display:flex; justify-content:space-between; align-items:flex-start; gap:1rem; padding:.8rem 0; border-bottom:1px solid rgba(10,36,88,.08); }
.gt-data-check-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; }
.gt-data-check-item { border-radius:12px; padding:.8rem .9rem; border:1px solid rgba(10,36,88,.08); display:flex; justify-content:space-between; gap:.75rem; background:#fff; }
.gt-data-check-item span { color:#6c7a96; font-size:.84rem; }
.gt-data-check-item strong { font-size:.86rem; }
.gt-data-check-item.is-ok { background:rgba(40,167,69,.08); border-color:rgba(40,167,69,.16); }
.gt-data-check-item.is-ok strong { color:#1f7a37; }
.gt-data-check-item.is-pending { background:rgba(255,193,7,.10); border-color:rgba(255,193,7,.18); }
.gt-data-check-item.is-pending strong { color:#9a7400; }
@media (max-width: 767.98px) {
  .gt-data-check-grid { grid-template-columns:1fr; }
}

.gt-cert-section { border:1px solid rgba(10,36,88,.07); border-radius:14px; overflow:hidden; background:#fff; }
.gt-cert-section-head { display:flex; justify-content:space-between; align-items:flex-start; gap:1rem; padding:.9rem 1rem; background:rgba(10,36,88,.03); border-bottom:1px solid rgba(10,36,88,.07); }
.gt-cert-org-row td { background:rgba(10,36,88,.045); color:var(--gt-navy); font-weight:700; font-size:.82rem; text-transform:uppercase; letter-spacing:.04em; }
.gt-cert-table td, .gt-cert-table th { vertical-align:middle; }
.gt-cert-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:.4rem; }

.gt-cert-doc-wrap{display:inline-flex;align-items:center;gap:.45rem;}
.gt-cert-doc-wrap .js-cert-delete-doc{padding:.28rem .45rem;line-height:1;border-radius:10px;}
.gt-cert-doc-wrap .js-cert-delete-doc i{font-size:.9rem;}
.gt-cert-thumb-link, .gt-cert-file-chip { display:inline-flex; align-items:center; gap:.55rem; text-decoration:none !important; }
.gt-cert-thumb-link:hover, .gt-cert-file-chip:hover { color:inherit; }
.gt-cert-thumb-img { width:44px; height:44px; object-fit:cover; border-radius:10px; border:1px solid rgba(10,36,88,.08); background:#fff; }
.gt-cert-thumb-name { display:inline-block; max-width:160px; color:var(--gt-text); font-size:.86rem; }
.gt-cert-file-chip { padding:.5rem .7rem; border:1px solid rgba(10,36,88,.08); border-radius:12px; color:var(--gt-text); background:#fff; }
.gt-cert-file-chip i { color:#d33; font-size:1.05rem; }
.gt-modal-clean .modal-content { border:0; border-radius:18px; box-shadow:0 25px 80px rgba(0,0,0,.18); }
.gt-modal-clean .modal-header { border-bottom:1px solid rgba(10,36,88,.08); }
.gt-modal-clean .modal-footer { border-top:1px solid rgba(10,36,88,.08); }
.font-weight-semibold { font-weight:600; }
@media (max-width: 991.98px) {
  .gt-cert-actions { justify-content:flex-start; }
}

/* GED parte cards clickable */
.gt-part-card-link{display:block;color:inherit;text-decoration:none;}
.gt-part-card-link:hover,.gt-part-card-link:focus{color:inherit;text-decoration:none;}
.gt-part-card-link .gt-part-card{transition:transform .15s ease, box-shadow .15s ease;}
.gt-part-card-link:hover .gt-part-card{transform:translateY(-2px);box-shadow:0 12px 30px rgba(27,51,100,.12);}

/* Patch 08 - Fluxos simplificados e responsividade */
.gt-workspace { max-width: 1480px; margin: 0 auto; }
.gt-hero-panel, .gt-process-hero {
    background: linear-gradient(135deg, rgba(10,36,88,.98), rgba(47,36,112,.92));
    color: #fff;
    border-radius: 22px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 16px 40px rgba(27,51,100,.14);
}
.gt-hero-panel h2, .gt-process-hero h2 { font-size: 2rem; font-weight: 800; margin: .15rem 0 .45rem; color: #fff; }
.gt-hero-panel p, .gt-process-hero p { margin: 0; color: rgba(255,255,255,.82); max-width: 760px; }
.gt-eyebrow { display: inline-flex; border-radius: 999px; padding: .25rem .65rem; background: rgba(201,160,79,.18); color: #ffe2a7; font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; }
.gt-hero-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; }
.gt-hero-actions .btn-light { color: var(--gt-navy); background: #fff; border-color: rgba(255,255,255,.85); }
.gt-action-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: .85rem; }
.gt-action-grid-small { grid-template-columns: repeat(4, minmax(0,1fr)); }
.gt-action-card {
    display: flex;
    flex-direction: column;
    min-height: 135px;
    padding: 1rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(10,36,88,.06);
    box-shadow: 0 10px 28px rgba(27,51,100,.07);
    color: var(--gt-text);
    text-decoration: none !important;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.gt-action-card:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(27,51,100,.11); color: var(--gt-text); border-color: rgba(10,36,88,.15); }
.gt-action-card i { width: 42px; height: 42px; display: inline-flex; align-items:center; justify-content:center; border-radius: 13px; background: rgba(10,36,88,.07); color: var(--gt-navy); font-size: 1.15rem; margin-bottom: .75rem; }
.gt-action-card strong { color: var(--gt-navy); font-size: .98rem; margin-bottom: .3rem; }
.gt-action-card span { color: #6f7d97; font-size: .84rem; line-height: 1.35; }
.gt-action-alert i { background: rgba(255,193,7,.16); color: #9a7400; }
.gt-action-card.is-selected { border-color: rgba(10,36,88,.35); box-shadow: inset 0 0 0 1px rgba(10,36,88,.12), 0 12px 32px rgba(27,51,100,.10); }
.gt-mobile-list { display: grid; gap: 0; }
.gt-mobile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .85rem;
    padding: .9rem 1rem;
    border-bottom: 1px solid rgba(10,36,88,.07);
    color: inherit;
    text-decoration: none !important;
    background: #fff;
}
.gt-mobile-row:hover { color: inherit; background: rgba(10,36,88,.025); }
.gt-mobile-row:last-child { border-bottom: 0; }
.gt-mobile-row div:first-child { min-width: 0; }
.gt-mobile-row strong { display: block; color: var(--gt-navy); font-weight: 700; }
.gt-mobile-row span { display: block; color: #6f7d97; font-size: .86rem; overflow: hidden; text-overflow: ellipsis; }
.gt-mobile-row small { display: block; color: #8b96aa; font-size: .78rem; }
.gt-pending-row { align-items: flex-start; }
.gt-pending-actions { display: flex; align-items: center; justify-content: flex-end; gap: .35rem; flex-wrap: wrap; min-width: 150px; }
.gt-progress { height: 9px; max-width: 460px; background: rgba(255,255,255,.18); border-radius: 999px; margin: .85rem 0 .35rem; overflow: hidden; }
.gt-progress .progress-bar { background: var(--gt-gold); border-radius: 999px; }
.gt-stepper-horizontal { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .65rem; }
.gt-step-pill { display:flex; align-items:center; gap:.65rem; padding:.75rem; border-radius:16px; background:#fff; border:1px solid rgba(10,36,88,.07); color:inherit; text-decoration:none!important; box-shadow:0 8px 24px rgba(27,51,100,.06); min-height:74px; }
.gt-step-pill:hover { color:inherit; transform:translateY(-1px); }
.gt-step-pill span { width:34px; height:34px; flex:0 0 34px; display:inline-flex; align-items:center; justify-content:center; border-radius:999px; background:rgba(10,36,88,.08); color:var(--gt-navy); font-weight:800; }
.gt-step-pill.is-done span { background:rgba(40,167,69,.14); color:#1f7a37; }
.gt-step-pill strong { display:block; color:var(--gt-navy); line-height:1.1; }
.gt-step-pill small { display:block; color:#7c89a1; font-size:.74rem; }
.gt-stack-actions { display:grid; gap:.55rem; }
.gt-stack-actions .btn { text-align:left; border-radius:12px; padding:.7rem .85rem; }
.gt-wizard-layout { display:grid; grid-template-columns: 300px minmax(0, 1fr); gap:1rem; align-items:start; }
.gt-wizard-side { position: sticky; top: 86px; background:#fff; border-radius:20px; padding:1rem; box-shadow:0 10px 30px rgba(27,51,100,.08); }
.gt-wizard-title { color:var(--gt-navy); font-weight:800; margin-bottom:.8rem; }
.gt-stepper-vertical { display:grid; gap:.5rem; }
.gt-step { display:flex; align-items:flex-start; gap:.65rem; padding:.75rem; border-radius:14px; border:1px solid rgba(10,36,88,.07); background:#fff; }
.gt-step span { width:30px; height:30px; flex:0 0 30px; display:inline-flex; align-items:center; justify-content:center; border-radius:999px; background:rgba(10,36,88,.08); color:var(--gt-navy); font-weight:800; }
.gt-step strong { display:block; color:var(--gt-navy); font-size:.9rem; }
.gt-step small { display:block; color:#7c89a1; font-size:.75rem; }
.gt-step.is-active { background:rgba(10,36,88,.04); border-color:rgba(10,36,88,.16); }
.gt-wizard-main { min-width:0; }
.gt-check-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:.75rem; }
.gt-check-tile { display:flex; gap:.75rem; align-items:flex-start; padding:.85rem; border:1px solid rgba(10,36,88,.08); border-radius:14px; background:#fff; cursor:pointer; margin:0; }
.gt-check-tile input { margin-top:.25rem; }
.gt-check-tile strong { display:block; color:var(--gt-navy); }
.gt-check-tile small { display:block; color:#7c89a1; line-height:1.3; }
.gt-sticky-actions { display:flex; justify-content:flex-end; gap:.5rem; flex-wrap:wrap; }
.gt-modal-shell { position:fixed; inset:0; display:none; align-items:center; justify-content:center; z-index:9999; background:rgba(4,12,30,.58); padding:1rem; }
.gt-modal-shell.is-open { display:flex; }
body.gt-modal-open { overflow:hidden; }
.gt-modal-card { width:min(760px, 100%); max-height:92vh; overflow:auto; background:#fff; border-radius:20px; box-shadow:0 25px 80px rgba(0,0,0,.25); }
.gt-modal-head, .gt-modal-foot { display:flex; align-items:center; justify-content:space-between; gap:.75rem; padding:1rem; border-bottom:1px solid rgba(10,36,88,.08); }
.gt-modal-foot { border-bottom:0; border-top:1px solid rgba(10,36,88,.08); justify-content:flex-end; }
.gt-modal-body { padding:1rem; }

@media (max-width: 1199.98px) {
    .gt-action-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .gt-stepper-horizontal { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .gt-wizard-layout { grid-template-columns: 1fr; }
    .gt-wizard-side { position: static; }
    .gt-stepper-vertical { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 767.98px) {
    .gt-page-title { font-size: 1.65rem; }
    .content { padding: .85rem .75rem 1.7rem; }
    .gt-hero-panel, .gt-process-hero { flex-direction: column; align-items: stretch; padding:1rem; border-radius:18px; }
    .gt-hero-panel h2, .gt-process-hero h2 { font-size:1.45rem; }
    .gt-hero-actions { justify-content: stretch; }
    .gt-hero-actions .btn { width:100%; }
    .gt-action-grid, .gt-action-grid-small { grid-template-columns: repeat(2, minmax(0,1fr)); gap:.6rem; }
    .gt-action-card { min-height:126px; padding:.85rem; }
    .gt-stepper-horizontal { grid-template-columns: 1fr; }
    .gt-stepper-vertical { grid-template-columns: 1fr; }
    .gt-check-grid { grid-template-columns: 1fr; }
    .gt-mobile-row { align-items:flex-start; flex-direction:column; }
    .gt-pending-actions { justify-content:flex-start; min-width:0; }
    .gt-sticky-actions { position:sticky; bottom:0; background:rgba(244,246,251,.96); padding:.75rem; margin-left:-1rem; margin-right:-1rem; border-top:1px solid rgba(10,36,88,.08); }
    .gt-sticky-actions .btn { flex:1 1 auto; }
}
@media (max-width: 420px) {
    .gt-action-grid, .gt-action-grid-small { grid-template-columns: 1fr; }
    .gt-kpi-value { font-size:1.35rem; }
}

/* Patch 09 - telas mais simples e responsivas */
.gt-filter-bar {
    display: flex;
    gap: .9rem;
    align-items: flex-end;
    flex-wrap: wrap;
}
.gt-filter-main { flex: 1 1 320px; min-width: 240px; }
.gt-filter-field { flex: 0 1 240px; min-width: 190px; }
.gt-filter-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.gt-chip-row { display: flex; gap: .45rem; flex-wrap: wrap; }
.gt-chip {
    display: inline-flex;
    gap: .35rem;
    align-items: center;
    border: 1px solid rgba(10,36,88,.12);
    background: #fff;
    border-radius: 999px;
    padding: .42rem .75rem;
    color: #43506b;
    font-size: .86rem;
}
.gt-chip span {
    background: rgba(10,36,88,.08);
    color: var(--gt-navy);
    border-radius: 999px;
    padding: .08rem .45rem;
    font-weight: 700;
}
.gt-chip.is-active { background: var(--gt-navy); border-color: var(--gt-navy); color: #fff; }
.gt-chip.is-active span { background: rgba(255,255,255,.18); color: #fff; }
.gt-dossie-grid,
.gt-avulsa-grid,
.gt-part-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    padding: 1rem;
}
.gt-dossie-card,
.gt-avulsa-card,
.gt-part-card {
    border: 1px solid rgba(10,36,88,.08);
    border-radius: 16px;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 10px 24px rgba(27,51,100,.05);
}
.gt-dossie-card h5,
.gt-avulsa-card h5,
.gt-part-card h5 { color: var(--gt-navy); font-weight: 700; margin: .65rem 0 .55rem; }
.gt-card-topline,
.gt-card-bottom { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.gt-card-topline span:first-child { color: #7b879f; font-size: .82rem; font-weight: 700; }
.gt-muted-line { color: #65718d; font-size: .9rem; margin: .24rem 0; }
.gt-muted-line i { width: 16px; color: var(--gt-gold); }
.gt-dossie-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .45rem;
    margin: .85rem 0;
}
.gt-dossie-meta span,
.gt-avulsa-status span {
    background: var(--gt-soft);
    border-radius: 10px;
    padding: .45rem .5rem;
    text-align: center;
    color: #65718d;
    font-size: .78rem;
}
.gt-dossie-meta strong { display: block; color: var(--gt-navy); font-size: 1rem; }
.gt-operation-card-list { display: grid; gap: 1rem; }
.gt-operation-card .card-header,
.gt-cert-group-card .card-header { border-radius: 14px 14px 0 0; }
.gt-person-list { display: grid; gap: .65rem; padding: 1rem; }
.gt-person-row {
    display: flex;
    gap: .75rem;
    align-items: center;
    padding: .78rem;
    border: 1px solid rgba(10,36,88,.08);
    border-radius: 14px;
    color: inherit;
    background: #fff;
}
.gt-person-row:hover { text-decoration: none; background: #f8faff; }
.gt-person-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(10,36,88,.08);
    color: var(--gt-navy);
    font-weight: 800;
    flex: 0 0 auto;
}
.gt-person-main { flex: 1; min-width: 0; }
.gt-person-title { color: var(--gt-navy); font-weight: 700; }
.gt-person-sub,
.gt-person-contact { color: #697794; font-size: .84rem; }
.gt-person-contact { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: .2rem; }
.gt-property-list { display: grid; gap: .75rem; }
.gt-property-card {
    display: flex;
    gap: .75rem;
    padding: .9rem;
    border: 1px solid rgba(10,36,88,.08);
    border-radius: 14px;
    color: inherit;
}
.gt-property-card:hover { text-decoration: none; background: #f8faff; }
.gt-property-card strong { display: block; color: var(--gt-navy); }
.gt-property-card span,
.gt-property-card small { display: block; color: #697794; }
.gt-property-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(201,160,79,.14);
    color: var(--gt-gold);
    flex: 0 0 auto;
}
.gt-cert-group-stats { display: flex; flex-wrap: wrap; gap: .4rem; }
.gt-cert-table .gt-col-arquivo { width: 74px; text-align: center; white-space: nowrap; }
.gt-cert-table .gt-col-situacao { min-width: 260px; }
.gt-avulsa-status { display: flex; gap: .5rem; margin: .8rem 0; flex-wrap: wrap; }
.gt-avulsa-status span { text-align: left; }
.gt-note-small {
    background: #fff8e8;
    color: #866220;
    border-radius: 10px;
    padding: .55rem .65rem;
    font-size: .82rem;
    margin-bottom: .8rem;
}
.gt-consulta-picker {
    border: 1px solid rgba(10,36,88,.08);
    border-radius: 16px;
    padding: 1rem;
    background: #fbfcff;
}
.gt-consulta-search { max-width: 360px; }
.gt-consulta-category { margin-top: .9rem; }
.gt-consulta-category-title {
    color: var(--gt-navy);
    font-weight: 800;
    margin-bottom: .5rem;
}
.gt-consulta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: .65rem;
}
.gt-consulta-card {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    border: 1px solid rgba(10,36,88,.1);
    border-radius: 14px;
    padding: .8rem;
    background: #fff;
    cursor: pointer;
    height: 100%;
}
.gt-consulta-card:hover { border-color: rgba(10,36,88,.3); }
.gt-consulta-card input { margin-top: .2rem; }
.gt-consulta-card strong { display: block; color: var(--gt-navy); line-height: 1.25; }
.gt-consulta-card small,
.gt-consulta-card em { display: block; color: #697794; font-size: .78rem; font-style: normal; margin-top: .18rem; }
.gt-switch-line { display: flex; align-items: center; gap: .45rem; min-height: 38px; }
.gt-wizard-side .gt-step small { display: none; }
@media (max-width: 767px) {
    .gt-filter-bar { align-items: stretch; }
    .gt-filter-main,
    .gt-filter-field,
    .gt-filter-actions { flex: 1 1 100%; }
    .gt-filter-actions .btn { flex: 1 1 auto; }
    .gt-dossie-grid,
    .gt-avulsa-grid,
    .gt-part-card-grid { grid-template-columns: 1fr; padding: .75rem; }
    .gt-dossie-meta { grid-template-columns: repeat(2, 1fr); }
    .gt-person-row { align-items: flex-start; }
    .gt-person-contact { display: block; }
    .gt-person-contact span { display: block; }
    .gt-cert-table thead { display: none; }
    .gt-cert-table tr { display: block; padding: .75rem; border-bottom: 1px solid rgba(10,36,88,.08); }
    .gt-cert-table td { display: block; border: 0; padding: .28rem 0; text-align: left !important; }
    .gt-cert-table .gt-col-arquivo { width: auto; text-align: left; }
    .gt-consulta-search { max-width: 100%; }
}
