/* ─── Admin Base Styles for Bulma ─── */
:root {
    --bulma-link-text: #333;
}

ul.pagination-list {
    align-items: normal;
}

/* Layout */
html, body {
    height: 100%;
}

body {
    font-family: "Nunito", "Segoe UI", "Arial", sans-serif;
    color: #333;
    overflow-y: scroll;
    background: #f5f7fb;
}

#app {
    display: flex;
    min-height: 100vh;
}

.button.is-text {
    text-decoration: none;
}

.title-bar {
    font-size: 0.85em;
}

.title-bar-mobile {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.title-bar-mobile-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
}

.title-bar-mobile-title {
    text-align: center;
    padding: 4px 12px 8px;
}

.title-bar-mobile-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

@media screen and (max-width: 768px) {
    .is-title-bar {
        overflow: visible;
    }
    .is-title-bar .level {
        display: block;
    }
    .is-title-bar .level-left {
        width: 100%;
    }
    .is-title-bar .level-right {
        display: none;
    }
    .title-bar-mobile-actions .button.is-text > span:not(.icon) {
        display: none;
    }
    .title-bar-mobile-actions .dropdown-trigger > button > span:not(.icon) {
        display: none;
    }
    .title-bar-mobile-actions .dropdown {
        position: relative;
    }
    .title-bar-mobile-actions .dropdown-menu {
        position: absolute;
        right: 0;
        left: auto;
        top: 100%;
        z-index: 100;
        min-width: 180px;
    }
}

/* ─── Sidebar ─── */
.aside {
    width: 260px;
    min-width: 260px;
    background: #1A5B63;
    color: #fff;
    display: flex;
    flex-direction: column;
    transition: width 0.2s, min-width 0.2s, transform 0.2s;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 40;
    overflow-y: auto;
}

.aside-tools {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.aside-tools-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.aside-tools-label img {
    max-height: 40px;
}

.menu.is-menu-main {
    padding: 0.5rem 0;
}

.menu.is-menu-main .menu-label {
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.5);
}

.menu.is-menu-main .menu-list {
    padding: 0 0.75rem;
}

.menu.is-menu-main .menu-list a {
    padding: 0.6rem 1rem;
    color: #fff;
    background-color: #1A5B63;
    border-left: 3px solid transparent;
    font-size: 0.9rem;
    transition: all 0.15s;
}

.menu.is-menu-main .menu-list a:hover {
    background: rgba(255,255,255,0.1);
    color: #FFB380;
    border-left-color: rgba(255,255,255,0.3);
}

.menu.is-menu-main .menu-list a.is-active,
.menu.is-menu-main .menu-list li.is-active > a {
    background: rgba(255,255,255,0.15);
    color: #FFB380;
    border-left-color: #FFB380;
}

.menu.is-menu-main .menu-list a .icon {
    width: 1.5rem;
    text-align: center;
    margin-right: 0.5rem;
}

/* ─── Main Content ─── */
#main-wrapper {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Title bar (page header) */
.is-title-bar {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 0.75rem 1.5rem;
}

.is-title-bar .level {
    margin-bottom: 0;
}

.is-title-bar .level .breadcrumb {
    margin-bottom: 0;
}

.is-title-bar .level .breadcrumb li + li::before {
    color: #1A5B63;
}

.is-title-bar .level .breadcrumb li.is-active a {
    color: #1A5B63;
}

/* User dropdown in title bar */
.is-title-bar .level-right .button.is-text,
.title-bar-mobile-actions .button.is-text {
    color: #555;
    font-size: 0.85rem;
    gap: 0.25rem;
    text-decoration: none;
}

.is-title-bar .level-right .button.is-text:hover,
.title-bar-mobile-actions .button.is-text:hover {
    color: #1A5B63;
    text-decoration: none;
}

.is-title-bar .level-right .dropdown-menu .dropdown-item,
.title-bar-mobile-actions .dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #555;
}

.is-title-bar .level-right .dropdown-menu .dropdown-item:hover,
.title-bar-mobile-actions .dropdown-menu .dropdown-item:hover {
    background: #f5f5f5;
    color: #1A5B63;
}

.is-title-bar .level-right .dropdown-menu .dropdown-item.has-text-danger:hover,
.title-bar-mobile-actions .dropdown-menu .dropdown-item.has-text-danger:hover {
    background: #fde8e8;
}

