/* 12/09/2026 00:10 - Select2 tema Genesis (seletores sibling, select2.min.js) @filipemontt */
/* 11/09/2026 16:10 - gm-btn-blue (ex.: desconto na OS) @filipemontt */
/* 03/09/2026 19:15 - cards da OS (Info) + peças/serviços clean @filipemontt */
/* 03/09/2026 18:27 - toque no item do checklist da loja (tablet) @filipemontt */
/* Genesis Motors - Design System DRIVO - 02/07/2026 sidebar layout @filipemontt */
/* 01/09/2026 19:20 - menu mobile: drawer z-index 80, backdrop 70 @filipemontt */
/* 02/07/2026 - tema primary: vermelho sutil @filipemontt */
:root {
    --gm-primary: #C46161;
    --gm-primary-dark: #A84F4F;
    --gm-primary-light: #FDEAEA;
    --gm-primary-muted: #F5D4D4;
    --gm-mint: #A8E6CF;
    --gm-blue: #B8D4F0;
    --gm-bg: #F5F6FA;
    --gm-card: #FFFFFF;
    --gm-text: #1E293B;
    --gm-muted: #64748B;
    --gm-radius: 1rem;
}

.gm-body { background: var(--gm-bg); color: var(--gm-text); font-family: 'Inter', system-ui, sans-serif; }
.gm-text-primary { color: var(--gm-primary); }
.text-gm-primary { color: var(--gm-primary); }
.text-gm-primary-dark { color: var(--gm-primary-dark); }
.bg-gm-primary { background-color: var(--gm-primary); }
.bg-gm-primary-light { background-color: var(--gm-primary-light); }
.bg-gm-primary-muted { background-color: var(--gm-primary-muted); }
.border-gm-primary-light { border-color: var(--gm-primary-light); }
.hover\:bg-gm-primary-light:hover { background-color: var(--gm-primary-light); }
.hover\:bg-gm-primary-muted:hover { background-color: var(--gm-primary-muted); }
.hover\:border-gm-primary:hover { border-color: var(--gm-primary); }
.hover\:text-gm-primary:hover { color: var(--gm-primary); }
.bg-gm-primary-light\/40 { background-color: color-mix(in srgb, var(--gm-primary-light) 40%, transparent); }
.bg-gm-primary-light\/50 { background-color: color-mix(in srgb, var(--gm-primary-light) 50%, transparent); }
.hover\:bg-gm-primary-light\/40:hover { background-color: color-mix(in srgb, var(--gm-primary-light) 40%, transparent); }
.gm-accent { accent-color: var(--gm-primary); }

/* 02/09/2026 17:50 - switch padrão do sistema (boolean on/off) @filipemontt */
.gm-switch {
    display: inline-flex;
    align-items: center;
    gap: .625rem;
    cursor: pointer;
    user-select: none;
}
.gm-switch-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.gm-switch-track {
    position: relative;
    width: 2.75rem;
    height: 1.5rem;
    flex-shrink: 0;
    background: #D1D5DB;
    border-radius: 9999px;
    transition: background .2s;
}
.gm-switch-track::after {
    content: '';
    position: absolute;
    top: .125rem;
    left: .125rem;
    width: 1.25rem;
    height: 1.25rem;
    background: #fff;
    border-radius: 9999px;
    transition: transform .2s;
}
.gm-switch-input:checked + .gm-switch-track {
    background: var(--gm-primary);
}
.gm-switch-input:checked + .gm-switch-track::after {
    transform: translateX(1.25rem);
}
.gm-switch-input:focus-visible + .gm-switch-track {
    box-shadow: 0 0 0 3px rgba(196, 97, 97, .25);
}
.gm-switch-label { font-size: .875rem; color: var(--gm-text); }
.gm-switch.is-disabled,
.gm-switch:has(.gm-switch-input:disabled) {
    opacity: .6;
    pointer-events: none;
    cursor: default;
}
/* 03/09/2026 18:27 - toque no item do checklist da loja (tablet, sem checkbox escondido) @filipemontt */
.lc-tap {
    border: 0;
    background: transparent;
    text-align: left;
    width: 100%;
    min-height: 2.75rem;
    padding: .35rem 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.gm-switch-track.is-on { background: var(--gm-primary); }
.gm-switch-track.is-on::after { transform: translateX(1.25rem); }
.lc-st button {
    min-height: 2.75rem;
    padding: .5rem .75rem;
    touch-action: manipulation;
}

/* 02/09/2026 18:15 - radio padrão (PF/PJ e escolhas exclusivas) @filipemontt */
.gm-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.25rem;
}
.gm-radio {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    user-select: none;
    font-size: .875rem;
    color: var(--gm-text);
}
.gm-radio-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.gm-radio-ui {
    position: relative;
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    border: 2px solid #D1D5DB;
    border-radius: 9999px;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.gm-radio-ui::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 9999px;
    background: var(--gm-primary);
    transform: scale(0);
    transition: transform .15s;
}
.gm-radio-input:checked + .gm-radio-ui {
    border-color: var(--gm-primary);
}
.gm-radio-input:checked + .gm-radio-ui::after {
    transform: scale(1);
}
.gm-radio-input:focus-visible + .gm-radio-ui {
    box-shadow: 0 0 0 3px rgba(196, 97, 97, .25);
}

