/* A bounded work area and predictable dialog layout for desktop and phones. */
html{scrollbar-gutter:stable}main{padding:16px 24px 24px}.page-heading{gap:14px;margin:0 0 15px;min-height:34px;align-items:center}.page-heading .eyebrow,.page-heading p{display:none}.page-heading h1{font-size:22px;line-height:1.25;letter-spacing:-.45px;margin:0}.heading-actions{gap:8px}.heading-actions .button{min-height:34px;padding:8px 12px}.card-header{padding:14px 17px}.card-header h2{font-size:15px;line-height:1.35}.card-header p{font-size:11px;margin:4px 0 0}.settings-tabs{margin-bottom:17px;padding-bottom:10px}.toolbar{margin-bottom:14px}.page-enter{animation:work-area-enter .12s ease-out both}@keyframes work-area-enter{from{opacity:.7}to{opacity:1}}
dialog{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(640px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:0;border:1px solid #e7e2ed;border-radius:13px;overflow:hidden;box-shadow:0 18px 60px #241b3329}dialog[open]{display:flex;flex-direction:column;animation:dialog-fade .1s ease-out}dialog::backdrop{background:#251f354d;backdrop-filter:none}#modal-content{display:flex;flex-direction:column;min-width:0;min-height:0;width:100%;max-height:inherit;overflow:hidden}.dialog-header{position:relative;flex:0 0 auto;padding:15px 18px;min-width:0}.dialog-header h2{font-size:17px;line-height:1.35;min-width:0;overflow-wrap:anywhere}.dialog-header .icon-button{flex:0 0 32px;width:32px;height:32px}.dialog-body{padding:18px;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain}.dialog-error{flex:0 0 auto;margin:0;padding:8px 18px;font-size:12px;max-height:110px;overflow:auto}.dialog-error:empty{display:none}#modal-content>.form-footer{flex:0 0 auto;margin:0;padding:13px 18px;min-width:0}.dialog-body #edit-form .form-footer{margin:18px -18px -18px;padding:13px 18px}.dialog-body .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}.dialog-body .field,.dialog-body .field input,.dialog-body .field select,.dialog-body textarea{min-width:0;max-width:100%;box-sizing:border-box}.dialog-body .field input[type=file]{overflow:hidden;font-size:12px}.form-footer .button{min-width:0;max-width:100%;white-space:normal}.wide-dialog{width:min(1050px,calc(100vw - 32px))}dialog.wide{width:min(880px,calc(100vw - 32px))}dialog.invoice-dialog{width:min(880px,calc(100vw - 32px))}.invoice-dialog .dialog-body{padding:0}.invoice-dialog .invoice-preview{max-width:100%;box-sizing:border-box}
dialog.inventory-sheet-dialog{width:calc(100vw - 32px);max-width:1800px;height:90vh;height:min(90dvh,1000px);max-height:calc(100dvh - 24px)}.inventory-sheet-dialog #modal-content{height:100%;max-height:100%}.inventory-sheet-dialog .dialog-body{display:flex;flex:1 1 auto;flex-direction:column;gap:10px;min-height:0;padding:12px 16px;overflow:hidden}.inventory-sheet-dialog .dialog-body>.help,.inventory-sheet-dialog .sheet-toolbar{flex:0 0 auto;margin:0;padding:0}.sheet-toolbar{align-items:center;gap:10px;font-size:12px}.sheet-scroll{flex:1 1 auto;width:100%;min-width:0;min-height:120px;max-height:none;overflow:auto;overscroll-behavior:contain;border-radius:7px}.inventory-sheet{border-collapse:separate;border-spacing:0;width:2450px;min-width:2450px;table-layout:fixed}.inventory-sheet th,.inventory-sheet td{width:140px;min-width:140px;max-width:140px;padding:0;box-sizing:border-box;vertical-align:top}.inventory-sheet th:first-child{width:220px;min-width:220px;max-width:220px;padding:10px;z-index:2}.inventory-sheet thead th{height:40px;padding:10px 8px;white-space:normal;line-height:1.35}.inventory-sheet thead th:first-child{z-index:4}.inventory-sheet th:nth-child(2),.inventory-sheet td:nth-child(2){width:200px;min-width:200px}.inventory-sheet th:nth-child(3),.inventory-sheet td:nth-child(3){width:260px;min-width:260px}.inventory-sheet .sheet-row-state,.inventory-sheet th:last-child{width:210px;min-width:210px;max-width:210px;padding:8px}.inventory-sheet tbody th strong{line-height:1.45;overflow-wrap:anywhere;white-space:normal}.inventory-sheet input,.inventory-sheet select,.inventory-sheet textarea{box-sizing:border-box;width:100%;min-width:0;max-width:100%;margin:0;border-radius:0;min-height:48px;padding:10px 8px;line-height:1.45;font-size:12px}.inventory-sheet textarea{height:64px;max-height:180px;resize:vertical}.inventory-sheet .sheet-row-state .button{max-width:100%;white-space:normal;padding:5px 7px;min-height:30px}.inventory-sheet tr:hover>td{background:#fdfcff}.inventory-sheet .sheet-row-error>td{background:#fff5f4}.sheet-save-status{font-size:12px}
@keyframes dialog-fade{from{opacity:.75}to{opacity:1}}@media(max-width:900px){main{padding:14px 18px 22px}.page-heading h1{font-size:21px}.page-heading{margin-bottom:13px}}@media(max-width:650px){main{padding:12px 14px 20px}.page-heading{gap:10px;min-height:30px}.page-heading h1{font-size:20px}.page-heading .heading-actions{width:auto;flex:1 1 auto;margin:0;justify-content:flex-end}.heading-actions .button{font-size:11px;padding:7px 10px;flex:0 1 auto}.card-header{padding:13px 14px}.card-header h2{font-size:14px}dialog,dialog.wide,.wide-dialog,dialog.invoice-dialog{max-width:calc(100vw - 14px);width:calc(100vw - 14px);max-height:calc(100dvh - 18px);border-radius:11px}.dialog-header{padding:12px 14px}.dialog-header h2{font-size:16px}.dialog-body{padding:14px}.dialog-body .form-grid{grid-template-columns:1fr}.dialog-body #edit-form .form-footer{margin:14px -14px -14px;padding:12px 14px}#modal-content>.form-footer{padding:12px 14px;gap:7px}.form-footer .button{font-size:11px;flex:1 1 auto}dialog.inventory-sheet-dialog{width:calc(100vw - 12px);height:94dvh;max-height:calc(100dvh - 12px)}.inventory-sheet-dialog .dialog-body{padding:10px;gap:8px}.sheet-toolbar{font-size:11px}.sheet-toolbar .button{min-height:30px;font-size:10px}.sheet-toolbar .sheet-save-status{font-size:11px}.inventory-sheet th:first-child{width:190px;min-width:190px;max-width:190px}}@media(prefers-reduced-motion:reduce){.page-enter,dialog[open]{animation:none!important}}@media print{#modal-content{display:block;max-height:none;overflow:visible}.invoice-preview{overflow:visible}}
