/* AXIOM CDA 9.6.3 — unification Facturation & Comptabilité avec Studio Design */
.accounting-nav-group{margin:2px 0 6px}.accounting-nav-parent{margin-bottom:2px}.accounting-nav-children{display:grid;gap:2px;margin:0 0 5px 30px;padding-left:12px;border-left:1px solid rgba(255,255,255,.13)}
.accounting-nav-child{position:relative;display:flex;align-items:center;min-height:30px;padding:6px 9px;border-radius:8px;color:rgba(255,255,255,.68);font-size:.76rem;font-weight:650;text-decoration:none;transition:.15s ease}
.accounting-nav-child::before{content:"";position:absolute;left:-15px;width:6px;height:1px;background:rgba(255,255,255,.22)}.accounting-nav-child:hover{background:rgba(255,255,255,.07);color:#fff}.accounting-nav-child.is-active{background:rgba(103,130,255,.2);color:#fff}.accounting-nav-child.is-active::before{width:3px;height:16px;left:-14px;border-radius:4px;background:#8da4ff}

.accounting-page{width:min(100%,1420px);margin:0 auto;padding:26px 28px 48px;color:var(--cda-ink,#13264a)}.accounting-page *{box-sizing:border-box}.accounting-page-narrow{width:min(100%,1220px)}
.accounting-hero{align-items:center;margin-bottom:18px}.accounting-hero h2{letter-spacing:-.025em}.accounting-hero .cda-btn{white-space:nowrap}
.accounting-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:18px}.accounting-kpi{display:flex;align-items:center;gap:13px;min-height:92px;padding:15px 17px;border:1px solid var(--cda-line,#e2e8f1);border-radius:16px;background:#fff;box-shadow:var(--cda-shadow,0 10px 28px rgba(31,51,87,.07))}.accounting-kpi-icon,.panel-icon{width:43px;height:43px;display:grid;place-items:center;flex:0 0 auto;border-radius:13px;background:#eef2ff;color:var(--cda-primary,#4166f5);font-size:1.15rem;font-weight:900}.accounting-kpi small,.accounting-kpi strong,.accounting-kpi em{display:block}.accounting-kpi small{margin-bottom:3px;color:var(--cda-muted,#6c7a91);font-size:.76rem;font-weight:750}.accounting-kpi strong{color:var(--cda-ink,#13264a);font-size:1.45rem;line-height:1.1}.accounting-kpi em{margin-top:3px;color:var(--cda-muted,#6c7a91);font-size:.75rem;font-style:normal}
.cash-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:18px}.cash-summary-card{position:relative;overflow:hidden;padding:17px;border:1px solid var(--cda-line,#e2e8f1);border-radius:16px;background:#fff;box-shadow:var(--cda-shadow,0 10px 28px rgba(31,51,87,.07))}.cash-summary-card::after{content:"";position:absolute;right:-28px;bottom:-35px;width:85px;height:85px;border-radius:50%;background:#f2f5ff}.cash-summary-card.is-primary{border-color:#bfcafb;background:linear-gradient(145deg,#fff,#f6f7ff)}.cash-summary-head{display:flex;justify-content:space-between;gap:10px;align-items:center}.cash-summary-code{color:var(--cda-muted,#6c7a91);font-size:.72rem;font-weight:800}.cash-summary-card h3{position:relative;margin:13px 0 5px;font-size:1rem}.cash-summary-card>strong{position:relative;display:block;font-size:1.7rem;letter-spacing:-.03em}.cash-summary-card>small{position:relative;display:block;margin-top:7px;color:var(--cda-muted,#6c7a91)}
.studio-badge{display:inline-flex;align-items:center;width:max-content;padding:4px 8px;border-radius:999px;background:#eef2ff;color:#3451c4;font-size:.68rem;font-weight:850}.accounting-panel{margin-bottom:18px}.accounting-panel h3{font-size:1.18rem}.accounting-help{margin:-5px 0 18px;color:var(--cda-muted,#6c7a91);font-size:.9rem}.accounting-alert-panel{border-color:#f0dcae;background:linear-gradient(135deg,#fff,#fffcf4)}.accounting-count{min-width:30px;height:30px;display:grid;place-items:center;padding:0 8px;border-radius:999px;background:#eef2ff;color:var(--cda-primary-dark,#2f4ed0);font-size:.76rem;font-weight:900}
.accounting-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.65fr);gap:18px;align-items:start}.accounting-main-column,.accounting-side-column{min-width:0}.accounting-side-column{position:sticky;top:18px}
.accounting-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:end}.accounting-form-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.accounting-page label{display:grid;gap:6px;color:var(--cda-ink,#13264a);font-size:.81rem;font-weight:800}.accounting-page input:not([type=checkbox]),.accounting-page select,.accounting-page textarea{width:100%;min-height:44px;padding:9px 11px;border:1px solid var(--cda-line,#e2e8f1);border-radius:10px;background:#fff;color:var(--cda-ink,#13264a);font:inherit}.accounting-page input::placeholder{color:#9ba7ba}.accounting-form-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:10px;margin-top:2px}.accounting-btn-primary{border-color:var(--cda-primary,#4166f5);background:var(--cda-primary,#4166f5);color:#fff;box-shadow:0 7px 18px rgba(65,102,245,.2)}.accounting-btn-primary:hover{background:var(--cda-primary-dark,#2f4ed0)}.accounting-btn-secondary{border-color:var(--cda-line,#e2e8f1);background:#fff;color:var(--cda-ink,#13264a)}
.denomination-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:20px 0 10px;padding-top:17px;border-top:1px solid var(--cda-line,#e2e8f1)}.denomination-head small{color:var(--cda-muted,#6c7a91)}.denomination-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.denomination-grid label{position:relative}.denomination-grid label span{position:absolute;z-index:1;top:50%;left:10px;transform:translateY(-50%);color:var(--cda-muted,#6c7a91);font-size:.72rem}.denomination-grid input{padding-left:62px!important;text-align:right;font-weight:800}
.accounting-details{padding:0!important}.accounting-details summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;cursor:pointer;list-style:none}.accounting-details summary::-webkit-details-marker{display:none}.accounting-details summary strong{display:block;margin-top:3px;font-size:1.02rem}.details-plus{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#eef2ff;color:var(--cda-primary,#4166f5);font-size:1.2rem}.accounting-details[open] .details-plus{transform:rotate(45deg)}.accounting-stack-form{display:grid;gap:12px;padding:0 20px 20px;border-top:1px solid var(--cda-line,#e2e8f1);padding-top:17px}.accounting-check{display:flex!important;grid-template-columns:auto 1fr;align-items:center}.accounting-check input{width:17px;height:17px;accent-color:var(--cda-primary,#4166f5)}
.accounting-shortcuts h3{margin:4px 0 12px}.accounting-shortcuts>a{display:grid;grid-template-columns:36px 1fr auto;align-items:center;gap:10px;padding:12px 0;border-top:1px solid var(--cda-line,#e2e8f1);color:var(--cda-ink,#13264a);text-decoration:none}.accounting-shortcuts>a>span{width:35px;height:35px;display:grid;place-items:center;border-radius:10px;background:#f0f3ff;color:var(--cda-primary,#4166f5);font-weight:900}.accounting-shortcuts a strong,.accounting-shortcuts a small{display:block}.accounting-shortcuts a small{margin-top:2px;color:var(--cda-muted,#6c7a91);font-size:.72rem}.accounting-shortcuts a b{font-size:1.4rem;color:#9aa6ba}
.accounting-list{display:grid}.accounting-list-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:16px;padding:13px 0;border-top:1px solid var(--cda-line,#e2e8f1)}.accounting-list-row:first-child{border-top:0}.accounting-list-row small{display:block;margin-top:4px;color:var(--cda-muted,#6c7a91)}.accounting-list-row form{margin:0}
.accounting-table-wrap{overflow:auto;border:1px solid var(--cda-line,#e2e8f1);border-radius:12px}.accounting-table{margin:0;background:#fff}.accounting-table th{padding:11px 13px;background:#f8f9fd;text-align:left}.accounting-table td{padding:12px 13px;border-top:1px solid var(--cda-line,#e2e8f1);color:#33425e}.accounting-table .amount-col{text-align:right}.accounting-table .check-col{width:40px}.accounting-table-empty{padding:28px!important;text-align:center!important;color:var(--cda-muted,#6c7a91)!important}
.client-advance-panel{border-color:#cfd8ff;background:linear-gradient(135deg,#fff,#f8f9ff)}.advance-notes{grid-column:span 2}.advance-allocation-form{display:grid;grid-template-columns:minmax(170px,1fr) 95px auto;gap:7px;align-items:center;min-width:430px}.advance-allocation-form select,.advance-allocation-form input{min-height:38px!important;padding:6px 8px!important}.advance-allocation-form .cda-btn{min-height:38px;padding:7px 10px}.accounting-table a{color:var(--cda-primary,#4166f5);text-decoration:none}
.accounting-empty{text-align:center;padding:35px}.accounting-empty>span{display:block;font-size:1.8rem}.accounting-empty h3{margin:8px 0 4px}.accounting-empty p{margin:0;color:var(--cda-muted,#6c7a91)}
.accounting-entry-summary{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;align-items:center;gap:14px;margin-bottom:18px;padding:16px 20px;border:1px solid var(--cda-line,#e2e8f1);border-radius:16px;background:#fff;box-shadow:var(--cda-shadow,0 10px 28px rgba(31,51,87,.07))}.accounting-entry-summary>div{display:flex;align-items:center;gap:11px}.accounting-entry-summary small,.accounting-entry-summary strong{display:block}.accounting-entry-summary small{color:var(--cda-muted,#6c7a91);font-size:.72rem}.entry-journal,.entry-account{width:45px;height:40px;display:grid;place-items:center;border-radius:11px;background:#eef2ff;color:var(--cda-primary-dark,#2f4ed0);font-weight:900}.entry-account.is-credit{background:#fff0f5;color:#bd2c70}.entry-arrow,.entry-separator{color:#9aa6ba;font-weight:900}.cash-deposit-panel{padding:24px}.cash-deposit-panel .accounting-form-grid{margin-top:4px}

@media(max-width:1200px){.accounting-kpis,.cash-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.denomination-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:950px){.accounting-page{padding:20px}.accounting-layout{grid-template-columns:1fr}.accounting-side-column{position:static}.accounting-form-grid{grid-template-columns:1fr 1fr}.accounting-entry-summary{grid-template-columns:1fr auto 1fr}.accounting-entry-summary .entry-separator,.accounting-entry-summary .entry-separator+div{display:none}}
@media(max-width:650px){.accounting-page{padding:14px}.accounting-kpis,.cash-card-grid,.accounting-form-grid,.accounting-form-grid-2{grid-template-columns:1fr}.advance-notes{grid-column:auto}.denomination-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.accounting-form-actions{justify-content:stretch;flex-direction:column}.accounting-form-actions .cda-btn{width:100%}.accounting-list-row{grid-template-columns:1fr auto}.accounting-list-row form{grid-column:1/-1}.accounting-list-row form button{width:100%}.accounting-entry-summary{grid-template-columns:1fr}.accounting-entry-summary .entry-arrow,.accounting-entry-summary .entry-separator{display:none}.accounting-entry-summary .entry-separator+div{display:flex}.denomination-head{align-items:start;flex-direction:column}.accounting-nav-children{margin-left:25px}}