/* Logo Genesis Motors — 02/07/2026 @filipemontt */
.gm-logo {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
.gm-logo--header { height: 2.25rem; max-width: 11rem; }
.gm-logo--login { height: 4rem; max-width: 18rem; margin-left: auto; margin-right: auto; }
.gm-logo--print { height: 3.25rem; max-width: 15rem; }
.gm-logo--print-sm { height: 2rem; max-width: 10rem; margin: 0 auto; }
.gm-logo--inline {
    display: inline-block;
    height: 1.125rem;
    max-width: 7rem;
    vertical-align: middle;
    margin: 0 .2rem;
}

/* Autocomplete endereço Mapbox — 02/07/2026 @filipemontt */
.gm-address-wrap { position: relative; }
.gm-address-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 60;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    max-height: 220px;
    overflow-y: auto;
}
.gm-address-suggest.hidden { display: none; }
.gm-address-suggest-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: .625rem .875rem;
    font-size: .8125rem;
    line-height: 1.35;
    color: #334155;
    border: none;
    background: transparent;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
}
.gm-address-suggest-item:last-child { border-bottom: none; }
.gm-address-suggest-item:hover,
.gm-address-suggest-item:focus {
    background: #f8fafc;
    outline: none;
}

.gm-card {
    background: var(--gm-card);
    border-radius: var(--gm-radius);
    box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
}

.gm-card-purple { background: linear-gradient(135deg, #FFF8F8 0%, #FDEAEA 100%); }
.gm-card-mint { background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%); }
.gm-card-blue { background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%); }

.gm-label { display: block; font-size: .8125rem; font-weight: 500; color: var(--gm-muted); margin-bottom: .375rem; }
.gm-input {
    width: 100%; padding: .625rem 1rem; border: 1px solid #E2E8F0; border-radius: .75rem;
    font-size: .875rem; transition: border-color .2s, box-shadow .2s; background: #fff;
}
.gm-input:focus { outline: none; border-color: var(--gm-primary); box-shadow: 0 0 0 3px rgba(196, 97, 97, .15); }

/* 12/09/2026 00:10 - Select2 tema Genesis (sem containerCssClass — select2.min.js) @filipemontt */
select.gm-client-select + .select2-container--default,
select[name="client_id"] + .select2-container--default {
    width: 100% !important;
    font-family: inherit;
}
select.gm-client-select + .select2-container--default .select2-selection--single,
select[name="client_id"] + .select2-container--default .select2-selection--single {
    min-height: 2.625rem;
    height: auto;
    border: 1px solid #E2E8F0;
    border-radius: .75rem;
    background: #fff;
    padding: .5625rem 2.5rem .5625rem 1rem;
    transition: border-color .2s, box-shadow .2s;
}
select.gm-client-select + .select2-container--default .select2-selection--single .select2-selection__rendered,
select[name="client_id"] + .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0;
    line-height: 1.35;
    color: var(--gm-text);
    font-size: .875rem;
    font-weight: 400;
}
select.gm-client-select + .select2-container--default .select2-selection--single .select2-selection__placeholder,
select[name="client_id"] + .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #94A3B8;
}
select.gm-client-select + .select2-container--default .select2-selection--single .select2-selection__clear,
select[name="client_id"] + .select2-container--default .select2-selection--single .select2-selection__clear {
    color: var(--gm-muted);
    font-size: 1.125rem;
    font-weight: 400;
    margin-right: .35rem;
    line-height: 1;
}
select.gm-client-select + .select2-container--default .select2-selection--single .select2-selection__clear:hover,
select[name="client_id"] + .select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: var(--gm-primary-dark);
}
select.gm-client-select + .select2-container--default .select2-selection--single .select2-selection__arrow,
select[name="client_id"] + .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    top: 0;
    right: .75rem;
    width: 1.25rem;
}
select.gm-client-select + .select2-container--default .select2-selection--single .select2-selection__arrow b,
select[name="client_id"] + .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--gm-muted) transparent transparent transparent;
    border-width: 5px 5px 0 5px;
    margin-left: -5px;
    margin-top: -2px;
}
select.gm-client-select + .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b,
select[name="client_id"] + .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent var(--gm-muted) transparent;
    border-width: 0 5px 5px 5px;
    margin-top: -4px;
}
select.gm-client-select + .select2-container--default.select2-container--focus .select2-selection--single,
select.gm-client-select + .select2-container--default.select2-container--open .select2-selection--single,
select[name="client_id"] + .select2-container--default.select2-container--focus .select2-selection--single,
select[name="client_id"] + .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--gm-primary);
    box-shadow: 0 0 0 3px rgba(196, 97, 97, .15);
    outline: none;
}
select.gm-client-select + .select2-container--default.select2-container--disabled .select2-selection--single,
select[name="client_id"] + .select2-container--default.select2-container--disabled .select2-selection--single {
    background: #F8FAFC;
    opacity: .65;
    cursor: not-allowed;
}
.select2-dropdown {
    z-index: 9999;
    border: 1px solid #E2E8F0;
    border-radius: .75rem;
    background: var(--gm-card);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .08);
    overflow: hidden;
    margin-top: .25rem;
    padding: 0;
}
.select2-dropdown .select2-search--dropdown {
    padding: .75rem;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
}
.select2-dropdown .select2-search--dropdown .select2-search__field {
    width: 100%;
    border: 1px solid #E2E8F0;
    border-radius: .75rem;
    padding: .5625rem 1rem;
    font-size: .875rem;
    color: var(--gm-text);
    background: #fff;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.select2-dropdown .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--gm-primary);
    box-shadow: 0 0 0 3px rgba(196, 97, 97, .15);
}
.select2-dropdown .select2-results__options {
    max-height: 16rem;
    padding: .35rem 0;
}
.select2-dropdown .select2-results__option {
    padding: .625rem 1rem;
    font-size: .875rem;
    color: var(--gm-text);
}
.select2-dropdown .select2-results__option--highlighted.select2-results__option--selectable {
    background: var(--gm-primary-light);
    color: var(--gm-primary-dark);
}
.select2-dropdown .select2-results__option--selected {
    background: var(--gm-primary-muted);
    color: var(--gm-primary-dark);
    font-weight: 600;
}
.select2-dropdown .select2-results__option[aria-disabled=true] {
    color: #94A3B8;
}
.select2-dropdown .select2-results__message {
    padding: .75rem 1rem;
    font-size: .8125rem;
    color: var(--gm-muted);
}
.select2-dropdown .select2-results__option--loading {
    color: var(--gm-muted);
}

