/* Dépenses only: shared architectural hero and existing icon/font system. */
.ep-page,.ep-detail{--ep-purple:#7138c1;--ep-ink:#241635;--ep-muted:#73677f;--ep-line:#e9e1f1;--ep-soft:#f5effc;color:var(--ep-ink);font-family:inherit}
.ep-page{min-width:0;background:linear-gradient(145deg,#fcfaff,#f9f6fd);border-radius:22px;padding:20px}.ep-page *,.ep-detail *{box-sizing:border-box}.ep-page button,.ep-detail button{font:inherit;cursor:pointer}.ep-page .btn,.ep-detail .btn{min-height:44px;border-radius:12px;font-size:13px;padding:10px 15px;display:inline-flex;align-items:center;justify-content:center;gap:8px;line-height:1.4}.ep-page .btn.accent,.ep-detail .btn.accent{color:white;background:linear-gradient(120deg,#a149ec,#642ab5);border:1px solid #8541cf;box-shadow:0 5px 14px #7945b721}.ep-page .btn.secondary,.ep-detail .btn.secondary{background:white;color:#60328d;border:1px solid var(--ep-line)}.ep-page .btn:disabled{opacity:.45;cursor:default}.ep-page .ui-icon,.ep-detail .ui-icon{width:20px;height:20px;flex-shrink:0}.ep-page button:focus-visible,.ep-page summary:focus-visible,.ep-detail button:focus-visible,.ep-detail a:focus-visible{outline:3px solid #9865d4;outline-offset:3px}
.ep-page .ep-hero{min-height:186px;padding:25px 30px;margin:0 0 18px;border-radius:20px}.ep-page .ep-hero h1{font-size:36px;margin:0 0 8px;line-height:1.15;letter-spacing:-.035em}.ep-page .ep-hero p{font-size:14px;max-width:370px}.ep-hero .btn{margin-top:17px}.ep-hero .am-hero-image img{object-position:center 58%}.ep-scope-bar{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-bottom:21px}.ep-scopes{display:flex;gap:8px}.ep-scopes button,.ep-cancelled{border:1px solid var(--ep-line);border-radius:12px;background:#fff;color:#62576f;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 18px;font-size:13px;font-weight:600}.ep-scopes button[aria-pressed=true]{background:linear-gradient(125deg,#a04be3,#682fbc);border-color:#8b49cb;color:#fff;box-shadow:0 4px 10px #7b48b41c}.ep-cancelled{background:transparent;font-size:12px;padding:8px 12px}.ep-cancelled .ui-icon{width:17px;height:17px}
.ep-period{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 13px}.ep-period label{display:flex;align-items:center;gap:8px;font-weight:650;font-size:13px}.ep-period input,.ep-filter-grid select,.ep-filter-grid input{border:1px solid var(--ep-line);background:white;border-radius:10px;color:var(--ep-ink);padding:9px 12px;min-height:44px;max-width:100%;min-width:0;font:inherit;font-size:14px}.ep-period input{width:180px}.ep-summary{display:grid;grid-template-columns:1fr 1fr 1.25fr;gap:14px}.ep-metric,.ep-general{border:1px solid var(--ep-line);border-radius:18px;background:#fff;box-shadow:0 5px 20px #57239006;padding:21px;min-width:0}.ep-metric-icon{display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#a35de9,#7940ce);color:white;border-radius:12px;width:42px;height:42px;margin-bottom:17px;box-shadow:0 5px 12px #9047cb20}.ep-metric-icon.soft{background:#f0e4fc;color:#8146b8;box-shadow:none}.ep-metric-icon .ui-icon{width:23px;height:23px}.ep-metric h2,.ep-general h2{font-size:14px;line-height:1.5;margin:0 0 7px;color:#62556f;font-weight:600}.ep-metric>strong{font-size:clamp(19px,2.15vw,30px);font-weight:800;line-height:1.35;letter-spacing:-.025em;display:block;overflow-wrap:anywhere}.ep-metric p{color:var(--ep-muted);font-size:12px;line-height:1.6;margin:10px 0 0}.ep-general h2{font-size:16px;color:var(--ep-ink);font-weight:700;margin-bottom:2px}.ep-caption{font-size:12px;color:var(--ep-muted);line-height:1.5}.ep-general dl{display:grid;gap:11px;margin:17px 0 0}.ep-general dl>div{display:flex;justify-content:space-between;gap:10px;font-size:12px;align-items:baseline}.ep-general dt{color:var(--ep-muted);max-width:58%}.ep-general dd{margin:0;font-weight:700;text-align:end;overflow-wrap:anywhere}.ep-general dl>div:nth-child(3){border-top:1px solid #eee7f5;padding-top:11px}
.ep-accounting{font-size:12px;color:var(--ep-muted);margin:13px 0 25px;line-height:1.7}.ep-accounting summary{min-height:30px;cursor:pointer;color:#704b91}.ep-accounting p{max-width:1000px;margin:8px 0}.ep-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}.ep-list-heading h2{font-size:21px;letter-spacing:-.025em;margin:0}.ep-list-heading button{border:0;background:none;color:var(--ep-purple);font-weight:650;font-size:13px;min-height:44px;padding:8px}.ep-tools{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin-bottom:15px}.ep-search{display:flex;align-items:center;gap:10px;background:white;border:1px solid var(--ep-line);box-shadow:0 3px 8px #54248504;border-radius:13px;padding:0 14px;color:#8c7b9e}.ep-search input{font:inherit;background:none;border:0;outline:0;min-height:48px;min-width:0;width:100%;color:var(--ep-ink);font-size:14px}.ep-search:focus-within{outline:2px solid #a076d1;outline-offset:2px}.ep-filter-box summary{display:flex;align-items:center;gap:7px;width:fit-content;min-height:44px;border:1px solid var(--ep-line);border-radius:10px;padding:8px 13px;color:#705888;background:#fff;cursor:pointer;font-size:13px;font-weight:600;list-style:none}.ep-filter-box summary::-webkit-details-marker{display:none}.ep-filter-dot{width:7px;height:7px;border-radius:50%;background:#8146b8}.ep-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:16px;border:1px solid var(--ep-line);background:white;border-radius:13px;margin-top:10px}.ep-filter-grid label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--ep-muted);min-width:0}.ep-filter-grid .btn{align-self:end}.ep-filter-grid [role=alert]{grid-column:1/-1;margin:0;color:#a22940}.ep-filter-grid [role=alert]:empty{display:none}.ep-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.ep-list-caption{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#eee7f8;border:1px solid #e8dff3;border-radius:11px;padding:10px 15px;font-size:12px}.ep-list-caption strong{font-size:13px}.ep-list-help{margin:9px 1px 12px}.ep-records{background:#fff;border:1px solid var(--ep-line);border-radius:17px;overflow:hidden}.ep-page .ep-row{display:grid;grid-template-columns:44px minmax(0,2.1fr) minmax(0,1fr) minmax(0,.8fr) minmax(0,1fr) 18px;align-items:center;gap:14px;width:100%;background:white;border:0;border-bottom:1px solid #f0eaf6;border-radius:0;text-align:start;padding:18px;color:var(--ep-ink);transition:background .15s}.ep-page .ep-row:last-child{border-bottom:0}.ep-page .ep-row:hover{background:#fbf8ff}.ep-page .ep-row:focus-visible{outline-offset:-3px}.ep-row-icon{display:flex;align-items:center;justify-content:center;border-radius:12px;width:44px;height:44px}.violet{background:#f1e6fc;color:#7735b0}.amber{background:#fff1dc;color:#9a591a}.blue{background:#eaf3ff;color:#295f96}.green{background:#e8f6ef;color:#267551}.ep-row-main{display:flex;flex-direction:column;gap:5px;min-width:0}.ep-row-main>strong{font-size:14px;font-weight:700;line-height:1.45;overflow-wrap:anywhere}.ep-row-meta{font-size:12px;color:var(--ep-muted);line-height:1.45;overflow-wrap:anywhere}.ep-row-source{font-size:11px;color:#83758f;line-height:1.4;overflow-wrap:anywhere}.ep-row-category{min-width:0}.ep-badge{display:inline-block;font-size:10px;line-height:1.5;padding:4px 8px;border-radius:9px;font-weight:650;overflow-wrap:anywhere}.ep-row-method{font-size:12px;color:var(--ep-muted);overflow-wrap:anywhere}.ep-row-amount{font-weight:750;font-size:14px;display:flex;flex-direction:column;gap:6px;text-align:end;align-items:flex-end;line-height:1.45;min-width:0;overflow-wrap:anywhere}.ep-status{border-radius:8px;padding:4px 7px;display:inline-block;font-size:10px;line-height:1.4;font-weight:600;max-width:100%}.ep-status.paid{background:#e9f7ed;color:#267644}.ep-status.pending{background:#fff1dc;color:#8c5817}.ep-status.cancelled{background:#fce9ef;color:#a13e5b}.ep-row-arrow{color:#b4a6c4}.ep-row-arrow .ui-icon{width:16px;height:16px}[dir=rtl] .ep-row-arrow{transform:rotate(180deg)}.ep-view-all{width:100%;margin-top:14px}.expense-ledger-pagination{display:flex;gap:16px;align-items:center;justify-content:center;margin:20px 0 0;font-size:12px}.ep-empty{text-align:center;background:#fff;border:1px dashed #d9c9e9;border-radius:18px;padding:35px 16px}.ep-empty>.ui-icon{width:35px;height:35px;color:#9563c0}.ep-empty h3{font-size:16px}.ep-empty p{font-size:13px;color:var(--ep-muted)}
.ep-detail.modal{width:min(760px,100%);max-width:760px;background:#fbf9fe;padding:22px;border:1px solid var(--ep-line);border-radius:22px}.ep-detail .ui-dialog-head{border-bottom:0;padding-bottom:17px}.ep-detail .ui-dialog-title h2{font-size:20px;color:var(--ep-ink)}.ep-detail .ui-dialog-title>.ui-icon{color:var(--ep-purple)}.ep-detail-hero{display:flex;align-items:center;gap:16px;padding:22px;background:linear-gradient(120deg,#f5edff,#f3edfb);border:1px solid #e5d9f1;border-radius:17px;margin-bottom:20px}.ep-detail-hero .ep-row-icon{width:62px;height:66px;border-radius:17px;flex-shrink:0}.ep-detail-hero .ep-row-icon .ui-icon{width:30px;height:30px}.ep-detail-hero>div{min-width:0;flex:1}.ep-detail-hero h2{font-size:18px;line-height:1.4;margin:0 0 6px;overflow-wrap:anywhere}.ep-detail-hero strong{font-size:25px;color:var(--ep-purple);font-weight:800;overflow-wrap:anywhere}.ep-detail-hero p{font-size:12px;color:var(--ep-muted);margin:6px 0 0}.ep-detail-hero>.ep-status{align-self:flex-start}.ep-detail-panel{padding:20px;border:1px solid var(--ep-line);border-radius:17px;background:white;margin-bottom:15px}.ep-detail-panel h3{display:flex;align-items:center;gap:8px;font-size:16px;margin:0 0 19px}.ep-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;margin:0}.ep-detail-grid>div{padding-bottom:13px;border-bottom:1px solid #f0eaf6;min-width:0}.ep-detail-grid dt{font-size:12px;color:var(--ep-muted);margin-bottom:7px}.ep-detail-grid dd{font-size:14px;color:var(--ep-ink);margin:0;overflow-wrap:anywhere;line-height:1.6}.ep-payments{display:grid;gap:10px}.ep-payments article{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:12px;background:#faf7fd;border-radius:10px}.ep-payments strong{font-size:15px}.ep-payments p{font-size:12px;color:var(--ep-muted);margin:5px 0 0;overflow-wrap:anywhere}.ep-attachments{display:flex;flex-wrap:wrap;gap:12px}.ep-attachments a{width:140px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:10px;border:1px solid #e7dbf0;border-radius:12px;text-decoration:none;color:#7138a6;background:#fcfaff;min-height:100px;font-size:11px;overflow-wrap:anywhere}.ep-attachments img{display:block;width:100%;height:110px;object-fit:contain;border-radius:6px}.ep-detail-actions{display:flex;gap:12px;margin-top:20px}.ep-detail-actions>.btn{flex:1}.ep-detail .btn.danger{border:1px solid #edcad4;color:#b23a58;background:#fff5f7}.ep-detail>.ep-caption,.ep-detail-content>.ep-caption{font-size:11px;margin:14px 3px 0;line-height:1.65}
@media(max-width:1000px){.ep-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.ep-general{grid-column:1/-1}.ep-general dl{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px}.ep-general dl>div:nth-child(3){padding-top:0;border-top:0}.ep-page .ep-row{grid-template-columns:42px minmax(0,1fr) minmax(90px,.65fr) 16px;gap:11px}.ep-row-category,.ep-row-method{grid-column:2}.ep-row-category{grid-row:2}.ep-row-method{grid-row:3}.ep-row-amount{grid-column:3;grid-row:1/4;align-self:center}.ep-row-arrow{grid-column:4;grid-row:1/4}.ep-row-icon{grid-row:1/4}.ep-page .ep-row{row-gap:5px}.ep-row-source{display:none}.ep-row-category .ep-badge{font-size:10px}.ep-metric>strong{font-size:27px}}
@media(max-width:600px){.ep-page{padding:0;border-radius:0}.ep-page .ep-hero{min-height:185px;padding:21px 18px;border-radius:18px;margin-bottom:14px;align-items:center}.ep-page .ep-hero h1{font-size:31px;margin:0 0 8px}.ep-page .ep-hero p{font-size:12px;max-width:230px}.ep-hero .btn{margin-top:14px;min-height:42px;font-size:12px;padding:9px 13px}.ep-scope-bar{gap:7px;margin-bottom:16px;align-items:stretch}.ep-scopes{flex:1;gap:6px}.ep-scopes button{flex:1;flex-direction:column;gap:4px;padding:8px 5px;font-size:11px;border-radius:11px;min-height:57px}.ep-scopes button .ui-icon{width:18px;height:18px}.ep-cancelled{flex-direction:column;gap:4px;padding:7px 8px;font-size:10px;min-height:57px}.ep-period{gap:8px;margin-bottom:10px}.ep-period label{font-size:12px;gap:6px}.ep-period input{width:158px;font-size:14px;padding:8px}.ep-summary{gap:10px}.ep-metric{padding:14px;border-radius:16px}.ep-metric-icon{width:34px;height:34px;border-radius:10px;margin-bottom:13px}.ep-metric-icon .ui-icon{width:20px;height:20px}.ep-metric h2{font-size:12px;line-height:1.5;min-height:36px;margin:0 0 8px}.ep-metric>strong{font-size:22px;line-height:1.35;overflow-wrap:normal}.ep-metric p{font-size:10px;line-height:1.55;margin-top:8px}.ep-general{padding:15px;border-radius:16px}.ep-general h2{font-size:14px}.ep-general dl{display:grid;grid-template-columns:1fr;gap:8px;margin-top:13px}.ep-general dl>div{font-size:11px}.ep-general dl>div:nth-child(3){border-top:1px solid #eee7f5;padding-top:8px}.ep-caption{font-size:10px}.ep-accounting{margin:10px 0 15px;font-size:11px}.ep-list-heading{margin-bottom:9px}.ep-list-heading h2{font-size:18px}.ep-list-heading button{font-size:12px}.ep-search{padding:0 11px;gap:8px;border-radius:12px}.ep-search input{font-size:16px;min-height:46px}.ep-search input::placeholder{font-size:12px}.ep-filter-box summary{font-size:12px;min-height:40px;padding:7px 11px}.ep-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;padding:12px}.ep-filter-grid select,.ep-filter-grid input{font-size:16px;padding:8px;min-height:44px;width:100%}.ep-filter-grid label{font-size:11px}.ep-tools{margin-bottom:11px;gap:8px}.ep-list-caption{padding:9px 11px;font-size:11px}.ep-list-caption strong{font-size:12px}.ep-list-help{margin:8px 2px 10px;font-size:10px}.ep-records{border-radius:15px}.ep-page .ep-row{padding:14px 10px;grid-template-columns:34px minmax(0,1fr) minmax(84px,.62fr) 10px;column-gap:9px;row-gap:4px}.ep-row-icon{width:34px;height:38px;border-radius:10px;align-self:start}.ep-row-icon .ui-icon{width:20px;height:20px}.ep-row-main>strong{font-size:12px;line-height:1.45}.ep-row-main{gap:4px}.ep-row-meta{font-size:10px}.ep-row-method{font-size:10px}.ep-row-amount{font-size:12px;line-height:1.45;gap:5px}.ep-row-arrow .ui-icon{width:12px;height:12px}.ep-row-category .ep-badge{font-size:9px;padding:3px 6px}.ep-status{font-size:9px;padding:4px 5px}.ep-detail.modal{padding:15px;border-radius:18px}.ep-detail .ui-dialog-title h2{font-size:17px}.ep-detail .ui-dialog-head{gap:8px;padding-bottom:13px}.ep-detail-hero{padding:16px 12px;gap:10px;flex-wrap:wrap}.ep-detail-hero .ep-row-icon{width:44px;height:54px;border-radius:12px}.ep-detail-hero .ep-row-icon .ui-icon{width:24px;height:24px}.ep-detail-hero h2{font-size:15px}.ep-detail-hero strong{font-size:22px}.ep-detail-hero>.ep-status{margin-inline-start:54px}.ep-detail-panel{padding:15px}.ep-detail-panel h3{font-size:14px;margin-bottom:17px}.ep-detail-grid{gap:13px}.ep-detail-grid dt{font-size:11px}.ep-detail-grid dd{font-size:12px}.ep-detail-actions{gap:8px}.ep-detail .btn{font-size:12px;padding:9px 11px}.ep-attachments a{width:calc(50% - 6px)}.ep-payments article{flex-wrap:wrap}.ep-payments strong{font-size:14px}}
@media(prefers-reduced-motion:reduce){.ep-page .ep-row{transition:none}}

.ep-metric>strong small{display:block;font-size:12px;font-weight:600;letter-spacing:0;color:#6e607d;margin-top:3px}.ep-metric>strong bdi{overflow-wrap:anywhere}

[dir=rtl] .ep-page .ep-hero:after{background:linear-gradient(260deg,#faf8fff5 2%,#f3ecffee 45%,#b98ded66 100%)}.ep-general dd{direction:ltr;unicode-bidi:isolate}

/* Expense input library: in-flow menu keeps the mobile keyboard and form usable. */
.el-field{min-width:0}.el-input-row{display:flex;gap:8px;align-items:stretch}.el-input-row textarea{flex:1;min-width:0;width:100%;resize:vertical;font-size:16px}.el-input-row>.btn{flex:0 0 44px;padding:8px}.el-menu{padding:10px;background:#fff;border:1px solid #ddd6fe;border-radius:14px;box-shadow:0 8px 22px #6d28d911}.el-menu[hidden],.el-field [hidden]{display:none!important}.el-menu label,.el-settings-body>label{display:block;font-size:13px;color:#55496b}.el-menu select,.el-settings input[type=date],.el-settings select{width:100%;min-width:0;box-sizing:border-box;font-size:16px}.el-options{max-height:240px;overflow-y:auto;overscroll-behavior:contain;margin-top:8px}.el-options button{display:flex;flex-direction:column;align-items:flex-start;text-align:start;gap:4px;width:100%;min-height:48px;padding:10px 12px;border:0;border-radius:9px;background:#fff;color:#302440;white-space:normal;overflow-wrap:anywhere;cursor:pointer}.el-options button:hover,.el-options button[aria-selected=true],.el-options button:focus-visible{background:#f2edff;outline:2px solid #8b5cf6;outline-offset:-2px}.el-options button span{font-size:12px;color:#756887}.el-group{font-size:12px;font-weight:700;color:#7c3aed;background:#faf7ff;padding:8px 10px}.el-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.el-chips button{max-width:100%;min-height:40px;border:1px solid #e3d8ff;background:#f8f5ff;color:#6941aa;border-radius:12px;padding:8px 10px;text-align:start;white-space:normal;overflow-wrap:anywhere}.el-frequent:not(:empty){padding:10px 0}.el-settings{border:1px solid #e5dcf5;border-radius:12px;padding:12px;background:#fcfaff}.el-settings summary{color:#6d28d9;cursor:pointer;min-height:28px;font-weight:600;overflow-wrap:anywhere}.el-settings-body{display:grid;gap:12px;margin-top:12px}.el-settings-body input[type=checkbox]{accent-color:#7c3aed;width:18px;height:18px;vertical-align:middle}.el-actions{display:flex;flex-wrap:wrap;gap:8px}.el-actions>.btn{min-height:44px;white-space:normal;overflow-wrap:anywhere}.el-status{overflow-wrap:anywhere;min-height:1em;color:#6d28d9}.el-reminder{padding:14px;border:1px solid #e7def5;border-radius:14px;margin:10px 0;overflow-wrap:anywhere}.el-reminders-open{margin:8px 0 16px;min-height:44px}.el-reminder p{margin:8px 0}
@media(max-width:480px){.el-options{max-height:190px}.el-actions>.btn{flex:1 1 130px}.el-settings{padding:10px}.el-menu{padding:7px}}

/* Expenses V3.2: compact capture and separate company reference libraries. */
.el-expense-modal{width:min(100%,640px);max-width:640px;max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain;scroll-padding-block:76px;background:#fff;color:#29233b}
.el-expense-modal .ui-form-head{padding-bottom:12px;margin-bottom:8px;border-bottom:1px solid #eee9f5}
.el-expense-modal .ui-form-head h2{font-size:1.2rem;margin:0}
.el-expense-modal .form-grid{gap:12px;grid-template-columns:minmax(0,1fr)}
.el-expense-modal .field{min-width:0;margin:0;gap:5px}
.el-expense-modal .input,.el-expense-modal .select,.el-expense-modal .custom-select-button{min-height:44px;box-sizing:border-box;border-radius:10px;border-color:#e4ddef;font-size:16px;width:100%;max-width:100%}
.el-expense-modal .expense-type-picker{padding:0;border:0;margin:0 0 2px}
.el-expense-modal .expense-type-picker legend{font-weight:600;font-size:.84rem;margin-bottom:6px}
.el-expense-modal .expense-type-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.el-expense-modal .expense-type-option{padding:9px 12px;border:1px solid #e5dcef;border-radius:10px;background:#faf8fd;min-height:44px;box-sizing:border-box}
.el-expense-modal .expense-type-option:has(input:checked){background:#f1eaff;border-color:#8b5cf6;color:#6d28d9}
.el-expense-modal #expense-scope-hint{display:none}
.el-expense-modal [data-expense-operation-guidance]:empty{display:none}
.el-expense-modal .el-amount-date{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.el-expense-modal .el-field{position:relative}
.el-input-row{display:flex;gap:6px;align-items:center;min-width:0}
.el-input-row>.input{flex:1;min-width:0}
.el-input-row>.btn{flex:0 0 44px;min-height:44px;padding:8px}
.el-field .el-menu{position:absolute;inset-inline:0;z-index:8;box-sizing:border-box;display:flex;flex-direction:column;border:1px solid #e0d4f4;border-radius:12px;background:#fff;box-shadow:0 8px 24px #4c1d9524;padding:4px;max-width:100%;overflow:hidden}
.el-field [role=listbox]{position:relative;display:block;max-height:260px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;touch-action:pan-y;scrollbar-gutter:stable;flex-shrink:1}
.el-field [role=option]{box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;text-align:start;gap:2px;width:100%;height:52px;min-height:52px;padding:6px 10px;border:0;border-radius:8px;background:white;color:#332b47;cursor:pointer}
.el-field [role=option] strong,.el-field [role=option] span{display:block;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:18px}
.el-field [role=option]:hover,.el-field [role=option][aria-selected=true]{background:#f3edff}
.el-field [role=option] span{font-size:.75rem;color:#766887}
.el-menu-actions{display:flex;flex-wrap:wrap;flex-shrink:0;gap:4px;border-top:1px solid #eee7f7;padding:5px}
.el-menu-actions button{border:0;background:#faf7ff;color:#6d28d9;min-height:40px;padding:6px 9px;border-radius:8px;font:inherit;font-size:.8rem;cursor:pointer}
.el-proposal{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#faf5ff;border-radius:9px;padding:8px;font-size:.8rem;margin-top:6px}
.el-status:empty{display:none}.el-status{margin:4px 0 0;color:#6d28d9;font-size:.8rem;overflow-wrap:anywhere}
.el-expense-modal .expense-category-menu{position:relative;max-height:300px;overflow-y:auto;overscroll-behavior:contain;margin-top:6px}
.el-expense-modal .expense-category-options{max-height:200px;overflow-y:auto}
.el-expense-modal .expense-category-options button{display:flex;flex-direction:column;gap:3px;min-height:48px;text-align:start;white-space:normal}
.el-expense-modal .expense-category-options small{font-size:.73rem;color:#786a89}
.el-settings,.el-secondary{border:1px solid #e9e2f2;border-radius:10px;background:#fcfaff;min-width:0}
.el-settings>summary,.el-secondary>summary{cursor:pointer;padding:11px 12px;font-size:.85rem;font-weight:600;color:#625071;min-height:44px;box-sizing:border-box}
.el-settings-body{padding:10px 12px;display:grid;gap:12px}.el-settings-body label{font-size:.85rem}.el-settings-body .small{margin:0}
.el-secondary .el-actions{padding:0 12px 12px}
.el-expense-modal .modal-actions{position:sticky;bottom:-1px;background:#fff;z-index:5;padding:12px 0 max(8px,env(safe-area-inset-bottom));margin-top:12px;border-top:1px solid #eee7f7;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.el-expense-modal .modal-actions .btn{min-height:46px}
.el-expense-modal .fl-expense-section{margin:0;padding:10px;border-radius:10px}
.el-ledger-tools,.el-actions{display:flex;flex-wrap:wrap;gap:8px}.el-ledger-tools{margin:10px 0}.el-ledger-tools .el-reminders-open{margin:0}
.el-library-modal{width:min(100%,780px);max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain;scroll-padding:80px}
.el-library-modal *{box-sizing:border-box}.el-library-modal input,.el-library-modal select{max-width:100%;min-height:44px;font-size:16px;min-width:0}
.el-library-modal .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.el-library-tabs{display:flex;gap:8px;margin-bottom:14px}.el-library-tabs button{flex:1;padding:12px;border:1px solid #e4daef;border-radius:10px;background:white;font:inherit;color:#695775;cursor:pointer}.el-library-tabs [aria-pressed=true]{background:#f1eaff;border-color:#a78bfa;color:#6d28d9;font-weight:650}
.el-library-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:center}.el-library-tools>label{font-size:.8rem}.el-library-tools input[type=checkbox]{min-height:auto}
.el-library-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #ede7f6;overflow-wrap:anywhere}.el-library-card p{margin:3px 0;color:#6c5a7c;font-size:.82rem}.el-library-card small{color:#8a7b99}.el-library-card .btn{min-height:40px;font-size:.78rem;padding:7px 10px}.el-library-card>div{min-width:0}
.el-editor label{display:grid;gap:6px;font-size:.85rem}.el-editor input[type=checkbox]{min-height:0}.el-confirm{margin-top:16px}.el-error,[data-error]{color:#b4233c;font-size:.85rem}
.el-library-modal [hidden],.el-expense-modal [hidden]{display:none!important}
@media(min-width:440px){.el-expense-modal .el-amount-date{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media(max-width:600px){.modal-back:has(.el-expense-modal),.modal-back:has(.el-library-modal){padding:8px;align-items:flex-start}.el-expense-modal,.el-library-modal{padding:16px 12px;max-height:calc(100dvh - 16px);width:100%;border-radius:16px}.el-library-card{align-items:flex-start;flex-direction:column}.el-library-tools,.el-library-modal .form-grid{grid-template-columns:minmax(0,1fr)}.el-library-modal .field.full{grid-column:auto}}
.el-expense-modal{padding:20px}
.el-expense-modal .el-settings,.el-expense-modal .el-secondary{padding:0}
.el-expense-modal .modal-actions{margin:12px 0 0;width:100%}
.el-expense-modal .btn.accent,.el-library-modal .btn.accent{background:#7c3aed;color:#fff;border-color:#7c3aed}
.el-expense-modal .btn.accent:hover,.el-library-modal .btn.accent:hover{background:#6d28d9}
.el-library-modal{padding:20px}.el-library-modal .modal-actions{position:sticky;bottom:0;margin:14px 0 0;width:100%;background:white;padding:12px 0}
@media(max-width:600px){.el-expense-modal,.el-library-modal{padding:16px 12px}}
.modal-back .el-expense-modal,.modal-back .el-library-modal{padding-bottom:max(16px,env(safe-area-inset-bottom))}
.el-category-label-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
.el-category-plus{border:1px solid #e3d8f5;border-radius:8px;background:#f7f2ff;color:#6d28d9;min-width:40px;min-height:36px;font-size:20px;line-height:1;cursor:pointer;margin-block:-5px}
