:root{--sidebar-bg: #1e293b;--sidebar-text: #f8fafc;--primary-color: #2563eb;--bg-color: #f1f5f9;--text-color: #334155}*{box-sizing:border-box;margin:0;padding:0;font-family:Segoe UI,sans-serif}input,select,textarea,button{-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit}input[type=date]{min-height:42px;background-color:#fff;display:block}html{-webkit-overflow-scrolling:touch}body,html,#root{height:100%;width:100%;background-color:var(--bg-color);color:var(--text-color)}.swal2-container{z-index:10000!important}.app-container{display:flex;height:100vh;width:100vw;overflow:hidden}.sidebar{width:260px;background-color:var(--sidebar-bg);color:var(--sidebar-text);display:flex;flex-direction:column;padding:20px;transition:transform .3s ease;flex-shrink:0;z-index:50}.logo-area{margin-bottom:40px;text-align:center;font-size:1.5rem;font-weight:700;letter-spacing:1px;display:flex;justify-content:space-between;align-items:center}.menu-nav{display:flex;flex-direction:column;gap:5px;overflow-y:auto;flex:1}.menu-item{display:flex;align-items:center;gap:12px;padding:12px 15px;color:#94a3b8;text-decoration:none;border-radius:8px;font-weight:500;transition:.2s}.menu-item:hover{background-color:#334155;color:#fff}.menu-item.active{background-color:var(--primary-color);color:#fff}.btn-sair{margin-top:auto;background:none;border:none;color:#ef4444;cursor:pointer;display:flex;align-items:center;gap:10px;padding:10px;font-size:16px;font-weight:700}.content-area{flex:1;display:flex;flex-direction:column;overflow:hidden;position:relative}.top-bar{background:#fff;padding:15px 20px;border-bottom:1px solid #e2e8f0;display:flex;justify-content:space-between;align-items:center;box-shadow:0 1px 2px #0000000d;height:60px;flex-shrink:0}.page-view{padding:20px;overflow-y:auto;height:100%;-webkit-overflow-scrolling:touch}.card{background:#fff;padding:25px;border-radius:10px;box-shadow:0 4px 6px -1px #0000001a}.card-title{margin-bottom:20px;font-size:1.25rem;font-weight:600;color:#1e293b}.form-group{margin-bottom:15px}.form-group label{display:block;margin-bottom:6px;font-size:.9rem;font-weight:500}.form-group input,.form-group textarea,.form-group select{width:100%;padding:10px;border:1px solid #cbd5e1;border-radius:6px;font-size:1rem;transition:border .2s;background-color:#fff}.form-group input:focus,.form-group select:focus{outline:none;border-color:var(--primary-color)}.btn{padding:10px 20px;border:none;border-radius:6px;cursor:pointer;font-weight:600;font-size:.95rem;transition:.2s}.btn-primary{background:var(--primary-color);color:#fff}.btn-primary:hover{background:#1d4ed8}.btn-menu-mobile{display:none;background:transparent;border:none;color:#1e293b;cursor:pointer;padding:5px}.menu-overlay,.mobile-tabbar,.mobile-sheet,.mobile-sheet-backdrop{display:none}@media(max-width:768px){.btn-menu-mobile{display:inline-flex;align-items:center;justify-content:center;position:fixed;top:12px;left:12px;z-index:60;width:40px;height:40px;background:#fff;border:1px solid #e2e8f0;border-radius:8px;box-shadow:0 2px 8px #0000001f}.btn-menu-mobile.is-open{background:#1e293b;color:#f8fafc;border-color:#1e293b}.top-bar{padding-left:64px}.page-view{padding:15px}.sidebar{position:fixed;top:0;left:0;bottom:0;height:100%;transform:translate(-100%);width:80%;max-width:300px;box-shadow:4px 0 15px #0003}.sidebar.open{transform:translate(0)}.menu-overlay{position:fixed;inset:0;background:#00000080;z-index:40;display:none}.menu-overlay.open{display:block}.table-responsive{width:100%;overflow-x:auto;background:#fff;border-radius:8px;box-shadow:0 1px 3px #0000001a}.custom-table{width:100%;border-collapse:collapse;white-space:nowrap}.custom-table th{background-color:#f1f5f9;color:#475569;font-weight:600;text-transform:uppercase;font-size:.75rem;letter-spacing:.05em;padding:15px;text-align:left;border-bottom:2px solid #e2e8f0}.custom-table td{padding:15px;color:#334155;border-bottom:1px solid #f1f5f9;vertical-align:middle}.custom-table tbody tr:hover{background-color:#f8fafc}.text-right{text-align:right}.text-center{text-align:center}.custom-table{border:0}.custom-table thead{display:none}.custom-table tr{display:block;background:#fff;border:1px solid #e2e8f0;margin-bottom:15px;border-radius:8px;box-shadow:0 2px 5px #0000000d}.custom-table td{display:flex;justify-content:space-between;align-items:center;padding:12px 15px;font-size:.9rem;text-align:right;border-bottom:1px solid #f1f5f9;white-space:normal}.custom-table td:last-child{border-bottom:0;justify-content:flex-end;padding-top:15px}.custom-table td:before{content:attr(data-label);font-weight:700;color:#64748b;text-transform:uppercase;font-size:.75rem;margin-right:20px;text-align:left}}@media(max-width:768px){.sidebar,.menu-overlay,.btn-menu-mobile{display:none!important}.top-bar{margin:12px 12px 0;padding:0 16px;height:56px;border:1px solid #e2e8f0;border-radius:16px;box-shadow:0 4px 14px #0f172a14}.page-view{padding:12px 12px 104px}.card{border-radius:16px}.mobile-tabbar{display:flex;position:fixed;left:12px;right:12px;bottom:calc(10px + env(safe-area-inset-bottom));z-index:70;justify-content:space-around;gap:2px;padding:6px;background:#fff;border:1px solid #e2e8f0;border-radius:22px;box-shadow:0 8px 24px #0f172a29}.mobile-tab{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:8px 2px;background:transparent;border:none;border-radius:16px;color:#64748b;text-decoration:none;cursor:pointer;font-size:.7rem;font-weight:600}.mobile-tab span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-tab.active{background:#eff6ff;color:var(--primary-color);box-shadow:0 2px 8px #2563eb26}.mobile-sheet-backdrop{display:block;position:fixed;inset:0;z-index:75;background:#0f172a73;opacity:0;pointer-events:none;transition:opacity .25s ease}.mobile-sheet-backdrop.open{opacity:1;pointer-events:auto}.mobile-sheet{display:flex;flex-direction:column;gap:2px;position:fixed;left:12px;right:12px;bottom:calc(92px + env(safe-area-inset-bottom));z-index:80;max-height:calc(100vh - 120px);overflow-y:auto;padding:10px 12px 12px;background:#fff;border-radius:22px;box-shadow:0 12px 32px #0f172a40;transform:translateY(24px);opacity:0;visibility:hidden;transition:transform .25s ease,opacity .25s ease,visibility .25s}.mobile-sheet.open{transform:translateY(0);opacity:1;visibility:visible}.mobile-sheet-grip{width:40px;height:4px;border-radius:4px;background:#cbd5e1;margin:0 auto 8px;flex-shrink:0}.mobile-sheet-user{display:flex;align-items:center;gap:12px;padding:10px;margin-bottom:6px;background:#f1f5f9;border-radius:14px}.mobile-sheet-user strong{display:block;color:#1e293b}.mobile-sheet-user small{color:#64748b}.mobile-sheet-avatar{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--sidebar-bg);color:#fff;font-weight:700}.mobile-sheet-item{display:flex;align-items:center;gap:14px;padding:13px 12px;border:none;border-radius:12px;background:transparent;color:#334155;text-decoration:none;font-size:1rem;font-weight:500;text-align:left;cursor:pointer}.mobile-sheet-item.active{background:#eff6ff;color:var(--primary-color)}.mobile-sheet-sair{color:#ef4444;font-weight:700;margin-top:4px}}@media(max-width:768px){input,select,textarea{font-size:16px}.page-head{flex-wrap:wrap;gap:12px}.page-head h2{font-size:1.25rem!important;flex:1 1 auto;min-width:0}.page-head>div{flex-wrap:wrap}.page-head .btn{white-space:nowrap}.filtro-bar{flex-wrap:wrap}.filtro-bar>.filtro-busca{flex:1 1 100%!important;min-width:0}.filtro-bar>select{flex:1 1 0;min-width:0;width:auto}.filtro-bar>.btn{flex:0 0 auto;height:40px}.filtro-bar>.filtro-busca+.btn{flex:1 1 100%}.filtro-bar input[type=text]{min-width:0}.filtro-relatorio>div{flex:1 1 100%!important;min-width:0!important}.filtro-relatorio>div:nth-child(1),.filtro-relatorio>div:nth-child(2){flex:1 1 calc(50% - 6px)!important}.filtro-relatorio input{width:100%;min-width:0!important}.filtro-relatorio>.btn{flex:1 1 100%;justify-content:center}.card{padding:16px}table.tabela-lista{display:block;width:100%}table.tabela-lista thead{display:none}table.tabela-lista tbody{display:block}table.tabela-lista tr{display:block;border:1px solid #e2e8f0!important;border-radius:14px;margin-bottom:12px;background:#fff;box-shadow:0 2px 6px #0f172a0d;overflow:hidden}table.tabela-lista td{display:flex!important;justify-content:space-between;align-items:center;gap:16px;padding:10px 14px!important;text-align:right!important;border-bottom:1px solid #f1f5f9;word-break:break-word}table.tabela-lista td:before{content:attr(data-label);flex:0 0 auto;font-size:.7rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#64748b;text-align:left}table.tabela-lista td:last-child{border-bottom:0;justify-content:flex-end}table.tabela-lista td:last-child:before{display:none}table.tabela-lista td[colspan]{justify-content:center;text-align:center!important}table.tabela-lista td[colspan]:before{display:none}table.tabela-lista td button{padding:8px!important}.modal-overlay,[class*=modal-overlay]{padding:8px}}@media(max-width:768px){.mobile-tab-seta{transition:transform .25s ease}.mobile-tab[aria-expanded=true] .mobile-tab-seta{transform:rotate(180deg)}}@media(max-width:768px){.filtro-bar>select~.btn{flex:0 0 auto}.page-head h2{font-size:1.15rem!important}.page-head .btn{padding:10px 14px}}@media(max-width:768px){.modal-overlay{align-items:stretch!important;padding:0!important}.modal-box{width:100%!important;max-width:100%!important;height:100%;max-height:100dvh!important;border-radius:0!important}.modal-header{padding:12px 16px!important;gap:8px;flex-wrap:nowrap;align-items:flex-start!important;border-radius:0!important}.modal-header>div{flex-wrap:wrap;min-width:0;flex:1}.modal-header h2,.modal-header h3{font-size:1.1rem!important}.modal-form{padding:16px!important;flex:1;min-height:0;overflow-x:hidden}.modal-form div[style*="display: flex"]{flex-wrap:wrap}.modal-form div[style*="width:"]{max-width:100%}.modal-form input,.modal-form select,.modal-form textarea{max-width:100%;min-width:0}.grid-resp{grid-template-columns:1fr 1fr!important}.grid-resp.grid-item>:first-child{grid-column:1 / -1}.grid-resp.grid-pag{grid-template-columns:1fr!important}.modal-form table{display:block;overflow-x:auto;white-space:nowrap}.modal-footer{flex-wrap:wrap;position:sticky;bottom:0;background:#fff;padding-top:10px}.modal-footer>button,.modal-footer>.btn{flex:1 1 140px;justify-content:center}}@media(max-width:768px){.modal-form div[style*="display: flex"]:not([style*="flex-direction: column"])>div[style*=width],.modal-form div[style*="display: flex"]:not([style*="flex-direction: column"])>div[style*=flex]{flex:1 1 calc(50% - 8px)!important;width:auto!important;min-width:130px}}
