/* CRM IC: readable, consistent surfaces across the commercial workspace. */
:root{--navy:#132c4d;--blue:#185fc0;--ink:#20334d;--muted:#586b82;--line:#dde5ef;--bg:#f3f6fb;--radius:18px;font-size:15px;line-height:1.5;--shadow:0 4px 24px #193b6610}
body{background:radial-gradient(ellipse at 95% 0,#eaf1fc 0,transparent 45%),var(--bg)}
h1{font-size:clamp(26px,2.5vw,34px);line-height:1.25;letter-spacing:-1px;overflow-wrap:anywhere}
h2{font-size:22px;line-height:1.35;letter-spacing:-.55px}h3{font-size:17px;line-height:1.45}
small,.field-help,.footerinfo,.login-footer{font-size:14px;line-height:1.5}
button,a,input,select,textarea,summary{ -webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #185fc0;outline-offset:4px}
.sidebar button:focus-visible{outline-color:#fff}
.shell{grid-template-columns:252px minmax(0,1fr)}
.sidebar{width:252px;padding:30px 20px 20px;background:linear-gradient(155deg,#173c65,#132c4d 65%);overflow-y:auto}
.brand{gap:12px;font-size:27px}.brand img{width:44px;height:44px;box-shadow:0 5px 18px #0002}
.brand-sub{font-size:12px;color:#b8c9dd;letter-spacing:1.5px;margin:12px 0 36px 3px}
.nav{gap:8px}.nav button{min-height:48px;padding:12px 14px;font-size:15px;font-weight:500;color:#c8d7e9;border:1px solid transparent;transition:background .15s,border-color .15s}
.nav button:hover{background:#ffffff12}.nav button.active{background:#ffffff14;border-color:#ffffff1c;box-shadow:inset 3px 0 var(--gold);color:white;font-weight:700}
.nav svg{width:21px;height:21px}.nav .count{font-size:12px;background:#47698b;padding:2px 7px}
.sidebar-foot{padding-top:28px}.profile{padding:18px 2px;border-color:#ffffff26}.profile strong{font-size:14px!important}.profile small{font-size:13px;color:#b8c9dd}.avatar{width:40px;height:40px;background:#e7eff9;font-size:14px}
.sidebar-foot button{font-size:14px;min-height:44px;color:#c8d7e9}
.topbar{height:76px;background:#ffffffd9;padding:0 36px}.breadcrumb{font-size:14px}.date{font-size:14px}.main{padding:36px 36px 64px;max-width:1580px}
.pagehead{align-items:center;margin-bottom:28px}.pagehead>div:first-child{min-width:0}.eyebrow{font-size:12px;letter-spacing:1.5px;margin-bottom:10px;color:#185fc0}.subtitle{font-size:16px;line-height:1.6;margin-top:10px;max-width:70ch}
.btn{min-height:44px;padding:11px 17px;border-radius:11px;font-size:14px;font-weight:700;box-shadow:0 3px 8px #185fc014;transition:background .15s,box-shadow .15s}
.btn:hover{background:#124d9d;box-shadow:0 4px 12px #185fc024}.btn.secondary{background:white;color:var(--ink);border-color:#c6d2e2;box-shadow:none}.btn.secondary:hover{background:#edf3fb;border-color:#93a9c5}.btn.ghost{box-shadow:none;padding:10px 12px}.btn.ghost:hover{background:#e8f0fb}.btn.danger:hover{background:#ffe1e6}.btn svg{width:18px;height:18px}
.actions{gap:10px}.card,.tablewrap,.filters,.stat,.admin-menu-card{box-shadow:var(--shadow)}
.card{padding:26px}.cardhead{margin-bottom:20px}.cardhead h2{font-size:20px}.card+.card{margin-top:24px}
.grid2>.card{margin:0}.stats{gap:18px;margin-bottom:28px;align-items:stretch}.stat{padding:24px;border-radius:18px;min-width:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start}.stat .stat-icon{width:42px;height:42px;flex:none;border-radius:13px;background:#eaf2ff;margin-top:0;margin-bottom:16px}.stat strong{font-size:34px;line-height:1.2;font-variant-numeric:tabular-nums}.stat span{font-size:14px;line-height:1.5;margin-top:8px}.stat.warn .stat-icon{color:#936113}
.filters{padding:20px;border-radius:16px;gap:16px;align-items:end}.filters.compact{grid-template-columns:minmax(240px,1fr) auto}.filters label,.field label{font-size:14px;font-weight:600;color:#465a73;margin-bottom:8px}
.field input,.field select,.field textarea,.filters input,.filters select{border-color:#7b8fa9;border-radius:10px;padding:11px 13px;min-height:46px;font-size:16px;line-height:1.45;box-shadow:0 1px 2px #193b6605}
input:focus,select:focus,textarea:focus{outline:3px solid #d5e5fb;outline-offset:0;border-color:var(--blue)}input[readonly]{background:#f3f6fb;color:#586b82}.field textarea{min-height:120px}.formgrid{gap:20px}.section-title{font-size:15px;padding-top:20px;margin-top:4px}.check{font-size:15px;min-height:44px}.check input,.favorite-label input{width:20px;height:20px;accent-color:var(--blue)}
.tablewrap{border-radius:16px;max-width:100%}table{font-size:15px;line-height:1.5}th{font-size:12px;letter-spacing:.6px;background:#f8fafd;color:#51637b;padding:17px 20px}td{padding:18px 20px}.tablewrap tbody tr:hover{background:#f6f9ff}.name{font-size:15px;line-height:1.5;margin-bottom:5px}.linkbtn:hover{text-decoration:underline;text-underline-offset:3px}.badge{font-size:13px;padding:5px 10px;border-radius:8px;line-height:1.4}.empty{padding:40px 24px;font-size:16px}.empty svg{width:36px;height:36px;color:#627994}
.contactcards{grid-template-columns:repeat(auto-fit,minmax(min(100%,265px),1fr));gap:18px}.contact{padding:22px;border-radius:15px;background:linear-gradient(180deg,#fff,#fbfcff);display:flex;flex-direction:column;gap:3px}.contact p{font-size:15px;line-height:1.6;margin:5px 0}.contact .favorite-label{font-size:14px;min-height:32px;color:#7b5b12;gap:8px}.contact .actions{margin-top:auto;padding-top:12px}.detailgrid{font-size:15px;gap:22px}.detailgrid>div{min-width:0;overflow-wrap:anywhere}.detailgrid small{margin-bottom:7px}
.tabs{padding:6px;background:#e8eef7;border:0;border-radius:13px;gap:4px;flex-wrap:wrap;overflow:visible;margin:24px 0}.tabs button{font-size:14px;font-weight:600;min-height:44px;padding:10px 15px;border-radius:9px;color:#50627b;white-space:normal}.tabs button.active{background:white;color:#185fc0;box-shadow:0 2px 7px #142d5212}.tabs button:hover{background:#ffffff85}
.timeline-item p{font-size:15px;line-height:1.65}.timeline-item .meta{font-size:14px}.timeline{padding-left:26px}.taskrow p,.taskdate,.bar-row,.bar-row button{font-size:14px}.bar-row{grid-template-columns:minmax(130px,180px) minmax(0,1fr) 35px}.taskrow .taskinfo{min-width:0}
.intro{padding:28px 30px;border-radius:20px;background:linear-gradient(115deg,#e8f1ff,#fff);border-color:#d2e1f7}.intro h2{font-size:28px}.intro p{font-size:16px;max-width:70ch}.note{font-size:14px;line-height:1.65;padding:16px 18px;border-radius:12px}.note.warn{color:#795615}.error{font-size:15px;line-height:1.5;border:1px solid #e7adb6;padding:15px}.file-item{font-size:14px;padding:12px 14px}.uploadbox{border-color:#748ca9}
.admin-menu{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:20px}.admin-menu-card{position:relative;padding:26px;min-height:196px;border-radius:20px;gap:14px;transition:background .15s,border-color .15s,box-shadow .15s}.admin-menu-card svg{box-sizing:content-box;width:24px;height:24px;padding:13px;background:#eaf2ff;border-radius:14px}.admin-menu-card strong{font-family:Manrope,system-ui,sans-serif;font-size:18px;line-height:1.4}.admin-menu-card span{font-size:15px;color:var(--muted);max-width:32ch}.admin-menu-card:hover{background:#fafdff;border-color:#8fb0df;box-shadow:0 8px 28px #193b6618}.admin-section-head{gap:18px}
.team-summary{gap:16px;grid-template-columns:repeat(3,minmax(0,1fr))}.team-summary .card{margin:0;padding:22px;min-height:138px;box-shadow:var(--shadow);border-top:3px solid #d6e6fc}.team-summary strong{font:800 32px Manrope;line-height:1.2;color:#193b66}.team-summary span{font-size:15px;color:var(--muted)}
.mun-panel{padding:26px}.mun-heading h2{font-size:24px}.mun-heading .subtitle{font-size:15px}.mun-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:18px}.mun-stat{padding:24px;border-radius:17px;border-top:3px solid #c8defc;box-shadow:0 3px 18px #193b6608}.mun-stat strong{font-family:Manrope,system-ui,sans-serif;font-size:clamp(22px,1.6vw,28px);letter-spacing:-.7px;white-space:normal;overflow-wrap:anywhere;margin:14px 0}.mun-stat small{font-size:14px}.mun-details{padding:20px 22px;border-radius:15px}.mun-details summary{font-size:16px;min-height:28px;color:#284564}.mun-chart{padding:24px;border-radius:18px}.mun-explanation p{max-width:70ch;font-size:16px}.mun-royalty-alert{padding:26px;border-radius:18px;color:#24533e}.mun-status{font-size:14px}.mun-success{color:#176244}.mun-danger{color:#a22f3d}
.login{background:#f5f8fd}.login-art{background:radial-gradient(ellipse at 0 0,#245385,transparent 70%),var(--navy)}.login-art h1{font-size:clamp(32px,3.2vw,48px);line-height:1.18;letter-spacing:-1.5px}.login-art p{font-size:17px;line-height:1.7;color:#c4d4e7}.login-box{max-width:420px;background:#fff;padding:34px;border:1px solid var(--line);border-radius:24px;box-shadow:0 12px 45px #193b6610}.login-logo{width:180px;margin-bottom:24px}.login-box h1{font-size:26px}.login-box .subtitle{font-size:15px}.login-box .field{margin:22px 0}.login-footer{font-size:13px}
dialog{border-radius:20px;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px)}dialog[open]{display:flex;flex-direction:column}#modalform{display:flex;flex-direction:column;min-height:0;max-height:calc(100dvh - 32px)}.modalhead{padding:23px 26px;flex:none;background:#fff}.modalbody{overflow-y:auto;min-height:0;padding:26px;overscroll-behavior:contain}.modalfoot{padding:18px 26px;flex:none;background:#f8fafd}.close{width:44px;height:44px;flex:none;border-radius:11px;color:#4e6078;font-size:25px}.close:hover{background:#e7eef8}#toast{font-size:15px;border-radius:13px;padding:16px 22px;line-height:1.5}
.skip-link{position:fixed;top:-100px;left:20px;z-index:200;background:#fff;color:#185fc0;padding:12px 18px;border:2px solid #185fc0;border-radius:10px}.skip-link:focus{top:12px}.menu-backdrop{display:none}.sidebar-close{display:none}
.mun-chart{margin-right:0;margin-left:0;overflow-x:auto}.mun-chart svg{min-width:600px}.mun-chart figcaption{font-weight:700;font-size:16px}.bar-row button{min-height:44px}input::placeholder,textarea::placeholder{color:#65758c;opacity:1}
@media(min-width:1600px){.main{padding:42px 48px 72px}.topbar{padding:0 48px}.admin-menu{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px){.main{padding:28px 24px 56px}.topbar{padding:0 24px}.filters{grid-template-columns:repeat(2,minmax(0,1fr))}.detailgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.team-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){
 :root{font-size:16px}.shell{display:block}.sidebar{width:min(300px,calc(100vw - 40px));padding:24px 20px;z-index:40}.sidebar.open{box-shadow:12px 0 45px #10234040}.sidebar-close{display:flex;position:absolute;right:12px;top:12px;align-items:center;justify-content:center;width:44px;height:44px;border-radius:10px;background:#ffffff15;color:white;font-size:26px}.sidebar .brand{padding-top:25px}.menu-backdrop.open{display:block;position:fixed;inset:0;background:#132c4d80;z-index:30}.topbar{height:68px;padding:0 16px;gap:12px}.mobile-menu{width:44px;height:44px;border-radius:11px;background:white;border:1px solid #c6d2e2;font-size:22px;flex:none}.breadcrumb{font-size:14px;min-width:0}.breadcrumb>span{margin:0 5px!important}.main{padding:24px 16px 48px}h1{font-size:26px}.pagehead{gap:18px;align-items:flex-start;margin-bottom:24px}.pagehead .actions{width:100%}.pagehead .btn{flex:1}.subtitle{font-size:16px}.btn,.tabs button{font-size:16px;min-height:46px}.filters,.filters.compact{grid-template-columns:1fr;padding:18px}.filters .actions{justify-content:flex-start}.field label,.filters label{font-size:14px}.formgrid{grid-template-columns:1fr;gap:18px}.card{padding:20px}.cardhead h2{font-size:20px}.stats{gap:12px}.stat{padding:18px}.stat strong{font-size:30px}.stat span{font-size:14px}.contactcards{grid-template-columns:1fr}.contact p{font-size:16px}.detailgrid{grid-template-columns:1fr;gap:18px}.span2{grid-column:1/-1}.tabs{gap:4px;padding:5px}.tabs button{flex:1 1 auto;padding:10px 12px}.note,.field-help,.footerinfo{font-size:14px}.intro{padding:22px}.intro h2{font-size:24px}.intro p{font-size:16px}.bar-row{grid-template-columns:130px minmax(0,1fr) 28px;gap:8px}.bar-row button{font-size:14px}.team-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.team-summary .card{padding:18px;min-height:132px}.team-summary span{font-size:14px}.admin-menu{grid-template-columns:1fr;gap:14px}.admin-menu-card{min-height:0;padding:22px}.admin-menu-card span{font-size:16px;max-width:100%}.mun-panel{padding:20px}.mun-panel th{font-size:12px}.mun-panel td{font-size:16px;padding:14px 12px}.mun-cards{grid-template-columns:1fr}.mun-stat strong{font-size:28px}.mun-heading .btn{width:100%}.mun-details{padding:18px}.mun-chart{padding:16px}.mun-conditions .mun-status{font-size:14px;padding:8px}.mun-conditions td{font-size:16px}.mun-royalty-row strong{overflow-wrap:anywhere}.login-form{padding:20px 16px;min-height:100dvh}.login-box{padding:26px 22px}.login-art{display:none}.modalhead{padding:16px 18px}.modalhead h2{font-size:20px}.modalbody{padding:20px 18px}.modalfoot{padding:16px 18px}.task-table .actions .btn{font-size:16px;padding:10px 12px}.task-table td:nth-child(3):before,.task-table td:nth-child(4):before{font-size:14px}.file-item{font-size:16px}
 .client-list thead{display:none}.client-list,.client-list tbody{display:block}.client-list tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;padding:20px;border-bottom:1px solid var(--line)}.client-list td{display:block;padding:0;border:0;overflow-wrap:anywhere;min-width:0;font-size:16px}.client-list td:first-child,.client-list td:last-child{grid-column:1/-1}.client-list .name{font-size:17px}.client-list td[data-label]:before{content:attr(data-label);display:block;font-size:14px;color:var(--muted);margin-bottom:5px}.client-list td:last-child .btn{width:100%;background:#edf3fc}.client-list tbody tr:hover{background:transparent}
}
@media(max-width:360px){.main{padding-right:12px;padding-left:12px}.card,.client-list tr{padding:16px}.pagehead .btn{flex-basis:100%}.team-summary{grid-template-columns:1fr}.stats{grid-template-columns:1fr}.mun-stat{padding:20px}.mun-stat strong{font-size:26px}.breadcrumb{font-size:13px}}
@media(max-width:760px){.mun-responsive-table,.mun-responsive-table tbody{display:block;width:100%;min-width:0}.mun-responsive-table thead{display:none}.mun-responsive-table tr{display:grid;grid-template-columns:1fr;gap:14px;padding:18px;border-bottom:1px solid var(--line)}.mun-responsive-table td{display:block;border:0;padding:0!important;min-width:0;overflow-wrap:anywhere}.mun-responsive-table td:first-child{font-weight:700}.mun-responsive-table td:before{content:attr(data-label);display:block;font-size:14px;font-weight:400;color:var(--muted);margin-bottom:5px}.mun-chart::after{content:'Deslize o gráfico para ver todos os anos.';display:block;font-size:14px;color:var(--muted);margin-top:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(forced-colors:active){.nav button.active,.tabs button.active{border:2px solid Highlight}.btn,.stat,.admin-menu-card{border:1px solid ButtonText}}

/* Keep long controls inside the mobile dialog; grid tracks must be shrinkable. */
.formgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.formgrid>*{min-width:0}.field{min-width:0}.field input,.field select,.field textarea{width:100%;min-width:0;max-width:100%;box-sizing:border-box}#modalform{width:100%;min-width:0}.modalbody{overflow-x:hidden}.check{overflow-wrap:anywhere}.check input{flex:none}.client-suggestions{max-height:240px;overflow-y:auto;border:1px solid var(--line);border-radius:12px}.client-suggestions button{display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:100%;padding:12px;background:#fff;text-align:left;overflow-wrap:anywhere}.client-suggestions button:hover,.client-suggestions button[aria-selected=true]{background:#edf3fc}.client-suggestions p{padding:12px;margin:0}.client-suggestions small{color:var(--muted)}
@media(max-width:760px){.formgrid{grid-template-columns:minmax(0,1fr)}.modalhead h2{min-width:0;overflow-wrap:anywhere}.modalhead{gap:12px}.modalbody{padding:18px 16px}.field input,.field select,.field textarea{font-size:16px}.modalfoot .btn{min-width:0}.mun-cash-date{font-size:19px}}
/* Diretoria: gravação e leitura acessíveis também no aplicativo móvel. */
.directive-record-button{min-height:72px;font-size:21px;margin-top:20px;width:min(100%,440px)}
.directive-list-head{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.directive-list-head label{max-width:260px}
.directive-list-head select,.directive-detail select,.directive-detail textarea{display:block;width:100%;padding:13px 15px;border:1px solid #acbbce;border-radius:12px;background:#fff;color:#173656;font:inherit;min-height:48px;margin-top:8px}
.directive-list-head label,.directive-detail form label{display:block;font-weight:600;color:#40546e}
.directive-detail select:focus,.directive-detail textarea:focus{outline:2px solid #4386de;outline-offset:2px}
.directive-row{display:flex;width:100%;align-items:center;justify-content:space-between;gap:18px;padding:22px 0;border:0;border-top:1px solid #e2e9f3;background:transparent;text-align:left;color:inherit;cursor:pointer}
.directive-row small,.directive-responses small{display:block;margin-top:7px;color:#586d86}
.directive-row:hover strong{color:#175bc3}.directive-detail audio{display:block;width:100%;margin:12px 0 24px}
.directive-detail dt{font-weight:700;margin-top:18px}.directive-detail dd{margin:6px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.directive-text{white-space:pre-wrap;overflow-wrap:anywhere}.directive-responses article{background:#f3f7fc;border-radius:14px;padding:18px;margin:14px 0}
#directive-key{margin:20px 0}#directive-key input{margin:12px 0}#directive-reply textarea{min-height:130px;width:100%;margin:12px 0}
@media(max-width:760px){.directive-row{align-items:flex-start;flex-direction:column}.directive-detail .actions{display:grid}.directive-record-button{font-size:19px}.directive-detail{overflow-wrap:anywhere}.directive-list-head label{max-width:100%;width:100%}}

/* One compact item per recording, with inline playback and details. */
.directive-item{border:1px solid #e2e9f3;border-radius:14px;padding:14px 16px;margin-top:12px;background:#fff}
.directive-item .directive-row{padding:0 0 10px;border:0;gap:10px;font-size:15px;align-items:flex-start}
.directive-item .directive-row strong{font-size:17px;line-height:1.35}
.directive-item .directive-row small{font-size:13px;margin-top:4px}
.directive-item .badge{font-size:12px;padding:5px 8px}
.directive-item>audio{display:block;width:100%;height:40px;margin:0}
.directive-inline-detail:empty{display:none}
.directive-item .directive-detail{border-top:1px solid #e2e9f3;margin-top:12px;padding-top:10px;font-size:14px}
.directive-item .directive-detail dl{margin:0 0 10px}
.directive-item .directive-detail dt{margin-top:8px;font-size:13px}
.directive-item .directive-detail dd{margin:3px 0}
.directive-item .directive-detail h3{font-size:16px;margin:10px 0}
.directive-item .directive-detail details{margin:8px 0}
.directive-item .directive-responses article{padding:10px;margin:8px 0}
@media(max-width:760px){.directive-item{padding:12px}.directive-item .directive-row{gap:8px}.directive-item .directive-detail .btn{font-size:14px;padding:10px 12px}.directive-item .directive-detail textarea{min-height:80px}}

.login-entrance{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 38%,#23527c 0%,#132e50 52%,#0d203a 100%);color:#fff;transition:opacity .22s ease;overflow:hidden}
.login-entrance.leaving{opacity:0;pointer-events:none}
.entrance-content{text-align:center;padding:24px;animation:entrance-reveal 1.2s ease both}
.entrance-mark{position:relative;display:grid;place-items:center;width:142px;height:142px;margin:0 auto 24px}
.entrance-mark span{position:absolute;inset:0;border:1px solid #ffffff28;border-top:3px solid #edc65c;border-right:3px solid #74b5f3;border-radius:50%;animation:entrance-orbit 2.6s linear infinite}
.entrance-mark img{width:96px;height:96px;border-radius:24px;box-shadow:0 16px 48px #0003;animation:entrance-logo 2.3s ease both}
.entrance-content h1{font-size:36px;letter-spacing:-1px}.entrance-content h1 span{color:#7abcff}
.entrance-content p{margin:12px 0;font-size:18px;color:#e5edf8}.entrance-content small{font-size:12px;color:#adbfda;letter-spacing:1.5px;text-transform:uppercase}
@keyframes entrance-orbit{to{transform:rotate(360deg)}}
@keyframes entrance-logo{from{opacity:0;transform:rotate(-24deg) scale(.75)}to{opacity:1;transform:rotate(0) scale(1)}}
@keyframes entrance-reveal{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.entrance-content,.entrance-mark img,.entrance-mark span{animation:none}.login-entrance{transition:none}}

.nav button.nav-directives{margin-top:10px;background:#a92e3e;border:1px solid #dc6371;color:#fff;font-weight:700;box-shadow:0 4px 12px #0002}
.nav button.nav-directives:hover{background:#bd3849;border-color:#f18c97}
.nav button.nav-directives.active{background:#bd3849;border-color:#ffb0ba;box-shadow:inset 3px 0 #fff}
.nav button.nav-directives .count{background:#fff;color:#982737;font-weight:800}
@media(forced-colors:active){.nav button.nav-directives{border:2px solid ButtonText}}

.login-box .login-logo{display:block;width:260px;max-width:100%;height:auto;margin:0 auto 28px}

.directive-record{margin:0 0 20px}.directive-record .directive-record-button{margin-top:0}.directive-record #directive-progress:empty{display:none}

.action-client-field{min-width:0}.action-client-field .field{margin-bottom:4px}.action-new-client{justify-content:flex-start;padding:8px 0;text-align:left}

table th,table td{vertical-align:middle}
table .table-number{text-align:center;font-variant-numeric:tabular-nums}
table .table-money{text-align:right;font-variant-numeric:tabular-nums}
.client-list .name{margin-bottom:0}

.directive-record .directive-record-button.recording{background:#b52c3b;color:#fff;box-shadow:0 0 0 4px #b52c3b1a}
#directive-progress.recording{color:#b52c3b;font-weight:700}
.directive-recipient-dialog{max-width:520px;width:calc(100% - 32px)}
.directive-recipient-dialog .modalbody select{width:100%;min-height:48px}

.login-institute-white{display:block;width:270px;max-width:100%;height:auto;margin-top:45px;position:relative;z-index:1}
.login-institute-blue{display:block;width:220px;max-width:100%;height:auto;margin:28px auto 0}
@media(min-width:761px){.login-institute-blue{display:none}}

.directive-record .directive-record-button{background:#b52c3b;color:#fff;animation:record-invite 2.4s ease-in-out infinite;transform-origin:center}
.directive-record .directive-record-button:hover{background:#a42332}
.directive-record .directive-record-button.recording,.directive-record .directive-record-button:disabled{animation:none;transform:none}
@keyframes record-invite{0%,100%{transform:scale(1);box-shadow:0 4px 14px #b52c3b20}50%{transform:scale(1.025);box-shadow:0 6px 22px #b52c3b42}}
@media(prefers-reduced-motion:reduce){.directive-record .directive-record-button{animation:none}}

.home-hero{display:flex;align-items:center;justify-content:space-between;gap:28px;background:radial-gradient(ellipse at top right,#2e608a,transparent 75%),#142f51;color:#fff;border-radius:24px;padding:32px 36px;margin-bottom:26px;box-shadow:0 10px 32px #16345715}
.home-kicker{font-size:11px;letter-spacing:1.6px;color:#bdd9f7;margin:0 0 10px;font-weight:700}
.home-hero h1{font-size:clamp(28px,3vw,38px);letter-spacing:-1px;line-height:1.2}
.home-hero h1+p{margin:10px 0 18px;font-size:17px;color:#e0e9f5}
.home-hero>img{width:210px;max-width:30%;height:auto}
.home-quick{display:flex;flex-wrap:wrap;gap:8px}
.home-quick button{padding:8px 12px;border:1px solid #ffffff30;border-radius:9px;background:#ffffff12;color:#fff;font-size:13px}
.home-quick button:hover{background:#ffffff25}
.home-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.home-shortcut{position:relative;display:flex;align-items:flex-start;gap:16px;min-height:154px;padding:24px;border:1px solid #dce5f0;border-radius:18px;background:#fff;text-align:left;color:#183450;box-shadow:0 4px 18px #16345706;transition:transform .18s,border-color .18s,box-shadow .18s}
.home-shortcut:hover{transform:translateY(-3px);border-color:#96b9e3;box-shadow:0 10px 24px #16345710}
.home-shortcut-icon{display:grid;place-items:center;background:#edf4ff;color:#1d62b8;border-radius:13px;width:48px;height:48px;flex:none}
.home-shortcut-icon svg{width:25px;height:25px}
.home-shortcut-copy{min-width:0;padding-top:2px;padding-right:8px}.home-shortcut strong{display:block;font-size:18px;line-height:1.35}.home-shortcut small{display:block;font-size:14px;line-height:1.5;color:#5b6f86;margin-top:8px}
.home-shortcut-arrow{position:absolute;right:18px;bottom:18px;color:#7391b4}.home-shortcut-arrow svg{width:19px;height:19px}
.home-directives{background:#fff6f7;border-color:#e7bcc3}.home-directives .home-shortcut-icon{background:#fbe1e5;color:#ab293a}.home-directives strong,.home-directives .home-shortcut-arrow{color:#a42a3a}
@media(max-width:1100px){.home-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-shortcut{padding:20px;gap:12px}}
@media(max-width:760px){.home-hero{padding:24px;border-radius:20px;gap:14px;margin-bottom:20px}.home-hero>img{width:130px;max-width:32%}.home-hero h1{font-size:28px}.home-hero h1+p{font-size:15px}.home-kicker{font-size:10px}.home-grid{gap:12px}.home-shortcut{flex-direction:column;padding:18px 16px;gap:12px;min-height:190px;border-radius:16px}.home-shortcut strong{font-size:16px}.home-shortcut small{font-size:13px}.home-shortcut-copy{padding:0 0 16px}.home-shortcut-icon{width:42px;height:42px;border-radius:11px}.home-quick button{font-size:12px;padding:7px 9px}}
@media(max-width:360px){.home-grid{grid-template-columns:1fr}.home-shortcut{flex-direction:row;min-height:120px}.home-hero>img{display:none}}
@media(prefers-reduced-motion:reduce){.home-shortcut{transition:none}.home-shortcut:hover{transform:none}}

/* Blue gradient navigation cards on Home. */
.home-grid .home-shortcut{background:linear-gradient(135deg,#153c69 0%,#185ba5 58%,#2784cb 100%);border:1px solid #3579b5;color:#fff;box-shadow:0 7px 22px #174b8120;overflow:hidden}
.home-grid .home-shortcut:nth-child(3n+2){background:linear-gradient(140deg,#194875 0%,#216bb4 65%,#4398cf 100%)}
.home-grid .home-shortcut:nth-child(3n){background:linear-gradient(140deg,#18375c 0%,#24558d 55%,#347db6 100%)}
.home-grid .home-shortcut:before{content:'';position:absolute;right:-30px;top:-48px;width:160px;height:160px;border-radius:50%;border:1px solid #ffffff18;box-shadow:0 0 0 28px #ffffff04;pointer-events:none}
.home-grid .home-shortcut:hover{border-color:#83c5fa;box-shadow:0 12px 30px #174b8130}
.home-grid .home-shortcut strong{color:#fff}.home-grid .home-shortcut small{color:#e0edfb}
.home-grid .home-shortcut-icon{background:#ffffff18;border:1px solid #ffffff24;color:#fff;box-shadow:inset 0 1px 0 #ffffff15}
.home-grid .home-shortcut-arrow{color:#d6ecff}
.home-grid .home-directives{background:linear-gradient(135deg,#822b43 0%,#b73349 60%,#d55465 100%);border-color:#d76b7a}
.home-grid .home-directives .home-shortcut-icon{background:#ffffff18;color:#fff}
.home-grid .home-directives:hover{border-color:#ffabb8;box-shadow:0 12px 30px #a42a3a25}

.topbar-actions{display:flex;align-items:center;gap:18px;flex:none}
.topbar-home{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:9px 14px;border:1px solid #bcd2e9;border-radius:11px;background:#edf5ff;color:#174f8f;font-size:14px;font-weight:700;flex:none;transition:background .15s}
.topbar-home svg{width:19px;height:19px}.topbar-home:hover{background:#dcecff}
.home-transition-out{animation:home-depart .18s ease-in both;pointer-events:none}.home-transition-in{animation:home-arrive .42s cubic-bezier(.2,.75,.25,1) both}
@keyframes home-depart{to{opacity:0;transform:translateY(10px)}}
@keyframes home-arrive{from{opacity:0;transform:translateY(18px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:760px){.topbar{gap:8px}.topbar-actions{gap:0}.topbar-home{padding:8px 10px;font-size:13px}.breadcrumb{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.topbar-home svg{width:17px;height:17px}}
@media(prefers-reduced-motion:reduce){.home-transition-out,.home-transition-in{animation:none}.topbar-home{transition:none}}

.home-quick button.home-late-alert{display:inline-flex;align-items:center;gap:10px;background:#c33145;border:1px solid #f28b9a;color:#fff;font-size:14px;font-weight:700;padding:11px 14px;box-shadow:0 4px 14px #0002}
.home-quick button.home-late-alert:hover{background:#d13b50}
.home-late-alert svg{width:18px;height:18px}

.home-grid .home-shortcut{min-height:126px;padding:20px}
@media(max-width:760px){
 .main:has(.home-grid){padding:16px 14px 20px}
 .home-hero{padding:18px 20px;margin-bottom:14px;gap:12px;border-radius:17px}
 .home-hero h1{font-size:25px}.home-hero h1+p{font-size:14px;margin:5px 0 0}
 .home-hero>img{width:110px;max-width:30%}
 .home-quick{margin-top:10px}.home-quick button.home-late-alert{padding:8px 10px;font-size:12px}
 .home-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .home-grid .home-shortcut{min-height:86px;flex-direction:row;align-items:center;gap:9px;padding:13px 12px;border-radius:13px}
 .home-grid .home-shortcut-icon{width:32px;height:32px;border-radius:9px}.home-grid .home-shortcut-icon svg{width:19px;height:19px}
 .home-grid .home-shortcut-copy{padding:0}.home-grid .home-shortcut strong{font-size:14px;line-height:1.3}
 .home-grid .home-shortcut small,.home-grid .home-shortcut-arrow{display:none}
}
@media(max-width:360px){.home-grid .home-shortcut{gap:7px;padding:10px;min-height:80px}.home-grid .home-shortcut strong{font-size:13px}.home-hero>img{display:block}}

@media(max-width:760px){
 .home-grid{grid-template-columns:1fr;gap:8px}
 .home-grid .home-shortcut{min-height:48px;padding:9px 14px;gap:12px}
 .home-grid .home-shortcut-icon{width:30px;height:30px;flex:none}
 .home-grid .home-shortcut-copy{flex:1;min-width:0}
 .home-grid .home-shortcut strong{font-size:15px;white-space:normal;overflow:visible;line-height:1.3}
 .home-grid .home-shortcut-arrow{display:block;position:static;width:17px;height:17px;flex:none}
 .home-grid .home-shortcut-arrow svg{width:17px;height:17px}
}

/* Home: uma unica coluna em qualquer largura de tela. */
.home-grid{grid-template-columns:minmax(0,1fr);gap:8px}
.home-grid .home-shortcut{min-height:48px;padding:9px 14px;flex-direction:row;align-items:center;gap:12px}
.home-grid .home-shortcut-icon{width:30px;height:30px;flex:none}
.home-grid .home-shortcut-icon svg{width:19px;height:19px}
.home-grid .home-shortcut-copy{flex:1;min-width:0;padding:0}
.home-grid .home-shortcut strong{font-size:15px;line-height:1.3;white-space:normal;overflow:visible}
.home-grid .home-shortcut small{display:none}
.home-grid .home-shortcut-arrow{display:block;position:static;width:17px;height:17px;flex:none}
.home-grid .home-shortcut-arrow svg{width:17px;height:17px}