/* ─── Search form (form_pesquisa) — compact horizontal form ─── */
form.form_pesquisa {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

form.form_pesquisa .field {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    form.form_pesquisa {
        flex-direction: column;
        align-items: stretch;
    }
    form.form_pesquisa .field {
        flex-direction: column;
        align-items: stretch;
    }
    form.form_pesquisa .field .control {
        width: 100%;
    }
    form.form_pesquisa .field .control input,
    form.form_pesquisa .field .control select,
    form.form_pesquisa .field .control .button {
        width: 100%;
    }
}

/* ─── Select dropdown arrow (global) ─── */
select.input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 2rem;
    background: #fff url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSI4IiB2aWV3Qm94PSIwIDAgMTIgOCI+PHBhdGggZmlsbD0iIzY2NiIgZD0iTTYgOEwwIDBoMTJ6Ii8+PC9zdmc+Cg==") no-repeat right 0.6rem center;
    background-size: 0.75rem;
    cursor: pointer;
}

/* Main section content */
.main-section {
    flex: 1;
}

/* Calendar (ex-menu_interno) */
#calendario {
    background: #f7f7f7;
    font-size: 0.85rem;
    border-bottom: 1px solid #ccc;
    margin-bottom: 1.5rem;
    padding: 0.5rem;
    border-radius: 4px;
}

#calendario div {
    font-weight: bold;
    text-align: center;
    padding: 4px 0 0;
}

#icalprev {
    float: left;
    margin-left: 5px;
    cursor: pointer;
}

#icalnext {
    float: right;
    margin-right: 5px;
    cursor: pointer;
}

#calendario .icaltable {
    clear: both;
    margin: 10px auto;
}

#calendario .icaltable th,
#calendario .icaltable td {
    padding: 4px 2px;
}

#calendario .icaltable td.today {
    background: #1A5B63;
    color: #fff;
}

#calendario .icaltable td.today > a {
    color: #fff;
}

#conteudo_principal > h1 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1A5B63;
}

.detail-page-title {
    background: linear-gradient(135deg, #1A5B63 0%, #154950 100%);
    color: #fff;
    padding: 0.85rem 1.25rem;
    border-radius: 6px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.detail-page-title .icon {
    color: rgba(255,255,255,0.85);
}

.detail-page-title span {
    color: #fff;
}

/* ─── Tables ─── */
.conteudo-table td.titulo_tabela,
.conteudo-table td.subtitulo {
    width: 200px;
    background: #f7f7f7;
    text-align: right;
    font-weight: 600;
    color: #555;
    font-size: 0.85rem;
}

.conteudo-table td.subtitulo {
    background: #E0E9EA;
    color: #1A5B63;
    text-align: left;
    font-size: 0.9rem;
}

/* ─── Option grid ─── */
.opcoes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.opcoes-grid a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: #f5f5f5;
    border-radius: 8px;
    transition: all 0.15s;
    text-align: center;
    font-size: 0.85rem;
    color: #333;
}

.opcoes-grid a:hover {
    background: #E0E9EA;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.opcoes-grid a i {
    font-size: 2rem;
    color: #1A5B63;
    margin-bottom: 0.5rem;
    display: block;
}

/* ─── Footer ─── */

/* ─── Help box ─── */
#caixa_ajuda {
    display: none;
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    width: 320px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    z-index: 100;
}

#caixa_ajuda h3 {
    margin: 0;
    background: #1A5B63;
    color: #fff;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#caixa_ajuda h3 span.fechar {
    cursor: pointer;
    font-weight: bold;
}

#caixa_ajuda p {
    margin: 0;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
}

/* ─── Form overrides ─── */
.field .control .input,
.field .control .textarea,
.field .control select.input {
    font-size: 0.9rem;
}

.field .control select.input {
    height: 2.5em;
}

/* ─── Modal overrides ─── */
.modal-message {
    background: #fef2b8;
    padding: 0.5rem;
    border-radius: 4px;
}

.modal-message-message {
    background: #cce4c9;
    padding: 0.5rem;
    border-radius: 4px;
}

.modal-title h3 {
    margin: 0;
}

/* ─── Responsive ─── */
@media screen and (max-width: 1024px) {
    .aside {
        width: 0;
        min-width: 0;
        overflow: hidden;
        transform: translateX(-100%);
    }

    #main-wrapper {
        margin-left: 0;
    }
}

/* Mobile sidebar expanded state */
html.has-aside-mobile-expanded .aside {
    width: 260px;
    min-width: 260px;
    box-shadow: 4px 0 16px rgba(0,0,0,0.2);
    transform: translateX(0);
    overflow-y: auto;
}

#mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 35;
}

html.has-aside-mobile-expanded #mobile-overlay {
    display: block;
}

/* Main section padding */
.main-section {
    padding: 1.5rem;
}

/* Footer styling (Admin One style) */
footer.footer {
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 1rem 1.5rem;
    font-size: 0.85rem;
    color: #888;
}

footer.footer .level {
    margin-bottom: 0;
}

.container-fluid {
    width: 100%;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

/* ─── Mobile Responsive Tables (has-mobile-cards pattern) ─── */
@media screen and (max-width: 768px) {
    .table-wrapper.has-mobile-cards thead {
        display: none;
    }

    .table-wrapper.has-mobile-cards tfoot th {
        border: 0;
    }

    .table-wrapper.has-mobile-cards tr {
        display: block;
        border: 1px solid #dbdbdb;
        border-radius: 6px;
        margin-bottom: 1rem;
        padding: 0.5rem;
        background: #fff;
    }

    .table-wrapper.has-mobile-cards td {
        display: block;
        text-align: right;
        border: 0;
        padding: 0.5rem 0.75rem;
    }

    .table-wrapper.has-mobile-cards td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: #1A5B63;
    }

    .table-wrapper.has-mobile-cards td.is-actions-cell {
        text-align: right;
    }

    .table-wrapper.has-mobile-cards td.is-actions-cell .buttons {
        justify-content: flex-end;
    }
}

/* Card with table */
.card.has-table .card-header {
    border-bottom: 1px solid #dbdbdb;
}

.card.has-table .card-header .card-header-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ─── Hero Bar (Admin One page header) ─── */
.hero.is-hero-bar {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.hero.is-hero-bar .hero-body {
    padding: 1rem 1.5rem;
}

.hero.is-hero-bar .title {
    margin-bottom: 0;
    font-size: 1.25rem;
    color: #1A5B63;
}

.hero.is-hero-bar .buttons .button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* ─── Detail rows (label + value on same line, no inputs) ─── */
.detail-row {
    display: flex;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row-observacoes {
    flex-direction: column;
}

.detail-row-observacoes .detail-label {
    margin-bottom: 0.25rem;
}

.detail-label {
    min-width: 180px;
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.detail-value {
    flex: 1;
    color: #333;
    font-size: 0.95rem;
    word-break: break-word;
}

/* ─── Mobile responsive for hero bar ─── */
@media screen and (max-width: 768px) {
    .hero.is-hero-bar .level {
        display: block;
    }

    .hero.is-hero-bar .level-left,
    .hero.is-hero-bar .level-right {
        display: block;
    }

    .hero.is-hero-bar .level-item {
        display: block;
        margin-bottom: 0.75rem;
    }

    .hero.is-hero-bar .level-right .level-item {
        margin-bottom: 0;
    }

    .hero.is-hero-bar .buttons .button {
        margin-right: 0.25rem;
        margin-bottom: 0.25rem;
    }
}

/* ─── Bulma Helper Utilities ─── */
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mr-2 { margin-right: 0.5rem !important; }

/* ─── Utility overrides (backward compat — use Bulma helpers instead) ─── */
.ninja {
    display: none !important;
}

.limpar {
    clear: both;
}

a.vermelho {
    color: #f55;
}

/* ─── Notification badges ─── */
.notification-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FFB380;
    margin-left: 0.25rem;
}

/* ─── Sidebar user info ─── */
.sidebar-user {
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

.sidebar-user strong {
    color: #fff;
}

/* JS-managed error elements (legacy form_erro class) */
.form_erro {
    color: #f14668;
    font-size: 0.875rem;
    display: block;
}

/* ─── Form in cards ─── */
.card .card-content .field:last-child {
    margin-bottom: 0;
}

.card .card-content .field .select,
.card .card-content .field .select select {
    width: 100%;
}

.email_cliente .field.has-addons .control:last-child,
.telefone_cliente .field.has-addons .control:last-child {
    flex-shrink: 0;
}

#adicionar_telefone,
#adicionar_email {
    margin-top: 0.25rem;
}

/* ─── Toggle switch ─── */
.toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    gap: 0.75rem;
}

.toggle-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: #ccc;
    border-radius: 24px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: #1A5B63;
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 0.9rem;
    color: #333;
}

/* ─── Ajuda button in titlebar ─── */
#ajuda_floating_btn {
    color: #1A5B63;
}

