/* Municipal management only: print layouts are untouched. */
#page-warehouse{--wh-green:#075b42;--wh-line:#dfe8e3;--wh-muted:#61746b}
#page-warehouse>.page-title{background:linear-gradient(120deg,#064d38,#137456);color:#fff;padding:clamp(22px,3vw,36px);border-radius:20px;align-items:center;margin-bottom:22px;gap:20px;box-shadow:0 8px 24px #064d3810}
#page-warehouse>.page-title h1{font-size:clamp(24px,2.5vw,34px);letter-spacing:-.035em;color:white;margin:8px 0}
#page-warehouse>.page-title p{color:#d9ebe3;max-width:660px;line-height:1.6;margin:6px 0 14px}
#page-warehouse>.page-title .eyebrow{color:#e0c77c;font-size:10px;letter-spacing:.16em}
#whRefresh{border-color:#ffffff60;color:#fff;background:#ffffff10;white-space:nowrap}
.wh-context{display:inline-flex;border:1px solid #ffffff35;border-radius:20px;padding:5px 12px;color:#e6f3ec;font-size:12px}
#page-warehouse .wh-tabs{display:flex;gap:5px;padding:6px;background:#eaf0ec;border:1px solid var(--wh-line);border-radius:14px;flex-wrap:wrap;margin-bottom:28px}
#page-warehouse .wh-tabs button{flex:1 1 auto;border:0;background:transparent;border-radius:9px;color:#52665b;padding:12px 15px;font-size:13px;font-weight:650;white-space:nowrap;box-shadow:none}
#page-warehouse .wh-tabs button:hover{background:#ffffffa0;color:#075b42}
#page-warehouse .wh-tabs button.active{background:white;color:#064f39;box-shadow:0 2px 7px #16352412}
.wh-section-intro{margin:0 2px 20px}.wh-section-intro h2{font-size:22px;letter-spacing:-.025em;margin:6px 0;color:#153a2b}.wh-section-intro p{margin:0;color:#61746b;line-height:1.6;font-size:14px}
#page-warehouse .panel,#page-users .panel{border:1px solid #e0e8e3;border-radius:16px;box-shadow:0 3px 14px #16352404;padding:24px;margin-bottom:20px}
#page-warehouse .panel>label{display:block;max-width:520px;margin-bottom:20px}
#page-warehouse .wh-actions{align-items:center;gap:10px;margin-bottom:18px}
#whStockSearch{flex:1 1 260px;max-width:560px}#whProductNew{margin-left:auto}
#page-warehouse label,.user-profiles-dialog label,.users-filter-bar label{font-size:12px;font-weight:600;color:#415b4c;line-height:1.5}
#page-warehouse input,#page-warehouse select,#page-warehouse textarea,.user-profiles-dialog input:not([type=checkbox]),.user-profiles-dialog select,.users-filter-bar input,.users-filter-bar select{border:1px solid #cedcd3;border-radius:9px;background:#fff;font:inherit;font-size:14px;color:#203d2e;padding:11px 12px;min-height:43px;width:100%;margin-top:6px}
#page-warehouse input:focus-visible,#page-warehouse select:focus-visible,.user-profiles-dialog select:focus-visible,.users-filter-bar input:focus-visible{outline:3px solid #87bda655;outline-offset:1px;border-color:#24855d}
#page-warehouse table,#page-users table{width:100%;border-collapse:separate;border-spacing:0;font-size:13px}
#page-warehouse th,#page-users th{background:#f2f6f3;color:#63766a;font-size:10px;letter-spacing:.08em;text-align:left;padding:14px 13px;border-bottom:1px solid #dfe8e2}
#page-warehouse td,#page-users td{padding:16px 13px;vertical-align:middle;border-bottom:1px solid #edf1ee;line-height:1.5}
#page-warehouse tbody tr:hover,#page-users tbody tr:hover{background:#fafcfb}
#page-warehouse td:first-child{font-weight:600;color:#244434}
#page-warehouse .pagination,#page-users .pagination{padding-top:18px;border-top:0;gap:12px;font-size:12px;color:#61746b}
.wh-empty{text-align:center!important;padding:42px 20px!important;color:#6c7e72!important;font-weight:400!important;background:#fafcfb}
#whRequestForm{max-width:900px;gap:20px}#whDraftCount{display:inline-block;width:fit-content;background:#e8f3ec;color:#096039;border-radius:8px;padding:7px 12px;font-size:12px}
#whAlertCards{gap:14px;margin-bottom:24px}#whAlertCards .panel{margin:0;border-top:3px solid #c8a453}#whAlertCards strong{display:block;font-size:30px;color:#224e36}
#whMessage:empty{display:none}#whMessage:not(:empty){background:#fff3ef;padding:14px 18px;border:1px solid #f1d7ce;border-radius:10px;margin:12px 0 20px}
#page-users .page-title h1{letter-spacing:-.03em}#page-users .panel-head{margin-bottom:20px}
.users-filter-bar{display:grid;grid-template-columns:minmax(200px,1fr) minmax(150px,220px) auto;gap:14px;align-items:end;padding:18px;background:#f6f8f6;border-radius:12px;margin-bottom:22px}
#usersRows small{display:block;line-height:1.6;margin-top:5px;overflow-wrap:anywhere;color:#708074;font-size:12px}
#usersRows .user-module-summary{border-left:2px solid #c4d8ca;padding-left:9px;max-width:250px}
.user-account-actions{display:flex;flex-direction:column;align-items:stretch;min-width:175px;max-width:240px;gap:8px}
.user-account-actions>button{font-size:12px!important;padding:10px 12px!important;border-radius:8px}
.user-account-menu{border:1px solid #dbe5de;border-radius:8px;background:white}.user-account-menu summary{cursor:pointer;padding:10px 12px;font-size:12px;color:#526b5a;font-weight:600}
.user-account-settings{display:grid;gap:8px;padding:10px;border-top:1px solid #e6ece7}.user-account-settings select,.user-account-settings button{width:100%;font-size:12px;padding:9px;white-space:normal;border-radius:7px}
.users-signatures summary{cursor:pointer;font-weight:600;color:#285238;font-size:14px}.users-signatures #signPermissions{margin-top:16px}.users-signatures label{display:flex;gap:12px;align-items:center}.users-signatures input[type=checkbox]{width:18px;height:18px;min-height:18px}
.user-profiles-dialog{border:0;border-radius:20px;padding:clamp(20px,4vw,32px);color:#244332;box-shadow:0 25px 80px #142e3830}
.user-profiles-dialog::backdrop{background:#102d2699;backdrop-filter:blur(3px)}.user-profiles-dialog h2{font-size:24px;letter-spacing:-.03em;margin:6px 0}.user-profiles-dialog #uwName{font-weight:700;color:#08613f;background:#eef6f0;border-radius:9px;padding:12px 14px;margin:0}
.user-profile-card{display:grid;grid-template-columns:1fr 1fr;gap:14px 20px;min-width:0;border:1px solid #d6e4db;border-radius:12px;padding:18px;background:#fafcfb}.user-profile-card legend{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;padding:0 8px;color:#487559}
.user-profile-card label:has(input[type=checkbox]){display:flex;align-items:center;gap:10px;font-size:12px;min-height:34px;font-weight:500}.user-profile-card input[type=checkbox]{width:18px;height:18px;min-height:18px;margin:0;accent-color:#086640;flex-shrink:0}.user-profile-card label:has(input:disabled),.user-profile-card label:has(select:disabled){opacity:.65}
.user-profile-card>button{grid-column:1/-1;justify-self:end;font-size:12px;color:#964735;border-color:#ead9d2;background:transparent;padding:7px 11px}.user-profiles-dialog #uwAdd{border-style:dashed;color:#086640;background:#f2f8f4;padding:13px}.user-profiles-dialog #uwMessage{font-size:12px;line-height:1.65;color:#607368}.user-profiles-dialog .dialog-actions{position:sticky;bottom:-32px;background:white;padding:16px 0 8px;border-top:1px solid #e2eae5;margin-top:8px}
@media(max-width:900px){#page-warehouse .panel,#page-users .panel{padding:18px}.user-account-actions{min-width:145px}.users-filter-bar{grid-template-columns:1fr 180px}.users-filter-bar>button{grid-column:1/-1}.wh-section-intro h2{font-size:20px}}
@media(max-width:640px){#page-warehouse>.page-title{padding:22px;align-items:flex-start;flex-direction:column}#page-warehouse>.page-title h1{font-size:25px}#page-warehouse .wh-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px}#page-warehouse .wh-tabs button{white-space:normal;font-size:12px;padding:12px 6px;line-height:1.3}#page-warehouse .panel,#page-users .panel{padding:15px;border-radius:12px}#page-warehouse .wh-grid{grid-template-columns:1fr 1fr}#whStockSearch{max-width:none;width:100%}#whProductNew{margin:0;width:100%}.users-filter-bar{grid-template-columns:1fr;padding:12px}.user-profile-card{grid-template-columns:1fr;padding:14px}.user-profiles-dialog .dialog-actions{bottom:-20px}.user-account-actions{max-width:none;width:100%}#page-warehouse .table-scroll{overflow:visible}#page-warehouse table,#page-warehouse tbody,#page-warehouse tr,#page-warehouse td{display:block;width:100%}#page-warehouse thead{display:none}#page-warehouse tbody tr{border:1px solid #e2eae5;border-radius:12px;padding:8px;margin:12px 0;background:white}#page-warehouse td{border:0;padding:7px 6px;font-size:13px;overflow-wrap:anywhere}#page-warehouse td::before{content:attr(data-label);display:block;font-size:10px;letter-spacing:.05em;color:#7b8c80;font-weight:500;margin-bottom:3px}#page-warehouse .wh-empty::before{display:none}#page-warehouse .pagination{flex-wrap:wrap}.user-profiles-dialog{width:calc(100vw - 16px)!important}.wh-modal input[type=number]{max-width:100%}}
@media(prefers-reduced-motion:reduce){#page-warehouse *,#page-users *,.user-profiles-dialog *{scroll-behavior:auto;transition:none}}
/* Flex children with automatic horizontal margins must still fit the viewport. */
.content-wrap>.content{width:100%;min-width:0}
@media(max-width:640px){#page-warehouse table{min-width:0}.user-profile-card select{min-width:0;max-width:100%}}
.user-module-card{border:1px solid #cee2d5;background:#f0f7f2;border-radius:12px;padding:18px}.user-module-toggle{display:flex;align-items:center;gap:12px;font-size:15px!important;font-weight:700!important}.user-module-toggle input[type=checkbox]{width:20px;height:20px;min-height:20px;accent-color:#086640;flex-shrink:0}.user-module-card .hint{margin:10px 0 0}

.field-error{display:block;color:#a02020;font-size:.82rem;line-height:1.4;margin-top:.35rem}#registerForm [aria-invalid="true"]{border-color:#b42318;box-shadow:0 0 0 1px #b42318}#registerFeedback{padding:.7rem;border-radius:8px;background:#fff1f0;color:#8a2119;overflow-wrap:anywhere}
