:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#20242b;background:#f5f6f7;font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid #a7c5ff;outline-offset:2px}.skip{position:absolute;left:10px;top:-60px;z-index:20;background:#1d2430;color:white;padding:10px}.skip:focus{top:10px}.sidebar{position:fixed;z-index:5;inset:0 auto 0 0;width:226px;background:#f0f1f3;border-right:1px solid #e6e8eb;display:flex;flex-direction:column;padding:25px 14px 16px}.brand{padding:1px 12px 32px;display:flex;flex-direction:column;gap:8px}.brand img{width:131px;height:auto;object-fit:contain}.brand small{font-size:10px;letter-spacing:.24em;font-weight:700;color:#757d85}.sidebar nav{display:flex;flex-direction:column;gap:4px}.sidebar nav a{display:flex;align-items:center;gap:12px;border-radius:12px;padding:10px 13px;color:#59616c;font-weight:650;white-space:nowrap}.sidebar nav a:hover{background:#e5e8ec;text-decoration:none;color:#1f2935}.sidebar nav a.active{background:#20252c;color:white;box-shadow:0 4px 12px #20252c1d}.nav-icon{font-size:17px;width:21px;text-align:center;font-weight:400}.nav-caption{font-size:10px;font-weight:800;letter-spacing:.15em;color:#969da5;padding:7px 12px 8px}.admin-caption{border-top:1px solid #dfe2e6;margin-top:20px;padding-top:20px}.sidebar-foot{margin-top:auto;display:flex;align-items:center;gap:9px;padding:12px 5px 0;border-top:1px solid #dfe2e6;min-width:0}.sidebar-foot>div{min-width:0;flex:1}.sidebar-foot b,.sidebar-foot small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-foot b{font-size:12px}.sidebar-foot small{font-size:11px;color:#79818b}.avatar{width:30px;height:30px;background:#252b34;color:#fff;border-radius:10px;display:grid;place-items:center;font-weight:700}.logout{border:0;background:transparent;color:#646b75;font-size:21px}.main-wrap{margin-left:226px;min-height:100vh}.topbar{height:60px;border-bottom:1px solid #e9ebee;background:#fafbfc;display:flex;align-items:center;justify-content:space-between;padding:0 34px;color:#7f8790;font-size:11px;font-weight:750;letter-spacing:.1em;text-transform:uppercase}.topbar em{color:#c9cdd2;font-style:normal;margin:0 7px}.topbar-right{display:flex;align-items:center;gap:9px;letter-spacing:0;text-transform:none;font-size:12px;color:#7a828c}.top-role{margin-left:12px;color:#a0a7af}.live-dot{width:7px;height:7px;border-radius:50%;background:#58b58b}.mobile-menu{display:none;border:0;background:none;font-size:22px;color:#20242b}main#main{padding:31px 38px 80px;max-width:1700px;margin:0 auto}.page-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px}.page-heading h1{font-size:32px;letter-spacing:-.055em;line-height:1.13;margin:0 0 7px;font-weight:730}.page-heading p{margin:0;color:#747d87;font-size:13px}.actions{display:flex;gap:8px}.backline{color:#7b8490;font-size:12px;margin-bottom:20px}.backline a{text-decoration:underline;text-underline-offset:3px}.button{border:1px solid #e0e3e7;border-radius:9px;padding:8px 12px;background:#fff;color:#353b44;font-weight:650;white-space:nowrap;min-height:34px}.button:hover{background:#f7f8f9;text-decoration:none}.button.primary{background:#242a33;border-color:#242a33;color:#fff}.button.primary:hover{background:#3b4350}.button.small{padding:4px 9px;font-size:11px;min-height:29px}.button.icon-button{width:28px;min-height:28px;padding:0;font-size:19px;line-height:1}.inline-button{padding:0;border:0;background:none;text-decoration:underline;text-underline-offset:3px;color:#303d54;font-weight:700}.toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-bottom:12px}.chips{display:flex;gap:4px;flex-wrap:wrap;background:#e9ebee;padding:4px;border-radius:11px}.chip{border:0;border-radius:8px;padding:7px 12px;background:transparent;color:#68717b;font-size:12px;font-weight:700;white-space:nowrap}.chip.active{background:#fff;color:#20242a;box-shadow:0 1px 3px #1d273414}.search{display:flex;align-items:center;gap:7px;border:1px solid #e1e4e8;background:#fff;border-radius:9px;padding:0 10px;height:38px;min-width:245px;flex:1;max-width:440px;color:#8c949e}.search span{font-size:22px;line-height:1}.search input{border:0;outline:none;background:none;width:100%;font-size:12px;color:#28303a}.toolbar select{border:1px solid #e1e4e8;background:white;border-radius:9px;padding:9px;color:#515a65;max-width:190px}.count{font-size:11px;color:#929aa3;margin:14px 0 13px;font-weight:700;letter-spacing:.03em}.group{margin-bottom:25px}.group-title{display:flex;align-items:center;margin:0 0 10px}.group-title h2{margin:0;font-size:13px;display:flex;align-items:center;gap:8px}.group-title h2>span:last-child{color:#abb2ba;font-size:12px}.badge{display:inline-flex;align-items:center;gap:7px;border-radius:999px;padding:4px 9px;background:#eff1f3;color:#67717c;font-size:11px;font-weight:750;white-space:nowrap}.badge i{width:6px;height:6px;border-radius:50%;background:currentColor}.badge.green{background:#e4f5eb;color:#238257}.badge.red{background:#fbe8e8;color:#bd4d4d}.badge.orange{background:#fff0dc;color:#a56b23}.badge.blue{background:#e6efff;color:#4774c5}.work-list{border:1px solid #e9ebed;background:white;border-radius:14px;overflow:hidden;box-shadow:0 2px 8px #1c283205}.work-row{display:grid;grid-template-columns:minmax(270px,1fr) minmax(90px,130px) 115px 154px;gap:14px;align-items:center;min-height:75px;padding:12px 19px;border-bottom:1px solid #eff0f2}.work-row:last-child{border-bottom:0}.work-row:hover{background:#fcfcfd}.work-main{min-width:0;display:flex;align-items:center;gap:12px}.work-title{display:flex;flex-direction:column;min-width:0}.work-title strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#242a32}.work-title small{font-size:11px;color:#929aa2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.subcount{white-space:nowrap;background:#f3f4f5;color:#9299a2;font-size:10px;border-radius:6px;padding:3px 6px}.owner{text-transform:capitalize;color:#68717b;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.due-button{background:transparent;border:0;text-align:left;color:#67717c;font-size:11px;white-space:nowrap}.due-button.late{color:#b85656;font-weight:700}.quick{display:flex;gap:5px;justify-content:flex-end}.panel{background:#fff;border:1px solid #e9ebee;border-radius:14px;padding:20px 21px;margin-bottom:17px;box-shadow:0 2px 8px #1c283205;min-width:0}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:15px}.panel h2{font-size:14px;line-height:1.2;margin:0;letter-spacing:-.01em}.panel p{font-size:12px;color:#646c76;margin:7px 0}.panel a:not(.button){color:#2b568f}.two-col{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:17px;align-items:start}.column{min-width:0}.facts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:17px}.fact{background:#fff;border:1px solid #e9ebee;border-radius:12px;padding:15px 16px;min-height:86px;display:flex;flex-direction:column;justify-content:space-between}.fact small{font-size:11px;color:#8b939e}.fact strong{font-size:14px;font-weight:730;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fact .badge{width:max-content}.detail-row{display:flex;justify-content:space-between;gap:20px;padding:10px 0;border-bottom:1px solid #f0f1f3;font-size:12px}.detail-row:last-child{border:0}.detail-row>span{color:#8a929b;flex:0 0 31%}.detail-row strong{text-align:right;font-size:12px;font-weight:650;overflow-wrap:anywhere}.detail-row .button{margin-left:4px}.item-line{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #f0f1f3;min-width:0;font-size:12px}.item-line:last-child{border-bottom:0}.item-line>a,.item-line>strong{font-weight:700;max-width:40%;overflow-wrap:anywhere}.item-line>span:not(.badge){color:#87909a}.item-line select{border:1px solid #e0e4e8;border-radius:7px;padding:5px;background:white;max-width:135px;font-size:11px}.muted{color:#929aa4;font-size:11px}.empty{padding:17px 0;color:#a0a7af;font-size:12px}.note{border-left:2px solid #dce7fa;padding:5px 12px;margin:12px 0}.note small{color:#929ba5;font-size:11px}.note p{color:#454d57;margin:5px 0;white-space:pre-wrap;overflow-wrap:anywhere}.card-grid,.resource-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.client-card,.resource-card{background:#fff;border:1px solid #e9ebee;border-radius:13px;padding:18px;min-height:142px}.client-card>a{display:flex;align-items:center;gap:11px;font-size:14px}.client-mark{width:34px;height:34px;border-radius:10px;background:#f0eee8;color:#735c35;display:grid;place-items:center;font-size:11px;font-weight:800;max-width:34px;overflow:hidden}.client-card p{font-size:11px;color:#969fa9;min-height:36px;margin:14px 0}.client-card>div{display:flex;justify-content:space-between;font-size:11px;color:#687481;border-top:1px solid #f0f1f2;padding-top:10px}.resource-card{min-height:110px}.resource-card>a{display:flex;flex-direction:column;gap:7px}.resource-card>a>span,.resource-card>small{font-size:11px;color:#949ca5}.resource-card>small{display:block;margin-top:13px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:12px;min-width:700px}th{text-align:left;color:#9aa2ac;font-size:10px;letter-spacing:.08em;text-transform:uppercase;font-weight:750;padding:10px 12px;border-bottom:1px solid #e9ebee}td{padding:12px;border-bottom:1px solid #f0f1f3;vertical-align:middle;color:#53606c}tr:last-child td{border:0}td>a{color:#273d58!important}td a strong{display:block;color:#27303a}td small{display:block;color:#98a0a9;margin-top:2px}.boot{min-height:100vh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;text-align:center;padding:30px}.boot h1{font-size:23px;margin:0}.boot p{color:#727c86;margin:0;max-width:440px}.notice{background:#fff3d8;color:#8a6222;border:1px solid #f4e3b8;border-radius:9px;padding:10px 14px;font-size:12px}dialog{border:0;border-radius:15px;box-shadow:0 20px 80px #1b273853;width:min(95vw,460px);padding:0;color:#252b33}dialog::backdrop{background:#15202b70}.dialog-head,.dialog-actions{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid #eceef0}.dialog-head h2{font-size:17px;margin:0}.dialog-head .close{border:0;background:none;font-size:24px;color:#727b85}.dialog-body{padding:22px;display:flex;flex-direction:column;gap:14px}.dialog-actions{border:0;border-top:1px solid #eceef0;justify-content:flex-end;gap:8px}.field{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#5d6671;font-weight:700}.field input,.field select,.field textarea{border:1px solid #dadee3;border-radius:8px;min-height:38px;padding:8px 10px;background:white;color:#29313b;width:100%;font-weight:400}.field textarea{min-height:100px;resize:vertical}#toast{position:fixed;bottom:20px;right:22px;z-index:20;background:#252d38;color:white;border-radius:9px;padding:11px 15px;font-size:12px;box-shadow:0 8px 25px #25354a33;opacity:0;pointer-events:none;transform:translateY(10px);transition:.18s}#toast.show{opacity:1;transform:translateY(0)}#toast.error{background:#ad4848}@media(max-width:1180px){.work-row{grid-template-columns:minmax(210px,1fr) 95px 90px 150px}.subcount{display:none}.card-grid,.resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.facts{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:850px){.sidebar{transform:translateX(-100%);transition:transform .2s;box-shadow:0 10px 20px #15202b1c}.nav-open .sidebar{transform:translateX(0)}.main-wrap{margin-left:0}.mobile-menu{display:block}.topbar{padding:0 18px;gap:12px}.topbar>span{margin-right:auto}.top-role{display:none}main#main{padding:24px 18px 60px}.two-col{grid-template-columns:1fr}.work-row{grid-template-columns:minmax(0,1fr) 100px 145px}.owner{display:none}}@media(max-width:600px){.page-heading h1{font-size:27px}.work-row{grid-template-columns:minmax(0,1fr) auto;gap:7px;padding:13px}.work-main{grid-column:1/-1}.work-title strong{white-space:normal}.quick{grid-column:2;grid-row:2}.due-button{grid-column:1;grid-row:2}.facts{grid-template-columns:repeat(2,minmax(0,1fr))}.card-grid,.resource-grid{grid-template-columns:1fr}.search{max-width:none;min-width:100%}.toolbar select{flex:1;max-width:none}.panel{padding:17px}.item-line{flex-wrap:wrap;justify-content:flex-start}.item-line>a,.item-line>strong{max-width:100%}.detail-row>span{flex-basis:36%}.topbar-right{font-size:0}.live-dot{width:7px;height:7px}.chips{overflow:auto;max-width:100%;flex-wrap:nowrap}.chip{font-size:11px}}
.detail-row select{border:1px solid #dfe4e8;border-radius:7px;background:#fff;padding:5px 7px;margin-left:5px;max-width:150px;color:#323c47;font-size:11px}
.work-description{white-space:pre-wrap;text-align:left;display:inline-block;overflow-wrap:anywhere}
dialog{max-height:92vh;overflow:auto}.field:has(.checks){border:1px solid #dadee3;border-radius:8px;padding:10px}.field legend{padding:0 5px}.checks{display:flex;flex-wrap:wrap;gap:8px 13px;margin-top:7px}.checks label{display:inline-flex;align-items:center;gap:5px;font-weight:500;color:#39434f}.checks input[type=checkbox]{width:16px;min-height:16px;height:16px;padding:0;margin:0}

/* Work rows and aligned detail lists */
.work-row{position:relative}.work-row .row-open{position:absolute;inset:0;z-index:1}.work-row .owner-button,.work-row .due-button,.work-row .quick{position:relative;z-index:2}.work-row:focus-within{outline:2px solid #a7c5ff;outline-offset:-2px}.work-row:hover .work-title strong{color:#2b568f}.owner-button{background:transparent;border:0;text-align:left;color:#68717b;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-transform:capitalize;padding:5px 0}.owner-button:hover,.due-button:hover{color:#2b568f;text-decoration:underline;text-underline-offset:3px}.record-head,.record-line{display:grid;align-items:center;gap:10px}.record-head{border-bottom:1px solid #e9ebee;color:#8b949e;font-size:10px;font-weight:750;text-transform:uppercase;letter-spacing:.06em;padding:7px 0 10px}.record-line{border-bottom:1px solid #f0f1f3;min-height:47px;padding:9px 0;font-size:11px;color:#606a76}.record-line:last-child{border-bottom:0}.record-line>span,.record-line>strong{min-width:0;overflow-wrap:anywhere}.record-line strong{color:#2b323a}.record-line a{color:#2b568f;font-weight:700}.record-line .badge{width:max-content}.record-line select{border:1px solid #e0e4e8;border-radius:7px;padding:5px;background:#fff;width:100%;font-size:11px}.task-records .record-head,.task-records .record-line{grid-template-columns:minmax(120px,2fr) minmax(74px,1fr) minmax(74px,1fr) 82px 54px}.production-records .record-head,.production-records .record-line{grid-template-columns:minmax(90px,1.1fr) minmax(120px,1.7fr) 120px 57px}.hours-records .record-head,.hours-records .record-line{grid-template-columns:83px 80px 48px minmax(100px,1fr) 112px}.record-actions{display:flex;gap:5px;justify-content:flex-end;align-items:center}.record-actions .button{padding:4px 6px}.button.danger{color:#b85151;border-color:#f0d8d8}.button.danger:hover{background:#fff3f3}.report-controls{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;margin:0 0 15px}.report-controls .field{min-width:150px}.report-summary{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin:15px 0;color:#58636f;font-size:12px}.report-summary strong{font-size:21px;color:#26303b}.hours-tabs{margin-bottom:18px}.report-note{font-size:11px;color:#7c858f;margin:12px 0}.page-heading .actions{flex-wrap:wrap;justify-content:flex-end}
@media(max-width:850px){.owner-button{display:none}.record-head{display:none}.record-line,.task-records .record-line,.production-records .record-line,.hours-records .record-line{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;padding:13px 0}.record-line>*:first-child{grid-column:1/-1}.record-line [data-label]::before{content:attr(data-label);display:block;font-size:9px;color:#949da7;text-transform:uppercase;font-weight:750;margin-bottom:3px}.record-actions{grid-column:1/-1;justify-content:flex-start}.record-line .badge{max-width:100%}}
@media(max-width:600px){.page-heading{flex-direction:column}.page-heading .actions{justify-content:flex-start}.owner-button{display:block;grid-column:1;grid-row:3}.quick{grid-column:2;grid-row:2/4;align-self:end}.due-button{grid-column:1;grid-row:2}.work-row{grid-template-columns:minmax(0,1fr) auto}}
@media (max-width:850px) and (min-width:601px){.work-row{grid-template-columns:minmax(180px,1fr) 95px 95px 145px}.owner-button{display:block}}
.owner-button{text-transform:none}
.work-row{grid-template-columns:minmax(250px,1fr) minmax(90px,130px) 105px 204px}
.quick{flex-wrap:wrap}
@media(max-width:1180px){.work-row{grid-template-columns:minmax(210px,1fr) 95px 90px 204px}}
@media(max-width:850px) and (min-width:601px){.work-row{grid-template-columns:minmax(180px,1fr) 95px 95px 204px}}
@media(max-width:600px){.work-row{grid-template-columns:minmax(0,1fr) auto}.quick{max-width:204px}}
.fact:nth-child(2) strong{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.35}
.fact:nth-child(2) .inline-button{text-align:left}
.status-button{border:0;background:transparent;padding:2px 0;cursor:pointer;text-align:inherit;border-radius:999px}.status-button:hover .badge{box-shadow:0 0 0 2px #b8c9df}.boot .button{margin-top:4px}
tr[data-open]{cursor:pointer}tr[data-open]:hover td{background:#f8fafc}
.task-records .record-head,.task-records .record-line{grid-template-columns:minmax(120px,2fr) minmax(74px,1fr) minmax(115px,1.3fr) 82px 54px}
@media(max-width:850px){.task-records .record-line{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Administração de horas e caixa */
.filter-group{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.filter-group>span{font-size:10px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:#89919a}.process-toolbar{align-items:flex-start}.process-toolbar .search{margin-left:auto}.process-toolbar .chips{background:#f0f1f3}
.hour-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.hour-summary-card{border:1px solid #e5e9ed;background:#fff;border-radius:14px;padding:17px;display:flex;flex-direction:column;gap:7px;min-height:123px}.hour-summary-card small,.hour-summary-card span{color:#79838e;font-size:11px}.hour-summary-card strong{font-size:20px;letter-spacing:-.03em;line-height:1.2}.hour-summary-card.accent{background:#edf3fd;border-color:#dde8fa}.hour-summary-card.positive{background:#eff8f3;border-color:#dcf0e3}.hour-summary-card.negative{background:#fff2f0;border-color:#f4dfdb}.negative-text{color:#bf534e!important}.positive-text{color:#287c59!important}.report-work-choices{border:1px solid #e9ebee;border-radius:10px;padding:12px;margin:12px 0}.report-work-choices>strong{font-size:12px}.report-work-choices .checks{margin-top:10px;max-height:150px;overflow:auto}.report-work-choices .checks label{font-size:11px}.report-actions{margin:15px 0 6px}
.cash-hero{display:flex;justify-content:space-between;align-items:flex-end;gap:25px;border-radius:18px;background:#252a34;color:white;padding:27px 31px;margin-bottom:14px;overflow:hidden;position:relative}.cash-hero::after{content:'';position:absolute;right:-65px;top:-120px;width:270px;height:270px;border-radius:50%;background:radial-gradient(circle,#8faeda55,transparent 70%);pointer-events:none}.cash-hero>div{position:relative;z-index:1}.cash-hero small{display:block;color:#aeb9c6;font-size:10px;font-weight:750;letter-spacing:.12em;text-transform:uppercase}.cash-hero strong{display:block;font-size:38px;line-height:1.05;letter-spacing:-.055em;margin-top:7px}.cash-hero p{color:#bdc6d0;margin:11px 0 0;font-size:12px}.cash-hero-split{display:flex;gap:24px}.cash-hero-split span{display:flex;flex-direction:column;gap:3px}.cash-hero-split b{font-size:17px;white-space:nowrap}.cash-period-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}.cash-period,.cash-metric{background:#fff;border:1px solid #e7eaed;border-radius:13px;padding:18px}.cash-period small,.cash-metric small{font-size:11px;color:#7e8893}.cash-period strong{display:block;font-size:22px;letter-spacing:-.04em;margin:5px 0 13px}.cash-period>div{display:flex;justify-content:space-between;gap:7px;font-size:11px;color:#66717d}.cash-period>div span:first-child{color:#3873a6}.cash-period>div span:last-child{color:#bb734b}.cash-legend{display:flex;gap:18px;font-size:11px;color:#707a84;margin-bottom:15px}.cash-legend span{display:flex;align-items:center;gap:6px}.cash-key{width:8px;height:8px;border-radius:2px;display:inline-block}.cash-key.in{background:#6e9cc8}.cash-key.out{background:#e4a37b}.cash-chart{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:8px;height:230px;border-bottom:1px solid #e9ecef;padding:0 4px}.cash-month{display:flex;flex-direction:column;align-items:center;min-width:0;font-size:10px;color:#88929c}.cash-bars{flex:1;width:100%;display:flex;align-items:flex-end;justify-content:center;gap:3px;border-bottom:1px solid #e8ebee}.cash-bar{width:31%;min-width:5px;max-width:23px;border-radius:4px 4px 0 0;display:block}.cash-in{background:#6e9cc8}.cash-out{background:#e4a37b}.cash-month>span{margin-top:7px}.cash-month>small{font-size:9px;white-space:nowrap;letter-spacing:-.03em}.cash-insights{display:flex;gap:20px;flex-wrap:wrap;color:#7d8790;font-size:11px;margin-top:18px}.cash-insights strong{color:#2d3540}.cash-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 16px}.cash-metric{min-height:90px}.cash-metric strong{display:block;font-size:18px;margin-top:9px;letter-spacing:-.04em}.cash-metric.blue{background:#f1f6fc}.cash-metric.orange{background:#fff7ed}.cash-metric.gray{background:#f6f7f8}.cash-metric.red{background:#fdf2f0}
@media(max-width:1150px){.hour-summary-grid,.cash-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.process-toolbar .search{margin-left:0}}
@media(max-width:700px){.hour-summary-grid,.cash-period-grid,.cash-metric-grid{grid-template-columns:1fr 1fr}.cash-hero{display:block;padding:23px}.cash-hero strong{font-size:31px}.cash-hero-split{margin-top:24px}.cash-chart{overflow-x:auto;min-width:620px}.cash-period{padding:14px}.cash-period strong{font-size:17px}.cash-period-grid{gap:7px}}
@media(max-width:480px){.hour-summary-grid,.cash-metric-grid{grid-template-columns:1fr 1fr}.cash-period-grid{grid-template-columns:1fr}.cash-hero-split b{font-size:14px}}

.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.login-screen,.boot-screen{min-height:100vh;min-height:100svh;background:#fff;color:#17191c}
.login-screen,main#main.login-screen{display:flex;align-items:center;justify-content:center;width:100%;max-width:none;margin:0;padding:32px 24px}
.login-stack{display:flex;flex-direction:column;align-items:center;gap:64px;width:min(100%,360px);transform:translateY(28px)}
.login-brand{display:flex;flex-direction:column;align-items:center;gap:13px;text-align:center}
.login-brand img{display:block;width:220px;max-width:100%;height:auto;object-fit:contain}
.login-brand span{font-size:11px;font-weight:800;letter-spacing:.28em;color:#737981}
.google-login{display:flex;align-items:center;justify-content:center;gap:14px;width:100%;min-height:56px;padding:0 18px;background:#191b1f;color:#fff;border-radius:11px;font-size:14px;font-weight:700;box-shadow:0 12px 28px #161a2021;transition:transform .18s ease,background .18s ease,box-shadow .18s ease}
.google-login:hover{color:#fff;text-decoration:none;background:#333840;transform:translateY(-2px);box-shadow:0 16px 30px #161a2028}
.google-mark{font-family:Arial,sans-serif;font-size:22px;font-weight:800;line-height:1;background:conic-gradient(#4285f4 0 90deg,#34a853 90deg 165deg,#fbbc05 165deg 235deg,#ea4335 235deg 320deg,#4285f4 320deg);-webkit-background-clip:text;background-clip:text;color:transparent}
.login-error{margin:0;text-align:center;color:#a54f4f;font-size:13px}
.boot-screen,main#main.boot-screen{display:grid;place-items:center;width:100%;max-width:none;margin:0;padding:32px}
.boot-wheel{width:110px;height:110px;transform:rotate(-90deg);overflow:visible}
.boot-wheel circle{fill:none;stroke-width:5}
.boot-wheel-track{stroke:#e7e9eb}
.boot-wheel-progress{stroke:#151719;stroke-linecap:round;transition:stroke-dashoffset .15s linear}
@media(max-width:600px){.login-stack{gap:56px;transform:translateY(16px)}.login-brand img{width:190px}.boot-wheel{width:88px;height:88px}}
@media(prefers-reduced-motion:reduce){.google-login,.boot-wheel-progress{transition:none}.google-login:hover{transform:none}}

/* Pipeline visual system · 2026-10 */
:root{--ink:#1c2229;--canvas:#f4f6f8;--line:#e4e9ee;--blue:#315f9a;--blue-soft:#eaf2fc;--green:#1f7457;--green-soft:#e6f5ed;--amber:#976010;--amber-soft:#fff3df;--violet:#6651a0;--violet-soft:#f0edfb;--red:#aa4848;--red-soft:#feeeee}
body{background:var(--canvas)}
.sidebar{background:#fff;border-right:1px solid var(--line);box-shadow:3px 0 22px #1c283008}
.brand{padding-bottom:25px}.brand small{color:#818a94}
.sidebar nav{gap:3px}.sidebar nav a{padding:9px 12px;border-radius:10px;color:#586371;font-size:12px;transition:background .16s,color .16s,transform .16s}
.sidebar nav a:hover{background:#f2f5f8;color:var(--ink);transform:translateX(2px)}
.sidebar nav a.active{background:#1e242b;color:#fff;box-shadow:0 7px 16px #1e242b1f}
.nav-caption{padding-top:9px;padding-bottom:8px}.admin-caption{margin-top:15px;padding-top:17px}
.nav-icon{width:21px;height:21px;flex:0 0 21px;display:grid;place-items:center}.nav-icon svg{width:19px;height:19px;display:block}
.logout,.mobile-menu{display:grid;place-items:center}.logout{width:31px;height:31px;border-radius:8px}.logout:hover{background:#f1f3f6;color:#202833}.logout svg,.mobile-menu svg{display:block;width:19px;height:19px}
.mobile-menu{display:none;width:38px;height:38px;border-radius:9px}
.topbar{background:#fff;border-color:var(--line)}.page-heading{margin-bottom:18px}.page-heading h1{font-weight:760;color:var(--ink)}
.button{transition:background .16s,border-color .16s,box-shadow .16s,transform .16s}.button:hover{border-color:#cdd5dd;box-shadow:0 3px 8px #2634430b}.button.primary{background:#1e242b;border-color:#1e242b}.button.primary:hover{background:#353e49}
.button.icon-button{width:27px;min-height:27px;border-radius:8px}.button.icon-button svg{width:14px;height:14px;display:block;margin:auto}
.search:focus-within{border-color:#94b5db;box-shadow:0 0 0 3px #9ec5f332}.search .search-icon{display:grid;place-items:center}.search .search-icon svg{width:16px;height:16px;display:block}
.search input{min-width:0}.search-clear{display:grid;place-items:center;flex:0 0 25px;width:25px;height:25px;padding:0;border:0;border-radius:6px;background:transparent;color:#73808c;font-size:19px;line-height:1}.search-clear:hover{background:#edf1f5;color:#26313c}.search-clear[hidden]{display:none}
.chips{background:#e9edf1}.chip.active{box-shadow:0 2px 6px #15283b14}.chip:hover:not(.active){color:#26394e;background:#f7f9fb}
.badge{font-weight:740}.badge.violet{background:var(--violet-soft);color:var(--violet)}.badge.green{background:var(--green-soft);color:var(--green)}.badge.orange{background:var(--amber-soft);color:var(--amber)}.badge.blue{background:var(--blue-soft);color:var(--blue)}.badge.red{background:var(--red-soft);color:var(--red)}
.group{margin-bottom:17px}.group-title{margin-bottom:7px}.group-title h2>span:last-child{color:#7b8590}
.work-list{border-color:var(--line);border-radius:12px;box-shadow:0 5px 18px #24324409}
.work-row{grid-template-columns:minmax(230px,1fr) minmax(85px,118px) 94px 190px;gap:9px;min-height:56px;padding:7px 14px;border-color:#ecf0f3}
.work-row:hover{background:#f7fafc}.work-row .work-title strong{font-size:12px;line-height:1.25}.work-row .work-title small{font-size:10px;color:#7e8995;line-height:1.35}
.work-row .owner-button,.work-row .due-button{padding:4px 2px;font-size:10px}.work-row .quick{gap:4px;flex-wrap:nowrap}.work-row .quick .button.small{min-height:27px;padding:3px 7px;font-size:10px}
.work-row.state-orange{box-shadow:inset 3px 0 #d9a64f}.work-row.state-blue{box-shadow:inset 3px 0 #709bd0}.work-row.state-violet{box-shadow:inset 3px 0 #a89bd7}.work-row.state-green{box-shadow:inset 3px 0 #7cc6a0}.work-row.state-red{box-shadow:inset 3px 0 #d58a8a}
.fact:nth-child(n){background:#fff;border-color:var(--line)}.facts{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.fact{min-height:94px;padding:14px 16px;border-radius:13px;box-shadow:0 4px 15px #24324409;position:relative;overflow:hidden}.fact::before{content:'';position:absolute;inset:0 auto 0 0;width:3px;background:var(--fact-accent,#c7d1da)}.fact small{color:#6e7884;font-size:11px;font-weight:650}.fact strong{font-size:15px;white-space:normal;overflow:visible;text-overflow:clip;line-height:1.3;overflow-wrap:anywhere}.fact .badge{font-size:11px}.fact.state-blue{--fact-accent:#6795d0;background:var(--blue-soft)!important;border-color:#d9e6f6!important}.fact.state-orange{--fact-accent:#d5a14a;background:var(--amber-soft)!important;border-color:#f1dfbe!important}.fact.state-violet{--fact-accent:#a08acb;background:var(--violet-soft)!important;border-color:#e2dcf4!important}.fact.state-green{--fact-accent:#66b58b;background:var(--green-soft)!important;border-color:#d8ebdf!important}.fact.state-red{--fact-accent:#d77b7b;background:var(--red-soft)!important;border-color:#f4d7d7!important}.fact.hours{--fact-accent:#7ba9cc;background:#f1f7fc!important}.fact.people{--fact-accent:#a393be}.fact.due{--fact-accent:#aeb8c1}.fact.amount{--fact-accent:#739ac3}.fact.invoice{--fact-accent:#87b69d}
.fact .status-button{padding:0}.fact .badge{background:#fff9;box-shadow:0 1px 3px #23384813}
.panel{border-color:var(--line);border-radius:14px;box-shadow:0 5px 19px #27374609;padding:20px 22px;margin-bottom:14px}.panel-head{margin-bottom:14px}.panel h2{font-size:14px;color:#1d2832}.detail-row{border-color:#edf0f2}.detail-row>span{color:#6e7a86}.detail-row strong{color:#28343f}.item-line{border-color:#edf0f2}
.task-status{width:100%;min-height:34px;border:1px solid #d9e4ef;border-radius:8px;padding:5px 26px 5px 9px;font-size:11px;font-weight:700;cursor:pointer;color:#435466;background:#f5f8fc}.task-status.state-orange{background:var(--amber-soft);border-color:#eddcb9;color:var(--amber)}.task-status.state-blue{background:var(--blue-soft);border-color:#d7e5f6;color:var(--blue)}.task-status.state-violet{background:var(--violet-soft);border-color:#ded6f1;color:var(--violet)}.task-status.state-green{background:var(--green-soft);border-color:#d0e8d9;color:var(--green)}.task-status.state-red{background:var(--red-soft);border-color:#f0d3d3;color:var(--red)}
.task-records .record-line:has(.task-status){min-height:54px}.task-records .record-line>a:hover,.task-records .record-line a:hover{text-decoration:underline}
.process-controls{border:1px solid var(--line);background:#fff;border-radius:15px;padding:7px;margin-bottom:7px;box-shadow:0 4px 16px #24324408}.process-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.process-switch button{background:#f3f5f7;color:#66727d;border:1px solid transparent;border-radius:10px;text-align:left;padding:11px 15px;font-size:13px;font-weight:800;line-height:1.2}.process-switch button small{display:block;font-size:10px;font-weight:500;margin-top:4px;color:#88939e}.process-switch button.active{background:#eaf2fc;color:#275682;border-color:#cfe1f5}.process-switch button[data-process-group=finance].active{background:#e8f4ee;color:#246e53;border-color:#d0e8d9}.process-switch button.active small{color:inherit;opacity:.75}.process-switch button:hover:not(.active){background:#e9edf1;color:#283541}.process-filter-row{display:flex;align-items:center;gap:12px;padding:12px 8px 5px}.process-filter-row .search{margin-left:auto;flex:0 1 360px}.process-filter-row .chips{flex-wrap:nowrap;overflow:auto;min-width:0}.process-filter-row .chip{font-size:11px;padding:7px 10px}
.process-facts{margin-bottom:16px}.process-alert{display:flex;align-items:center;justify-content:space-between;gap:15px;background:var(--amber-soft);color:#875717;border:1px solid #f0d9ae;border-radius:10px;padding:11px 15px;margin-bottom:16px;font-size:12px;font-weight:700}.process-alert strong{font-size:15px}
.process-queue-alert{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin-top:8px;padding:11px 14px;border:1px solid #ead8ab;border-radius:10px;background:#fff8e9;color:#755019;text-align:left;font-size:12px;cursor:pointer}.process-queue-alert.finance{border-color:#c8e3d7;background:#eef8f2;color:#246e53}.process-queue-alert strong{font-size:13px}.process-queue-alert span{white-space:nowrap;font-weight:700}.process-queue-alert:hover{filter:brightness(.98)}
.journey{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}.journey li{position:relative;display:flex;flex-direction:column;gap:5px;color:#7f8a96;font-size:10px;padding:0 4px;min-width:0}.journey li:not(:last-child)::after{content:'';position:absolute;top:12px;left:29px;right:-7px;height:1px;background:#dce3e9}.journey li.complete{color:#236d52}.journey li.complete:not(:last-child)::after{background:#85c7a3}.journey-step{position:relative;z-index:1;display:grid;place-items:center;width:25px;height:25px;background:#f1f4f6;border:1px solid #dce3e9;border-radius:50%;font-weight:800;color:#88939d}.journey li.complete .journey-step{color:#fff;background:#2e8e66;border-color:#2e8e66}.journey strong{font-size:10px;color:#3c4854;line-height:1.2;overflow-wrap:anywhere}
.table-wrap{scrollbar-color:#cbd4dd transparent}.responsive-table tbody tr:hover{background:#f7fafc}.responsive-table td{padding-top:11px;padding-bottom:11px}
.finance-tabs{display:flex;gap:4px;width:max-content;max-width:100%;padding:4px;margin:2px 0 14px;border-radius:11px;background:#e6ebef}.finance-tabs button{border:0;border-radius:8px;background:transparent;padding:8px 13px;color:#63707d;font-size:12px;font-weight:750;white-space:nowrap}.finance-tabs button.active{background:#fff;color:#24303b;box-shadow:0 2px 7px #24324417}.finance-disclaimer{font-size:11px;line-height:1.5;color:#6f7a85;background:#f5f8fb;border-left:3px solid #83a9ca;padding:8px 12px;margin:0 0 13px}
.cash-hero{background:linear-gradient(115deg,#1d242b,#28394b 74%,#314d61);box-shadow:0 12px 25px #2332411c}.cash-hero::after{width:390px;height:390px;top:-210px;background:radial-gradient(circle,#77bfca30,transparent 69%)}.cash-hero strong{font-size:40px}.cash-hero-split{background:#ffffff0d;border:1px solid #ffffff20;border-radius:13px;padding:13px 17px}.cash-period,.cash-metric{box-shadow:0 5px 17px #2432440a}.cash-period{position:relative;overflow:hidden}.cash-period::before,.cash-metric::before{content:'';position:absolute;inset:0 auto 0 0;width:3px;background:#9eb3c7}.cash-period>div{flex-wrap:wrap}.cash-metric{position:relative}.cash-metric.blue::before{background:#679ed0}.cash-metric.orange::before{background:#d8a05b}.cash-metric.red::before{background:#ca7373}.cash-metric.gray::before{background:#9eaab4}.cash-metric strong{font-size:20px}
.cash-chart-scroll{max-width:100%;overflow-x:auto}.cash-chart{height:260px;background:repeating-linear-gradient(to top,#e8edf2 0,#e8edf2 1px,transparent 1px,transparent 25%);border-bottom:1px solid #dce4eb;padding-top:10px}.cash-month{font-size:11px;color:#687480}.cash-bars{gap:4px}.cash-bar{width:34%;max-width:25px;min-width:6px;border-radius:6px 6px 0 0;transition:height .35s ease,filter .18s}.cash-bar:hover{filter:brightness(.87)}.cash-in,.cash-key.in{background:#5791ca}.cash-out,.cash-key.out{background:#e2a263}.cash-key{width:9px;height:9px;border-radius:3px}.cash-month>small{font-size:10px}.cash-insights{border-top:1px solid #e9edf1;padding-top:13px}.cash-empty{text-align:center;background:#f7f9fb;border:1px dashed #d7dfe8;border-radius:12px;padding:28px 20px}.cash-empty>strong{font-size:15px}.cash-empty p{font-size:12px;max-width:440px;margin:9px auto 17px}.cash-empty-values{display:flex;justify-content:center;gap:20px;flex-wrap:wrap;margin-bottom:15px}.cash-empty-values span{display:flex;flex-direction:column;color:#71808c;font-size:11px}.cash-empty-values b{font-size:16px;color:#263540}
@media(max-width:1180px){.work-row{grid-template-columns:minmax(185px,1fr) minmax(75px,100px) 85px 187px;gap:7px}.facts{grid-template-columns:repeat(2,minmax(0,1fr))}.process-filter-row{flex-wrap:wrap}.process-filter-row .search{flex:1 1 100%;max-width:none}}
@media(max-width:850px){.mobile-menu{display:grid;flex:0 0 38px}.sidebar{z-index:12;width:min(270px,82vw);box-shadow:12px 0 30px #15202b20}.menu-scrim{position:fixed;inset:0;background:#17233077;border:0;z-index:11;display:none}.nav-open .menu-scrim{display:block}.work-row{grid-template-columns:minmax(0,1fr) 90px 80px 187px}.process-filter-row .chips{max-width:100%}}
@media(max-width:700px){.responsive-table{min-width:0;display:block}.responsive-table thead{display:none}.responsive-table tbody{display:grid;gap:10px}.responsive-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--line);border-radius:11px;background:#fff;padding:10px 12px;box-shadow:0 2px 9px #24324408}.responsive-table td{display:block;border:0;padding:5px 4px;min-width:0;overflow-wrap:anywhere}.responsive-table td:first-child{grid-column:1/-1;border-bottom:1px solid #edf0f2;padding-bottom:9px;margin-bottom:3px}.responsive-table td::before{content:attr(data-label);display:block;color:#84909c;font-size:9px;font-weight:750;text-transform:uppercase;letter-spacing:.06em;margin-bottom:2px}.responsive-table td small{line-height:1.35}.journey{overflow-x:auto;grid-template-columns:repeat(5,minmax(80px,1fr))}.cash-chart{min-width:620px}.cash-chart-scroll{width:100%}.cash-hero-split{justify-content:space-between}.cash-period-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){main#main{padding:20px 14px 65px}.page-heading{margin-bottom:16px}.page-heading h1{font-size:27px}.page-heading .actions{width:100%}.page-heading .actions .button{flex:1}.work-row{grid-template-columns:minmax(0,1fr) auto;gap:3px 9px;padding:10px 12px;min-height:0}.work-main{grid-column:1/-1}.work-row .work-title strong{white-space:normal}.work-row .work-title small{white-space:normal;max-height:2.7em;overflow:hidden}.work-row .owner-button{grid-column:1;grid-row:2;text-align:left}.work-row .due-button{grid-column:2;grid-row:2;text-align:right}.work-row .quick{grid-column:1/-1;grid-row:3;justify-content:flex-start;align-self:auto;margin-top:3px;max-width:none;flex-wrap:nowrap}.work-row .quick .button.small{min-height:29px}.facts{gap:8px}.fact{min-height:82px;padding:11px 12px}.fact strong{font-size:13px}.fact small{font-size:10px}.panel{padding:17px}.process-controls{padding:5px}.process-switch button{padding:10px;font-size:12px}.process-switch button small{font-size:9px}.process-filter-row{padding:10px 4px 4px;gap:9px}.process-filter-row .chips{width:100%;flex-wrap:nowrap}.process-filter-row .search{min-width:0;width:100%;flex-basis:100%}.cash-period-grid{grid-template-columns:1fr}.finance-tabs{width:100%}.finance-tabs button{flex:1;white-space:normal;line-height:1.2}.cash-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cash-metric{min-height:84px;padding:13px}.cash-metric strong{font-size:16px}.cash-hero{padding:20px}.cash-hero strong{font-size:32px}.cash-hero-split{gap:12px;padding:11px;margin-top:17px}.cash-hero-split b{font-size:14px}.cash-period{padding:14px}.cash-period strong{font-size:20px}}
@media(prefers-reduced-motion:reduce){.sidebar nav a,.button,.cash-bar{transition:none}}
.journey{grid-template-columns:repeat(6,minmax(0,1fr))}.journey li>small{font-size:9px;font-weight:700;color:#8a6b35;line-height:1.2}
.work-resource-group+.work-resource-group{border-top:1px solid #edf0f2;margin-top:13px;padding-top:13px}.work-resource-group h3{display:flex;align-items:center;gap:7px;margin:0 0 8px;font-size:11px;color:#77838e;text-transform:uppercase;letter-spacing:.07em}.work-resource-group h3 span{display:grid;place-items:center;min-width:19px;height:19px;border-radius:99px;background:#edf2f6;color:#4e6579;font-size:10px}.work-resource-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.work-resource-item{display:flex;flex-direction:column;gap:3px;min-width:0;padding:10px 12px;background:#f7f9fb;border:1px solid #e8edf2;border-radius:9px;font-size:12px}.work-resource-item a,.work-resource-item strong{font-weight:700;overflow-wrap:anywhere}.work-resource-item small{font-size:10px;color:#788591;overflow-wrap:anywhere}
.report-card-row{display:grid;grid-template-columns:minmax(160px,1.2fr) auto minmax(170px,1fr) auto;align-items:center;gap:12px;min-height:67px;padding:10px 0;border-bottom:1px solid #edf0f2;font-size:12px}.report-card-row:last-child{border-bottom:0}.report-card-name{display:flex;flex-direction:column;gap:3px;min-width:0}.report-card-name strong{font-size:12px;color:#27313b;overflow-wrap:anywhere}.report-card-name small{font-size:10px;color:#82909c}.report-card-state{justify-self:start}.report-card-file{min-width:0;font-size:10px;line-height:1.35;overflow-wrap:anywhere}.report-card-actions{justify-self:end}.report-file{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0;max-width:100%}.report-file span{color:#737f8b;font-size:10px;overflow-wrap:anywhere}.report-file a{font-size:10px;font-weight:700;white-space:normal}.responsive-table td .report-file{min-width:0}
.hour-bank-table table{min-width:0;font-size:10px}.hour-bank-table th,.hour-bank-table td{padding:8px 5px;white-space:nowrap}.hour-bank-table th{font-size:9px;letter-spacing:.03em}
.payment-table th:nth-child(1){width:22%}.payment-table th:nth-child(2){width:13%}.payment-table th:nth-child(3){width:23%}.payment-table th:nth-child(4){width:15%}.payment-table th:nth-child(5){width:9%}.payment-table th:nth-child(6){width:18%}.payment-table td:last-child .badge{max-width:100%;white-space:normal;line-height:1.25}.payment-table td:last-child .badge i{flex:0 0 6px}
@media(max-width:1150px){.report-card-row{grid-template-columns:minmax(140px,1fr) auto;gap:7px 10px}.report-card-file{grid-column:1;grid-row:2}.report-card-actions{grid-column:2;grid-row:2}}
@media(max-width:700px){.journey{grid-template-columns:repeat(6,minmax(94px,1fr))}}
@media(max-width:600px){.work-resource-items{grid-template-columns:1fr}.report-card-row{grid-template-columns:minmax(0,1fr) auto}.report-card-file{grid-column:1}.report-card-actions{grid-column:2;grid-row:2}.report-card-file{padding-right:0}}
.dialog-body [data-mode-section]{display:contents}
.dialog-body [data-mode-section][hidden]{display:none}
.work-mode-hint{margin:0;padding:12px 14px;background:#f3f6f9;border:1px solid #e4eaf0;border-radius:9px;color:#52606d;font-size:12px;line-height:1.5}
.work-no-folder-confirm{grid-column:1/-1;display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid #edcf93;border-radius:9px;background:#fff8e9;color:#654918;font-size:12px;font-weight:650;cursor:pointer}.work-no-folder-confirm input{width:17px;height:17px;flex:none}
.work-mode-hint a,.folder-notice a{color:#24558a;font-weight:700;text-decoration:underline;text-underline-offset:2px}
.folder-notice{display:flex;align-items:center;gap:10px 14px;flex-wrap:wrap;background:#fff7e9;border:1px solid #f1dcb7;color:#584a32;padding:13px 17px;border-radius:11px;margin:0 0 16px;font-size:12px}
.folder-notice strong{font-size:13px;color:#3e3628}.folder-notice span{flex:1;min-width:200px}
.work-chat-notice{margin-bottom:16px}
dialog.work-create{width:min(94vw,860px);max-height:90vh}
dialog.work-create .dialog-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 20px}
dialog.work-create .dialog-body>.work-mode-picker,dialog.work-create .dialog-body>.work-mode-hint,dialog.work-create .dialog-body>.drive-gate,dialog.work-create .work-details .field:has(textarea),dialog.work-create .work-details .field:has([name="projectCode"]),dialog.work-create .work-details .field[data-owner-status]{grid-column:1/-1}
.dialog-body .work-details{display:contents}.dialog-body .work-details[hidden],.dialog-body .drive-gate[hidden],.dialog-body .work-mode-hint[hidden]{display:none}
.drive-gate{padding:28px;border:1px solid #dde7f1;background:#f5f8fc;border-radius:14px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}
.drive-gate-icon{width:48px;height:48px;border-radius:13px;background:#e1ecf8;color:#31689f;display:grid;place-items:center}.drive-gate-icon svg{width:25px;height:25px}
.drive-gate strong{font-size:18px;color:#263442}.drive-gate p{max-width:420px;margin:0;color:#627181;font-size:12px;line-height:1.5}.drive-gate .button{margin-top:5px;display:inline-flex;align-items:center;justify-content:center;min-width:180px}
dialog.work-create .field textarea{min-height:76px}
dialog.work-create .work-mode-picker{border:0;padding:0;margin:0;min-width:0}
dialog.work-create .work-mode-picker legend{font-size:12px;font-weight:750;color:#4b5561;margin-bottom:9px;padding:0}
.work-mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.work-mode-card{position:relative;display:flex;align-items:center;gap:13px;min-width:0;min-height:68px;padding:12px 14px;background:#f8f9fa;border:1px solid #e1e5e9;border-radius:11px;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s}
.work-mode-card:hover{background:#f1f4f7;border-color:#cbd3dd}
.work-mode-card:has(input:checked){background:#edf3fa;border-color:#4177ad;box-shadow:0 0 0 1px #4177ad}
.work-mode-card:has(input:focus-visible){outline:3px solid #a7c5ff;outline-offset:2px}
.work-mode-card input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.work-mode-icon{width:38px;height:38px;border-radius:10px;background:#e9edf1;color:#566474;display:grid;place-items:center;flex:none}
.work-mode-card:has(input:checked) .work-mode-icon{background:#dceafa;color:#2c6096}
.work-mode-icon svg{width:20px;height:20px}.work-mode-copy{display:flex;flex-direction:column;gap:1px;min-width:0}.work-mode-copy strong{color:#29323d;font-size:13px;line-height:1.2}.work-mode-copy small{font-size:11px;color:#76818d;line-height:1.25}
dialog.work-create .dialog-head,dialog.work-create .dialog-actions{position:sticky;background:#fff;z-index:1}
dialog.work-create .dialog-head{top:0}dialog.work-create .dialog-actions{bottom:0}
.parent-picker{position:relative;grid-column:1/-1;min-width:0}.parent-picker>label{font-weight:700}.parent-picker>small{color:#7b8793;font-size:11px;font-weight:400}.parent-picker .parent-results{position:absolute;top:calc(100% - 17px);left:0;right:0;max-height:260px;overflow-y:auto;z-index:4;background:#fff;border:1px solid #d7e0e8;border-radius:9px;box-shadow:0 14px 32px #25354a20;padding:5px}.parent-picker .parent-results[hidden]{display:none}.parent-results button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;border:0;border-radius:6px;background:#fff;color:#26313d;padding:9px 11px;text-align:left}.parent-results button:hover,.parent-results button[aria-selected="true"]{background:#edf3fa}.parent-results button strong{font-size:12px;font-weight:700}.parent-results button small{color:#657482;font-size:11px}.parent-no-results{margin:0;padding:12px;color:#687683;font-weight:400}
dialog.client-create{width:min(94vw,800px);max-height:90vh}dialog.client-create .dialog-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 20px}dialog.client-create .client-form-section{grid-column:1/-1;margin:8px 0 0;padding-bottom:7px;border-bottom:1px solid #e6eaee;color:#2b3744;font-size:13px;font-weight:800}dialog.client-create .field:has(textarea),dialog.client-create .field:has([name="billingAddress"]),dialog.client-create .drive-gate{grid-column:1/-1}dialog.client-create .field textarea{min-height:72px}dialog.client-create .dialog-head,dialog.client-create .dialog-actions{position:sticky;background:#fff;z-index:1}dialog.client-create .dialog-head{top:0}dialog.client-create .dialog-actions{bottom:0}
@media(max-width:650px){dialog.work-create{width:min(96vw,460px)}dialog.work-create .dialog-body,.work-mode-grid{grid-template-columns:1fr}dialog.work-create .dialog-body>*{grid-column:1/-1}.parent-picker .parent-results{position:static;max-height:220px;margin-top:2px}}
@media(max-width:650px){dialog.client-create{width:min(96vw,460px)}dialog.client-create .dialog-body{grid-template-columns:1fr}dialog.client-create .dialog-body>*{grid-column:1/-1}}

/* Process and supplier payment lists prioritize names and linked projects. */
.compact-table{min-width:930px;table-layout:fixed}.compact-table th,.compact-table td{padding:8px 10px}.compact-table td{line-height:1.3}.compact-table td strong{font-size:12px;color:#27303a;font-weight:700}.compact-table td small{font-size:10px;line-height:1.35;margin-top:3px}.compact-table td .badge{font-size:10px;padding:3px 7px}.compact-table td .table-alert{color:#ac5b36;font-weight:750}.compact-table td:nth-child(1),.compact-table td:nth-child(3){overflow-wrap:anywhere}.process-table th:nth-child(1){width:23%}.process-table th:nth-child(2){width:12%}.process-table th:nth-child(3){width:23%}.process-table th:nth-child(4){width:15%}.process-table th:nth-child(5){width:12%}.process-table th:nth-child(6){width:15%}.payment-table th:nth-child(1){width:23%}.payment-table th:nth-child(2){width:15%}.payment-table th:nth-child(3){width:23%}.payment-table th:nth-child(4){width:17%}.payment-table th:nth-child(5){width:10%}.payment-table th:nth-child(6){width:12%}
@media(max-width:760px){.compact-table{min-width:0}.compact-table thead{display:none}.compact-table tbody{display:grid;gap:9px}.compact-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;border:1px solid #e5e9ed;border-radius:10px}.compact-table td{border:0;padding:5px 6px;min-width:0}.compact-table td::before{content:attr(data-label);display:block;color:#929ba5;font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;margin-bottom:3px}.compact-table td:first-child,.compact-table td:nth-child(3){grid-column:1/-1}.compact-table td:first-child strong{font-size:14px}}

/* Catalogues and administrative tables */
.client-card,.resource-card{position:relative;border-color:var(--line);box-shadow:0 5px 16px #24324409;transition:border-color .16s,box-shadow .16s,transform .16s;overflow:hidden}
.client-card::before,.resource-card::before{content:'';position:absolute;inset:0 auto 0 0;width:3px;background:#8eacc5}
.client-card:hover,.resource-card:hover{border-color:#cbd8e3;box-shadow:0 9px 23px #24324413;transform:translateY(-2px)}.client-card>a,.resource-card>a{color:#24313d!important}.client-card p{color:#697785}.client-mark{background:#e8f0f6;color:#386186}
.user-list{width:100%}.user-list-head,.user-row{display:grid;grid-template-columns:minmax(90px,1fr) minmax(130px,1.55fr) 76px 54px;gap:11px;align-items:center}.user-list-head{color:#8995a0;text-transform:uppercase;letter-spacing:.06em;font-size:9px;font-weight:750;padding:4px 0 9px;border-bottom:1px solid #e7edf2}.user-row{padding:10px 0;border-bottom:1px solid #edf0f2;font-size:11px}.user-row:last-child{border-bottom:0}.user-row>strong,.user-row>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-row>span:not(.badge){color:#6f7b87}.user-row .badge{justify-self:start}.user-row .button{justify-self:end}
.hour-summary-card{box-shadow:0 5px 16px #2432440b;position:relative;overflow:hidden}.hour-summary-card::before{content:'';position:absolute;inset:0 auto 0 0;width:3px;background:#b4c2cd}.hour-summary-card.accent::before{background:#6396d1}.hour-summary-card.positive::before{background:#59b382}.hour-summary-card.negative::before{background:#d47d7d}
@media(max-width:700px){.user-list-head{display:none}.user-row{grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;padding:12px 0}.user-row>strong{grid-column:1}.user-row>span:not(.badge){grid-column:1;grid-row:2}.user-row .badge{grid-column:1;grid-row:3;margin-top:5px}.user-row .button{grid-column:2;grid-row:1/4;align-self:center;min-height:36px}.resource-card,.client-card{min-height:0}}

/* Fixed plot height so percentage-based bars have a real containing height. */
.cash-chart{height:263px;background:none}
.cash-month{height:100%}
.cash-bars{flex:0 0 205px;height:205px;min-height:205px;background:repeating-linear-gradient(to top,#e8edf2 0,#e8edf2 1px,transparent 1px,transparent 25%)}
@media(max-width:700px){.cash-chart{min-width:620px}}
.cash-hero .negative-text{color:#ffc1b7!important}
@media(max-width:850px){.sidebar{visibility:hidden}.nav-open .sidebar{visibility:visible}}
main#main{max-width:1880px;padding:28px 34px 72px}
.work-row .work-title small{font-size:11px;color:#65717d}
@media(max-width:850px){main#main{padding:24px 18px 62px}}
@media(max-width:600px){main#main{padding:20px 14px 65px}}
@media(max-width:700px){.responsive-table .badge{max-width:100%;white-space:normal}.responsive-table td{font-size:11px}.table-wrap{max-width:100%;overscroll-behavior-inline:contain}}
@media(max-width:480px){.process-alert{align-items:flex-start;flex-direction:column;gap:3px}.process-alert strong{font-size:14px}}
@media(max-width:480px){.process-queue-alert{align-items:flex-start;flex-direction:column;gap:5px}.process-queue-alert span{white-space:normal}}
.group.state-orange .work-list{border-left:2px solid #dbac5d}.group.state-blue .work-list{border-left:2px solid #76a4d7}.group.state-violet .work-list{border-left:2px solid #a99bd5}.group.state-green .work-list{border-left:2px solid #81c59f}.group.state-red .work-list{border-left:2px solid #d99090}
.menu-scrim{display:none}

/* Fichas financeiras: etapas reais, parcelas e passagem de trabalho. */
.process-facts{grid-template-columns:repeat(auto-fit,minmax(165px,1fr))}
.journey{grid-template-columns:repeat(6,minmax(0,1fr))}
.finance-hint{margin:0 0 12px;padding:10px 12px;border-left:3px solid #7cafd2;background:#f2f7fb;color:#506b80;border-radius:0 8px 8px 0;font-size:11px;line-height:1.5}
.finance-hint>p{margin:0}.finance-hint details{margin-top:6px}.finance-hint summary{cursor:pointer;font-weight:700}.finance-hint ul{margin:6px 0 0;padding-left:18px}.finance-hint li{margin:3px 0}.finance-hint a{text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}
.finance-records{display:grid;gap:7px}
.finance-record{display:grid;grid-template-columns:minmax(140px,1fr) auto auto auto;align-items:center;gap:9px;padding:10px 11px;border:1px solid #e7edf1;border-radius:9px;background:#fbfcfd;font-size:11px}
.finance-record.selected{border-color:#9abed7;background:#f2f8fc}
.finance-record>div:first-child{min-width:0}.finance-record strong{display:block;color:#27343e}.finance-record small{display:block;margin-top:2px;color:#71808d}.finance-record b{white-space:nowrap;color:#24313d}.finance-record .button{justify-self:end}
.workflow-banner{display:flex;align-items:center;gap:14px;padding:11px 15px;margin:0 0 15px;background:#eef5fb;border:1px solid #d3e3f0;border-radius:10px;color:#315c7e}.workflow-banner span{font-size:9px;letter-spacing:.1em;font-weight:800}.workflow-banner strong{font-size:12px}.workflow-banner.needs-payment{background:#fff6e8;border-color:#f1dcba;color:#875713}.workflow-banner.needs-proof{background:#eaf5f0;border-color:#c8e6d7;color:#23684d}
.work-row{grid-template-columns:minmax(220px,1fr) minmax(130px,210px) 94px 190px}.work-row .owner-button{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.35}
.work-client-filter{display:flex;align-items:center;flex:0 0 190px;min-width:190px;margin:0}.toolbar .work-client-filter select{width:100%;height:38px;max-width:none;padding:0 11px}
.form-divider{font-size:10px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:#71808c;border-top:1px solid #e7edf1;padding-top:15px;margin-top:5px}
@media(max-width:1180px){.journey{grid-template-columns:repeat(3,minmax(0,1fr))}.work-row{grid-template-columns:minmax(180px,1fr) minmax(120px,170px) 85px 187px}}
@media(max-width:850px){.work-row{grid-template-columns:minmax(0,1fr) minmax(105px,145px) 80px 187px}}
@media(max-width:700px){.finance-record{grid-template-columns:minmax(0,1fr) auto;gap:7px}.finance-record .button{grid-column:2}.finance-record .badge{justify-self:end}.finance-record b{grid-column:1}.journey{grid-template-columns:1fr}.work-client-filter{flex:1 1 100%}.work-client-filter select{max-width:none;width:100%}}
@media(max-width:600px){.work-row{grid-template-columns:minmax(0,1fr) auto}.work-row .owner-button{text-align:left}.workflow-banner{align-items:flex-start;flex-direction:column;gap:3px}}

@media(max-width:600px){.report-actions{flex-direction:column;align-items:stretch}.report-actions .button{width:100%;white-space:normal;text-align:center}}
.fact.invoice-empty{--fact-accent:#b8c3cc}
@media(max-width:700px){.journey{grid-template-columns:1fr;gap:0;overflow:visible}.journey li{display:grid;grid-template-columns:25px minmax(0,1fr) auto;align-items:center;gap:9px;min-height:42px;padding:4px 2px}.journey li:not(:last-child)::after{left:14px;top:30px;right:auto;width:1px;height:calc(100% - 22px)}.journey li>span:not(.journey-step),.journey strong{font-size:11px}.journey strong{text-align:right;white-space:nowrap}}

.admin-overview{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:16px;align-items:start}.admin-overview>.panel{margin-bottom:0}.admin-categories{margin-top:16px}.category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:22px}.category-grid .item-line{gap:8px;min-width:0;min-height:44px}.category-grid .item-line strong{min-width:0;overflow-wrap:anywhere}
.user-list{container-type:inline-size}
@container (max-width:420px){.user-list-head{display:none}.user-row{grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;padding:12px 0}.user-row>strong{grid-column:1}.user-row>span:not(.badge){grid-column:1;grid-row:2}.user-row .badge{grid-column:1;grid-row:3;margin-top:5px}.user-row .button{grid-column:2;grid-row:1/4;align-self:center;min-height:36px}}
@media(max-width:600px){body{min-width:0}.topbar>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar-right{flex-shrink:0}}
.category-grid .item-line{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-height:65px;padding:8px 0}.category-actions{display:flex;gap:5px;flex-wrap:wrap}.category-actions .button.small{font-size:10px;min-height:25px;padding:3px 7px}
@media(max-width:1100px){.category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:850px){.admin-overview{grid-template-columns:1fr}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.category-grid{grid-template-columns:1fr}.admin-categories{margin-top:0}}

/* Static heights satisfy the site CSP; values are rounded to 5% on the chart. */
.cash-bar.bar-h-0{height:0%}.cash-bar.bar-h-5{height:5%}.cash-bar.bar-h-10{height:10%}.cash-bar.bar-h-15{height:15%}.cash-bar.bar-h-20{height:20%}.cash-bar.bar-h-25{height:25%}.cash-bar.bar-h-30{height:30%}.cash-bar.bar-h-35{height:35%}.cash-bar.bar-h-40{height:40%}.cash-bar.bar-h-45{height:45%}.cash-bar.bar-h-50{height:50%}.cash-bar.bar-h-55{height:55%}.cash-bar.bar-h-60{height:60%}.cash-bar.bar-h-65{height:65%}.cash-bar.bar-h-70{height:70%}.cash-bar.bar-h-75{height:75%}.cash-bar.bar-h-80{height:80%}.cash-bar.bar-h-85{height:85%}.cash-bar.bar-h-90{height:90%}.cash-bar.bar-h-95{height:95%}.cash-bar.bar-h-100{height:100%}

.payment-quote-results{max-height:min(48vh,340px);overflow-y:auto;border:1px solid #dce2e8;border-radius:9px;padding:5px;background:#fff}.payment-quote-results:empty{display:none}.payment-table{min-width:780px}.payment-table th:nth-child(1){width:27%}.payment-table th:nth-child(2){width:18%}.payment-table th:nth-child(3){width:26%}.payment-table th:nth-child(4){width:15%}.payment-table th:nth-child(5){width:14%}
/* Horas do trabalho: resumo e histórico legível sem alongar o cartão principal. */
.hours-records .record-head,.hours-records .record-line{grid-template-columns:82px 105px minmax(130px,1fr) 55px minmax(120px,1.4fr) 112px}
.hours-records .record-line>*{min-width:0;overflow-wrap:anywhere}
.fact.hours-month{--fact-accent:#55a893;background:#edf9f5!important}
.work-facts{grid-template-columns:repeat(5,minmax(0,1fr))}
.hour-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}
.hour-summary span{display:flex;flex-direction:column;gap:6px;padding:17px 19px;background:#fff;border:1px solid #e7eaed;border-radius:13px}
.hour-summary small{color:#77828c;font-size:11px}.hour-summary strong{font-size:22px;letter-spacing:-.04em}
.hours-pagination{display:flex;align-items:center;justify-content:center;gap:15px;padding:15px;color:#64717d;font-size:12px}
@media(max-width:1180px){.work-facts{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.work-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.hours-records .record-head{display:none}.hours-records .record-line{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 12px}.hours-records .record-line>*{grid-column:auto}.hours-records .record-line [data-label="Subtarefa"],.hours-records .record-line [data-label="Descrição"],.hours-records .record-line .record-actions{grid-column:1/-1}.hour-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.hour-summary{grid-template-columns:1fr 1fr}.hour-summary span{padding:13px}.hour-summary strong{font-size:18px}}
/* Fluxo de dinheiro: barras por mês com linha do resultado parcial. */
.cash-hero{background:linear-gradient(115deg,#e9f7f1 0%,#f7fbf9 58%,#fff4e8 100%);color:#1c302c;border:1px solid #d9ebe2;box-shadow:0 10px 28px #2655450e}
.cash-hero::after{background:radial-gradient(circle,#48b99224,transparent 70%)}
.cash-hero small{color:#49806d}.cash-hero p{color:#52746a}.cash-hero-split{background:#ffffffa8;border-color:#cfe8dc}.cash-hero .negative-text{color:#b55f4f!important}
.cash-period>div span:first-child{color:#168b70}.cash-period>div span:last-child{color:#ba762f}
.cash-legend{flex-wrap:wrap;gap:10px 22px;margin-bottom:18px;font-size:12px;color:#52636a}
.cash-key{width:15px;height:10px;border-radius:3px}.cash-key.in,.cash-in{background:#24ae87}.cash-key.out,.cash-out{background:#ef9a52}
.cash-key.result{height:0;border-top:3px solid #252b32;border-radius:0}.cash-key.average{height:0;border-top:2px dashed #8c9ba1;border-radius:0}
.cash-chart{display:block;height:auto;min-width:780px;padding:0;border:0;background:none}
.cash-plot{height:240px;position:relative;overflow:hidden;background:repeating-linear-gradient(to top,#e8eeeb 0,#e8eeeb 1px,transparent 1px,transparent 25%);border-radius:11px 11px 0 0}
.cash-plot-bars{position:absolute;inset:0 0 auto;height:216px;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));align-items:stretch;gap:0;padding:0 3px}
.cash-plot.has-negative .cash-plot-bars{height:160px}
.cash-bar-column{display:flex;align-items:flex-end;justify-content:center;gap:5px;min-width:0;padding:0 4px}
.cash-bar{width:44%;max-width:40px;min-width:5px;box-shadow:inset 0 -1px #0000000c;border-radius:5px 5px 0 0}
.cash-plot-lines{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.cash-zero-line{stroke:#a5b1ad;stroke-width:1.5;vector-effect:non-scaling-stroke}.cash-average-line{stroke:#7e9690;stroke-width:1.5;stroke-dasharray:5 5;vector-effect:non-scaling-stroke}
.cash-result-line{fill:none;stroke:#252b32;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.cash-result-dot{fill:#252b32;stroke:#fff;stroke-width:2;vector-effect:non-scaling-stroke}
.cash-month-labels{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));border-top:1px solid #d8e2dd}
.cash-month-label{display:flex;flex-direction:column;align-items:center;gap:2px;padding:9px 1px 0;text-align:center;min-width:0}
.cash-month-label b{font-size:11px;font-weight:700;color:#53636b;text-transform:capitalize}.cash-month-label small{font-size:10px;white-space:nowrap;letter-spacing:-.035em}
.cash-insights{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin-top:20px;border-top:1px solid #e5ebe8;padding-top:16px}
.cash-insights span{display:flex;flex-direction:column;gap:4px;padding:0 14px;border-right:1px solid #e8eeea}.cash-insights span:first-child{padding-left:0}.cash-insights span:last-child{border-right:0}
.cash-insights small{font-size:10px;color:#7c8985}.cash-insights strong{font-size:13px;color:#26332f}
.finance-chart-note{font-size:11px;color:#74827d;margin:15px 0 0}
@media(max-width:900px){.cash-insights{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 0}.cash-insights span:nth-child(2){border:0}}
@media(max-width:600px){.cash-chart{min-width:760px}.cash-legend{gap:8px 14px}.cash-insights span{padding:0 8px}.cash-insights span:nth-child(odd){padding-left:0}}
/* O resumo de horas usa linhas compactas na coluna lateral do trabalho. */
.work-hour-list{display:grid;gap:0}
.work-hour-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;padding:7px 0;border-bottom:1px solid #e9ecef;min-width:0}
.work-hour-item:last-child{border-bottom:0;padding-bottom:0}
.work-hour-top{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px}
.work-hour-top time{color:#6e7c86;font-size:11px}.work-hour-top strong{font-size:13px;color:#23362e;white-space:nowrap}
.work-hour-meta{display:flex;align-items:center;gap:5px;flex-wrap:wrap;color:#536674;font-size:11px;min-width:0}
.work-hour-meta a{color:#225c88;text-decoration:underline;text-underline-offset:2px}
.work-hour-item p{grid-column:1;align-self:center;margin:1px 0;color:#33404b;font-size:12px;line-height:1.4;min-width:0;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.work-hour-item .record-actions{grid-column:2;display:flex;gap:5px;justify-content:flex-end;align-items:center;white-space:nowrap}
.work-hour-item .record-actions .button{padding:5px 7px;min-height:25px;font-size:10px}
@media(max-width:600px){.work-hour-item{grid-template-columns:minmax(0,1fr)}.work-hour-item p,.work-hour-item .record-actions{grid-column:1}.work-hour-item .record-actions{justify-content:flex-start}}
.production-records .record-line{min-height:38px;padding:5px 0;gap:7px}
.production-records .record-head{padding:5px 0 7px}
.production-records .record-line select{padding:4px}
.journey-edit{border:0;background:transparent;padding:0;color:#275d8d;font:inherit;font-weight:700;cursor:pointer;text-align:left}.journey-edit:hover{text-decoration:underline}.payment-status-list{display:flex;flex-wrap:wrap;gap:6px}.payment-status-list a{display:inline-flex;align-items:center;gap:4px;color:#465766;font-size:11px}.workflow-banner.needs-proof{background:#fff1f0;border-color:#efc9c5;color:#a43f37}.finance-record{display:flex;flex-wrap:wrap}.finance-record>div:first-child{flex:1 1 140px}.finance-record .button{margin-left:auto}
/* Payments: fixed, balanced columns keep project names and parcel states separate. */
.payment-list-panel{padding-top:8px}
.payment-table{width:100%;min-width:840px;table-layout:fixed}
.payment-table th:nth-child(1){width:24%}.payment-table th:nth-child(2){width:19%}.payment-table th:nth-child(3){width:11%}.payment-table th:nth-child(4){width:13%}.payment-table th:nth-child(5){width:33%}
.payment-table td{overflow:hidden}.payment-table td:nth-child(3){white-space:nowrap}
.payment-table .truncate-name{display:block;max-width:min(25ch,100%);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.payment-table .payment-name strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.payment-status-list{display:flex;flex-wrap:wrap;gap:5px;align-items:center}
.payment-status-list .payment-part{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:4px 8px;border-radius:7px;background:#f1f3f5;color:#53606c!important;font-size:10px;line-height:1.3;text-decoration:none;font-weight:700}
.payment-status-list .payment-part:hover{filter:brightness(.96);text-decoration:none}
.payment-status-list .payment-part.green{background:#e5f4ec;color:#19684b!important}.payment-status-list .payment-part.orange{background:#fff1dc;color:#85520f!important}.payment-status-list .payment-part.blue{background:#eaf2fd;color:#315e9b!important}.payment-status-list .payment-part.red{background:#ffebea;color:#a3312f!important}
.payment-part-percent{white-space:nowrap;font-variant-numeric:tabular-nums}.payment-part-label{white-space:nowrap}
.compact-table td .table-alert{display:inline-block;color:#a41c27;background:#ffebea;border:1px solid #f4c4c5;border-radius:6px;padding:3px 6px;font-weight:800}
.process-alert{background:#ffebea;border-color:#efb5b9;color:#a21d2b}
@media(max-width:700px){.payment-table{min-width:0}.payment-table td:nth-child(3){white-space:normal}.payment-table .truncate-name{max-width:min(25ch,100%)}.payment-table td:last-child{grid-column:1/-1}.payment-status-list .payment-part{max-width:100%}.payment-part-label{white-space:normal}}
.work-expand{position:relative;z-index:2;flex:none;display:grid;place-items:center;width:27px;height:27px;border:1px solid #dce2e7;border-radius:8px;background:#fff;color:#40556b;font-size:18px;line-height:1}.work-expand:hover{background:#edf3f8}.work-children{background:#f8fafb;border-bottom:1px solid #e9edef;padding:2px 18px 6px 55px}.work-child{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(80px,120px) 85px auto;gap:10px;align-items:center;padding:8px 4px;border-bottom:1px solid #e9edef;color:#697783;font-size:11px}.work-child:last-child{border-bottom:0}.work-child a{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#274f77}.work-child .badge{width:max-content}.work-child .button{justify-self:end}
.payment-part-wrap{display:inline-flex;align-items:center;gap:3px}.payment-part-edit{border:0;background:transparent;color:#365f82;font-size:10px;font-weight:700;padding:4px;cursor:pointer}.payment-part-edit:hover{text-decoration:underline}
.journey{grid-template-columns:repeat(6,minmax(0,1fr))}.journey-action{cursor:pointer}.journey-action:hover{box-shadow:0 0 0 3px #cde2f5}.journey-edit span{font-size:14px;font-weight:800}.journey-help{margin:12px 0 0;color:#75828d;font-size:11px}
@media(max-width:700px){.work-children{padding-left:26px}.work-child{grid-template-columns:minmax(0,1fr) auto;gap:5px 9px}.work-child>a{grid-column:1/-1}.work-child .button{justify-self:start}.journey{grid-template-columns:1fr}}
.work-quote{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #edf0f2}.work-quote:last-child{border-bottom:0}.work-quote-title{min-width:0}.work-quote-title a{color:#295c89}.work-quote-title strong{display:block;overflow-wrap:anywhere}.work-quote-title small,.work-quote-states small{display:block;color:#84909a;font-size:10px;margin-bottom:3px}.work-quote-states{display:flex;flex-wrap:wrap;gap:8px}.work-quote-states>span{min-width:92px}.work-quote-states .badge{white-space:normal}
@media(max-width:600px){.work-quote{align-items:flex-start;flex-direction:column;gap:7px}}
/* Work list: project identity, client and actions stay in stable columns. */
.work-row{grid-template-columns:minmax(200px,2fr) minmax(110px,1fr) minmax(90px,1fr) 90px auto;gap:12px}
.work-main{min-width:0}.work-title{min-width:0}.work-title strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.work-code{color:#74818c;font-size:11px;letter-spacing:.01em}.work-title-sep{color:#a8b0b8}.work-client{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#53616d;font-size:11px}.work-expand{display:inline-flex;align-items:center;gap:5px;align-self:flex-start;width:auto;height:auto;min-height:24px;margin-top:2px;padding:1px 5px 1px 0;border:0;background:transparent;color:#687f91;font-size:10px;font-weight:700}.work-expand span{font-size:15px;line-height:1}.work-expand:hover{background:transparent;color:#275d8d;text-decoration:underline}.action-icon{display:inline-flex;align-items:center;justify-content:center;min-width:34px;padding:6px}.action-icon svg{width:16px;height:16px;flex:none}.button.small.action-icon{min-width:29px;min-height:29px;padding:5px}.quick{flex-wrap:nowrap}
@media(max-width:850px){.work-row{grid-template-columns:minmax(0,1fr) auto;gap:5px 10px}.work-main{grid-column:1/-1}.work-client{grid-column:1;grid-row:2}.work-row .owner-button{display:block;grid-column:1;grid-row:3;white-space:normal;overflow:visible;padding:1px 0}.work-row .due-button{grid-column:1;grid-row:4;justify-self:start}.work-row .quick{grid-column:2;grid-row:2/5;align-self:center}.work-title strong{white-space:normal;overflow-wrap:anywhere}.work-client{white-space:normal;overflow-wrap:anywhere}.work-children{padding-left:24px}}
@media(max-width:430px){.work-row .quick{grid-column:1/-1;grid-row:auto;justify-self:start;flex-wrap:wrap}.work-row .due-button{grid-row:auto}.work-row .owner-button{grid-row:auto}.work-row .work-client{grid-row:auto}}
@media(max-width:700px){.process-table td:nth-child(3),.payment-table td:nth-child(3){grid-column:auto}.process-table td:last-child,.payment-table td:last-child{grid-column:1/-1}.payment-table td:nth-child(4){grid-column:1/-1}.page-heading .actions .action-icon{flex:0 0 38px}}
/* Keep long production grids inside the page on laptop screens. */
@media(max-width:1250px){.two-col{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.panel-head{flex-wrap:wrap;gap:7px}.panel-head h2{min-width:0}.panel-head .button{flex:none}}
@media(max-width:340px){body{min-width:0}}
/* Keep form actions visible while long forms scroll on small screens. */
dialog[open]:has(>form){max-height:calc(100dvh - 24px);overflow:hidden}
dialog[open]>form{display:flex;flex-direction:column;max-height:calc(100dvh - 24px);min-height:0}
dialog[open]>form>.dialog-head,dialog[open]>form>.dialog-actions{flex:0 0 auto;background:#fff}
dialog[open]>form>.dialog-body{min-height:0;overflow-y:auto;overscroll-behavior:contain}
.dialog-error{margin:0;padding:10px 12px;border:1px solid #e9b7b4;border-radius:8px;background:#fff1f0;color:#9e3030;font-size:12px;line-height:1.4}

@media(min-width:1151px){.cash-metric-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

.work-expand .work-chevron{display:block;width:12px;height:12px;flex:none}

.work-child .task-status{max-width:100%;min-width:0}
/* Seta do estado afastada da borda, sem depender do seletor nativo do navegador. */
.work-child .task-status{appearance:none;-webkit-appearance:none;padding-right:32px;background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 16px) 50%,calc(100% - 12px) 50%;background-size:4px 4px;background-repeat:no-repeat}

.work-parent-state{display:block;color:#8b6470;font-size:10px;margin-top:3px}

.work-facts{grid-template-columns:repeat(4,minmax(0,1fr))}
.work-facts .hours strong{white-space:normal}.hours-divider,.hours-month-label{font-size:.78em;color:#72808c;font-weight:600}
@media(max-width:850px){.work-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Horas são uma métrica neutra, não um estado. */
.work-facts .fact.hours{--fact-accent:#252a32;background:#fff!important}
.page-heading .actions .button{min-height:39px;display:inline-flex;align-items:center;justify-content:center}
/* Lista compacta: o prazo acompanha os responsáveis em ecrãs pequenos. */
.work-meta{display:contents}.owners-short{display:none}
@media(max-width:850px){
 .work-row{grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;padding:9px 12px}
 .work-main{grid-column:1/-1;grid-row:1}
 .work-row .work-client{grid-column:1;grid-row:2}
 .work-row .work-meta{display:flex;grid-column:1;grid-row:3;align-items:center;gap:8px;min-width:0}
 .work-row .owner-button,.work-row .due-button{display:block;grid-column:auto;grid-row:auto;margin:0;padding:0;min-width:0;white-space:nowrap}
 .work-row .owner-button{overflow:hidden;text-overflow:ellipsis}
 .work-row .due-button{flex:none}
 .work-row .quick{grid-column:2;grid-row:2/4;align-self:center;flex-wrap:nowrap;margin:0}
 .owners-full{display:none}.owners-short{display:inline}
}
@media(max-width:350px){.work-row .quick{grid-column:1/-1;grid-row:4;justify-self:start;margin-top:3px}.work-row .work-meta{grid-column:1/-1}}
@media(max-width:600px){
 .work-facts .fact{min-height:66px;padding:9px 10px}
 .work-facts .fact strong{margin-top:6px}
 .work-facts{gap:7px}
 .two-col .panel{padding:14px;margin-bottom:10px}
 .two-col .panel-head{margin-bottom:9px}
 .two-col .row{padding-top:7px;padding-bottom:7px}
 .two-col .empty{padding-top:12px;padding-bottom:12px}
}
@media(max-width:430px){.page-heading .actions{gap:5px;flex-wrap:nowrap}.page-heading .actions .button:not(.action-icon){flex:1 1 0;min-width:0;padding:7px 5px;font-size:11px;white-space:nowrap}.page-heading .actions .action-icon{flex:0 0 35px;min-width:35px;padding:6px}}
.client-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.client-info-grid>div{min-width:0}.client-record{display:grid;align-items:center;gap:12px;padding:9px 0;border-bottom:1px solid #edf0f2;font-size:12px}.client-record:last-child{border-bottom:0}.client-work{grid-template-columns:minmax(0,2fr) minmax(90px,1fr) minmax(95px,1fr) 90px}.client-quote{grid-template-columns:minmax(0,2fr) minmax(90px,1fr) minmax(110px,1fr)}.client-record>span{min-width:0;overflow-wrap:anywhere}.client-record a{font-weight:700;color:#285888}.client-record small{display:block;color:#87929c;font-size:10px}.client-contact{display:grid;gap:3px;padding:9px 0;border-bottom:1px solid #edf0f2;font-size:12px}.client-contact span{color:#6f7b87}.client-note{font-size:12px;white-space:pre-wrap}
@media(max-width:850px){.client-info-grid{grid-template-columns:1fr}.client-work,.client-quote{grid-template-columns:minmax(0,1fr) auto;gap:5px 9px}.client-record>span:first-child{grid-column:1/-1}.client-record>.badge{justify-self:start}.client-record>span:last-child{justify-self:end}}
/* No ecrã estreito, preservar a mesma prioridade de leitura da ficha. */
@media(max-width:1250px){
 .work-detail-layout{gap:0}
 .work-detail-layout>.column{display:contents}
 .work-detail-layout .work-summary{order:1}
 .work-detail-layout .work-folders{order:2}
 .work-detail-layout .work-subtasks{order:3}
 .work-detail-layout .work-hours{order:4}
 .work-detail-layout .work-production{order:5}
 .work-detail-layout .work-notes-production{order:6}
 .work-detail-layout .work-notes-creative{order:7}
 .work-detail-layout .work-resources{order:8}
 .work-detail-layout [data-linked-events]{order:9}
 .work-detail-layout .work-processes{order:10}
}
.task-inline-edit{font-size:11px;font-weight:600;text-align:left;overflow-wrap:anywhere}
.panel-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;min-width:0}
@media(min-width:851px){.task-records .record-head,.task-records .record-line{grid-template-columns:minmax(115px,2fr) minmax(95px,1fr) minmax(80px,1fr) 76px 50px 35px}}
.task-hours{font-variant-numeric:tabular-nums;color:#687784;white-space:nowrap}
/* Títulos e dados longos nunca devem empurrar as ações para fora do ecrã. */
.page-heading>div:first-child{min-width:0}
.page-heading h1,.page-heading p{overflow-wrap:anywhere}
.client-card strong,.resource-card strong{overflow-wrap:anywhere}
.client-contact>*{min-width:0;overflow-wrap:anywhere}
.client-access-row{display:grid;gap:6px;padding:12px 0;border-bottom:1px solid #edf0f2;font-size:12px}.client-access-row:last-child{border-bottom:0}.client-access-head{display:flex;align-items:center;gap:9px;min-width:0}.client-access-head strong{font-size:13px;overflow-wrap:anywhere}.client-access-actions{display:flex;gap:6px;margin-left:auto}.client-access-secret{display:flex;gap:7px;align-items:center}.client-access-secret input{min-width:0;max-width:240px;flex:1;border:1px solid #dfe4e8;border-radius:7px;padding:7px;background:#f8fafb}.client-access-note{white-space:pre-wrap;color:#6f7b87}.client-access-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.client-access-form .field:has(textarea){grid-column:1/-1}@media(max-width:600px){.client-access-form{grid-template-columns:1fr}.client-access-actions{flex-wrap:wrap;justify-content:flex-end}}
.client-note{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #edf0f2;overflow-wrap:anywhere}
.client-note:last-child{border-bottom:0}
.client-note>span:first-child{min-width:0;flex:1}
.client-note .category-actions,.client-contact .category-actions{flex:0 0 auto;align-self:center}
.badge.gray{color:#59636e}
.work-hour-meta>span{min-width:0;overflow-wrap:anywhere}
.finance-record{min-width:0}.finance-record>div:first-child{min-width:0;overflow-wrap:anywhere}
@media(min-width:851px){.work-row .owners-full{display:block;overflow-wrap:anywhere}}
@media(max-width:850px){
 .task-records .record-line{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:6px 10px}
 .task-records .record-line>span[data-label="Subtarefa"]{grid-column:1/3;grid-row:1}
 .task-records .record-line>span[data-label="Estado"]{grid-column:1;grid-row:2}
 .task-records .record-line>span[data-label="Responsáveis"]{grid-column:2/4;grid-row:2}
 .task-records .record-line>span[data-label="Prazo"]{grid-column:1;grid-row:3}
 .task-records .record-line>span[data-label="Horas"],.task-records .record-line>span[data-label="As minhas horas"]{grid-column:2/4;grid-row:3}
 .task-records .record-line>.record-actions{grid-column:3;grid-row:1;justify-content:flex-end}
}
@media(max-width:700px){.detail-row strong{min-width:0;max-width:69%}.detail-row .status-button{max-width:100%}.detail-row .badge{max-width:100%;white-space:normal;line-height:1.3}.detail-row .badge i{flex:0 0 6px}}
/* As listas financeiras precisam de espaço para os estados e ações também em tablets e portáteis estreitos. */
@media (min-width:701px) and (max-width:1300px){
  .process-table,.payment-table{min-width:0;display:block}
  .process-table thead,.payment-table thead{display:none}
  .process-table tbody,.payment-table tbody{display:grid;gap:10px}
  .process-table tr,.payment-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--line);border-radius:11px;background:#fff;padding:10px 12px;box-shadow:0 2px 9px #24324408}
  .process-table td,.payment-table td{display:block;border:0;padding:5px 4px;min-width:0;overflow-wrap:anywhere}
  .process-table td:first-child,.payment-table td:first-child{grid-column:1/-1;border-bottom:1px solid #edf0f2;padding-bottom:9px;margin-bottom:3px}
  .process-table td::before,.payment-table td::before{content:attr(data-label);display:block;color:#84909c;font-size:9px;font-weight:750;text-transform:uppercase;letter-spacing:.06em;margin-bottom:2px}
  .process-table td:last-child,.payment-table td:last-child{grid-column:1/-1}
  .process-table td:nth-child(3),.payment-table td:nth-child(3){grid-column:auto}
  .payment-table td:nth-child(3){white-space:normal}
  .payment-part-label{white-space:normal}
}
.cash-scroll-hint{display:none}
@media(max-width:700px){.cash-scroll-hint{display:block;color:#667882;font-size:11px;margin:9px 0}}
/* Lista mobile: uma linha por nome; tocar na linha abre a ficha com o título completo. */
@media(max-width:850px){.work-title strong{display:block;min-width:0;max-width:100%;white-space:nowrap;overflow-wrap:normal;overflow:hidden;text-overflow:ellipsis}}

.save-status{position:fixed;z-index:30;top:14px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:9px;padding:10px 15px;border-radius:10px;background:#20252c;color:#fff;font-size:12px;font-weight:700;box-shadow:0 5px 18px #20252c38;white-space:nowrap}.save-status[hidden]{display:none}.save-spinner{width:15px;height:15px;border:2px solid #ffffff66;border-top-color:#fff;border-radius:50%;animation:save-spin .8s linear infinite}@keyframes save-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.save-spinner{animation:none;border-color:#fff}}

.sync-label{font-size:11px;color:#7a828c;white-space:nowrap;letter-spacing:0}.sync-label.sync-stale{color:#a06315}.sync-button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid #dce1e5;border-radius:9px;background:#fff;color:#3d4854;font-size:20px;line-height:1}.sync-button:disabled{opacity:.7}.sync-button.syncing{animation:sync-spin 1.2s linear infinite}@keyframes sync-spin{to{transform:rotate(360deg)}}@media(max-width:600px){.topbar-right .sync-label{font-size:10px}.sync-button{width:30px;height:30px}}@media(prefers-reduced-motion:reduce){.sync-button.syncing{animation:none}}
.work-family-due{display:block;color:#788694;font-size:10px;line-height:1.35;margin-top:2px}.work-family-due.late{color:#b64747}

/* Financial cards retain their labels and actions while using less vertical space on phones. */
@media(max-width:700px){
  .process-table tbody,.payment-table tbody{gap:7px}
  .process-table tr,.payment-table tr{padding:7px 10px}
  .process-table td,.payment-table td{padding:3px 4px}
  .process-table td:first-child,.payment-table td:first-child{padding-bottom:6px;margin-bottom:1px}
}

/* Preserve the quick actions when the desktop sidebar leaves a narrow work list. */
@media(min-width:851px) and (max-width:1020px){
 .work-row{grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;padding:9px 12px}
 .work-main{grid-column:1/-1;grid-row:1}
 .work-client{grid-column:1;grid-row:2;white-space:normal;overflow-wrap:anywhere}
 .work-row .work-meta{display:flex;grid-column:1;grid-row:3;align-items:center;gap:8px;min-width:0}
 .work-row .owner-button{display:block;min-width:0;overflow-wrap:anywhere;white-space:normal;text-align:left}
 .work-row .due-button{flex:none}
 .work-row .quick{grid-column:2;grid-row:2/4;align-self:center;margin:0}
}

/* Adapt subtasks to their card width, including when the desktop has two columns. */
.task-records{container-type:inline-size}
@container (max-width:535px){
 .task-records .record-head{display:none}
 .task-records .record-line{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:6px 10px;padding:13px 0}
 .task-records .record-line [data-label]::before{content:attr(data-label);display:block;font-size:9px;color:#949da7;text-transform:uppercase;font-weight:750;margin-bottom:3px}
 .task-records .record-line>span[data-label="Subtarefa"]{grid-column:1/3;grid-row:1}
 .task-records .record-line>span[data-label="Estado"]{grid-column:1;grid-row:2}
 .task-records .record-line>span[data-label="Responsáveis"]{grid-column:2/4;grid-row:2}
 .task-records .record-line>span[data-label="Prazo"]{grid-column:1;grid-row:3}
 .task-records .record-line>span[data-label="Horas"],.task-records .record-line>span[data-label="As minhas horas"]{grid-column:2/4;grid-row:3}
 .task-records .record-line>.record-actions{grid-column:3;grid-row:1;justify-content:flex-end}
}

/* Report rows adapt to the width of their panel, including a two-column layout. */
.hours-reports-panel{container-type:inline-size}
@container (max-width:500px){
 .hours-reports-panel .report-card-row{grid-template-columns:minmax(0,1fr) auto;gap:7px 10px}
 .hours-reports-panel .report-card-file{grid-column:1;grid-row:2}
 .hours-reports-panel .report-card-actions{grid-column:2;grid-row:2}
}

/* Keep every bank column visible when a two-column page narrows the card. */
.hour-bank-table{container-type:inline-size}
@container (max-width:450px){
 .hour-bank-table .responsive-table{min-width:0;display:block}
 .hour-bank-table .responsive-table thead{display:none}
 .hour-bank-table .responsive-table tbody{display:grid;gap:10px}
 .hour-bank-table .responsive-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--line);border-radius:11px;background:#fff;padding:10px 12px}
 .hour-bank-table .responsive-table td{display:block;border:0;padding:5px 4px;min-width:0;white-space:normal;overflow-wrap:anywhere}
 .hour-bank-table .responsive-table td:first-child{grid-column:1/-1;border-bottom:1px solid #edf0f2;padding-bottom:9px;margin-bottom:3px}
 .hour-bank-table .responsive-table td::before{content:attr(data-label);display:block;color:#84909c;font-size:9px;font-weight:750;text-transform:uppercase;letter-spacing:.06em;margin-bottom:2px}
}

.process-meta{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;min-width:0}.compact-table .process-meta small{margin-top:3px}.process-meta a{font-size:10px;font-weight:700;white-space:nowrap}
/* Proposta em ensaio: aplicar apenas após revisão e integração com o CSS publicado. */
@media (max-width: 850px) {
  .work-row .quick .button { min-width: 36px; min-height: 36px; }
  .work-row .quick { gap: 4px; }
}
.process-note-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.process-note-foot .category-actions{display:flex;gap:6px}.process-folder-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.process-folder-grid h3{font-size:12px;margin:0 0 7px;color:#4b5966}.process-folder-grid .detail-row{gap:10px}@media(max-width:600px){.process-folder-grid{grid-template-columns:1fr;gap:14px}}
.quote-alternative{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #edf0f2}.quote-alternative:last-of-type{border-bottom:0}.quote-alternative>div:first-child{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}.quote-alternative strong{font-size:12px;overflow-wrap:anywhere}.quote-alternative small{color:#71808d;font-size:10px}.quote-alternative-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.quote-alternative-actions a{font-size:11px;white-space:nowrap}.quote-version-help{font-size:11px;line-height:1.45;margin:0 0 8px}@media(max-width:600px){.quote-alternative{align-items:flex-start;flex-direction:column}.quote-alternative-actions{justify-content:flex-start}}

/* Parcelas de fornecedor: documentos e percurso visíveis sem abrir a edição. */
.payment-facts{grid-template-columns:repeat(3,minmax(0,1fr))}
.payment-document{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px;border:1px solid #e0e6e8;border-radius:11px;background:#fbfcfc;min-width:0}
.payment-document+.payment-document{margin-top:9px}
.payment-document.available:first-child{border-color:#bfdfd3;background:#f2faf6}
.payment-document>div{min-width:0}.payment-document small,.payment-document strong{display:block}.payment-document small{color:#78838c;font-size:10px}.payment-document strong{font-size:12px;overflow-wrap:anywhere}
.payment-document a{white-space:nowrap;font-size:12px;font-weight:750}
.payment-document-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.payment-installment-list{display:grid;gap:8px}
.payment-installment{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px 14px;padding:12px;border:1px solid #e3e8eb;border-radius:10px;background:#fff}
.payment-installment.selected{border-color:#a9c6d8;background:#f5f9fc}
.payment-installment-main{display:flex;align-items:center;gap:9px;min-width:0;font-size:12px}.payment-installment-main strong{font-size:14px;color:#27333f;white-space:nowrap}.payment-installment-main span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.payment-installment-meta,.payment-installment-links{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.payment-installment-meta b{font-size:12px;white-space:nowrap}.payment-installment-links{grid-column:1/-1;justify-content:flex-end;border-top:1px solid #edf0f2;padding-top:7px}.payment-installment-links a{font-size:11px;font-weight:700}
.payment-detail-layout{display:grid;gap:14px}.payment-installment-details{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 16px;padding:8px 0}.payment-installment-date{display:flex;flex-direction:column;gap:3px}.payment-installment-date small,.payment-installment-notes small{color:#7d8993;font-size:11px}.payment-installment-date strong{font-size:12px;font-weight:650}.payment-installment-notes{grid-column:1/-1;min-width:0}.payment-installment-notes p{margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.5}
.payment-note{white-space:pre-wrap;overflow-wrap:anywhere}.payment-part-document{font-size:10px;font-weight:750;color:#2b568f;white-space:nowrap}
dialog:has(.payment-form-grid){width:min(94vw,760px)}
.payment-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.payment-form-section{display:flex;flex-direction:column;gap:10px;padding:16px;border:1px solid #e7eaed;border-radius:11px;min-width:0}
.payment-form-section h3{font-size:12px;margin:0 0 2px;color:#303b46}.payment-form-section .field{min-width:0}.payment-form-section textarea{min-height:84px}
.payment-form-documents input[type=file]{max-width:100%;font-size:12px}.payment-form-documents a{font-size:12px;font-weight:700}
.field-help{font-size:11px;color:#77828c;margin:0}
.billing-alert{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 16px;margin:0 0 15px;border:1px solid #efd8a9;border-left:4px solid #d99536;border-radius:10px;background:#fff8ea;color:#473921}
.billing-alert>div{display:flex;flex-direction:column;gap:4px;min-width:0}.billing-alert small{font-size:10px;font-weight:800;letter-spacing:.045em;color:#a36c20;text-transform:uppercase}.billing-alert strong{font-size:13px;font-weight:700;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}.billing-alert .button{flex-shrink:0}
@media(max-width:600px){.billing-alert{align-items:flex-start;flex-direction:column}}
@media(max-width:650px){.payment-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.payment-form-grid{grid-template-columns:1fr}.payment-document{align-items:flex-start;flex-wrap:wrap}.payment-installment{grid-template-columns:1fr}.payment-installment-meta{justify-content:space-between}}
@media(max-width:650px){.payment-installment-details{grid-template-columns:repeat(2,minmax(0,1fr))}}
.recovery-dialog{box-sizing:border-box;max-width:calc(100% - 32px);width:560px;border:1px solid #dce2e8;border-radius:14px;padding:24px;color:#222a34;box-shadow:0 18px 70px #17202d40}
.recovery-dialog::backdrop{background:#17202d88}
.recovery-dialog h2{margin:0 0 12px;font-size:20px}
.recovery-dialog p,.recovery-dialog li{font-size:14px;line-height:1.5}
.recovery-dialog ul{padding-left:20px;overflow-wrap:anywhere}
.recovery-dialog form>div{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:20px}
.recovery-dialog button{min-height:40px;padding:0 14px;border:1px solid #dce2e8;border-radius:8px;background:#fff;color:#222a34;cursor:pointer}
.recovery-dialog button.primary{background:#1e252d;border-color:#1e252d;color:#fff}
.legacy-upload-history{padding:14px 16px;border:1px solid #efce93;border-radius:10px;background:#fff8e9;color:#6f501d;font-size:13px;overflow-wrap:anywhere}
.legacy-upload-history summary{cursor:pointer;font-weight:700}
.legacy-upload-history p,.legacy-upload-history ul{margin:10px 0 0;line-height:1.5}
.legacy-upload-history ul{padding-left:18px}