#ajuda_floating_btn:hover {
    color: #134248;
}

/* ─── Chart.js canvases ─── */
.card-content canvas {
    max-height: 400px;
    width: 100% !important;
}

/* ─── Bulma primary color override ─── */
.button {
    font-size: 0.82em;
    color: #FFF;
}

.button.is-danger {
    background-color: hsl(347.9, 65.6%, 55.5%);
    border: 1px solid hsl(347.8, 52.7%, 43.9%);
}

.button.is-primary {
    /* background-color: #1A5B63; */
    background-color: #298A95;
    border: 1px solid #1A5B63;
}

.button.is-primary:hover {
    background-color: #1A5B63;
}

.button.is-danger:hover {
    background-color: hsl(347.8, 52.7%, 43.9%);
}

.button.is-primary.is-focused,
.button.is-primary:focus {
    border-color: transparent;
}

.button.is-primary.is-focused:not(:active),
.button.is-primary:focus:not(:active) {
    box-shadow: 0 0 0 .125em rgba(26, 91, 99, .25);
}

.button.is-primary.is-active,
.button.is-primary:active {
    background-color: #15494F;
    border-color: transparent;
}

.button.is-primary.is-light {
    background-color: #e8f4f5;
    color: #1A5B63;
}

.is-loading { background-color: #3B757C !important; border-color: #3B757C !important; }

/* ─── Pagination ─── */
.pagination {
    margin-top: 1.5rem;
}

.pagination-list .pagination-link {
    font-size: 0.8rem;
}

.pagination-link.is-current,
.pagination-link.is-current:hover {
    background-color: #1A5B63;
    border-color: #1A5B63;
}

/* ─── Legacy form widgets (not refactored — still uses custom HTML + CSS) ─── */

#conteudo_principal form fieldset,
.form_suspenso > form > fieldset {
    margin: 1.5rem 0 0 0;
    background: #fff;
    border-radius: 6px;
}

#conteudo_principal form fieldset legend {
    padding: 0.75rem 1rem;
    background-color: #fff;
    width: 100%;
    border-bottom: 1px solid #dbdbdb;
    box-shadow: var(--bulma-card-header-shadow);
    font-weight: 700;
    border-start-end-radius: 0.75rem;
    border-start-start-radius: 0.75rem;
    box-shadow: 0 0.125em 0.25em hsla(221deg,14%,4%,0.1);
}

#conteudo_principal .internal > div.control {
    padding: 0.75rem 1rem;
    box-shadow: 0 0.125em 0.25em hsla(221deg,14%,4%,0.1);
}

#conteudo_principal form fieldset.interno {
    margin: 0.5rem;
}

.form_suspenso > form > fieldset > legend {
    margin: 0 0 0 1rem;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    font-weight: 600;
    color: #1A5B63;
    border: 1px solid #dbdbdb;
    border-radius: 4px;
    background: #fff;
}

#conteudo_principal form fieldset.tres_colunas {
    display: inline-block;
    width: 234px;
    height: 150px;
    margin: 10px 0 0 5px;
    padding: 0;
    border-bottom: 1px solid #CCC;
}

#conteudo_principal form fieldset.tres_colunas legend {
    margin: 0 0 0 10px;
    border: 0;
}

#conteudo_principal form fieldset.tres_colunas label {
    width: 100px;
    text-align: center;
    padding: 5px;
    border: 1px solid #555;
    border-radius: 3px;
    margin: 0 0 5px 53px;
    display: block;
    background-image: url(../img/icones/sim.png);
    background-repeat: no-repeat;
    background-position: 3px 3px;
    background-color: #BBD5A1;
    cursor: pointer;
    height: 25px;
}

#conteudo_principal form fieldset.tres_colunas label.desativado {
    background-image: url(../img/icones/nao.png);
    background-color: #D88585;
}

#conteudo_principal form fieldset.tres_colunas label input[type=checkbox] {
    display: none;
}

#conteudo_principal form fieldset.tres_colunas li,
#conteudo_principal form fieldset.tres_colunas ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.opcoes_selecionaveis p {
    display: inline-block;
    margin: 0;
}

