:root{--navy:#102d3a;--teal:#0a827e;--teal-light:#e7f4f0;--ink:#243c48;--muted:#788992;--line:#e6ecef;--background:#f5f7f9;--white:#fff;--red:#bc5153;--amber:#a77924;--shadow:0 3px 15px #17344105;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-size:14px}
*{box-sizing:border-box}body{margin:0;background:var(--background)}button,input,select{font:inherit}button,a,input,select{ -webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}a{text-decoration:none;color:inherit}button{color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #70c6bd;outline-offset:3px}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.sidebar{position:fixed;inset:0 auto 0 0;width:236px;background:var(--navy);color:#c5d2d8;padding:32px 19px 0;display:flex;flex-direction:column;z-index:30}.brand{display:flex;align-items:center;gap:13px;color:white;padding:0 9px;font-size:27px;font-weight:700;letter-spacing:-1px}.brand small{display:block;font-size:8px;letter-spacing:2.3px;font-weight:500;color:#9eb3bc;margin-top:5px}.brand-mark{height:38px;width:38px;border:1px solid #7cc6bf7a;border-radius:11px;display:grid;place-items:center;font-size:26px;font-weight:500;position:relative;background:#1c414d}.brand-mark span{position:absolute;background:#62c9b0;width:6px;height:6px;border-radius:50%;right:5px;top:6px}.workspace{display:flex;align-items:center;gap:10px;background:#ffffff06;border:1px solid #ffffff13;border-radius:9px;padding:13px 11px;margin:33px 0 29px;font-size:12px;color:#f1f6f7;font-weight:600}.workspace small,.profile small,.help-note small{display:block;margin-top:4px;font-size:10px;color:#91a9b4;font-weight:400}.workspace-icon{display:grid;place-items:center;width:29px;height:29px;background:#31525e;border-radius:6px;font-size:12px}.workspace-check{margin-left:auto;color:#79b8ac}.nav-caption{font-size:9px;letter-spacing:1.7px;color:#839da9;margin:0 13px 13px}.nav-item{display:flex;align-items:center;gap:12px;padding:13px 14px;border-radius:8px;margin-bottom:6px;font-size:13px;min-height:47px}.nav-item:hover{background:#ffffff08}.nav-item.active{background:#234d56;color:#e6fff7}.nav-item.active svg{color:#81d7c1}.nav-count{margin-left:auto;border-radius:5px;background:#ffffff0c;padding:2px 6px;font-size:10px}.nav-item.active .nav-count{background:#5cc6ad29;color:#a1ecd9}.sidebar-bottom{margin-top:auto}.help-note{display:flex;gap:10px;padding:21px 10px;font-size:11px;border-top:1px solid #ffffff13}.status-dot{width:6px;height:6px;background:#73ccb4;border-radius:50%;margin-top:3px}.preview-link{display:block;font-size:10px;color:#90b7bf;margin:0 10px 20px}.profile{border-top:1px solid #ffffff14;display:flex;align-items:center;padding:20px 0;gap:10px;font-size:12px;color:#e5eef1}.avatar{display:inline-flex;justify-content:center;align-items:center;width:38px;height:38px;border-radius:10px;font-size:11px;font-weight:700;background:#eaf1f5;color:#537888;flex-shrink:0}.profile-avatar{background:#31525e;color:#e0f0f4;width:34px;height:34px}.profile-dot{margin-left:auto;color:#88a6b3;font-size:10px}.app-shell{margin-left:236px}.topbar{height:77px;display:flex;justify-content:space-between;align-items:center;padding:0 38px;border-bottom:1px solid var(--line);background:#ffffffde}.breadcrumb{display:flex;align-items:center;gap:14px;font-size:12px;color:var(--muted)}.breadcrumb strong{font-weight:500;color:var(--ink)}.separator{color:#c1cbd0}.topbar-right{display:flex;align-items:center;gap:18px}.demo-label{font-size:10px;color:#6b838c;border:1px solid var(--line);padding:7px 10px;border-radius:20px;display:flex;gap:6px;align-items:center}.demo-label span{width:5px;height:5px;background:#78a89c;border-radius:50%}.small-avatar{width:31px;height:31px;border-radius:50%;font-size:10px}.icon-button{display:inline-flex;align-items:center;justify-content:center;background:transparent;border:0;width:40px;height:40px;border-radius:8px;color:#708590}.icon-button:hover{background:#edf3f5}.icon-button svg{width:18px;height:18px}.menu-button{display:none}main{padding:35px 38px 20px;max-width:1640px;margin:auto}main:focus{outline:none}.page-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:27px}.eyebrow{font-size:9px;color:var(--teal);letter-spacing:1.7px;font-weight:700}.page-head h1{font-size:28px;letter-spacing:-.9px;margin:8px 0 8px;font-weight:650;line-height:1.2}.page-head p{font-size:12px;color:var(--muted);margin:0;line-height:1.6}.head-actions{display:flex;align-items:center;gap:10px}.button{display:inline-flex;gap:8px;align-items:center;justify-content:center;min-height:41px;padding:10px 15px;border:1px solid #dce5e9;background:white;border-radius:7px;font-size:12px;font-weight:600;white-space:nowrap}.button svg{width:16px;height:16px}.button:hover{background:#f1f6f7}.button.primary{background:var(--teal);border-color:var(--teal);color:white;box-shadow:0 3px 5px #0a827e12}.button.primary:hover{background:#096e6b}.button.text{padding:7px 0;border:0;background:transparent;color:var(--teal);min-height:36px}.button.danger{color:var(--red)}.month-picker{border:1px solid #dce5e9;border-radius:7px;background:white;font-size:12px;padding:10px;min-height:41px;color:#5c7380;max-width:170px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:24px}.stat-card{border:1px solid var(--line);background:white;border-radius:10px;padding:20px;box-shadow:var(--shadow)}.stat-top{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#6e838d;font-size:11px}.stat-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:#eff6f4;color:var(--teal)}.stat-icon svg{width:16px;height:16px}.stat-card.red .stat-icon{background:#f9eded;color:var(--red)}.stat-card.amber .stat-icon{background:#faf4e8;color:var(--amber)}.stat-value{font-size:25px;letter-spacing:-.8px;margin-top:16px;font-weight:650;white-space:nowrap}.stat-value small{font-size:14px;margin-right:3px;font-weight:500;color:#82959e}.stat-bottom{margin-top:10px;font-size:10px;color:#8b9ca4}.stat-bottom b{color:var(--teal);font-weight:500}.stat-card.red .stat-bottom b{color:var(--red)}.panel{background:white;border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);overflow:hidden}.panel-head{display:flex;align-items:center;justify-content:space-between;padding:20px 22px;gap:12px}.panel-head h2{font-size:15px;letter-spacing:-.2px;margin:0;font-weight:650}.panel-head p{font-size:11px;color:var(--muted);margin:6px 0 0}.panel-title-line{display:flex;align-items:center;gap:8px}.count-pill{font-size:10px;background:#eef4f5;border-radius:5px;padding:3px 7px;color:#6f8791}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:22px}.tabs{display:flex;align-items:center;gap:4px;padding:0 22px;border-bottom:1px solid var(--line);overflow:auto}.tab{background:transparent;border:0;border-bottom:2px solid transparent;padding:13px 9px;margin-bottom:-1px;font-size:11px;color:#84939b;white-space:nowrap;min-height:44px}.tab.active{color:var(--teal);border-color:var(--teal);font-weight:600}.tab span{background:#f0f4f6;font-size:9px;padding:2px 5px;margin-left:5px;border-radius:4px}.toolbar{display:flex;align-items:center;justify-content:space-between;padding:16px 22px;gap:12px;border-bottom:1px solid var(--line)}.search-box{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:7px;padding:0 11px;background:#fcfdfd;width:300px;max-width:100%;height:40px;color:#98a6ae}.search-box svg{width:16px;height:16px}.search-box input{min-width:0;width:100%;border:0;background:transparent;outline:none;font-size:11px;color:var(--ink)}.search-box:focus-within{border-color:#61aea5}.search-box input::placeholder{color:#9cabb2}.toolbar-info{font-size:10px;color:var(--muted)}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;text-align:left}.data-table th{font-size:9px;font-weight:600;letter-spacing:.7px;text-transform:uppercase;color:#8999a2;background:#fafcfd;padding:13px 20px;border-bottom:1px solid var(--line);white-space:nowrap}.data-table td{padding:17px 20px;border-bottom:1px solid #edf1f3;font-size:11px}.data-table tbody tr:last-child td{border-bottom:none}.data-table tbody tr:hover{background:#fcfefd}.entity{display:flex;align-items:center;gap:11px;min-width:140px}.entity strong{display:block;font-size:12px;font-weight:600;margin-bottom:4px}.entity small{font-size:10px;color:#91a1a8}.entity .avatar{width:35px;height:35px;font-size:10px;background:var(--avatar-bg,#eaf2f4);color:var(--avatar-color,#537b86)}.cell-sub{display:block;margin-top:5px;color:#93a1a8;font-size:10px}.amount{white-space:nowrap;font-weight:600;font-variant-numeric:tabular-nums}.muted{color:var(--muted)}.date-overdue{color:var(--red)}.badge{display:inline-flex;align-items:center;gap:5px;font-size:9px;padding:5px 8px;border-radius:5px;white-space:nowrap;font-weight:500}.badge:before{content:'';width:4px;height:4px;border-radius:50%;background:currentColor}.badge.paid,.badge.active{background:#eaf5ef;color:#43886c}.badge.overdue{background:#fbeeee;color:#b95c5d}.badge.pending{background:#f6f2e8;color:#a98537}.badge.partial{background:#edf2fb;color:#6988b6}.badge.archived{background:#f0f2f4;color:#83949e}.row-actions{display:flex;align-items:center;gap:7px;justify-content:flex-end}.row-button{border:1px solid #dbe9e7;background:#f7fbfa;color:var(--teal);padding:7px 10px;border-radius:5px;font-size:10px;white-space:nowrap;min-height:34px}.row-button:hover{background:#e7f4f0}.row-button svg{width:15px;height:15px}.table-footer{padding:16px 22px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;color:#8a9aa3;font-size:10px}.footer-pages{display:flex;gap:7px;align-items:center}.page-chip{border:1px solid var(--line);padding:5px 9px;border-radius:5px;background:#f5faf8;color:var(--teal)}.due-list{padding:0 22px}.due-item{display:flex;align-items:center;gap:12px;padding:17px 0;border-bottom:1px solid var(--line)}.due-item:last-child{border:0}.date-tile{background:#f4f7f9;border:1px solid #edf1f3;border-radius:7px;width:42px;min-width:42px;text-align:center;padding:6px 0;color:#4b6a77}.date-tile b{display:block;font-size:16px;font-weight:600}.date-tile small{font-size:8px;color:#8a9ba3}.due-item strong{font-size:11px;display:block;margin-bottom:5px;font-weight:600}.due-item p{font-size:10px;color:#8b9aa1;margin:0}.due-item .amount{margin-left:auto;font-size:11px}.overview{padding:0 22px 20px}.overview-line{display:flex;justify-content:space-between;font-size:11px;margin:12px 0 9px}.bar-track{height:7px;background:#edf3f4;border-radius:10px;overflow:hidden}.bar-track span{display:block;height:100%;background:#55aaa1;border-radius:10px}.overview-note{font-size:10px;color:#8b9ca4;margin-top:11px}.quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:18px 22px;border-top:1px solid var(--line)}.quick-button{display:flex;align-items:center;gap:8px;font-size:10px;padding:11px;border:1px solid var(--line);border-radius:6px;background:#fff}.quick-button svg{width:15px;color:var(--teal)}.quick-button:hover{background:#f2f8f6}.page-footer{display:flex;justify-content:space-between;font-size:9px;color:#a2afb5;padding:21px 38px 26px;max-width:1640px;margin:auto}.mobile-nav{display:none}.scrim{display:none}.empty-state{text-align:center;padding:45px 20px;color:var(--muted);font-size:12px}.empty-state strong{display:block;color:var(--ink);font-size:15px;margin-bottom:8px}dialog{border:0;border-radius:15px;width:520px;max-width:calc(100% - 32px);padding:0;box-shadow:0 30px 100px #102d3a40;color:var(--ink);max-height:90dvh}dialog::backdrop{background:#112d3a55;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;padding:25px;border-bottom:1px solid var(--line)}.dialog-head h2{font-size:21px;margin:8px 0 0;letter-spacing:-.5px}#dialog-body{padding:25px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:600}.field.full{grid-column:1/-1}.field input,.field select{width:100%;border:1px solid #dce6ea;border-radius:7px;background:#fcfdfd;padding:12px;color:var(--ink);min-height:43px;outline:none}.field input:focus,.field select:focus{border-color:#70b8ad;box-shadow:0 0 0 3px #70b8ad17}.form-help{font-size:10px;color:var(--muted);line-height:1.5;margin:15px 0}.form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:24px}.payment-summary{border:1px solid var(--line);border-radius:8px;background:#f7fafb;padding:16px;margin-bottom:21px;display:flex;justify-content:space-between;gap:12px;font-size:12px}.payment-summary small{display:block;color:var(--muted);font-size:10px;margin-top:6px}.payment-summary .amount{font-size:17px}.detail-hero{display:flex;align-items:center;gap:13px;padding-bottom:20px}.detail-hero .avatar{width:48px;height:48px;font-size:15px}.detail-hero h3{font-size:18px;margin:0 0 7px}.detail-hero p{font-size:11px;color:var(--muted);margin:0}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:12px}.detail-grid small{display:block;font-size:10px;color:var(--muted);margin-bottom:7px}.detail-section-title{font-size:12px;margin:22px 0 12px}.detail-row{border:1px solid var(--line);border-radius:7px;margin-top:9px;padding:12px;display:flex;justify-content:space-between;gap:8px;font-size:11px}.detail-row small{display:block;font-size:10px;color:var(--muted);margin-top:6px}.toast{position:fixed;bottom:26px;left:calc(50% + 118px);transform:translateX(-50%) translateY(20px);padding:14px 20px;background:var(--navy);color:white;border-radius:9px;font-size:12px;box-shadow:0 5px 20px #102d3a30;z-index:100;opacity:0;pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.section-stack{display:grid;gap:22px}.filter-line{display:flex;gap:9px;align-items:center}.filter-line select{min-height:37px;padding:7px 9px;font-size:11px;color:var(--muted);border:1px solid var(--line);border-radius:6px;background:#fff}
@media(min-width:1500px){.data-table td{padding:19px 22px}.stat-value{font-size:30px}}
@media(max-width:1200px){.sidebar{width:208px;padding-left:14px;padding-right:14px}.app-shell{margin-left:208px}.topbar{padding:0 25px}main{padding:28px 25px 16px}.stats-grid{gap:12px}.stat-card{padding:17px}.stat-value{font-size:22px}.dashboard-grid{grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);gap:16px}.data-table td,.data-table th{padding-left:13px;padding-right:13px}.entity{min-width:120px}.entity .avatar{display:none}.toast{left:calc(50% + 104px)}}
@media(max-width:1000px){.dashboard-grid{grid-template-columns:1fr}.dashboard-side{display:grid;grid-template-columns:1fr 1fr;gap:16px}.page-head{align-items:flex-start}.head-actions{flex-wrap:wrap;justify-content:flex-end}.demo-label{font-size:9px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-card{padding:17px 20px}.stat-value{font-size:26px}.data-table .entity .avatar{display:inline-flex}.toolbar-info{display:none}}
@media(max-width:767px){.sidebar{transform:translateX(-100%);transition:transform .2s;width:250px;padding:27px 20px}.menu-open .sidebar{transform:translateX(0)}.menu-open .scrim{display:block;position:fixed;inset:0;background:#102d3a60;z-index:29}.app-shell{margin-left:0}.topbar{height:63px;padding:0 17px}.breadcrumb{gap:8px;font-size:11px}.breadcrumb>span:not(.separator){display:none}.breadcrumb .separator{display:none}.menu-button{display:inline-flex;width:32px;margin-left:-5px}.topbar-right{gap:8px}.topbar-right .small-avatar{display:none}.demo-label{font-size:8px;padding:6px 8px}.topbar-right .icon-button{width:30px}main{padding:25px 17px 15px}.page-head{display:block;margin-bottom:22px}.page-head h1{font-size:26px;margin-top:7px}.page-head p{font-size:11px}.head-actions{justify-content:flex-start;margin-top:17px;gap:8px}.button{min-height:44px;font-size:11px;padding:10px 12px}.head-actions .month-picker{min-height:44px;font-size:11px;flex:1}.head-actions .button.primary{flex:1}.eyebrow{font-size:8px}.stats-grid{gap:10px;margin-bottom:19px}.stat-card{padding:14px 13px;border-radius:9px}.stat-top{font-size:10px}.stat-icon{width:24px;height:24px;border-radius:6px}.stat-icon svg{width:13px;height:13px}.stat-value{font-size:22px;margin-top:12px}.stat-value small{font-size:11px}.stat-bottom{font-size:9px;line-height:1.5;margin-top:8px}.panel-head{padding:18px 16px}.panel-head h2{font-size:14px}.panel-head p{font-size:10px}.panel-head .button.text{font-size:10px}.dashboard-grid{gap:18px}.dashboard-side{display:grid;grid-template-columns:1fr;gap:18px}.tabs{padding:0 10px;gap:0}.tab{font-size:10px;padding:13px 8px}.tab span{font-size:8px;margin-left:3px}.toolbar{padding:13px 15px;flex-wrap:wrap}.search-box{width:100%;height:43px}.search-box input{font-size:12px}.filter-line{width:100%;justify-content:space-between}.filter-line select{flex:1;min-height:42px}.table-wrap{overflow:visible}.data-table,.data-table tbody{display:block}.data-table thead{display:none}.data-table tr{display:grid;grid-template-columns:1fr 1fr;gap:13px 12px;padding:17px 16px;border-bottom:1px solid var(--line)}.data-table tr:last-child{border-bottom:0}.data-table td{display:block;padding:0;border:0;font-size:12px;min-width:0}.data-table td:before{content:attr(data-label);display:block;font-size:9px;font-weight:400;color:#91a1a9;margin-bottom:6px}.data-table td.entity-cell{grid-column:1/-1}.data-table td.entity-cell:before,.data-table td.actions-cell:before{display:none}.entity{min-width:0}.entity strong{font-size:13px}.entity small{font-size:10px}.data-table .entity .avatar{display:inline-flex;width:38px;height:38px}.data-table td.actions-cell{grid-column:1/-1;border-top:1px dashed var(--line);padding-top:11px}.row-actions{justify-content:space-between}.row-button{min-height:42px;padding:9px 17px;font-size:11px}.row-actions .icon-button{border:1px solid var(--line);min-width:42px}.table-footer{padding:15px 16px;font-size:9px}.due-list{padding:0 16px}.due-item{padding:15px 0}.due-item strong{font-size:12px}.due-item .amount{font-size:12px}.quick-actions{padding:16px}.quick-button{min-height:45px}.overview{padding-left:16px;padding-right:16px}.page-footer{padding:20px 17px 100px;gap:12px;font-size:8px}.mobile-nav{position:fixed;inset:auto 0 0;background:#ffffffed;backdrop-filter:blur(14px);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(4,1fr);padding:8px 7px max(9px,env(safe-area-inset-bottom));z-index:20}.mobile-nav a{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;font-size:9px;color:#8a9aa4;min-height:47px;border-radius:8px}.mobile-nav a.active{color:var(--teal);background:#edf7f4}.mobile-nav svg{width:20px;height:20px}.toast{left:50%;bottom:90px;max-width:calc(100% - 30px);width:max-content;font-size:11px}dialog{max-height:88dvh}.dialog-head{padding:21px 19px}#dialog-body{padding:20px}.dialog-head h2{font-size:20px}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.field input,.field select{font-size:16px}.form-actions .button{flex:1}.payment-summary .amount{font-size:16px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.cell-sub,.entity small{overflow-wrap:anywhere}.row-button svg{vertical-align:middle;margin-left:4px}.tabs{overflow-x:auto;overflow-y:hidden}@media(max-width:767px){.sidebar{visibility:hidden}.menu-open .sidebar{visibility:visible}.data-table td.actions-cell .row-actions{gap:12px}.row-button{min-height:44px}}

/* Servicios del cliente */
.services-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:24px 0 16px}.services-heading .detail-section-title{margin:0}.services-heading p{font-size:10px;color:var(--muted);margin:7px 0 0;line-height:1.5}.services-heading .button{font-size:10px;padding:9px 12px}.client-services{display:grid;gap:12px}.client-service-card{border:1px solid var(--line);border-radius:10px;padding:17px;background:#fcfefd}.service-card-top{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.service-card-top h4{font-size:13px;margin:0 0 7px;overflow-wrap:anywhere}.service-frequency{display:inline-block;font-size:9px;color:var(--teal);background:#eaf5f1;border-radius:4px;padding:4px 7px}.service-price{font-size:17px;white-space:nowrap;letter-spacing:-.3px}.service-due{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:10px;margin:15px 0}.service-due svg{width:15px;height:15px}.service-due strong{color:var(--ink);font-weight:500;margin-left:5px}.service-card-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid var(--line);padding-top:10px}.service-card-actions .button{font-size:10px;min-height:36px;padding:8px 11px}.service-card-actions .button.text{padding-right:0}.services-empty{border:1px dashed #d8e5e6;border-radius:9px;padding:25px 18px;font-size:11px;line-height:1.6;color:var(--muted);background:#f9fcfb}.service-client-label{display:flex;gap:11px;align-items:center;margin-bottom:22px}.service-client-label strong{display:block;font-size:13px}.service-client-label small{display:block;font-size:10px;color:var(--muted);margin-top:5px}
@media(max-width:767px){.services-heading{align-items:flex-start;flex-direction:column;gap:12px}.services-heading .button{min-height:44px}.client-service-card{padding:15px}.service-card-top{gap:10px}.service-card-top h4{font-size:13px}.service-price{font-size:16px}.service-card-actions .button{min-height:44px}.service-due{line-height:1.6}.service-due strong{display:block;margin-left:0}.service-due svg{align-self:flex-start;margin-top:1px}#client-service-form .form-actions{flex-direction:column-reverse}.form-actions .button{white-space:normal}}

.dialog-head{position:sticky;top:0;background:white;z-index:2}

.sidebar>.nav-caption{margin-top:35px}

.invoice-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;margin-bottom:22px}.invoice-summary p{color:var(--muted);font-size:11px;margin:6px 0 0;line-height:1.5}.invoice-summary .amount{white-space:nowrap;color:var(--teal)}.invoice-choice{display:flex;align-items:center;gap:10px;padding:14px 0;font-size:13px;cursor:pointer}.invoice-choice input{width:20px;height:20px;accent-color:var(--teal)}.invoice-control{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;font-size:12px}@media(max-width:767px){.invoice-summary{padding:16px;flex-wrap:wrap}.invoice-control{flex-wrap:wrap}}

.payment-choices{display:grid;gap:12px;margin:18px 0}.payment-choice{padding:14px 16px;border:1px solid var(--line);border-radius:10px}.payment-choice .invoice-choice{padding:8px 0}.payment-choice .invoice-choice span{display:grid;gap:5px}.payment-choice small{font-size:11px;color:var(--muted);line-height:1.5}.payment-choice .field input:disabled{background:#f4f6f8;color:#92a0a8}.payment-selection-summary{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;padding:16px;margin-top:16px;border-radius:10px;background:#edf7f4;color:var(--teal)}

.history-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0 4px}.history-section-heading h4,.history-paid-heading{margin:0;font-size:14px}.history-section-heading>strong{color:var(--teal);font-size:13px}.history-pending{margin-bottom:24px}.history-paid-heading{margin-top:18px}.history-years{display:grid;gap:10px;margin-top:12px}.history-year{border:1px solid var(--line);border-radius:10px;overflow:hidden}.history-year>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;padding:16px;background:#f8fafb;list-style:none}.history-year>summary::-webkit-details-marker{display:none}.history-year>summary:focus-visible{outline:3px solid #70c6bd;outline-offset:-3px}.history-year-label{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.history-year-label svg{width:16px;height:16px;color:var(--teal);transition:transform .15s}.history-year[open]>.history-year-label svg,.history-year[open]>summary .history-year-label svg{transform:rotate(90deg)}.history-year-count{font-size:11px;color:var(--muted)}.history-year-total{font-size:13px;white-space:nowrap;color:var(--teal)}.history-year-body{padding:0 16px}.history-year-body .detail-row:last-child{border-bottom:0}@media(max-width:767px){.history-year>summary{padding:14px 12px;align-items:flex-start}.history-year-label{gap:8px}.history-year-count{flex-basis:100%;padding-left:24px}.history-year-body{padding:0 12px}.history-year-total{font-size:12px}}

.history-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:14px;border:1px solid var(--border,#e1eaf0);border-radius:8px;margin:8px 0;background:#fff}.history-row>div{min-width:0;overflow-wrap:anywhere}.history-row>strong{white-space:nowrap}.history-row .form-help{margin:6px 0 0}@media(max-width:480px){.history-row{gap:10px;padding:12px;flex-wrap:wrap}}

.variable-amount-label{color:var(--muted,#708896);font-size:13px;white-space:nowrap}.supplier-history{margin-top:24px}.supplier-history>summary{gap:12px}.supplier-history>summary>span{font-size:12px;color:var(--muted,#708896)}

#supplier-initial-amount[hidden]{display:none}

#supplier-new-category[hidden]{display:none}.supplier-form .form-grid{gap:18px}.supplier-form .form-actions{margin-top:24px}.supplier-form .form-help{margin-top:16px}

.client-connections{margin-top:22px}.client-connections>summary{gap:12px}.client-connections>summary>span{font-size:12px;color:var(--muted,#708896)}

.data-table td.entity-due-cell{min-width:180px;padding-top:20px;padding-bottom:20px}.entity-due-content{display:flex;flex-direction:column;align-items:flex-start;gap:8px;line-height:1.5}.entity-due-date{font-size:12px;font-weight:600;white-space:nowrap;color:var(--ink,#203b4a)}.entity-due-date.is-overdue{color:#b84d57}.entity-due-status{display:inline-flex;padding:3px 8px;border-radius:5px;background:#fbf0f1;color:#b84d57;font-size:10px;white-space:nowrap}.entity-due-next{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 9px;border-top:1px solid #edf1f3;padding-top:7px;font-size:10px;color:#78909c}.entity-due-next time{white-space:nowrap;color:#526e7d}@media(max-width:700px){.data-table td.entity-due-cell{min-width:0;padding:0}.entity-due-content{gap:7px}.entity-due-next{gap:4px 7px}.entity-due-date{font-size:12px}}

.grouped-charge-services{display:flex;flex-direction:column;gap:10px;min-width:160px}.grouped-charge-service{display:flex;align-items:center;justify-content:space-between;gap:10px;line-height:1.5}.grouped-charge-service+.grouped-charge-service{border-top:1px solid #edf1f3;padding-top:9px}.grouped-charge-service strong{font-size:11px;font-weight:500}.grouped-charge-service small{display:block;color:var(--muted,#8196a1);font-size:10px;margin-top:3px}.grouped-charge-service .icon-button{width:30px;height:30px;flex-shrink:0}.grouped-charge-service .icon-button svg{width:16px;height:16px}@media(max-width:700px){.grouped-charge-services{min-width:0}.grouped-charge-service strong{font-size:12px}}
