:root{--shadow:none;--line:#dfe5d9;--muted:#697764}.app-header-inner{min-height:76px;padding-top:10px;padding-bottom:10px;gap:25px}.app-header .brand img{height:44px;width:40px}.app-header .brand b{font-size:20px}.main-nav{font-size:13px;padding:10px 15px;min-height:40px}.header-tools{display:flex;align-items:center;gap:12px}.chat-launcher{display:flex;align-items:center;gap:7px;min-height:40px;border:0;border-radius:7px;background:none;font-size:12px;color:#617259;padding:8px}.chat-launcher:hover,.chat-launcher.active{background:#eaf0e1;color:#275641}.chat-launcher svg{width:18px;height:18px}.chat-launcher b,.room-choice>b{background:#275641;color:#fff;border-radius:12px;min-width:19px;height:19px;padding:2px 5px;font-size:10px;text-align:center}.chat-launcher b[hidden]{display:none}.simple-main{padding:26px 28px;max-width:1240px}.simple-main .page-heading{margin-bottom:20px}.simple-main .page-heading h1{font-size:27px}.simple-main .page-heading p{font-size:12px;margin-top:6px}.simple-main .btn{min-height:36px;padding:8px 12px;font-size:12px;border-radius:6px}.simple-main .btn.small{min-height:33px;font-size:11px;padding:7px 10px}.simple-main .btn.primary{box-shadow:none}.quick-summary{margin-bottom:20px;border-radius:8px}.quick-summary>button,.quick-summary>div{padding:17px 19px}.quick-summary strong{font-size:23px}.purchase-tools{margin-bottom:12px;gap:10px}.purchase-tools .search,.purchase-tools select,.simple-select{min-height:40px;padding-top:9px;padding-bottom:9px;border-radius:6px}.results-heading{margin:11px 0}.purchase-grid{font-size:12px}.purchase-grid th,.purchase-grid td{padding:11px 10px}.purchase-grid thead th{font-size:12px}.grid-item-name{font-size:13px;line-height:1.45}.grid-item-meta,.grid-cell-note{font-size:10px;margin-top:4px}.purchase-grid .status{padding:4px 6px}.panel{border-radius:8px;box-shadow:none}.metrics{gap:14px;margin-bottom:19px}.simple-main .metric{border-radius:8px;padding:18px 20px}.simple-main .metric-number{font-size:28px;margin:10px 0 6px}.metric-context{font-size:11px}.note{padding:11px 14px;font-size:11px;margin-bottom:17px;border-radius:6px}.budget-grid,.settings-grid,.simple-main .partner-grid{gap:16px}.simple-main .budget-card,.simple-main .partner-card,.settings-section{padding:20px}.simple-main .budget-card .budget-numbers{margin:18px 0 12px}.budget-numbers strong{font-size:19px}.budget-numbers small{font-size:11px}.partner-limit{padding-top:14px}.partner-contact{margin-top:15px}.partner-card .budget-numbers{margin:18px 0}.partner-contact span,.partner-heading p{font-size:11px}.receipt-bottom{padding-top:12px;margin-top:13px}.billing-followup{margin-top:26px}.section-heading{margin-bottom:14px}.section-heading h2{font-size:17px}.section-heading p{font-size:11px}.partner-period{margin-bottom:17px}.partner-period input{min-height:38px}.shop-row{padding:16px 18px}.settings-section h2{margin-bottom:16px}.form-grid{gap:13px}.field{gap:6px}.field label{font-size:11px}.field input:not([type=checkbox]),.field select,.field textarea{min-height:37px;padding:8px 10px;font-size:13px;border-radius:6px}.field textarea{min-height:66px}.settings-section .btn{margin-top:16px}.settings-section .section-heading .btn{margin:0}.suppliers-section{grid-column:1/-1}.suppliers-section h2{display:flex;align-items:center;gap:7px;margin:0}.suppliers-section h2 svg{width:17px;height:17px}.directory-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:5px}.directory-table{width:100%;border-collapse:collapse;font-size:12px;min-width:600px}.directory-table th,.directory-table td{text-align:left;border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:10px 12px;font-weight:400;vertical-align:top;overflow-wrap:anywhere}.directory-table thead th{font-weight:600;background:#eef2e7;color:#5c7051;font-size:11px}.directory-table tbody th{font-weight:550;width:28%}.directory-table tr>:last-child{border-right:0}.directory-table tr:last-child>*{border-bottom:0}.directory-table tbody tr:nth-child(even){background:#fafbf8}.text-action{border:0;background:none;padding:0;color:#356a46;font-size:11px;text-decoration:underline;text-underline-offset:3px;min-height:28px}.text-action:hover{color:#173f23}.dialog-header{padding:20px 23px 16px}.dialog-header h2{font-size:20px}.dialog-body{padding:21px 23px}.dialog-actions{padding:14px 23px}.dialog-actions .btn{min-height:37px;padding:8px 12px;font-size:12px}.photo-upload{padding:13px}.photo-upload>.upload-icon{width:22px;height:22px;margin-bottom:6px}.photo-upload h3{font-size:12px}.photo-upload p{font-size:11px}.upload-buttons{margin-top:10px}.detail-hero{margin-bottom:16px}.detail-grid{margin:17px 0;gap:16px}.detail-documents{padding:15px;margin-top:17px}.workspace-footer{margin-top:26px;padding-top:14px;font-size:10px}.chat-notifications{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;font-size:12px;color:#76866b}.chat-notifications>span{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.chat-notifications>span>svg{width:16px;height:16px}.chat-notifications strong{font-weight:550;color:#405638}.chat-layout{display:grid;grid-template-columns:235px minmax(0,1fr);overflow:hidden;min-height:560px}.chat-conversations{border-right:1px solid var(--line);background:#fafbf8;min-width:0}.chat-sidebar-title{display:flex;align-items:center;justify-content:space-between;padding:14px;border-bottom:1px solid var(--line);font-size:12px}.chat-sidebar-title .btn{padding:6px;min-height:29px}.room-choice{width:100%;border:0;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:9px;padding:15px 12px;background:transparent;text-align:left;min-height:65px}.room-choice.selected{background:#eaf0e1}.room-choice>span:first-child{color:#849871}.room-choice svg{width:18px;height:18px}.room-choice>span:nth-child(2){min-width:0;flex:1}.room-choice strong{display:block;font-size:12px;font-weight:550;overflow-wrap:anywhere}.room-choice small{display:block;font-size:10px;color:#859474;margin-top:4px}.chat-current{display:flex;flex-direction:column;min-width:0;background:#fff}.chat-room-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);padding:15px 18px;min-height:60px}.chat-room-heading h2{font-size:15px;font-weight:600}.chat-room-heading span{font-size:10px;color:#81916f;max-width:50%;line-height:1.5}.chat-messages{height:420px;overflow:auto;padding:20px;background:#f9faf6;display:flex;flex-direction:column;gap:14px;overscroll-behavior:contain}.chat-empty{margin:auto;text-align:center;color:#8a977e;max-width:320px;font-size:12px;line-height:1.7}.chat-empty svg{width:29px;height:29px;margin-bottom:12px}.chat-empty h3{font-size:15px;font-weight:550;color:#607451;margin-bottom:6px}.chat-message{max-width:82%;align-self:flex-start;background:#fff;border:1px solid #e0e7d8;padding:12px 14px;border-radius:0 9px 9px 9px;min-width:120px}.chat-message.mine{align-self:flex-end;background:#eaf1e0;border-color:#dce6d0;border-radius:9px 0 9px 9px}.chat-message>div{display:flex;gap:15px;align-items:baseline;justify-content:space-between}.chat-message strong{font-size:10px;font-weight:600;color:#688050}.chat-message time{font-size:9px;color:#94a186;white-space:nowrap}.chat-message p{font-size:13px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:5px}.chat-help{margin-top:13px}.older-messages{align-self:center;margin-bottom:8px}#chat-compose{border-top:1px solid var(--line);padding:14px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}#chat-compose textarea{font:inherit;font-size:13px;line-height:1.5;border:1px solid var(--line);border-radius:7px;padding:11px;resize:vertical;min-height:60px;max-height:180px;width:100%;background:#fafbf8}#chat-compose .btn{min-height:42px}#chat-send-error{grid-column:1/-1;color:#a04d40;font-size:12px;line-height:1.5}#chat-send-error:empty{display:none}.notification-explanation{font-size:14px;line-height:1.8;margin-bottom:16px;color:#5d7350}
@media(max-width:1000px){.app-header-inner{gap:16px}.header-tools{gap:5px}.chat-launcher>span{display:none}.simple-main{padding:24px 20px}.chat-layout{grid-template-columns:200px minmax(0,1fr)}.chat-messages{padding:15px}}
@media(max-width:640px){.app-header-inner{padding:12px 16px 0;gap:12px}.header-tools{order:1;gap:2px}.main-navigation{order:2;padding-bottom:10px}.main-nav{font-size:12px;min-height:41px}.simple-main{padding:23px 15px}.simple-main .page-heading h1{font-size:24px}.simple-main .page-heading{gap:12px;margin-bottom:18px}.simple-main .btn{min-height:42px}.simple-main .btn.small{min-height:38px}.quick-summary>button,.quick-summary>div{padding:15px 10px}.quick-summary strong{font-size:20px}.quick-summary small{font-size:9px}.purchase-tools .search{min-height:44px}.purchase-tools select{min-height:42px;font-size:12px}.purchase-grid th,.purchase-grid td{padding:11px 9px}.metrics{gap:10px}.simple-main .metric{padding:16px}.simple-main .metric:first-child .metric-number{font-size:28px}.simple-main .metric-number{font-size:24px}.simple-main .budget-card,.simple-main .partner-card,.settings-section{padding:17px}.form-grid{gap:13px}.field input:not([type=checkbox]),.field select,.field textarea{min-height:42px;font-size:16px}.field label{font-size:12px}.dialog-header{padding:18px}.dialog-body{padding:18px}.dialog-actions{padding:13px 18px}.dialog-actions .btn{min-height:42px;font-size:12px}.chat-notifications{flex-wrap:wrap;gap:10px;font-size:11px}.chat-notifications>.btn{width:100%}.chat-layout{grid-template-columns:1fr;min-height:0}.chat-conversations{border-right:0;border-bottom:1px solid var(--line)}.chat-sidebar-title{padding:10px 13px}.chat-sidebar-title .btn{min-height:34px}#chat-room-list{max-height:160px;overflow-y:auto}.room-choice{padding:11px 13px;min-height:56px}.chat-room-heading{padding:12px 14px;min-height:52px}.chat-messages{height:45vh;min-height:250px;max-height:450px;padding:14px;gap:12px}.chat-message{max-width:90%;padding:11px 12px}.chat-message>div{gap:10px;flex-wrap:wrap}.chat-message p{font-size:13px}.chat-message time{font-size:9px}#chat-compose{padding:10px;grid-template-columns:minmax(0,1fr) 44px;gap:8px}#chat-compose textarea{font-size:16px;min-height:62px}#chat-compose .btn{font-size:0;min-width:44px;padding:10px}#chat-compose .btn svg{width:19px;height:19px}.suppliers-section .section-heading{gap:12px}.directory-table{font-size:12px;min-width:650px}.notification-explanation{font-size:13px}}
/* Keep the conversation and composer together on laptop screens. */
@media(min-width:641px){.chat-layout{height:clamp(420px,calc(100dvh - 310px),650px);min-height:0}.chat-current{height:100%;min-height:0}.chat-room-heading,#chat-compose{flex-shrink:0}.chat-messages{flex:1;min-height:160px;height:auto}.chat-conversations{overflow-y:auto}}
@media(max-width:640px){#chat-room-list{display:flex;overflow-x:auto;max-height:none}.room-choice{flex:0 0 185px;min-height:56px;border-bottom:0;border-right:1px solid var(--line)}.chat-messages{height:clamp(180px,calc(100dvh - 500px),330px);min-height:180px}.chat-room-heading span,.chat-message time{color:#67745e}.chat-help{line-height:1.5}}
/* A compact three-column list on phones; the full grid remains available on larger screens. */
.grid-mobile-name,.grid-mobile-meta,.grid-mobile-status.status,.grid-mobile-amount{display:none}
@media screen and (max-width:900px){
  .purchase-grid-scroll{overflow:visible;border-radius:6px}
  .grid-scroll-hint{display:none}
  .purchase-grid{min-width:0;width:100%;table-layout:fixed}
  .purchase-grid colgroup{display:none}
  .purchase-grid tr>:nth-child(3),.purchase-grid tr>:nth-child(5),.purchase-grid tr>:nth-child(6),.purchase-grid tr>:nth-child(7){display:none}
  .purchase-grid tr>:nth-child(2){width:48px;text-align:center}
  .purchase-grid tr>:nth-child(4){width:104px}
  .purchase-grid th,.purchase-grid td{padding:8px;vertical-align:middle}
  .purchase-grid thead th{padding:10px 8px;font-size:10px;letter-spacing:0}
  .purchase-grid thead th:nth-child(2){font-size:0}
  .purchase-grid thead th:nth-child(2)::after{content:'Qté';font-size:10px}
  .purchase-grid .grid-desktop-name,.purchase-grid .grid-desktop-meta,.purchase-grid .grid-desktop-status{display:none}
  .grid-mobile-name{display:flex;align-items:center;min-height:44px;font-size:13px;line-height:1.4;font-weight:600;color:#244e3b;text-decoration:none;overflow-wrap:anywhere}
  .grid-mobile-name>span{display:block;white-space:normal;overflow:visible}
  .grid-mobile-meta{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:10px;font-weight:400;line-height:1.5;color:#5f6d58}
  .grid-mobile-status.status{display:inline-flex;max-width:100%;font-size:10px;line-height:1.4;padding:4px 5px;white-space:nowrap}
  .grid-mobile-status.status::before{display:none}
  .grid-mobile-amount{display:block;color:#53614d;font-size:11px;font-variant-numeric:tabular-nums;line-height:1.35;margin-top:5px}
  .grid-mobile-amount small{font-size:9px;margin-left:4px}
  .purchase-grid .grid-cell-note{font-size:10px;line-height:1.3;margin-top:3px;color:#617054}
  .purchase-grid .priority-label{display:none}
  .purchase-grid .priority-soon{display:block;color:#a3482b;font-weight:600}
  .simple-main:has(.purchase-grid) .page-heading{flex-wrap:nowrap;gap:10px;margin-bottom:14px}
  .simple-main:has(.purchase-grid) .page-heading h1{font-size:22px}
  .simple-main:has(.purchase-grid) .page-heading p{display:none}
  .simple-main:has(.purchase-grid) .page-heading>.btn{width:44px;min-width:44px;height:44px;font-size:0;padding:12px;justify-content:center}
  .simple-main:has(.purchase-grid) .page-heading>.btn svg{width:20px;height:20px}
  .simple-main:has(.purchase-grid) .quick-summary{margin-bottom:14px}
  .simple-main:has(.purchase-grid) .quick-summary>button,.simple-main:has(.purchase-grid) .quick-summary>div{padding:12px 10px}
  .simple-main:has(.purchase-grid) .results-heading{margin:10px 0}
}
@media screen and (max-width:360px){.purchase-grid tr>:nth-child(2){width:40px}.purchase-grid tr>:nth-child(4){width:95px}.purchase-grid th,.purchase-grid td{padding:7px 6px}.grid-mobile-name{font-size:12px}.grid-mobile-status.status{font-size:9px}}

@media(max-width:640px){.main-nav{min-width:0;padding:10px 6px;gap:5px}}

/* One common school budget and a compact, editable buyer directory. */
.common-pot{padding:24px}.pot-overview{display:flex;align-items:center;justify-content:space-between;gap:20px}.pot-overview h2{font-size:16px;font-weight:600;margin:0 0 10px}.pot-total{font-size:32px;line-height:1.2;color:#254e3c;font-weight:600}.pot-overview p{font-size:12px;color:var(--muted);margin:7px 0 0}.pot-balance{text-align:right}.pot-balance>span{display:block;font-size:12px;color:var(--muted);margin-bottom:8px}.pot-balance>strong{font-size:29px;color:#254e3c;font-weight:600}.pot-balance.over-budget>strong,.pot-warning{color:#965328}.pot-figures{display:grid;grid-template-columns:1fr 1fr;border-block:1px solid var(--line);padding:18px 0;margin:22px 0 16px;gap:16px}.pot-figures span{display:block;font-size:12px;color:var(--muted);margin-bottom:7px}.pot-figures strong{font-size:20px;font-weight:600}.pot-warning{font-size:12px;line-height:1.6;margin:15px 0 0}.budget-explanation{font-size:12px;color:var(--muted);line-height:1.6;margin:14px 0 18px}.category-expenses{margin-top:18px;overflow:hidden}.category-expenses summary{padding:17px 20px;font-size:13px;font-weight:600;cursor:pointer}.category-expenses table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px}.category-expenses th,.category-expenses td{padding:12px 20px;border-top:1px solid var(--line);text-align:right;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.category-expenses th:first-child{text-align:left;width:50%}.category-expenses tbody th{font-weight:500}.category-expenses small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.buyers-section .section-heading{margin-bottom:12px;align-items:flex-start;gap:15px}.buyers-section h2{margin-bottom:7px}.buyers-section .section-heading p{font-size:12px;color:var(--muted);line-height:1.6}.buyer-people{list-style:none;padding:0;margin:0}.buyer-person{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid var(--line)}.buyer-person-name{font-size:14px;font-weight:500;overflow-wrap:anywhere;min-width:0}.buyer-person-actions{display:flex;gap:6px;flex-shrink:0}.inactive-buyers>summary{cursor:pointer;font-size:12px;padding:12px 0;color:var(--muted)}.buyers-section>.section-caption{font-size:11px;line-height:1.6;margin:12px 0 0}
@media(max-width:640px){.common-pot{padding:17px}.pot-overview{gap:12px;align-items:flex-start}.pot-total{font-size:27px}.pot-balance>strong{font-size:24px}.pot-balance>span{font-size:11px}.pot-overview h2{font-size:14px}.pot-overview p{font-size:10px}.pot-figures{padding:14px 0;margin:18px 0 14px;gap:12px}.pot-figures span{font-size:11px}.pot-figures strong{font-size:19px}.pot-warning,.budget-explanation{font-size:11px}.category-expenses summary{padding:15px}.category-expenses th,.category-expenses td{padding:11px 10px;font-size:11px}.buyer-person{flex-wrap:wrap;gap:8px}.buyer-person-actions{margin-left:auto}.buyers-section .section-heading{flex-wrap:wrap}.buyers-section .section-heading>.btn{flex-shrink:0}}

/* Compact daily workflow: separate requests and purchases, short controls and full titles. */
.app-header-inner{min-height:62px;padding:8px 22px;gap:18px}.app-header .brand img{height:36px;width:32px}.app-header .brand b{font-size:18px}.app-header .brand small{font-size:10px}.main-navigation{gap:5px}.main-nav{padding:8px 11px;gap:5px;font-size:12px;min-height:36px}.main-nav svg{width:16px;height:16px}.nav-count{display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;border-radius:9px;background:#275641;color:#fff;font-size:9px;padding:1px 4px}.simple-main{padding:18px 22px}.simple-main .page-heading,.simple-main:has(.purchase-grid) .page-heading{margin-bottom:12px;gap:10px}.simple-main .page-heading h1,.simple-main:has(.purchase-grid) .page-heading h1{font-size:23px}.simple-main .page-heading p:empty{display:none}.simple-main .page-heading p{font-size:11px;margin-top:4px}.simple-main .page-heading>.btn,.simple-main:has(.purchase-grid) .page-heading>.btn{width:auto;min-width:0;font-size:12px;height:auto;min-height:36px;padding:8px 12px}.demands-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.demands-heading .page-heading{margin:0!important}.simple-main .add-demand{min-height:44px;font-size:13px;padding:11px 17px;justify-content:center;font-weight:600}.demands-empty{padding:18px}.demands-empty h2{font-size:14px;font-weight:600;margin-bottom:6px}.demands-empty p{font-size:12px;color:var(--muted);line-height:1.5;margin:0}.rejected-demands{margin-top:14px}.rejected-demands>summary{font-size:12px;cursor:pointer;padding:8px 0}.quick-summary,.simple-main:has(.purchase-grid) .quick-summary{margin-bottom:10px;border-radius:6px}.quick-summary>button,.quick-summary>div,.simple-main:has(.purchase-grid) .quick-summary>button,.simple-main:has(.purchase-grid) .quick-summary>div{padding:9px 12px;gap:7px}.quick-summary strong{font-size:18px;line-height:1.2}.quick-summary small{margin-top:3px;font-size:10px;line-height:1.35}.quick-summary .summary-icon{display:none}.purchase-tools{gap:7px;margin-bottom:6px}.purchase-tools .search{min-height:36px;padding:7px 10px}.purchase-tools .search svg{width:16px;height:16px}.purchase-tools .search input{font-size:12px}.purchase-tools select{min-height:36px;padding:7px 9px;font-size:11px}.results-heading,.simple-main:has(.purchase-grid) .results-heading{min-height:20px;font-size:11px;margin:6px 0}.results-heading .btn{min-height:26px;padding:4px 8px}.purchase-grid{font-size:11px}.purchase-grid th,.purchase-grid td{padding:6px 8px}.purchase-grid thead th{font-size:10px;padding:8px}.grid-item-name{font-size:12px;line-height:1.35}.grid-item-meta{font-size:9px;line-height:1.35;margin-top:3px}.grid-cell-note{font-size:9px}.situation-select{display:block;width:100%;min-width:0;max-width:100%;min-height:32px;font:inherit;font-size:11px;padding:5px 18px 5px 6px;border:1px solid #cbd8bd;border-radius:4px;background:#f3f6ed;color:#36583e;cursor:pointer}.situation-select:disabled{opacity:1;color:#6c755f;cursor:default}.situation-select.pending{background:#faf3e5;border-color:#e4d5b5}.situation-select.purchased{background:#f3eef8;border-color:#dcd0e7}.situation-select.received{background:#eaf4ee;border-color:#c5decf}.situation-select.repair{background:#fbf0e5;border-color:#e4d1bb}.situation-select.rejected{background:#f7ece8;border-color:#e2c9c1}.situation-select:focus-visible{outline:2px solid #728b51;outline-offset:2px}
.chat-launcher{position:relative;min-width:38px;min-height:38px;justify-content:center;padding:8px;border:1px solid transparent}.chat-launcher>svg{width:20px;height:20px}.chat-launcher #chat-unread{position:absolute;top:-3px;right:-3px;display:flex;align-items:center;justify-content:center;min-width:17px;height:17px;padding:1px 4px;font-size:10px;line-height:1;background:#e7ece0;color:#526147;border:2px solid #fff;border-radius:10px}.chat-launcher.has-unread{background:#eef3e6;color:#275641}.chat-launcher.has-unread #chat-unread{background:#b85335;color:#fff;animation:unread-pulse .65s ease-in-out 3}.chat-launcher.has-unread>svg{stroke-width:2}.header-tools{gap:8px}.header-tools .settings-link{min-height:36px;padding:8px}.workspace-footer{margin-top:18px;padding-top:10px;font-size:9px}.simple-main .metric{padding:13px}.simple-main .metric-number,.simple-main .metric:first-child .metric-number{font-size:24px}.simple-main .metric-label{font-size:11px}.simple-main .metric-context{font-size:10px;line-height:1.4;margin-top:6px}.simple-main .metrics{gap:10px;margin-bottom:12px}.common-pot{padding:16px}.pot-overview h2{font-size:14px;margin-bottom:7px}.pot-total{font-size:27px}.pot-balance>strong{font-size:25px}.pot-overview p{font-size:10px;margin-top:4px}.pot-balance>span{font-size:11px;margin-bottom:5px}.pot-figures{padding:11px 0;margin:13px 0 10px;gap:10px}.pot-figures span{font-size:11px;margin-bottom:5px}.pot-figures strong{font-size:19px}.pot-warning{font-size:10px;line-height:1.45;margin-top:10px}.budget-explanation{font-size:10px;line-height:1.45;margin:10px 0 12px}.budget-utilities{gap:7px;margin-bottom:10px}.category-expenses{margin-top:10px}.category-expenses summary{padding:12px 14px;font-size:12px}.simple-main .partner-card,.simple-main .budget-card,.simple-main .settings-section{padding:15px}.simple-main .budget-card .budget-numbers,.simple-main .partner-card .budget-numbers{margin:13px 0}.partner-period{margin-bottom:12px}.billing-followup{margin-top:20px}.section-heading{margin-bottom:12px}.section-heading h2{font-size:16px}.section-heading p{margin-top:4px;font-size:11px;line-height:1.4}.buyer-person{padding:8px 0}.buyer-person-name{font-size:12px}.buyer-person-actions .btn{font-size:10px;min-height:32px}.simple-main .note{padding:12px;font-size:11px;line-height:1.5;margin-bottom:12px}.settings-grid{gap:12px}.simple-main .empty{padding:23px 16px}.simple-main .empty h3{font-size:16px}.simple-main .empty p{font-size:12px}
@keyframes unread-pulse{50%{transform:scale(1.2)}}
@media(max-width:900px){.purchase-grid tr>:nth-child(2){width:38px}.purchase-grid tr>:nth-child(4){width:112px}.purchase-grid th,.purchase-grid td{padding:6px}.grid-mobile-name{font-size:11.5px;line-height:1.35;min-height:30px;font-weight:550}.grid-mobile-name>span{display:block;white-space:normal;overflow:visible}.grid-mobile-meta{font-size:9px;line-height:1.3;margin-top:2px}.grid-mobile-amount{font-size:10px;line-height:1.3;margin-top:3px}.grid-mobile-amount small{font-size:8px}.purchase-grid .grid-cell-note{font-size:9px}.situation-select{font-size:10px;padding-left:5px;min-height:32px}.grid-scroll-hint{display:none}}
@media(max-width:640px){.app-header-inner{padding:8px 12px 0;gap:7px}.app-header .brand img{height:32px;width:29px}.app-header .brand b{font-size:17px}.app-header .brand small{font-size:9px}.main-navigation{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;gap:4px;padding-bottom:7px}.main-nav{padding:7px 3px;min-height:34px;font-size:10.5px;gap:4px;min-width:0}.main-nav svg{width:13px;height:13px;flex-shrink:0}.nav-count{font-size:8px;min-width:14px;height:14px;padding:1px 3px}.main-nav:has(.nav-count) svg{display:none}.header-tools{gap:5px}.simple-main{padding:14px 12px}.simple-main .page-heading h1,.simple-main:has(.purchase-grid) .page-heading h1{font-size:20px}.simple-main .page-heading,.simple-main:has(.purchase-grid) .page-heading{margin-bottom:10px}.simple-main .page-heading p{font-size:10px}.demands-heading{flex-direction:column;align-items:stretch;gap:10px}.simple-main .add-demand{width:100%;min-height:44px;font-size:13px;padding:10px 14px}.quick-summary{grid-template-columns:1fr 1.25fr 1fr}.quick-summary>button,.quick-summary>div,.simple-main:has(.purchase-grid) .quick-summary>button,.simple-main:has(.purchase-grid) .quick-summary>div{padding:8px}.quick-summary strong{font-size:16px}.quick-summary small{font-size:9px;margin-top:3px}.purchase-tools{gap:6px}.purchase-tools .search{min-height:36px;padding:7px 9px}.purchase-tools .search input{font-size:12px}.purchase-tools select{font-size:11px;min-height:34px;padding:6px}.results-heading .btn{min-height:26px}.simple-main .page-heading>.btn{font-size:11px;min-height:34px;padding:7px 10px}.simple-main .metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.simple-main .metric{grid-column:auto;padding:10px;min-width:0}.simple-main .metric-number,.simple-main .metric:first-child .metric-number{font-size:19px;overflow-wrap:anywhere}.simple-main .metric-label{font-size:10px;gap:4px}.simple-main .metric-label svg{display:none}.simple-main .metric-context{font-size:9px;line-height:1.35}.common-pot{padding:13px}.pot-total{font-size:24px}.pot-balance>strong{font-size:22px}.pot-overview{gap:10px}.pot-overview>div{min-width:0}.pot-total,.pot-balance>strong{overflow-wrap:anywhere}.pot-figures{margin:10px 0 8px;padding:10px 0}.pot-figures strong{font-size:18px}.pot-figures span{font-size:10px}.pot-warning{font-size:10px}.simple-main .budget-utilities .btn{min-height:34px;padding:6px 8px;font-size:10px}.simple-main .partner-card,.simple-main .settings-section{padding:13px}.simple-main .partner-card .budget-numbers strong{font-size:15px}.simple-main .settings-grid{gap:10px}.simple-main .note{font-size:10px;padding:10px;line-height:1.5}.workspace-footer{margin-top:14px;padding-top:9px}.buyer-person-actions .btn{min-height:32px;font-size:10px}.chat-notifications{font-size:10px;margin-bottom:10px}.chat-notifications>.btn{min-height:34px;padding:7px 10px;font-size:10px}.chat-room-heading{min-height:42px;padding:8px 12px}.chat-sidebar-title{padding:7px 10px}.room-choice{padding:8px 10px;min-height:44px}.chat-messages{height:clamp(200px,calc(100dvh - 400px),400px)}#chat-compose{padding:8px}#chat-compose textarea{min-height:44px;max-height:100px}.chat-help{font-size:10px;margin-top:8px}}
@media(max-width:360px){.main-nav svg{display:none}.main-nav{font-size:10px}.purchase-grid tr>:nth-child(2){width:31px}.purchase-grid tr>:nth-child(4){width:100px}.purchase-grid th,.purchase-grid td{padding:5px}.grid-mobile-name{font-size:11px}.situation-select{font-size:9px;padding-left:3px}.pot-total{font-size:21px}.pot-balance>strong{font-size:20px}}
@media(prefers-reduced-motion:reduce){.chat-launcher.has-unread #chat-unread{animation:none}}

.situation-control{position:relative}.situation-control .situation-select{appearance:none;color:transparent;padding-right:17px}.situation-control .situation-select option{color:#36583e;background:#fff}.situation-label{position:absolute;inset:0;display:flex;align-items:center;pointer-events:none;padding:5px 17px 5px 6px;font-size:11px;line-height:1.2;color:#36583e;white-space:nowrap}.situation-control::after{content:'';position:absolute;width:5px;height:5px;border-right:1.5px solid #52664a;border-bottom:1.5px solid #52664a;right:7px;top:12px;transform:rotate(45deg);pointer-events:none}@media(max-width:900px){.situation-label{font-size:10px;padding-left:5px}.purchase-grid .piece-unit{display:none}}@media(max-width:360px){.situation-label{font-size:9px;padding-left:4px}}

@media(max-width:900px){.purchase-grid thead th:nth-child(2){padding:7px 3px;white-space:nowrap}}

/* The same buyer choices are available in the desktop column and below mobile titles. */
.grid-mobile-assignment{display:none}.inline-buyer-select{display:block;width:100%;max-width:100%;min-width:0;min-height:30px;padding:4px 18px 4px 6px;border:1px solid #cbd8bd;border-radius:4px;background:#fff;color:#36583e;font:inherit;font-size:11px;font-weight:400;cursor:pointer}.inline-buyer-select:disabled{opacity:1;background:#f5f6f2;color:#697764;cursor:default}.inline-buyer-select:focus-visible{outline:2px solid #728b51;outline-offset:2px}
@media(max-width:900px){.grid-mobile-assignment{display:flex;align-items:center;gap:5px;margin-top:3px;min-width:0}.grid-mobile-assignment .inline-buyer-select{width:100%;max-width:112px;flex:0 1 112px;font-size:10px;min-height:28px;padding:4px 16px 4px 5px}.grid-mobile-supplier{display:block;flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:9px;font-weight:400;color:#5f6d58}.purchase-grid .grid-mobile-name{min-height:0}}
@media(max-width:360px){.grid-mobile-assignment .inline-buyer-select{max-width:96px;flex-basis:96px;font-size:9px}.grid-mobile-supplier{font-size:8px}}

/* Shopping lists grouped by the buyer, with the ticket camera beside each purchase. */
.shopping-person-filter{display:flex;align-items:center;gap:10px;margin:0 0 14px;font-size:12px}.shopping-person-filter label{font-weight:600}.shopping-person-filter select{min-width:0;max-width:220px;min-height:36px;border:1px solid var(--line);border-radius:5px;padding:6px 9px;color:#36583e;background:#fff;font:inherit}.shopping-person-filter>span{margin-left:auto;font-size:11px;color:var(--muted)}.buyer-shopping-group{margin-bottom:16px}.buyer-shopping-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}.buyer-shopping-heading h2{display:flex;align-items:center;gap:7px;font-size:14px;font-weight:600;overflow-wrap:anywhere}.buyer-shopping-heading h2 svg{width:17px;height:17px}.buyer-shopping-heading>span{font-size:10px;color:var(--muted);white-space:nowrap}.buyer-shopping-group .results-heading{display:none}.shopping-missing{margin-top:16px}.shopping-missing>summary{cursor:pointer;font-size:12px;font-weight:550;padding:10px 0}.shopping-missing[open]>summary{margin-bottom:8px}.simple-main .scan-ticket{width:100%;justify-content:center;gap:4px;min-height:28px;padding:4px;font-size:10px;white-space:normal;line-height:1.2;margin-top:4px}.simple-main .scan-ticket svg{width:13px;height:13px;flex-shrink:0}.receipt-capture-title{font-size:12px;color:#697764}.receipt-capture-actions{display:flex;gap:7px;flex-wrap:wrap}.receipt-file-selected{display:flex;align-items:center;gap:10px;padding:8px;border:1px solid var(--line);border-radius:5px;min-width:0}.receipt-file-selected img{width:55px;height:65px;object-fit:contain;background:#f5f6f1}.receipt-file-selected>svg{width:24px;height:24px;flex-shrink:0}.receipt-file-selected>span{min-width:0;overflow-wrap:anywhere;font-size:11px;flex:1}.receipt-file-selected>.btn{flex-shrink:0}
@media(max-width:640px){.main-navigation{grid-template-columns:repeat(5,minmax(0,1fr));gap:3px}.main-nav{min-height:39px;font-size:10px;padding:5px 2px;gap:2px;line-height:1.25}.main-nav>svg{display:none}.main-nav>span{white-space:normal;overflow-wrap:normal}.main-nav:has(.nav-count){flex-wrap:wrap}.shopping-person-filter{gap:7px;font-size:11px;margin-bottom:12px}.shopping-person-filter select{flex:1;max-width:190px;font-size:12px;min-height:34px}.shopping-person-filter>span{font-size:10px}.buyer-shopping-heading h2{font-size:13px}.simple-main .scan-ticket{font-size:9px;min-height:30px;padding:4px 3px}.receipt-capture-actions .btn{flex:1;justify-content:center;min-height:38px;font-size:11px}.receipt-file-selected .btn{font-size:10px;padding:5px}}
.receipt-drop-settings .section-caption{font-size:11px;line-height:1.5;margin:10px 0}.receipt-drop-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.receipt-deposit{padding:13px;border:1px solid var(--line);border-radius:6px;background:#f7f9f2;margin-top:14px}.receipt-deposit h3{display:flex;gap:6px;align-items:center;font-size:13px;font-weight:600}.receipt-deposit h3 svg{width:16px;height:16px}.receipt-deposit p{font-size:11px;line-height:1.5;margin:9px 0;color:var(--muted)}.receipt-drop-actions .btn{font-size:11px;min-height:34px;padding:7px 9px}

/* Keep navigation counters centred below their labels, including zero. */
.main-nav{display:grid;grid-template-rows:auto 18px;justify-items:center;align-content:center;gap:3px;padding-top:7px;padding-bottom:7px}.nav-label{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0}.main-nav .nav-count{grid-row:2;min-width:18px;height:18px;line-height:1;font-size:10px;padding:2px 5px}.main-nav .nav-label svg{display:block;flex-shrink:0}
@media(max-width:640px){.main-nav{grid-template-rows:25px 16px;gap:3px;padding:5px 2px}.nav-label{height:25px;line-height:1.25}.main-nav .nav-label svg{display:none}.main-nav .nav-count{min-width:16px;height:16px;font-size:9px;padding:1px 4px}}

/* A compact sign-in screen and administrator-only account controls. */
.login-page{min-height:100dvh;display:grid;place-items:center;padding:24px 18px}.login-card{width:100%;max-width:350px;padding:25px;background:#fff;border:1px solid var(--line);border-radius:12px}.login-card>img{display:block;width:62px;height:70px;object-fit:contain;margin:0 auto 9px}.login-card h1{text-align:center;font-size:25px;color:#275641}.login-subtitle{text-align:center;font-size:12px;margin:5px 0 24px;color:#697764}.login-card h2{font-size:16px;margin:16px 0 8px}.login-card>p:not(.login-subtitle){font-size:12px;line-height:1.5;color:#697764}.login-card form{display:grid;gap:8px}.login-card label{font-size:12px;font-weight:550;margin-top:6px}.login-card input:not([type=checkbox]){display:block;width:100%;min-width:0;min-height:43px;border:1px solid #cbd6c2;border-radius:6px;padding:10px;font:inherit;font-size:15px}.login-password-field{position:relative}.login-password-field input{padding-right:55px!important}.login-password-field button{position:absolute;right:3px;top:3px;bottom:3px;padding:6px 10px;border:0;background:transparent;color:#275641;font-size:11px}.login-remember{display:flex;align-items:center;gap:8px;min-height:32px}.login-remember input{width:17px;height:17px;accent-color:#275641}.login-submit{width:100%;min-height:44px;background:#275641;color:#fff;border:0;border-radius:6px;font:inherit;font-size:14px;font-weight:600;margin-top:3px}.login-submit:disabled{opacity:.65}.login-card small{font-size:11px;color:#697764}.login-help{text-align:center;font-size:11px!important;margin-top:17px}#login-error{color:#a63c2b;font-size:12px;line-height:1.4}#login-error:empty{display:none}.account-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.account-heading{margin-top:23px}.account-users{list-style:none;margin:12px 0 0;padding:0}.account-users li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-top:1px solid var(--line)}.account-users li strong{font-size:12px}.account-users li small{display:block;font-size:10px;color:#697764;margin-top:3px}.account-protected{font-size:10px;color:#275641}.account-name{max-width:100px;overflow:hidden;text-overflow:ellipsis;border:0;background:none;color:#275641;font:inherit;font-size:11px;padding:6px 2px;min-height:32px}.account-settings>p{font-size:12px;margin-top:10px}

.status.alternative_found,.situation-select.alternative_found{background:#e8eef9;border-color:#ced9ee;color:#34577b}.situation-control:has(.alternative_found) .situation-label{color:#34577b;white-space:normal;font-size:9px;line-height:1.15}
