/* ==========================================================================
   designacoes.com.br — VISUAL "ARGON"
   Inspirado no Argon Dashboard (Creative Tim, licença MIT).
   --------------------------------------------------------------------------
   • As CORES de cada tema ficam em 239_claro.css / 239_dark.css
     (bloco "1.2) VALORES DO TEMA", variáveis --bs-* e --ag-*).
   • Este arquivo só traz as FORMAS (cantos, sombras, cabeçalho em degradê,
     lista de compromissos, menu lateral, ações das reuniões, login).
   • É carregado DEPOIS do tema e do botoescss400.php.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1) BASE
   -------------------------------------------------------------------------- */
body,
body.bodyclass {
    background-color: var(--bs-app-bg);
    color: var(--bs-body-color);
    font-family: var(--bs-body-font-family);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--bs-heading-color);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   2) CARTÕES
   -------------------------------------------------------------------------- */
.homeinicio_div,
.anuncio_inicio_div,
.itemdv,
.div_fundo_novo,
.div_blocos_ini,
.div_blocos_minhasdesignacoes,
.relatorios_quadra,
.relatorios_informadesig,
.s26sub_sub_menu,
.s26sub_divpub,
.box_salaB_editar,
.box_mesano,
.menu_irmao,
.calendario-mesa,
.homeinicio_2026_meu,
.div_designacoes_26 {
    background-color: var(--bs-card-bg);
    border: 1px solid var(--ag-list-border);
    border-radius: 16px;
    box-shadow: var(--bs-box-shadow);
}

.bemvindocsss {
    background-color: var(--ag-list-bg);
    border: 1px solid var(--ag-list-border);
    border-radius: 14px;
    padding: 12px 14px;
}

.homeinicio_div_sub_menu {
    background-color: var(--ag-list-bg);
    border: 1px solid var(--ag-list-border);
    border-radius: 14px;
    margin-bottom: 8px;
}

/* Cabeçalhos coloridos dos cartões: cantos do novo visual */
.headerinicionew,
.headercenternew,
.header_dentro_pagina_new {
    border-radius: 14px 14px 0 0;
}

/* --------------------------------------------------------------------------
   3) BOTÕES  (primária #4C5FD7 com texto branco; EXCLUIR continua vermelho)
   -------------------------------------------------------------------------- */
body button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
    border-radius: 10px;
    font-weight: 600;
    padding: .5rem 1rem;
    min-height: 40px;
}

@media (max-width: 910px) {
    body button,
    input[type="submit"],
    input[type="button"],
    input[type="reset"] {
        min-height: 44px;   /* alvo de toque */
    }
}

/* --------------------------------------------------------------------------
   4) CAMPOS
   -------------------------------------------------------------------------- */
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
select,
textarea {
    background-color: var(--ag-input-bg);
    border-color: var(--ag-input-border);
    color: var(--bs-input-color);
    border-radius: 10px;
    min-height: 44px;
}
textarea { min-height: 5rem; }

/* --------------------------------------------------------------------------
   5) MENUS SUSPENSOS (Bootstrap) — usados nas ações das reuniões
   -------------------------------------------------------------------------- */
.dropdown-menu {
    background-color: var(--bs-card-bg);
    color: var(--bs-body-color);
    border: 1px solid var(--ag-list-border);
    border-radius: 14px;
    box-shadow: var(--bs-box-shadow);
    padding: 6px;
    min-width: 220px;
}
.dropdown-item {
    color: var(--bs-body-color);
    border-radius: 10px;
}
.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--bs-nav-hover-bg);
    color: var(--bs-body-color);
}

/* --------------------------------------------------------------------------
   6) CABEÇALHO DE PÁGINA EM DEGRADÊ + CARTÕES SOBREPOSTOS
   -------------------------------------------------------------------------- */
