@import url('/dc-assets/fonts.css');
:root{--navy:#0b2d4b;--green:#00a676;--ink:#14344b;--muted:#728291;--line:#e4ebef;--surface:#f4f7f8;--white:#fff}*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;color:var(--ink);font-size:14px;line-height:1.55;background:var(--surface)}a{color:var(--navy);text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,summary{touch-action:manipulation}button{cursor:pointer}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--green);outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:34px;letter-spacing:-1.3px;line-height:1.18;margin-bottom:12px}h2{font-size:21px;letter-spacing:-.6px;margin-bottom:15px}h3{font-size:16px;margin-bottom:10px}p{color:var(--muted)}small{font-size:12px;color:var(--muted)}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.8px;color:var(--green);display:block;margin-bottom:8px}.button{border:1px solid var(--green);background:var(--green);color:white;font-weight:600;padding:12px 20px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:44px;white-space:normal;line-height:1.4}.button:hover{background:#29975a;border-color:#29975a}.button.secondary{background:white;color:var(--navy);border-color:var(--line)}.button.secondary:hover{background:var(--surface)}.button.small{padding:9px 14px}.button.full{width:100%;margin-top:14px}.text-button{background:none;border:0;color:var(--navy);padding:5px;font-weight:600}.actions{display:flex;flex-wrap:wrap;gap:10px}.sidebar{width:260px;position:fixed;inset:0 auto 0 0;background:white;border-right:1px solid var(--line);padding:24px 18px;overflow:auto;z-index:20;display:flex;flex-direction:column}.brand{display:block;padding:0 10px 20px}.brand img{width:205px;height:68px;object-fit:contain}.company-label{padding:15px 12px;background:var(--surface);border-radius:8px;margin-bottom:20px}.company-label span{font-size:8px;letter-spacing:1.6px;display:block;color:var(--muted)}.company-label strong{font-size:13px;display:block;overflow-wrap:anywhere;margin-top:4px}.sidebar nav>a{display:flex;align-items:center;gap:10px;font-weight:600;padding:11px 12px;border-radius:7px}.sidebar nav>a small{margin-left:auto;font-size:10px;background:#e4f5ea;color:#229350;padding:2px 6px;border-radius:4px}.sidebar a.active{background:#e9f6ee;color:#218951}.sidebar summary{cursor:pointer;font-size:10px;font-weight:700;letter-spacing:1px;text-transform:uppercase;padding:16px 12px 8px;color:var(--muted)}.sidebar details a{display:block;padding:9px 12px 9px 24px;border-radius:7px;font-size:12px}.sidebar nav a:hover{background:var(--surface)}.nav-divider{height:1px;background:var(--line);margin:20px 10px 10px}.website{font-size:12px;color:var(--muted);padding:25px 12px 0}.workspace-main{margin-left:260px;min-height:100vh;display:flex;flex-direction:column}.topbar{height:88px;display:flex;align-items:center;justify-content:space-between;padding:0 36px;border-bottom:1px solid var(--line);background:white;gap:15px}.topbar .eyebrow{font-size:8px;letter-spacing:1.5px;margin-bottom:2px}.topbar b{font-size:14px}.profile{display:flex;align-items:center;gap:25px}.profile span{font-size:12px;font-weight:600}.profile small{display:block;font-size:10px;font-weight:400}.profile .text-button{font-size:11px}.icon-button{display:none;align-items:center;justify-content:center;width:40px;height:40px;border:1px solid var(--line);background:white;border-radius:7px}.content{padding:36px;max-width:1660px;width:100%;flex:1}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.page-heading p{margin:0;max-width:660px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:26px}.stats article{background:white;border:1px solid var(--line);border-radius:12px;padding:22px}.stats span{display:block;font-size:12px;color:var(--muted)}.stats strong{display:block;font-size:38px;line-height:1.2;margin:10px 0 14px;letter-spacing:-1.4px}.stats strong.currency{font-size:23px;letter-spacing:-.6px}.stats a{font-size:11px;font-weight:600}.panel{background:white;border:1px solid var(--line);border-radius:12px;padding:24px;min-width:0}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.panel-heading h2{margin:0;font-size:17px}.panel-heading a{font-size:11px;font-weight:600}.welcome{background:var(--navy);color:white;border-radius:14px;padding:30px;display:grid;grid-template-columns:1fr 210px;gap:30px;margin-bottom:26px}.welcome h2{font-size:27px}.welcome p{color:#b9ccd9;max-width:650px}.welcome .secondary{background:transparent;color:white;border-color:#557086}.welcome-art{border-left:1px solid #315069;display:flex;flex-direction:column;justify-content:center;padding-left:30px}.welcome-art span{color:var(--green);font-size:45px;line-height:1.4}.welcome-art b{font-size:20px;line-height:1.35}.two-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-bottom:26px}.list-row{display:flex;align-items:center;gap:13px;padding:15px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.list-row:last-child{border-bottom:none}.list-row>div{flex:1;min-width:0}.list-row b{font-size:12px;display:block}.list-row small{font-size:10px;display:block}.date-chip,.record-icon,.avatar{width:42px;height:42px;flex-shrink:0;border-radius:9px;background:#edf5f1;color:#2b9861;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600}.date-chip.overdue{background:#fff0e9;color:#ae6236}.badge{display:inline-flex;padding:5px 8px;background:var(--surface);border-radius:5px;color:#587386;font-size:10px;white-space:nowrap}.badge.green{background:#e9f6ee;color:#218951}.empty{text-align:center;padding:30px 15px}.empty>span{font-size:28px;color:#a7c0cb;display:block;margin-bottom:14px}.empty h3{font-size:14px}.empty p{font-size:12px;max-width:320px;margin:auto}.quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.quick-grid a{background:white;border:1px solid var(--line);border-radius:12px;padding:24px}.quick-grid a>span{display:block;font-size:25px;color:var(--green);margin-bottom:12px}.quick-grid b{display:block;font-size:12px;margin-bottom:5px}.quick-grid small{font-size:10px;display:block}.app-footer{padding:20px 36px;font-size:10px;color:var(--muted)}label{font-size:12px;font-weight:600;display:block;margin-bottom:16px;color:var(--ink)}input:not([type=checkbox]),select,textarea{display:block;width:100%;border:1px solid #dce5ea;background:white;color:var(--ink);border-radius:7px;padding:10px 12px;margin-top:7px;outline:none;min-height:42px}input:focus,select:focus,textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px #00a67618}textarea{resize:vertical}input:disabled,fieldset:disabled input,fieldset:disabled select,fieldset:disabled textarea{background:var(--surface);opacity:1;color:#587386}input[type=checkbox]{accent-color:var(--green);width:16px;height:16px;flex-shrink:0}.check{display:flex;align-items:center;gap:9px;margin:12px 0;font-size:11px;font-weight:400}.check input{margin:0}.check a{font-weight:600}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}fieldset{border:none;padding:0;margin:0}.record-columns{display:grid;grid-template-columns:minmax(0,1fr) 410px;gap:24px;align-items:start}.filters{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.filters input:not([type=checkbox]){flex:1;min-width:150px;margin:0;width:auto}.filters select{width:auto;max-width:240px;margin:0}.filters .check{margin:0}.list-meta{font-size:11px;color:var(--muted);padding:18px 0 10px}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:12px}th{font-size:10px;color:var(--muted);font-weight:600;background:var(--surface);padding:12px;white-space:nowrap}td{padding:14px 12px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}td small{display:block;font-size:9px}tr.selected{background:#eff8f2}.pagination{display:flex;align-items:center;justify-content:space-between;margin-top:20px;gap:20px;font-size:11px}.editor h2{font-size:18px}.editor p{font-size:12px}.attachments{border-top:1px solid var(--line);margin-top:24px;padding-top:20px}.attachments>a{display:block;font-size:11px;padding:9px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.attachments a small{display:block}.attachments form{margin-top:16px}.archive-form{border-top:1px solid var(--line);padding-top:15px;margin-top:25px}.archive-form button{font-size:11px;color:#a86138}.calculated{background:#eaf6ef;padding:18px;border-radius:8px;margin:16px 0}.calculated strong{display:block;font-size:24px;margin-top:5px}.notice{padding:14px 18px;border:1px solid #c9e7d6;background:#eaf7ef;color:#237b47;border-radius:8px;font-size:12px;margin-bottom:24px}.notice.muted{background:#f0f5f8;border-color:#dae6ed;color:#547082}.error{padding:14px;background:#fff0e9;color:#a05130;border-radius:7px;font-size:12px;margin-bottom:20px}.account-panel{max-width:620px}.integration-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.integration-card h2{font-size:29px}.integration-card p{font-size:12px;margin:20px 0}.integration-card small{display:block;font-size:10px}.connection-status{border:1px solid var(--line);padding:14px;border-radius:8px;margin-bottom:20px;font-size:11px}.external-link{display:inline-block;font-size:11px;font-weight:600;margin-top:24px}.apply-toolbar{display:flex;gap:20px;align-items:end;background:var(--surface);padding:18px;border-radius:8px;margin:10px 0 24px}.apply-toolbar label{flex:1;margin:0}.library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.library-card{padding:20px;border:1px solid var(--line);border-radius:9px}.library-card>div{display:flex;align-items:start;justify-content:space-between;gap:12px}.library-card .eyebrow{font-size:8px}.library-card h3{font-size:14px}.library-card p{font-size:12px;color:var(--ink)}.library-card small{font-size:10px}.council-card{padding:32px}.council-card h2{font-size:29px;margin-top:12px}.error-panel{padding:50px}.error-panel .button{margin-right:10px}.auth-page{display:flex;min-height:100vh;background:white}.auth-story{width:52%;padding:55px 60px;background:var(--navy);color:white;display:flex;flex-direction:column;justify-content:space-between;gap:60px;min-height:100vh}.auth-story>a{background:white;padding:12px 22px;border-radius:8px;max-width:255px}.auth-story img{width:210px;height:70px;object-fit:contain;display:block}.auth-story h1{font-size:clamp(36px,4vw,65px);line-height:1.14;margin-top:20px;letter-spacing:-2.5px}.auth-story em{font-style:normal;color:var(--green)}.auth-story p{font-size:16px;color:#b9ccd9;max-width:420px}.auth-story>small{font-size:9px;letter-spacing:2px;color:#7995a9}.auth-areas{display:flex;flex-wrap:wrap;gap:10px;max-width:400px;margin-top:35px}.auth-areas span{font-size:10px;border:1px solid #3c5a72;padding:7px 11px;border-radius:20px;color:#c5d6e3}.auth-form{flex:1;padding:45px;display:flex;align-items:center;justify-content:center}.auth-card{width:100%;max-width:400px}.auth-card h2{font-size:30px;margin-top:15px;line-height:1.2}.auth-card>p{font-size:13px;margin-bottom:28px}.auth-card form>small{display:block;margin-top:-6px;margin-bottom:18px;font-size:10px}.auth-switch{text-align:center;font-size:12px!important;margin:25px 0!important}.auth-switch a{font-weight:700;color:#269858}.back-link{display:block;text-align:center;font-size:11px;color:var(--muted)}.error-logo{width:220px;height:74px;object-fit:contain;margin-bottom:30px}
@media(min-width:1600px){.record-columns{grid-template-columns:minmax(0,1fr) 470px}}@media(max-width:1250px){.sidebar{width:230px}.workspace-main{margin-left:230px}.content{padding:25px}.topbar{padding:0 25px}.record-columns{grid-template-columns:minmax(0,1fr) 345px}.stats{gap:12px}.stats article{padding:18px}.stats strong.currency{font-size:18px}.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.integration-grid{grid-template-columns:1fr}.integration-card{max-width:700px}.auth-story{padding:40px}.auth-form{padding:35px}}@media(max-width:1000px){.record-columns{grid-template-columns:1fr}.record-list{order:2}.editor{order:1}.two-columns{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.profile{gap:12px}.welcome{grid-template-columns:1fr}.welcome-art{display:none}.library-grid{grid-template-columns:1fr}.auth-story{width:45%;padding:35px}.auth-story h1{font-size:38px;letter-spacing:-1.5px}}@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:transform .2s;width:260px;box-shadow:10px 0 35px #0b2d4b15}.menu-open .sidebar{transform:translateX(0)}.workspace-main{margin-left:0}.topbar{height:76px;padding:0 18px;position:sticky;top:0;z-index:10}.icon-button{display:flex}.topbar>div:nth-child(2){flex:1}.topbar .eyebrow{font-size:7px}.topbar b{font-size:12px}.profile span{display:none}.profile .text-button{font-size:11px}.content{padding:22px 16px}.page-heading{align-items:start;flex-direction:column;gap:16px}.page-heading h1{font-size:28px}.stats{gap:12px}.stats article{padding:17px}.stats span{font-size:10px}.stats strong{font-size:32px}.stats strong.currency{font-size:18px}.panel{padding:18px}.welcome{padding:25px}.welcome h2{font-size:23px}.quick-grid{gap:12px}.quick-grid a{padding:18px}.quick-grid b{font-size:11px}.list-row .badge{white-space:normal;max-width:95px}.form-grid{gap:10px}.filters{gap:8px}.filters select{width:100%;max-width:none}.apply-toolbar{align-items:stretch;flex-direction:column;padding:14px}.auth-story{display:none}.auth-form{padding:35px 24px}.auth-card h2{font-size:28px}.auth-page{min-height:100svh}.app-footer{padding:18px}.error-panel{padding:24px}.error-panel .button{margin-bottom:10px}}
@media print{.sidebar,.topbar,.app-footer,#print-report{display:none}.workspace-main{margin:0}.content{padding:0}.panel,.stats article{break-inside:avoid}.stats strong.currency{font-size:18px}body{background:white}a{color:black}}

/* SaaS administration extends the existing panels, forms and grid patterns. */
.admin-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:24px 0}.saas-shortcuts{margin-bottom:26px}.inline-form{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.inline-form select{width:auto;min-width:180px;margin:0}.inline-form .check{margin:0}.notification-row{display:flex;gap:15px;align-items:center;padding:20px 0;border-bottom:1px solid var(--line)}.notification-row:last-child{border:none}.notification-row>div{flex:1;min-width:0;overflow-wrap:anywhere}.notification-row b{font-size:13px}.notification-row p{font-size:12px;margin:4px 0}.notification-row.unread b{color:#00835e}.notification-row .text-button{font-size:11px;white-space:nowrap}.subscription-heading{display:flex;justify-content:space-between;gap:25px;margin-bottom:26px}.subscription-heading strong{font-size:28px;display:block}.subscription-heading small{display:block}.usage-stats{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:1000px){.admin-card-grid{grid-template-columns:1fr}}@media(max-width:760px){.usage-stats{grid-template-columns:1fr}.subscription-heading{flex-direction:column}.notification-row{align-items:start}.notification-row form{align-self:center}.notification-row .date-chip{width:32px;height:32px}.inline-form select{min-width:160px}.notification-row .text-button{font-size:10px}}
.workspace-editor{max-width:1100px;margin-bottom:24px}.detailed-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px}.detailed-fields label{min-width:0}.portfolio-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px}.portfolio-card{border:1px solid #e3e8e8;border-radius:12px;padding:20px;display:flex;flex-direction:column}.portfolio-card p{color:#697a7a}.card-footer{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #e3e8e8;padding-top:15px;margin-top:auto}.kanban-board{display:flex;gap:16px;max-width:100%;overflow-x:auto;padding-bottom:12px}.kanban-column{flex:0 0 250px;background:#f5f8f7;padding:14px;border-radius:10px}.kanban-column h3{font-size:14px}.task-card{background:white;border:1px solid #dce5e1;border-radius:8px;padding:15px;margin-bottom:12px}.task-card form{margin-top:16px}.dossier-links{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.version-entry{padding:18px 0;border-bottom:1px solid #e3e8e8}.version-entry summary{cursor:pointer;font-weight:600}@media(max-width:650px){.detailed-fields{grid-template-columns:1fr}.portfolio-grid{grid-template-columns:1fr}.workspace-editor{padding:18px}}
.print-brand{display:none}@media print{.print-brand{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;border-bottom:2px solid #00a676;padding-bottom:15px}.print-brand img{width:180px;height:auto}.filters,.pagination,.actions,.text-button{display:none!important}.panel,.stats article{break-inside:avoid}.workspace-editor{max-width:100%}a{color:#183b4c}.content{padding:0}.workspace-main{margin:0}}

.sidebar-close{display:none;position:absolute;top:8px;right:8px;width:30px;height:30px;font-size:22px}@media(max-width:760px){.sidebar-close{display:flex}.menu-open{overflow:hidden}}

.merge-comparison th:first-child{min-width:140px}.merge-comparison th:not(:first-child){min-width:220px}.merge-links th:first-child{min-width:200px}.merge-links th:nth-child(2){min-width:160px}.merge-links th:nth-child(3){min-width:180px}.merge-links th:nth-child(4){min-width:120px}.quality-history-table th{min-width:120px}.quality-history-table th:last-child{min-width:150px}

.unit-conversion-result strong{font-size:24px;overflow-wrap:anywhere}

.planning-baseline-history th{min-width:130px}
.planning-baseline-history th:nth-child(2){min-width:240px}
.planning-baseline-history th:nth-child(3){min-width:160px}
.planning-baseline-comparison th{min-width:150px}
.planning-baseline-comparison th:first-child{min-width:240px}

/* Preferência pessoal de densidade de tabelas. */
.workspace.table-compact .table-scroll table th,.workspace.table-compact .table-scroll table td{padding-top:7px;padding-bottom:7px}

/* Navegação por teclado no espaço de trabalho. */
.workspace :focus-visible{outline:2px solid var(--green);outline-offset:3px}
.skip-link{position:fixed;left:-9999px;top:12px;z-index:200;background:var(--white);color:var(--navy);padding:12px 16px;border:2px solid var(--green);border-radius:8px}
.skip-link:focus{left:12px}

/* Lista privada de preenchimentos salvos. */
.form-drafts-table table{min-width:760px}
.form-drafts-table th:first-child,.form-drafts-table td:first-child{min-width:220px}

.source-fingerprint{overflow-wrap:anywhere}

.field-guidance{display:block;margin-top:6px;font-weight:400;line-height:1.5}

/* Conferência da migração de cadastros legados. */
.legacy-migration code,.legacy-migration small{overflow-wrap:anywhere}.legacy-migration pre{white-space:pre-wrap;overflow-wrap:anywhere}


/* ===== Camada visual (04/10/2026): clareza e contenção no padrão das diretrizes da Apple (HIG).
   Sobrepõe as regras acima sem mudar classes nem marcação. Marca: azul-marinho + verde DriCampolo.
   O verde dos botões e links foi escurecido para contraste AA com texto branco (o #00a676 dá 3,1:1). ===== */
:root{--ap-fundo:#f5f5f7;--ap-superficie:#fff;--ap-texto:#1d2b36;--ap-suave:#6e6e73;--ap-terciario:#86868b;--ap-fio:rgb(0 0 0 / .08);--ap-campo:rgb(0 0 0 / .16);--ap-preenchido:rgb(118 118 128 / .12);--ap-preenchido-forte:rgb(118 118 128 / .2);--ap-material:rgb(255 255 255 / .78);--ap-verde:#00875f;--ap-verde-hover:#00764f;--ap-verde-suave:rgb(0 166 118 / .1);--ap-sombra:0 1px 2px rgb(0 0 0 / .04),0 2px 12px rgb(0 0 0 / .035);--ap-sombra-alta:0 18px 50px rgb(0 0 0 / .14),0 2px 8px rgb(0 0 0 / .06);--ap-foco:0 0 0 4px rgb(0 166 118 / .28);--ap-curva:cubic-bezier(.25,.1,.25,1);--surface:var(--ap-fundo);--line:var(--ap-fio);--muted:var(--ap-suave);--ink:var(--ap-texto)}
body{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text",Inter,"Helvetica Neue",Arial,sans-serif;font-size:15px;line-height:1.47;letter-spacing:-.01em;color:var(--ap-texto);background:var(--ap-fundo);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
a{color:var(--navy)}
h1{font-size:34px;letter-spacing:-.03em;line-height:1.12;font-weight:700}
h2{font-size:21px;letter-spacing:-.02em;font-weight:600}
h3{font-size:17px;letter-spacing:-.015em;font-weight:600}
p{color:var(--ap-suave)}
small{font-size:13px;color:var(--ap-suave)}
.eyebrow{font-size:13px;font-weight:600;letter-spacing:.01em;text-transform:none;color:var(--ap-verde);margin-bottom:6px}
.workspace a,.workspace button,.workspace summary,.workspace input,.workspace select,.workspace textarea,.button{transition:background-color .2s var(--ap-curva),border-color .2s var(--ap-curva),color .2s var(--ap-curva),box-shadow .2s var(--ap-curva)}
button:focus-visible,a:focus-visible,summary:focus-visible,.workspace :focus-visible{outline:0;box-shadow:var(--ap-foco);border-radius:8px}

/* botões: preenchido verde-escuro; secundário em cinza suave sem contorno */
.button{background:var(--ap-verde);border-color:var(--ap-verde);font-weight:600;border-radius:10px;padding:10px 18px;min-height:40px;gap:8px;font-size:15px;letter-spacing:-.01em}
.button:hover{background:var(--ap-verde-hover);border-color:var(--ap-verde-hover)}
.button.secondary{background:var(--ap-preenchido);border-color:transparent;color:var(--ap-texto);font-weight:500}
.button.secondary:hover{background:var(--ap-preenchido-forte)}
.button.small{padding:7px 14px;min-height:34px;font-size:14px}
.text-button{color:var(--ap-verde);font-weight:500;border-radius:8px}
.text-button:hover{background:var(--ap-preenchido)}

/* barra lateral: material claro, itens com peso médio, grupo em texto comum */
.sidebar{background:rgb(250 250 252 / .92);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);border-right:1px solid var(--ap-fio);padding:20px 14px}
.brand{padding:0 8px 14px}
.brand img{width:170px;height:56px}
.company-label{background:transparent;padding:4px 10px 14px;margin-bottom:8px;border-bottom:1px solid var(--ap-fio);border-radius:0}
.company-label span{font-size:12px;letter-spacing:0;text-transform:lowercase;color:var(--ap-terciario)}
.company-label span::first-letter{text-transform:uppercase}
.company-label strong{font-size:15px;font-weight:600;letter-spacing:-.015em}
.sidebar nav>a{font-weight:500;font-size:14px;padding:8px 10px;border-radius:8px;gap:8px}
.sidebar nav>a small{background:var(--ap-preenchido);color:var(--ap-suave);border-radius:999px;font-size:11px;font-weight:500;padding:1px 8px}
.sidebar summary{font-size:12px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--ap-terciario);padding:14px 10px 6px;list-style:none;display:flex;align-items:center;justify-content:space-between}
.sidebar summary::-webkit-details-marker{display:none}
.sidebar summary::after{content:"";width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);transition:transform .2s var(--ap-curva);margin-right:4px}
.sidebar details[open]>summary::after{transform:rotate(45deg)}
.sidebar details a{font-size:14px;padding:7px 10px 7px 14px;border-radius:8px;color:var(--ap-texto)}
.sidebar nav a:hover{background:var(--ap-preenchido)}
.sidebar a.active{background:var(--ap-verde-suave);color:var(--ap-verde);font-weight:600}
.nav-divider{background:var(--ap-fio);margin:14px 8px 8px}
.website{font-size:13px}

/* topo: material translúcido e só o título da tela */
.topbar{height:56px;position:sticky;top:0;z-index:15;background:var(--ap-material);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);border-bottom:1px solid var(--ap-fio);padding:0 32px}
.topbar .eyebrow{display:none}
.topbar b{font-size:15px;font-weight:600;letter-spacing:-.015em}
.profile{gap:18px}
.profile span{font-size:14px;font-weight:500}
.profile small{font-size:12px;color:var(--ap-terciario)}
.profile .text-button{font-size:14px}
.icon-button{border:0;background:var(--ap-preenchido);border-radius:10px;width:38px;height:38px}

/* área de trabalho: título grande direto no fundo, superfícies sem borda */
.content{padding:28px 32px 40px}
.page-heading{align-items:flex-end;margin-bottom:24px;gap:16px 24px}
.page-heading h1{margin-bottom:6px}
.page-heading p{font-size:16px;line-height:1.45}
.page-heading .actions{justify-content:flex-end;gap:8px;flex:0 1 auto}
.page-heading>div:first-child{flex:1 1 0;min-width:min(100%,320px)}
.page-heading .button{min-height:36px;padding:8px 14px;font-size:14px}
.content>.panel+.panel,.content>.panel+section,.content>section+.panel,.content>.stats+.stats{margin-top:20px}
.panel,.stats article,.quick-grid a,.library-card,.portfolio-card,.task-card,.connection-status,.integration-card{border:0;border-radius:18px;box-shadow:var(--ap-sombra);background:var(--ap-superficie)}
.panel{padding:24px}
.panel .panel{box-shadow:none;background:var(--ap-fundo);border-radius:14px}
.panel-heading h2{font-size:19px;font-weight:600}
.panel>.panel-heading:only-child{margin-bottom:0}
.panel-heading a{font-size:14px;font-weight:500;color:var(--ap-verde)}
.stats{gap:16px}
.stats article{padding:20px 22px}
.stats span{font-size:13px;font-weight:500;color:var(--ap-suave)}
.stats strong{font-size:32px;font-weight:700;letter-spacing:-.03em;margin:6px 0 10px;font-variant-numeric:tabular-nums}
.stats strong.currency{font-size:22px}
.stats a{font-size:14px;font-weight:500;color:var(--ap-verde)}
.quick-grid a>span{color:var(--ap-verde)}
.quick-grid b{font-size:15px;font-weight:600}
.quick-grid small{font-size:13px}
.quick-grid a:hover,.portfolio-card:hover{box-shadow:var(--ap-sombra-alta)}
.welcome{border-radius:22px;background:linear-gradient(150deg,#0b2d4b,#123f63 60%,#0f5a55)}
/* quadro escuro do painel: secundário claro sobre o marinho (texto branco 9:1) e verde claro no rótulo (7:1) */
.welcome h2,.welcome-art b{color:#fff}
.welcome .eyebrow,.welcome-art span{color:#7fd8b5}
.welcome .button.secondary{background:rgb(255 255 255 / .12);border-color:rgb(255 255 255 / .28);color:#fff}
.welcome .button.secondary:hover{background:rgb(255 255 255 / .2);border-color:rgb(255 255 255 / .4)}
.welcome :focus-visible{box-shadow:0 0 0 4px rgb(127 216 181 / .55)}
.list-row b{font-size:15px;font-weight:600}
.list-row small{font-size:13px}
.date-chip,.record-icon,.avatar{border-radius:12px;background:var(--ap-verde-suave);color:var(--ap-verde)}
.list-row>.avatar,.list-row>.date-chip,.list-row>.record-icon{flex:0 0 42px}
.badge{border-radius:999px;font-size:12px;font-weight:500;padding:3px 10px;background:var(--ap-preenchido);color:var(--ap-suave)}
.badge.green{background:var(--ap-verde-suave);color:var(--ap-verde)}
.empty h3{font-size:17px}
.empty p{font-size:14px}
.app-footer{font-size:12px;color:var(--ap-terciario)}

/* formulários: valor em peso normal (antes herdava o negrito do rótulo) */
label{font-size:14px;font-weight:500;color:var(--ap-texto)}
input:not([type=checkbox]),select,textarea{font-weight:400;font-size:15px;border:1px solid var(--ap-campo);border-radius:10px;padding:10px 12px;min-height:42px;color:var(--ap-texto)}
input:focus,select:focus,textarea:focus{border-color:var(--ap-verde);box-shadow:var(--ap-foco)}
input:disabled,fieldset:disabled input,fieldset:disabled select,fieldset:disabled textarea{background:var(--ap-preenchido);border-color:transparent;color:var(--ap-suave)}
input[type=checkbox]{width:18px;height:18px}
.check{font-size:14px}
.field-guidance{font-size:13px;color:var(--ap-suave)}
.calculated{border-radius:14px;background:var(--ap-verde-suave)}
.apply-toolbar{border-radius:14px;background:var(--ap-fundo)}

/* tabelas: cabeçalho discreto, fios finos */
table{font-size:14px}
th{font-size:12px;font-weight:600;color:var(--ap-suave);background:transparent;border-bottom:1px solid var(--ap-fio);padding:10px 12px}
td{padding:12px;border-bottom:1px solid var(--ap-fio)}
td small{font-size:12px}
tbody tr:hover{background:rgb(0 0 0 / .02)}
tr.selected{background:var(--ap-verde-suave)}
.list-meta,.pagination{font-size:13px}

/* avisos */
.notice{border:0;border-radius:12px;background:var(--ap-verde-suave);color:#0b5e43;font-size:14px}
.notice.muted{background:var(--ap-preenchido);color:var(--ap-suave)}
.error{border-radius:12px;background:#fff1f0;color:#b3261e;font-size:14px}
.attachments>a{font-size:14px}
.archive-form button{font-size:14px;color:#b3261e}
.kanban-column{border-radius:16px;background:var(--ap-preenchido)}
.task-card{border-radius:12px}

/* entrada / cadastro */
.auth-story{background:radial-gradient(120% 80% at 100% 0%,rgb(0 166 118 / .28),transparent 55%),linear-gradient(160deg,#081f35 0%,#0b2d4b 60%,#0e3e5e 100%)}
.auth-story>a{border-radius:16px;padding:12px 20px;box-shadow:0 10px 30px -12px rgb(0 0 0 / .5)}
.auth-story h1{letter-spacing:-.035em;font-weight:700}
.auth-story em{color:#2fd39b}
.auth-story>small{font-size:12px;letter-spacing:0;color:#8fa7b9}
.auth-areas span{font-size:13px;border-color:rgb(255 255 255 / .2);background:rgb(255 255 255 / .06);padding:6px 14px}
.auth-card h2{font-size:32px;font-weight:700;letter-spacing:-.03em}
.auth-card>p{font-size:15px}
.auth-card input:not([type=checkbox]){min-height:46px;border-radius:12px;font-size:16px}
.auth-card .button{min-height:48px;border-radius:12px;font-size:16px}
.auth-switch{font-size:14px!important}
.auth-switch a{color:var(--ap-verde)}
.back-link{font-size:13px}

@media(max-width:760px){.topbar{height:56px;padding:0 14px}.content{padding:18px 14px 28px}.page-heading{align-items:stretch}.page-heading h1{font-size:30px}.page-heading .actions{justify-content:flex-start}.panel{padding:18px;border-radius:16px}.stats article{padding:16px}.stats strong{font-size:28px}.button{min-height:44px}.page-heading .button{min-height:40px}input:not([type=checkbox]),select,textarea{font-size:16px;min-height:44px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important}}
@media(prefers-reduced-transparency:reduce){.topbar,.sidebar{background:#fafafc;-webkit-backdrop-filter:none;backdrop-filter:none}}
@media print{.panel,.stats article{box-shadow:none;border:1px solid #ddd}}

/* ===== Navegação v2 (07/10/2026): áreas da empresa e do SaaS separadas, grupos recolhidos, ícones de traço ===== */
.ico{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.sidebar{padding:18px 12px 14px;gap:0}
.sidebar nav{flex:1;display:flex;flex-direction:column;gap:2px}
.company-label{margin:0 0 6px;padding:2px 10px 14px}
.company-label span{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--ap-terciario)}
.company-label span::first-letter{text-transform:none}
.company-label strong{display:block;margin-top:2px;font-size:15px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nav-section{display:flex;flex-direction:column;gap:1px;padding:6px 0}
.nav-section+.nav-section{border-top:1px solid var(--ap-fio);margin-top:4px;padding-top:10px}
.nav-title{margin:0;padding:2px 10px 6px;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--ap-terciario)}
.sidebar nav a,.sidebar .nav-group>summary{display:flex;align-items:center;gap:10px;padding:7px 10px;border-radius:8px;font-size:14px;font-weight:500;color:var(--ap-texto);line-height:1.3;text-decoration:none}
.sidebar nav a .ico,.sidebar .nav-group>summary .ico{color:var(--ap-suave)}
.sidebar nav a span{flex:1;min-width:0}
.sidebar nav a small{margin-left:auto;background:var(--ap-verde);color:#fff;border-radius:999px;font-size:11px;font-weight:600;padding:1px 7px;line-height:18px}
.sidebar nav a:hover,.sidebar .nav-group>summary:hover{background:var(--ap-preenchido)}
.sidebar nav a.active{background:var(--ap-verde-suave);color:var(--ap-verde);font-weight:600}
.sidebar nav a.active .ico{color:var(--ap-verde)}
.sidebar .nav-group>summary{cursor:pointer;list-style:none;justify-content:flex-start;text-transform:none;letter-spacing:0}
.sidebar .nav-group>summary span{flex:1}
.sidebar .nav-group>summary::after{content:none}
.sidebar .nav-group>summary .ico:last-child{width:14px;height:14px;flex-basis:14px;transition:transform .2s var(--ap-curva)}
.sidebar .nav-group[open]>summary .ico:last-child{transform:rotate(90deg)}
.sidebar .nav-items{display:flex;flex-direction:column;gap:1px;margin:2px 0 6px 19px;padding-left:10px;border-left:1px solid var(--ap-fio)}
.sidebar .nav-items a{font-size:13.5px;padding:6px 10px;color:var(--ap-suave)}
.sidebar .nav-items a:hover{color:var(--ap-texto)}
.sidebar .nav-items a.active{color:var(--ap-verde)}
.sidebar .nav-hint{font-size:12.5px;color:var(--ap-terciario);padding:6px 10px}
.sidebar-foot{border-top:1px solid var(--ap-fio);margin-top:10px;padding-top:10px;display:flex;flex-direction:column;gap:6px}
.area-switch{display:flex;align-items:center;gap:10px;padding:10px;border-radius:10px;background:var(--ap-preenchido);color:var(--ap-texto);font-size:13.5px;font-weight:600;text-decoration:none}
.area-switch small{display:block;font-size:12px;font-weight:400;color:var(--ap-suave)}
.area-switch:hover{background:var(--ap-preenchido-forte)}
.sidebar-foot .website{padding:4px 10px;color:var(--ap-terciario)}
/* área do SaaS: barra escura, para nunca confundir com a operação da empresa */
.saas-mode .sidebar{background:#0f2233;border-right-color:#0f2233;color:#e8eef3}
.saas-mode .brand{background:#fff;border-radius:12px;margin:0 2px 14px;padding:6px 10px}
.saas-mode .company-label{border-bottom-color:rgb(255 255 255 / .1)}
.saas-mode .company-label span{color:#7fd8b5}
.saas-mode .company-label strong{color:#fff}
.saas-mode .nav-title{color:#8aa0b2}
.saas-mode .nav-section+.nav-section,.saas-mode .sidebar-foot{border-color:rgb(255 255 255 / .1)}
.saas-mode .sidebar nav a{color:#d5dfe7}
.saas-mode .sidebar nav a .ico{color:#8aa0b2}
.saas-mode .sidebar nav a:hover{background:rgb(255 255 255 / .07)}
.saas-mode .sidebar nav a.active{background:rgb(0 166 118 / .22);color:#fff}
.saas-mode .sidebar nav a.active .ico{color:#7fd8b5}
.saas-mode .area-switch{background:rgb(255 255 255 / .08);color:#fff}
.saas-mode .area-switch small{color:#a9bccb}
.saas-mode .area-switch:hover{background:rgb(255 255 255 / .14)}
.saas-mode .sidebar-foot .website,.saas-mode .sidebar-close{color:#a9bccb}
.saas-mode .topbar .eyebrow{display:inline-block;background:#0f2233;color:#7fd8b5;border-radius:999px;padding:3px 10px;font-size:10.5px;letter-spacing:.08em;margin-right:10px}
/* topo e menu do perfil */
.topbar-title{flex:1;display:flex;align-items:center;min-width:0}
.topbar-title b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-menu{position:relative}
.profile-menu>summary{list-style:none;display:flex;align-items:center;gap:10px;cursor:pointer;padding:4px 8px 4px 4px;border-radius:999px}
.profile-menu>summary::-webkit-details-marker{display:none}
.profile-menu>summary:hover,.profile-menu[open]>summary{background:var(--ap-preenchido)}
.avatar{width:32px;height:32px;border-radius:50%;background:var(--ap-verde);color:#fff;display:grid;place-items:center;font-size:12.5px;font-weight:700;letter-spacing:.02em}
.saas-mode .avatar{background:#0f2233}
.profile-name{display:flex;flex-direction:column;font-size:13.5px;font-weight:600;line-height:1.2}
.profile-name small{font-size:11.5px;font-weight:400;color:var(--ap-terciario)}
.profile-pop{position:absolute;right:0;top:calc(100% + 8px);min-width:230px;background:#fff;border-radius:14px;box-shadow:var(--ap-sombra-alta);padding:6px;display:flex;flex-direction:column;z-index:30}
.profile-pop a,.profile-pop .text-button{display:flex;align-items:center;gap:10px;width:100%;padding:9px 10px;border-radius:8px;font-size:14px;font-weight:500;color:var(--ap-texto);text-decoration:none;background:none;border:0;cursor:pointer;text-align:left}
.profile-pop a:hover,.profile-pop .text-button:hover{background:var(--ap-preenchido)}
.profile-pop .ico{color:var(--ap-suave)}
.profile-pop form{margin:4px 0 0;padding-top:4px;border-top:1px solid var(--ap-fio)}
/* visão geral */
.attention{margin-bottom:24px}
.attention .panel-heading p{margin:2px 0 0;color:var(--ap-suave);font-size:13.5px}
.attention-list{display:flex;flex-direction:column;margin-top:6px}
.attention-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 4px;border-top:1px solid var(--ap-fio);color:var(--ap-texto);text-decoration:none;font-size:14px}
.attention-row:first-child{border-top:0}
a.attention-row:hover{color:var(--ap-verde)}
.attention-row strong{min-width:30px;text-align:center;background:#fff4e5;color:#9a5b00;border-radius:999px;padding:2px 10px;font-size:13px}
.indicators{margin-top:10px;border-top:1px solid var(--ap-fio);padding-top:10px}
.indicators>summary{cursor:pointer;font-size:13.5px;font-weight:600;color:var(--ap-verde);padding:4px 0}
.indicator-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px;margin-top:12px}
.indicator-grid article{background:var(--ap-fundo);border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:2px}
.indicator-grid span{font-size:12.5px;color:var(--ap-suave)}
.indicator-grid strong{font-size:18px}
.indicator-grid a{font-size:12.5px}
.quick-grid a>span .ico,.record-icon .ico{width:24px;height:24px;color:var(--ap-verde)}
/* áreas de atuação */
.area-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.area-picker .actions{grid-column:1/-1}
.area-option{display:flex;gap:12px;align-items:flex-start;padding:16px;border-radius:14px;border:1px solid var(--ap-fio);cursor:pointer}
.area-option:has(input:checked){border-color:var(--ap-verde);background:var(--ap-verde-suave)}
.area-option input{margin-top:3px;width:18px;height:18px;accent-color:var(--ap-verde)}
.area-option b{display:block;font-size:15px}
.area-option small{display:block;color:var(--ap-suave);font-size:13px;margin-top:2px}
.muted{color:var(--ap-suave);font-size:13.5px}
@media(max-width:760px){
.profile-name{display:none}
.profile-menu>summary{padding:2px}
.area-picker{grid-template-columns:1fr}
.saas-mode .topbar .eyebrow{display:none}
}
.sidebar nav a,.sidebar .nav-group>summary{gap:9px;font-size:13.5px}
.sidebar .nav-items a{font-size:13px}
@media(min-width:1001px){.sidebar{width:272px}.workspace-main{margin-left:272px}}

/* ===== Listas em tabela com ações por linha (07/10/2026). Classes genéricas, reutilizáveis nas telas dos blocos:
   .data-table (envolve .table-scroll > table; no celular cada linha vira um cartão com o rótulo vindo de td[data-label]),
   .row-actions (botões/links da linha), .row-actions .danger (ação de arquivar), .badge.warn / .badge.red,
   .list-tabs (filtro rápido em abas), .stack (coluna com espaçamento), .impersonation-bar (faixa fixa da personificação). ===== */
.data-table table{min-width:720px}
.data-table th{white-space:nowrap}
.data-table td{vertical-align:middle}
.data-table td.title-cell{min-width:200px;font-weight:600}
.data-table td.title-cell small{font-weight:400}
.data-table td.nowrap{white-space:nowrap}
.data-table .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.row-actions{display:flex;flex-wrap:nowrap;gap:6px;justify-content:flex-end;align-items:center}
.row-actions form{margin:0;display:inline-flex}
.row-actions a,.row-actions button{display:inline-flex;align-items:center;min-height:32px;padding:5px 11px;border-radius:8px;border:0;background:var(--ap-preenchido);color:var(--ap-texto);font-size:13px;font-weight:500;white-space:nowrap;text-decoration:none;cursor:pointer}
.row-actions a:hover,.row-actions button:hover{background:var(--ap-preenchido-forte)}
.row-actions .primary{background:var(--ap-verde-suave);color:var(--ap-verde)}
.row-actions .danger{background:#fff1f0;color:#b3261e}
.row-actions .danger:hover{background:#ffe2df}
th.actions-col,td.actions-col{text-align:right;white-space:nowrap;width:1%}
.badge.warn{background:#fff4e5;color:#9a5b00}
.badge.red{background:#fff1f0;color:#b3261e}
.list-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px}
.list-tabs a{padding:6px 12px;border-radius:999px;background:var(--ap-preenchido);color:var(--ap-texto);font-size:13.5px;font-weight:500;text-decoration:none}
.list-tabs a.active{background:var(--ap-verde);color:#fff}
.list-tabs a small{font-size:12px;color:inherit;opacity:.75;margin-left:4px}
.impersonation-bar{position:sticky;top:0;z-index:40;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px 16px;padding:9px 16px;background:#7a2e0e;color:#fff;font-size:14px;text-align:center}
.impersonation-bar strong{color:#fff}
.impersonation-bar form{margin:0}
.impersonation-bar button{border:0;border-radius:8px;background:#fff;color:#7a2e0e;font-weight:600;font-size:13.5px;padding:6px 12px;cursor:pointer}
@media(max-width:760px){
.data-table table{min-width:0}
.data-table thead{display:none}
.data-table table,.data-table tbody,.data-table tr,.data-table td{display:block;width:100%}
.data-table tr{padding:12px 4px;border-bottom:1px solid var(--ap-fio)}
.data-table td{border:0;padding:3px 4px;display:flex;justify-content:space-between;gap:12px;text-align:right}
.data-table td::before{content:attr(data-label);color:var(--ap-suave);font-size:13px;font-weight:500;text-align:left;flex:0 0 auto}
.data-table td.title-cell{display:block;text-align:left;font-size:16px;min-width:0}
.data-table td.title-cell::before{content:none}
.data-table td.actions-col{display:block;width:100%;padding-top:8px}
.data-table td.actions-col::before{content:none}
.data-table .row-actions{justify-content:flex-start;flex-wrap:wrap}
.data-table .num{text-align:right}
.impersonation-bar{font-size:13px;padding:8px 12px}
.impersonating .topbar{position:static}
}
.stack{display:flex;flex-direction:column;gap:20px;min-width:0}
.row-actions details>summary{list-style:none;display:inline-flex;align-items:center;min-height:32px;padding:5px 11px;border-radius:8px;background:var(--ap-verde-suave);color:var(--ap-verde);font-size:13px;font-weight:500;cursor:pointer;white-space:nowrap}
.row-actions details>summary::-webkit-details-marker{display:none}
.row-actions details[open]{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.row-actions details[open] .inline-form{flex-wrap:nowrap}
.row-actions .inline-form button{background:var(--ap-preenchido)}
@media(max-width:760px){.row-actions details[open]{align-items:flex-start;width:100%}.row-actions details[open] .inline-form{flex-wrap:wrap}}
.data-table.compact-table table{min-width:0}