.gm-btn-primary {
    background: var(--gm-primary); color: #fff; padding: .625rem 1.25rem; border-radius: .75rem;
    font-weight: 600; font-size: .875rem; transition: opacity .2s; border: none; cursor: pointer;
}
.gm-btn-primary:hover { opacity: .9; }
/* 03/09/2026 18:50 - botão primário desabilitado visível (SMTP off) @filipemontt */
.gm-btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.gm-btn-secondary {
    background: #fff; color: var(--gm-text); padding: .625rem 1.25rem; border-radius: .75rem;
    font-weight: 500; font-size: .875rem; border: 1px solid #E2E8F0; cursor: pointer;
}
.gm-btn-secondary:disabled { opacity: .45; cursor: not-allowed; }
.gm-btn-danger { background: #FEE2E2; color: #DC2626; padding: .5rem 1rem; border-radius: .75rem; font-size: .8125rem; border: none; cursor: pointer; }
.gm-btn-success {
    background: #10B981; color: #fff; padding: .625rem 1.25rem; border-radius: .75rem;
    font-weight: 600; font-size: .875rem; transition: opacity .2s; border: none; cursor: pointer;
}
.gm-btn-success:hover { opacity: .9; }
.gm-btn-blue {
    background: #2563EB; color: #fff; padding: .625rem 1.25rem; border-radius: .75rem;
    font-weight: 600; font-size: .875rem; transition: opacity .2s; border: none; cursor: pointer;
}
.gm-btn-blue:hover { opacity: .9; }
.gm-btn-blue:disabled { opacity: .45; cursor: not-allowed; }
.gm-btn-danger-solid {
    background: #DC2626; color: #fff; padding: .625rem 1.25rem; border-radius: .75rem;
    font-weight: 600; font-size: .875rem; transition: opacity .2s; border: none; cursor: pointer;
}
.gm-btn-danger-solid:hover { opacity: .9; }

.gm-pill { display: inline-flex; align-items: center; padding: .25rem .75rem; border-radius: 9999px; font-size: .75rem; font-weight: 600; }
.gm-pill-up { background: #D1FAE5; color: #059669; }
.gm-pill-down { background: #FEE2E2; color: #DC2626; }
.gm-pill-neutral { background: #F1F5F9; color: #64748B; }

.gm-nav-pill { padding: .5rem .75rem; border-radius: .75rem; transition: background .2s; }
.gm-nav-pill.active { background: var(--gm-primary-light); color: var(--gm-primary); }

/* Layout app — sidebar + topbar 02/07/2026 @filipemontt */
.gm-app { background: var(--gm-bg); }
.gm-topbar {
    margin: .75rem .75rem 0;
    border-radius: var(--gm-radius);
    z-index: 30;
    position: relative;
}
.gm-layout {
    gap: 0;
    padding: .75rem;
    padding-top: .75rem;
    max-width: 1800px;
    width: 100%;
    margin: 0 auto;
}
.gm-main {
    max-width: 100%;
}

.gm-sidebar {
    width: 15.5rem;
    flex-shrink: 0;
    align-self: flex-start;
    position: sticky;
    top: .75rem;
    max-height: calc(100vh - 5.5rem);
    z-index: 20;
}
.gm-sidebar-inner {
    background: var(--gm-card);
    border-radius: var(--gm-radius);
    box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
    padding: 1rem .75rem;
    overflow-y: auto;
    max-height: calc(100vh - 5.5rem);
}
.gm-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: 0 0 .75rem;
}
.gm-sidebar-title {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gm-muted);
    padding: 0 .5rem;
    margin: 0;
}
.gm-sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    background: transparent;
    border-radius: .75rem;
    color: var(--gm-muted);
    cursor: pointer;
}
.gm-sidebar-close:hover { background: #F8FAFC; color: var(--gm-text); }
.gm-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}
.gm-sidebar-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem .85rem;
    border-radius: .75rem;
    font-size: .875rem;
    font-weight: 500;
    color: #64748B;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.gm-sidebar-link i { font-size: 1.2rem; width: 1.35rem; text-align: center; flex-shrink: 0; }
.gm-sidebar-link:hover { background: #F8FAFC; color: var(--gm-text); }
.gm-sidebar-link.active {
    background: var(--gm-primary-light);
    color: var(--gm-primary);
    font-weight: 600;
}
.gm-sidebar-logout {
    margin-top: .35rem;
    border-top: 1px solid #F1F5F9;
    border-radius: 0 0 .75rem .75rem;
    color: #94A3B8;
}
.gm-sidebar-logout:hover {
    background: #FEF2F2;
    color: #DC2626;
}
.gm-sidebar-backdrop {
    display: none;
}

@media (max-width: 767px) {
    .gm-layout { padding: .5rem; }
    .gm-topbar { margin: .5rem .5rem 0; }
    /* 01/09/2026 19:20 - drawer acima do backdrop; 100dvh evita painel no fundo @filipemontt */
    .gm-sidebar-toggle { touch-action: manipulation; }
    .gm-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: 17rem;
        height: 100dvh;
        max-height: 100dvh;
        align-self: stretch;
        z-index: 80;
        transform: translate3d(-100%, 0, 0);
        transition: transform .25s ease;
        padding: 0;
    }
    .gm-sidebar.open { transform: translate3d(0, 0, 0); }
    .gm-sidebar-inner {
        height: 100%;
        max-height: none;
        border-radius: 0;
        padding-top: 1.25rem;
    }
    .gm-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15,23,42,.4);
        z-index: 70;
        pointer-events: none;
    }
    .gm-sidebar-backdrop.is-armed { pointer-events: auto; }
    .gm-main { padding: .5rem !important; }
    .lc-save-bar {
        position: sticky;
        bottom: 0;
        z-index: 10;
        background: var(--gm-bg);
        padding: .75rem 0 .25rem;
        margin-left: -.25rem;
        margin-right: -.25rem;
        padding-left: .25rem;
        padding-right: .25rem;
    }
    .lc-save-bar .gm-btn-primary { width: 100%; min-height: 2.75rem; }
}

