/* THORKIA 4.11.38 · A182 · PWA-4 UI */
#thorkiaPwaUi,
#thorkiaPwaUi *{box-sizing:border-box}
#thorkiaPwaUi{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#17263a}
#thorkiaPwaUi [hidden]{display:none!important}

.th-pwa-tray{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:1840;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  max-width:calc(100vw - 32px);
  pointer-events:none;
}
.th-pwa-tray[hidden]{display:none!important}
.th-pwa-chip,
.th-pwa-button{
  min-height:36px;
  border:1px solid #cbd8e6;
  border-radius:9px;
  background:#fff;
  color:#17263a;
  padding:0 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  font:700 13px/1 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  box-shadow:0 8px 22px rgba(22,49,83,.12);
  white-space:nowrap;
  pointer-events:auto;
}
.th-pwa-button{cursor:pointer}
.th-pwa-button:hover{border-color:#9fb5cd;background:#f8fbff}
.th-pwa-button:focus-visible{outline:2px solid #176fdb;outline-offset:2px}
.th-pwa-button--primary{background:#176fdb;border-color:#176fdb;color:#fff}
.th-pwa-button--primary:hover{background:#1264c9;border-color:#1264c9}
.th-pwa-button--update{background:#fff;border-color:#8fb6e8;color:#0f5fbf}
.th-pwa-button--queue[data-has-error="1"]{border-color:#e3b6bb;color:#9b3340;background:#fffafb}
.th-pwa-chip--offline{border-color:#e2b7bc;background:#fff8f9;color:#9b3340}
.th-pwa-dot{width:7px;height:7px;border-radius:50%;background:currentColor;flex:0 0 7px}
.th-pwa-count{
  min-width:20px;
  height:20px;
  padding:0 6px;
  display:inline-grid;
  place-items:center;
  border-radius:10px;
  background:#edf4fc;
  color:#185fa9;
  font-size:12px;
}
.th-pwa-button--queue[data-has-error="1"] .th-pwa-count{background:#f9e8ea;color:#9b3340}

.th-pwa-toast{
  position:fixed;
  right:16px;
  bottom:60px;
  z-index:6840;
  width:min(390px,calc(100vw - 32px));
  border:1px solid #cad8e7;
  border-radius:10px;
  background:#fff;
  color:#26384e;
  padding:11px 13px;
  box-shadow:0 14px 34px rgba(20,43,74,.16);
  font-size:13px;
  line-height:1.4;
}
.th-pwa-toast[data-tone="error"]{border-color:#e2b7bc;color:#8f2f3b}
.th-pwa-toast[data-tone="success"]{border-color:#b9d8c5;color:#276341}

.th-pwa-modal{
  position:fixed;
  inset:0;
  z-index:6900;
  display:grid;
  place-items:center;
  padding:18px;
  background:rgba(15,31,52,.42);
}
.th-pwa-modal__card{
  width:min(560px,calc(100vw - 24px));
  max-height:min(650px,calc(100vh - 36px));
  overflow:auto;
  border:1px solid #d5e0eb;
  border-radius:14px;
  background:#fff;
  box-shadow:0 26px 70px rgba(13,34,62,.24);
}
.th-pwa-modal__head{
  min-height:50px;
  padding:11px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-bottom:1px solid #e4ebf2;
}
.th-pwa-modal__title{margin:0;font-size:16px;line-height:1.25;font-weight:800;color:#17263a}
.th-pwa-modal__close{
  width:34px;height:34px;border:1px solid #d3deea;border-radius:8px;background:#fff;color:#42556d;
  display:grid;place-items:center;cursor:pointer;font-size:16px;line-height:1;
}
.th-pwa-modal__body{padding:14px}
.th-pwa-modal__body p{margin:0 0 10px;font-size:13px;line-height:1.5;color:#52657d}
.th-pwa-modal__body p:last-child{margin-bottom:0}
.th-pwa-modal__actions{
  padding:0 14px 14px;
  display:flex;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.th-pwa-modal__actions .th-pwa-button{box-shadow:none}
.th-pwa-modal__actions .th-pwa-button:disabled{opacity:.52;cursor:not-allowed}

.th-pwa-queue{display:grid;gap:8px}
.th-pwa-queue__empty{
  padding:16px;border:1px dashed #ced9e5;border-radius:10px;color:#64758b;font-size:13px;text-align:center
}
.th-pwa-queue__row{
  border:1px solid #dce5ee;
  border-radius:10px;
  padding:10px 11px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px 12px;
  align-items:start;
}
.th-pwa-queue__name{font-size:13px;font-weight:800;color:#20344c;overflow-wrap:anywhere}
.th-pwa-queue__meta{margin-top:3px;font-size:12px;line-height:1.35;color:#6b7b90}
.th-pwa-queue__status{
  min-height:24px;padding:0 8px;border-radius:12px;background:#eef4fa;color:#36536f;
  display:inline-flex;align-items:center;font-size:12px;font-weight:700;white-space:nowrap
}
.th-pwa-queue__status[data-state="error"]{background:#fff0f1;color:#943442}
.th-pwa-queue__status[data-state="syncing"]{background:#eef6ff;color:#1762b4}
.th-pwa-queue__error{grid-column:1/-1;font-size:12px;line-height:1.4;color:#8e3843}
.th-pwa-queue__actions{grid-column:1/-1;display:flex;justify-content:flex-end}
.th-pwa-queue__actions .th-pwa-button{min-height:32px;padding:0 10px;box-shadow:none;font-size:12px}

.th-pwa-note{
  padding:10px 11px;border-radius:9px;background:#f5f8fb;border:1px solid #dde6ef;color:#53677e!important
}
.th-pwa-note--warn{background:#fffaf0;border-color:#ead9af;color:#735d24!important}

@media (max-width:640px){
  .th-pwa-tray{left:12px;right:12px;bottom:12px;max-width:none;flex-wrap:wrap}
  .th-pwa-chip,.th-pwa-button{min-height:36px;font-size:13px}
  .th-pwa-toast{left:12px;right:12px;bottom:62px;width:auto}
  .th-pwa-modal{padding:12px}
  .th-pwa-modal__card{width:100%;max-height:calc(100vh - 24px)}
  .th-pwa-queue__row{grid-template-columns:minmax(0,1fr)}
  .th-pwa-queue__status{justify-self:start}
}
@media print{
  #thorkiaPwaUi{display:none!important}
}
