:root{--yellow:#FFC000;--black:#000;--dark:#181818;--bg:#f0f2f5;--text:#333;--muted:#666;--line:#e8e8e8;--green:#166534;--red:#991b1b}
*{box-sizing:border-box}html,body{margin:0;padding:0}html{scroll-behavior:smooth}body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;background:var(--bg);color:var(--text);font-size:16px;line-height:1.45;overflow-x:hidden}.demo-bar{position:fixed;top:0;left:0;right:0;height:30px;background:#111;color:#ddd;display:flex;align-items:center;justify-content:center;padding:0 10px;font-size:11px;font-weight:700;z-index:1100;border-bottom:1px solid rgba(255,192,0,.25);text-align:center}.app-header{position:fixed;top:30px;left:0;right:0;height:65px;background:#000;color:#fff;padding:9px 16px;display:flex;justify-content:space-between;align-items:center;z-index:1000}.app-brand{display:flex;align-items:center;gap:11px;min-width:0}.app-brand h1{font-size:20px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}.app-logo-link{display:block;flex:0 0 46px}.app-logo{width:46px;height:46px;border-radius:8px;object-fit:contain;background:#111}.app-sair{background:#fff;color:#000;padding:10px 19px;border-radius:22px;text-decoration:none;font-weight:800;white-space:nowrap}.app-menu{position:fixed;top:95px;left:0;right:0;height:56px;background:#181818;display:flex;align-items:stretch;gap:7px;padding:6px 8px;z-index:999;box-shadow:0 2px 8px rgba(0,0,0,.25)}.app-menu-btn{position:relative;flex:1;min-width:0;border:0;background:#292929;color:#fff;border-radius:12px;padding:0 7px;font-size:14px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap;cursor:pointer}.app-menu-btn.ativo{background:var(--yellow);color:#000}.app-menu-btn b{font-size:15px}.app-dropdown{display:none;position:absolute;top:56px;background:#fff;color:#222;border-radius:0 0 14px 14px;box-shadow:0 6px 18px rgba(0,0,0,.25);overflow:hidden;min-width:260px;max-width:calc(100vw - 16px);z-index:1001}.app-dropdown.aberto{display:block}.app-dropdown a{display:flex;align-items:center;gap:10px;padding:14px 16px;color:#222;text-decoration:none;border-bottom:1px solid #eee;font-size:15px;font-weight:700;background:#fff}.app-dropdown a:active{background:#f4f4f4}.app-dropdown .sair-link{color:#c62828}#dashboardMenu{left:8px}#gerenciamentoMenu{left:calc(33.333% + 2px)}#relatoriosMenu{right:8px}main.conteudo{margin-top:151px!important;padding:20px;max-width:1100px;margin-left:auto;margin-right:auto;min-height:calc(100vh - 151px);overflow:visible}.boas-vindas{background:#fff;border-radius:16px;padding:25px;margin-bottom:25px;box-shadow:0 2px 8px rgba(0,0,0,.06)}.boas-vindas h1{font-size:28px;margin:0 0 8px;color:#000}.boas-vindas p{font-size:18px;color:#555;margin:0}.grade-botoes{display:grid;grid-template-columns:repeat(2,1fr);gap:15px;margin-bottom:25px}.btn-painel{background:#fff;border:none;border-radius:16px;padding:25px 15px;text-align:center;font-size:18px;font-weight:700;box-shadow:0 2px 8px rgba(0,0,0,.06);color:#333;text-decoration:none;display:flex;flex-direction:column;align-items:center;gap:8px;min-height:135px;justify-content:center}.btn-painel .icone{font-size:31px}.btn-painel.amarelo{background:var(--yellow);color:#000}.secao-ultimos,.card{background:#fff;border-radius:16px;padding:25px;box-shadow:0 2px 8px rgba(0,0,0,.06);margin-bottom:18px}.secao-ultimos h2,.card h2{font-size:24px;margin:0 0 18px;color:#111}.secao-ultimos h2{display:flex;justify-content:space-between;align-items:center;gap:10px}.btn-ver-todos{font-size:14px;color:#0066cc;text-decoration:none}.item-registro{padding:15px 0;border-bottom:1px solid #eee}.item-registro:last-child{border-bottom:0}.registro-titulo{font-weight:800;font-size:16px;margin-bottom:5px}.registro-info{font-size:14px;color:#666;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px}.registro-horas{background:#f0f0f0;padding:4px 10px;border-radius:12px;font-weight:800;font-size:13px;white-space:nowrap}.sem-registros{text-align:center;padding:30px;color:#888}.grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.grid .card{margin-bottom:0}.metric{font-size:34px;font-weight:900;color:#b98100;margin-top:5px}.muted{color:#666}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;background:var(--yellow);color:#000;font-weight:900;padding:12px 17px;border-radius:10px;text-decoration:none;cursor:pointer}.btn.secondary{background:#eee}.btn.danger{background:#fee2e2;color:var(--red)}.btn.blue{background:#dbeafe;color:#1e40af}.btn.green{background:#dcfce7;color:var(--green)}.input,select.input,textarea.input{width:100%;padding:13px 14px;border:1px solid #d5d5d5;background:#fff;border-radius:9px;margin:6px 0 14px;font:inherit;color:#111;outline:none}.input:focus{border-color:#c99a00;box-shadow:0 0 0 3px rgba(255,192,0,.18)}textarea.input{min-height:130px;resize:vertical}.row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.table-wrap{width:100%;overflow-x:auto;border-radius:10px;-webkit-overflow-scrolling:touch}.table{width:100%;border-collapse:separate;border-spacing:0;min-width:720px;font-size:14px;background:#fff}.table th{background:#111;color:#fff;font-weight:800}.table th,.table td{padding:12px 10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}.badge{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:#eee;font-size:12px;font-weight:900;text-transform:capitalize}.ok{background:#dcfce7;color:#166534}.warn{background:#fff3cd;color:#856404}.bad{background:#fee2e2;color:#991b1b}.notice{border-radius:12px;padding:13px 15px;margin:0 0 16px;font-weight:700}.notice.ok{background:#dcfce7;color:#166534}.notice.warn{background:#fff3cd;color:#856404}.notice.bad{background:#fee2e2;color:#991b1b}.notice.info{background:#dbeafe;color:#1e40af}.form-actions{display:flex;gap:10px;flex-wrap:wrap}.quick-box{display:none;background:#fff9e6;border:1px dashed #d7a900;padding:14px;border-radius:12px;margin:-2px 0 15px}.quick-box.show{display:block}.small{font-size:12px;color:#888}.alert-maint{border-left:5px solid #d97706;background:#fff7d6;color:#6b4b00;border-radius:12px;padding:15px 17px;margin-bottom:18px}.alert-maint strong{color:#111}.tag-edited{display:inline-block;margin-left:7px;padding:3px 7px;border-radius:9px;background:#fff3cd;color:#856404;font-size:11px;font-weight:900}.list-item{padding:15px 0;border-bottom:1px solid #eee;display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.list-item:last-child{border-bottom:0}.list-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.profile-card{max-width:600px;margin:auto}.report-filters{background:#fff;border-radius:16px;padding:22px;box-shadow:0 2px 8px rgba(0,0,0,.06);margin-bottom:18px}.filter-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.check-row{display:flex;gap:18px;align-items:center;flex-wrap:wrap;padding:8px 0}.check-row label{display:flex;gap:7px;align-items:center;font-weight:600}.report{background:#f5f5f0;border-radius:20px;padding:22px;overflow:hidden}.report-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:18px}.report-brand{display:flex;align-items:center;gap:15px}.report-logo{width:82px;height:82px;object-fit:contain;border-radius:10px}.report-company{font-size:28px;font-weight:900;color:#000}.report-period{color:#666;margin-top:4px}.report-right{text-align:right;color:#777;font-size:14px}.report-operator{margin-top:8px;border:1px solid #ddd;border-radius:8px;padding:8px 12px;background:#fafafa}.report-table{width:100%;border-collapse:collapse;table-layout:fixed}.report-table th{background:#000;color:#fff;padding:12px 8px;text-align:left}.report-table td{background:#fff;padding:10px 8px;border-bottom:1px solid #ddd;vertical-align:top;overflow-wrap:anywhere}.report-table th:last-child,.report-table td:last-child{text-align:right}.report-total{margin-top:18px}.total-line{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid #ddd;font-weight:900;font-size:20px}.total-value{font-size:23px;color:#000}.pdf-actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}.print-only{display:none}footer{background:#080808;color:#aaa;text-align:center;padding:32px 18px;margin-top:25px;font-size:13px;border-top:1px solid #222}.login{min-height:calc(100vh - 30px);display:flex;align-items:center;justify-content:center;padding:70px 20px 35px;background:#0b0b0b}.login .box{width:100%;max-width:410px;background:#fff;border-radius:18px;padding:30px;box-shadow:0 18px 55px rgba(0,0,0,.45);text-align:center}.login .logo-container img{width:155px;height:155px;object-fit:contain;border-radius:14px}.login h1{font-size:25px;margin:0 0 8px;color:#222}.login .demo-login-sub{color:#666;margin:0 0 22px}.login .grupo{text-align:left;margin-bottom:15px}.login label{display:block;margin-bottom:6px;font-weight:600;color:#444}.login .btn{width:100%;padding:14px;font-size:17px;margin-top:8px}.login .input{margin:0}.login .notice{margin-top:18px;text-align:left;font-size:13px}.index-logo{width:260px;max-width:70vw;height:auto;object-fit:contain;border-radius:22px;box-shadow:0 20px 60px rgba(255,174,0,.13)}
@media(min-width:768px){.grade-botoes{grid-template-columns:repeat(3,1fr)}}
@media(max-width:650px){.grid,.row,.filter-grid{grid-template-columns:1fr}.card,.secao-ultimos{padding:20px}.boas-vindas{padding:24px 20px}.report{padding:13px}.report-head{gap:10px}.report-logo{width:62px;height:62px}.report-company{font-size:20px}.report-right{font-size:11px}.report-table{font-size:11px}.report-table th,.report-table td{padding:7px 4px}.form-actions,.pdf-actions{flex-direction:column}.form-actions .btn,.pdf-actions .btn{width:100%}.list-item{flex-direction:column}.list-actions{justify-content:flex-start}.app-brand h1{font-size:18px}.app-header{padding:9px 12px}.app-sair{padding:9px 14px}.app-menu-btn{font-size:12px}.app-dropdown{min-width:0;width:calc(100vw - 16px)}#gerenciamentoMenu,#relatoriosMenu{left:8px;right:8px}main.conteudo{padding:12px}.grade-botoes{gap:15px}.btn-painel{min-height:120px}.demo-bar{font-size:10.5px}}
@media print{body{background:#fff}.demo-bar,.app-header,.app-menu,footer,.report-filters,.pdf-actions{display:none!important}main.conteudo{margin:0!important;padding:0!important;max-width:none!important}.report{border:0!important;border-radius:0!important;background:#fff!important;padding:0!important;box-shadow:none!important}.print-only{display:block}.report-table th{color:#fff!important;background:#000!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}}

/* Relatórios separados por finalidade */
.report-type-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:20px}.report-type-kicker{font-size:14px;font-weight:900;color:#a36f00;text-transform:uppercase;letter-spacing:.04em;margin-bottom:5px}.report-type-head h2{margin:0 0 5px}.report-type-head p{margin:0;color:#666;font-size:14px}.report-switch{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.report-switch-btn{padding:9px 12px;border-radius:10px;background:#eee;color:#333;text-decoration:none;font-size:13px;font-weight:900}.report-switch-btn.ativo{background:var(--yellow);color:#000}.report-title-line{font-size:18px;font-weight:900;margin-top:6px;color:#333}.report-group{margin:0 0 18px;background:#fff;border:1px solid #e1e1e1;border-radius:14px;overflow:hidden}.report-group-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 15px;background:#fff8df;border-bottom:1px solid #eadfb8}.report-group-head>div{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.report-group-icon{font-size:22px}.report-group-head strong{font-size:18px}.report-group-head span:not(.report-group-icon):not(.report-group-sub){font-weight:900}.report-group-head>div:last-child{justify-content:flex-end}.report-group-head>div:last-child span{padding:6px 9px;border-radius:8px;background:#fff}.report-group-sub{color:#777;font-size:13px}.report-group .report-table{margin:0}.equipment-summary,.service-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:0 0 18px}.service-summary{grid-template-columns:repeat(3,1fr);margin-bottom:18px}.equipment-summary>div,.service-summary>div{background:#fff;border:1px solid #ddd;border-radius:10px;padding:12px}.equipment-summary small,.service-summary small{display:block;color:#777;margin-bottom:4px}.equipment-summary strong,.service-summary strong{font-size:19px}.report-empty{padding:35px 15px;text-align:center;background:#fff;border-radius:12px;color:#777;font-weight:700}.report-empty-cell{text-align:center!important;padding:30px!important;color:#777}
@media(max-width:650px){.report-type-head{flex-direction:column}.report-switch{justify-content:flex-start}.report-switch-btn{flex:1;text-align:center}.report-title-line{font-size:15px}.report-group-head{align-items:flex-start;flex-direction:column}.report-group-head>div:last-child{width:100%;justify-content:flex-start}.equipment-summary{grid-template-columns:1fr 1fr}.service-summary{grid-template-columns:1fr 1fr}.report-equipamento .report-table{font-size:10px}.report-cliente .report-table,.report-servico .report-table{font-size:10px}}
.gps-foto-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:4px 0 18px}.gps-box{border:1px solid #ddd;border-radius:12px;background:#fafafa;padding:14px}.gps-box label{display:block;font-weight:900;margin-bottom:8px}.gps-box .btn{margin-bottom:8px}.gps-box .input{margin-bottom:8px}.gps-box .small{line-height:1.45}.report-cliente .report-group-head{background:#fff8df}.report-servico .report-table th{background:#252525}.report-equipamento .report-group-head{background:#eef6ff}.report-equipamento .equipment-summary>div:nth-child(3),.report-equipamento .equipment-summary>div:nth-child(4){background:#fff8df}.report-servico .service-summary>div{background:#f8f8f8}.report-meta-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:7px}.report-meta-tag{display:inline-block;padding:4px 7px;border-radius:7px;background:#eee;font-size:11px;font-weight:800;color:#444}.report-photo{max-width:80px;max-height:60px;border-radius:7px;object-fit:cover;border:1px solid #ddd}.report-gps{font-size:11px;color:#666}.calc-consumo{margin-top:6px}
@media(max-width:650px){.gps-foto-grid{grid-template-columns:1fr}.gps-box .btn{width:100%}}
/* Relatório de equipamentos — visão completa da frota */
.equipment-fleet-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 17px;margin-bottom:14px;background:#111;color:#fff;border-radius:13px}.equipment-fleet-head strong{display:block;font-size:19px}.equipment-fleet-head span{display:block;color:#bbb;font-size:13px;margin-top:2px}.equipment-fleet-head>div:last-child{background:var(--yellow);color:#000;padding:8px 12px;border-radius:10px;white-space:nowrap}.equipment-card{background:#fff;border:1px solid #ddd;border-radius:15px;margin-bottom:16px;overflow:hidden;box-shadow:0 2px 5px rgba(0,0,0,.04)}.equipment-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:15px 16px;background:#eef6ff;border-bottom:1px solid #d8e6f5}.equipment-ident{display:flex;align-items:center;gap:11px}.equipment-icon{font-size:27px}.equipment-ident strong{display:block;font-size:19px;color:#111}.equipment-ident span:not(.equipment-icon){display:block;color:#666;font-size:13px;margin-top:2px}.equipment-statuses{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.equipment-details-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding:14px 16px}.equipment-details-grid>div{border:1px solid #e1e1e1;border-radius:10px;padding:11px;background:#fafafa}.equipment-details-grid>div:nth-child(2),.equipment-details-grid>div:nth-child(3){background:#fff8df}.equipment-details-grid small{display:block;color:#777;font-size:12px;margin-bottom:4px}.equipment-details-grid strong{display:block;font-size:16px;color:#111}.equipment-services-title{font-weight:900;padding:12px 16px 8px;color:#222}.equipment-card .report-table{margin:0}.equipment-no-service{margin:0 16px 16px;padding:12px;border-radius:10px;background:#f5f5f5;color:#777;font-size:13px;font-weight:700}.report-equipamento .report-total{margin-top:20px}
@media(max-width:650px){.equipment-fleet-head{align-items:flex-start}.equipment-fleet-head strong{font-size:16px}.equipment-card-head{flex-direction:column}.equipment-statuses{justify-content:flex-start}.equipment-details-grid{grid-template-columns:1fr 1fr}.equipment-ident strong{font-size:17px}}