@media (min-width: 768px) {
    .gm-sidebar-toggle { display: none !important; }
}

.gm-offcanvas-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.4); z-index: 40; }
.gm-offcanvas {
    position: fixed; top: 0; right: 0; height: 100%; width: 50%; min-width: 400px; max-width: 700px;
    background: #fff; z-index: 50; box-shadow: -4px 0 24px rgba(0,0,0,.1);
    transform: translateX(100%); transition: transform .3s ease;
}
.gm-offcanvas.open { transform: translateX(0); }
.gm-offcanvas-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    padding-bottom: 3.5rem;
    -webkit-overflow-scrolling: touch;
}
/* 02/09/2026 01:35 - abas sticky no offcanvas da OS @filipemontt */
.os-tabs-nav {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #fff;
    margin: -1.25rem -1.25rem 1rem;
    padding: .75rem 1.25rem .75rem;
    border-bottom: 1px solid #E2E8F0;
}
.os-tabs-nav .os-tab-btn { white-space: nowrap; }
.gm-offcanvas { display: flex; flex-direction: column; }

/* 03/09/2026 19:15 - cards agrupados na aba Info da OS @filipemontt */
.os-info-cards {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
}
.os-info-card {
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 1rem;
    padding: 1.125rem 1.25rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}
/* 11/09/2026 15:25 - card interno (observações que não vão ao cliente) @filipemontt */
.os-info-card-internal {
    border-color: #fca5a5;
    background: #fffbfb;
    box-shadow: 0 1px 3px rgba(239, 68, 68, .08);
}
.os-info-card-fields {
    display: flex;
    flex-direction: column;
    gap: .875rem;
}
.os-info-card-mecanico {
    display: flex;
    align-items: flex-start;
    gap: .875rem;
}
.os-info-mec-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .75rem;
    background: #f8fafc;
    border: 1px solid #e8ecf1;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.gm-table { width: 100%; border-collapse: collapse; }
