:root{color:#17202a;background:#eef2f5;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{min-width:320px;min-height:100vh;margin:0}.login-shell{place-items:center;min-height:100vh;padding:24px;display:grid}.login-panel{background:#fff;border:1px solid #d8dee6;border-radius:8px;gap:18px;width:min(440px,100%);padding:28px;display:grid}.login-panel h1{margin:0 0 8px;font-size:28px}.login-panel span{color:#64748b}.login-form{gap:14px;display:grid}button,input,select,textarea{font:inherit}.app-shell{grid-template-columns:260px minmax(0,1fr);min-height:100vh;display:grid}.sidebar{color:#f7fafc;background:#10233f;flex-direction:column;justify-content:space-between;gap:32px;height:100vh;padding:28px 22px;display:flex;position:sticky;top:0}.brand-kicker,.eyebrow{color:#4fc08d;letter-spacing:0;text-transform:uppercase;margin:0 0 8px;font-size:12px;font-weight:800}.sidebar h1{margin:0;font-size:24px;line-height:1.2}.sidebar nav{gap:8px;display:grid}.nav-item{color:#c7d2df;cursor:pointer;width:100%;font:inherit;text-align:left;background:0 0;border:0;border-radius:6px;padding:10px 12px;font-weight:700;text-decoration:none}.nav-item:hover,.nav-item.active{color:#fff;background:#1c355b}.content{align-content:start;gap:20px;min-width:0;max-width:100%;padding:28px;display:grid}.topbar{border-bottom:1px solid #d8dee6;justify-content:space-between;align-items:center;gap:16px;padding-bottom:20px;display:flex}.topbar h2{margin:0;font-size:28px}.topbar span{color:#64748b;margin-top:4px;display:inline-block}.topbar-actions{justify-content:flex-end;align-items:center;gap:10px;display:flex}.user-chip{background:#fff;border:1px solid #d8dee6;border-radius:6px;gap:2px;min-width:150px;padding:7px 10px;display:grid}.user-chip strong{font-size:13px}.user-chip span{margin:0;font-size:12px}.secondary-button{background:#62718a}button{color:#fff;cursor:pointer;background:#256f5c;border:0;border-radius:6px;min-height:40px;padding:0 14px;font-weight:700}button:disabled{cursor:not-allowed;background:#a7b2bd}.metrics-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;min-width:0;display:grid}.metric,.panel{background:#fff;border:1px solid #d8dee6;border-radius:8px;min-width:0}.metric{gap:8px;padding:18px;display:grid}.metric span{color:#64748b;text-transform:uppercase;font-size:12px;font-weight:800}.metric strong{font-size:22px}.workspace-grid,.tables-grid,.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;min-width:0;display:grid}.panel{padding:20px}.panel h3{margin:0 0 16px;font-size:18px}.form-grid,.employee-form,.employee-filter-form,.rubric-form,.period-form,.entry-form,.statutory-table-form{gap:12px;display:grid}.employee-form,.employee-filter-form,.rubric-form,.entry-form,.employee-event-form,.period-form{grid-template-columns:repeat(3,minmax(160px,1fr))}.statutory-table-form{grid-template-columns:repeat(2,minmax(160px,1fr))}label{color:#52606d;gap:6px;font-size:13px;font-weight:700;display:grid}input,select,textarea{color:#17202a;background:#fff;border:1px solid #cad3de;border-radius:6px;width:100%;min-height:40px;padding:0 10px}textarea{resize:vertical;min-height:88px;padding:10px}input[type=checkbox]{width:16px;min-height:16px;padding:0}.searchable-select-field{min-width:0}.searchable-select{min-width:0;position:relative}.searchable-select input{padding-right:28px}.searchable-select:after{content:"";pointer-events:none;border-top:6px solid #64748b;border-left:5px solid #0000;border-right:5px solid #0000;width:0;height:0;position:absolute;top:15px;right:10px}.searchable-select-list{z-index:35;background:#fff;border:1px solid #cad3de;border-radius:6px;max-height:220px;padding:4px;display:none;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow-y:auto;box-shadow:0 12px 28px #10233f2e}.searchable-select:focus-within .searchable-select-list{gap:2px;display:grid}.searchable-select-list button{color:#17202a;text-align:left;background:#fff;border-radius:4px;gap:2px;width:100%;min-height:38px;padding:7px 9px;display:grid}.searchable-select-list button:hover,.searchable-select-list button.selected{color:#10233f;background:#e8eef7}.searchable-select-list button strong,.searchable-select-empty{overflow-wrap:anywhere;font-size:13px}.searchable-select-list button span{color:#64748b;font-size:12px;font-weight:700}.searchable-select-empty{color:#64748b;padding:8px}.employee-form button,.rubric-form button,.period-form button,.entry-form button{align-self:end}.span-2{grid-column:span 2}.check-group{grid-column:1/-1;grid-template-columns:repeat(4,minmax(90px,1fr));gap:8px;display:grid}.check-group label{color:#263747;border:1px solid #d8dee6;border-radius:6px;align-items:center;gap:8px;min-height:40px;padding:0 10px;display:flex}.table-scroll{max-width:100%;overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:520px}th,td{text-align:left;white-space:nowrap;border-bottom:1px solid #e3e8ef;padding:12px 10px}th{color:#64748b;text-transform:uppercase;font-size:12px}.status-badge{border-radius:999px;align-items:center;min-height:26px;padding:0 10px;font-size:12px;font-weight:800;display:inline-flex}.origin-badge{border:1px solid #0000;border-radius:999px;align-items:center;min-height:26px;padding:0 10px;font-size:12px;font-weight:800;display:inline-flex}.origin-manual{color:#2f527c;background:#e8eef7;border-color:#c8d6ea}.origin-dapic{color:#1f6c4d;background:#dff7eb;border-color:#afe4c9}.status-aberta,.status-reaberta,.status-active{color:#1f6c4d;background:#dff7eb}.status-fechada,.status-inactive{color:#334155;background:#e3e8ef}.status-calculada,.status-aprovada,.status-em_calculo{color:#835600;background:#fff3d6}.status-cancelada{color:#9f1d1d;background:#fde7e7}.table-action{min-height:32px;padding:0 10px}.table-actions{flex-wrap:wrap;gap:8px;display:flex}.alert,.notice,.feedback{border-radius:6px;padding:12px 14px;font-weight:700}.alert,.feedback-error{color:#9f1d1d;background:#fde7e7}.notice,.feedback-success{color:#1f6c4d;background:#dff7eb}.feedback-warning,.alert-warning{color:#8a4b00;background:#fff4d6}.task-list{gap:10px;margin:0;padding:0;list-style:none;display:grid}.task-list li{border:1px solid #e3e8ef;border-radius:6px;justify-content:space-between;align-items:center;gap:12px;padding:12px;display:flex}.task-list span{color:#263747;font-weight:700}.task-list strong{color:#256f5c;text-transform:uppercase;font-size:12px}.quick-actions{flex-wrap:wrap;gap:10px;display:flex}.integration-layout{grid-template-columns:minmax(0,1fr);gap:16px;display:grid}.dapic-integration-panel{overflow:hidden}.dapic-integration-panel .entry-form{grid-template-columns:repeat(3,minmax(0,1fr))}.dapic-integration-panel .entry-form label,.dapic-integration-panel .entry-form button{min-width:0}.integration-progress{color:#214e78;background:#eaf5ff;border:1px solid #b9d9f4;border-radius:6px;align-items:center;gap:10px;margin-bottom:16px;padding:12px 14px;display:flex}.loading-spinner{border:3px solid #b9d9f4;border-top-color:#256f5c;border-radius:999px;flex:none;width:18px;height:18px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.integration-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.integration-summary div{border:1px solid #e3e8ef;border-radius:6px;gap:4px;padding:10px;display:grid}.integration-summary span{color:#64748b;text-transform:uppercase;font-size:12px;font-weight:800}.integration-summary strong{color:#263747;overflow-wrap:anywhere}.integration-summary .integration-error{background:#fde7e7}.integration-actions{border-top:1px solid #e3e8ef;margin-top:16px;padding-top:16px}.integration-order-sync{border-top:1px solid #e3e8ef;grid-template-columns:repeat(2,minmax(160px,220px)) minmax(180px,auto) minmax(0,1fr);align-items:end;gap:12px;margin-top:12px;padding-top:16px;display:grid}.integration-order-sync span{color:#64748b;font-size:13px;font-weight:700}.dapic-conference{gap:16px;min-width:0;display:grid}.dapic-conference .table-scroll{overflow-x:visible}.dapic-conference table{table-layout:fixed;min-width:0}.dapic-conference th,.dapic-conference td{overflow-wrap:anywhere;white-space:normal;vertical-align:top}.dapic-conference .table-actions{align-items:flex-start}.dapic-conference .table-action{min-width:92px}.dapic-conference .table-action:first-child{background:#256f5c}.dapic-conference-header{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.dapic-conference-header h3{margin:0 0 4px}.dapic-conference-header span,.origin-legend{color:#64748b;font-size:13px;font-weight:700}.origin-legend{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.tab-list{border-bottom:1px solid #e3e8ef;flex-wrap:wrap;gap:8px;padding-bottom:10px;display:flex}.tab-button{color:#2f527c;background:#e8eef7;align-items:center;gap:8px;min-height:36px;display:inline-flex}.tab-button.active{color:#fff;background:#256f5c}.tab-button span{color:#263747;background:#ffffffad;border-radius:999px;align-items:center;min-height:22px;padding:0 8px;font-size:12px;display:inline-flex}.dapic-filter-form{grid-template-columns:minmax(240px,1fr) minmax(180px,260px);gap:12px;display:grid}.dapic-status{color:#2f527c;background:#e8eef7}.dapic-status-active,.dapic-status-success,.dapic-status-concluida,.dapic-status-finalizada,.dapic-status-finished{color:#1f6c4d;background:#dff7eb}.dapic-status-error,.dapic-status-failed,.dapic-status-cancelada,.dapic-status-canceled{color:#9f1d1d;background:#fde7e7}.dapic-status-running,.dapic-status-aguardando-inicio,.dapic-status-waitingstart,.dapic-status-em-producao,.dapic-status-inproduction,.dapic-link-pendente{color:#8a4b00;background:#fff4d6}.dapic-link-vinculado{color:#1f6c4d;background:#dff7eb}.dapic-link-ignorado{color:#334155;background:#e3e8ef}.pagination-bar{border-top:1px solid #e3e8ef;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:8px;max-width:100%;padding-top:12px;display:flex;overflow:visible}.pagination-bar span{color:#64748b;font-size:13px;font-weight:800}.pagination-actions{flex-wrap:wrap;justify-content:flex-start;gap:8px;max-width:100%;display:flex}.pagination-actions button{min-width:92px;min-height:34px;padding:0 12px}.section-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}.settings-tabs{border-bottom:1px solid #d8dee6;flex-wrap:wrap;gap:8px;padding-bottom:12px;display:flex}.settings-tabs button{color:#2f527c;background:#e8eef7;min-height:36px}.settings-tabs button.active{color:#fff;background:#256f5c}.employee-toolbar{border-bottom:1px solid #e3e8ef;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;padding-bottom:14px;display:flex}.employee-toolbar span{color:#64748b;font-weight:800}.conference-header,.empty-state{justify-content:space-between;align-items:center;gap:16px;display:flex}.conference-header{background:#fff;border:1px solid #d8dee6;border-radius:8px;padding:20px}.conference-header h3{margin:0;font-size:24px}.conference-header span,.empty-state span{color:#64748b;font-weight:700}.mass-entry-form{gap:16px;display:grid}.mass-entry-table table{min-width:1120px}.mass-entry-table td:first-child,.mass-entry-table th:first-child{text-align:center;width:88px}.mass-entry-table input[type=checkbox]{margin:0 auto}.range-editor{border:1px solid #e3e8ef;border-radius:6px;gap:8px;padding:10px;display:grid}.range-editor-header,.range-editor-row{grid-template-columns:56px repeat(4,minmax(92px,1fr));align-items:center;gap:8px;display:grid}.range-editor-header{color:#64748b;text-transform:uppercase;font-size:12px;font-weight:800}.range-editor-row strong{color:#263747}.rate-editor{gap:12px;display:grid}.rate-editor-row{border:1px solid #e3e8ef;border-radius:6px;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:12px;display:grid}.rate-editor-row strong{color:#263747;grid-column:1/-1;font-size:14px}.production-rate-details{gap:16px;display:grid}.detail-grid,.production-rate-rule-list article dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.detail-grid div,.production-rate-rule-list article{border:1px solid #e3e8ef;border-radius:6px;padding:12px}.detail-grid span,.production-rate-rule-list dt{color:#64748b;text-transform:uppercase;font-size:12px;font-weight:800}.detail-grid strong,.production-rate-rule-list dd{color:#263747;overflow-wrap:anywhere;margin:4px 0 0;font-weight:800}.production-rate-rule-list{gap:12px;display:grid}.production-rate-rule-list article header{justify-content:space-between;gap:12px;margin-bottom:12px;display:flex}.production-rate-rule-list article header span{color:#256f5c;font-weight:900}.production-rate-rule-list dl{margin:0}.company-list{gap:12px;display:grid}.company-list article{border:1px solid #e3e8ef;border-radius:6px;justify-content:space-between;align-items:center;gap:12px;padding:14px;display:flex}.company-list span{font-weight:800}.company-list strong{color:#64748b;font-size:13px}.payslip-toolbar{align-items:end;gap:12px;max-width:680px;margin-bottom:16px;display:flex}.payslip-toolbar label{flex:1}.payslip{gap:16px;display:grid}.payslip-header{border:1px solid #e3e8ef;border-radius:6px;justify-content:space-between;align-items:center;gap:16px;padding:16px;display:flex}.payslip-header h3{margin:0;font-size:24px}.payslip-header div:last-child{text-align:right;gap:4px;display:grid}.payslip-header span{color:#64748b;font-size:13px;font-weight:800}.payslip-bases{grid-template-columns:repeat(6,minmax(120px,1fr));gap:10px;display:grid}.payslip-columns{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.payslip-list{border:1px solid #e3e8ef;border-radius:6px;padding:14px}.payslip-list h4{margin:0 0 10px}.payslip-list ul{gap:8px;margin:0;padding:0;list-style:none;display:grid}.payslip-list li{border-bottom:1px solid #edf1f5;justify-content:space-between;align-items:center;gap:12px;padding-bottom:8px;display:flex}.payslip-list li:last-child{border-bottom:0;padding-bottom:0}.payslip-list li div{gap:2px;display:grid}.payslip-list li span,.payslip-empty{color:#64748b;font-size:13px;font-weight:700}.payslip-list li>span{color:#17202a;white-space:nowrap}.payslip-total{border-top:1px solid #e3e8ef;flex-wrap:wrap;justify-content:flex-end;gap:12px;padding-top:14px;display:flex}.payslip-total span{color:#52606d;font-weight:800}.payslip-total strong{color:#17202a}.employee-profile{grid-template-columns:120px minmax(0,1fr) minmax(260px,360px);align-items:start;gap:18px;margin-bottom:18px;display:grid}.employee-photo{color:#10233f;background:#e3e8ef;border:1px solid #d8dee6;border-radius:8px;place-items:center;width:120px;height:120px;font-size:32px;font-weight:800;display:grid;overflow:hidden}.employee-photo img{object-fit:cover;width:100%;height:100%}.employee-profile-info h3{margin:0 0 12px;font-size:24px}.employee-profile-info dl{grid-template-columns:repeat(2,minmax(120px,1fr));gap:10px;margin:0;display:grid}.employee-profile-info div{border:1px solid #e3e8ef;border-radius:6px;padding:10px}.employee-profile-info dt{color:#64748b;text-transform:uppercase;font-size:12px;font-weight:800}.employee-profile-info dd{margin:4px 0 0;font-weight:800}.employee-photo-form,.employee-responsible-form,.employee-event-form{gap:12px;display:grid}.employee-responsible-panel{border-top:1px solid #e3e8ef;margin-bottom:18px;padding-top:18px}.employee-fixed-panel{border-top:1px solid #e3e8ef;gap:14px;padding-top:18px;display:grid}.employee-section-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.employee-section-header h4{margin:0;font-size:16px}.employee-section-header span{color:#64748b;font-size:13px;font-weight:800}.employee-responsible-form{grid-template-columns:minmax(220px,420px) minmax(180px,240px);align-items:end}.report-toolbar{justify-content:space-between;align-items:end;gap:16px;display:flex}.report-toolbar label{width:100%;max-width:420px}.report-section{gap:12px;display:grid}.report-section .table-panel{padding-top:14px}.report-section .table-panel h3{color:#64748b;text-transform:uppercase;font-size:13px}.table-panel-header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.table-panel-header h3{margin:0}.table-panel-header button{flex:none}.report-section-header{background:#fff;border:1px solid #d8dee6;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;display:flex}.report-section-header h3{margin:0}.modal-backdrop{z-index:20;background:#10233f73;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.modal{background:#fff;border:1px solid #d8dee6;border-radius:8px;grid-template-rows:auto minmax(0,1fr);width:min(780px,100%);max-height:calc(100vh - 48px);display:grid;overflow:hidden}.modal-wide{width:min(1180px,100%)}.modal-header{border-bottom:1px solid #e3e8ef;justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;display:flex}.modal-header h3{margin:0}.modal-body{gap:18px;padding:20px;display:grid;overflow:hidden auto}.modal-body .table-scroll{overflow-x:hidden}.modal-body table{table-layout:fixed;min-width:0}.modal-body th,.modal-body td{overflow-wrap:anywhere;white-space:normal}.modal-wide .employee-profile{grid-template-columns:120px minmax(0,1fr) minmax(220px,260px)}.modal-wide .employee-photo-form button,.modal-wide .employee-responsible-form button,.modal-wide .employee-event-form button{width:100%}.modal-wide .employee-event-form{grid-template-columns:repeat(2,minmax(0,1fr))}.modal-wide .employee-event-form label:nth-child(3),.modal-wide .employee-event-form label:nth-child(4),.modal-wide .employee-event-form label:nth-child(5){grid-column:1/-1}.modal-actions{grid-column:1/-1;justify-content:flex-end;gap:10px;display:flex}.modal-actions button:first-child{background:#64748b}.compact-actions{grid-column:auto}.message-modal-backdrop{z-index:40}.message-modal{text-align:center;background:#fff;border:1px solid #d8dee6;border-radius:8px;gap:14px;width:min(420px,100%);padding:22px;display:grid}.message-modal h3{margin:0}.message-modal p{color:#263747;margin:0;font-weight:800}.message-modal button{justify-self:center;min-width:110px}@media (width<=1100px){.app-shell{grid-template-columns:1fr}.sidebar{height:auto;position:static}.topbar{flex-direction:column;align-items:flex-start}.topbar-actions{flex-wrap:wrap;justify-content:flex-start;width:100%}.metrics-grid,.payslip-bases,.workspace-grid,.tables-grid,.dashboard-grid,.payslip-columns,.employee-profile,.employee-form,.employee-filter-form,.rubric-form,.entry-form,.employee-event-form,.employee-responsible-form,.period-form,.statutory-table-form,.integration-layout,.integration-order-sync,.integration-summary,.check-group,.dapic-integration-panel .entry-form{grid-template-columns:1fr}.span-2{grid-column:auto}.range-editor-header{display:none}.range-editor-row,.rate-editor-row,.detail-grid,.production-rate-rule-list article dl{grid-template-columns:1fr}.payslip-header{flex-direction:column;align-items:flex-start}.payslip-header div:last-child{text-align:left}.report-toolbar,.report-section-header,.table-panel-header,.dapic-conference-header{flex-direction:column;align-items:stretch}.dapic-filter-form{grid-template-columns:1fr}.report-toolbar label{max-width:none}.employee-photo{width:96px;height:96px}.employee-profile-info dl,.modal-wide .employee-profile,.modal-wide .employee-event-form{grid-template-columns:1fr}.employee-toolbar,.employee-section-header,.modal-actions,.modal-backdrop{padding:12px}}@media print{:root{color:#000;background:#fff}body{background:#fff}.sidebar,.topbar,.notice,.alert,.conference-header,.metrics-grid,.table-panel,.payslip-toolbar,.panel>h3{display:none!important}.app-shell,.content{min-height:auto;padding:0;display:block}.panel{border:0;padding:0}.payslip{color:#000;gap:12px;display:grid}.payslip-header,.payslip-list,.metric{break-inside:avoid;border-color:#000}.payslip-bases,.payslip-columns{grid-template-columns:repeat(3,minmax(0,1fr))}button{display:none!important}}