.ag-hero {
    background: var(--ag-gradient);
    color: #fff;
    border-radius: 0 0 24px 24px;
    padding: 22px 20px 64px;
    margin: 0 0 0 0;
}
.ag-hero h1,
.ag-hero h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 4px;
}
.ag-hero p {
    color: rgba(255, 255, 255, .88);
    margin: 0;
    font-size: .95rem;
}
.ag-sobre {
    margin-top: -44px;   /* cartões sobrepostos ao degradê */
    position: relative;
    z-index: 1;
}
@media only screen and (min-width: 911px) {
    .ag-hero {
        border-radius: 0 0 28px 28px;
        padding: 30px 40px 72px;
    }
    .ag-hero h1, .ag-hero h2 { font-size: 1.85rem; }
}

/* --------------------------------------------------------------------------
   7) PÁGINA INICIAL
   -------------------------------------------------------------------------- */
/* Ordem dos cartões na página inicial:
   próxima designação -> meus compromissos -> anúncios -> o resto (ordem do HTML) */
.homeinicio > .ag-proxima { order: -3; flex: 0 0 100%; }
.homeinicio > .ag-ordem-compromissos { order: -2; }
.homeinicio > .ag-ordem-anuncios { order: -1; }
@media only screen and (min-width: 911px) {
    .homeinicio > .ag-proxima { margin: 0 5px 6px; flex-basis: calc(100% - 10px); }
}

/* Título de seção dentro do cartão (substitui a faixa cinza) */
.ag-secao-titulo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 16px 6px;
    margin: 0;
}
.ag-secao-titulo h6,
.ag-secao-titulo a h6 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ag-heading);
}
.ag-secao-titulo a { color: inherit; text-decoration: none; }
.ag-secao-titulo .ag-ponto {
    width: 10px; height: 10px; border-radius: 50%;
    display: inline-block; margin-right: 8px; vertical-align: middle;
}

/* "Sua próxima designação" */
.ag-proxima {
    display: none;
    width: 100%;
    background: var(--ag-gradient);
    color: #fff;
    border-radius: 18px;
    padding: 18px 18px 16px;
    margin: 0 0 14px;
    box-shadow: 0 12px 30px rgba(94, 114, 228, .35);
    cursor: pointer;
    border: 0;
    text-align: left;
    font: inherit;
}
.ag-proxima.ag-visivel { display: block; }
.ag-proxima-rotulo {
    font-size: .75rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .85;
    font-weight: 600;
}
.ag-proxima-titulo {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 6px 0 4px;
    color: #fff;
}
.ag-proxima-sub { font-size: .95rem; opacity: .92; }
.ag-proxima .ag-chip {
    background: rgba(255, 255, 255, .2);
    color: #fff;
    margin-top: 12px;
}

/* Lista "Meus compromissos": cartões com faixa de cor da área */
.homeagenda_div.fundotdivinicial26 { padding: 0 8px 8px !important; }
.minhas_designacoes_div24 {
    background-color: var(--ag-list-bg);
    border: 1px solid var(--ag-list-border);
    border-left: 5px solid var(--ag-faixa, var(--ag-primary)) !important;
    border-radius: 14px;
    padding: 10px 12px;
    margin-bottom: 10px;
    box-shadow: none;
}
.minhas_designacoes_div24 .headerdicmenunovo08 { min-height: 44px; }
.minhas_designacoes_div24 .headerdicmenunovo08-texto h6 { line-height: 1.35; }

/* Etiqueta "em N dias" / "hoje" */
.ag-chip {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    background: var(--ag-chip-bg);
    color: var(--ag-text2);
    list-style: none;
}
.ag-chip.ag-hoje {
    background: #F5365C;
    color: #fff;
}

/* --------------------------------------------------------------------------
   8) MENU LATERAL (escuro no tema escuro, ponto de cor por área, sem MAIÚSCULAS)
   -------------------------------------------------------------------------- */
