/* Definições globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* IzziSmart Experience 2026 ------------------------------------------------ */
:root {
    --izzi-menu: #123b50;
    --izzi-menu-deep: #0d2f41;
    --izzi-menu-hover: #1a728f;
    --izzi-accent: #39c66d;
    --izzi-accent-soft: #e7f8ed;
    --izzi-ink: #243746;
    --izzi-muted: #667085;
    --izzi-bg: #f4f7f9;
    --izzi-surface: #ffffff;
    --izzi-line: #e4e9ee;
    --izzi-shadow: 0 12px 34px rgba(16, 59, 80, .08);
    --izzi-radius: 14px;
    --primary-button-bg: #2ecc71;
    --primary-button-text: #173421;
    --primary-button-hover-bg: #24b862;
    --sidebar-width: 252px;
    --sidebar-collapsed-width: 78px;
    --topbar-height: 68px;
}

html { font-size: 14px; }
body {
    background: var(--izzi-bg);
    color: var(--izzi-ink);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.5;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    width: var(--sidebar-width);
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--izzi-menu) 0%, var(--izzi-menu-deep) 100%);
    color: #fff;
    box-shadow: 8px 0 30px rgba(13, 47, 65, .12);
    transition: width .24s ease, transform .24s ease;
}

.sidebar.d-none { display: flex !important; width: var(--sidebar-collapsed-width); margin-left: 0; }
.brand {
    min-height: 96px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.brand-logo { max-width: 170px; max-height: 58px; object-fit: contain; }
.brand-logo-icon {
    display: none;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: var(--izzi-accent);
    color: #103b32;
    font-weight: 900;
    letter-spacing: -.05em;
}
.sidebar.d-none .brand-logo-full { display: none; }
.sidebar.d-none .brand-logo-icon { display: grid; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 18px 12px; scrollbar-width: thin; }
.sidebar-nav > a,
.sidebar-nav .nav-group > button {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 13px;
    margin: 3px 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #dce9ee;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.sidebar-nav .nav-group > button > span { display: flex; align-items: center; gap: 12px; }
.sidebar-nav > a:hover,
.sidebar-nav > a.active,
.sidebar-nav .nav-group > button:hover,
.sidebar-nav .nav-group.open > button {
    background: rgba(43, 157, 190, .24);
    color: #fff;
    transform: translateX(2px);
}
.sidebar-nav > a.active { box-shadow: inset 3px 0 0 var(--izzi-accent); }
.sidebar-nav i { width: 20px; font-size: 18px; text-align: center; flex: 0 0 auto; }
.nav-chevron { font-size: 12px !important; transition: transform .2s ease; }
.nav-group.open .nav-chevron { transform: rotate(180deg); }
.nav-caption {
    padding: 20px 13px 7px;
    color: #789baa;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.sidebar-nav .submenu {
    display: none;
    margin: 3px 0 8px;
    padding: 4px 0 6px 43px;
    list-style: none;
    background: transparent;
}
.sidebar-nav .nav-group.open > .submenu { display: block; }
.sidebar-nav .submenu li { padding: 0; }
.sidebar-nav .submenu a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: #bcd0d9;
    text-decoration: none;
    font-size: 12px;
}
.sidebar-nav .submenu a:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar-nav .submenu-heading { padding: 12px 10px 4px !important; color: #7094a4; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.sidebar-footer { display: flex; align-items: center; gap: 9px; padding: 16px 22px; border-top: 1px solid rgba(255,255,255,.1); color: #a9c0ca; font-size: 11px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--izzi-accent); box-shadow: 0 0 0 4px rgba(57,198,109,.13); }

.sidebar.d-none .nav-label,
.sidebar.d-none .nav-caption,
.sidebar.d-none .nav-chevron,
.sidebar.d-none .submenu { display: none !important; }
.sidebar.d-none .sidebar-nav > a,
.sidebar.d-none .sidebar-nav .nav-group > button { justify-content: center; padding-inline: 0; }

.topbar {
    position: fixed;
    z-index: 1030;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--topbar-height);
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(255,255,255,.96);
    color: var(--izzi-ink);
    border-bottom: 1px solid var(--izzi-line);
    box-shadow: 0 4px 18px rgba(36,55,70,.04);
    backdrop-filter: blur(14px);
    transition: left .24s ease;
}
body.sidebar-hidden .topbar { left: var(--sidebar-collapsed-width); }
.topbar-menu-button {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--izzi-line) !important;
    border-radius: 10px;
    background: #fff !important;
    color: var(--izzi-menu) !important;
    font-size: 21px !important;
}
.topbar-context { display: flex; flex-direction: column; line-height: 1.2; }
.topbar-product { font-weight: 800; color: var(--izzi-ink); }
.topbar-environment { margin-top: 3px; color: var(--izzi-muted); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.user-section { margin-left: auto; }
.user-trigger { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; color: var(--izzi-ink); }
.user-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--izzi-accent-soft); color: #167442; font-weight: 900; }
.user-copy { display: flex; flex-direction: column; min-width: 110px; text-align: left; line-height: 1.2; }
.user-copy strong { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.user-copy small { margin-top: 3px; color: var(--izzi-muted); font-size: 10px; }
.premium-dropdown { min-width: 210px; padding: 8px; border: 1px solid var(--izzi-line); border-radius: 12px; box-shadow: var(--izzi-shadow); }
.premium-dropdown .dropdown-item { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 8px; }
.premium-dropdown form { margin: 0; }
.sidebar-backdrop { display: none; }

.container { display: block; margin: var(--topbar-height) 0 0; padding: 0; max-width: none; }
.content {
    min-width: 0;
    min-height: calc(100vh - var(--topbar-height) - 46px);
    margin-left: var(--sidebar-width);
    padding: 28px;
    display: block;
    background: var(--izzi-bg);
    border-radius: 0;
    box-shadow: none;
    transition: margin-left .24s ease;
}
body.sidebar-hidden .content { margin-left: var(--sidebar-collapsed-width); }
.content > h1, .content > h2 { color: var(--izzi-ink); letter-spacing: -.02em; }
.content > h2 { font-size: 24px; }

.card,
.schedule-section,
.panel,
.form-panel {
    border: 1px solid var(--izzi-line) !important;
    border-radius: var(--izzi-radius) !important;
    background: var(--izzi-surface);
    box-shadow: 0 8px 24px rgba(16,59,80,.055) !important;
}
.form-control, .form-select {
    min-height: 40px;
    border-color: #d7dfe5;
    border-radius: 9px;
    color: var(--izzi-ink);
}
.form-control:focus, .form-select:focus {
    border-color: var(--izzi-menu-hover);
    box-shadow: 0 0 0 3px rgba(26,114,143,.12);
}
.btn { border-radius: 9px; font-weight: 650; }
.btn-primary { border-color: var(--izzi-menu-hover); background: var(--izzi-menu-hover); }
.btn-primary:hover { border-color: #125d77; background: #125d77; }
.table { --bs-table-bg: transparent; color: var(--izzi-ink); }
.table thead th { background: #f7f9fa; border-color: var(--izzi-line); color: var(--izzi-muted); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.table td { border-color: #edf1f3; }
.footer, footer {
    min-height: 46px;
    height: auto;
    margin-left: var(--sidebar-width);
    padding: 14px 28px;
    background: var(--izzi-surface);
    color: var(--izzi-muted);
    border-top: 1px solid var(--izzi-line);
    box-shadow: none;
    transition: margin-left .24s ease;
}
body.sidebar-hidden .footer, body.sidebar-hidden footer { margin-left: var(--sidebar-collapsed-width); }

/* Login premium inspirado na experiência Quality Speech */
.premium-login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(500px, .82fr);
    background: #f5f9f8;
    overflow: hidden;
}
.premium-login-brand {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    padding: clamp(44px, 7.5vw, 112px);
    color: #fff;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 22%, rgba(65, 199, 78, .22), transparent 29%),
        radial-gradient(circle at 92% 100%, rgba(65, 199, 78, .14), transparent 34%),
        linear-gradient(145deg, #106b7d 0%, var(--izzi-menu) 48%, #0b4c5d 100%);
}
.login-brand-content { position: relative; z-index: 2; max-width: 680px; }
.login-signal { height: 54px; display: flex; align-items: center; gap: 6px; margin-bottom: 22px; }
.login-signal span { width: 6px; border-radius: 10px; background: var(--izzi-accent); box-shadow: 0 0 22px rgba(65,199,78,.3); }
.login-signal span:nth-child(1) { height: 16px; }.login-signal span:nth-child(2) { height: 34px; }.login-signal span:nth-child(3) { height: 52px; }.login-signal span:nth-child(4) { height: 30px; }.login-signal span:nth-child(5) { height: 18px; }
.login-eyebrow { margin: 0 0 10px; color: var(--izzi-accent); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.premium-login-brand h1 { margin: 0; font-size: clamp(38px, 4vw, 58px); line-height: 1.05; letter-spacing: -.04em; }
.login-brand-copy { max-width: 520px; margin: 21px 0 0; color: rgba(255,255,255,.82); font-size: 15px; line-height: 1.65; }
.login-trust-row { display: flex; flex-wrap: wrap; gap: 21px; margin-top: 30px; color: #dce9ee; font-size: 11px; }
.login-trust-row span { display: flex; align-items: center; gap: 8px; }.login-trust-row i { color: var(--izzi-accent); }
.login-orb { position: absolute; z-index: 1; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.login-orb-one { width: 360px; height: 360px; right: -110px; bottom: -130px; background: rgba(65,199,78,.12); }
.login-orb-two { width: 210px; height: 210px; right: 12%; top: 8%; border: 1px solid rgba(255,255,255,.1); }
.premium-login-panel {
    min-height: 100vh;
    margin: 0;
    padding: clamp(22px, 3vw, 52px);
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 100% 0%, rgba(65,199,78,.07), transparent 28%),
        linear-gradient(145deg, #f7faf9, #eef5f3);
}
.premium-login-card {
    box-sizing: border-box;
    width: min(100%, 420px);
    padding: clamp(30px, 2.8vw, 40px);
    border: 1px solid rgba(19, 91, 108, .11);
    border-radius: 20px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 24px 70px rgba(11,76,93,.11);
}
.premium-login-logo {
    min-height: 82px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 17px;
    border-bottom: 1px solid #e7efed;
}
.premium-login-logo img { width: auto; height: auto; max-width: 180px; max-height: 82px; object-fit: contain; }
.login-heading > span { color: var(--izzi-menu-hover); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.login-heading h2 { margin: 8px 0 6px; color: var(--izzi-ink); font-size: 26px; letter-spacing: -.03em; }
.login-heading p { margin: 0 0 24px; color: var(--izzi-muted); font-size: 12px; }
.premium-login-form label { display: block; margin: 15px 0 6px; color: var(--izzi-ink); font-size: 11px; font-weight: 750; }
.premium-input { position: relative; display: flex; align-items: center; }
.premium-input > i { position: absolute; left: 14px; z-index: 1; color: #8795a1; font-size: 16px; }
.premium-input input { width: 100%; min-height: 46px; padding: 10px 13px 10px 40px; border: 1px solid #d3dfdc; border-radius: 10px; background: #f8fbfa; color: var(--izzi-ink); outline: 0; transition: border .18s ease, box-shadow .18s ease, background .18s ease; }
.premium-input input:focus { border-color: var(--izzi-menu-hover); box-shadow: 0 0 0 4px rgba(26,114,143,.1); }
.premium-input input:focus { background: #fff; }
.premium-login-button { width: 100%; min-height: 47px; margin-top: 22px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 10px; background: linear-gradient(135deg, var(--izzi-menu), var(--izzi-menu-hover)); color: #fff; font-size: 12px; font-weight: 800; box-shadow: 0 10px 24px rgba(19,91,108,.16); transition: transform .18s ease, filter .18s ease, box-shadow .18s ease; }
.premium-login-button:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 14px 30px rgba(19,91,108,.22); }
.login-alert { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; padding: 11px 13px; border-radius: 9px; background: #fff0f0; color: #a33838; font-size: 12px; }
.login-support { display: flex; flex-direction: column; align-items: center; gap: 9px; margin-top: 21px; color: var(--izzi-muted); font-size: 10px; }
.login-support a { color: var(--izzi-menu-hover); font-weight: 700; text-decoration: none; }
.login-copyright { display: block; margin-top: 30px; color: #98a2ad; text-align: center; font-size: 9px; }

@media (max-width: 1024px) {
    .sidebar { transform: translateX(-105%); width: var(--sidebar-width); }
    .sidebar.d-none { width: var(--sidebar-width); transform: translateX(-105%); }
    body.mobile-sidebar-open .sidebar { transform: translateX(0); }
    body.mobile-sidebar-open .sidebar .nav-label,
    body.mobile-sidebar-open .sidebar .nav-caption,
    body.mobile-sidebar-open .sidebar .nav-chevron { display: initial !important; }
    body.mobile-sidebar-open .sidebar .brand-logo-full { display: block; }
    body.mobile-sidebar-open .sidebar .brand-logo-icon { display: none; }
    .topbar, body.sidebar-hidden .topbar { left: 0; padding: 0 16px; }
    .container { padding: 0; }
    .content, body.sidebar-hidden .content { margin-left: 0; padding: 20px 16px; }
    .footer, footer, body.sidebar-hidden .footer, body.sidebar-hidden footer { margin-left: 0; }
    .sidebar-backdrop { position: fixed; inset: 0; z-index: 1035; border: 0; background: rgba(7,30,42,.5); backdrop-filter: blur(2px); }
    body.mobile-sidebar-open .sidebar-backdrop { display: block; }
    .user-copy, .topbar-environment { display: none; }
    .premium-login-page { grid-template-columns: 1fr; background: #fff; }
    .premium-login-brand { display: none; }
    .premium-login-panel { padding: 28px 20px; }
    .premium-login-card { padding: 28px 26px; border-radius: 18px; }
    .premium-login-logo { min-height: 76px; margin-bottom: 22px; }
    .premium-login-logo img { max-width: 165px; max-height: 76px; }
}

@media (max-width: 560px) {
    .topbar { height: 62px; gap: 10px; }
    .topbar-product { font-size: 13px; }
    .user-avatar { width: 35px; height: 35px; }
    .content { padding: 16px 12px; }
    .premium-login-panel { align-items: flex-start; padding-top: 28px; }
}

html {
    font-size: 13px; /* redução geral de ~12.5% */
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: #f0f2f5;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Topbar Header */
.topbar {
    background-color: #555;
    color: white;
    height: 40px;
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 230px;
    right: 0;
    z-index: 999;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.topbar .user-section {
    min-width: 0;
}

.topbar .dropdown {
    min-width: 0;
}

.topbar .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    color: white;
    text-decoration: none;
}

body.sidebar-hidden .topbar {
    left: 0;
}
body.sidebar-hidden .footer {
    margin-left: 0;
}
body.sidebar-hidden .content {
    margin-left: 0;
}

.topbar > button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.topbar .dropdown-menu {
    right: 0;
    left: auto;
}

.topbar .dropdown-item:hover {
    background-color: #107da1;
    color: white;
}

.topbar .d-none {
    margin-left: -230px; /* esconde a sidebar */
    left: 0; /* esconde a sidebar */
}

#logout {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: .25rem .5rem;
    font-size: .875rem;
}

/* Toggle Sidebar */
.sidebar {
    width: 230px;
    background-color: #1a728f;
    color: white;
    position: fixed;
    top: 0;/*top: 60px;  abaixo do header */
    bottom: 0;
    left: 0;
    overflow-y: auto;
    padding-top: 20px;
    transition: all 0.3s ease;
}

.sidebar.d-none {
    margin-left: -230px; /* esconde a sidebar */
}

/* Logo no sidebar */
.sidebar .logo {
    text-align: center;
    margin-bottom: 30px;
}

.sidebar .logo img {
    width: 120px;
}

/* Itens do menu lateral */
.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    padding: 12px 20px;
    cursor: pointer;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    display: block;
}

.sidebar ul li a i {
    margin-right: 10px;
}

.sidebar ul li:hover {
    background-color: #107da1;
}

.sidebar ul li ul {
    display: none;
    background-color: rgb(0 0 0 / 4%);
}

.sidebar ul li ul li {
    padding-left: 10px;
}

.sidebar ul li ul li a {
    font-size: 0.95rem;
}

.sidebar ul li.active ul {
    display: block;
}

/* Layout do container principal */
.container {
    display: flex;
    flex: 1;
    margin-top: 40px; /* altura do header */
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
}

.content {
    margin-left: 230px; /* largura do sidebar */
    flex: 1;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: all 0.3s ease;
    display: grid;
}
.topbar .d-none {
    margin-left: -230px; /* esconde a sidebar */
}

.sidebar.d-none + .content {
    margin-left: 0;
}

.content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: #4CAF50;
}

.content p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
}

/* Estilos Tabela */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
    border-radius: 15px;
}

table, th, td {
    border: 0.1px solid black;
    border-color: #adaaaa;
    vertical-align: middle;
    white-space: nowrap;
}

th, td {
    padding: 10px;
    text-align: center;
}

th {
    background-color: #1a728f;
    color: white;
}

/* Estilização da tabela */
.table thead {
    background-color: #1a728f;
    color: white;
}

.table thead th {
    background-color: #1a728f;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
}

.table tbody tr:hover {
    background-color: #f1f1f1;
}

.table-striped tbody tr:nth-child(odd) {
    background-color: #f8f9fa;
}

.table-striped tbody tr:nth-child(even) {
    background-color: #ffffff;
}

.table-hover tbody tr:hover {
    background-color: #e0e0e0;
}

.table-bordered td, .table-bordered th {
    border-color: #dee2e6;
}

.table-primary {
    background-color: #1a728f;
    color: white;
}

/* 🔧 Garantindo scroll horizontal suave e sem quebra */
.table-wrapper-scroll {
    overflow-x: auto;
    white-space: nowrap;
}

/* Ajustes na largura da coluna SQL */
td.sql-column {
    width: 100%; /* Tamanho fixo da coluna SQL */
    overflow: hidden; /* Impede que o conteúdo ultrapasse a célula */
    text-overflow: ellipsis; /* Adiciona reticências quando o texto ultrapassar o tamanho da célula */
    white-space: nowrap; /* Garante que o texto não quebre em várias linhas */
    max-width: 100%; /* Limita a largura máxima da célula */
}

/* Estilo de rolagem horizontal dentro da célula */
td.sql-column code {
    display: block;
    width: 200px;
    overflow-x: hidden; /* Oculta a rolagem horizontal interna, se necessário */
    text-overflow: ellipsis; /* Aplica reticências no texto que ultrapassa */
    white-space: nowrap; /* Garante que o texto não quebre em várias linhas */
    max-width: 100%; /* Garantir que não ultrapasse a célula */
    padding: 5px;
}

table th, table td {
    vertical-align: middle;
    white-space: nowrap;
}

.badge {
    font-size: 0.9rem;
    padding: 0.4em 0.6em;
}

.btn-primary {
    background-color: #1a728f;
    border: none;
}

.bg-primary {
    background-color: #1a728f;
}

.btn-warning {
    background-color: darkcyan;
    color: #fff;
    border: none;
}

/* Estilos login */
.login-container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.login-container input[type="submit"] {
    width: 100%;
    background-color: #118AB2;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.login-container input[type="submit"]:hover {
    background-color: #0056b3;
}

.forgot-password {
    margin-top: 10px;
    display: block;
    color: #007bff;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.signup-link {
    margin-top: 20px;
    color: #333;
}

.signup-link a {
    color: #007bff;
    text-decoration: none;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* Estilos para o paginador */
 .pagination {
            display: flex;
            justify-content: center;
            flex-wrap: nowrap;
            font-size: 1rem;
            margin-bottom: 20px;
            margin-top: 20px;
}

/* Restrição da largura máxima do paginador */
.pagination-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Para uma rolagem mais suave em dispositivos móveis */
    margin-bottom: 20px;
}

.pagination .page-item {
    margin: 0 1px;
}

.pagination .page-link {
    background-color: #fff;
    border: 1px solid #ddd;
    /*padding: 8px 16px;*/
    color: #1a728f;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #1a728f;
    color: white;
}

.pagination .active .page-link {
    background-color: #1a728f;
    color: white;
    border: 1px solid #1a728f;
}

.pagination .disabled .page-link {
    color: #ccc;
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    cursor: not-allowed;
}

/* Melhorar o espaçamento entre os números e o controle de páginas */
.pagination .page-item:first-child .page-link {
    border-radius: 4px 0 0 4px;
}

.pagination .page-item:last-child .page-link {
    border-radius: 0 4px 4px 0;
}

.home-watermark {
    position: relative;
    min-height: 400px;
}

.home-watermark::before {
    content: "";
    background-image: url('/static/images/logo_cinza.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 320px;
    opacity: 0.12; /* só a marca d’água */
    
    /* cobre todo o content */
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;

    z-index: 0; /* fica atrás do texto */
}

.home-watermark > * {
    position: relative;
    z-index: 1; /* garante texto na frente */
}

/* Footer */
footer .mt-5 {
    margin-top: 0px;
}

footer {
    background-color: #555;
    color: white;
    text-align: center;
    padding: 10px;
    margin-left: 230px;
    font-size: 0.9rem;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
    height: 40px;
}

footer p {
    margin-bottom: 0px;
}

/* Responsividade */
@media (max-width: 768px) {
    .topbar {
        left: 0;
        width: 100%;
        padding: 0 10px;
        gap: 8px;
    }

    .topbar > button {
        flex: 0 0 auto;
    }

    .topbar .user-section {
        flex: 1 1 auto;
        justify-content: flex-end;
        overflow: hidden;
    }

    .topbar .dropdown {
        flex: 1 1 auto;
        max-width: 100%;
        text-align: right;
    }

    .topbar .dropdown-toggle {
        justify-content: flex-end;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    #logout {
        flex: 0 0 auto;
    }

    .container {
        flex-direction: column;
        padding: 10px;
    }

    .sidebar {
        width: 100%;
        margin-bottom: 20px;
        position: relative;
        top: 0;
    }

    .content {
        margin-left: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin-bottom: 10px;
    }
}

/* Reafirma o shell premium após as regras legadas da aplicação. */
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    width: var(--sidebar-width);
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--izzi-menu) 0%, var(--izzi-menu-deep) 100%);
    color: #fff;
}
.sidebar.d-none { display: flex !important; width: var(--sidebar-collapsed-width); margin-left: 0; }
.topbar {
    position: fixed;
    z-index: 1030;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    width: auto;
    height: var(--topbar-height);
    padding: 0 28px;
    display: flex;
    align-items: center;
    flex: none;
    gap: 18px;
    background: rgba(255,255,255,.96);
    color: var(--izzi-ink);
    border-bottom: 1px solid var(--izzi-line);
    box-shadow: 0 4px 18px rgba(36,55,70,.04);
}
body.sidebar-hidden .topbar { left: var(--sidebar-collapsed-width); }
.container { display: block; margin: var(--topbar-height) 0 0; padding: 0; max-width: none; }
.content {
    min-width: 0;
    min-height: calc(100vh - var(--topbar-height) - 46px);
    margin-left: var(--sidebar-width);
    padding: 28px;
    display: block;
    background: var(--izzi-bg);
    border-radius: 0;
    box-shadow: none;
}
body.sidebar-hidden .content { margin-left: var(--sidebar-collapsed-width); }
.footer, footer {
    min-height: 46px;
    height: auto;
    margin-left: var(--sidebar-width);
    padding: 14px 28px;
    background: var(--izzi-surface);
    color: var(--izzi-muted);
    border-top: 1px solid var(--izzi-line);
    box-shadow: none;
}
body.sidebar-hidden .footer, body.sidebar-hidden footer { margin-left: var(--sidebar-collapsed-width); }

@media (max-width: 900px) {
    .sidebar, .sidebar.d-none { position: fixed; width: var(--sidebar-width); margin: 0; transform: translateX(-105%); }
    body.mobile-sidebar-open .sidebar { transform: translateX(0); }
    .topbar, body.sidebar-hidden .topbar { left: 0; width: auto; padding: 0 16px; }
    .container { display: block; margin-top: var(--topbar-height); padding: 0; }
    .content, body.sidebar-hidden .content { margin-left: 0; padding: 20px 16px; }
    .footer, footer, body.sidebar-hidden .footer, body.sidebar-hidden footer { margin-left: 0; }
}

/* Acerto Web parity: aplicado apenas ao shell autenticado. */
body:not(.premium-login-page) {
    --sidebar-width: 230px;
    --sidebar-collapsed-width: 96px;
    --topbar-height: 40px;
    background: #f0f2f5;
    color: var(--izzi-ink);
    font-family: Arial, Helvetica, sans-serif;
}
body:not(.premium-login-page) .sidebar {
    width: 230px;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--izzi-menu);
    box-shadow: none;
    transition: margin-left .2s ease, transform .2s ease;
}
body:not(.premium-login-page) .sidebar.d-none {
    display: flex !important;
    width: var(--sidebar-collapsed-width);
    margin-left: 0;
}
body:not(.premium-login-page) .brand {
    min-height: 76px;
    padding: 14px 12px;
    border-bottom: 0;
}
body:not(.premium-login-page) .brand-logo-full { display: block; max-width: 184px; max-height: 62px; }
body:not(.premium-login-page) .brand-logo-icon { display: none; }
body:not(.premium-login-page) .sidebar.d-none .brand-logo-full { display: none; }
body:not(.premium-login-page) .sidebar.d-none .brand-logo-icon { display: grid; }
body:not(.premium-login-page) .sidebar-nav {
    display: grid;
    gap: 0;
    flex: 0 0 auto;
    align-content: start;
    grid-auto-rows: max-content;
    padding: 0;
    overflow: visible;
}
body:not(.premium-login-page) .sidebar-nav .nav-group { min-height: 0; }
body:not(.premium-login-page) .sidebar-nav > a,
body:not(.premium-login-page) .sidebar-nav .nav-group > button {
    min-height: 42px;
    margin: 0;
    padding: 10px 18px;
    border-radius: 0;
    color: #fff;
    transform: none;
}
body:not(.premium-login-page) .sidebar-nav > a { justify-content: flex-start; gap: 8px; }
body:not(.premium-login-page) .sidebar-nav .nav-group > button > span { gap: 8px; }
body:not(.premium-login-page) .sidebar-nav > a:hover,
body:not(.premium-login-page) .sidebar-nav > a.active,
body:not(.premium-login-page) .sidebar-nav .nav-group > button:hover,
body:not(.premium-login-page) .sidebar-nav .nav-group.open > button {
    background: var(--izzi-menu-hover);
    color: #fff;
    box-shadow: none;
    transform: none;
}
body:not(.premium-login-page) .sidebar-nav > a.active { box-shadow: none; }
body:not(.premium-login-page) .sidebar-nav i { width: auto; margin-right: 8px; font-size: 1rem; }
body:not(.premium-login-page) .sidebar.d-none .sidebar-nav i { margin-right: 0; font-size: 1.2rem; }
body:not(.premium-login-page) .sidebar.d-none .sidebar-nav > a,
body:not(.premium-login-page) .sidebar.d-none .sidebar-nav .nav-group > button {
    min-height: 53px;
    padding: 10px 0;
    justify-content: center;
}
body:not(.premium-login-page) .sidebar.d-none .sidebar-nav .nav-group > button > span { gap: 0; }
body:not(.premium-login-page) .sidebar-nav .submenu {
    margin: 0;
    padding: 0;
    background: rgba(0,0,0,.08);
}
body:not(.premium-login-page) .sidebar-nav .submenu a {
    min-height: 36px;
    padding: 9px 18px 9px 42px;
    border-radius: 0;
    color: #fff;
    font-size: .95rem;
}
body:not(.premium-login-page) .sidebar-nav .submenu a:hover { background: rgba(0,0,0,.08); }
body:not(.premium-login-page) .sidebar-nav .submenu-heading { padding-left: 42px !important; color: rgba(255,255,255,.65); }
body:not(.premium-login-page) .topbar {
    left: 230px;
    height: 40px;
    padding: 0 18px;
    gap: 14px;
    background: #555;
    color: #fff;
    border-bottom: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    backdrop-filter: none;
}
body:not(.premium-login-page).sidebar-hidden .topbar { left: var(--sidebar-collapsed-width); }
body:not(.premium-login-page) .topbar-menu-button {
    width: 32px;
    height: 32px;
    border: 0 !important;
    border-radius: 6px;
    background: transparent !important;
    color: #fff !important;
}
body:not(.premium-login-page) .topbar-menu-button:hover { background: rgba(255,255,255,.12) !important; }
body:not(.premium-login-page) .topbar-context { flex: 1; }
body:not(.premium-login-page) .topbar-product { color: #fff; font-weight: 700; }
body:not(.premium-login-page) .user-section { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
body:not(.premium-login-page) .topbar-user-link { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; white-space: nowrap; }
body:not(.premium-login-page) .topbar-user-link:hover { color: #fff; }
body:not(.premium-login-page) .topbar-logout {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: var(--izzi-menu);
    color: #fff;
}
body:not(.premium-login-page) .topbar-logout:hover { background: var(--izzi-menu-hover); }
body:not(.premium-login-page) .topbar-account{position:relative;display:flex;align-items:center;gap:8px;margin-left:auto}
body:not(.premium-login-page) .topbar-account-trigger{display:flex;align-items:center;gap:8px;height:34px;padding:3px 8px 3px 4px;border:0!important;border-radius:8px;background:transparent!important;color:#fff!important;text-align:left}
body:not(.premium-login-page) .topbar-account-trigger:hover,
body:not(.premium-login-page) .topbar-account-trigger[aria-expanded="true"]{background:rgba(255,255,255,.12)!important}
.topbar-account-avatar{display:grid;flex:0 0 27px;width:27px;height:27px;place-items:center;border-radius:8px;background:linear-gradient(135deg,var(--izzi-accent),#8ce79f);color:#073e43;font-size:.7rem;font-weight:900}
.topbar-account-copy{display:flex;max-width:190px;flex-direction:column;line-height:1.08}
.topbar-account-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff;font-size:.72rem;font-weight:750}
.topbar-account-copy small{margin-top:2px;color:rgba(255,255,255,.65);font-size:.59rem}
.topbar-account-trigger>i{font-size:.65rem;transition:transform .18s ease}
.topbar-account-trigger[aria-expanded="true"]>i{transform:rotate(180deg)}
.topbar-account-popover{position:absolute;z-index:1200;top:calc(100% + 8px);right:42px;width:250px;overflow:hidden;border:1px solid #dfe7eb;border-radius:12px;background:#fff;box-shadow:0 16px 36px rgba(15,45,56,.22);color:#344054}
.topbar-account-popover[hidden]{display:none}
.topbar-account-popover>a{display:flex;align-items:center;gap:9px;padding:11px 14px;color:#344054;font-size:.78rem;text-decoration:none}
.topbar-account-popover>a:hover{background:#f2f8fa;color:var(--izzi-menu)}
.topbar-logout-form{margin:0}
body:not(.premium-login-page) .topbar-account .topbar-logout{width:32px;height:32px;border-radius:8px}
@media(max-width:700px){.topbar-account-copy,.topbar-account-trigger>i{display:none}.topbar-account-trigger{padding:3px!important}.topbar-account-popover{right:40px}.topbar-product{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
body:not(.premium-login-page) .container { margin-top: 40px; }
body:not(.premium-login-page) .content {
    min-height: calc(100vh - 80px);
    margin-left: 230px;
    padding: 20px;
    overflow-x: hidden;
    background: #f4f8fa;
    border-radius: 0;
    box-shadow: none;
}
body:not(.premium-login-page).sidebar-hidden .content { margin-left: var(--sidebar-collapsed-width); }
body:not(.premium-login-page) .content > h1,
body:not(.premium-login-page) .content > h2 { color: var(--izzi-menu); }
body:not(.premium-login-page) .card,
body:not(.premium-login-page) .schedule-section,
body:not(.premium-login-page) .panel,
body:not(.premium-login-page) .form-panel {
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}
body:not(.premium-login-page) .btn-primary {
    border-color: var(--primary-button-bg);
    background: var(--primary-button-bg);
    color: var(--primary-button-text);
}
body:not(.premium-login-page) .btn-primary:hover { border-color: var(--primary-button-hover-bg); background: var(--primary-button-hover-bg); color: var(--primary-button-text); }
body:not(.premium-login-page) .footer,
body:not(.premium-login-page) footer {
    height: 40px;
    min-height: 40px;
    margin-left: 230px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #555;
    color: #fff;
    border-top: 0;
}
body:not(.premium-login-page).sidebar-hidden .footer,
body:not(.premium-login-page).sidebar-hidden footer { margin-left: var(--sidebar-collapsed-width); }

@media (max-width: 900px) {
    body:not(.premium-login-page) .sidebar,
    body:not(.premium-login-page) .sidebar.d-none { width: min(82vw, 320px); margin-left: 0; transform: translateX(-105%); }
    body:not(.premium-login-page).mobile-sidebar-open .sidebar { transform: translateX(0); }
    body:not(.premium-login-page) .topbar,
    body:not(.premium-login-page).sidebar-hidden .topbar { left: 0; }
    body:not(.premium-login-page) .content,
    body:not(.premium-login-page).sidebar-hidden .content { margin-left: 0; padding: 16px; }
    body:not(.premium-login-page) .footer,
    body:not(.premium-login-page) footer { margin-left: 0; }
}

/* Tela de personalização */
.personalization-page .page-heading { margin-bottom: 18px; }
.personalization-page .page-heading h1 { margin: 0 0 6px; color: var(--izzi-menu); font-size: 1.8rem; }
.personalization-page .page-heading p { margin: 0; color: #6c757d; }
.settings-layout { display: grid; gap: 16px; }
.personalization-panel { overflow: hidden; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; }
.personalization-panel-header { padding: 14px 18px; border-bottom: 1px solid #e5e7eb; background: #f8f9fa; }
.personalization-panel-header h2 { margin: 0; color: #343a40; font-size: 1rem; }
.personalization-panel-header i { margin-right: 7px; color: var(--izzi-menu); }
.personalization-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 18px; }
.personalization-grid.color-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-field { min-width: 0; }
.form-field.span-2 { grid-column: span 2; }
.form-field label { display: block; margin-bottom: 7px; color: #343a40; font-weight: 700; }
.form-field .form-control-color { width: 100%; height: 46px; padding: 5px; }
.image-field { display: grid; align-content: start; gap: 8px; }
.image-preview { min-height: 120px; display: grid; place-items: center; padding: 14px; overflow: hidden; border: 1px dashed #ced4da; border-radius: 8px; background: #f8f9fa; color: #868e96; }
.image-preview img { max-width: 100%; max-height: 92px; object-fit: contain; }
.image-preview-menu { background: var(--izzi-menu); color: #fff; }
.image-preview-icon { min-height: 90px; }
.image-preview-icon img { max-width: 64px; max-height: 64px; }
.settings-layout > .form-actions { display: flex; justify-content: flex-end; padding-bottom: 8px; }

/* Gestão de acessos */
.access-page { background: #f6f8fa !important; }
.access-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.access-heading h1 { margin: 0 0 5px; color: var(--izzi-menu); font-size: 1.75rem; font-weight: 750; }
.access-heading p { margin: 0; color: #667085; }
.access-mode-banner {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 15px;
    border: 1px solid #d9e2e8;
    border-left: 4px solid #6c757d;
    border-radius: 8px;
    background: #fff;
    color: #52606d;
}
.access-mode-banner.mode-shadow { border-left-color: #e3a008; background: #fffaf0; }
.access-mode-banner.mode-enforce { border-left-color: #2ecc71; background: #f2fbf6; }
.access-panel {
    margin-bottom: 18px;
    overflow: hidden;
    border: 1px solid #e1e7eb;
    border-radius: 10px;
    background: #fff;
}
.access-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 17px;
    border-bottom: 1px solid #e8edf0;
    background: #f9fbfc;
}
.access-panel-header h2 { margin: 0; color: #344054; font-size: 1.05rem; font-weight: 750; }
.access-panel-header span { color: #667085; font-size: .85rem; }
.access-panel td { padding: 12px 16px; }
.access-panel td small { display: block; margin-top: 2px; color: #667085; }
.status-chip, .profile-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef2f4;
    color: #52606d;
    font-size: .78rem;
    font-weight: 700;
}
.status-chip.active { background: #dff5e8; color: #18794e; }
.profile-chip { margin: 2px; background: #e5f3f7; color: #1a728f; }
.access-form { max-width: 860px; padding: 20px; }
.access-form input[type="text"],
.access-form textarea,
.access-form select {
    display: block;
    width: 100%;
    padding: .55rem .75rem;
    border: 1px solid #d0d7de;
    border-radius: 7px;
    background: #fff;
}
.access-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e8edf0;
}
.permission-toolbar { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 14px; }
.permission-grid > div > ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.permission-grid li label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #e1e7eb;
    border-radius: 8px;
    background: #fbfcfd;
    cursor: pointer;
}
.permission-grid input { margin-top: 3px; }
.permission-sections { display: grid; gap: 14px; }
.permission-section {
    overflow: hidden;
    border: 1px solid #e1e7eb;
    border-radius: 9px;
    background: #fff;
}
.permission-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #e8edf0;
    background: #f8fafb;
}
.permission-section-header h3 { margin: 0; color: #344054; font-size: .98rem; }
.permission-section-header span { color: #667085; font-size: .8rem; }
.permission-section .permission-toolbar { margin: 0; }
.permission-section .permission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 9px;
    padding: 14px;
}
.permission-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #e1e7eb;
    border-radius: 8px;
    background: #fbfcfd;
    cursor: pointer;
}
.permission-item-menu { border-color: #b9dce7; background: #eef8fb; }
.permission-item span { color: #344054; font-weight: 650; }
.permission-item small { display: block; color: #667085; font-size: .7rem; }
.access-user-layout { display: grid; gap: 16px; }
.access-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 18px;
}
.access-field input,
.access-field select {
    display: block;
    width: 100%;
    padding: .6rem .75rem;
    border: 1px solid #d0d7de;
    border-radius: 7px;
    background: #fff;
}
.access-toggle {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    grid-column: 1 / -1;
    padding: 12px;
    border: 1px solid #e1e7eb;
    border-radius: 8px;
    background: #f9fbfc;
}
.access-toggle input { margin-top: 4px; }
.access-toggle label { display: block; color: #344054; font-weight: 700; }
.access-toggle small { display: block; color: #667085; }
@media (max-width: 700px) {
    .access-heading { flex-direction: column; }
    .access-heading > .btn { width: 100%; }
    .access-mode-banner { flex-direction: column; }
    .access-form-grid { grid-template-columns: 1fr; }
    .permission-section-header { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 900px) {
    .personalization-grid,
    .personalization-grid.color-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .personalization-grid,
    .personalization-grid.color-grid { grid-template-columns: 1fr; }
    .form-field.span-2 { grid-column: span 1; }
}

/* Rodapé premium da sidebar: saúde operacional e conta */
body:not(.premium-login-page) .sidebar { overflow: visible; }
body:not(.premium-login-page) .sidebar-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}
.sidebar-operations {
    flex: 0 0 auto;
    margin: 0 12px 10px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    background: rgba(6, 48, 65, .2);
}
.sidebar-operations-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 9px;
    color: rgba(255,255,255,.68);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.system-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #31d27c;
    box-shadow: 0 0 0 4px rgba(49,210,124,.14);
}
.sidebar-health-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 0;
    color: #fff;
}
.sidebar-health-row > i { width: 18px; color: #31d27c; text-align: center; }
.sidebar-health-row.supervisor-status > i { color: #8fd4e8; }
.sidebar-health-row.supervisor-status.is-running > i{color:#31d27c}
.sidebar-health-row.supervisor-status.is-warning > i{color:#fdbb4b}
.sidebar-health-row.supervisor-status.is-offline > i{color:#ff8d8d}
.sidebar-health-row.supervisor-status.is-unknown > i{color:#a9bdc5}
.system-pulse.is-warning{background:#fdbb4b;box-shadow:0 0 0 4px rgba(253,187,75,.14)}
.system-pulse.is-offline{background:#ff7272;box-shadow:0 0 0 4px rgba(255,114,114,.14)}
.system-pulse.is-unknown{background:#91a9b2;box-shadow:0 0 0 4px rgba(145,169,178,.14)}
.sidebar-health-row span { display: flex; flex-direction: column; min-width: 0; }
.sidebar-health-row strong { font-size: .78rem; font-weight: 700; }
.sidebar-health-row small { color: rgba(255,255,255,.58); font-size: .66rem; }
.sidebar-account {
    position: relative;
    flex: 0 0 auto;
    padding: 10px 12px 12px;
    border-top: 1px solid rgba(255,255,255,.1);
}
.sidebar-account-trigger {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
    padding: 9px;
    border: 0;
    border-radius: 10px;
    background: rgba(255,255,255,.07);
    color: #fff;
    text-align: left;
}
.sidebar-account-trigger:hover,
.sidebar-account-trigger[aria-expanded="true"] { background: rgba(255,255,255,.13); }
.sidebar-account-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--izzi-accent), #8ce79f);
    color: #073e43;
    font-weight: 900;
}
.sidebar-account-copy { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.sidebar-account-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .75rem; }
.sidebar-account-copy small { color: rgba(255,255,255,.62); font-size: .66rem; }
.sidebar-account-popover {
    position: absolute;
    z-index: 1100;
    bottom: calc(100% + 6px);
    left: 12px;
    width: 248px;
    overflow: hidden;
    border: 1px solid #dfe7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(15, 45, 56, .2);
    color: #344054;
}
.sidebar-account-popover[hidden] { display: none; }
.account-popover-head { display: flex; align-items: center; gap: 10px; padding: 14px; }
.account-popover-head div { display: flex; flex-direction: column; min-width: 0; }
.account-popover-head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; }
.account-popover-head small,
.account-popover-ip { color: #667085; font-size: .7rem; }
.account-popover-ip { padding: 8px 14px; border-block: 1px solid #edf1f3; background: #f8fafb; }
.sidebar-account-popover > a,
.sidebar-account-popover form button {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 9px;
    padding: 11px 14px;
    border: 0;
    background: #fff;
    color: #344054;
    text-decoration: none;
    font-size: .78rem;
}
.sidebar-account-popover > a:hover,
.sidebar-account-popover form button:hover { background: #f2f8fa; color: var(--izzi-menu); }
.sidebar.d-none .sidebar-operations { display: grid; place-items: center; padding: 10px 0; }
.sidebar.d-none .sidebar-operations-title { margin: 0; }
.sidebar.d-none .sidebar-operations-title .nav-label,
.sidebar.d-none .sidebar-health-row { display: none; }
.sidebar.d-none .sidebar-account { padding-inline: 8px; }
.sidebar.d-none .sidebar-account-trigger { justify-content: center; padding-inline: 0; }
.sidebar.d-none .sidebar-account-popover { left: calc(100% + 8px); bottom: 0; }
@media (max-width: 900px) {
    .sidebar-account-popover { left: 12px; }
}

/* Journey Orchestrator */
.orchestrator-page { min-height:calc(100vh - 52px); padding:20px 24px 72px; background:#f4f8fa !important; }
.orchestrator-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:20px; }
.content.orchestrator-page .orchestrator-heading h1 { margin:3px 0 6px; color:var(--izzi-menu); font-size:1.8rem !important; font-weight:800; line-height:1.2; letter-spacing:0; }
.content.orchestrator-page .orchestrator-heading p { margin:0; color:#667085; font-size:1rem; line-height:1.5; }
.orchestrator-heading .btn{padding:8px 14px;border-radius:9px;font-size:.78rem;font-weight:700}
.orchestrator-kicker { color:#28a65a; font-size:.7rem; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }
.orchestrator-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-bottom:18px; }
.orchestrator-metrics.event-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
.orchestrator-metrics .metric-warning{border-color:#f0c36a;background:#fffaf0}
.orchestrator-metrics .metric-warning strong{color:#b54708}
.event-error{max-width:320px;white-space:normal;color:#b54708;font-size:.75rem}
.orchestrator-metrics article { padding:17px; border:1px solid #e0e8ec; border-radius:10px; background:#fff; }
.orchestrator-metrics span,.orchestrator-metrics small { display:block; color:#667085; font-size:.75rem; }
.orchestrator-metrics strong { display:block; margin:4px 0; color:#1a728f; font-size:1.35rem; }
.orchestrator-panel { margin-bottom:18px; overflow:hidden; border:1px solid #dfe7eb; border-radius:10px; background:#fff; }
.orchestrator-panel-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 17px; border-bottom:1px solid #e7edf0; background:#f8fafb; }
.orchestrator-panel-head h2 { margin:0; color:#344054; font-size:1rem; font-weight:800; }
.orchestrator-panel td { padding:12px 16px; }
.orchestrator-panel td small { display:block; color:#667085; }
.journey-grid{border-color:#d9e5e9;border-radius:14px;box-shadow:0 8px 24px rgba(18,72,91,.045)}
.journey-filters{margin-bottom:18px;padding:0;border:1px solid #d9e5e9;border-radius:14px;background:#fff;box-shadow:0 8px 24px rgba(18,72,91,.04)}
.journey-filter-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 18px;border-bottom:1px solid #e5edef;background:linear-gradient(135deg,#fff 0%,#f7fafb 100%)}
.journey-filter-heading > div{display:flex;align-items:center;gap:10px;color:#176f8c}
.journey-filter-heading > div > i{display:grid;width:34px;height:34px;place-items:center;border-radius:10px;background:#e8f5f8}
.journey-filter-heading strong,.journey-filter-heading small{display:block}
.journey-filter-heading strong{color:#344054;font-size:.86rem}
.journey-filter-heading small{margin-top:2px;color:#667085;font-size:.7rem}
.journey-filter-heading > a{color:#667085;font-size:.72rem;font-weight:700;text-decoration:none}
.journey-filter-heading > a:hover{color:#147795}
.journey-filter-grid{display:grid;grid-template-columns:minmax(210px,1.35fr) repeat(3,minmax(150px,1fr)) auto;gap:12px;align-items:end;padding:18px 20px}
.journey-filter-grid label>span{display:block;margin-bottom:7px;color:#263b49;font-size:.75rem;font-weight:700}
.journey-filter-grid input,.journey-filter-grid select{width:100%;height:38px;min-height:38px;border:1px solid #cfdee3;border-radius:9px;background:#fff;color:#263b44;font-size:.78rem;outline:none}
.journey-filter-grid select{padding:0 34px 0 11px}
.journey-filter-grid input{padding:0 10px 0 35px}
.journey-filter-grid input:focus,.journey-filter-grid select:focus{border-color:#1a819f;box-shadow:0 0 0 3px rgba(26,129,159,.1)}
.filter-input{position:relative}
.filter-input i{position:absolute;top:50%;left:12px;color:#78909a;transform:translateY(-50%)}
.journey-filter-grid .btn{height:38px;min-height:38px;padding:0 14px;border-radius:9px;font-size:.78rem;font-weight:700;white-space:nowrap}
.journey-inline-version,.simulation-safety-label{display:inline-flex;align-items:center;gap:4px;margin-left:6px;padding:3px 7px;border-radius:999px;background:#e8f4f8;color:#126f8d;font-size:.68rem;font-weight:800;vertical-align:middle}
.simulation-safety-label{background:#e4f6eb;color:#16764a}
.journey-grid-head{padding:14px 18px;background:linear-gradient(135deg,#fff 0%,#f7fafb 100%)}
.journey-grid-head > div small{display:block;margin-top:2px;color:#667085;font-size:.7rem}
.journey-grid-count{padding:6px 10px;border:1px solid #d7e8ed;border-radius:999px;background:#eef7f9;color:#176f8c;font-size:.72rem;font-weight:800}
.journey-grid .table{min-width:980px}
.journey-grid .table thead th{padding:11px 18px;border:0;border-bottom:1px solid #dce8ec;background:#eef6f8;color:#41606b;font-size:.68rem;font-weight:800;letter-spacing:.055em}
.journey-grid .table tbody tr{position:relative;transition:background-color .18s ease,box-shadow .18s ease}
.journey-grid .table tbody tr:hover{background:#f8fcfd;box-shadow:inset 3px 0 0 #1a819f}
.journey-grid .table tbody td{height:76px;padding:12px 18px;border-color:#e8eff2;vertical-align:middle;font-size:.78rem}
.journey-grid .table tbody td.journey-identity{min-width:300px;text-align:left}
.journey-identity-content{display:grid!important;grid-template-columns:32px minmax(0,1fr);align-items:center;justify-content:stretch;gap:11px;width:100%;min-width:0;text-align:left}
.journey-identity-content > div{min-width:0;text-align:left}
.journey-identity strong{display:block;margin-bottom:3px;color:#173b49;font-size:.88rem;font-weight:800}
.journey-identity small{max-width:340px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.journey-icon{display:grid;flex:0 0 32px;width:32px;min-width:32px;max-width:32px;height:32px;min-height:32px;max-height:32px;place-items:center;border:1px solid #d8e9ee;border-radius:50%;background:#f4fafb;color:#137895;font-size:.82rem}
.journey-source{margin-top:4px;color:#71858e!important;font-size:.68rem!important}
.journey-source i{margin-right:3px;color:#1a819f}
.journey-badge{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border-radius:999px;font-size:.68rem;font-weight:800;white-space:nowrap}
.journey-badge.is-ready{background:#e4f6eb;color:#16764a}
.journey-badge.is-waiting{background:#f2f4f6;color:#667085}
.journey-badge.is-status{background:#e8f4f8;color:#126f8d}
.journey-badge.is-error{background:#fff0ee;color:#b42318}
.journey-badge.is-processing{background:#fff6df;color:#9a6700}
.observability-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
.observability-metrics article{position:relative;min-height:132px;padding-right:58px;transition:transform .18s ease,box-shadow .18s ease}
.observability-metrics article:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(22,111,141,.09)}
.observability-metrics .metric-icon{position:absolute;top:18px;right:18px;display:grid;width:34px;height:34px;place-items:center;border-radius:10px;background:#e9f6f9;color:#147792;font-size:1rem}
.observability-metrics .metric-warning{border-color:#f2c94c;background:#fffaf0}
.observability-metrics .metric-warning .metric-icon{background:#fff0c2;color:#9a6700}
.observability-metrics .metric-danger{border-color:#f5b7b1;background:#fff5f4}
.observability-metrics .metric-danger strong{color:#b42318}
.observability-metrics .metric-danger .metric-icon{background:#fee4e2;color:#b42318}
.observability-heading-actions{display:flex;align-items:center;gap:12px}
.observability-heading-actions small{color:#667085;font-size:.7rem}
.observability-count{display:inline-flex;align-items:center;padding:5px 10px;border:1px solid #d8e8ed;border-radius:999px;background:#edf7fa;color:#126f8d;font-size:.7rem;font-weight:800;white-space:nowrap}
.observability-alert-list{display:grid;gap:8px;padding:14px}
.observability-alert,.observability-ok{display:flex;align-items:flex-start;gap:11px;padding:12px 14px;border:1px solid #f2d39b;border-radius:10px;background:#fffaf0;color:#9a6700}
.observability-alert.is-danger{border-color:#f5b7b1;background:#fff5f4;color:#b42318}
.observability-alert i,.observability-ok i{font-size:1rem}
.observability-alert strong,.observability-alert small,.observability-ok strong,.observability-ok small{display:block}
.observability-alert strong,.observability-ok strong{color:#344054;font-size:.8rem}
.observability-alert small,.observability-ok small{margin-top:2px;color:#667085;font-size:.7rem}
.observability-ok{border-color:#b7e4c8;background:#f2fbf5;color:#18794e}
.observability-search{display:flex;gap:10px;padding:16px}
.observability-search .filter-input{flex:1}
.observability-search input{width:100%;height:42px;padding:0 12px 0 36px;border:1px solid #cfdee3;border-radius:9px;font-size:.8rem}
.trace-search-summary{display:flex;align-items:center;gap:7px;padding:10px 16px;border-top:1px solid #edf1f3;background:#f3faf7;color:#18794e;font-size:.72rem}
.trace-search-summary span{color:#667085}
.observability-table thead th{padding:11px 14px;background:#eaf5f8;color:#155f77;font-size:.68rem;letter-spacing:.035em}
.observability-table tbody tr{transition:background .15s ease}
.observability-table tbody tr:hover{background:#f8fbfc}
.observability-section-note{display:flex;align-items:center;gap:8px;padding:10px 16px;border-bottom:1px solid #e5edf0;background:#f8fbfc;color:#526675;font-size:.7rem}
.observability-error{max-width:420px;color:#7a3e36;font-size:.72rem;white-space:normal}
.trace-result{min-width:260px;white-space:normal}
.trace-result small{display:block;max-width:300px;margin-top:5px;color:#667085;line-height:1.35}
.journey-badge.is-success{background:#e4f6eb;color:#16764a}
.journey-badge.is-warning{background:#fff6df;color:#9a6700}
.journey-badge.is-danger{background:#fff0ee;color:#b42318}
.journey-badge.is-neutral{background:#f2f4f6;color:#475467}
@media(max-width:1000px){.observability-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.observability-metrics{grid-template-columns:1fr}.observability-search{flex-wrap:wrap}.observability-search .filter-input{flex-basis:100%}.observability-heading-actions{align-items:flex-end;flex-direction:column}.observability-heading-actions small{display:none}}
.journey-volume,.journey-date{display:block;color:#173b49;font-size:.88rem;font-weight:800}
.journey-volume{margin-top:5px}
.journey-volume small{display:inline!important;font-size:.66rem!important;font-weight:600}
.journey-action{text-align:right;white-space:nowrap}
.journey-open-button{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border:1px solid #c8dde4;border-radius:8px;background:#fff;color:#147795;font-size:.72rem;font-weight:800;transition:all .18s ease}
.journey-open-button:hover{border-color:#167c9a;background:#167c9a;color:#fff;transform:translateX(2px)}
.journey-empty{height:180px!important;text-align:center;color:#667085}
.journey-empty i,.journey-empty strong,.journey-empty span{display:block}
.journey-empty i{margin-bottom:8px;color:#79aab9;font-size:1.5rem}
.journey-empty strong{color:#344054}
@media(max-width:1100px){.journey-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.journey-filter-grid .btn{grid-column:span 2}}
@media(max-width:800px){.journey-grid-head{align-items:flex-start}.journey-grid-count{display:none}.journey-filter-heading{align-items:flex-start}.journey-filter-heading small{display:none}.journey-filter-grid{grid-template-columns:1fr}.journey-filter-grid .btn{grid-column:span 1}}
.orchestrator-empty { padding:54px 24px; border:1px dashed #b8ccd5; border-radius:12px; background:#fff; text-align:center; }
.orchestrator-empty i { color:#1a728f; font-size:2rem; }
.orchestrator-empty h2 { margin:12px 0 5px; color:#344054; font-size:1.2rem; }
.orchestrator-form { padding-bottom:18px; }
.orchestrator-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; padding:18px; }
.orchestrator-field.span-2 { grid-column:span 2; }
.orchestrator-field label { display:block; margin-bottom:6px; color:#344054; font-size:.8rem; font-weight:750; }
.orchestrator-field[hidden]{display:none}
.orchestrator-field .field-help{display:block;margin-top:5px;color:#7a8792;font-size:.68rem;line-height:1.35}
.orchestrator-field input:not([type=checkbox]),.orchestrator-field select,.orchestrator-field textarea { width:100%; padding:.58rem .7rem; border:1px solid #ccd7dc; border-radius:7px; background:#fff; }
.orchestrator-check { display:flex !important; align-items:center; gap:9px; min-height:42px; }
.orchestrator-actions { display:flex; justify-content:flex-end; padding:0 18px; }
.journey-timeline,.decision-list { display:grid; gap:0; padding:18px; }
.journey-timeline article,.decision-list article { display:flex; gap:14px; padding:13px 0; border-bottom:1px solid #edf1f3; }
.journey-timeline .timeline-content { flex:1; min-width:0; }
.journey-timeline .timeline-edit { align-self:center; white-space:nowrap; }
.timeline-drag{align-self:center;padding:8px 2px;border:0;background:transparent;color:#98a2b3;cursor:grab;font-size:1.1rem}
.timeline-drag:active{cursor:grabbing}
.journey-timeline article.is-dragging{opacity:.45;background:#f2f9fb}
.timeline-actions{display:flex;align-self:center;align-items:center;gap:7px;white-space:nowrap}
.timeline-actions form{margin:0}
.step-volume{align-self:center;min-width:230px;padding:8px 11px;border:1px solid #d8e8ee;border-radius:8px;background:#f5fafc;text-align:right}
.step-volume span,.step-volume small{display:block!important;text-transform:none!important}
.step-volume span{color:#1a728f!important;font-size:.72rem!important}
.step-volume span strong{font-size:1rem}
.step-volume small{margin-top:2px;color:#667085!important;font-size:.65rem!important;font-weight:600!important}
.journey-step-legend{display:flex;flex-wrap:wrap;gap:8px;padding:14px 18px 0}
.journey-step-legend span{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border:1px solid;border-radius:999px;font-size:.66rem;font-weight:800}
.legend-decision{border-color:#a9c8ef!important;background:#f1f6fd;color:#2b65a5}
.legend-channel{border-color:#9bd5c2!important;background:#effaf6;color:#18785d}
.legend-wait{border-color:#efd08f!important;background:#fff9eb;color:#9a6700}
.legend-stop{border-color:#c8d0d7!important;background:#f5f7f8;color:#52606d}
.journey-timeline .journey-step-card{position:relative;align-items:center;margin:8px 0;padding:14px 14px 14px 9px;border:1px solid #e1e8ec!important;border-left:5px solid;border-radius:11px;background:#fff;box-shadow:0 3px 10px rgba(31,56,68,.035);transition:transform .16s ease,box-shadow .16s ease}
.journey-timeline .journey-step-card:hover{transform:translateY(-1px);box-shadow:0 7px 18px rgba(31,56,68,.08)}
.journey-timeline .step-card-decision{border-left-color:#4f8fd6!important;background:linear-gradient(90deg,#f5f9fe 0,#fff 24%)}
.journey-timeline .step-card-channel{border-left-color:#25a47d!important;background:linear-gradient(90deg,#f1fbf7 0,#fff 24%)}
.journey-timeline .step-card-wait{border-left-color:#d89b24!important;background:linear-gradient(90deg,#fff9ed 0,#fff 24%)}
.journey-timeline .step-card-stop{border-left-color:#7d8993!important;background:linear-gradient(90deg,#f6f7f8 0,#fff 24%)}
.step-visual-type{display:flex;align-items:center;gap:8px;margin-bottom:7px}
.step-visual-icon{display:grid!important;place-items:center;width:30px;height:30px;border-radius:8px;font-size:.86rem!important}
.step-card-decision .step-visual-icon{background:#deebfb;color:#2b65a5}
.step-card-channel .step-visual-icon{background:#daf3e9;color:#18785d}
.step-card-wait .step-visual-icon{background:#fbedca;color:#9a6700}
.step-card-stop .step-visual-icon{background:#e8ecef;color:#52606d}
.step-visual-copy{display:block!important;line-height:1.15}
.step-visual-copy strong,.step-visual-copy small{display:block}
.step-visual-copy strong{color:#344054;font-size:.72rem;text-transform:uppercase;letter-spacing:.035em}
.step-visual-copy small{margin-top:2px;color:#7b8790;font-size:.61rem;font-weight:600;text-transform:none}
.step-version{display:none}
.journey-step-card .timeline-order{width:38px;height:38px;border:2px solid #fff;box-shadow:0 0 0 1px #dce6ea}
.step-card-decision .timeline-order{background:#deebfb;color:#2b65a5}
.step-card-channel .timeline-order{background:#daf3e9;color:#18785d}
.step-card-wait .timeline-order{background:#fbedca;color:#9a6700}
.step-card-stop .timeline-order{background:#e8ecef;color:#52606d}
.journey-step-card .timeline-content h3{font-size:1rem;margin-bottom:4px}
.journey-step-card .timeline-content > p{padding-left:38px;color:#52606d}
.daily-plan-header{display:grid;grid-template-columns:repeat(6,minmax(120px,1fr));border-bottom:1px solid #e3eaee;background:linear-gradient(90deg,#f4fafc,#f7fcf8)}
.daily-plan-header>div{display:flex;flex-direction:column;gap:5px;padding:16px 18px;border-right:1px solid #e3eaee}
.daily-plan-header>div:last-child{border-right:0}
.daily-plan-header span,.daily-plan-table small{display:block;color:#667085;font-size:.72rem}
.daily-plan-header strong{color:#176f8a;font-size:1rem}
.daily-plan-table td,.daily-plan-table th{padding:13px 18px}
.daily-plan-table td:first-child strong{color:#176f8a}
.operation-summary-grid{display:grid;grid-template-columns:1fr 1.5fr 1.5fr 1fr 1.4fr;background:#fff}
.operation-summary-grid>div{display:flex;flex-direction:column;gap:5px;min-width:0;padding:16px 18px;border-right:1px solid #e1e9ed}
.operation-summary-grid>div:last-child{border-right:0}
.operation-summary-grid span{color:#667085;font-size:.7rem;font-weight:800;text-transform:uppercase}
.operation-summary-grid strong{overflow:hidden;color:#344054;font-size:.86rem;text-overflow:ellipsis}
.operation-summary-grid small{color:#667085;font-size:.68rem}
.operation-explainer{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;align-items:center;gap:14px;margin-bottom:18px;padding:18px;border:1px solid #dce7eb;border-radius:12px;background:linear-gradient(115deg,#f1f8fb,#f4fbf7)}
.operation-explainer>div{display:flex;align-items:center;gap:12px}
.operation-explainer>div>i{display:grid;width:38px;height:38px;place-items:center;border-radius:10px;background:#e0f1f5;color:#147792;font-size:1.1rem}
.operation-explainer span{display:flex;flex-direction:column}
.operation-explainer small{color:#667085;font-size:.72rem}
.operation-explainer>.bi-arrow-right{color:#8ba2ad}
.worker-safety-banner{display:flex;align-items:center;gap:13px;margin-bottom:18px;padding:14px 17px;border:1px solid #bfe6d7;border-radius:12px;background:#f1fbf7;color:#22644f}
.worker-safety-banner>i{font-size:1.35rem;color:#20a576}
.worker-safety-banner>div{display:flex;flex-direction:column}
.worker-safety-banner small{color:#527268}
.worker-grid{display:grid;gap:16px}
.worker-card{overflow:hidden;border:1px solid #dce6ea;border-left:5px solid #8a99a4;border-radius:13px;background:#fff;box-shadow:0 5px 16px rgba(27,61,76,.05)}
.worker-state-running{border-left-color:#21a675}
.worker-state-paused{border-left-color:#d69b28}
.worker-state-error,.worker-stale{border-left-color:#d34a56}
.worker-card-head{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:13px;padding:17px 18px;border-bottom:1px solid #e5ecef}
.worker-icon{display:grid;width:44px;height:44px;place-items:center;border-radius:12px;background:#e9f6f9;color:#177d98;font-size:1.25rem}
.worker-card-head span{color:#687783;font-size:.67rem;font-weight:800;text-transform:uppercase}
.worker-card-head h2{margin:2px 0;color:#244857;font-size:1rem}
.worker-card-head p{margin:0;color:#667085;font-size:.77rem}
.worker-state{padding:6px 10px;border-radius:999px;background:#edf2f4}
.worker-state-running .worker-state{background:#daf4e8;color:#08764f}
.worker-state-paused .worker-state{background:#fff0ca;color:#875e00}
.worker-state-error .worker-state,.worker-stale .worker-state{background:#ffe3e5;color:#a42231}
.worker-facts{display:grid;grid-template-columns:repeat(4,1fr);background:#fbfcfd}
.worker-facts>div{display:flex;flex-direction:column;gap:3px;padding:14px 18px;border-right:1px solid #e5ecef}
.worker-facts>div:last-child{border-right:0}
.worker-facts span{color:#77828c;font-size:.66rem;font-weight:800;text-transform:uppercase}
.worker-facts strong{color:#344054;font-size:.82rem}
.worker-facts small{color:#77828c;font-size:.68rem}
.worker-actions{display:flex;justify-content:flex-end;gap:8px;padding:13px 18px;border-top:1px solid #e5ecef}
.worker-warning,.worker-managed-note{display:flex;align-items:center;gap:7px;padding:10px 18px;border-top:1px solid #e5ecef;color:#8a5b00;font-size:.75rem}
.worker-managed-note{color:#667085}
@media(max-width:850px){.worker-facts{grid-template-columns:repeat(2,1fr)}.worker-card-head{grid-template-columns:auto 1fr}.worker-state{grid-column:1/-1;width:max-content}}
@media(max-width:1000px){.daily-plan-header{grid-template-columns:repeat(3,1fr)}}
@media(max-width:1100px){.operation-summary-grid{grid-template-columns:repeat(2,1fr)}.operation-explainer{grid-template-columns:1fr}.operation-explainer>.bi-arrow-right{display:none}}
@media(max-width:600px){.daily-plan-header{grid-template-columns:repeat(2,1fr)}}
@media(max-width:850px){.journey-timeline .journey-step-card{align-items:flex-start;flex-wrap:wrap}.journey-step-card .timeline-content{min-width:calc(100% - 90px)}.step-volume{margin-left:86px;text-align:left}.timeline-actions{margin-left:auto}}
.journey-timeline article:last-child,.decision-list article:last-child { border-bottom:0; }
.timeline-order { display:grid; place-items:center; flex:0 0 auto; width:34px; height:34px; border-radius:50%; background:#e5f3f7; color:#1a728f; font-weight:900; }
.journey-timeline span,.decision-list span { color:#667085; font-size:.7rem; font-weight:800; text-transform:uppercase; }
.journey-timeline h3,.decision-list h3 { margin:2px 0 3px; color:#344054; font-size:.95rem; }
.journey-timeline p,.decision-list p { margin:0; color:#667085; font-size:.8rem; }
.orchestrator-simulator { display:grid; grid-template-columns:minmax(300px,.8fr) minmax(420px,1.2fr); gap:18px; }
.decision-list article > i { margin-top:3px; color:#98a2b3; }
.decision-list article.matched > i { color:#28a65a; }
@media(max-width:800px){.orchestrator-page{padding:20px 14px 70px}.orchestrator-heading{flex-direction:column}.orchestrator-metrics,.orchestrator-metrics.event-metrics,.orchestrator-form-grid,.orchestrator-simulator{grid-template-columns:1fr}.orchestrator-field.span-2{grid-column:span 1}}
@media(max-width:600px){.content.orchestrator-page .orchestrator-heading h1{font-size:1.5rem!important}}
.journey-guide { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; margin-bottom:18px; }
.guide-step { position:relative; display:grid; grid-template-columns:30px 1fr; column-gap:9px; padding:11px; border:1px solid #dde6ea; border-radius:9px; background:#fff; }
.guide-step > span { grid-row:span 2; display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:#edf2f4; color:#667085; font-weight:900; }
.guide-step strong { color:#344054; font-size:.76rem; }.guide-step small{color:#667085;font-size:.65rem}
.guide-step.done > span{background:#dff5e8;color:#18794e}.guide-step.active{border-color:#7ebdd0;background:#f2f9fb}.guide-step.active > span{background:#1a728f;color:#fff}
.journey-base-panel .orchestrator-panel-head > div small{color:#667085;font-size:.7rem}
.base-load-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));}
.base-load-summary > div{padding:15px 17px;border-right:1px solid #e7edf0}.base-load-summary > div:last-child{border-right:0}
.base-load-summary span{display:block;color:#667085;font-size:.68rem;text-transform:uppercase;font-weight:800}.base-load-summary strong,.base-load-summary code{display:block;margin-top:4px;color:#344054;font-size:.9rem}
@media(max-width:900px){.journey-guide{grid-template-columns:1fr 1fr}.base-load-summary{grid-template-columns:1fr 1fr}}
.step-policy{display:flex;flex-wrap:wrap;gap:8px;margin-top:7px}.step-policy span{padding:4px 7px;border-radius:6px;background:#f0f6f8;color:#52606d;font-size:.66rem;text-transform:none}
.distribution-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1px;background:#e7edf0}
.distribution-grid article{padding:16px;background:#fff}.distribution-grid article span,.distribution-grid article small{display:block;color:#667085;font-size:.7rem}.distribution-grid article strong{display:block;margin:3px 0;color:#1a728f;font-size:1.45rem}
.distribution-empty{grid-column:1/-1;padding:28px;background:#fff;color:#667085;text-align:center;font-size:.82rem}
.rule-distribution-list{display:grid}
.rule-distribution-list > article{display:grid;grid-template-columns:minmax(240px,1.5fr) repeat(3,minmax(110px,.55fr)) minmax(180px,.8fr);align-items:stretch;border-bottom:1px solid #e7edf0}
.rule-distribution-list > article:last-child{border-bottom:0}
.rule-distribution-name,.rule-distribution-metric,.rule-distribution-destination{display:flex;flex-direction:column;justify-content:center;padding:15px 17px;border-right:1px solid #e7edf0}
.rule-distribution-list article > div:last-child{border-right:0}
.rule-distribution-name span,.rule-distribution-metric span,.rule-distribution-destination span{color:#667085;font-size:.66rem;font-weight:800;text-transform:uppercase}
.rule-distribution-name strong,.rule-distribution-destination strong{margin:3px 0;color:#344054;font-size:.86rem}
.rule-distribution-name small,.rule-distribution-destination small{color:#667085;font-size:.68rem}
.rule-distribution-metric strong{margin-top:3px;color:#1a728f;font-size:1.35rem}
.rule-distribution-metric.selected strong{color:#18794e}
.rule-distribution-metric.overflow strong{color:#b54708}
@media(max-width:1050px){.rule-distribution-list > article{grid-template-columns:1fr 1fr 1fr}.rule-distribution-name,.rule-distribution-destination{grid-column:span 3}.rule-distribution-metric:nth-of-type(4){border-right:0}}

.operational-plan-head{align-items:flex-end}
.operational-plan-actions{display:flex;align-items:center;gap:9px}
.operational-plan-actions form{margin:0}
.schedule-safety-alert,.schedule-safety-ok{display:flex;align-items:center;gap:12px;padding:13px 18px;border-bottom:1px solid}
.schedule-safety-alert{border-color:#f2c27b;background:#fff8eb;color:#8a4b08}
.schedule-safety-ok{border-color:#bde4d3;background:#f0faf6;color:#176b4a}
.schedule-safety-alert>i,.schedule-safety-ok>i{font-size:1.3rem}
.schedule-safety-alert>div{display:flex;flex-direction:column}
.schedule-safety-alert span,.schedule-safety-ok span{font-size:.78rem}
.operational-rule-list{display:grid}
.operational-rule{border-bottom:1px solid #e4ebef;background:#fff}
.operational-rule:last-child{border-bottom:0}
.operational-rule.has-warning{border-left:4px solid #e9a23b;background:#fffdf8}
.operational-rule summary{display:grid;grid-template-columns:auto minmax(260px,1.5fr) minmax(150px,.7fr) minmax(100px,.45fr) auto auto;align-items:center;gap:16px;padding:17px 19px;cursor:pointer;list-style:none}
.operational-rule summary::-webkit-details-marker{display:none}
.rule-channel-icon{display:grid;width:40px;height:40px;place-items:center;border-radius:11px;background:#e7f5fa;color:#147793;font-size:1.05rem}
.rule-primary,.rule-time,.rule-volume{display:flex;flex-direction:column}
.rule-primary small,.rule-time small,.rule-volume small{color:#667085;font-size:.65rem;font-weight:800;text-transform:uppercase}
.rule-primary strong{color:#243f4d;font-size:.9rem}
.rule-time strong,.rule-volume strong{color:#176f8a;font-size:1.05rem}
.rule-time em{color:#667085;font-size:.65rem;font-style:normal}
.rule-status{display:inline-flex;align-items:center;gap:5px;padding:6px 10px;border-radius:999px;font-size:.7rem;font-weight:800}
.rule-status.safe{background:#e4f6ed;color:#147448}
.rule-status.warning{background:#fff0d8;color:#9a5200}
.rule-expand{color:#72808a;transition:transform .2s ease}
.operational-rule[open] .rule-expand{transform:rotate(180deg)}
.operational-rule-detail{padding:0 19px 18px 75px}
.rule-warning{display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:8px;margin-bottom:13px;padding:10px 12px;border:1px solid #f0c786;border-radius:9px;background:#fff8eb;color:#8a4b08;font-size:.75rem}
.rule-funnel{display:flex;align-items:stretch;gap:10px}
.rule-funnel>div{display:flex;min-width:120px;flex:1;flex-direction:column;padding:11px 13px;border:1px solid #e0e8ec;border-radius:10px;background:#f8fafb}
.rule-funnel>i{align-self:center;color:#9aa8b1}
.rule-funnel span{color:#667085;font-size:.65rem;font-weight:800;text-transform:uppercase}
.rule-funnel strong{color:#176f8a;font-size:1.12rem}
.rule-funnel .selected strong{color:#18794e}
.rule-funnel .overflow strong{color:#b54708}
.rule-meta{display:flex;flex-wrap:wrap;gap:9px;margin-top:11px}
.rule-meta span{padding:6px 9px;border-radius:8px;background:#eef4f6;color:#52636e;font-size:.68rem;font-weight:700}
@media(max-width:900px){.operational-rule summary{grid-template-columns:auto 1fr auto}.rule-time,.rule-volume{grid-column:2}.rule-status{grid-column:3;grid-row:1}.operational-rule-detail{padding-left:19px}.rule-funnel{display:grid;grid-template-columns:1fr 1fr}.rule-funnel>i{display:none}}
@media(max-width:600px){.operational-plan-head{align-items:flex-start}.operational-plan-actions{width:100%;flex-direction:column}.operational-plan-actions form,.operational-plan-actions button{width:100%}.operational-rule summary{grid-template-columns:auto 1fr auto}.rule-status{display:none}.rule-funnel{grid-template-columns:1fr}}
.schedule-policy-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.schedule-plan-list{display:grid}
.schedule-plan-list article{display:flex;align-items:center;justify-content:space-between;padding:15px 18px;border-bottom:1px solid #e5ecef}
.schedule-plan-list article:last-child{border-bottom:0}
.schedule-plan-list span,.schedule-plan-list small{display:block;color:#667085;font-size:.7rem}
.schedule-plan-list h3{margin:2px 0;color:#244857;font-size:.95rem}
.schedule-plan-list>article>strong{padding:6px 9px;border-radius:8px;background:#e8f5f8;color:#16748f}
.schedule-weekdays{grid-column:1/-1}.schedule-weekdays ul{display:flex;flex-wrap:wrap;gap:8px;padding:0;list-style:none}.schedule-weekdays label{display:flex;gap:5px;padding:7px 10px;border:1px solid #d9e4e8;border-radius:9px;background:#f8fafb}
@media(max-width:900px){.schedule-policy-grid{grid-template-columns:1fr}}
.schedule-tabs{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px}
.schedule-tabs a{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:13px;padding:15px 18px;border:1px solid #dbe5e9;border-radius:12px;background:#fff;color:#52606d;text-decoration:none;transition:.16s ease}
.schedule-tabs a:hover{border-color:#8bc2d1;transform:translateY(-1px)}
.schedule-tabs a.active{border-color:#1b819e;background:#f1f9fb;box-shadow:0 0 0 2px rgba(27,129,158,.07);color:#176f8a}
.schedule-tabs>a>i{font-size:1.25rem}.schedule-tabs span,.schedule-tabs strong,.schedule-tabs small{display:block}
.schedule-tabs strong{font-size:.87rem}.schedule-tabs small{margin-top:2px;color:#667085;font-size:.68rem;font-weight:500}
.schedule-tabs b{display:grid;place-items:center;min-width:30px;height:30px;border-radius:9px;background:#e8f4f7;font-size:.78rem}
.schedule-catalog{overflow:hidden}.schedule-card-list{display:grid}
.schedule-card-list article{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:14px;padding:17px 20px;border-bottom:1px solid #e5ecef}
.schedule-card-list article:last-child{border-bottom:0}
.schedule-card-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#e9f6f9;color:#177b98;font-size:1.1rem}
.schedule-card-icon.calendar{background:#eef7ed;color:#24804b}
.schedule-card-main>div{display:flex;align-items:center;gap:9px}.schedule-card-main h3{margin:0;color:#244857;font-size:.92rem;font-weight:800}
.schedule-card-main small{display:block;margin-top:5px;color:#667085;font-size:.7rem}
.schedule-version{padding:6px 9px;border-radius:8px;background:#eef4f6;color:#52636e;font-size:.7rem;font-weight:800}
.schedule-drawer-body{display:grid;gap:16px;padding:20px 24px}.schedule-drawer-body.orchestrator-form-grid{display:grid}
.schedule-drawer textarea{min-height:330px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;line-height:1.65}
.schedule-version-note{display:flex;gap:11px;padding:13px;border:1px solid #cae7d4;border-radius:10px;background:#f3fbf6;color:#26734a}
.schedule-version-note span,.schedule-version-note strong,.schedule-version-note small{display:block}.schedule-version-note small{margin-top:2px;color:#547063;font-size:.7rem}
@media(max-width:700px){.schedule-tabs{grid-template-columns:1fr}.schedule-card-list article{grid-template-columns:auto 1fr auto}.schedule-card-list article .btn{grid-column:2/-1}.schedule-version{grid-column:3}}
.orchestrator-drawer-backdrop{position:fixed;inset:0;z-index:1090;background:rgba(15,36,48,.38);backdrop-filter:blur(2px)}
.orchestrator-step-drawer{position:fixed;z-index:1100;top:0;right:0;width:min(620px,92vw);height:100vh;overflow-y:auto;background:#fff;box-shadow:-18px 0 45px rgba(20,54,70,.2);animation:orchestratorDrawerIn .2s ease-out}
.orchestrator-step-drawer .orchestrator-form{min-height:100%;padding-bottom:92px}
.orchestrator-drawer-head{position:sticky;top:0;z-index:2;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:22px 24px 17px;border-bottom:1px solid #e1e9ed;background:#fff}
.orchestrator-drawer-head span{color:#28a65a;font-size:.68rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
.orchestrator-drawer-head h2{margin:3px 0;color:#1a728f;font-size:1.25rem;font-weight:850}
.orchestrator-drawer-head p{margin:0;color:#667085;font-size:.78rem}
.orchestrator-drawer-close{display:grid;place-items:center;flex:0 0 auto;width:36px;height:36px;border:1px solid #d5e0e5;border-radius:50%;color:#52606d}
.orchestrator-drawer-actions{position:fixed;right:0;bottom:0;z-index:1101;display:flex;justify-content:flex-end;gap:10px;width:min(620px,92vw);padding:15px 24px;border-top:1px solid #e1e9ed;background:rgba(255,255,255,.96);box-shadow:0 -8px 20px rgba(20,54,70,.06)}
@keyframes orchestratorDrawerIn{from{transform:translateX(32px);opacity:.7}to{transform:translateX(0);opacity:1}}
@media(max-width:640px){.orchestrator-step-drawer,.orchestrator-drawer-actions{width:100vw}.orchestrator-step-drawer .orchestrator-form-grid{grid-template-columns:1fr}.orchestrator-drawer-head{padding:18px}.orchestrator-drawer-actions{padding:12px 18px}}
.step-type-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:18px 20px 4px}
.step-type-cards button{display:flex;align-items:center;gap:9px;padding:11px;border:1px solid #dbe5e9;border-radius:10px;background:#fff;color:#52606d;text-align:left;transition:.16s ease}
.step-type-cards button:hover{border-color:#7ebdd0;background:#f5fafc}
.step-type-cards button.active{border-color:#1a829f;background:#edf8fb;color:#156b84;box-shadow:0 0 0 2px rgba(26,130,159,.08)}
.step-type-cards button.configured{position:relative}
.step-type-cards button.configured::after{content:"✓";position:absolute;top:7px;right:8px;display:grid;place-items:center;width:17px;height:17px;border-radius:50%;background:#dff6e9;color:#078447;font-size:.62rem;font-weight:900}
.step-type-cards i{font-size:1.15rem}.step-type-cards span,.step-type-cards strong,.step-type-cards small{display:block}
.step-type-cards strong{font-size:.78rem}.step-type-cards small{margin-top:2px;font-size:.6rem;line-height:1.25}
.orchestrator-step-drawer .orchestrator-form-grid{display:block;padding:14px 20px}
.step-form-section{margin-bottom:13px;border:1px solid #e0e8ec;border-radius:11px;background:#fff;overflow:hidden}
.step-form-section > header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid #e7edf0;background:#f8fafb}
.step-form-section > header h3{margin:0;color:#344054;font-size:.88rem;font-weight:850}
.step-form-section > header p{margin:2px 0 0;color:#667085;font-size:.66rem}
.step-form-section-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:14px}
.step-form-section-grid .orchestrator-field{min-width:0}
.step-cadence-config{grid-column:1/-1;padding:12px;border:1px solid #cfe4eb;border-radius:10px;background:#f6fbfc}
.step-cadence-copy{margin-bottom:11px}
.step-cadence-copy strong,.step-cadence-copy small{display:block}
.step-cadence-copy strong{color:#176f89;font-size:.78rem;font-weight:850}
.step-cadence-copy strong i{margin-right:5px}
.step-cadence-copy small{margin-top:3px;color:#667085;font-size:.66rem;line-height:1.35}
.step-cadence-fields{display:grid;grid-template-columns:1fr 1fr .9fr;gap:10px;align-items:start}
.condition-builder{grid-column:1/-1}
.condition-list{display:grid;gap:8px}
.condition-row{display:grid;grid-template-columns:54px minmax(130px,1.35fr) minmax(120px,1fr) minmax(110px,1fr) 34px;gap:7px;align-items:center;padding:9px;border:1px solid #dfe8ec;border-radius:9px;background:#fbfcfd}
.condition-row select,.condition-row input{width:100%;min-width:0;padding:.55rem .6rem;border:1px solid #ccd7dc;border-radius:7px;background:#fff;font-size:.75rem}
.condition-logical span{display:grid;place-items:center;height:36px;border-radius:7px;background:#e8f5f8;color:#1a728f;font-size:.72rem;font-weight:900}
.condition-remove{display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:7px;background:#fff0f0;color:#d92d20}
.condition-add{margin-top:10px}
.condition-preview{margin-top:12px;padding:11px 13px;border-left:3px solid #28a65a;border-radius:7px;background:#f3fbf6}
.condition-preview span,.condition-preview strong{display:block}.condition-preview span{color:#18794e;font-size:.62rem;font-weight:850;text-transform:uppercase}.condition-preview strong{margin-top:3px;color:#344054;font-size:.76rem}
@media(max-width:720px){.step-type-cards{grid-template-columns:1fr 1fr}.step-form-section-grid{grid-template-columns:1fr}.step-cadence-fields{grid-template-columns:1fr 1fr}.step-cadence-fields .orchestrator-field:last-child{grid-column:1/-1}.condition-row{grid-template-columns:48px 1fr 34px}.condition-row .condition-operator,.condition-row .condition-value{grid-column:2/3}}

.batch-detail-heading{align-items:flex-end}
.batch-detail-back{display:inline-flex;align-items:center;gap:7px;margin-bottom:8px;color:#157693;font-size:.78rem;font-weight:800;text-decoration:none}
.batch-detail-summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));margin-bottom:18px;border:1px solid #dce7eb;border-radius:14px;background:#fff;box-shadow:0 10px 28px rgba(23,74,91,.06);overflow:hidden}
.batch-detail-summary article{min-width:0;padding:18px;border-right:1px solid #e3ebee}
.batch-detail-summary article:last-child{border-right:0}
.batch-detail-summary span,.batch-detail-summary strong{display:block}
.batch-detail-summary span{margin-bottom:7px;color:#667085;font-size:.68rem}
.batch-detail-summary strong{color:#116f8b;font-size:1rem;overflow:hidden;text-overflow:ellipsis}
.batch-detail-alert{display:flex;align-items:flex-start;gap:12px;margin-bottom:18px;padding:15px 18px;border:1px solid #f1c36b;border-radius:12px;background:#fff9eb;color:#8a5200}
.batch-detail-alert i{font-size:1.25rem}.batch-detail-alert strong,.batch-detail-alert span{display:block}.batch-detail-alert span{margin-top:2px;font-size:.76rem}
.batch-contact-filter form{display:grid;grid-template-columns:minmax(320px,2fr) minmax(190px,.8fr) auto;align-items:end;gap:14px;padding:18px}
.batch-contact-filter label,.batch-contact-filter label span{display:block}.batch-contact-filter label span{margin-bottom:6px;font-size:.7rem;font-weight:800;color:#344054}
.batch-contact-totals{display:flex;gap:8px}.batch-contact-totals span{padding:7px 11px;border-radius:99px;background:#eef7fa;color:#176f89;font-size:.68rem;font-weight:800}
.batch-contact-list{background:#f7fafb}
.batch-contact-card{display:grid;grid-template-columns:36px minmax(280px,1.35fr) minmax(240px,1fr) minmax(160px,.55fr);align-items:center;gap:18px;padding:17px 20px;border-bottom:1px solid #e2eaed;background:#fff;transition:.15s ease}
.batch-contact-card:hover{position:relative;z-index:1;background:#fbfeff;box-shadow:0 7px 22px rgba(24,89,109,.07)}
.batch-contact-select input{width:18px;height:18px;accent-color:#16809d}
.batch-contact-person strong,.batch-contact-person small{display:block}.batch-contact-person strong{color:#163f4c;font-size:.86rem}.batch-contact-person small{margin-top:3px;color:#667085;font-size:.65rem}
.batch-contact-person div{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}.batch-contact-person div span{color:#49616b;font-size:.66rem}.batch-contact-person div i{color:#16809d}
.batch-contact-rule span,.batch-contact-rule strong,.batch-contact-rule small{display:block}.batch-contact-rule span{color:#667085;font-size:.6rem;font-weight:800;text-transform:uppercase}.batch-contact-rule strong{margin-top:3px;color:#344054;font-size:.72rem}.batch-contact-rule small{margin-top:5px;color:#7a8990;font-size:.62rem}
.batch-contact-status{text-align:right}.batch-contact-status small{display:block;margin-top:5px;font-size:.62rem}
.batch-item-status{display:inline-flex;padding:6px 10px;border-radius:99px;background:#edf4f6;color:#49616b;font-size:.62rem;font-weight:900}.batch-item-status.status-planned{background:#e2f5fb;color:#087493}.batch-item-status.status-mock_accepted{background:#dff6e9;color:#087e47}.batch-item-status.status-mock_rejected{background:#ffeded;color:#b42318}
.batch-test-dock{position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 20px;border-top:1px solid #d9e6ea;background:rgba(255,255,255,.96);box-shadow:0 -10px 24px rgba(20,72,89,.08);backdrop-filter:blur(12px)}
.batch-test-dock>div{display:flex;align-items:center;gap:11px}.batch-test-dock>div>i{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#e9f8ef;color:#07844a;font-size:1.05rem}.batch-test-dock span,.batch-test-dock strong,.batch-test-dock small{display:block}.batch-test-dock strong{color:#23505d;font-size:.76rem}.batch-test-dock small{margin-top:2px;color:#667085;font-size:.64rem}
@media(max-width:1100px){.batch-detail-summary{grid-template-columns:repeat(3,1fr)}.batch-contact-card{grid-template-columns:32px 1fr 1fr}.batch-contact-status{grid-column:2/4;text-align:left}}
@media(max-width:720px){.batch-detail-summary{grid-template-columns:1fr 1fr}.batch-contact-filter form{grid-template-columns:1fr}.batch-contact-card{grid-template-columns:28px 1fr}.batch-contact-rule,.batch-contact-status{grid-column:2/3}.batch-test-dock{align-items:stretch;flex-direction:column}.batch-test-dock button{width:100%}}
.execution-live-state{display:flex;align-items:center;gap:10px;padding:8px 10px 8px 14px;background:#fff;border:1px solid #dce7ec;border-radius:14px;box-shadow:0 8px 24px rgba(17,72,92,.07)}
.execution-live-state>div{display:flex;flex-direction:column;line-height:1.15}.execution-live-state small{color:#607080;font-size:11px}
.execution-live-dot{width:9px;height:9px;border-radius:50%;background:#22c77a;box-shadow:0 0 0 5px rgba(34,199,122,.13)}
.execution-state-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:16px 0}
.execution-state-grid article{position:relative;overflow:hidden;background:#fff;border:1px solid #dce7ec;border-radius:15px;padding:16px 18px;box-shadow:0 8px 25px rgba(16,69,89,.05)}
.execution-state-grid article:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#8ca1ac}
.execution-state-grid span,.execution-state-grid small{display:block;color:#667987;font-size:11px}.execution-state-grid strong{display:block;color:#126f8d;font-size:25px;line-height:1.1;margin:5px 0}
.execution-state-grid .is-running:before{background:#20b486}.execution-state-grid .is-ready:before{background:#1885a5}.execution-state-grid .is-scheduled:before{background:#5b7cfa}.execution-state-grid .is-attention:before{background:#ed9f21}.execution-state-grid .is-paused:before{background:#7c8790}.execution-state-grid .is-completed:before{background:#32b86f}
.execution-filter-grid{display:grid;grid-template-columns:.9fr 1.3fr 1fr 1fr .75fr .9fr auto;align-items:end;gap:12px;padding:18px 20px}.execution-filter-grid label span{display:block;font-weight:700;font-size:12px;margin-bottom:7px;color:#263b49}
.execution-batch-list{display:flex;flex-direction:column}.execution-batch-card{display:grid;grid-template-columns:minmax(300px,1.5fr) minmax(310px,1fr) 170px auto;gap:20px;align-items:center;padding:18px 20px;border-bottom:1px solid #e4ecef;border-left:4px solid #8297a1;background:#fff;transition:background .2s,transform .2s}
.execution-agenda-section{background:#f8fbfc;border-bottom:1px solid #dce8ec}
.execution-agenda-section.is-urgent{background:#fffaf0}
.execution-agenda-title{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 20px;border-bottom:1px solid #dce8ec;background:#eef6f8;color:#1b5365}
.execution-agenda-section.is-urgent .execution-agenda-title{background:#fff2d9;color:#8c5600}
.execution-agenda-title span{display:flex;align-items:center;gap:8px;font-size:.78rem;font-weight:800}.execution-agenda-title small{font-size:.66rem}
.execution-time-group{display:grid;grid-template-columns:86px minmax(0,1fr);position:relative}
.execution-time-marker{display:flex;align-items:flex-start;justify-content:center;position:relative;padding-top:23px;background:#f5fafb;color:#126f8d;font-size:.72rem;font-weight:800}
.execution-time-marker span{position:relative;z-index:1;padding:5px 8px;border:1px solid #cfe3e9;border-radius:999px;background:#fff}
.execution-time-marker i{position:absolute;top:0;bottom:0;left:50%;width:1px;background:#d7e7eb}
.execution-time-batches{min-width:0;border-left:1px solid #dce8ec}
.execution-time-batches .execution-batch-card:last-child{border-bottom:0}
.execution-batch-card:hover{background:#fbfdfe}.execution-batch-card.state-running{border-left-color:#20b486;background:linear-gradient(90deg,rgba(32,180,134,.06),#fff 22%)}.execution-batch-card.state-ready{border-left-color:#1885a5}.execution-batch-card.state-retrying,.execution-batch-card.state-blocked{border-left-color:#ed9f21}.execution-batch-card.state-paused{border-left-color:#7c8790}.execution-batch-card.state-completed{border-left-color:#32b86f}
.execution-batch-main{display:flex;align-items:center;gap:13px}.execution-channel-icon{display:grid;place-items:center;flex:0 0 43px;height:43px;border-radius:13px;background:#e8f6f8;color:#127a98;font-size:19px}.execution-batch-eyebrow{text-transform:uppercase;letter-spacing:.04em;font-size:10px;font-weight:800;color:#647987}.execution-batch-main h3{font-size:15px;margin:3px 0;color:#173746}.execution-batch-main small{color:#687b86}
.execution-organization{display:block;margin-bottom:3px;color:#3f6575!important}.execution-organization i{color:#1381a0}.execution-organization span{padding:0 4px;color:#a1afb6}
.execution-batch-volume{display:flex;align-items:center;justify-content:center;gap:13px}.execution-batch-volume>div{text-align:center}.execution-batch-volume span{display:block;text-transform:uppercase;font-size:9px;font-weight:800;color:#74858e}.execution-batch-volume strong{display:block;font-size:18px;color:#126f8d}.execution-batch-volume>i{color:#b2c0c7}
.execution-batch-status{display:flex;flex-direction:column;align-items:flex-start;gap:5px}.execution-batch-status small{font-size:10px;color:#6d7e87}.execution-state-pill{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;font-size:10px;font-weight:800;text-transform:uppercase;background:#edf2f4;color:#536872}.execution-state-pill.state-running,.execution-state-pill.state-completed{background:#dcf5e8;color:#087d50}.execution-state-pill.state-ready{background:#def2f7;color:#086c89}.execution-state-pill.state-scheduled{background:#e7edff;color:#3d5fc4}.execution-state-pill.state-retrying,.execution-state-pill.state-blocked{background:#fff0d5;color:#9b5b00}.execution-state-pill.state-paused,.execution-state-pill.state-cancelled{background:#eceff1;color:#59666d}
.execution-batch-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px}.execution-batch-actions form{margin:0}
@media(max-width:1200px){.execution-state-grid{grid-template-columns:repeat(3,1fr)}.execution-batch-card{grid-template-columns:1.3fr 1fr}.execution-batch-status,.execution-batch-actions{justify-self:start}}
@media(max-width:760px){.execution-state-grid{grid-template-columns:repeat(2,1fr)}.execution-filter-grid,.execution-batch-card{grid-template-columns:1fr}.execution-batch-volume{justify-content:flex-start}.execution-live-state{display:none}.execution-time-group{grid-template-columns:1fr}.execution-time-marker{justify-content:flex-start;padding:9px 15px}.execution-time-marker i{display:none}.execution-time-batches{border-left:0}}
.step-delivery-warning {
    align-items: center;
    background: #fff8e8;
    border: 1px solid #f1cf82;
    border-radius: 10px;
    color: #805600;
    display: flex;
    font-size: .78rem;
    gap: .45rem;
    margin-top: .65rem;
    padding: .55rem .7rem;
}
.execution-force-dialog {
    background: #fff;
    border: 0;
    border-radius: 22px;
    box-shadow: 0 26px 80px rgba(13, 50, 67, .24);
    color: #1d3440;
    max-width: 680px;
    padding: 0;
    width: calc(100% - 32px);
}
.execution-force-dialog::backdrop {
    background: rgba(10, 39, 52, .58);
    backdrop-filter: blur(4px);
}
.execution-force-dialog form { padding: 26px; }
.execution-force-head {
    align-items: flex-start;
    display: flex;
    gap: 14px;
}
.execution-force-head > div { flex: 1; }
.execution-force-head small {
    color: #069a55;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
}
.execution-force-head h2 {
    color: #126f8b;
    font-size: 1.35rem;
    margin: 3px 0 4px;
}
.execution-force-head p { color: #607480; margin: 0; }
.execution-force-icon {
    align-items: center;
    background: #e9f8f1;
    border-radius: 13px;
    color: #07985a;
    display: flex;
    font-size: 1.25rem;
    height: 46px;
    justify-content: center;
    width: 46px;
}
.execution-force-close {
    background: transparent;
    border: 0;
    color: #687b85;
    font-size: 1.05rem;
    padding: 6px;
}
.execution-force-options {
    display: grid;
    gap: 12px;
    margin: 24px 0 16px;
}
.execution-force-options label { cursor: pointer; margin: 0; }
.execution-force-options input {
    opacity: 0;
    position: absolute;
}
.execution-force-options label > span {
    align-items: flex-start;
    border: 1px solid #d5e1e6;
    border-radius: 15px;
    display: grid;
    gap: 2px 12px;
    grid-template-columns: 25px 1fr;
    padding: 16px;
    transition: .18s ease;
}
.execution-force-options label > span > i {
    color: #1b819f;
    font-size: 1.15rem;
    grid-row: 1 / 3;
}
.execution-force-options strong { font-size: .9rem; }
.execution-force-options strong em {
    background: #dff5e9;
    border-radius: 999px;
    color: #087847;
    font-size: .62rem;
    font-style: normal;
    margin-left: 7px;
    padding: 3px 7px;
    text-transform: uppercase;
}
.execution-force-options small {
    color: #647984;
    font-size: .76rem;
    line-height: 1.45;
}
.execution-force-options input:checked + span {
    background: #f0fbf7;
    border-color: #19a66a;
    box-shadow: 0 0 0 3px rgba(25, 166, 106, .1);
}
.execution-force-warning {
    align-items: center;
    background: #f5f8fa;
    border-radius: 11px;
    color: #526a76;
    display: flex;
    font-size: .75rem;
    gap: 8px;
    padding: 11px 13px;
}
.execution-force-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Prévia segura de um único contato */
.batch-preview-backdrop{position:fixed;inset:0;z-index:1190;background:rgba(8,35,49,.38);backdrop-filter:blur(3px)}
.batch-test-preview{position:fixed;z-index:1200;top:0;right:0;width:min(560px,100%);height:100vh;display:flex;flex-direction:column;background:#f8fbfc;box-shadow:-18px 0 48px rgba(8,35,49,.18);animation:batchPreviewIn .22s ease-out}
@keyframes batchPreviewIn{from{transform:translateX(100%)}to{transform:translateX(0)}}
.batch-test-preview>header{display:flex;justify-content:space-between;gap:24px;padding:28px 30px 22px;background:#fff;border-bottom:1px solid #dce8ec}
.batch-test-preview header small{color:#00a45a;font-weight:800;letter-spacing:.12em}
.batch-test-preview header h2{margin:5px 0 2px;color:#126e8b;font-size:1.45rem}
.batch-test-preview header p{margin:0;color:#64748b}
.batch-preview-close{flex:0 0 42px;width:42px;height:42px;display:grid;place-items:center;color:#526170;border:1px solid #d4e0e5;border-radius:50%;text-decoration:none}
.batch-preview-body{flex:1;overflow:auto;padding:24px 30px}
.batch-preview-contact{display:flex;gap:14px;padding:18px;border:1px solid #cde5eb;border-radius:16px;background:#eef9fb}
.batch-preview-contact>i{width:42px;height:42px;display:grid;place-items:center;color:#087b9b;border-radius:13px;background:#fff;font-size:1.2rem}
.batch-preview-contact div{display:flex;flex-direction:column;gap:3px}
.batch-preview-contact span,.batch-preview-grid small{color:#64748b;font-size:.82rem}
.batch-preview-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}
.batch-preview-grid article{display:flex;min-height:92px;flex-direction:column;justify-content:center;gap:4px;padding:16px;border:1px solid #dce8ec;border-radius:14px;background:#fff}
.batch-preview-grid article>span{color:#64748b;font-size:.73rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase}
.batch-preview-checks{padding:18px;border:1px solid #dce8ec;border-radius:16px;background:#fff}
.batch-preview-checks h3{margin:0 0 12px;font-size:1rem}
.batch-preview-checks>div{display:flex;gap:9px;align-items:flex-start;padding:9px 0;border-top:1px solid #edf2f4}
.batch-preview-checks>div:first-of-type{border-top:0}.batch-preview-checks .check-ready{color:#087a4d}.batch-preview-checks .check-blocked{color:#a74616}
.batch-test-authorization{display:grid;grid-template-columns:1fr auto;gap:10px;margin-top:16px;padding:18px;border:1px solid #bfe3d0;border-radius:16px;background:#f2fbf6}
.batch-test-authorization label{grid-column:1/-1}.batch-test-authorization label span,.batch-test-authorization label small{display:block}.batch-test-authorization label span{color:#126044;font-size:.78rem;font-weight:800}.batch-test-authorization label small{margin-top:4px;color:#557268;font-size:.7rem}
.batch-test-authorized{margin-top:16px;padding:18px;border:1px solid #9fd9bd;border-radius:16px;background:#effaf4}
.batch-test-authorized>div{display:flex;align-items:center;gap:10px;color:#087a4d}.batch-test-authorized>div>i{font-size:1.35rem}.batch-test-authorized span,.batch-test-authorized strong,.batch-test-authorized small{display:block}.batch-test-authorized small{margin-top:3px;color:#557268;font-size:.7rem}
.batch-test-authorized form{display:grid;grid-template-columns:1fr auto;gap:10px;margin-top:16px;padding-top:16px;border-top:1px solid #c8e7d7}.batch-test-authorized form label{grid-column:1/-1}.batch-test-authorized form label span,.batch-test-authorized form label small{display:block}
.batch-test-server-lock{margin-top:15px!important;padding:13px;border-radius:12px;background:#fff;color:#536b75!important}
.batch-test-preview>footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 30px;border-top:1px solid #dce8ec;background:#fff}
.batch-test-preview footer>div{display:flex;gap:10px;align-items:center;color:#526170}.batch-test-preview footer span{display:flex;flex-direction:column;font-size:.78rem}
@media(max-width:600px){.batch-preview-grid,.batch-test-authorization,.batch-test-authorized form{grid-template-columns:1fr}.batch-test-preview>footer{align-items:stretch;flex-direction:column}}
.izzi-flash-stack{position:fixed;top:68px;right:20px;z-index:2200;display:grid;gap:10px;width:min(440px,calc(100vw - 32px))}
.izzi-flash{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;padding:14px 16px;border:1px solid #cfe2e8;border-radius:14px;background:#fff;color:#263746;box-shadow:0 16px 40px rgba(25,62,78,.18);animation:izziFlashIn .22s ease-out}
.izzi-flash>i{font-size:1.15rem;color:#147996}.izzi-flash span{font-weight:700;line-height:1.35}.izzi-flash button{border:0;background:transparent;color:#647887;padding:4px}
.izzi-flash-success{border-color:#a9dfc6;background:#f0fbf5}.izzi-flash-success>i{color:#079455}
.izzi-flash-error,.izzi-flash-danger{border-color:#f2b8be;background:#fff3f4}.izzi-flash-error>i,.izzi-flash-danger>i{color:#dc3545}
.izzi-flash-warning{border-color:#f0d191;background:#fff9ec}.izzi-flash-warning>i{color:#c77b00}
.izzi-flash.is-leaving{opacity:0;transform:translateY(-8px);transition:.22s ease}
.izzi-global-progress{position:fixed;right:20px;bottom:22px;z-index:2300;display:grid;grid-template-columns:auto 1fr;column-gap:10px;align-items:center;padding:13px 16px;border-radius:14px;background:#123f50;color:#fff;box-shadow:0 16px 40px rgba(13,53,68,.3);opacity:0;transform:translateY(14px);pointer-events:none;transition:.2s ease}
.izzi-global-progress.is-visible{opacity:1;transform:translateY(0)}.izzi-global-progress span{grid-row:1/3}.izzi-global-progress strong{font-size:.9rem}.izzi-global-progress small{color:#cce4ec;font-size:.76rem}
@keyframes izziFlashIn{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:700px){.izzi-flash-stack{top:62px;right:12px;width:calc(100vw - 24px)}.izzi-global-progress{right:12px;bottom:14px;left:12px}}
/* Catálogos corporativos: filtros, formulários e grids reutilizáveis. */
.catalog-page{padding:20px 24px 72px;background:#f4f8fa;min-height:calc(100vh - 52px)}
.catalog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}
.catalog-heading h1{margin:3px 0 6px;color:#126f8c;font-size:1.8rem;font-weight:800;line-height:1.2;letter-spacing:0}
.catalog-heading p{margin:0;color:#667085;font-size:1rem;line-height:1.5}
.catalog-heading .btn{padding:8px 14px;border-radius:9px;font-size:.78rem;font-weight:700}
.catalog-panel{margin-bottom:18px;background:#fff;border:1px solid #d9e5e9;border-radius:14px;box-shadow:0 8px 24px rgba(18,72,91,.04);overflow:hidden}
.catalog-panel-head{display:flex;align-items:center;gap:10px;padding:14px 18px;border-bottom:1px solid #e5edef;background:linear-gradient(135deg,#fff 0%,#f7fafb 100%)}
.catalog-panel-head h2{margin:0;color:#344054;font-size:.86rem;font-weight:800}.catalog-panel-head small{display:block;margin-top:2px;color:#667085;font-size:.7rem}

/* Gestão de versões e comunicação de novidades */
.release-current-version{display:flex;align-items:center;gap:8px;padding:8px 13px;border:1px solid #cfe3e9;border-radius:12px;background:#fff;color:#667085;font-size:.72rem}.release-current-version strong{color:var(--izzi-menu);font-size:1rem}
.release-action-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:18px}.release-action-grid>button{display:grid;grid-template-columns:36px 1fr;align-items:center;gap:2px 10px;padding:14px;border:1px solid #d6e4e8;border-radius:13px;background:#fff;color:#344054;text-align:left;transition:.18s ease}.release-action-grid>button:hover{border-color:#72bdd0;box-shadow:0 8px 20px rgba(19,111,139,.1);transform:translateY(-1px)}.release-action-grid>button.is-primary{border-color:#a8dfc4;background:#f1fbf6}.release-action-grid i{grid-row:1/3;display:grid;width:36px;height:36px;place-items:center;border-radius:10px;background:#eaf7fa;color:#087a9c;font-size:1rem}.release-action-grid strong{font-size:.8rem}.release-action-grid small{color:#667085;font-size:.67rem}
.release-git-advice{display:flex;align-items:flex-start;gap:10px;margin:0 18px 18px;padding:11px 13px;border-radius:10px;background:#f5f8fa;color:#526573;font-size:.7rem}.release-git-advice i{color:#147996;font-size:1rem}.release-git-advice code{color:#c72564}
.release-timeline{padding:8px 18px 18px}.release-entry{display:grid;grid-template-columns:90px 1fr;gap:18px;padding:20px 0;border-bottom:1px solid #e4ecef}.release-entry:last-child{border-bottom:0}.release-entry-version{display:grid;align-self:start;place-items:center;padding:9px;border-radius:12px;background:#eaf7fa;color:#087392;font-size:.88rem;font-weight:900}.release-entry-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.release-entry-head h3{margin:5px 0 0;color:#173d4b;font-size:1rem;font-weight:850}.release-entry-head time{color:#71818e;font-size:.68rem;white-space:nowrap}.release-entry-body>p{margin:8px 0;color:#526573;font-size:.76rem}.release-entry-body ul{display:grid;gap:4px;margin:10px 0;padding-left:18px;color:#344054;font-size:.73rem}.release-entry-body>small{color:#82909a;font-size:.64rem}.release-type{display:inline-flex;padding:3px 8px;border-radius:999px;background:#eaf7fa;color:#087392;font-size:.6rem;font-weight:850;text-transform:uppercase;letter-spacing:.04em}.release-type-patch{background:#fff3e3;color:#a65d00}.release-type-major{background:#f0eefe;color:#5943b8}
.release-modal[hidden]{display:none}.release-modal{position:fixed;z-index:3000;inset:0;display:grid;place-items:center;padding:20px}.release-modal-backdrop{position:absolute;inset:0;border:0;background:rgba(17,42,52,.52);backdrop-filter:blur(3px)}.release-modal-panel{position:relative;width:min(680px,100%);max-height:calc(100vh - 40px);overflow:auto;border:1px solid #dce7ea;border-radius:18px;background:#fff;box-shadow:0 30px 80px rgba(11,40,51,.28)}.release-modal-panel>header{display:flex;align-items:flex-start;justify-content:space-between;padding:20px 22px;border-bottom:1px solid #e7eef0}.release-modal-panel>header small{color:#079455;font-size:.62rem;font-weight:900;letter-spacing:.12em}.release-modal-panel>header h2{margin:4px 0 0;color:#126e8a;font-size:1.15rem;font-weight:900}.release-modal-panel>header button{display:grid;width:36px;height:36px;place-items:center;border:1px solid #d8e4e8;border-radius:50%;background:#fff;color:#526573}.release-modal-panel .orchestrator-form{padding:20px}.release-modal-panel footer{display:flex;justify-content:flex-end;gap:10px;padding-top:16px}.release-modal-open{overflow:hidden}
.topbar-release-notification{position:relative;display:grid;width:32px;height:32px;place-items:center;border-radius:9px;background:rgba(255,255,255,.1);color:#fff;text-decoration:none}.topbar-release-notification:hover{background:rgba(255,255,255,.2);color:#fff}.topbar-release-notification span{position:absolute;top:-5px;right:-5px;display:grid;min-width:16px;height:16px;padding:0 4px;place-items:center;border:2px solid #555;border-radius:999px;background:#30d17a;color:#073e43;font-size:.52rem;font-weight:900}
.release-notice{position:fixed;z-index:2150;top:66px;right:18px;display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:12px;width:min(480px,calc(100vw - 30px));padding:16px;border:1px solid #a9dfc6;border-radius:15px;background:#f1fbf6;box-shadow:0 18px 44px rgba(23,80,70,.2);animation:izziFlashIn .24s ease-out}.release-notice-icon{display:grid;width:42px;height:42px;place-items:center;border-radius:12px;background:#d9f6e6;color:#079455;font-size:1.1rem}.release-notice small{display:block;color:#079455;font-size:.58rem;font-weight:900;letter-spacing:.1em}.release-notice strong{display:block;margin-top:3px;color:#173d4b;font-size:.86rem}.release-notice p{margin:5px 0;color:#526573;font-size:.72rem;line-height:1.4}.release-notice a{color:#087a9c;font-size:.68rem;font-weight:800;text-decoration:none}.release-notice form button{border:0;background:transparent;color:#647887}.release-notice.is-leaving{opacity:0;transform:translateY(-8px);transition:.22s ease}
@media(max-width:700px){.release-action-grid{grid-template-columns:1fr}.release-entry{grid-template-columns:1fr;gap:10px}.release-entry-version{justify-self:start}.release-entry-head{flex-direction:column;gap:5px}.release-notice{top:58px;right:10px;width:calc(100vw - 20px)}.topbar-release-notification{width:30px;height:30px}.release-modal{padding:8px}.release-modal-panel{max-height:calc(100vh - 16px);border-radius:14px}}
.deployment-action-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:18px}.deployment-action-grid>div{display:flex;min-height:180px;flex-direction:column;align-items:flex-start;gap:8px;padding:18px;border:1px solid #dce8ec;border-radius:14px;background:#fff}.deployment-action-grid>div.is-primary{border-color:#a9dfc4;background:#f2fbf6}.deployment-action-grid i{display:grid;width:38px;height:38px;place-items:center;border-radius:10px;background:#eaf7fa;color:#087897;font-size:1.05rem}.deployment-action-grid strong{color:#25364a;font-size:.9rem}.deployment-action-grid small{color:#667085;font-size:.72rem;line-height:1.45}.deployment-action-grid form{margin-top:auto;width:100%}.deployment-action-grid button{width:100%}
@media(max-width:1050px){.deployment-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.deployment-action-grid{grid-template-columns:1fr}}
.catalog-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;color:#176f8c;background:#e8f5f8;font-size:.9rem;flex:0 0 auto}
.catalog-count{margin-left:auto;padding:6px 10px;border:1px solid #d7e8ed;border-radius:999px;background:#eef7f9;color:#176f8c;font-size:.72rem;font-weight:800}
.catalog-filter-grid,.catalog-form-grid{display:grid;grid-template-columns:minmax(210px,1.35fr) repeat(2,minmax(150px,1fr)) auto;gap:12px;padding:18px 20px;align-items:end}
.catalog-filter-grid label,.catalog-form-grid label{display:flex;flex-direction:column;gap:7px;color:#263b49;font-size:.75rem;font-weight:700}
.catalog-filter-grid .form-control,.catalog-filter-grid .form-select{height:38px;min-height:38px;padding-top:.35rem;padding-bottom:.35rem;border-color:#cfdee3;border-radius:9px;background-color:#fff;font-size:.78rem}
.catalog-form-grid .form-control,.catalog-form-grid .form-select{min-height:40px;border-color:#cfdee3;border-radius:9px;background-color:#fff;font-size:.78rem}
.catalog-filter-grid .btn{height:38px;min-height:38px;padding:0 14px;border-radius:9px;font-size:.78rem;font-weight:700;white-space:nowrap}
.catalog-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.catalog-form-grid .span-2{grid-column:span 2}
.catalog-form-actions{display:flex;justify-content:flex-end;padding-top:4px}.catalog-form-actions .btn{min-height:40px;border-radius:9px;font-size:.78rem;font-weight:700}
.catalog-table-wrap{overflow-x:auto}.catalog-table{width:100%;border:0;border-collapse:separate;border-spacing:0;border-radius:0;color:#20364d}
.catalog-table th{padding:11px 18px;border:0;border-bottom:1px solid #dce8ec;background:#eef6f8;color:#41606b;font-size:.68rem;text-align:left;text-transform:uppercase;letter-spacing:.055em;white-space:nowrap}
.catalog-table td{height:72px;padding:12px 18px;border:0;border-top:1px solid #e8eff2;vertical-align:middle;text-align:left;font-size:.78rem}
.catalog-table tbody tr:hover{background:#f8fcfd;box-shadow:inset 3px 0 0 #1a819f}.catalog-table td strong{display:block;color:#173b49;font-size:.88rem}.catalog-table td small{display:block;margin-top:3px;color:#71858e;font-size:.68rem}
.catalog-status,.catalog-channel{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:#edf4f7;color:#35566a;font-size:.7rem;font-weight:800;text-transform:uppercase}
.catalog-status.is-active{background:#ddf5e8;color:#08783e}.catalog-status.is-inactive{background:#f3f0f0;color:#7c6570}
.catalog-truncate{max-width:320px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.catalog-empty{text-align:center!important;color:#748698;padding:28px!important}
.catalog-table .btn-sm{padding:5px 9px;border-radius:8px;font-size:.7rem}
.catalog-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;white-space:nowrap}
.catalog-pagination{display:flex;justify-content:flex-end;align-items:center;gap:12px;padding:12px 18px;border-top:1px solid #e2eaee}.catalog-pagination a{padding:6px 10px;border:1px solid #c9dae1;border-radius:8px;color:#087998;text-decoration:none;font-size:.72rem;font-weight:700}.catalog-pagination span{color:#65798d;font-size:.7rem}
@media(max-width:900px){.catalog-page{padding:20px 14px 70px}.catalog-heading{align-items:stretch;flex-direction:column}.catalog-filter-grid,.catalog-form-grid{grid-template-columns:1fr}.catalog-form-grid .span-2{grid-column:auto}.catalog-panel-head{align-items:flex-start;flex-wrap:wrap}.catalog-count{margin-left:0}.catalog-table{min-width:850px}}
.interaction-settings-grid{grid-template-columns:minmax(320px,2fr) minmax(150px,.7fr) auto}.interaction-filter-grid{grid-template-columns:minmax(220px,1.25fr) repeat(3,minmax(150px,1fr)) auto}.interaction-form-grid{grid-template-columns:repeat(2,minmax(220px,1fr))}.interaction-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 20px}.interaction-kpis article{padding:18px 20px;border:1px solid #d8e5e9;border-radius:14px;background:#fff;box-shadow:0 8px 24px rgba(31,74,91,.05)}.interaction-kpis span,.interaction-kpis small{display:block;color:#627984;font-size:.72rem}.interaction-kpis strong{display:block;margin:4px 0;color:#0c718e;font-size:1.45rem}.interaction-form-grid small{margin-top:2px;color:#71858e;font-size:.68rem;font-weight:400}@media(max-width:900px){.interaction-settings-grid,.interaction-filter-grid,.interaction-form-grid,.interaction-kpis{grid-template-columns:1fr}}
.interaction-settings-form{display:grid;grid-template-columns:150px minmax(280px,1fr) 150px auto;align-items:start;gap:14px;padding:16px 18px 18px}.interaction-settings-form label,.interaction-drawer-body label{display:grid;gap:6px;color:#344054;font-size:.72rem;font-weight:750}.interaction-settings-form .form-control,.interaction-settings-form .form-select{min-height:42px}.interaction-settings-form small{color:#71858e;font-size:.65rem;font-weight:400}.interaction-settings-save{align-self:end;min-width:112px;min-height:42px}.interaction-page .interaction-kpis{gap:12px;margin-bottom:18px}.interaction-page .interaction-kpis article{padding:15px 17px}.interaction-page .interaction-kpis strong{font-size:1.3rem}.interaction-link-drawer{width:min(680px,94vw)}.interaction-drawer-form{min-height:100%;padding-bottom:82px}.interaction-drawer-body{display:grid;gap:14px;padding:18px 22px}.interaction-drawer-body section{padding:16px;border:1px solid #dce7eb;border-radius:13px;background:#fbfdfe}.interaction-drawer-body h3{margin:0;color:#344054;font-size:.86rem;font-weight:850}.interaction-drawer-body section>p{margin:3px 0 14px;color:#667085;font-size:.7rem}.interaction-drawer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.interaction-drawer-grid .span-2{grid-column:1/-1}.interaction-drawer-body .form-control,.interaction-drawer-body .form-select{min-height:42px}.interaction-drawer-body small{color:#71858e;font-size:.65rem;font-weight:400}.interaction-token-help{display:flex;align-items:center;gap:10px;margin-top:12px;padding:10px 12px;border-radius:9px;background:#eef7fa;color:#526b77;font-size:.67rem}.interaction-token-help code{white-space:nowrap;color:#087895;font-weight:800}.interaction-link-drawer+.orchestrator-drawer-actions,.interaction-link-drawer .orchestrator-drawer-actions{width:min(680px,94vw)}
@media(max-width:900px){.interaction-settings-form{grid-template-columns:1fr 1fr}.interaction-domain-field{grid-column:1/-1}.interaction-settings-save{width:100%}.interaction-drawer-grid{grid-template-columns:1fr}.interaction-drawer-grid .span-2{grid-column:auto}}
@media(max-width:640px){.interaction-settings-form{grid-template-columns:1fr;padding:15px}.interaction-domain-field{grid-column:auto}.interaction-link-drawer,.interaction-link-drawer .orchestrator-drawer-actions{width:100vw}.interaction-drawer-body{padding:14px}.interaction-token-help{align-items:flex-start;flex-direction:column}}

/* Compatibilidade visual para módulos legados com filtros, grades e formulários. */
.modern-list-page{min-height:calc(100vh - 52px);padding:20px 24px 72px!important;background:#f4f8fa!important;color:#20364d}
.modern-list-page>.schedule-heading,
.modern-list-page>.dashboard-heading,
.modern-list-page>.api-heading,
.modern-list-page>.access-heading{margin-bottom:20px}
.modern-list-page>.schedule-heading h2,
.modern-list-page>.dashboard-heading h2,
.modern-list-page>.api-heading h2,
.modern-list-page>.access-heading h1,
.modern-list-page>h2{margin:3px 0 6px;color:#126f8c;font-size:1.8rem!important;font-weight:800;line-height:1.2;letter-spacing:0}
.modern-list-page .schedule-subtitle,
.modern-list-page .dashboard-subtitle,
.modern-list-page .api-subtitle,
.modern-list-page .access-heading p{color:#667085;font-size:1rem;line-height:1.5}
.modern-list-page .filters{padding:18px 20px!important;border:1px solid #d9e5e9!important;border-radius:14px!important;background:#fff!important;box-shadow:0 8px 24px rgba(18,72,91,.04)}
.modern-list-page .filters .form-label,
.modern-list-page .section-body .form-label{margin-bottom:7px!important;color:#263b49;font-size:.75rem;font-weight:700}
.modern-list-page .filters .form-control,
.modern-list-page .filters .form-select{height:38px;min-height:38px;padding-top:.35rem;padding-bottom:.35rem;border-color:#cfdee3;border-radius:9px;background-color:#fff;font-size:.78rem}
.modern-list-page .filters .btn{min-height:38px;padding:0 14px;border-radius:9px;font-size:.78rem;font-weight:700;white-space:nowrap}
.modern-list-page .filter-actions{display:flex;align-items:center;gap:8px;width:max-content;min-height:38px!important;height:38px}
.modern-list-page .filter-actions .btn{display:inline-flex;align-items:center;justify-content:center;height:38px;min-height:38px;margin:0;line-height:1}
.modern-list-page .schedule-section,
.modern-list-page .dashboard-section,
.modern-list-page .api-section,
.modern-list-page .access-panel{margin-bottom:18px;border:1px solid #d9e5e9!important;border-radius:14px!important;background:#fff!important;box-shadow:0 8px 24px rgba(18,72,91,.04);overflow:hidden}
.modern-list-page .section-header,
.modern-list-page .access-panel-header{min-height:auto;padding:14px 18px!important;border-bottom:1px solid #e5edef!important;background:linear-gradient(135deg,#fff 0%,#f7fafb 100%)!important}
.modern-list-page .section-header h3,
.modern-list-page .access-panel-header h2{margin:0;color:#344054;font-size:.86rem!important;font-weight:800}
.modern-list-page .section-body{padding:18px 20px}
.modern-list-page .table-wrapper-scroll,
.modern-list-page .table-responsive{border:1px solid #d9e5e9;border-radius:14px;background:#fff;box-shadow:0 8px 24px rgba(18,72,91,.04);overflow:auto}
.modern-list-page table.table{margin:0;color:#20364d;font-size:.78rem}
.modern-list-page table.table thead th{padding:11px 14px;border:0;border-bottom:1px solid #dce8ec;background:#eef6f8!important;color:#41606b;font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.045em;white-space:nowrap}
.modern-list-page table.table tbody td{padding:12px 14px;border-color:#e8eff2;vertical-align:middle}
.modern-list-page table.table tbody tr:hover{background:#f8fcfd;box-shadow:inset 3px 0 0 #1a819f}
.modern-list-page table.table .btn-sm{padding:5px 9px;border-radius:8px;font-size:.7rem;white-space:nowrap}
.modern-list-page table.table td:last-child{white-space:nowrap}
.modern-list-page table.table td:last-child>.btn,
.modern-list-page table.table td:last-child>form{display:inline-flex;margin:2px}
.modern-list-page .kpi-grid{gap:12px}
.modern-list-page .kpi-card,
.modern-list-page .chart-card,
.modern-list-page .insight-card{border:1px solid #d9e5e9!important;border-radius:14px!important;background:#fff;box-shadow:0 8px 24px rgba(18,72,91,.04)}
.modern-list-page .pagination-container{display:flex;justify-content:flex-end;padding:14px 0}
.modern-list-page .pagination .page-link{border-color:#d4e2e7;color:#147795;font-size:.72rem}
.modern-list-page .pagination .active>.page-link{border-color:#147795;background:#147795;color:#fff}
.modern-list-page .form-control:focus,
.modern-list-page .form-select:focus{border-color:#1a819f;box-shadow:0 0 0 3px rgba(26,129,159,.1)}
@media(max-width:900px){.modern-list-page{padding:20px 14px 70px!important}.modern-list-page>.schedule-heading,.modern-list-page>.dashboard-heading,.modern-list-page>.api-heading,.modern-list-page>.access-heading{align-items:stretch;flex-direction:column}.modern-list-page table.table{min-width:850px}}

/* Agendamentos: mesma densidade dos filtros e cards do Orquestrador. */
.modern-list-page.schedule-page .kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
.modern-list-page.schedule-page .kpi-card{min-height:72px;padding:11px 14px;border-left-width:3px!important;border-radius:12px!important}
.modern-list-page.schedule-page .kpi-label{font-size:.68rem;letter-spacing:.035em}
.modern-list-page.schedule-page .kpi-value{margin-top:5px;font-size:1.35rem;line-height:1}
.modern-list-page.schedule-page .section-body>.filters{padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}
.modern-list-page.schedule-page .section-header h3{display:flex;align-items:center;gap:10px}
.modern-list-page.schedule-page .section-header h3>i{display:grid;width:34px;height:34px;place-items:center;margin:0!important;border-radius:10px;background:#e8f5f8;color:#176f8c;font-size:.9rem}
.modern-list-page.schedule-page .filters-grid,
.modern-list-page.dashboard-page .filters-grid{grid-template-columns:repeat(7,minmax(120px,1fr)) auto!important;gap:12px;align-items:end}
.modern-list-page.schedule-page .filter-actions{align-items:flex-end;min-height:0;height:38px}
.modern-list-page.schedule-page .filter-actions .btn{height:38px;min-height:38px}
@media(max-width:1200px){.modern-list-page.schedule-page .filters-grid,.modern-list-page.dashboard-page .filters-grid{grid-template-columns:repeat(4,minmax(140px,1fr))!important}.modern-list-page .filter-actions{width:auto}}
@media(max-width:800px){.modern-list-page.schedule-page .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.modern-list-page.schedule-page .filters-grid,.modern-list-page.dashboard-page .filters-grid{grid-template-columns:1fr!important}.modern-list-page .filter-actions{width:100%;height:auto}.modern-list-page .filter-actions .btn{flex:1}}

/* Histórico de agendamentos: filtros densos e hierarquia semelhante ao Orquestrador. */
.executed-page .executed-heading{margin-bottom:18px}
.executed-page .executed-heading h2{margin:3px 0 6px;color:#126f8c;font-size:1.8rem;font-weight:800;line-height:1.2}
.executed-page .executed-heading p{margin:0;color:#667085;font-size:1rem}
.executed-page .filters{margin-bottom:18px!important}
.executed-page .filters>.row{display:grid;grid-template-columns:repeat(6,minmax(130px,1fr));gap:12px;margin:0}
.executed-page .filters>.row>[class*="col-"]{width:auto;max-width:none;padding:0}
.executed-page .executed-filter-note{grid-column:span 3;align-self:end;padding-bottom:7px!important}
.executed-page .executed-filter-note small{display:block;color:#667085;font-size:.7rem;line-height:1.35}
.executed-page .executed-filter-actions{grid-column:span 4;align-items:flex-end;margin:0!important}
.executed-page .executed-filter-actions .btn{display:inline-flex;align-items:center;justify-content:center;height:38px;margin:0}
@media(max-width:1200px){.executed-page .filters>.row{grid-template-columns:repeat(3,minmax(140px,1fr))}.executed-page .executed-filter-note,.executed-page .executed-filter-actions{grid-column:1/-1}}
@media(max-width:700px){.executed-page .filters>.row{grid-template-columns:1fr}.executed-page .executed-filter-actions{flex-direction:column}.executed-page .executed-filter-actions .btn{width:100%}}

/* Contatos de Controle da jornada */
.control-media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:18px}
.control-media-card{border:1px solid #dbe7eb;border-radius:14px;background:#fff;padding:15px;transition:.2s}
.control-media-card.is-active{border-color:#9edfc3;box-shadow:0 7px 20px rgba(22,126,94,.06)}
.control-media-card header,.control-media-card header>div,.control-contact-list>div,.control-contact-add{display:flex;align-items:center;justify-content:space-between;gap:10px}
.control-media-card header>div>i{display:grid;width:38px;height:38px;place-items:center;border-radius:11px;background:#e8f5f8;color:#147795}
.control-media-card header span{display:flex;flex-direction:column}.control-media-card header small{color:#667085;font-size:.68rem}
.control-contact-list{display:grid;gap:6px;margin:14px 0;padding:10px 0;border-top:1px solid #edf2f4;border-bottom:1px solid #edf2f4}
.control-contact-list>div{font-size:.76rem}.control-contact-list p{margin:0;color:#667085;font-size:.72rem}
.control-contact-add .form-control{min-width:0}.control-contact-add .btn{white-space:nowrap}
@media(max-width:1000px){.control-media-grid{grid-template-columns:1fr}}
.operation-config-drawer{width:min(760px,96vw)}
.operation-config-drawer .orchestrator-drawer-actions{width:min(760px,96vw)}
.operation-drawer-body{display:grid;gap:16px;padding:18px 22px 96px;background:#f6f9fa}
.operation-drawer-section{overflow:hidden;border:1px solid #dbe7eb;border-radius:14px;background:#fff}
.operation-drawer-section-head{padding:16px 18px;border-bottom:1px solid #e4ecef;background:#fbfdfe}
.operation-drawer-section-head h3{margin:0;color:#263c4a;font-size:.92rem;font-weight:850}
.operation-drawer-section-head h3 i{margin-right:6px;color:#147b98}
.operation-drawer-section-head p{margin:4px 0 0;color:#667085;font-size:.7rem}
.operation-config-drawer .operation-drawer-section>.orchestrator-form .orchestrator-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:18px}
.operation-config-drawer .control-media-grid{grid-template-columns:1fr;padding:16px}
.operation-config-drawer .control-media-card{box-shadow:none}
@media(max-width:640px){.operation-config-drawer,.operation-config-drawer .orchestrator-drawer-actions{width:100vw}.operation-drawer-body{padding:12px 12px 88px}.operation-config-drawer .operation-drawer-section>.orchestrator-form .orchestrator-form-grid{grid-template-columns:1fr;padding:14px}}
.batch-reconciliation-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:1px;background:#dce8ec;border-top:1px solid #dce8ec;border-bottom:1px solid #dce8ec}
.batch-reconciliation-grid article{display:flex;flex-direction:column;gap:4px;background:#fff;padding:14px 16px}.batch-reconciliation-grid span{color:#667085;font-size:.68rem;text-transform:uppercase}.batch-reconciliation-grid strong{color:#0b536c;font-size:1rem}
.batch-reconciliation-grid .reconciliation-status{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between}.batch-reconciliation-grid .is-integral strong{color:#087f5b}.batch-reconciliation-grid .is-inconsistent strong{color:#b54708}
.control-delivery-results{padding:16px}.control-delivery-results h3{font-size:.86rem;margin:0 0 10px}.control-delivery-results article{display:grid;grid-template-columns:1fr auto auto;gap:12px;padding:10px 0;border-top:1px solid #edf2f4}.control-delivery-results p{color:#667085;font-size:.76rem}
@media(max-width:900px){.batch-reconciliation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
