/* ==========================================================================
   Schons Hub - variaveis de marca (extraidas de schonscleaning.com)
   ========================================================================== */
:root {
    --green: #2E9E6B;
    --green-dark: #1B5E42;
    --green-darker: #123B2B;
    --mint: #C9EDD9;
    --mint-soft: #E4F5EC;
    --cream: #FAFAF7;
    --terracota: #F2704A;
    --terracota-dark: #C6512E;
    --aqua: #5AAFD1;

    --text-dark: #1C2A22;
    --text-muted: #52645B;
    --border-soft: rgba(27, 94, 66, .12);

    --font-display: 'Fredoka', sans-serif;
    --font-body: 'Quicksand', sans-serif;

    --radius-pill: 999px;
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;

    --shadow-soft: 0 10px 30px rgba(27, 94, 66, .10);
    --shadow-card: 0 14px 34px rgba(27, 94, 66, .12);
    --shadow-pop: 0 18px 40px rgba(27, 94, 66, .18);

    --ease-elegant: cubic-bezier(.22, 1, .36, 1);
    --header-h: 72px;

    /* Status */
    --success: var(--green);
    --warning: #E8A23A;
    --danger: #D9472B;
    --info: var(--aqua);

    /* Modo escuro (estrutura preparada para o futuro - nao usado ainda) */
    --bg: var(--cream);
    --surface: #FFFFFF;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .numeric {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--green-darker);
    margin: 0 0 .5rem;
}

a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

p { margin: 0 0 1rem; color: var(--text-muted); }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Layout
   ========================================================================== */
.app-header {
    height: var(--header-h);
    background: var(--green-dark);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: var(--shadow-soft);
}

.app-header .brand { display: flex; align-items: center; gap: 10px; }
.app-header .brand-logo {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 4px 8px;
    line-height: 0;
}
.app-header .brand-logo img { height: 28px; display: block; }
.app-header .brand span { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }

.app-header nav { display: flex; align-items: center; gap: 12px; }
.app-header nav a, .app-header nav button {
    color: #fff;
    background: transparent;
    border: none;
    font-family: var(--font-body);
    font-size: .9rem;
    cursor: pointer;
    opacity: .9;
    white-space: nowrap;
}
.app-header nav a:hover, .app-header nav button:hover { opacity: 1; text-decoration: underline; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

@media (max-width: 860px) {
    .app-header { flex-wrap: wrap; height: auto; min-height: var(--header-h); }
    .nav-toggle { display: flex; }
    .app-header nav {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding-top: 14px;
        margin-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, .15);
    }
    .app-header nav.open { display: flex; }
    .app-header nav a, .app-header nav form { width: 100%; }
    .app-header nav a, .app-header nav button {
        padding: 10px 4px;
        text-align: left;
        width: 100%;
    }
    .app-header .lang-switch { gap: 16px; padding: 6px 4px; }
}

.lang-switch { display: flex; gap: 6px; }
.lang-switch form { display: inline; }
.lang-switch button.active { font-weight: 700; text-decoration: underline; }

.lang-switch-light { display: flex; justify-content: center; gap: 10px; margin-bottom: 16px; }
.lang-switch-light form { display: inline; }
.lang-switch-light button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: .82rem;
    cursor: pointer;
    padding: 2px 4px;
}
.lang-switch-light button.active { color: var(--green-dark); font-weight: 700; text-decoration: underline; }

main.app-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px 64px;
}

main.app-main:has(.auth-screen) {
    max-width: none;
    padding: 0;
}

/* ==========================================================================
   Cards, botoes, formularios
   ========================================================================== */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: var(--radius-pill);
    padding: 12px 28px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: transform .2s var(--ease-elegant), box-shadow .2s var(--ease-elegant);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--terracota); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover { box-shadow: var(--shadow-pop); }
.btn-secondary { background: var(--mint-soft); color: var(--green-darker); }
.btn-block { width: 100%; }

.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: .85rem;
    color: var(--green-darker);
    margin-bottom: 6px;
}
.form-group input, .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--cream);
    color: var(--text-dark);
}
.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--mint);
}
.form-hint { font-size: .78rem; color: var(--text-muted); margin-top: 4px; }

.alert {
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 18px;
    font-size: .92rem;
}
.alert-error { background: #FBEAE6; color: var(--danger); }
.alert-success { background: var(--mint-soft); color: var(--green-darker); }

.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    font-size: .75rem;
    font-weight: 600;
}
.badge-ok { background: var(--mint-soft); color: var(--green-dark); }
.badge-fail { background: #FBEAE6; color: var(--danger); }

/* ==========================================================================
   Tela de login / instalador (sem header)
   ========================================================================== */
.auth-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(160deg, var(--mint-soft) 0%, var(--cream) 60%);
    position: relative;
    overflow: hidden;
}

