/* ========================================================================= */
/* ========================== CONFIGURAÇÕES GERAIS ========================= */
/* ========================================================================= */
/* Rufino — design system Cl_* (base H74/FleedGuard, tokens da marca) */

:root {
    /* Marca Rufino */
    --ru-verde: #8CC400;
    --ru-tinta: #0E1112;
    --ru-papel: #FFFFFF;
    --ru-superficie: #171B1E;
    --ru-muted: #5c6560;
    --ru-linha: rgba(14, 17, 18, 0.12);
    --ru-sidebar: 260px;
    --ru-header: 64px;
    --raio: 18px;
    --fonte: "Manrope", "Segoe UI", sans-serif;
    --sombra: 0 16px 40px rgba(14, 17, 18, 0.12);

    /* Aliases H74 (compat Cl_*) */
    --h74-blue: var(--ru-verde);
    --h74-navy: var(--ru-tinta);
    --h74-ink: var(--ru-tinta);
    --h74-bronze: #6a9500;
    --h74-gold: #c5d48a;
    --h74-paper: #f5f6f4;
    --h74-line: var(--ru-linha);
    --h74-sidebar: var(--ru-sidebar);
    --h74-header: var(--ru-header);

    /* CORE (aliases Cl_*) */
    --blue-dark: #0E1112;
    --blue-medium: #8CC400;
    --blue-accent: #6a9500;

    --gray-bg: #f5f6f4;
    --gray-soft: #eef2e8;
    --gray-border: #d8ddd4;

    --white: #ffffff;
    --red-danger: #C62828;

    --color-primary: var(--blue-medium);
    --color-primary-dark: var(--blue-dark);
    --color-accent: var(--blue-accent);

    --color-background: var(--gray-bg);
    --color-surface: var(--white);
    --color-border: var(--gray-border);

    --color-text: var(--ru-tinta);
    --color-text-muted: var(--ru-muted);
    --color-hover: var(--gray-soft);
    --color-danger: var(--red-danger);

    --shadow-container: var(--sombra);

    /* Tokens legado site */
    --cor-verde: var(--ru-verde);
    --cor-tinta: var(--ru-tinta);
    --cor-papel: var(--ru-papel);
    --cor-superficie: var(--ru-superficie);
    --cor-linha: var(--ru-linha);
    --cor-muted: var(--ru-muted);
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--fonte);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================== CONTAINERES ========================== */

.Cl_ConfigContainer{
  margin: 10px auto;
  padding: 20px;

  width: calc(100% - 20px);

  background: #ffffff;
  border-radius: 12px;

  box-shadow: 0 4px 12px rgba(0,0,0,0.08),
              0 1px 3px rgba(0,0,0,0.06);

  border: 1px solid #e5e7eb;
}

@media (max-width: 900px){
  .Cl_ConfigContainer{
    width: calc(100% - 24px); /* 12px de cada lado */
  }
}

.Cl_ConfigContainer h2 {
    margin: 0;
    font-size: 28px;
    color: var(--color-text);
}

.Cl_ContainerApoio{
    margin: 10px auto;     /* centraliza */
    padding: 20px;
    width: calc(100% - 80px); /* mantém a “folga” de 70px em cada lado */
    max-width: 1200px;
    background-color: var(--color-surface);
    border-radius: 8px;
    box-shadow: var(--shadow-container);
}

/* ========================================================================= */
/* ========================== TÍTULO DA PÁGINA ============================= */
/* ========================================================================= */
.Cl_PageHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 4px;
}

