:root{--ink:#172d2d;--muted:#647773;--green:#116d54;--mint:#dbef95;--pale:#eef5ef;--line:#e0e7e3;--white:#fff;--bg:#f5f7f5;--red:#ab3d35;--amber:#93691c}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 Arial,"Segoe UI",sans-serif}button,input,select,textarea{font:inherit}button,a,select{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #8a72ab;outline-offset:3px}.sidebar{position:fixed;inset:0 auto 0 0;width:240px;background:#102e2c;color:#dce9e4;padding:35px 23px;z-index:20;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:13px;font-weight:800;font-size:21px;letter-spacing:1px}.crest{border:2px solid #d9ee9a;border-radius:7px 7px 18px 18px;color:#d9ee9a;display:grid;place-items:center;width:43px;height:49px;font-size:25px;letter-spacing:-2px}.brand small{font-size:10px;display:block;letter-spacing:1.8px;font-weight:400;margin-top:3px}.nav-caption{font-size:11px;letter-spacing:1.7px;color:#94aaa4;margin:50px 12px 17px}.nav-item{display:flex;align-items:center;gap:13px;border-radius:7px;padding:12px 14px;margin-bottom:6px;font-size:15px;transition:.15s}.nav-item:hover{background:#25413b}.nav-item.active{background:var(--mint);color:#17392d;font-weight:bold}.nav-item svg{width:20px;height:20px;flex-shrink:0}.sidebar-bottom{margin-top:auto;padding:28px 12px 4px}.sidebar-bottom strong{display:block;font-size:14px}.sidebar-bottom p{font-size:13px;color:#a4b9b2;margin:5px 0 22px}.prototype{font-size:10px;letter-spacing:1.6px;color:#d9ee9a}.mini-pitch{display:block;width:60px;height:39px;border:1px solid #638777;border-radius:4px;margin-bottom:20px;position:relative}.mini-pitch:after{content:"";position:absolute;width:16px;height:16px;border:1px solid #638777;border-radius:50%;left:20px;top:10px}.mini-pitch:before{content:"";position:absolute;left:29px;top:0;bottom:0;width:1px;background:#638777}.shell{margin-left:240px}.topbar{height:82px;padding:0 44px;display:flex;align-items:center;gap:18px;background:var(--white);border-bottom:1px solid var(--line)}.breadcrumb{font-size:14px;color:var(--muted)}.breadcrumb span{padding:0 15px;color:#bdc9c3}.breadcrumb b{font-weight:500;color:var(--ink)}.demo-label{margin-left:auto;font-size:10px;letter-spacing:1px;color:var(--green);border:1px solid #d7e5dc;padding:5px 9px;border-radius:4px}.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--pale);font-size:12px;font-weight:bold}.mobile-menu{display:none}main{padding:34px 44px 15px;max-width:1700px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.eyebrow{font-size:10px;font-weight:bold;letter-spacing:1.5px;color:var(--green);margin-bottom:6px}h1{font-size:30px;line-height:1.2;letter-spacing:-.7px;margin:0}h2{font-size:18px;margin:0}h3{font-size:16px;margin:0}.page-heading p{margin:9px 0 0;color:var(--muted);font-size:14px}.button{border:1px solid var(--green);border-radius:6px;background:var(--green);color:white;padding:10px 16px;display:inline-flex;gap:8px;align-items:center;justify-content:center;font-size:14px;font-weight:bold;white-space:nowrap}.button:hover{filter:brightness(.94)}.button.secondary{background:white;border-color:var(--line);color:var(--ink)}.button.light{background:#edf5ee;color:var(--green);border-color:#dae8df}.button.danger{color:var(--red);background:#fff6f4;border-color:#eed4cf}.button.small{font-size:13px;padding:7px 10px}.button svg{width:18px;height:18px}.icon-button{border:0;background:transparent;font-size:19px;color:var(--muted);padding:6px}.filters{display:flex;justify-content:space-between;align-items:center;gap:18px;border-bottom:1px solid var(--line);margin-bottom:26px;padding-bottom:17px}.location-tabs{display:flex;gap:5px;padding:4px;background:#e8eeea;border-radius:7px}.location-tab{padding:7px 14px;border:0;background:transparent;border-radius:5px;color:var(--muted);font-size:14px}.location-tab.active{background:white;color:var(--green);box-shadow:0 1px 4px #14342812;font-weight:bold}.period{display:flex;gap:8px;align-items:center}.period label{font-size:13px;color:var(--muted);margin-right:4px}select{appearance:none;background:white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23647773' stroke-width='1.5'%3E%3Cpath d='m5 7 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 8px center;padding:8px 32px 8px 12px;border:1px solid var(--line);border-radius:5px;font-size:14px;color:var(--ink)}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:23px}.stat{padding:20px;background:white;border:1px solid var(--line);border-radius:9px;min-width:0}.stat.dark{background:#173e36;color:white;border-color:#173e36;position:relative;overflow:hidden}.stat.dark:after{content:"";position:absolute;width:110px;height:110px;border:1px solid #c6e19a25;border-radius:50%;right:-33px;bottom:-48px}.stat-label{font-size:13px;color:var(--muted);display:flex;justify-content:space-between;align-items:center;gap:6px}.stat-label svg{width:18px;height:18px}.stat.dark .stat-label{color:#c1d8c9}.stat-value{display:block;margin-top:15px;font-size:28px;font-weight:bold;letter-spacing:-.7px;line-height:1.2}.stat-value small{font-size:12px;font-weight:normal;letter-spacing:0;margin-left:5px}.stat-foot{font-size:12px;color:var(--muted);margin-top:10px}.stat.dark .stat-foot{color:#d9ee9a}.grid-2{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:22px;margin-bottom:22px}.panel{background:white;border:1px solid var(--line);border-radius:9px;margin-bottom:22px;overflow:hidden}.grid-2 .panel{margin-bottom:0}.panel-head{padding:20px 23px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-head p{margin:4px 0 0;font-size:13px;color:var(--muted)}.panel-body{padding:22px}.link-button{border:0;background:transparent;color:var(--green);font-size:13px;font-weight:bold;padding:0;text-align:left}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap}th{font-size:11px;letter-spacing:.35px;font-weight:600;color:var(--muted);background:#f8faf8;padding:12px 20px;border-bottom:1px solid var(--line)}td{padding:14px 20px;border-bottom:1px solid #edf1ee;font-size:14px}tr:last-child td{border-bottom:0}td.numeric,th.numeric{text-align:right}.name{font-weight:600}.name small{display:block;color:var(--muted);font-weight:400;font-size:12px;margin-top:3px}.pill{font-size:12px;padding:4px 9px;border-radius:4px;background:#eaf4ec;color:#2f7054;display:inline-block}.pill.red{background:#fbece8;color:var(--red)}.pill.amber{background:#fff4dc;color:var(--amber)}.pill.gray{background:#edf0ef;color:var(--muted)}.green{color:var(--green)}.red-text{color:var(--red)}.location-comparison{padding:10px 23px 20px}.location-row{padding:15px 0;border-bottom:1px solid #edf1ee}.location-row:last-child{border:0}.location-line{display:flex;justify-content:space-between;gap:15px;align-items:center;font-size:14px}.location-line small{font-size:12px;color:var(--muted);display:block;margin-top:3px}.bar{height:6px;border-radius:5px;background:#edf2ed;margin-top:12px;overflow:hidden}.bar span{display:block;height:100%;border-radius:5px;background:#4f9973}.location-row:nth-child(2) .bar span{background:#a2bf5b}.location-row:nth-child(3) .bar span{background:#77a7a0}.attention{padding:19px 23px;display:flex;align-items:center;justify-content:space-between;background:#f4f8eb;border:1px solid #dce6c7;border-radius:8px;gap:15px;margin-bottom:23px}.attention p{font-size:13px;margin:3px 0 0;color:var(--muted)}.notice{background:#edf4f0;border-left:3px solid #6b9d82;padding:14px 17px;margin-bottom:22px;font-size:14px;color:#3f6051}.notice p{margin:4px 0 0}.tools{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:17px 22px;border-bottom:1px solid var(--line);flex-wrap:wrap}.tools-left{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.search{padding:9px 12px;border:1px solid var(--line);border-radius:5px;width:260px;font-size:14px}.empty{padding:35px 20px;text-align:center;color:var(--muted);font-size:14px}.month-cell{border:0;background:#edf5ee;color:var(--green);border-radius:4px;min-width:53px;padding:7px;font-size:12px}.month-cell.partial{background:#fff2db;color:var(--amber)}.month-cell.unpaid{background:#f9eae5;color:var(--red)}.month-cell.blank{background:#f1f3f2;color:#84948c}.dues-table td,.dues-table th{padding:12px 10px}.dues-table td:first-child,.dues-table th:first-child{padding-left:22px;position:sticky;left:0;background:white;z-index:1;box-shadow:1px 0 0 #edf1ee}.dues-table th:first-child{background:#f8faf8}.legend{display:flex;gap:18px;flex-wrap:wrap;font-size:12px;color:var(--muted);padding:15px 22px;border-top:1px solid var(--line)}.legend i{width:10px;height:10px;display:inline-block;border-radius:2px;margin-right:6px}.activity{display:flex;align-items:center;gap:12px;padding:14px 22px;border-bottom:1px solid #edf1ee}.activity:last-child{border:0}.activity-icon{height:35px;width:35px;display:grid;place-items:center;background:#edf5ee;color:var(--green);border-radius:7px}.activity-icon svg{width:18px;height:18px}.activity-text{font-size:13px;flex:1}.activity-text small{display:block;color:var(--muted);font-size:12px}.activity-amount{font-size:13px;font-weight:bold}.finance-chart{display:flex;align-items:flex-end;gap:12px;height:165px;padding:12px 5px 0}.chart-group{flex:1;height:100%;display:flex;gap:4px;align-items:flex-end;position:relative;padding-bottom:25px}.chart-bar{width:50%;background:#397a60;border-radius:3px 3px 0 0;min-height:2px}.chart-bar.expense{background:#c2cfb1}.chart-group small{position:absolute;bottom:0;left:0;right:0;text-align:center;font-size:11px;color:var(--muted)}.summary-line{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);font-size:14px}.summary-line:last-child{border:0}.settings-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.settings-grid .panel-body p{font-size:14px;color:var(--muted)}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:16px;font-size:14px}.field input,.field textarea,.field select{border:1px solid #cedbd2;border-radius:5px;padding:10px 12px;width:100%;color:var(--ink);background-color:white;font-size:15px}.field select{padding-right:32px}.field textarea{resize:vertical;min-height:70px}.field small{font-size:12px;color:var(--muted)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.form-grid .wide{grid-column:1/-1}dialog{border:0;border-radius:11px;padding:25px;width:min(580px,calc(100% - 30px));max-height:90vh;box-shadow:0 15px 80px #09271d40;color:var(--ink)}dialog::backdrop{background:#0d2a2666;backdrop-filter:blur(2px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding-top:18px;margin-top:12px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-bottom:20px}.detail-grid label{display:block;font-size:12px;color:var(--muted);margin-bottom:4px}.detail-grid b{font-size:15px}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);background:#173e36;color:white;padding:13px 22px;border-radius:7px;box-shadow:0 5px 30px #173e3630;opacity:0;pointer-events:none;transition:.2s;z-index:100}.toast.visible{opacity:1;transform:translate(-50%,0)}footer{color:#829087;font-size:11px;text-align:center;padding:10px 0 4px}.text-content{font-size:15px;line-height:1.8}.text-content p{margin-top:0}.text-content ol,.text-content ul{padding-left:22px}.badge-number{width:38px;height:38px;background:#edf4ed;color:#39704e;border-radius:7px;display:inline-grid;place-items:center;font-size:14px;font-weight:bold;margin-right:11px}.player-name{display:flex;align-items:center}.filter-note{font-size:12px;color:var(--muted);padding:12px 22px}.section-kicker{font-size:11px;letter-spacing:1px;text-transform:uppercase;color:var(--muted);margin:20px 0 12px}.error-inline{color:var(--red);font-size:14px;margin-bottom:12px}.help-text{font-size:13px;color:var(--muted);margin:6px 0 15px}.table-actions{display:flex;gap:8px;justify-content:flex-end}.wrap{white-space:normal;min-width:180px}
@media(min-width:1500px){main{padding-top:40px}.stats{gap:22px}.stat{padding:24px}.stat-value{font-size:33px}}
@media(max-width:1200px){.sidebar{width:210px;padding-left:17px;padding-right:17px}.shell{margin-left:210px}main{padding:28px 26px 14px}.topbar{padding:0 26px}.stat{padding:17px}.stat-value{font-size:25px}.grid-2{grid-template-columns:minmax(0,1.3fr) minmax(270px,1fr);gap:16px}.period label{display:none}.location-tab{padding:7px 11px}td,th{padding-left:15px;padding-right:15px}}
@media(max-width:950px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-2{grid-template-columns:1fr}.filters{align-items:flex-start;flex-direction:column}.period{width:100%}.settings-grid{grid-template-columns:1fr}.topbar{height:68px}.page-heading{align-items:flex-start}.page-heading .button{padding:9px 12px}h1{font-size:26px}}
@media(max-width:700px){.sidebar{transform:translateX(-100%);transition:.2s;width:240px;box-shadow:10px 0 50px #09271d22}.sidebar.open{transform:translateX(0)}.shell{margin-left:0}.mobile-menu{display:block}.topbar{padding:0 18px;gap:12px}.breadcrumb{font-size:12px}.breadcrumb span{padding:0 7px}.demo-label{font-size:9px;padding:4px 5px;letter-spacing:0}.avatar{display:none}main{padding:25px 17px 12px}.page-heading{gap:13px;flex-wrap:wrap}.page-heading p{font-size:13px}.eyebrow{font-size:9px}.stats{gap:10px}.stat{padding:15px}.stat-value{font-size:23px}.stat-foot{font-size:11px}.stat-label{font-size:12px}.location-tabs{width:100%}.location-tab{flex:1;padding:8px}.filters{gap:13px;margin-bottom:20px}.attention{align-items:flex-start;padding:16px;flex-direction:column}.panel-head{padding:17px}.panel-body{padding:17px}.tools{padding:15px}.search{width:100%;min-width:0}.tools-left{width:100%}.tools-left .search{flex:1 1 180px}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}dialog{padding:20px}.page-heading #page-actions{display:flex;gap:7px}.settings-grid{gap:0}.stat-value small{font-size:10px}footer{font-size:10px}h1{font-size:27px}}
@media print{.sidebar,.topbar,.filters,#page-actions,footer,.button,.link-button,.tools,dialog{display:none!important}.shell{margin:0}main{padding:0}.panel{break-inside:avoid}.stats{grid-template-columns:repeat(4,1fr)}body{background:white}.table-wrap{overflow:visible}.grid-2{display:block}.panel{margin-bottom:20px}}

.account-name{font-size:13px;color:#647773;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:700px){.account-name{display:none}.topbar{gap:8px}.demo-label{display:none}}

/* Prima Fortuna: milky white surfaces with purple accents. */
:root{--ink:#30274b;--muted:#6b5d69;--green:#4a377e;--mint:#eeeaf5;--pale:#f3f1ec;--line:#dedbd4;--white:#fffefa;--bg:#faf9f6;--red:#a6423e;--amber:#8b5e1b}
[hidden]{display:none!important}
body{background:#faf9f6}.sidebar{background:#2e2869;color:#f8f7fc;padding-top:23px;padding-bottom:20px}.brand{font-size:16px;letter-spacing:.2px;gap:12px;line-height:1.3}.club-logo{height:88px;width:75px;object-fit:contain;border-radius:6px;flex-shrink:0}.brand small{font-size:9px;letter-spacing:1px;margin-top:8px}.nav-caption{color:#c5b5dc;margin:26px 12px 14px;font-size:10px}#navigation{min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#8c78ad #2e2869;flex:1}.nav-item{padding:10px 12px;margin-bottom:3px;font-size:14px}.nav-item:hover{background:#46377e}.nav-item.active{background:#eeeaf5;color:#30235d}.sidebar-bottom{margin-top:14px;padding:14px 12px 0;border-top:1px solid #776899}.sidebar-bottom p{color:#ccbfdf;margin-bottom:13px}.prototype{color:#e8def7}.topbar{background:#fffefa;border-color:#dedbd4}.demo-label{color:#453176;border-color:#dedbd4;background:#f5f3ef}.account-name{color:#665076}.page-heading p,.help-text{color:#6b5c69}.button{background:#4a377e;border-color:#4a377e}.button.secondary{background:#fffefa;border-color:#dedbd4;color:#46316e}.button.light{background:#eeeaf5;color:#493471;border-color:#dedbd4}.button.danger{background:#f9efed;border-color:#ddc9c6}.button:disabled{opacity:.5;cursor:default}.stat,.panel{background:#fffefa;border-color:#dedbd4}.stat.dark{background:#413174;border-color:#413174}.stat.dark .stat-label{color:#e2d3ef}.stat.dark .stat-foot{color:#e8def7}.stat.dark:after{border-color:#b4a7c344}.location-tabs{background:#eae7e1}.location-tab{color:#665075}.location-tab.active{background:#fffefa;color:#3a2469}.period select,select{background-color:#fffefb;border-color:#dedbd4;color:#36294c}.filters{border-color:#dedbd4}.panel-head{background:#f3f1ec;border-color:#dedbd4}.panel-head p{color:#6c5b6a}th{background:#4a377e;color:#fffefa;font-size:12px;border-color:#625081}td{border-color:#dedbd4}.dues-table td:first-child{background:#fffefa;box-shadow:1px 0 0 #dedbd4}.dues-table th:first-child{background:#4a377e}.dues-table .current-period{background:#70518f;color:#fffefa}.dues-table td,.dues-table th{padding-top:12px;padding-bottom:12px}.month-cell{background:#eeeaf5;color:#402875;min-width:56px}.month-cell:hover{background:#e3dcef}.month-cell.blank{background:transparent;color:#85728b}.pill{background:#eeeaf5;color:#483173}.pill.gray{background:#eeece7;color:#77657b}.pill.expense{background:#f4e9e7;color:#865037}.green{color:#493178}.notice{background:#f2eff7;border-color:#756090;color:#51416b}.tools{background:#faf9f6;border-color:#dedbd4}.search,.field input,.field select,.field textarea{background-color:#fffefb;border-color:#dedbd4;color:#38284e}.link-button{color:#4c317a}.summary-line{border-color:#dedbd4}.toast{background:#42306f}.filter-note{color:#705d72}.total-row td{background:#eeece7;font-weight:bold;border-top:2px solid #b4a7c3}.quick-entry{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:21px 24px;background:#fffefa;border:1px solid #d3cddc;border-left:5px solid #5b4288;border-radius:9px;margin-bottom:23px}.quick-entry p{margin:6px 0 0;font-size:14px;color:#6a5570}#page-actions{display:flex;gap:10px;flex-wrap:wrap}.pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 20px;background:#f5f3ef;border-top:1px solid #dedbd4;color:#6a5671;font-size:13px}.pagination>div{display:flex;align-items:center;gap:12px}.entry-layout{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:30px}.entry-type{display:grid;grid-template-columns:1fr 1fr;gap:18px}.entry-preview{background:#f5f3ef;border:1px solid #dedbd4;border-radius:7px;padding:20px;align-self:start;font-size:15px}.entry-preview .section-kicker{margin-top:0;color:#745785;font-size:11px}.entry-preview strong{display:block;color:#3d296d;font-size:19px}.entry-preview>p{font-size:14px;color:#6c5375}.entry-selected{border-top:1px solid #dedbd4;border-bottom:1px solid #dedbd4;padding:15px 0;margin:15px 0;color:#4a3274;font-weight:bold;font-size:14px}.entry-actions{display:flex;justify-content:flex-start;padding-top:15px;border-top:1px solid #dedbd4;margin-top:10px}.entry-actions .button{min-width:180px}.entry-dialog{width:min(940px,calc(100% - 30px));background:#fffefa;border:1px solid #dedbd4}.entry-dialog .dialog-heading{border-bottom:1px solid #dedbd4;padding-bottom:18px}.player-field{position:relative}.player-options{position:absolute;left:0;right:0;top:76px;max-height:280px;overflow:auto;z-index:60;background:#fffefa;border:1px solid #9c7da2;border-radius:5px;box-shadow:0 10px 25px #34215e26}.player-options button{display:block;width:100%;text-align:left;background:transparent;border:0;border-bottom:1px solid #dedbd4;padding:11px 13px;color:#3f2b64;font-size:14px}.player-options button:last-child{border:0}.player-options button:hover,.player-options button[aria-selected="true"]{background:#eeeaf5}.player-options small{display:block;font-size:12px;color:#75617b;margin-top:4px}.player-options b{font-weight:600}.field label{font-size:14px}.entry-main .field small{line-height:1.5}dialog{background:#fffefa;max-height:92vh}footer{color:#7b6583}.table-wrap{scrollbar-color:#b4a7c3 #f3f1ec}.entry-main input:focus,.entry-main select:focus{outline-color:#8a72ab}
@media(max-width:1200px){.entry-layout{grid-template-columns:minmax(0,1fr) 210px;gap:20px}.brand{font-size:14px}.club-logo{width:60px;height:72px}.sidebar{padding-left:15px;padding-right:15px}.nav-item{font-size:13px}}
@media(max-width:950px){.entry-layout{grid-template-columns:1fr}.entry-preview{display:none}.sidebar-bottom strong{font-size:12px}.pagination{flex-wrap:wrap}.brand small{font-size:8px}}
@media(max-width:700px){.brand{font-size:16px}.club-logo{width:75px;height:88px}.nav-item{font-size:14px}.quick-entry{padding:17px;align-items:flex-start;flex-direction:column}.quick-entry h2{font-size:17px}.entry-type{grid-template-columns:1fr}.entry-dialog{padding:18px}.player-options{top:77px}.pagination{padding:13px}.entry-actions .button{width:100%}.sidebar{box-shadow:10px 0 50px #2e286933}.table-wrap td{font-size:13px}.stats .stat-value{font-size:23px}.page-heading #page-actions{gap:8px}}
@media print{body,.panel,.stat{background:white!important;color:#222}th{color:#222;background:#eee}.entry-actions,.quick-entry,.pagination{display:none!important}.table-wrap{overflow:visible}}

.dues-table .month-cell{min-width:44px;padding:6px 5px}.dues-table td,.dues-table th{padding-left:6px;padding-right:6px}.dues-table td:first-child,.dues-table th:first-child{padding-left:16px;min-width:170px;max-width:210px;white-space:normal}.dues-table td:first-child .link-button{white-space:normal;line-height:1.45}.dues-table th:last-child,.dues-table td:last-child{padding-right:12px}

.player-count .stat-foot{display:flex;flex-wrap:wrap;gap:4px 14px}.player-count .stat-foot span{white-space:nowrap}

/* Version 1.3: fixed entry type, compact charts, and player year filter. */
.entry-type{grid-template-columns:minmax(0,1fr)}
.finance-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:22px}
.finance-charts .panel{margin-bottom:0;min-width:0}
.finance-charts .panel-head{padding:15px 20px}
.finance-charts h2{font-size:16px}
.finance-charts .empty{padding:32px 18px}
/* Values are positioned above vertical columns; labels stay below the baseline. */
.column-chart-wrap{overflow-x:auto;scrollbar-width:thin;scrollbar-color:#b4a7c3 #f3f1ec;padding:8px 18px 14px}
.column-chart{display:flex;align-items:stretch;gap:12px;list-style:none;margin:0;padding:28px 0 0;min-width:100%}
.column-chart>li{flex:1 0 102px;min-width:102px;min-height:0;text-align:center}
.column-plot{height:165px;display:flex;justify-content:center;align-items:flex-end;position:relative;border-bottom:1px solid #bfb6c9;background:repeating-linear-gradient(to top,#e8e4ed 0,#e8e4ed 1px,transparent 1px,transparent 41px)}
.column-bar{position:relative;width:44px;min-height:1px;background:#5b4288;border-radius:5px 5px 0 0}
.column-value{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);margin-bottom:6px;color:var(--ink);font-size:12px;line-height:18px;white-space:nowrap}
.column-value small{font-size:10px;font-weight:400;color:var(--muted)}
.column-name{padding:10px 3px 0;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.expense-columns .column-bar{background:#a46e78}
.trainer-columns .column-plot{height:220px;background-size:auto}
.trainer-columns .column-bar{width:54px}
.trainer-columns .column-value{font-size:14px}
@media(max-width:800px){.finance-charts{grid-template-columns:minmax(0,1fr);gap:14px}.column-chart-wrap{padding-left:14px;padding-right:14px}.column-chart>li{flex-basis:100px;min-width:100px}.trainer-columns .column-plot{height:185px}}
@media print{.column-chart-wrap{overflow:visible}.column-chart{flex-wrap:wrap}.column-bar{print-color-adjust:exact;-webkit-print-color-adjust:exact}}


/* Installation controls and phone navigation. */
.install-button{align-items:center;gap:7px}
.install-button[hidden],.install-native[hidden]{display:none!important}
.install-button svg{width:18px;height:18px;flex-shrink:0}
.install-help{width:min(490px,calc(100% - 30px));background:#fffefa;border:1px solid #dedbd4;line-height:1.6}
.install-help h2{font-size:19px}
.install-help .dialog-heading{margin-bottom:16px}
.install-steps{padding-left:23px;font-size:15px}
.install-steps li+li{margin-top:13px}
.install-help .share-symbol{display:inline-grid;place-items:center;border:1px solid #b4a7c3;width:22px;height:24px;border-radius:4px;color:#4a377e;font-size:20px;line-height:1}
.install-help-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:24px}
.auth-install{margin-top:20px}
.auth-card .auth-install .install-button{margin:0;padding:11px}
.bottom-nav{display:none}
@media(max-width:1050px){.topbar .demo-label{display:none}.topbar .install-button{margin-left:auto}}
@media(max-width:700px){
 html{scroll-padding-bottom:calc(90px + env(safe-area-inset-bottom,0px))}
 body:not(.auth-page){padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))}
 .topbar .breadcrumb{display:none}
 .topbar .install-button{margin-left:auto}
 .topbar .button{font-size:12px;padding:8px 10px}
 .topbar{height:66px;padding-left:max(17px,env(safe-area-inset-left,0px));padding-right:max(17px,env(safe-area-inset-right,0px))}
 .bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:30;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:6px max(12px,env(safe-area-inset-right,0px)) calc(6px + env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px));background:#fffefa;border-top:1px solid #dedbd4;box-shadow:0 -3px 15px #30274b0d}
 .bottom-nav-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:56px;padding:6px 4px;border-radius:8px;color:#746980;font-size:12px;font-weight:600;line-height:1.2}
 .bottom-nav-item svg{width:23px;height:23px;flex-shrink:0}
 .bottom-nav-item.active{color:#4a377e;background:#eeeaf5}
 .bottom-nav-item:focus-visible{outline-offset:-3px}
}
@media print{.bottom-nav,.install-button{display:none!important}body:not(.auth-page){padding-bottom:0}}

/* Phone drawer: tap outside to dismiss without activating the page behind it. */
.sidebar-backdrop,.sidebar-close{display:none}
.sidebar-backdrop[hidden]{display:none!important}
@media(max-width:700px){
 html.menu-open,body.menu-open{overflow:hidden;overscroll-behavior:none}
 .sidebar{z-index:50;max-width:calc(100vw - 48px);overscroll-behavior:contain;padding-top:max(23px,env(safe-area-inset-top,0px));padding-bottom:max(20px,env(safe-area-inset-bottom,0px))}
 #navigation{overscroll-behavior:contain}
 .sidebar-backdrop{display:block;position:fixed;inset:0;z-index:40;width:100%;height:100%;padding:0;margin:0;border:0;border-radius:0;background:rgba(30,28,46,.38);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);cursor:pointer;touch-action:manipulation}
 .sidebar-close{display:grid;place-items:center;position:absolute;top:max(5px,env(safe-area-inset-top,0px));right:7px;width:30px;height:30px;padding:0;color:#f8f7fc;font-size:22px;line-height:1;border-radius:5px}
 .sidebar-close:focus-visible{outline-color:#e8def7;outline-offset:1px}
}
@media(prefers-reduced-motion:reduce){.sidebar{transition:none}}

@media print{.sidebar-backdrop,.sidebar-close{display:none!important}}

/* Responsive workspace: use available pixels instead of fixed monitor dimensions. */
@media screen{
 :root{--workspace-sidebar:clamp(176px,14vw,248px);--workspace-gutter:clamp(14px,1.5vw,36px)}
 .shell{min-width:0}
 .shell>main{width:100%;max-width:none;padding:clamp(18px,1.8vw,32px) var(--workspace-gutter) 16px}
 .shell h1{font-size:clamp(24px,2vw,32px)}
 .page-heading{flex-wrap:wrap;gap:14px;margin-bottom:clamp(18px,1.4vw,26px)}
 .page-heading>div:first-child,.panel-head>div{min-width:0}
 .filters{flex-wrap:wrap;gap:12px;margin-bottom:clamp(16px,1.4vw,24px)}
 .period{max-width:100%;flex-wrap:wrap}
 .stats{gap:clamp(10px,1vw,20px);margin-bottom:clamp(16px,1.4vw,24px)}
 .stat{padding:clamp(14px,1.2vw,22px)}
 .stat-value{font-size:clamp(22px,2.1vw,34px);margin-top:clamp(10px,1vw,15px)}
 .stat-foot{margin-top:8px}
 .panel-head{padding:clamp(14px,1.25vw,22px) clamp(16px,1.4vw,24px);flex-wrap:wrap}
 .tools{padding:clamp(12px,1.1vw,18px) clamp(14px,1.3vw,22px)}
 .tools-left{min-width:0;max-width:100%;flex:1 1 260px}
 .tools-left .search{max-width:100%}
 .tools-left select{max-width:100%}
 .table-wrap{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
 .dues-table{--report-name-width:clamp(136px,12vw,200px);--report-total-width:max(var(--report-total-min,76px),clamp(76px,6vw,108px));--report-cell-min:var(--report-data-min,50px);table-layout:fixed;width:100%;min-width:calc(var(--report-name-width) + var(--report-total-width) + var(--report-columns,12)*var(--report-cell-min));font-variant-numeric:tabular-nums}
 .dues-categories{--report-cell-min:max(90px,var(--report-data-min,50px))}
 .report-name-col{width:var(--report-name-width)}
 .report-total-col{width:var(--report-total-width)}
 .dues-table td,.dues-table th{padding:9px 3px;font-size:clamp(10px,.8vw,13px)}
 .dues-table th{font-size:clamp(10px,.76vw,12px);letter-spacing:0}
 .dues-table td:first-child,.dues-table th:first-child{padding-left:12px;min-width:0;max-width:none;white-space:normal;overflow-wrap:anywhere}
 .dues-table td:first-child .link-button{font-size:clamp(11px,.9vw,13px);line-height:1.35}
 .dues-table td:first-child small{font-size:clamp(10px,.8vw,12px);line-height:1.35}
 .dues-table td.numeric:not(:last-child),.dues-table th.numeric:not(:last-child){text-align:center}
 .dues-table .month-cell{min-width:0;width:100%;max-width:80px;min-height:30px;padding:5px 2px;font-size:inherit;font-variant-numeric:tabular-nums;white-space:nowrap}
 .dues-table td:last-child,.dues-table th:last-child{padding-left:4px;padding-right:6px;white-space:nowrap}
 .dues-categories th{white-space:normal;overflow-wrap:anywhere}
 .pagination{flex-wrap:wrap;gap:10px}
}
@media screen and (min-width:701px){
 .sidebar{width:var(--workspace-sidebar);padding-left:clamp(12px,1.2vw,22px);padding-right:clamp(12px,1.2vw,22px)}
 .shell{margin-left:var(--workspace-sidebar)}
 .topbar{height:clamp(64px,5vw,82px);padding-left:var(--workspace-gutter);padding-right:var(--workspace-gutter);gap:clamp(8px,1vw,16px)}
 .brand{font-size:clamp(13px,1vw,16px);gap:10px;min-width:0}
 .brand>span{min-width:0;overflow-wrap:normal}
 .brand small{font-size:clamp(8px,.6vw,9px);letter-spacing:.7px}
 .club-logo{width:clamp(48px,4.5vw,75px);height:auto;aspect-ratio:745/874}
 .nav-item{font-size:clamp(12px,.95vw,14px);gap:10px;padding:9px 8px}
 .sidebar-bottom{padding-left:8px;padding-right:8px}
 .sidebar-bottom strong{font-size:clamp(11px,.85vw,14px)}
 .sidebar-bottom p{font-size:clamp(11px,.8vw,13px)}
}
@media screen and (min-width:701px) and (max-height:800px){
 .sidebar{padding-top:16px;padding-bottom:14px}
 .club-logo{width:48px;height:56px}
 .nav-caption{margin:17px 8px 10px}
 .nav-item{padding-top:7px;padding-bottom:7px;margin-bottom:2px}
 .sidebar-bottom{margin-top:9px;padding-top:10px}
 .sidebar-bottom p{margin-top:4px;margin-bottom:8px}
 .sidebar-bottom .prototype{font-size:9px}
}
@media screen and (min-width:701px) and (max-height:700px){
 .sidebar-bottom p{display:none}
 .sidebar-bottom strong{margin-bottom:7px}
 .shell>main{padding-top:18px}
 .topbar{height:64px}
 .notice{padding:12px 14px;margin-bottom:16px;font-size:13px}
}
@media screen and (max-width:700px){
 .stats .stat-value{font-size:clamp(18px,5.2vw,23px)}
 .dues-table .month-cell{min-height:34px}
 .pagination>div{gap:8px}
}
@media screen and (min-width:701px) and (max-width:1100px){
 .shell{margin-left:0}
 .mobile-menu{display:block}
 .topbar .demo-label,.topbar .account-name{display:none}
 .topbar .install-button{margin-left:auto}
 .sidebar{width:240px;max-width:calc(100vw - 48px);z-index:50;transform:translateX(-100%);transition:transform .2s;box-shadow:10px 0 50px #2e286933;overscroll-behavior:contain}
 .sidebar.open{transform:translateX(0)}
 html.menu-open,body.menu-open{overflow:hidden;overscroll-behavior:none}
 .sidebar-backdrop{display:block;position:fixed;inset:0;z-index:40;width:100%;height:100%;padding:0;margin:0;border:0;border-radius:0;background:rgba(30,28,46,.38);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);cursor:pointer;touch-action:manipulation}
 .sidebar-close{display:grid;place-items:center;position:absolute;top:5px;right:7px;width:30px;height:30px;padding:0;color:#f8f7fc;font-size:22px;line-height:1;border-radius:5px}
}
@media(prefers-reduced-motion:reduce){.sidebar{transition:none}}
/* Keep the left navigation within the viewport, with its own scrollbar only when needed. */
@media screen{
 .sidebar{height:100vh;max-height:100vh;height:100dvh;max-height:100dvh;overflow:hidden;min-height:0}
 .sidebar>.brand,.sidebar>.nav-caption,.sidebar>.sidebar-bottom{flex-shrink:0}
 #navigation{flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden;padding-right:4px;scroll-padding-block:8px;scrollbar-width:thin;scrollbar-color:#a293c5 transparent;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch}
 #navigation::-webkit-scrollbar{width:6px}
 #navigation::-webkit-scrollbar-track{background:transparent}
 #navigation::-webkit-scrollbar-thumb{background:#a293c5;border-radius:6px}
 #navigation::-webkit-scrollbar-thumb:hover{background:#c5b5dc}
}
@media screen and (min-width:701px) and (max-height:540px){
 .sidebar{padding-top:12px;padding-bottom:10px}
 .sidebar .club-logo{width:40px;height:47px}
 .sidebar .nav-caption{margin-top:12px;margin-bottom:7px}
 .sidebar .nav-item{padding-top:6px;padding-bottom:6px}
 .sidebar-bottom{margin-top:7px;padding-top:7px}
}
@media screen and (max-height:450px){.sidebar-bottom{display:none}}