.auth-screen .leaf {
    position: absolute;
    font-size: 2rem;
    opacity: .35;
    animation: leafFloat 9s var(--ease-elegant) infinite;
}
.auth-screen .leaf:nth-child(1) { top: 8%; left: 10%; animation-delay: 0s; }
.auth-screen .leaf:nth-child(2) { top: 70%; left: 18%; animation-delay: 2s; font-size: 1.4rem; }
.auth-screen .leaf:nth-child(3) { top: 20%; left: 85%; animation-delay: 4s; }
.auth-screen .leaf:nth-child(4) { top: 75%; left: 80%; animation-delay: 1s; font-size: 1.6rem; }

@keyframes leafFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(12deg); }
}

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-pop);
    padding: 36px 32px;
}
.auth-card .logo { display: block; margin: 0 auto 18px; height: 56px; }
.auth-card .logo-fallback { text-align: center; color: var(--green-dark); margin: 0 0 18px; }
.auth-card h1 { text-align: center; font-size: 1.4rem; }
.auth-card .links { text-align: center; margin-top: 16px; font-size: .88rem; }

.install-card { max-width: 640px; }
.requirements-list { list-style: none; padding: 0; margin: 0 0 20px; }
.requirements-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-soft);
    font-size: .9rem;
}
.install-section-title { font-size: .95rem; margin-top: 24px; color: var(--green-dark); }

@media (max-width: 480px) {
    .auth-card { padding: 28px 22px; }
    .card { padding: 20px; }
}

/* ==========================================================================
   Dashboard placeholder
   ========================================================================== */
.welcome-card { text-align: center; }
.welcome-card .leaf-deco { font-size: 2.4rem; }

/* ==========================================================================
   Listagens (Equipe, Equipes) - Fase 2
   ========================================================================== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.page-header h1 { margin: 0; }

.btn-sm { padding: 8px 18px; font-size: .85rem; }
.form-select-sm { padding: 4px 8px; font-size: .85rem; }

.table-card { padding: 0; overflow: hidden; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th, .data-table td {
    text-align: left;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-soft);
    white-space: nowrap;
}
.data-table th { color: var(--green-dark); font-family: var(--font-display); font-weight: 600; font-size: .82rem; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--mint-soft); }

.color-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.actions-cell { display: flex; gap: 14px; align-items: center; }
.actions-cell form { display: inline; }

.link-button {
    background: none;
    border: none;
    color: var(--green-dark);
    font-family: var(--font-body);
    font-size: .88rem;
    cursor: pointer;
    padding: 0;
}
.link-button:hover { text-decoration: underline; }
.link-danger { color: var(--danger); }

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0 20px;
}

.form-group-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.form-group-inline label { margin-bottom: 0; white-space: nowrap; }
.form-group-inline select, .form-group-inline input { width: auto; padding: 8px 12px; }

.toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .88rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    margin: 4px 16px 4px 0;
}
.toggle input { width: 18px; height: 18px; accent-color: var(--green); cursor: pointer; }

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 6px;
    margin-top: 6px;
}

.presets-card {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.preset-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.preset-buttons form { display: inline; }

.permission-module { margin-bottom: 16px; }
.permission-module h3 { font-size: 1rem; margin-bottom: 12px; }
.permission-actions { display: flex; flex-wrap: wrap; margin-bottom: 8px; }
.permission-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-soft);
}

.team-card { margin-bottom: 16px; }
.team-card-actions { margin-top: 12px; display: flex; justify-content: flex-end; }

@media (max-width: 600px) {
    .data-table th, .data-table td { padding: 10px 14px; }
    .actions-cell { flex-wrap: wrap; }
}

/* ==========================================================================
   CRM de clientes - Fase 3
   ========================================================================== */
.indicators-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.indicator-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.indicator-card .numeric { font-size: 1.8rem; line-height: 1; }
.indicator-card span:last-child { font-size: .8rem; color: var(--text-muted); }

.filter-bar { padding: 16px 20px; margin-bottom: 18px; }
.filter-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.date-nav { display: flex; gap: 6px; }
.today-job-row {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-soft);
    color: var(--text-dark);
    text-decoration: none;
}
.today-job-row:last-of-type { border-bottom: none; }
.feed-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
.feed-item:last-child { border-bottom: none; }
.feed-icon { font-size: 1.1rem; }
.feed-item p { margin: 0 0 2px; }
.my-week-list { display: flex; flex-direction: column; gap: 10px; }
.my-week-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--text-dark);
}
.my-week-card p { margin: 2px 0 0; }
.filter-form input, .filter-form select {
    padding: 10px 14px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    background: var(--cream);
    font-family: var(--font-body);
}
.filter-form input[type="search"] { flex: 1 1 220px; }

