* { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f5f5; color: #333; }
        .container { max-width: 1200px; margin: 0 auto; padding: 20px; }
        header { background: linear-gradient(135deg, #0057B7 0%, #003F86 100%); color: white; padding: 20px; border-radius: 8px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
        header h1 { font-size: 24px; }
        .user-info { display: flex; gap: 15px; align-items: center; }
        button { padding: 10px 16px; border: none; border-radius: 4px; cursor: pointer; font-size: 14px; background: #0057B7; color: white; transition: 0.2s; }
        button:hover { background: #003F86; }
        button.secondary { background: #666; }
        button.secondary:hover { background: #555; }
        button.success { background: #28a745; }
        button.success:hover { background: #218838; }
        button.danger { background: #dc3545; }
        button.danger:hover { background: #c82333; }
        .auth-container { max-width: 400px; margin: 60px auto; background: white; padding: 40px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
        .auth-container h2 { margin-bottom: 20px; color: #0057B7; }
        .form-group { margin-bottom: 15px; }
        label { display: block; margin-bottom: 5px; font-weight: 500; }
        input, select { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; font-family: inherit; }
        input:focus, select:focus { outline: none; border-color: #0057B7; box-shadow: 0 0 0 3px rgba(255, 215, 0, .72); }
        .tabs { display: flex; gap: 10px; margin-bottom: 20px; border-bottom: 2px solid #eee; overflow-x: auto; }
        .tab-btn { padding: 12px 20px; background: none; border: none; border-bottom: 3px solid transparent; cursor: pointer; color: #666; font-weight: 500; transition: 0.2s; white-space: nowrap; }
        .tab-btn.active { color: #0057B7; border-bottom-color: #0057B7; }
        .tab-content { display: none; }
        .tab-content.active { display: block; }
        .section { background: white; padding: 20px; border-radius: 8px; margin-bottom: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
        .section h3 { margin-bottom: 15px; color: #0057B7; font-size: 16px; }
        .form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; margin-bottom: 15px; }
        table { width: 100%; border-collapse: collapse; margin-top: 15px; }
        th, td { padding: 12px; text-align: left; border-bottom: 1px solid #eee; }
        th { background: #f9f9f9; font-weight: 600; color: #666; }
        tr:hover { background: #f5f5f5; }
        .alert { padding: 12px; border-radius: 4px; margin-bottom: 15px; }
        .alert.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
        .alert.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
        .master-badge { display: inline-block; background: #007bff; color: white; padding: 4px 8px; border-radius: 3px; font-size: 12px; }
        .budget-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; margin-bottom: 20px; }
        .summary-card { background: white; padding: 15px; border-radius: 8px; text-align: center; border-left: 4px solid #0057B7; }
        .summary-card-value { font-size: 24px; font-weight: bold; color: #0057B7; }
        .summary-card-label { font-size: 12px; color: #666; margin-top: 5px; }
        .hidden { display: none; }
        .status-ok { color:#218838; font-weight:600; }
        .status-low { color:#b7791f; font-weight:600; }
        .status-zero { color:#c82333; font-weight:700; }
        .table-wrap { overflow-x:auto; }
        .mini-actions { display:flex; gap:6px; flex-wrap:wrap; }
        .mini-actions button { padding:6px 10px; font-size:12px; }
        .hint { font-size:12px; color:#666; margin-top:6px; }
        @media (max-width:700px){ .container{padding:10px;} header{align-items:flex-start;gap:10px;flex-direction:column;} th,td{padding:9px;font-size:12px;} }
        :root{--brand:#003F86;--brand-dark:#003F86;--border:#e5e7eb;--muted:#6b7280}
        button{min-height:44px;border-radius:8px}.tab-btn.active,.section h3,.auth-container h2,.summary-card-value{color:var(--brand-dark)}
        .mobile-nav{display:none;margin-bottom:16px;background:#fff;padding:12px;border-radius:10px;box-shadow:0 2px 4px rgba(0,0,0,.05)}
        .loading-overlay{position:fixed;inset:0;z-index:5000;background:rgba(255,255,255,.78);display:none;align-items:center;justify-content:center}.loading-overlay.active{display:flex}.loading-card{background:#fff;border:1px solid var(--border);border-radius:12px;padding:18px 24px;box-shadow:0 10px 30px rgba(0,0,0,.12);font-weight:600}
        .edit-modal{display:none;position:fixed;inset:0;z-index:4200;background:rgba(0,0,0,.55);padding:16px;overflow:auto}.edit-modal.open{display:block}.edit-panel{max-width:520px;margin:5vh auto;background:#fff;border-radius:12px;padding:22px}.edit-actions{display:flex;gap:10px;margin-top:18px}.edit-actions button{flex:1}
        @media(max-width:700px){.container{padding:10px}header{align-items:flex-start;gap:12px;flex-direction:column;border-radius:0;margin:-10px -10px 12px;padding:16px}header h1{font-size:20px}.user-info{width:100%;justify-content:space-between;gap:8px;flex-wrap:wrap}.tabs{display:none}.mobile-nav{display:block}.section{padding:14px;border-radius:10px;margin-bottom:12px}.form-row{grid-template-columns:1fr;gap:10px}.budget-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.table-wrap{overflow:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--border);border-radius:8px}.table-wrap table{min-width:680px;margin-top:0}th{position:sticky;top:0;z-index:1}.auth-container{margin:24px 12px;padding:24px}}

:root {
    --brand: #0057b7;
    --brand-dark: #003f86;
    --brand-soft: #e7f1ff;
    --accent: #ffd700;
    --accent-dark: #5b4b00;
    --surface: #ffffff;
    --canvas: #f4f7fb;
    --border: #cbd8e8;
    --muted: #536274;
    --focus: #ffd700;
}

body { background: var(--canvas); color: #182433; }
header { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); border-bottom: 5px solid var(--accent); }
button { background: var(--brand); border-radius: 9px; font-weight: 650; }
button:hover { background: var(--brand-dark); }
button:disabled { cursor: not-allowed; opacity: .55; }
a, .auth-container h2, .section h3, .edit-panel h3 { color: var(--brand-dark) !important; }
input:focus, select:focus, button:focus-visible, a:focus-visible {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, .72);
    outline: 2px solid transparent;
}
.section, .mobile-nav, .summary-card { border: 1px solid var(--border); }
.summary-card { border-left: 5px solid var(--accent); box-shadow: 0 3px 10px rgba(0, 63, 134, .06); }
.summary-card-value { color: var(--brand-dark); }
.master-badge { background: var(--accent); color: var(--accent-dark); }

.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; border: 0; overflow: visible; }
.nav-group { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px; display: flex; align-content: flex-start; flex-wrap: wrap; gap: 4px; }
.nav-group-title { flex-basis: 100%; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; padding: 2px 8px 5px; text-transform: uppercase; }
.tab-btn { border-radius: 8px; border-bottom: 0; min-height: 40px; padding: 8px 10px; }
.tab-btn:hover { background: var(--brand-soft); color: var(--brand-dark); }
.tab-btn.active { background: var(--brand); color: #fff; border-bottom: 0; }

.hero-dashboard { background: linear-gradient(145deg, #fff 0%, var(--brand-soft) 100%); }
.dashboard-geral-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.priority-list { display: grid; gap: 8px; }
.priority-item { border-left: 5px solid var(--accent); background: #fff9d6; color: #463b00; border-radius: 8px; padding: 11px 13px; }
.priority-item.ok { border-left-color: #218838; background: #eaf7ed; color: #155724; }
.offline-banner { position: sticky; top: 0; z-index: 7000; padding: 10px 16px; text-align: center; background: #fff3cd; color: #5c4700; border-bottom: 2px solid #d39e00; font-weight: 700; }

@media (max-width: 900px) {
    .dashboard-geral-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .tabs { display: none; }
    .mobile-nav label { color: var(--brand-dark); font-weight: 800; }
    .dashboard-geral-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .summary-card { padding: 12px 8px; text-align: left; }
    .summary-card-value { font-size: 20px; }
    .summary-card-label { font-size: 11px; }
    .mobile-card-table { min-width: 0 !important; width: 100%; border-collapse: separate; border-spacing: 0 10px; }
    .mobile-card-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .mobile-card-table tbody, .mobile-card-table tr, .mobile-card-table td { display: block; width: 100%; }
    .mobile-card-table tr { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; box-shadow: 0 2px 8px rgba(0, 63, 134, .06); }
    .mobile-card-table td { display: grid; grid-template-columns: minmax(105px, 38%) 1fr; gap: 8px; padding: 7px 0; border-bottom: 1px solid #edf1f6; overflow-wrap: anywhere; }
    .mobile-card-table td:last-child { border-bottom: 0; }
    .mobile-card-table td::before { content: attr(data-label); color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
    .mobile-card-table button { width: auto; min-height: 40px; }
    .table-wrap:has(.mobile-card-table) { border: 0; overflow: visible; }
}

@media (max-width: 380px) {
    .dashboard-geral-grid, .budget-summary { grid-template-columns: 1fr; }
}

.header-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.header-brand h1 { line-height: 1.15; }
.header-emblem {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 24, 63, .28));
}

@media (max-width: 700px) {
    .header-brand { gap: 10px; }
    .header-emblem { width: 60px; height: 60px; flex-basis: 60px; }
    .header-brand h1 { font-size: 19px; }
}


/* Utilitários estruturais do Lote E */
.oculto { display: none !important; }
.exibir-grid { display: grid !important; }
[hidden] { display: none !important; }
.estilo-0b3abc1740 { padding:6px 12px; font-size:12px; }
.estilo-0f3eb8aa15 { background:white; border-radius:8px; max-width:720px; margin:20px auto; padding:22px; }
.estilo-1847bbba43 { width:100%; margin-top:10px; }
.estilo-1b1dd955e0 { margin:8px 0; color:#666; font-size:13px; }
.estilo-1c0904bb4b { display:flex; gap:10px; margin-top:18px; }
.estilo-1fd27028dd { padding:10px; border-bottom:1px solid #eee; display:flex; justify-content:space-between; align-items:center; }
.estilo-23e28c991a { background:white; border-radius:8px; max-width:420px; margin:90px auto; padding:22px; }
.estilo-2571823086 { color:var(--brand-dark); margin-bottom:12px; }
.estilo-2e024cc8af { padding: 4px 8px; font-size: 12px; }
.estilo-2fb8641675 { padding: 6px 12px; font-size: 12px; margin-left: 5px; }
.estilo-30e741d98e { width:auto; }
.estilo-30f0b0a3eb { position:fixed; inset:0; background:rgba(0,0,0,.55); z-index:2200; padding:20px; }
.estilo-344106e58a { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:8px; }
.estilo-3dfe762c9d { position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.7); z-index:2000; padding:10px; }
.estilo-428ca1ff09 { margin-bottom:16px; color:#666; }
.estilo-44f466ba6a { flex:1; overflow-y:auto; background:#1e1e1e; color:#00ff00; padding:10px; border-radius:4px; font-family:monospace; font-size:12px; white-space:pre-wrap; }
.estilo-47e3b7d252 { margin-bottom: 15px; }
.estilo-486b566d1b { width: 100%; margin-top: 20px; }
.estilo-50036163ec { padding:8px 12px; font-size:13px; }
.estilo-521aa6c01b { color:var(--brand-dark); margin-bottom:8px; }
.estilo-53dc1a4079 { background:white; border-radius:8px; max-width:400px; margin:100px auto; padding:20px; }
.estilo-56f4356299 { margin-top:12px; }
.estilo-5e33efb747 { padding:6px 12px; }
.estilo-6576554382 { width:100%; margin-top:20px; }
.estilo-66624ef7af { width:100%; padding:10px; border:1px solid #ddd; border-radius:4px; padding-right:45px; }
.estilo-66994aa0e3 { position:absolute; right:8px; top:50%; transform:translateY(-50%); background:none; border:none; cursor:pointer; font-size:18px; padding:0; }
.estilo-673228722f { position:fixed; inset:0; background:rgba(0,0,0,.6); z-index:3000; padding:14px; overflow:auto; }
.estilo-688de3084b { margin-bottom:15px; }
.estilo-6d3080e1ca { color:#dc3545; }
.estilo-70a1c42fc5 { padding:6px 12px; font-size:12px; margin-left:5px; }
.estilo-72bc11a9d8 { background:white; border-radius:8px; max-width:500px; margin:50px auto; padding:20px; }
.estilo-7577ba9a7d { color:var(--brand-dark); margin:0; }
.estilo-7aab68d540 { padding:6px 10px; }
.estilo-7b92bf77c1 { color:#007bff; font-weight:bold; }
.estilo-7d237905ea { padding: 6px 12px; font-size: 12px; }
.estilo-81e32d3d89 { width: 100%; margin-top: 10px; }
.estilo-83db81102d { color:#28a745; font-weight:bold; }
.estilo-8419775cca { color:var(--brand-dark); margin-bottom:15px; }
.estilo-8a77e5a311 { margin-top:8px; }
.estilo-8ed0b3ae6d { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.estilo-905d8b3da3 { margin-bottom:18px; }
.estilo-97445a8d93 { flex:1; }
.estilo-99ff7b1136 { padding:15px; background:#f9f9f9; border-radius:4px; margin:10px 0; }
.estilo-9dc3021bc0 { display:flex; gap:10px; margin-top:15px; }
.estilo-a1f541ac0e { text-align: center; margin-top: 15px; }
.estilo-a35a6fa493 { padding:12px; background:#f9f9f9; border-radius:6px; margin:8px 0; }
.estilo-a753dac283 { margin-top:15px; }
.estilo-a9f1538caa { display:flex; gap:10px; }
.estilo-abee9d3250 { background:white; border-radius:8px; max-width:90%; height:80vh; margin:5vh auto; padding:15px; display:flex; flex-direction:column; }
.estilo-ae6ee67de1 { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.estilo-aeb1f9d803 { margin-top:10px; padding:8px; }
.estilo-b289385283 { background:white; border-radius:8px; max-width:400px; margin:100px auto; padding:30px; }
.estilo-b5eac758bc { color:#007bff; }
.estilo-b927abd2d7 { position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.6); z-index:2100; padding:20px; }
.estilo-bd6dc7497e { position:relative; margin-bottom:15px; }
.estilo-be76b53a25 { display:flex; justify-content:space-between; gap:10px; align-items:center; }
.estilo-c0e2fdc5c6 { margin-top: 15px; }
.estilo-c2d42f6411 { padding:8px 12px; font-size:13px; }
.estilo-c5fb5b6e9c { margin:16px 0 8px; }
.estilo-c93e2df025 { font-size:12px; opacity:.85; display:block; margin-top:4px; }
.estilo-ca0240e65c { color: var(--brand-dark); text-decoration: none; }
.estilo-cd022c14fa { padding:8px 12px; font-size:12px; }
.estilo-d2c171b18b { margin-top:10px; }
.estilo-dcdaf546cd { margin:12px 0 8px; }
.estilo-dd269aa409 { padding:3px 7px; }
.estilo-e15ee2410f { color:#d98c00; font-weight:bold; }
.estilo-e75fd010fa { max-height:400px; overflow-y:auto; border:1px solid #ddd; border-radius:4px; padding:10px; margin:15px 0; }
.estilo-ed70d21932 { display:flex; gap:8px; align-items:center; font-weight:400; }
.estilo-ed99334eb9 { padding:15px; background:#f9f9f9; border-radius:6px; margin:10px 0; }
.estilo-ee85122a99 { color: var(--brand-dark); text-decoration: none; font-size: 13px; }
.estilo-eeb8c10b07 { flex:1; min-width:200px; }
.estilo-f529830378 { color:var(--brand-dark); margin-bottom:20px; }
.estilo-f88440b60f { color:#28a745; }
.estilo-fb7d312c8d { position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.5); z-index:1000; padding:20px; }
.estilo-fe4c79cdd8 { text-align: center; margin-top: 10px; }