.Cl_PageHeader h2 {
  margin: 0;
  font-size: 28px;
  color: var(--color-text, #1c2e3c);
}

.Cl_PageHeaderActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* ========================== FILTROS PADRÃO =============================== */
/* ========================================================================= */
.Cl_FilterPanel{
  background:#ffffff;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:14px;
  display:flex;
  flex-direction: column;
  gap:12px;
  margin: 14px 0 12px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.Cl_FilterPanelRow {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  flex-wrap: wrap;
}

.Cl_FilterPanelFields{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:flex-end;
  flex: 1 1 auto;
}

.Cl_FilterGroup{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width: 140px;
  flex: 1 1 0;
}

.Cl_FilterGroup label{
  font-size:13px;
  font-weight:700;
  color:#1c2e3c;
}

/* INPUTS */
.Cl_FilterGroup input,
.Cl_FilterGroup select{
  height:36px;
  border-radius:10px;
  border:1px solid #d6dee6;
  padding: 0 10px;
  font-size:14px;
  outline:none;

  background:#ffffff;
  color:#1c2e3c;
}

/* FOCO */
.Cl_FilterGroup input:focus,
.Cl_FilterGroup select:focus{
  border-color:#1c2e3c;
  box-shadow: 0 0 0 3px rgba(200,162,94,.22);
}

/* BOTÕES */
.Cl_FilterPanelActions{
  display:flex;
  gap:8px;
  flex: 0 0 auto;
  align-items: center;
}

.Cl_FilterToggle {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid #d6dee6;
  background: #fff;
  color: #1c2e3c;
  cursor: pointer;
}

.Cl_FilterToggle:hover {
  background: #eef3f6;
  border-color: #1c2e3c;
}

.Cl_FilterToggle.is-open i,
.Cl_FilterToggle.is-open svg {
  transform: rotate(180deg);
}

.Cl_FilterToggle i,
.Cl_FilterToggle svg {
  width: 18px;
  height: 18px;
  transition: transform .2s ease;
}

.Cl_FilterPanelMore {
  display: none;
  padding-top: 4px;
  border-top: 1px dashed #e5e7eb;
}

.Cl_FilterPanelMore.is-open {
  display: block;
}

/* Faixa de ações abaixo dos filtros (Importar, Novo, etc.) */
.Cl_BotoesApoio {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin: 10px 0 14px auto;
}

/* ========================================================================= */
/* ======================= HEADER PADRÃO (APOIO) ============================ */
/* ========================================================================= */

/* —— Shell do modal (pai: abrirJanelaApoioModal) —— */
.Cl_ApoioModalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 34, 46, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
}

.Cl_ApoioModal {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(26, 38, 56, 0.28);
}

.Cl_ApoioModalHeader {
  background: #0E1112;
  color: #fff;
  border-bottom: 1px solid #8CC400;
  padding: 10px 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 17px;
  flex: 0 0 auto;
}

.Cl_ApoioModalClose {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  border-radius: 8px;
  padding: 2px 8px;
  line-height: 1;
}

.Cl_ApoioModalClose:hover {
  background: rgba(255, 255, 255, 0.12);
}

.Cl_ApoioModalFrame {
  border: none;
  flex: 1 1 auto;
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
}

/* —— Header legado (barra simples em apoio fora do wizard) —— */
.Cl_ApoioHeader {
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #1f3442;
    color: #eef3f6;

    padding: 0 20px;

    border-bottom: 1px solid #1c2e3c;
}

.Cl_ApoioHeaderLogo img {
    height: 40px;
}

.Cl_ApoioHeaderTitulo {
    flex: 1;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

.Cl_ApoioHeaderInfo input {
    background: #ffffff;
    color: #1f3442;

    border: none;
    border-radius: 6px;

    padding: 6px 10px;

    min-width: 80px;
    text-align: center;

    font-weight: 600;
}

/* —— Wizard de apoio (padrão modal Empresa) —— */
.Cl_ApoioBody {
  margin: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #edf1f5;
  overflow: hidden;
  color: var(--color-text, #0E1112);
}

.Cl_ApoioBanner {
  background: linear-gradient(135deg, #0E1112 0%, #8CC400 100%);
  color: #fff;
  padding: 14px 20px;
  flex-shrink: 0;
}

.Cl_ApoioBanner__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.Cl_ApoioBanner__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
}

.Cl_ApoioBanner__icon i,
.Cl_ApoioBanner__icon svg {
  width: 20px;
  height: 20px;
}

.Cl_ApoioBanner__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.Cl_ApoioBanner__sub {
  margin: 2px 0 0;
  font-size: 0.82rem;
  opacity: 0.85;
}

.Cl_ApoioLayout {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Sidebar de steps — padrão global */
.Cl_ApoioSidebar {
  width: 220px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid #e2e8f0;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.Cl_ApoioSteps {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.Cl_ApoioStep {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: #64748b;
  font: inherit;
  font-size: 0.8rem;
}

.Cl_ApoioStep:hover {
  background: #f1f5f9;
}

.Cl_ApoioStep--active {
  background: rgba(10, 83, 144, 0.08);
  color: var(--color-primary, #8CC400);
}

.Cl_ApoioStep__num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.Cl_ApoioStep--active .Cl_ApoioStep__num {
  background: var(--color-primary, #8CC400);
  color: #fff;
  border-color: var(--color-primary, #8CC400);
}

.Cl_ApoioSidebarInfo {
  margin-top: auto;
  display: flex;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 0.75rem;
  color: #64748b;
}

.Cl_ApoioSidebarInfo p {
  margin: 0;
}

.Cl_ApoioSidebarInfo i,
.Cl_ApoioSidebarInfo svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.Cl_ApoioMain {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px 24px;
  background: #edf1f5;
}

.Cl_ApoioSection {
  display: none;
}

.Cl_ApoioSection--active {
  display: block;
}

.Cl_ApoioSectionTitle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 1.05rem;
  color: var(--color-text, #0E1112);
}

.Cl_ApoioSectionTitle--sub {
  margin-top: 28px;
}

.Cl_ApoioSectionTitle i,
.Cl_ApoioSectionTitle svg {
  width: 18px;
  height: 18px;
}

.Cl_ApoioReq {
  color: #b45309;
}

.Cl_ApoioGrid {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.Cl_ApoioGrid--2 {
  grid-template-columns: 1fr 1fr;
}

.Cl_ApoioFooter {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 20px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
}

@media (max-width: 800px) {
  .Cl_ApoioLayout {
    flex-direction: column;
  }

  .Cl_ApoioSidebar {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
  }

  .Cl_ApoioSteps {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .Cl_ApoioGrid--2 {
    grid-template-columns: 1fr;
  }
}

/* ========================================================================= */
/* ========================== CAMPOS FORMULÁRIO ============================ */
/* ========================================================================= */

.Cl_FormCampo {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.Cl_FormCampo label {
    font-weight: 700;
    margin-bottom: 6px;
    color: #1c2e3c;
    font-size: 13px;
}

.Cl_FormCampo input,
.Cl_FormCampo select,
.Cl_FormCampo textarea {
    height: 36px;

    border-radius: 10px;
    border: 1px solid #d6dee6;

    padding: 0 10px;
    font-size: 14px;

    background: #ffffff;
    color: #1c2e3c;

    outline: none;
    box-sizing: border-box;

    transition: border-color .2s, box-shadow .2s;
}

/* foco padrão FleedGuard */
.Cl_FormCampo input:focus,
.Cl_FormCampo select:focus,
.Cl_FormCampo textarea:focus {
    border-color: #1c2e3c;
    box-shadow: 0 0 0 3px rgb(28, 46, 60,.38);
}

/* Combobox e selects: texto não pode cobrir a seta */
.Cl_FormCampo .Cl_SelectLike .Cl_SelectDisplay {
    padding-right: 36px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.Cl_FormCampo select {
    padding-right: 36px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.Cl_FormCampo .Cl_SelectLike .Cl_Caret {
    z-index: 1;
}

.Cl_FormCampo textarea {
    height: auto;
    min-height: 80px;
    padding: 10px;
    resize: vertical;
}


/* ========================================================================= */
/* =========================== TABELA PADRÃO =============================== */
/* ========================================================================= */

.Cl_Table {
    margin: 10px 0;
    padding: 0;

    background: #ffffff;
    border-radius: 8px;

    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
    /* visible: menu ⋮ das linhas não pode ser cortado */
    overflow: visible;
}

/* tabela */
.Cl_Table table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 14px;
}

/* células base */
.Cl_Table th,
.Cl_Table td {
    padding: 1px 8px;
    border: 1px solid #e5e7eb;
    text-align: left;
    position: relative;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* cabeçalho */
.Cl_Table th {
    background: #eef3f6;
    color: #1c2e3c;
    font-weight: 700;
}

/* linha dourada institucional (z-index baixo: cabeçalho acima das linhas, abaixo de modais) */
.Cl_Table thead th {
    box-shadow: inset 0 -2px 0 rgb(28, 46, 60,.55);
    z-index: 2;
}

/* conteúdo */
.Cl_Table td {
    font-size: 12px;
    color: #1c2e3c;
}

/* zebra */
.Cl_Table tbody tr:nth-child(even) {
    background: #f6f9fb;
}

/* hover */
.Cl_Table tbody tr:hover {
    background: #eef3f6;
}

.Cl_Table tbody tr.Cl_TableRow--clickable {
    cursor: pointer;
}

/* sem ellipsis */
.Cl_Table td.no-ellipsis {
    white-space: normal;
    text-overflow: clip;
}

/* conteúdo interno da célula */
.Cl_TableCell {
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* coluna de ações (menu ⋮) */
.Cl_TableActions,
.Cl_Table th.Cl_TableActions,
.Cl_Table td.Cl_TableActions {
    width: 56px;
    text-align: center;
    white-space: nowrap;
}

.Cl_Table td.Cl_TableActions {
    padding-top: 0;
    padding-bottom: 0;
    position: relative;
    overflow: visible;
}

/* Menu de linha (3 pontinhos) */
.Cl_RowMenu {
  position: relative;
  display: inline-flex;
  justify-content: center;
  width: 100%;
}

.Cl_RowMenuBtn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1c2e3c;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.Cl_RowMenuBtn:hover,
.Cl_RowMenu.is-open .Cl_RowMenuBtn {
  background: #eef3f6;
}

.Cl_RowMenuBtn i,
.Cl_RowMenuBtn svg {
  width: 18px;
  height: 18px;
}

.Cl_RowMenuDrop {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 160px;
  padding: 6px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(28, 46, 60, 0.14);
  z-index: 40;
  text-align: left;
}

.Cl_RowMenu.is-open .Cl_RowMenuDrop {
  display: block;
}

.Cl_RowMenuItem {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  color: #1c2e3c;
  cursor: pointer;
  text-align: left;
}

.Cl_RowMenuItem i,
.Cl_RowMenuItem svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.Cl_RowMenuItem:hover {
  background: #eef3f6;
}

/* Traço antes de ações destrutivas (Excluir sempre por último) */
.Cl_RowMenuSep {
  height: 1px;
  margin: 6px 4px;
  background: #e5e7eb;
}

/* Excluir: sempre vermelho */
.Cl_RowMenuItem--danger,
.Cl_RowMenuItem.is-danger {
  color: #C62828;
}

.Cl_RowMenuItem--danger:hover,
.Cl_RowMenuItem.is-danger:hover {
  background: #fde8e8;
  color: #8e0000;
}

.Cl_RowMenuItem--danger i,
.Cl_RowMenuItem--danger svg,
.Cl_RowMenuItem.is-danger i,
.Cl_RowMenuItem.is-danger svg {
  color: inherit;
  stroke: currentColor;
}

/* badge compacto dentro da tabela (status, convite, etc.) */
.Cl_Badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    vertical-align: middle;
}

.Cl_Badge--pendente { background: #fef3c7; color: #92400e; }
.Cl_Badge--aceito { background: #dcfce7; color: #166534; }
.Cl_Badge--expirado { background: #fee2e2; color: #991b1b; }
.Cl_Badge--sem { background: #e5e7eb; color: #374151; }
.Cl_Badge--ativo { background: #dcfce7; color: #166534; }
.Cl_Badge--inativo { background: #fee2e2; color: #991b1b; }

/* ========================================================================= */
/* ============================== TOOLTIP ================================= */
/* ========================================================================= */

.Cl_TableCell[title] {
    position: relative;
}

/* tooltip */
.Cl_TableCell[title]:hover::after {
    content: attr(title);
    position: absolute;
    left: 0;
    top: calc(100% + 6px);

    background: #1c2e3c;
    color: #ffffff;

    padding: 6px 8px;
    border-radius: 6px;

    box-shadow: 0 4px 18px rgba(0,0,0,.2);

    white-space: normal;
    max-width: 480px;

    z-index: 2000;
    pointer-events: none;

    font-size: 12px;
    border: 1px solid rgba(212,164,74,.45);
}

/* seta */
.Cl_TableCell[title]:hover::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 100%;

    border: 6px solid transparent;
    border-top-color: #1c2e3c;

    z-index: 2001;
}


/* ========================================================================= */
/* ========================== ÍCONES (PADRÃO) ============================== */
/* ========================================================================= */

.Cl_Icon {
    background: transparent !important;
    color: #1c2e3c; /* dourado padrão */

    width: 20px;
    height: 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition: color .2s ease, transform .15s ease;
    vertical-align: middle;
}

.Cl_Icon:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

/* ========================================================================= */
/* ===================== BOTÃO DE AÇÃO (TABELA) ============================ */
/* ========================================================================= */

.Cl_BtnAcao {
    background: transparent;
    border: none;

    padding: 4px;
    margin: 0 2px;

    cursor: pointer;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;
    vertical-align: middle;

    color: #1c2e3c;

    transition: background .2s ease;
}

.Cl_BtnAcao:hover {
    background: rgba(200,162,94,.16);
}

.Cl_BtnAcao .icon-tech {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

/* ========================================================================= */
/* ========================== BOTÃO DE ÍCONE =============================== */
/* ========================================================================= */

.Cl_BtnIcon {
    background: transparent !important;
    border: none !important;

    padding: 4px;
    margin: 0 2px;

    cursor: pointer;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 6px;

    transition: background .2s ease;

    width: 24px;
    height: 24px;
}

.Cl_BtnIcon:hover {
    background: rgba(212,164,74,.16);
}

/* ícone dentro do botão */
.Cl_BtnIcon .Cl_Icon {
    pointer-events: none;
}



/* ========================================================================= */
/* ========================== PAGINAÇÃO PADRÃO ============================= */
/* ========================================================================= */

.Cl_Pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
}

.Cl_PaginationSize {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7a88;
}

.Cl_PaginationSize select {
    height: 34px;
    border-radius: 8px;
    border: 1px solid #d6dee6;
    padding: 0 8px;
    background: #fff;
    color: #1c2e3c;
    font: inherit;
}

.Cl_PaginationNav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* botões */
.Cl_PaginationBtn {
    background: #ffffff;
    color: #1c2e3c;
    border: 1px solid #d6dee6;
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: all .2s ease;
}

/* hover */
.Cl_PaginationBtn:hover:not(:disabled) {
    background: #eef3f6;
    border-color: #1c2e3c;
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(28,46,60,.08);
}

/* desabilitado */
.Cl_PaginationBtn:disabled {
    color: rgba(28,46,60,.35);
    border-color: rgba(214,222,230,.9);
    cursor: not-allowed;
    opacity: .7;
    background: #ffffff;
}

/* texto */
.Cl_PaginationInfo {
    font-weight: 700;
    color: #1c2e3c;
    font-size: 13px;
    white-space: nowrap;
}


/* ========================================================================= */
/* BOTÕES (padrão global)                                                    */
/* ========================================================================= */
/* BASE */
.Cl_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 20px;
    font-size: 15px;
    border-radius: 8px;
    cursor: pointer;

    border: 1px solid transparent;

    transition: background-color .2s, transform .15s, box-shadow .2s, border-color .2s;
}

/* PRINCIPAL */
.Cl_btn_primary {
    background-color: #3a4f61;
    color: #fff;
    border-color: rgba(28,46,60,.15);
}

.Cl_btn_primary:hover {
    background-color: #1c2e3c;
    border-color: rgba(200,162,94,.55);
    box-shadow: 0 10px 22px rgba(28,46,60,.14);
    transform: translateY(-1px);
}

/* NEUTRO */
.Cl_btn_neutral {
    background-color: #ffffff;
    color: #1c2e3c;
    border-color: #d6dee6;
}

.Cl_btn_neutral:hover {
    background-color: #eef3f6;
    border-color: #c8a25e;
    box-shadow: 0 10px 22px rgba(28,46,60,.10);
    transform: translateY(-1px);
}

/* EXCLUIR */
.Cl_btn_danger {
    background-color: #C62828;
    color: #fff;
}

.Cl_btn_danger:hover {
    background-color: #8e0000;
    transform: scale(1.02);
}

/* LINK */
.Cl_btn_link {
    background: none;
    border: none;
    padding: 0;

    color: #1c2e3c;
    font-size: 13px;
    font-weight: 500;
    text-decoration: underline;
}

.Cl_btn_link:hover {
    color: #1c2e3c;
}

/* ========================================================================= */
/* =============================== SWITCH ================================== */
/* ========================================================================= */

.Cl_Switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    user-select: none;
    cursor: pointer;
}

/* esconde checkbox */
.Cl_Switch input {
    display: none;
}

/* trilho */
.Cl_SwitchSlider {
    position: relative;

    width: 46px;
    height: 24px;

    border-radius: 999px;

    background: #3a4f5c;
    transition: .2s;

    box-shadow: inset 0 0 0 1px #2e4756;
}

/* bolinha */
.Cl_SwitchSlider::after {
    content: "";
    position: absolute;

    top: 3px;
    left: 3px;

    width: 18px;
    height: 18px;

    border-radius: 50%;
    background: #ffffff;

    transition: .2s;
    box-shadow: 0 1px 2px rgba(0,0,0,.25);
}

/* ativo */
.Cl_Switch input:checked + .Cl_SwitchSlider {
    background: #1c2e3c;
    box-shadow: inset 0 0 0 1px #1c2e3c;
}

/* bolinha move */
.Cl_Switch input:checked + .Cl_SwitchSlider::after {
    transform: translateX(22px);
}

/* label */
.Cl_SwitchLabel {
    font-size: 13px;
    color: #dce3e8;
    line-height: 1.2;
    white-space: nowrap;
}



/* ========================================================= */
/* ======================= MODAL PADRÃO ===================== */
/* ========================================================= */

.Cl_ModalOverlay {
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,.4);

    display: flex;
    align-items: center;
    justify-content: center;
}

/* níveis (empilhamento) */
.Cl_ModalOverlay.level-1 { z-index: 10000; }
.Cl_ModalOverlay.level-2 { z-index: 10002; }
.Cl_ModalOverlay.level-3 { z-index: 10004; }

/* janela */
.Cl_ModalWindow {
    background: #ffffff;

    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,.35);

    display: flex;
    flex-direction: column;

    overflow: hidden;

    max-width: 96vw;
    max-height: 92vh;

    width: var(--cl-modal-width, 1000px);
}

/* altura fixa */
.Cl_ModalWindow.height-fixed {
    height: var(--cl-modal-height, 600px);
}

/* altura automática */
.Cl_ModalWindow.height-auto {
    height: 92vh;
}

/* conteúdo (iframe) */
.Cl_ModalIframe {
    border: none;

    width: 100%;
    height: 100%;

    flex: 1;

    background: transparent;
}


/* ========================================================================= */
/* ============================ SCROLLBAR ================================== */
/* ========================================================================= */
/* Uso: classe Cl_Scroll em áreas com overflow. Variante clara: Cl_Scroll--light */

.Cl_Scroll,
.Cl_Scroll--dark {
    scrollbar-gutter: stable;
    scrollbar-width: auto;
    scrollbar-color: #5dade2 #1a2d3d;
}

.Cl_Scroll--light {
    scrollbar-gutter: stable;
    scrollbar-width: auto;
    scrollbar-color: #2980b9 #d5dde4;
}

.Cl_Scroll::-webkit-scrollbar,
.Cl_Scroll--dark::-webkit-scrollbar {
    width: 14px;
    height: 14px;
}

.Cl_Scroll::-webkit-scrollbar-track,
.Cl_Scroll--dark::-webkit-scrollbar-track {
    background: #1a2d3d;
    border-radius: 8px;
    border: 2px solid #142430;
}

.Cl_Scroll::-webkit-scrollbar-thumb,
.Cl_Scroll--dark::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7ec8f5 0%, #3d93d6 55%, #2e7bbf 100%);
    border-radius: 8px;
    border: 2px solid #1a2d3d;
    min-height: 48px;
}

.Cl_Scroll::-webkit-scrollbar-thumb:hover,
.Cl_Scroll--dark::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #9ed8ff 0%, #56a8e8 100%);
}

.Cl_Scroll--light::-webkit-scrollbar {
    width: 14px;
    height: 14px;
}

.Cl_Scroll--light::-webkit-scrollbar-track {
    background: #e4eaef;
    border-radius: 8px;
    border: 2px solid #cfd8dc;
}

.Cl_Scroll--light::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #5dade2 0%, #2980b9 100%);
    border-radius: 8px;
    border: 2px solid #e4eaef;
    min-height: 48px;
}

.Cl_Scroll--light::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7ec8f5 0%, #3498db 100%);
}



/* ========================================================================= */
/* ===================== COMBOBOX (Cl_SelectLike) ========================== */
/* ========================================================================= */
.Cl_SelectLike {
    position: relative;
    display: inline-block;
    width: 100%;
}

.Cl_SelectDisplay {
    width: 100%;
    padding: 8px 36px 8px 12px;
    border: 1px solid #d6dee6;
    border-radius: 6px;
    font-size: 14px;
    background-color: #ffffff;
    color: #1c2e3c;
    cursor: pointer;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.Cl_Caret {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #1c2e3c;
}

.Cl_ComboPanel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 100%;
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #ffffff;
    border: 1px solid #d6dee6;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0,0,0,.15), 0 2px 8px rgba(0,0,0,.08);
    z-index: 2000;
    box-sizing: border-box;
}

.Cl_ComboPanel.is-floating {
    position: fixed;
    inset: auto;
    min-width: auto !important;
    width: auto;
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 2147483000;
    box-sizing: border-box;
}

.Cl_ComboPanel[aria-hidden="true"]  { display: none; }
.Cl_ComboPanel[aria-hidden="false"] { display: block; }

.Cl_ComboSearch {
    padding: 8px;
    border-bottom: 1px solid #d6dee6;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 1;
}

.Cl_ComboSearchInput {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d6dee6;
    border-radius: 8px;
    background: #ffffff;
    color: #1c2e3c;
}

.Cl_ComboStatus {
    padding: 6px 10px;
    font-size: 12px;
    color: #6b7a88;
}

.Cl_ComboLista {
    display: grid;
    gap: 4px;
    padding: 8px;
}

.Cl_Item,
.Cl_ComboItem {
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    display: grid;
    grid-auto-rows: min-content;
    gap: 2px;
    transition: background-color 0.15s, box-shadow 0.15s;
    line-height: 1.25;
    color: #1c2e3c;
}

.Cl_Item:hover,
.Cl_ComboItem:hover,
.Cl_Item.Cl_sel,
.Cl_ComboItem[aria-selected="true"] {
    background: #eef3f6;
    box-shadow: inset 0 0 0 1px #d6dee6;
}

.Cl_Item__linha,
.Cl_ComboItem__linha {
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.Cl_Item__linha--1,
.Cl_ComboItem__linha--1 {
    font-weight: 700;
}

.Cl_Item__rotulo,
.Cl_ComboItem__rotulo {
    font-weight: 700;
    margin-right: 4px;
}

.Cl_Item mark,
.Cl_ComboItem mark,
.Cl_Match mark {
    background: rgba(74,108,240,.15);
    color: #1c2e3c;
    padding: 0 2px;
    border-radius: 3px;
}

.Cl_SelectDisplay:focus,
.Cl_Caret:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(28,46,60,.18);
    border-color: #1c2e3c;
}

#combo_conta {
    width: 420px;
}


/* ========================================================================= */
/* Garante: Confirmar à ESQUERDA, Cancelar à DIREITA                         */
/* ========================================================================= */

.swal2-actions {
  display: flex;
  justify-content: center;
}

.swal2-actions .swal2-confirm { order: 1 !important; }
.swal2-actions .swal2-cancel  { order: 2 !important; }

.swal2-actions .swal2-styled  {
  margin: 0 .25rem;
  border-radius: 8px;
  font-weight: 600;
  padding: 8px 16px;
}

/* ========================================================================= */
/* BOTÃO CONFIRMAR (PADRÃO FLEEDGUARD)                                      */
/* ========================================================================= */

.swal2-confirm {
  background: var(--blue-medium, #3a4f61) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.swal2-confirm:hover {
  background: var(--blue-dark, #1c2e3c) !important;
  color: #ffffff !important;
}

.swal2-confirm:focus-visible {
  outline: 2px solid var(--blue-accent, #4a6cf0);
  outline-offset: 2px;
}

/* ========================================================================= */
/* BOTÃO CANCELAR                                                            */
/* ========================================================================= */

.swal2-cancel {
  background: var(--red-danger, #c62828) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.swal2-cancel:hover {
  background: #b71c1c !important;
  color: #ffffff !important;
}

.swal2-cancel:focus-visible {
  outline: 2px solid #ef9a9a;
  outline-offset: 2px;
}

/* ========================================================================= */
/* MODAL (ALINHAMENTO COM TEMA)                                              */
/* ========================================================================= */

.swal2-popup {
  background: #1f3442 !important;
  color: #ffffff !important;
  border-radius: 12px !important;
}

/* título */
.swal2-title {
  color: #ffffff !important;
}

/* texto */
.swal2-html-container {
  color: #dce3e8 !important;
}

/* select/input: fundo claro + texto escuro (options nativas herdam color do popup) */
.swal2-popup .swal2-select,
.swal2-popup .swal2-input,
.swal2-popup .swal2-textarea {
  background: #ffffff !important;
  color: #17324a !important;
  border: 1px solid rgba(23, 50, 74, 0.25) !important;
}

.swal2-popup .swal2-select option {
  background: #ffffff !important;
  color: #17324a !important;
}

/* ========================================================================= */
/* Z-INDEX (CRÍTICO)                                                         */
/* ========================================================================= */

.swal2-container {
  z-index: 20000 !important;
}





/* ========================================================================= */
/* ======================== MOVIMENTO REDUZIDO ============================= */
/* ========================================================================= */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}


/* ========================================================================= */
/* ===================== MÊS/ANO PICKER (Cl_MesAno) ======================== */
/* ========================================================================= */
.Cl_MesAno {
  position: relative;
  display: block;
  width: 100%;
}

.Cl_MesAno__display {
  width: 100%;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid #d6dee6;
  border-radius: 10px;
  background: #ffffff;
  color: #1c2e3c;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.Cl_MesAno__display:focus,
.Cl_MesAno__display:focus-visible {
  border-color: #1c2e3c;
  box-shadow: 0 0 0 3px rgba(200, 162, 94, 0.22);
}

.Cl_MesAno__text {
  font-weight: 600;
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.Cl_MesAno__caret {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #6b7a88;
  flex-shrink: 0;
}

.Cl_MesAno__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 260px;
  background: #fff;
  color: #1c2e3c;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(28, 46, 60, 0.16);
  z-index: 1200;
  padding: 10px;
  box-sizing: border-box;
}

.Cl_MesAno__panel[aria-hidden="true"] {
  display: none !important;
}

.Cl_MesAno__panel[aria-hidden="false"] {
  display: block;
}

.Cl_MesAno__topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}

.Cl_MesAno__ano {
  font-weight: 700;
  font-size: 14px;
  color: #1c2e3c;
  min-width: 3.5rem;
  text-align: center;
}

.Cl_MesAno__anoBtn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #d6dee6;
  background: #f6f9fb;
  color: #3a4f61;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
}

.Cl_MesAno__anoBtn:hover {
  background: #eef3f6;
  border-color: #1c2e3c;
}

.Cl_MesAno__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 10px 0;
}

.Cl_MesAno__mes {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  padding: 8px 4px;
  font: inherit;
  font-size: 12px;
  text-transform: lowercase;
  cursor: pointer;
  color: #3a4f61;
}

.Cl_MesAno__mes:hover {
  background: #eef3f6;
  border-color: #c8a25e;
}

.Cl_MesAno__mes.is-sel {
  background: #3a4f61;
  border-color: #3a4f61;
  color: #fff;
  font-weight: 700;
}

.Cl_MesAno__msg {
  min-height: 16px;
  font-size: 11px;
  color: #b42318;
  padding: 0 0 6px;
}

.Cl_MesAno__acoes {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid #e5e7eb;
  padding-top: 8px;
}

.Cl_MesAno__btn {
  border: 1px solid #d6dee6;
  background: #ffffff;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  color: #1c2e3c;
}

.Cl_MesAno__btn:hover {
  background: #eef3f6;
  border-color: #c8a25e;
}

.Cl_MesAno__btn--ok {
  border-color: #3a4f61;
  background: #3a4f61;
  color: #fff;
  font-weight: 700;
}

.Cl_MesAno__btn--ok:hover {
  background: #1c2e3c;
}

/* ========================================================================= */
/* ================================ PRINT ================================== */
/* ========================================================================= */
@media print {

    .Cl_BotoesApoio,
    .btn-icon,
    .Cl_Pagination,
    .Cl_Paginacao {
        display: none !important;
    }

    a::after {
        content: " (" attr(href) ")";
        font-size: 10px;
        color: #6b7280; /* 🔥 leve ajuste (cinza neutro impressão) */
    }

    body {
        background: #FFFFFF !important;
        color: #000000 !important; /* 🔥 garante legibilidade */
    }

    /* 🔥 melhora leitura geral */
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }
}

/* ========================================================================= */
/* ===== LEGADO SITE RUFINO (manter: miolo, botao, ru-modal iframe) ===== */
/* ========================================================================= */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--fonte);
  color: var(--cor-tinta);
  background: var(--cor-papel);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.03em; }
h1 { font-size: clamp(2rem, 5vw, 4.2rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); margin: 0 0 0.5em; }
h2 span, h1 span { color: var(--cor-verde); }

.miolo { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.olho { color: var(--cor-verde); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.75rem; }
.olho a { color: inherit; text-decoration: none; }
.vazio { color: var(--cor-muted); }
.preco { font-weight: 800; font-size: 1.3rem; }
.texto { white-space: pre-line; }
.erro, .aviso {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff4f4;
  color: #8d1d1d;
}
.aviso { background: #f4f8e8; color: var(--cor-tinta); }
.oculto { display: none !important; }

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--cor-verde);
  color: var(--cor-tinta);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.botao-claro { background: transparent; color: var(--cor-papel); border: 1px solid rgba(255,255,255,.4); }
.faixa .botao-claro, .reserva .botao-claro, .estreito .botao-claro, .painel-main .botao-claro {
  color: var(--cor-tinta);
  border-color: var(--cor-linha);
}
.botao-miudo { min-height: 40px; padding: 0 14px; }

label { display: grid; gap: 6px; font-weight: 700; margin-bottom: 14px; }
input, textarea, select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--cor-linha);
  background: #fff;
}
textarea { min-height: 120px; }
fieldset { border: 1px solid var(--cor-linha); border-radius: 14px; margin: 0 0 14px; }
.linha { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.linha input { width: auto; min-height: 0; }
.nota { color: var(--cor-muted); font-size: 0.92rem; }

.pagina-erro { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.pagina-erro main { max-width: 480px; }

/* ——— Shell modal iframe (GlobalUtils.Modal) ——— */
.ru-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(14, 17, 18, 0.55);
}
.ru-modal-overlay[data-nivel="2"] { z-index: 12100; }
.ru-modal-overlay[data-nivel="3"] { z-index: 12200; }

.ru-modal-janela {
  --ru-modal-w: 1080px;
  --ru-modal-h: 780px;
  width: min(var(--ru-modal-w), 96vw);
  height: min(var(--ru-modal-h), 92vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  color: #0e1112;
  box-shadow: 0 28px 72px rgba(8, 10, 9, 0.38);
}

@media (max-width: 900px) {
  .ru-modal-overlay {
    padding: 8px;
    align-items: stretch;
  }
  .ru-modal-janela {
    width: 100%;
    height: min(92vh, 100%);
    max-width: none;
    border-radius: 14px;
  }
}
.ru-modal-janela.is-auto {
  height: min(92vh, 900px);
  background: #fff;
}

.ru-modal-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 12px 20px;
  background: #0e1112;
  color: #fff;
}
.ru-modal-titulo {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ru-modal-fechar {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.ru-modal-fechar:hover {
  background: rgba(255, 255, 255, 0.12);
}

.ru-modal-iframe {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.ru-modal-iframe.is-loading {
  opacity: 0;
}
.ru-modal-iframe.is-ready {
  opacity: 1;
}

/* Página carregada dentro do iframe */
html.is-in-modal,
body.is-in-modal {
  background: #fff !important;
  margin: 0 !important;
  min-height: 100%;
}
body.is-in-modal #fg_sidebar,
body.is-in-modal .FG_Header,
body.is-in-modal .shell-cel,
body.is-in-modal #shell-cel,
body.is-in-modal .FG_ComboDropdown {
  display: none !important;
}
body.is-in-modal #lista-shell {
  position: static !important;
  inset: auto !important;
  left: 0 !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 0 !important;
  z-index: auto !important;
}
body.is-in-modal .painel-main {
  display: none !important;
}
body.is-in-modal dialog.modal-app,
body.is-in-modal dialog.modal-simples,
body.is-in-modal dialog.modal-demanda,
body.is-in-modal dialog.modal-config,
body.is-in-modal dialog.modal-cliente,
body.is-in-modal dialog.modal-pedido-ficha,
body.is-in-modal #pedido-novo,
body.is-in-modal #pedido-ficha,
body.is-in-modal #modal-inscritos,
body.is-in-modal #modal-sinopse,
body.is-in-modal .mdl-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.is-in-modal dialog.modal-app::backdrop,
body.is-in-modal dialog.modal-simples::backdrop,
body.is-in-modal dialog.modal-demanda::backdrop,
body.is-in-modal dialog.modal-config::backdrop,
body.is-in-modal #modal-inscritos::backdrop {
  background: transparent !important;
}
body.is-in-modal .mdl-overlay {
  display: flex !important;
  background: #fff !important;
}
/* Fecha só no X do shell; folhas aninhadas mantêm o próprio X */
body.is-in-modal dialog#modal > .modal-barra .modal-fechar,
body.is-in-modal dialog#modal > form > .modal-barra .modal-fechar,
body.is-in-modal dialog#pedido-novo .modal-fechar,
body.is-in-modal dialog#pedido-ficha .modal-fechar,
body.is-in-modal [data-fechar-modal].modal-fechar {
  display: none !important;
}
body.is-in-modal dialog#modal .btn-cancelar[data-fechar-modal],
body.is-in-modal dialog#pedido-novo .btn-cancelar[data-fechar],
body.is-in-modal dialog#pedido-ficha .btn-cancelar[data-fechar-ficha] {
  display: none !important;
}
body.ru-modal-aberto {
  overflow: hidden;
}