.opcoes_selecionaveis p label {
    display: block;
    width: auto;
    background-color: #DDD;
    margin: 0 10px 10px 0;
    padding: 4px 8px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.opcoes_selecionaveis p label.selecionado {
    background-color: #18555C;
    color: #FFF;
}

.opcoes_selecionaveis input[type=checkbox] {
    display: none;
}

.tipo-garantia.garantia-meses {
    margin: 0 0 10px 118px;
}
.tipo-garantia.garantia-meses .button {
    min-width: 90px;
    height: 24px;
    padding: 2px 6px;
}

.tipo-garantia.buttons.has-addons {
    margin: 0 0 0 0;
    font-size: 15px;
}
.tipo-garantia p {
    margin: 0;
}
.tipo-garantia input[type=radio] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.tipo-garantia .button {
    border: 1px solid #ccc;
    background: #ddd;
    color: #333;
    border-radius: 0;
    margin: 0;
    justify-content: center;
    font-size: 14px;
    padding: 4px 8px;
}
.tipo-garantia.buttons.has-addons p:first-child .button {
    border-end-start-radius: 4px;
    border-start-start-radius: 4px;
    border-end-end-radius: 0;
    border-start-end-radius: 0;
    font-size: 14px;
}
.tipo-garantia.buttons.has-addons p:last-child .button {
    border-end-start-radius: 0;
    border-start-start-radius: 0;
    border-end-end-radius: 4px;
    border-start-end-radius: 4px;
}
.tipo-garantia .button.is-active {
    background-color: #18555C;
    border-color: #18555C;
    color: #fff;
}

.campos_parcelamento {
    border: 1px solid #E4E2E1;
    margin: 0 100px 10px 20px;
}

#campos_parcelamento {
    clear: both;
    padding: 10px 0 0 0;
}

.titulo_garantias_servicos {
    font-weight: bold;
    padding: 2em 0 0 1em;
}

#link_novo_servico {
    display: block;
    float: right;
    font-size: 11px;
    margin: -13px 5px 0 0;
    color: #18555c;
    text-decoration: underline;
}

#form_certificates_variables_list {
    border: 1px solid #E4E2E1;
    margin-top: 0.5em;
    padding: 1em;
}

#form_certificates_variables_list > ul > li {
    font-size: 14px;
}

.form_suspenso > form > fieldset {
    padding: 10px;
}

.form_suspenso > form > fieldset > label {
    margin: 0;
}

.form_suspenso > form > fieldset > p > label {
    display: block;
    font-size: 12px;
}

@media (max-width: 930px) {
    #link_novo_servico {
        float: none;
        width: 100%;
        padding: 24px 0 0 15px;
    }

    .remover_campo {
        position: relative;
        top: 10px;
    }

    .data-garantia {
        margin: 0 0 10px 0.5em;
    }

    .data-garantia > p > label {
        width: 90px;
        height: 30px;
        margin: 5px 8px;
        padding-top: 5px;
    }
}

/* ─── Calendar (FullCalendar overrides) ─── */
.fc-widget-content, .fc-widget-header {
    padding: 0 !important;
}

th.fc-day-header {
    padding: 5px !important;
}

.fc-toolbar {
    height: auto;
    min-height: 50px;
}

.fc-day {
    border: 1px solid #DDD !important;
}

.fc-center h2 {
    background-color: transparent !important;
    color: #333 !important;
    font-size: 20px !important;
}

.fc-content-skeleton td,
td.fc-event-container {
    background-color: transparent !important;
}

div.fc-content-skeleton table td {
    border-left: 1px solid #DDD !important;
    border-right: 1px solid #DDD !important;
    border-bottom: 0 !important;
}

td.fc-day-top {
    border-top: 1px solid #DDD !important;
    border-bottom: 0 !important;
}

/* Calendar buttons like system buttons */
.fc-button {
    font-size: 0.82em !important;
    height: auto !important;
    padding: 0.4em 0.8em !important;
    border-radius: 4px !important;
    border: 1px solid #1A5B63 !important;
    background-color: #298A95 !important;
    color: #FFF !important;
    text-shadow: none !important;
    box-shadow: none !important;
    background-image: none !important;
}

.fc-button:hover {
    background-color: #1A5B63 !important;
}

.fc-button.fc-state-active {
    background-color: #15494F !important;
    border-color: transparent !important;
    box-shadow: 0 0 0 .125em rgba(26, 91, 99, .25) !important;
}

/* Calendar legend tag colors */
.tag.is-execucao {
    background-color: #1A5B63;
    color: #fff;
}

.tag.is-inspecao {
    background-color: #074D88;
    color: #fff;
}

.tag.is-reforco {
    background-color: #989800;
    color: #fff;
}