.gm-table th { text-align: left; padding: .75rem 1rem; font-size: .75rem; font-weight: 600; color: var(--gm-muted); text-transform: uppercase; letter-spacing: .05em; }
.gm-table td { padding: .875rem 1rem; border-top: 1px solid #F1F5F9; font-size: .875rem; }
.gm-table tr:hover td { background: #FAFBFC; cursor: pointer; }
/* 07/08/2026 20:04 - OS canceladas transparentes + greyscale na lista @filipemontt */
.gm-table tr.os-row-cancelado td { opacity: .45; filter: grayscale(1); }
.gm-table tr.os-row-cancelado:hover td { background: #F8FAFC; }

.status-agendado { background: #DBEAFE; color: #2563EB; }

/* 01/09/2026 18:10 - dia bloqueado na Agenda de vistoria (calendário vermelho) @filipemontt */
.gm-cal-day-blocked,
.gm-cal-day-blocked .fc-daygrid-day-frame {
    background: repeating-linear-gradient(-45deg, #fee2e2 0 8px, #fecaca 8px 16px) !important;
}
.gm-cal-day-blocked .fc-daygrid-day-number {
    color: #b91c1c !important;
    font-weight: 700;
}
/* 02/09/2026 03:16 - agendamento com data passada: cinza transparente + badge @filipemontt */
.fc-event.gm-cal-evt-passado {
    background: rgba(148, 163, 184, 0.35) !important;
    border-color: rgba(148, 163, 184, 0.25) !important;
    color: #64748b !important;
    opacity: 0.55;
    box-shadow: none !important;
}
.fc-event.gm-cal-evt-passado .fc-event-main,
.fc-event.gm-cal-evt-passado .fc-event-title {
    color: #475569 !important;
}
.gm-cal-passou-badge {
    display: inline-block;
    margin-top: 2px;
    padding: 0 .4rem;
    border-radius: 9999px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.5;
    text-transform: uppercase;
    background: rgba(100, 116, 139, 0.9);
    color: #fff;
}
.status-em_andamento { background: #FEF3C7; color: #D97706; }
.status-efetuado { background: #D1FAE5; color: #059669; }
.status-atrasado { background: #FEE2E2; color: #DC2626; }
.status-cancelado { background: #F1F5F9; color: #64748B; }
.status-recomendado { background: #FDEAEA; color: #A84F4F; }
.status-pendente { background: #FEF3C7; color: #D97706; }
.status-pago, .status-recebido { background: #D1FAE5; color: #059669; }

.gm-badge { padding: .2rem .6rem; border-radius: 9999px; font-size: .7rem; font-weight: 600; }

input.gm-money { text-align: right; font-variant-numeric: tabular-nums; }
input.gm-money::placeholder { text-align: right; }

@media (max-width: 768px) {
    .gm-offcanvas { width: 100%; min-width: unset; }
}

.os-btn-print {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .625rem 1.25rem;
    border-radius: .75rem;
    font-weight: 600;
    font-size: .875rem;
    border: 1px solid #F5E6A8;
    background: #FFF9E6;
    color: #8B6914;
    cursor: pointer;
    transition: opacity .15s, background .15s;
}
.os-btn-print:hover { background: #FFF3CC; }
/* 09/09/2026 17:50 - dropdown Enviar da OS @filipemontt */
.os-btn-send {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .625rem 1.25rem;
    border-radius: .75rem;
    font-weight: 600;
    font-size: .875rem;
    border: 1px solid #C6E6D5;
    background: #EAF8F0;
    color: #1B7A4A;
    cursor: pointer;
    transition: opacity .15s, background .15s;
}
.os-btn-send:hover { background: #D8F0E4; }
.os-send-menu {
    position: absolute;
    right: 0;
    top: calc(100% + .35rem);
    z-index: 40;
    min-width: 14rem;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: .75rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .12);
    padding: .35rem;
}
.os-send-item {
    display: flex;
    width: 100%;
    align-items: center;
    gap: .5rem;
    text-align: left;
    padding: .55rem .7rem;
    border-radius: .55rem;
    font-size: .8125rem;
    color: #374151;
    background: transparent;
    border: 0;
    cursor: pointer;
}
.os-send-item:hover { background: #F3F4F6; }
.os-btn-history {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .625rem 1.25rem;
    border-radius: .75rem;
    font-weight: 600;
    font-size: .875rem;
    border: 1px solid #B8D9F0;
    background: #E8F4FC;
    color: #2563A8;
    cursor: pointer;
    transition: opacity .15s, background .15s;
}
.os-btn-history:hover { background: #D6EBFA; }
/* 01/09/2026 18:30 - Pedir ajuda à IA no header da OS @filipemontt */
.os-btn-ai {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .625rem 1.25rem;
    border-radius: .75rem;
    font-weight: 600;
    font-size: .875rem;
    border: 1px solid #F5C6C6;
    background: #FDEAEA;
    color: #A84F4F;
    cursor: pointer;
    transition: opacity .15s, background .15s;
}
.os-btn-ai:hover { background: #F8D4D4; }

/* 03/09/2026 19:15 - peças/serviços clean, cards mais separados @filipemontt */
.os-items-section { margin-top: .25rem; }
.os-items-toolbar {
    display: flex;
    flex-wrap: nowrap;
    gap: .625rem;
    margin: 0;
    padding: .875rem 1rem;
    border-bottom: 1px solid #e8ecf1;
    background: #fff;
}
.os-items-toolbar .os-btn-add-peca,
.os-items-toolbar .os-btn-add-serv {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    width: 100%;
}
.os-btn-add-peca,
.os-btn-add-serv {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    min-height: 2.75rem;
    padding: .625rem 1rem;
    border-radius: .75rem;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    color: #334155;
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: background .15s, border-color .15s, transform .1s;
}
.os-btn-add-peca:hover,
.os-btn-add-serv:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}
.os-btn-add-peca:active,
.os-btn-add-serv:active { transform: scale(.98); }

.os-receipt {
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 1rem;
    overflow: hidden;
    font-variant-numeric: tabular-nums;
}
.os-section-title {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #111111;
}
.os-receipt-lines {
    min-height: 2.5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
    background: #f8fafc;
}
.os-receipt-lines:empty {
    padding: 0;
    background: #fff;
}
.os-receipt-lines:empty::before {
    content: 'Nenhum item — use os botões acima para adicionar';
    display: block;
    padding: 1.25rem 1rem;
    text-align: center;
    font-size: .75rem;
    color: #9ca3af;
    font-style: italic;
    background: #fff;
}
.os-receipt-line,
.os-item-card {
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    overflow: hidden;
}
.os-item-card .os-item-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
}
.os-item-card .os-item-card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.os-receipt-line .os-line-kind,
.os-item-card .os-line-kind {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .25rem .55rem;
    border-radius: .375rem;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.os-receipt-line select.item-kind,
.os-receipt-line select.item-serv {
    font-weight: 600;
}
.os-item-card .gm-input {
    border-color: #e5e7eb;
    background: #fff;
    border-radius: .5rem;
    font-size: .8125rem;
}
.os-item-card .gm-input:focus {
    background: #fff;
    border-color: #9ca3af;
    box-shadow: 0 0 0 2px rgba(156,163,175,.15);
}
.os-item-card .item-rm {
    opacity: .7;
    transition: opacity .15s, background .15s;
    border-radius: .5rem;
    padding: .35rem .5rem;
}
.os-item-card .item-rm:hover {
    opacity: 1;
    background: #fef2f2;
}
.os-receipt-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .875rem 1.125rem;
    border-top: 1px solid #e8ecf1;
    background: #f8fafc;
    font-size: .9375rem;
    font-weight: 700;
    color: #334155;
}
.os-receipt-total-val {
    font-size: 1.125rem;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}
.os-btn-save {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3.25rem;
    padding: .9rem 1.25rem;
    font-size: 1rem;
    font-weight: 700;
}

/* 13/07/2026 17:50 - Assistente IA diagnóstico @filipemontt */
.gm-ai-hero {
    background: linear-gradient(135deg, #FDEAEA 0%, #fff 55%, #f8fafc 100%);
    border: 1px solid #f0d4d4;
    border-radius: 1rem;
    padding: 1rem 1.1rem;
}
.gm-ai-md {
    font-size: .9375rem;
    line-height: 1.65;
    color: #1f2937;
}
.gm-ai-md h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gm-primary-dark);
    margin: 1.25rem 0 .5rem;
    padding-bottom: .35rem;
    border-bottom: 1px solid #f0d4d4;
}
.gm-ai-md h2:first-child { margin-top: 0; }
.gm-ai-md h3 {
    font-size: .9375rem;
    font-weight: 600;
    color: #374151;
    margin: .9rem 0 .35rem;
}
.gm-ai-md p { margin: .4rem 0; }
.gm-ai-md ul, .gm-ai-md ol {
    margin: .4rem 0 .6rem 1.1rem;
    padding: 0;
}
.gm-ai-md li { margin: .25rem 0; }
.gm-ai-md strong { color: #111827; }
.gm-ai-md blockquote {
    margin: .75rem 0;
    padding: .65rem .85rem;
    border-left: 3px solid var(--gm-primary);
    background: var(--gm-primary-light);
    border-radius: 0 .75rem .75rem 0;
    color: #5b3a3a;
}
.gm-ai-md code {
    font-size: .8125rem;
    background: #f3f4f6;
    padding: .1rem .35rem;
    border-radius: .35rem;
}
.gm-ai-case {
    border: 1px solid #e5e7eb;
    border-radius: .9rem;
    padding: .85rem 1rem;
    background: #fff;
}
.gm-ai-case + .gm-ai-case { margin-top: .65rem; }
.gm-ai-loading {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    min-height: 320px;
    padding: .25rem 0 1rem;
    color: #4b5563;
}
.gm-ai-orb-wrap {
    position: relative;
    width: 112px;
    height: 112px;
    margin: .5rem auto 0;
}
.gm-ai-orb {
    position: absolute;
    inset: 18px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #fff, #F5D4D4 45%, #C46161 100%);
    box-shadow: 0 0 0 0 rgba(196,97,97,.35);
    animation: gm-ai-orb-pulse 1.8s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gm-ai-orb i { font-size: 1.75rem; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.15)); }
.gm-ai-ring {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 2px solid transparent;
    border-top-color: #C46161;
    border-right-color: #F5D4D4;
    animation: gm-ai-spin 1.1s linear infinite;
}
.gm-ai-ring.delay {
    inset: 8px;
    border-top-color: #A84F4F;
    border-right-color: transparent;
    border-bottom-color: #FDEAEA;
    animation-duration: 1.7s;
    animation-direction: reverse;
}
.gm-ai-loading-title {
    text-align: center;
    font-weight: 700;
    font-size: 1.05rem;
    color: #1f2937;
    min-height: 1.5rem;
    transition: opacity .25s ease;
}
.gm-ai-loading-sub {
    text-align: center;
    font-size: .75rem;
    color: #9ca3af;
    margin-top: -.6rem;
}
.gm-ai-steps { display: flex; flex-direction: column; gap: .55rem; }
.gm-ai-step {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem .9rem;
    border-radius: .85rem;
    background: #f9fafb;
    border: 1px solid #eef2f7;
    opacity: .45;
    transform: translateX(0);
    transition: all .35s ease;
}
.gm-ai-step.active {
    opacity: 1;
    background: linear-gradient(90deg, #FDEAEA, #fff);
    border-color: #f0d4d4;
    box-shadow: 0 6px 18px rgba(196,97,97,.08);
}
.gm-ai-step.done {
    opacity: .85;
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.gm-ai-step-icon {
    width: 2rem;
    height: 2rem;
    border-radius: .65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #9ca3af;
    flex-shrink: 0;
}
.gm-ai-step.active .gm-ai-step-icon { color: var(--gm-primary); background: #fff; }
.gm-ai-step.done .gm-ai-step-icon { color: #059669; }
.gm-ai-step-label { font-size: .875rem; font-weight: 550; color: #374151; }
.gm-ai-scanline {
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #C46161, #F5D4D4, transparent);
    background-size: 200% 100%;
    animation: gm-ai-scan 1.4s linear infinite;
}
@keyframes gm-ai-spin { to { transform: rotate(360deg); } }
@keyframes gm-ai-orb-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(196,97,97,.35); }
    50% { transform: scale(1.06); box-shadow: 0 0 0 14px rgba(196,97,97,0); }
}
@keyframes gm-ai-scan {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* 02/09/2026 16:55 - recorte de imagem + lightbox + thumbs do checklist @filipemontt */
.gm-crop-overlay {
    position: fixed; inset: 0; z-index: 220;
    background: rgba(15,23,42,.72);
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
}
.gm-crop-box {
    background: #fff; border-radius: 1rem; width: min(640px, 100%);
    max-height: 92vh; display: flex; flex-direction: column; overflow: hidden;
}
.gm-crop-title { font-weight: 600; padding: .9rem 1rem .4rem; }
.gm-crop-stage { height: min(58vh, 420px); background: #111; }
.gm-crop-stage img { max-width: 100%; display: block; }
.gm-crop-actions { display: flex; justify-content: flex-end; gap: .5rem; padding: .85rem 1rem; border-top: 1px solid #eee; }
.gm-lb {
    display: none; position: fixed; inset: 0; z-index: 230;
    background: rgba(15,23,42,.92); align-items: center; justify-content: center;
}
.gm-lb.open { display: flex; }
.gm-lb img { max-width: 94vw; max-height: 90vh; object-fit: contain; }
.gm-lb-close, .gm-lb-prev, .gm-lb-next {
    position: absolute; background: none; border: 0; color: #fff;
    cursor: pointer; line-height: 1; font-size: 2rem;
}
.gm-lb-close { top: 10px; right: 16px; }
.gm-lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.gm-lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.cl-thumb { position: relative; }
.cl-del {
    position: absolute; top: -6px; right: -6px; width: 18px; height: 18px;
    border-radius: 999px; background: #b91c1c; color: #fff; font-size: 12px;
    line-height: 16px; text-align: center; border: 0; cursor: pointer;
}

/* 02/09/2026 19:15 - quadro Trello do Painel TV @filipemontt */
.tv-board-col {
    display: flex; flex-direction: column; gap: .65rem;
    background: #fff; border-radius: 1rem; padding: .9rem;
    min-height: 28rem; border: 1px solid #eef0f4;
}
.tv-board-col-prio { border-color: color-mix(in srgb, var(--gm-primary) 35%, #eef0f4); }
.tv-board-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.tv-board-head h2 { font-size: .95rem; font-weight: 700; line-height: 1.2; }
.tv-board-head p { font-size: .7rem; color: #94a3b8; margin-top: .1rem; }
.tv-board-count {
    font-size: .7rem; font-weight: 700; color: #64748b;
    background: #f1f5f9; border-radius: 999px; padding: .15rem .5rem;
}
.tv-board-list { flex: 1; min-height: 16rem; overflow: auto; display: flex; flex-direction: column; gap: .5rem; }
.tv-board-list.is-drop { outline: 1px dashed transparent; border-radius: .75rem; }
.tv-board-empty { text-align: center; color: #94a3b8; font-size: .8rem; padding: 1.5rem .5rem; }
.tv-os-card {
    position: relative; background: #f8fafc; border: 1px solid #e8edf3;
    border-radius: .85rem; padding: .7rem .8rem; cursor: grab;
}
.tv-os-card.is-readonly { cursor: default; background: #fff; }
.tv-os-card.is-late {
    border-color: #ef4444; background: #fef2f2;
    animation: tv-prio-pulse 1.15s ease-in-out infinite;
}
.tv-os-title { font-size: .82rem; font-weight: 700; color: #1e293b; line-height: 1.25; }
.tv-os-sub { font-size: .68rem; color: #94a3b8; margin-top: .15rem; letter-spacing: .02em; }
/* 11/09/2026 17:45 - barra de progresso do prazo nos cards de serviço (montagem) @filipemontt */
.tv-board-progress {
    margin-top: .45rem;
    height: .4rem;
    border-radius: 999px;
    overflow: hidden;
    background: #e2e8f0;
}
.tv-board-progress > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: #22c55e;
    transition: width .35s linear;
}
.tv-board-progress.is-late > span { background: #ef4444; }
.tv-os-rm {
    position: absolute; top: .35rem; right: .4rem;
    width: 1.15rem; height: 1.15rem; border: 0; background: none;
    color: #94a3b8; cursor: pointer; font-size: 1rem; line-height: 1;
}
.tv-os-rm:hover { color: #dc2626; }
.tv-os-ghost { opacity: .45; }
.tv-os-drag { cursor: grabbing; }
@keyframes tv-prio-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.35); }
    50% { box-shadow: 0 0 0 6px rgba(239,68,68,.08); }
}

/* 03/09/2026 19:55 - Mente da IA @filipemontt */
.ia-mind {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    padding: 1.35rem 1.25rem 1.6rem;
    background:
        radial-gradient(1200px 400px at 10% -20%, rgba(196,97,97,.18), transparent 50%),
        radial-gradient(900px 360px at 110% 0%, rgba(168,230,207,.22), transparent 46%),
        linear-gradient(180deg, #fff 0%, #FBF8F8 100%);
    border: 1px solid #F0E4E4;
}
.ia-mind-aurora {
    pointer-events: none;
    position: absolute; inset: -20% -10% auto -10%;
    height: 55%;
    background: radial-gradient(closest-side, rgba(196,97,97,.12), transparent);
    animation: ia-mind-drift 12s ease-in-out infinite alternate;
}
.ia-mind-kicker {
    font-size: .68rem; font-weight: 700; letter-spacing: .16em;
    text-transform: uppercase; color: var(--gm-primary);
}
.ia-mind-stat {
    background: rgba(255,255,255,.72);
    border: 1px solid #F0E4E4;
    border-radius: 1rem;
    padding: .7rem .8rem;
    text-align: center;
}
.ia-mind-stat-n { display: block; font-size: 1.25rem; font-weight: 800; color: var(--gm-text); }
.ia-mind-stat-l { font-size: .65rem; color: var(--gm-muted); text-transform: uppercase; letter-spacing: .06em; }
.ia-mind-layers { display: flex; gap: .5rem; }
.ia-mind-layer {
    flex: 1; text-align: left; border: 1px solid #EDDCDC; background: #fff;
    border-radius: 1rem; padding: .85rem 1rem; cursor: pointer; transition: .2s ease;
}
.ia-mind-layer small { display: block; font-size: .7rem; color: #94a3b8; margin-top: .15rem; }
.ia-mind-layer i { color: var(--gm-primary); margin-right: .35rem; }
.ia-mind-layer.is-on {
    border-color: var(--gm-primary);
    background: linear-gradient(180deg, #fff, var(--gm-primary-light));
    box-shadow: 0 10px 28px rgba(196,97,97,.12);
}
.ia-mind-orbs {
    display: flex; gap: .55rem; overflow-x: auto; padding: .15rem .1rem .4rem;
    scrollbar-width: none;
}
.ia-mind-orbs::-webkit-scrollbar { display: none; }
.ia-mind-orb {
    flex: 0 0 auto; min-width: 5.6rem;
    display: flex; flex-direction: column; align-items: center; gap: .3rem;
    border: 0; background: transparent; cursor: pointer; color: var(--gm-text);
}
.ia-mind-orb i {
    width: 3.15rem; height: 3.15rem; border-radius: 999px;
    display: grid; place-items: center; font-size: 1.25rem; color: #fff;
    background: var(--orb, var(--gm-primary));
    box-shadow: 0 8px 18px color-mix(in srgb, var(--orb, var(--gm-primary)) 35%, transparent);
    animation: ia-mind-breathe 3.6s ease-in-out infinite;
}
.ia-mind-orb span { font-size: .72rem; font-weight: 600; }
.ia-mind-orb em { font-style: normal; font-size: .65rem; color: #94a3b8; }
.ia-mind-orb.is-on span { color: var(--gm-primary-dark); }
.ia-mind-orb.is-on i { transform: scale(1.08); }
.ia-mind-grid {
    display: grid; gap: .85rem;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.ia-mind-card {
    position: relative; cursor: pointer;
    background: #fff; border: 1px solid #F0E4E4; border-radius: 1.1rem;
    padding: .95rem 1rem 0.8rem; overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.ia-mind-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(30,41,59,.08); }
.ia-mind-card.is-off { opacity: .55; filter: grayscale(.25); }
.ia-mind-card-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.ia-mind-pulse {
    width: .55rem; height: .55rem; border-radius: 999px; background: #34d399;
    box-shadow: 0 0 0 0 rgba(52,211,153,.55);
    animation: ia-mind-ping 2s ease-out infinite;
}
.ia-mind-grip { cursor: grab; }
@keyframes ia-mind-breathe {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.12); }
}
@keyframes ia-mind-drift {
    from { transform: translate3d(-2%, 0, 0) scale(1); }
    to { transform: translate3d(4%, 8%, 0) scale(1.08); }
}
@keyframes ia-mind-ping {
    0% { box-shadow: 0 0 0 0 rgba(52,211,153,.5); }
    70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); }
    100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}
@keyframes tv-prio-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.35); }
    50% { box-shadow: 0 0 0 6px rgba(239,68,68,.08); }
}