.tabs-bar {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    margin-bottom: 18px;
    border-bottom: 2px solid var(--border-soft);
}
.tabs-bar a {
    padding: 10px 16px;
    white-space: nowrap;
    color: var(--text-muted);
    font-weight: 600;
    font-size: .88rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}
.tabs-bar a.active { color: var(--green-dark); border-bottom-color: var(--terracota); }

.definition-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 24px; }
.definition-list dt { font-size: .78rem; color: var(--text-muted); margin-bottom: 2px; }
.definition-list dd { margin: 0; font-weight: 600; }

.address-card { margin-bottom: 14px; }
.address-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }

.note-item { padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.note-item:last-child { border-bottom: none; }
.note-meta { font-size: .76rem; color: var(--text-muted); margin-bottom: 4px; }

.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.empty-state .leaf-deco { font-size: 2rem; display: block; margin-bottom: 10px; }
.empty-state-row { text-align: center; padding: 24px 0; color: var(--text-muted); }

.audit-changes { margin: 0; padding: 0; list-style: none; font-size: .82rem; }
.audit-changes li { padding: 2px 0; }

#map-canvas { height: 520px; border-radius: var(--radius-lg); overflow: hidden; }

.import-steps { display: flex; gap: 8px; margin-bottom: 18px; font-size: .82rem; color: var(--text-muted); }
.import-steps .active { color: var(--green-dark); font-weight: 700; }

/* ==========================================================================
   Agenda - Fase 4
   ========================================================================== */
.search-results {
    position: relative;
    z-index: 5;
}
.search-result-item {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-top: none;
    padding: 10px 14px;
    cursor: pointer;
    font-size: .88rem;
}
.search-result-item:hover { background: var(--mint-soft); }

#calendar { font-family: var(--font-body); }
#calendar .fc-toolbar-title { font-family: var(--font-display); font-size: 1.2rem; }
#calendar .fc-button { background: var(--green-dark); border-color: var(--green-dark); text-transform: capitalize; }
#calendar .fc-button:hover { background: var(--green-darker); border-color: var(--green-darker); }
#calendar .fc-button-active { background: var(--terracota) !important; border-color: var(--terracota) !important; }
#calendar .fc-daygrid-day.fc-day-today, #calendar .fc-timegrid-col.fc-day-today { background: var(--mint-soft); }

@media (max-width: 600px) {
    #calendar .fc-header-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    #calendar .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }
    #calendar .fc-toolbar-title { font-size: 1rem; text-align: center; }
    #calendar .fc-button { padding: 6px 10px; font-size: .82rem; }
}

.by-team-columns { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; }
.by-team-column { min-width: 240px; flex: 1 0 240px; }
.by-team-column h3 { font-size: .9rem; margin-bottom: 10px; }
.by-team-job {
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 12px 14px;
    margin-bottom: 10px;
    font-size: .85rem;
}
.by-team-job .time { font-weight: 700; color: var(--green-dark); }

.job-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 20px;
    margin-bottom: 16px;
}
.job-card .time-badge {
    display: inline-block;
    background: var(--mint-soft);
    color: var(--green-dark);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: .85rem;
    margin-bottom: 10px;
}
.job-card h3 { margin-bottom: 4px; }
.job-card .address-line { color: var(--text-muted); font-size: .9rem; margin-bottom: 12px; }
.job-card .action-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.checklist-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border-soft); }
.checklist-item:last-child { border-bottom: none; }
.checklist-item input { width: 20px; height: 20px; accent-color: var(--green); }
.checklist-item.done span { text-decoration: line-through; color: var(--text-muted); }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin-top: 10px; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); }
.photo-upload-row { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }

/* ==========================================================================
   Fase 7 - acessibilidade, PWA e polimento
   ========================================================================== */

/* Pular para o conteudo (teclado/leitor de tela) */
.skip-link {
    position: absolute;
    top: -48px;
    left: 12px;
    background: var(--green-darker);
    color: #fff;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    z-index: 100;
    transition: top .2s var(--ease-elegant);
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* Anel de foco consistente para quem navega por teclado (nao aparece em clique de mouse) */
a:focus-visible, button:focus-visible, .btn:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--aqua);
    outline-offset: 2px;
}
.form-group input:focus-visible, .form-group select:focus-visible {
    outline: none; /* ja tem o box-shadow verde proprio */
}