.menufelipe,
.menurelatorios26 {
    text-transform: none;
    background-color: var(--ag-sidebar-bg);
    color: var(--ag-text);
}
.menuatrasdomenuprincipal {
    background-color: var(--ag-sidebar-bg);
    border-right: 1px solid var(--ag-list-border);
}
@media only screen and (min-width: 911px) {
    .menufelipe { background-color: var(--ag-sidebar-bg); }
}

.menufelipe .menulis { padding: 2px 6px; }

.menufelipe details.bv-cat > summary,
.menufelipe .bv-topo {
    border-left: 0;
    border-radius: 12px;
    padding: 12px 12px;
    min-height: 44px;
    font-weight: 600;
    font-size: .95rem;
    color: var(--ag-text);
}
.menufelipe details.bv-cat > summary::before,
.menufelipe .bv-topo::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bv-cor, var(--ag-primary));
    flex: 0 0 10px;
    margin-right: 12px;
    display: inline-block;
}
.menufelipe details.bv-cat > summary { justify-content: flex-start; }
.menufelipe details.bv-cat > summary::after { margin-left: auto; }
.menufelipe details.bv-cat > summary:hover,
.menufelipe .bv-topo:hover {
    background: var(--bs-nav-hover-bg);
    text-decoration: none;
}
.menufelipe details.bv-cat[open] > summary { background: var(--bs-nav-active-bg); }

.menufelipe .ulSUBMENUS .menulis { padding: 0 0 0 14px; }
.menufelipe .ulSUBMENUS .menuamenu {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--ag-text2);
    font-size: .9rem;
}
.menufelipe .ulSUBMENUS .menuamenu::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--bv-cor, var(--ag-primary));
    flex: 0 0 7px;
    margin-right: 10px;
}
.menufelipe .ulSUBMENUS .menuamenu:hover {
    background: var(--bs-nav-hover-bg);
    color: var(--ag-heading);
}

/* --------------------------------------------------------------------------
   9) BARRA INFERIOR
   -------------------------------------------------------------------------- */
.novo_menu_base {
    background-color: var(--ag-tabbar-bg);
    border-top: 1px solid var(--ag-list-border);
    color: var(--ag-tabbar-fg);
}
.item_novo_menu {
    min-height: 44px;
    border-radius: 12px;
    color: var(--ag-tabbar-fg);
}
.item_novo_menu:hover { background-color: var(--bs-nav-hover-bg); }

/* --------------------------------------------------------------------------
   10) AÇÕES DAS REUNIÕES  (2 principais + botão "mais")
   -------------------------------------------------------------------------- */
.ag-acoes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}
.ag-acoes > a,
.ag-acoes > .dropdown { display: inline-flex; }
.ag-acoes button { margin: 0; }
.ag-acoes .ag-mais {
    background-color: transparent;
    color: var(--bs-body-color);
    border: 1px solid var(--ag-input-border);
    min-width: 44px;
}
.ag-acoes .ag-mais:hover {
    background-color: var(--bs-nav-hover-bg);
    color: var(--bs-body-color);
    filter: none;
}
/* dentro do menu "mais", os botões viram itens de lista */
.ag-acoes .dropdown-menu a { display: block; text-decoration: none; }
.ag-acoes .dropdown-menu button {
    display: block;
    width: 100%;
    text-align: left;
    margin: 2px 0;
    background-color: transparent;
    border: 0;
    color: var(--bs-body-color);
    font-weight: 500;
}
.ag-acoes .dropdown-menu button:hover {
    background-color: var(--bs-nav-hover-bg);
    color: var(--bs-body-color);
    filter: none;
}
.ag-acoes .dropdown-menu .mbtdelete,
.ag-acoes .dropdown-menu .mbtdelete:hover { color: #F5365C; }

/* --------------------------------------------------------------------------
   11) RODAPÉ
   -------------------------------------------------------------------------- */
@media only screen and (min-width: 911px) {
    .fimdapagina {
        background-color: var(--ag-tabbar-bg);
        border-top: 1px solid var(--ag-list-border);
    }
}