.tag.is-cancelado {
    background-color: #EE7777;
    color: #fff;
}

/* ─── Login page styles ─── */
.hero {
    background-color: #1E6A73;
}

.hero .hero-foot {
    background-color: rgba(0, 0, 0, 0.2);
}

.hero .hero-foot p {
    color: #fff;
}

.hero .hero-foot a {
    color: #fff;
    text-decoration: underline;
}

.box {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-card {
    max-width: 500px;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-card-body p {
    font-size: 1rem;
    line-height: 1.6;
}

/* ─── Online form (ficha_online) ─── */
.kbw-signature {
    height: 200px;
}

.kbw-signature {
	-ms-touch-action: none;
}

.kbw-signature-disabled {
	opacity: 0.35;
}

#sign {
    width: 100%;
    height: 152px;
	display: block;
	border: 1px solid #a0a0a0;
    margin: 0 auto;
}

.kbw-signature canvas {
    width: 100%;
    height: 150px;
	display: block;
}

/* ─── Admin One Form Horizontal Fields ─── */
.field.is-horizontal {
    margin-bottom: 0.75rem;
}

.field.is-horizontal .field-label {
    padding-top: 0.375em;
    flex-shrink: 0;
}

.field.is-horizontal .field-label .label {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.field.is-horizontal .field-body .field {
    margin-bottom: 0;
}

.field.is-horizontal .field-body .field + .field {
    margin-left: 1rem;
}

.field.is-horizontal .field-body .field.is-narrow {
    flex-shrink: 0;
}

.field.is-horizontal .field-body .field .control {
    width: 100%;
}

.field.is-horizontal .select.is-fullwidth,
.field.is-horizontal .select.is-fullwidth select {
    width: 100%;
}

.field.is-horizontal .field-body .help {
    margin-top: 0.25rem;
}

.email_cliente,
.telefone_cliente {
    margin-bottom: 0.5rem;
}

.control.has-icons-right .icon.is-right .remover_campo {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

@media (max-width: 930px) {
    .control.has-icons-right .icon.is-right .remover_campo {
        align-items: normal;
    }
}

@media screen and (max-width: 768px) {
    .field.is-horizontal {
        display: block;
    }

    .field.is-horizontal .field-label {
        padding-top: 0;
        margin-bottom: 0.25rem;
        flex-shrink: 1;
    }

    .field.is-horizontal .field-body {
        display: block;
    }

    .field.is-horizontal .field-body .field + .field {
        margin-left: 0;
        margin-top: 0.75rem;
    }

    .field.is-horizontal .field-body .field.is-narrow {
        width: auto;
    }

}

/* Accordion for inspections/executions */
.accordion-container {
    margin-top: 0.75rem;
}

.accordion-item.card {
    border: 1px solid #dbdbdb;
    border-radius: 4px;
    box-shadow: none;
    transition: box-shadow 0.2s ease;
}

.accordion-item.card:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.accordion-item .card-header {
    background-color: #f5f5f5;
    border-bottom: 1px solid #dbdbdb;
    border-radius: 4px 4px 0 0;
}

.accordion-item .card-header-title {
    font-size: 0.95rem;
    color: #363636;
}

.accordion-item .card-header-icon {
    color: #7a7a7a;
    transition: transform 0.2s ease;
}

.accordion-item .card-content {
    padding: 1rem;
    background-color: #fff;
}

.accordion-item .accordion-body .field {
    margin-bottom: 0.75rem;
}

@media screen and (max-width: 768px) {
    .accordion-item .card-header-title {
        font-size: 0.85rem;
        padding: 0.5rem;
    }

    .accordion-item .card-content {
        padding: 0.75rem;
    }

    .buttons-mobile-stack {
        flex-direction: column;
        width: 100%;
    }

    .buttons-mobile-stack .level-left,
    .buttons-mobile-stack .level-right {
        width: 100%;
    }

    .buttons-mobile-stack .level-item {
        width: 100%;
    }

    .buttons-mobile-stack .level-item > * {
        width: 100%;
    }

    .buttons-mobile-stack .buttons {
        flex-direction: column;
        width: 100%;
    }

    .buttons-mobile-stack .button {
        width: 100%;
    }

    .buttons-mobile-stack .field,
    .buttons-mobile-stack .control {
        width: 100%;
    }

    .field.is-grouped.is-grouped-right,
    .field.is-grouped.is-grouped-right .control,
    .field.is-grouped.is-grouped-right .button {
        width: 100%;
    }
}