/* Micro-interacao: leve elevacao ao passar o mouse nos cards */
.card, .indicator-card {
    transition: box-shadow .2s var(--ease-elegant), transform .2s var(--ease-elegant);
}
@media (hover: hover) {
    .indicator-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); }
}

/* Toasts (spec 5: confirmacao/erro no canto, com barra de tempo) */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: 20px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    cursor: pointer;
    max-width: 360px;
    background: var(--green-darker);
    color: #fff;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-pop);
    font-size: .9rem;
    position: relative;
    overflow: hidden;
}
.toast-error { background: var(--danger); }
.toast-bar {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: rgba(255, 255, 255, .55);
    transform-origin: left;
}

/* Rajada de folhas no check-out (marca registrada do sistema) */
.leaf-particle {
    position: fixed;
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 300;
    will-change: transform, opacity;
}
.btn-checkout-done {
    background: var(--green) !important;
    font-size: 1.4rem;
    transition: transform .3s var(--ease-elegant), background .3s;
    transform: scale(1.03);
}

/* Estado vazio ilustrado */
.empty-illustration { width: 120px; height: auto; margin: 0 auto 14px; display: block; }

/* Banner "Instalar app" (PWA) */
.install-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: 420px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-pop);
    padding: 18px 20px;
    z-index: 190;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.install-banner .leaf-deco { font-size: 1.4rem; }
.install-banner p { flex: 1 1 220px; margin: 0; font-size: .88rem; color: var(--text-dark); }
.install-banner-actions { display: flex; gap: 8px; flex: 1 1 100%; justify-content: flex-end; }

@media (max-width: 600px) {
    #toast-container { left: 12px; right: 12px; bottom: 12px; align-items: stretch; }
    .toast { max-width: none; }
}

/* Logo da empresa (white-label) - Configuracoes > Empresa */
.logo-upload-section { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border-soft); }
.logo-upload-section > label { display: block; margin-bottom: 8px; font-weight: 600; }
.logo-preview-box {
    position: relative;
    width: 160px;
    height: 160px;
    border: 2px dashed var(--border-soft);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.logo-preview-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-preview-empty { color: var(--text-muted); font-size: .82rem; text-align: center; }
.logo-remove-btn { position: absolute; top: -10px; right: -10px; }
.logo-remove-btn button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--danger);
    color: #fff;
    cursor: pointer;
    font-size: .95rem;
    box-shadow: var(--shadow-soft);
}

/* Seletor de cor da marca */
.color-picker-row { display: flex; align-items: center; gap: 10px; }
.color-picker-row input[type="color"] {
    width: 48px;
    height: 40px;
    padding: 2px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    background: var(--cream);
    cursor: pointer;
}
.color-picker-hex { font-family: monospace; color: var(--text-muted); text-transform: uppercase; }

/* ==========================================================================
   Estimativas
   ========================================================================== */
.estimate-item-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-soft);
}
.estimate-item-row .form-group { flex: 2; margin-bottom: 0; }
.estimate-item-row .item-price { flex: 1; min-width: 110px; }
.estimate-item-row .remove-item-row { flex: 0 0 auto; margin-bottom: 10px; }
#item-row-template { display: none; }

/* ==========================================================================
   Hub de Configuracoes - grade de atalhos (em vez de lista vertical)
   ========================================================================== */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 14px;
}
.settings-tile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 6px;
    min-height: 110px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 18px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s var(--ease-elegant), transform .2s var(--ease-elegant);
}
.settings-tile h3 { margin: 0; font-size: 1rem; }
.settings-tile p { margin: 0; font-size: .78rem; color: var(--text-muted); }
@media (hover: hover) {
    .settings-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); }
}

/* ==========================================================================
   Painel lateral de limpeza (Agenda) - abre ao clicar num evento, em vez
   de navegar para uma pagina nova
   ========================================================================== */
.job-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 30, 25, .35);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s var(--ease-elegant);
    z-index: 149;
}
.job-panel-overlay.open { opacity: 1; pointer-events: auto; }

.job-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 100vw);
    background: var(--surface);
    box-shadow: var(--shadow-pop);
    transform: translateX(100%);
    transition: transform .25s var(--ease-elegant);
    z-index: 150;
    overflow-y: auto;
    padding: 24px;
}
.job-panel.open { transform: translateX(0); }

.job-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}
.job-panel-header h3 { margin: 0 0 4px; }
.job-panel-icon-link {
    display: inline-block;
    margin-right: 10px;
    font-size: 1.1rem;
    text-decoration: none;
}
.job-panel-close {
    background: none;
    border: none;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0 4px;
}
.job-panel-full-link {
    display: block;
    margin-top: 20px;
    text-align: center;
    color: var(--green-dark);
    font-weight: 600;
    text-decoration: none;
}
