:root{--color-bg:#f7f7f8;--color-surface:#fff;--color-text:#1e293b;--color-text-muted:#64748b;--color-border:#e2e5ea;--color-accent:#2563eb;--color-accent-contrast:#fff;--color-accent-soft:#eff6ff;--color-gray:#94a3b8;--color-green:#16a34a;--color-red:#dc2626;--color-red-soft:#fef2f2;--radius-md:12px;--radius-lg:18px;--safe-bottom:env(safe-area-inset-bottom,0px);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}:root[data-theme=dark]{--color-bg:#0f172a;--color-surface:#1e293b;--color-text:#e2e8f0;--color-text-muted:#94a3b8;--color-border:#334155;--color-accent:#3b82f6;--color-accent-contrast:#fff;--color-accent-soft:#3b82f626;--color-gray:#64748b;--color-green:#22c55e;--color-red:#ef4444;--color-red-soft:#ef444426;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}:root[data-theme=bamboo]{--color-bg:#f2f2f2;--color-surface:#fff;--color-text:#2b2b2b;--color-text-muted:#8a8a8a;--color-border:#e0e0e0;--color-accent:#009657;--color-accent-contrast:#fff;--color-accent-soft:#e3f5ec;--color-gray:#b0b0b0;--color-green:#22c55e;--color-red:#dc2626;--color-red-soft:#fef2f2;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}*{box-sizing:border-box}html,body{margin:0;padding:0}body{background:var(--color-bg);color:var(--color-text);-webkit-tap-highlight-color:transparent;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}#root{min-height:100vh}a{color:inherit;text-decoration:none}button{font-family:inherit}input,select,textarea{font-family:inherit;font-size:16px}.app-layout{flex-direction:column;min-height:100vh;display:flex}.app-layout__content{padding-bottom:calc(76px + var(--safe-bottom));flex:1}.page{max-width:560px;margin:0 auto;padding:20px 16px 24px}.page__header h1{margin:4px 0 16px;font-size:22px;font-weight:700}.app-header{background:var(--color-accent);border-radius:0 0 var(--radius-lg) var(--radius-lg);align-items:center;gap:10px;margin:-20px -16px 20px;padding:22px 16px 20px;display:flex;box-shadow:0 4px 16px #0000002e}.app-header__icon{font-size:26px;line-height:1}.app-header__title{color:#fff;letter-spacing:-.01em;flex:1;margin:0;font-size:21px;font-weight:800}.app-header__version{color:#fff;background:#ffffff38;border-radius:999px;flex-shrink:0;padding:3px 9px;font-size:11px;font-weight:700}.info-banner{border-radius:var(--radius-lg);background:var(--color-accent);flex-direction:column;gap:10px;margin-bottom:14px;padding:14px 16px;display:flex;box-shadow:0 4px 14px #0000002e}.info-banner__text{color:#fff;margin:0;font-size:13px;font-weight:600;line-height:1.35;animation:.4s info-banner-fade}.info-banner__actions{justify-content:space-between;align-items:center;gap:8px;display:flex}.info-banner__nav{align-items:center;gap:6px;display:flex}.info-banner__nav-btn{color:#fff;cursor:pointer;background:0 0;border:none;padding:2px 4px;font-size:18px;font-weight:700;line-height:1}.info-banner__dismiss{color:#fff;cursor:pointer;background:#ffffff38;border:1px solid #fff6;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:24px;height:24px;font-size:12px;display:flex}.info-banner__count{color:#ffffffd9;font-size:11px;font-weight:600}@keyframes info-banner-fade{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.profile-page__version{text-align:center;color:var(--color-text-muted);margin-top:20px;font-size:12px}.bottom-nav{background:var(--color-surface);border-top:1px solid var(--color-border);padding-bottom:var(--safe-bottom);z-index:20;display:flex;position:fixed;bottom:0;left:0;right:0}.bottom-nav__item{min-height:56px;color:var(--color-text-muted);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2px;padding:10px 0;font-size:12px;display:flex}.bottom-nav__icon{font-size:20px;line-height:1}.bottom-nav__item--active{color:var(--color-accent);font-weight:600}.button{border-radius:var(--radius-md);cursor:pointer;border:none;justify-content:center;align-items:center;gap:6px;min-height:44px;padding:10px 18px;font-size:15px;font-weight:600;display:inline-flex}.button--primary{background:var(--color-accent);color:var(--color-accent-contrast)}.button--secondary{background:var(--color-surface);color:var(--color-text);border:1px solid var(--color-border)}.button--danger{background:var(--color-red);color:#fff}.button--danger-outline{background:var(--color-surface);color:var(--color-red);border:1px solid var(--color-red)}.button--small{min-height:36px;padding:6px 14px;font-size:13px}.button:disabled{opacity:.6;cursor:default}.search-row{align-items:center;gap:10px;margin-bottom:12px;display:flex}.search-bar{flex:1;min-width:0}.search-bar input{border-radius:var(--radius-md);border:1px solid var(--color-border);background:var(--color-surface);width:100%;min-height:44px;padding:10px 14px}.filter-chips{scrollbar-width:none;gap:8px;margin-bottom:12px;padding-bottom:4px;display:flex;overflow-x:auto}.filter-chips::-webkit-scrollbar{display:none}.chip{border:1px solid var(--color-border);background:var(--color-surface);min-height:36px;color:var(--color-text-muted);white-space:nowrap;cursor:pointer;border-radius:999px;flex:none;padding:6px 14px;font-size:13px}.chip--active{background:var(--color-accent);border-color:var(--color-accent);color:var(--color-accent-contrast)}.filter-chips--wrap{flex-wrap:wrap;overflow-x:visible}.filters-button{white-space:nowrap;flex-shrink:0}.filters-button--active{border-color:var(--color-accent);color:var(--color-accent)}.filters-clear{color:var(--color-accent);cursor:pointer;background:0 0;border:none;margin-bottom:12px;padding:0;font-size:13px;font-weight:600;display:block}.filter-sheet__label{color:var(--color-text-muted);margin:16px 0 8px;font-size:13px;font-weight:600}.periode-groups{flex-direction:column;gap:20px;display:flex}.periode-group__title{color:var(--color-text-muted);text-transform:capitalize;margin:0 0 8px;font-size:14px;font-weight:700}.notes-section{margin-bottom:24px}.notes-section__header{justify-content:space-between;align-items:center;margin-bottom:10px;display:flex}.notes-section__header h2{margin:0;font-size:17px;font-weight:700}.empty-text{color:var(--color-text-muted);padding:12px 0;font-size:14px}.error-text{color:var(--color-red);font-size:14px}.notes-list{flex-direction:column;gap:10px;display:flex}.note-card{background:var(--color-surface);border-radius:var(--radius-lg);border:1px solid var(--color-border);align-items:flex-start;gap:12px;padding:14px;display:flex}.note-card--link{cursor:pointer}.note-card__media{flex:none}.note-card__thumb{border-radius:var(--radius-md);border:1px solid var(--color-border);object-fit:cover;width:56px;height:56px;display:block}.note-card__thumb--empty{background:var(--color-red-soft,#0000000a);color:var(--color-text-muted);opacity:.55;justify-content:center;align-items:center;font-size:22px;display:flex}.note-card__body{flex:1;min-width:0}.note-card__top,.note-detail-card__top{justify-content:space-between;align-items:center;gap:8px;display:flex}.note-card__top{margin-bottom:8px}.note-card__top-left,.note-detail-card__top-left{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.note-card__top-left{min-width:0}.note-card__main{justify-content:space-between;align-items:baseline;margin-bottom:4px;display:flex}.note-card__marchand{font-size:15px;font-weight:600}.note-card__montant{font-size:16px;font-weight:700}.note-card__bottom{color:var(--color-text-muted);flex-direction:column;gap:2px;font-size:13px;display:flex}.reference-badge{background:var(--color-accent-soft);color:var(--color-accent);letter-spacing:.02em;white-space:nowrap;border-radius:999px;align-items:center;padding:3px 10px;font-family:monospace;font-size:12px;font-weight:600;display:inline-flex}.note-card__description{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.status-badge{color:#fff;background:var(--color-gray);border-radius:999px;align-items:center;padding:3px 10px;font-size:12px;font-weight:600;display:inline-flex}.status-badge--brouillon{background:var(--color-gray)}.status-badge--soumis{background:var(--color-accent)}.status-badge--valide{background:var(--color-green)}.status-badge--refuse{background:var(--color-red)}.category-badge{color:var(--color-text-muted);align-items:center;gap:6px;font-size:13px;display:inline-flex}.category-badge__icon{font-size:16px}.back-to-top{right:20px;bottom:calc(88px + var(--safe-bottom));border:1px solid var(--color-border);background:var(--color-surface);width:44px;height:44px;color:var(--color-accent);cursor:pointer;z-index:15;border-radius:50%;justify-content:center;align-items:center;font-size:20px;font-weight:700;display:flex;position:fixed;box-shadow:0 4px 12px #00000026}.sheet-overlay{z-index:30;background:#0f172a73;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{background:var(--color-surface);border-radius:var(--radius-lg) var(--radius-lg) 0 0;width:100%;max-width:560px;padding:20px 20px calc(20px + var(--safe-bottom))}.sheet h2{margin:0 0 10px;font-size:18px}.sheet__actions{gap:10px;margin-top:16px;display:flex}.sheet__actions .button{flex:1}.submit-message{color:var(--color-accent);background:var(--color-accent-soft);border-radius:var(--radius-md);padding:10px 12px;font-size:14px}.note-form{flex-direction:column;gap:16px;display:flex}.reference-callout{border-radius:var(--radius-md);background:var(--color-accent-soft);border:1px dashed var(--color-accent);flex-direction:column;align-items:center;gap:4px;margin-bottom:16px;padding:14px;display:flex}.reference-callout__label{color:var(--color-text-muted);text-align:center;font-size:12px}.reference-callout__value{letter-spacing:.05em;color:var(--color-accent);font-family:monospace;font-size:20px;font-weight:700}.field{flex-direction:column;gap:6px;display:flex}.field__label{color:var(--color-text-muted);font-size:13px;font-weight:600}.field__hint{color:var(--color-text-muted);margin:-2px 0 8px;font-size:12px}.field input,.field select,.field textarea{border-radius:var(--radius-md);border:1px solid var(--color-border);background:var(--color-surface);min-height:44px;color:var(--color-text);padding:10px 12px}.field textarea{resize:vertical;min-height:80px}.field-row{gap:12px;display:flex}.field-row .field{flex:1;min-width:0}.field-row .field input,.field-row .field select{width:100%}.tva-lignes{flex-direction:column;gap:8px;display:flex}.tva-ligne{align-items:center;gap:8px;display:flex}.tva-ligne select{flex:0 0 90px}.tva-ligne input{flex:1;min-width:0}.tva-ligne__remove{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface);width:32px;height:32px;color:var(--color-red);cursor:pointer;flex:none;line-height:1}.tva-lignes__footer{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.tva-lignes__total{color:var(--color-text);font-size:13px;font-weight:600}.photo-capture-button{width:fit-content;display:inline-flex}.photo-capture-button.is-disabled{opacity:.6;pointer-events:none}.receipt-loading{color:var(--color-text-muted);align-items:center;gap:8px;margin:10px 0 0;font-size:13px;display:flex}.receipt-steps{flex-direction:column;gap:6px;margin:10px 0 0;padding:0;list-style:none;display:flex}.receipt-step{color:var(--color-text-muted);align-items:center;gap:8px;font-size:13px;line-height:1.3;display:flex}.receipt-step__icon{flex:none;justify-content:center;align-items:center;width:16px;height:16px;display:inline-flex}.receipt-step--ok .receipt-step__icon{color:var(--color-green)}.receipt-step--fail .receipt-step__icon{color:var(--color-red)}.receipt-step--ok{color:var(--color-text)}.spinner{border:2px solid var(--color-border);border-top-color:var(--color-primary,#2563eb);border-radius:50%;flex:none;width:16px;height:16px;animation:.7s linear infinite spinner-rotate}@keyframes spinner-rotate{to{transform:rotate(360deg)}}.photo-preview{border-radius:var(--radius-md);border:1px solid var(--color-border);object-fit:cover;max-width:100%;max-height:220px;margin-top:10px}.receipt-status{border-radius:var(--radius-md);margin:10px 0 0;padding:8px 10px;font-size:13px;line-height:1.4}.receipt-status--ok{color:var(--color-green);background:#16a34a1a}.receipt-status--error{color:var(--color-red);background:var(--color-red-soft)}.receipt-status__cost{color:var(--color-text-muted)}.note-detail-card__photo{margin-top:16px}.note-detail-card__photo .field__label{display:block}.note-detail-card__photo .photo-preview{cursor:zoom-in}.lightbox{z-index:1000;overscroll-behavior:contain;background:#000000eb;position:fixed;inset:0;overflow:auto}.lightbox__img{object-fit:contain;cursor:zoom-in;-webkit-user-select:none;user-select:none;max-width:100%;min-height:100%;margin:auto;display:block}.lightbox__img--zoomed{object-fit:none;cursor:zoom-out;width:auto;max-width:none;min-height:0;margin:0}.lightbox__close{color:#fff;cursor:pointer;background:#0000008c;border:none;border-radius:50%;width:40px;height:40px;font-size:26px;line-height:1;position:fixed;top:10px;right:14px}.note-form__actions{gap:10px;margin-top:8px;display:flex}.note-form__actions .button{flex:1}.note-detail-page__actions{flex-direction:column;gap:10px;display:flex}.note-detail-page__actions .button{width:100%}.note-detail-card{background:var(--color-surface);border-radius:var(--radius-lg);border:1px solid var(--color-border);margin-bottom:16px;padding:18px}.note-detail-card__top{margin-bottom:12px}.note-detail-card__montant{margin-bottom:16px;font-size:28px;font-weight:700}.note-detail-card__fields{grid-template-columns:auto 1fr;gap:8px 16px;margin:0;display:grid}.note-detail-card__fields dt{color:var(--color-text-muted);font-size:13px}.note-detail-card__fields dd{text-align:right;margin:0;font-size:14px}.note-detail-card__comment{border-radius:var(--radius-md);background:var(--color-red-soft);color:var(--color-red);margin-top:16px;padding:12px;font-size:14px}.note-detail-card__comment p{white-space:pre-line;margin:4px 0 0}.login-page{justify-content:center;align-items:center;min-height:100vh;padding:24px;display:flex}.login-page__card{background:var(--color-surface);border-radius:var(--radius-lg);border:1px solid var(--color-border);text-align:center;flex-direction:column;align-items:center;gap:12px;width:100%;max-width:360px;padding:32px 24px;display:flex}.login-page__logo{font-size:40px}.login-page__title{margin:0;font-size:22px;font-weight:700}.login-page__subtitle{color:var(--color-text-muted);margin:0 0 12px;font-size:14px}.login-page__error{color:var(--color-red);font-size:13px}.login-page__google{justify-content:center;min-height:44px;margin:8px 0;display:flex}.login-page__divider{color:var(--color-text-muted);align-items:center;gap:10px;margin:16px 0 8px;font-size:12px;display:flex}.login-page__divider:before,.login-page__divider:after{content:"";background:var(--color-border);flex:1;height:1px}.profile-page__card{background:var(--color-surface);border-radius:var(--radius-lg);border:1px solid var(--color-border);text-align:center;flex-direction:column;align-items:center;gap:6px;margin-bottom:20px;padding:24px;display:flex}.profile-page__avatar{background:var(--color-accent);color:#fff;border-radius:50%;justify-content:center;align-items:center;width:64px;height:64px;margin-bottom:8px;font-size:26px;font-weight:700;display:flex}.profile-page__name{font-size:17px;font-weight:700}.profile-page__email{color:var(--color-text-muted);font-size:14px}.profile-page__role{color:var(--color-text-muted);text-transform:uppercase;letter-spacing:.04em;font-size:12px}.profile-page__logout{width:100%}.profile-page__section{margin-bottom:20px}.theme-options{gap:8px;margin-top:8px;display:flex}.help-page__lead{color:var(--color-text-muted);margin:0 0 16px;font-size:14px;line-height:1.45}.help-card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);margin-bottom:16px;padding:16px}.help-card__title{margin:0 0 12px;font-size:16px;font-weight:700}.help-card__note{color:var(--color-text-muted);margin:12px 0 0;font-size:13px;line-height:1.45}.help-timeline{flex-direction:column;gap:12px;margin:0;padding:0;list-style:none;display:flex}.help-timeline__item{border-radius:var(--radius-md);background:var(--color-bg);border:1px solid var(--color-border);flex-direction:column;gap:4px;padding:12px;display:flex}.help-timeline__item--highlight{background:var(--color-accent-soft);border-color:var(--color-accent)}.help-timeline__date{color:var(--color-accent);font-size:14px;font-weight:700}.help-timeline__text{font-size:13px;line-height:1.45}.help-list{flex-direction:column;gap:8px;margin:0;padding-left:18px;font-size:14px;line-height:1.45;display:flex}.help-alert{border-radius:var(--radius-md);background:var(--color-red-soft);border:1px solid var(--color-red);gap:10px;margin-top:14px;padding:12px;display:flex}.help-alert__icon{flex-shrink:0;font-size:18px;line-height:1.45}.help-alert__text{color:var(--color-text);margin:0;font-size:13px;line-height:1.45}.help-supplier__fields{flex-direction:column;gap:8px;margin:12px 0 0;display:flex}.help-supplier__row{border-radius:var(--radius-md);background:var(--color-bg);border:1px solid var(--color-border);flex-direction:column;gap:2px;padding:10px 12px;display:flex}.help-supplier__label{color:var(--color-text-muted);font-size:12px}.help-supplier__value{justify-content:space-between;align-items:center;gap:10px;margin:0;font-size:15px;font-weight:600;display:flex}.help-supplier__value span{word-break:break-word;min-width:0}.help-copy{border-radius:var(--radius-md);border:1px solid var(--color-border);background:var(--color-surface);width:32px;height:32px;color:var(--color-accent);cursor:pointer;flex-shrink:0;justify-content:center;align-items:center;font-size:15px;display:flex}.help-supplier__copy-all{width:100%;margin-top:12px}.supplier-card{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface);margin-top:14px;padding:14px}.supplier-card__name{word-break:break-word;margin-bottom:10px;font-size:14px;font-weight:700}.supplier-card__fields{grid-template-columns:auto 1fr;align-items:baseline;gap:8px 14px;margin:0;display:grid}.supplier-card__label{color:var(--color-text-muted);font-size:13px}.supplier-card__value{justify-content:space-between;align-items:center;gap:8px;margin:0;font-size:14px;font-weight:600;display:flex}.supplier-card__value span{word-break:break-word;min-width:0}.help-supplier__instruction{border-radius:var(--radius-md);background:var(--color-accent-soft);color:var(--color-text);margin:14px 0 0;padding:12px;font-size:14px;font-style:italic;line-height:1.45}
