:root{--pwa-safe-top:env(safe-area-inset-top,0px);--pwa-safe-right:env(safe-area-inset-right,0px);--pwa-safe-bottom:env(safe-area-inset-bottom,0px);--pwa-safe-left:env(safe-area-inset-left,0px)}
html{min-width:0;-webkit-text-size-adjust:100%;text-size-adjust:100%}body{min-width:0;padding-bottom:var(--pwa-safe-bottom)}
body>header{padding-left:max(1rem,var(--pwa-safe-left));padding-right:max(1rem,var(--pwa-safe-right));padding-top:max(.75rem,var(--pwa-safe-top));position:relative;z-index:60}
button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button,.btn,[role="button"],summary{touch-action:manipulation}
.pwa-footer{max-width:1240px;margin:20px auto 30px;padding:14px max(20px,var(--pwa-safe-right)) calc(14px + var(--pwa-safe-bottom)) max(20px,var(--pwa-safe-left));display:flex;gap:12px;align-items:center;justify-content:center;flex-wrap:wrap;color:#607086;font-size:.8rem;text-align:center}
.pwa-install-button{min-height:42px;border:1px solid #b8c9d6;border-radius:10px;padding:8px 13px;background:#fff;color:#174f78;font:inherit;font-weight:750;cursor:pointer}.pwa-install-button[hidden]{display:none!important}.pwa-install-state:empty{display:none}
.pwa-nav-toggle{display:none;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;border:1px solid #ffffff45;border-radius:11px;background:#ffffff16;color:#fff;font:inherit;font-size:1.25rem;cursor:pointer}.pwa-nav-toggle:hover{background:#ffffff26}.pwa-nav-toggle svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.pwa-nav-backdrop{position:fixed;inset:0;z-index:78;background:#071b2d85;backdrop-filter:blur(2px)}.pwa-nav-backdrop[hidden]{display:none}
.pwa-toast{position:fixed;z-index:120;left:50%;bottom:max(18px,calc(var(--pwa-safe-bottom) + 10px));translate:-50% 0;width:min(92vw,620px);display:flex;gap:12px;align-items:center;justify-content:space-between;padding:12px 14px;border:1px solid #b8cbd8;border-radius:13px;background:#fff;color:#193047;box-shadow:0 16px 45px #071b2d38}
.pwa-toast[hidden]{display:none}.pwa-toast p{margin:0;line-height:1.35}.pwa-toast-actions{display:flex;gap:8px;flex:0 0 auto}.pwa-toast button{min-height:42px;border:0;border-radius:9px;padding:8px 12px;background:#1769aa;color:#fff;font:inherit;font-weight:750;cursor:pointer}.pwa-toast button[data-pwa-later]{background:#edf3f7;color:#36536b}
.pwa-connection{position:fixed;z-index:125;top:max(10px,calc(var(--pwa-safe-top) + 8px));left:50%;translate:-50% 0;max-width:calc(100vw - 24px);padding:9px 14px;border-radius:999px;background:#8f2c26;color:#fff;font-size:.85rem;font-weight:750;box-shadow:0 8px 24px #071b2d30}.pwa-connection.is-online{background:#18794e}.pwa-connection[hidden]{display:none}
dialog{max-width:min(92vw,720px);max-height:min(88dvh,760px);border:0;border-radius:16px;padding:0;box-shadow:0 24px 70px #071b2d55}dialog::backdrop{background:#071b2d88}dialog>form,dialog>.dialog-content{max-height:88dvh;overflow:auto;padding:20px}
@media(display-mode:standalone){body>header{padding-top:max(.75rem,var(--pwa-safe-top))}.pwa-footer{padding-bottom:max(18px,var(--pwa-safe-bottom))}}
@media(max-width:900px){
  body>header{position:sticky;top:0;min-height:64px;align-items:center!important;flex-direction:row!important;gap:10px!important;padding-bottom:.7rem!important}
  body>header .brand,body>header .vertical-brand{min-width:0;flex:1}body>header .brand strong,body>header .vertical-brand strong{font-size:1rem!important;line-height:1.15}body>header .brand small,body>header .vertical-brand small{font-size:.7rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:54vw}
  body>header .header-account{min-width:0;max-width:48%;gap:8px}body>header .header-context{max-width:185px}body>header .account-name{display:none}
  .pwa-nav-toggle{display:inline-flex;order:20}.pwa-nav-target{position:fixed!important;z-index:90!important;top:0;bottom:0;left:0;width:min(88vw,340px);margin:0!important;padding:max(82px,calc(var(--pwa-safe-top) + 74px)) 14px calc(24px + var(--pwa-safe-bottom))!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:6px!important;overflow-y:auto!important;overscroll-behavior:contain;background:#fff!important;box-shadow:12px 0 38px #071b2d42;transform:translateX(-106%);transition:transform .2s ease}
  .pwa-nav-target.is-open{transform:translateX(0)}.pwa-nav-target a{display:flex!important;align-items:center!important;width:100%!important;min-height:44px!important;margin:0!important;padding:10px 12px!important;border-radius:9px!important;background:transparent!important;color:#27455e!important;text-align:left!important;font-size:.94rem!important;font-weight:720!important;text-decoration:none!important;white-space:normal!important}.pwa-nav-target a:hover,.pwa-nav-target a.active{background:#edf5fa!important;color:#125b8d!important}
  body.pwa-nav-open{overflow:hidden}.wrap,body>main{padding-left:max(12px,var(--pwa-safe-left))!important;padding-right:max(12px,var(--pwa-safe-right))!important}
  input:not([type="checkbox"]):not([type="radio"]),select,textarea{min-height:44px;font-size:16px!important}button,.btn,[role="button"]{min-height:44px}input[type="checkbox"],input[type="radio"]{min-width:20px!important;min-height:20px!important}
  label{line-height:1.35}textarea{min-height:120px}details>summary{min-height:44px;display:flex;align-items:center}
  .card{max-width:100%;overflow-wrap:anywhere}.grid,.form-grid{grid-template-columns:1fr!important}.wide,.field-wide{grid-column:auto!important}
  .table-shell{max-width:100%;overflow:auto!important;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}.table-shell table:not(.data-table){min-width:680px}.table-shell th{position:sticky;top:0;z-index:2}
  .pwa-toast{align-items:stretch;flex-direction:column;bottom:max(12px,calc(var(--pwa-safe-bottom) + 8px))}.pwa-toast-actions{display:grid;grid-template-columns:1fr 1fr}.pwa-toast button{width:100%}
  .pwa-footer{margin-top:12px;padding-inline:16px}.pwa-install-button{width:100%;max-width:320px}
  dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}dialog>form,dialog>.dialog-content{max-height:calc(100dvh - 20px);padding:16px}
}
@media(max-width:380px){body>header .brand small,body>header .vertical-brand small{display:none}.pwa-nav-target{width:92vw}.pwa-toast{width:calc(100vw - 16px)}}
@media print{.pwa-footer,.pwa-nav-toggle,.pwa-nav-backdrop,.pwa-toast,.pwa-connection{display:none!important}}
