
:root {

  color-scheme: light;

  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  color: #17263c;

  background: #f1f5f9;

}

* { box-sizing: border-box; }

body { margin: 0; }

.login-layout {

  min-height: 100vh;

  min-height: 100dvh;

  display: grid;

  place-items: center;

  padding: 24px;

  background: radial-gradient(ellipse at top, #dceaf1, #f1f5f9 65%);

}

.card {

  width: 100%;

  max-width: 440px;

  padding: 40px;

  background: #fff;

  border: 1px solid #dce3eb;

  border-radius: 20px;

  box-shadow: 0 16px 48px #17263c0d;

}

.brand { font-size: 24px; font-weight: 800; letter-spacing: 2px; }

.brand span { color: #087d75; font-weight: 500; }

h1 { margin: 28px 0 8px; font-size: 28px; letter-spacing: -0.7px; }

.subtitle { margin: 0 0 28px; color: #526176; line-height: 1.6; overflow-wrap: anywhere; }

label { display: block; margin: 18px 0 8px; font-size: 14px; font-weight: 600; }

input:not([type="hidden"]) {

  width: 100%;

  min-height: 48px;

  padding: 12px 14px;

  border: 1px solid #aebdce;

  border-radius: 9px;

  font: inherit;

  background: #fff;

  color: #17263c;

}

button {

  width: 100%;

  min-height: 48px;

  margin-top: 24px;

  padding: 12px 20px;

  border: 1px solid transparent;

  border-radius: 9px;

  background: #08756e;

  color: #fff;

  font: inherit;

  font-weight: 600;

  cursor: pointer;

}

button:hover { background: #065f59; }

:focus-visible { outline: 3px solid #08756e; outline-offset: 3px; }

.footer-note { margin: 24px 0 0; color: #526176; font-size: 12px; text-align: center; }

.notice {

  padding: 12px 14px;

  border: 1px solid #fecaca;

  border-radius: 9px;

  background: #fff1f2;

  color: #9f1239;

  font-size: 14px;

}

.dashboard-layout { max-width: 1040px; margin: 0 auto; padding: 32px 24px; }

.dashboard-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 32px; }

.secondary { width: auto; margin: 0; background: #fff; border-color: #aebdce; color: #17263c; }

.secondary:hover { background: #e2e8f0; }

.dashboard-card { max-width: none; }

.dashboard-card h1 { margin-top: 12px; overflow-wrap: anywhere; }

.eyebrow { color: #08756e; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; }

.empty-state { margin-top: 32px; padding: 28px; border: 1px dashed #aebdce; border-radius: 12px; background: #f8fafc; }

.empty-state h2 { margin: 0 0 10px; font-size: 18px; }
.empty-state .section-subheading { display: block; margin: 24px 0 8px; padding-top: 14px; border-top: 2px solid #c5d0dc; font-size: 14px; font-weight: 700; }


.empty-state p { margin: 0; color: #526176; line-height: 1.6; }

@media (max-width: 480px) {

  .card { padding: 28px 22px; }

  .login-layout { padding: 16px; }

  .dashboard-layout { padding: 24px 16px; }

  h1 { font-size: 25px; }

}




select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #aebdce;
  border-radius: 9px;
  background: #fff;
  color: #17263c;
  font: inherit;
}

.premises-qr {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
}

.qr-destination {
  overflow-wrap: anywhere;
}



.empty-state .travel-distance-group {

  margin-top: 22px;

  padding-top: 14px;

  border-top: 2px solid #c5d0dc;

}



.empty-state .travel-distance-label {

  margin: 0 0 8px;

  font-weight: 700;

  color: #17263c;

}


/* M6 premises compliance dashboard */
.premises-dashboard {
  padding: 36px;
}
.premises-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-top: 24px;
  padding-bottom: 30px;
  border-bottom: 1px solid #dce3eb;
}
.premises-hero h1 {
  margin: 8px 0 6px;
}
.premises-hero .subtitle {
  margin-bottom: 0;
}
.premises-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 460px;
}
.premises-summary span {
  padding: 7px 10px;
  border: 1px solid #d7e0e8;
  border-radius: 999px;
  background: #f8fafc;
  color: #526176;
  font-size: 13px;
  font-weight: 600;
}
.premises-section {
  margin-top: 42px;
}
.section-heading {
  max-width: 760px;
  margin-bottom: 20px;
}
.section-heading .eyebrow {
  margin-bottom: 6px;
}
.section-heading h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.35px;
}
.section-heading > p:last-child:not(.eyebrow) {
  margin: 0;
  color: #526176;
  line-height: 1.6;
}
.status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.status-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid #dce3eb;
  border-top-width: 4px;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 24px #17263c0a;
}
.status-label {
  margin: 0 0 12px;
  color: #526176;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.status-value {
  margin: 0;
  color: #17263c;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
}
.status-detail {
  margin: 9px 0 0;
  color: #66758a;
  font-size: 13px;
  line-height: 1.45;
}
.status-ok {
  border-color: #99d5c7;
  border-top-color: #08756e;
  background: #f4fbf9;
}
.status-warning {
  border-color: #f2cf8b;
  border-top-color: #b66a09;
  background: #fffaf0;
}
.status-danger {
  border-color: #efb2b2;
  border-top-color: #b42318;
  background: #fff7f7;
}
.status-neutral {
  border-color: #cbd5e1;
  border-top-color: #64748b;
  background: #f8fafc;
}
.inline-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.inline-status.status-ok {
  color: #08756e;
}
.inline-status.status-warning {
  color: #9a5705;
}
.inline-status.status-danger {
  color: #a61b14;
}
.inline-status.status-neutral {
  color: #526176;
}
.content-grid {
  display: grid;
  gap: 16px;
}
.content-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.content-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.info-panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid #dce3eb;
  border-radius: 13px;
  background: #f8fafc;
}
.info-panel h3 {
  margin: 0 0 16px;
  font-size: 17px;
}
.detail-list {
  margin: 0;
}
.detail-list > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-top: 1px solid #e2e8f0;
}
.detail-list > div:first-child {
  padding-top: 0;
  border-top: 0;
}
.detail-list dt {
  color: #526176;
  font-size: 13px;
  line-height: 1.45;
}
.detail-list dd {
  margin: 0;
  max-width: 58%;
  color: #17263c;
  font-weight: 700;
  line-height: 1.45;
  text-align: right;
  overflow-wrap: anywhere;
}
.detail-list-horizontal {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.detail-list-horizontal > div {
  display: block;
  padding: 0;
  border: 0;
}
.detail-list-horizontal dd {
  max-width: none;
  margin-top: 5px;
  text-align: left;
}
.document-feature {
  position: relative;
  background: #f3faf9;
  border-color: #b9ded7;
}
.document-name {
  margin: 0 0 10px;
  color: #17263c;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 9px;
  background: #08756e;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.button-link:hover {
  background: #065f59;
}
.document-list {
  display: grid;
  gap: 10px;
}
.document-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  border: 1px solid #dce3eb;
  border-radius: 12px;
  background: #fff;
}
.document-row h3 {
  margin: 3px 0 0;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.document-type {
  margin: 0;
  color: #08756e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}
.document-row > a {
  flex: 0 0 auto;
  font-weight: 700;
}
.other-premises {
  padding-top: 30px;
  border-top: 1px solid #dce3eb;
}
.other-premises form {
  max-width: 620px;
}
.other-premises button {
  width: auto;
}
@media (max-width: 900px) {
  .status-grid,
  .content-grid-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .premises-hero {
    display: block;
  }
  .premises-summary {
    justify-content: flex-start;
    max-width: none;
    margin-top: 18px;
  }
}
@media (max-width: 640px) {
  .premises-dashboard {
    padding: 24px 20px;
  }
  .status-grid,
  .content-grid-two,
  .content-grid-three,
  .detail-list-horizontal {
    grid-template-columns: 1fr;
  }
  .premises-section {
    margin-top: 34px;
  }
  .detail-list > div {
    display: block;
  }
  .detail-list dd {
    max-width: none;
    margin-top: 4px;
    text-align: left;
  }
  .document-row {
    display: block;
  }
  .document-row > a {
    display: inline-block;
    margin-top: 12px;
  }
  .other-premises button {
    width: 100%;
  }
}
/* M6.4 estate priority dashboard */
.estate-dashboard{padding:36px}.estate-summary{margin-top:34px}.estate-summary-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.estate-summary-card{padding:18px;border:1px solid #dce3eb;border-top-width:4px;border-radius:12px;display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:700}.estate-summary-number{font-size:26px;line-height:1;font-weight:800;color:#17263c}.estate-priority{margin-top:42px}.estate-list{display:grid;gap:10px}.estate-row{display:grid;grid-template-columns:minmax(180px,1.15fr) minmax(0,2.6fr) auto;gap:20px;align-items:center;padding:18px 20px;border:1px solid #dce3eb;border-radius:12px;background:#fff;box-shadow:0 5px 18px #17263c08}.estate-row-main h3{margin:0;font-size:16px}.estate-row-main p{margin:5px 0 0;color:#66758a;font-size:13px}.estate-row-status{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.estate-row-status>div{min-width:0}.estate-field-label{display:block;margin-bottom:5px;color:#66758a;font-size:10px;font-weight:800;letter-spacing:.7px;text-transform:uppercase}.estate-row-status strong{display:block;font-size:13px;overflow-wrap:anywhere}.estate-badge{display:inline-flex;align-items:center;max-width:100%;padding:5px 8px;border:1px solid currentColor;border-radius:999px;font-size:12px;font-weight:800;line-height:1.2}.estate-badge.status-ok{color:#08756e}.estate-badge.status-warning{color:#9a5705}.estate-badge.status-danger{color:#a61b14}.estate-badge.status-neutral{color:#526176}.estate-row-action{white-space:nowrap;font-weight:700}@media(max-width:900px){.estate-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.estate-row{grid-template-columns:1fr}.estate-row-status{grid-template-columns:repeat(3,minmax(0,1fr))}.estate-row-action{justify-self:start}}@media(max-width:640px){.estate-dashboard{padding:24px 20px}.estate-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.estate-row-status{grid-template-columns:repeat(2,minmax(0,1fr))}.estate-row{padding:16px}.estate-row-action{margin-top:4px}}


/* M7 document centre */



textarea {

  width: 100%;

  max-width: 100%;

  min-height: 110px;

  padding: 12px 14px;

  border: 1px solid #aebdce;

  border-radius: 9px;

  background: #fff;

  color: #17263c;

  font: inherit;

  line-height: 1.5;

  resize: vertical;

}



.document-meta {

  display: flex;

  flex-wrap: wrap;

  gap: 8px 18px;

  margin: 8px 0 0;

  color: #526176;

  font-size: 13px;

  line-height: 1.45;

}



.document-description {

  max-width: 720px;

  margin: 10px 0 0;

  color: #526176;

  font-size: 13px;

  line-height: 1.55;

}



@media (max-width: 640px) {

  .document-meta {

    display: grid;

    gap: 4px;

  }

}


/* M9.5.3 compact estate search */
.estate-search{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:16px 0 14px}.estate-search-label{margin:0;font-size:13px;font-weight:700;white-space:nowrap}.estate-search input:not([type="hidden"]){flex:1 1 320px;width:auto;min-width:220px;min-height:38px;margin:0;padding:8px 10px;border-radius:8px}.estate-search button{width:auto;min-height:38px;margin:0;padding:8px 14px;border-radius:8px}.estate-search-clear{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 12px;border:1px solid #aebdce;border-radius:8px;background:#fff;color:#17263c;font-size:14px;font-weight:600;text-decoration:none}.estate-search-clear:hover{background:#f4f7fa;text-decoration:none}.estate-search-count{margin-left:auto;color:#66758a;font-size:13px;font-weight:600;white-space:nowrap}.estate-search-empty{margin:0}@media(max-width:640px){.estate-search{align-items:stretch}.estate-search-label{flex:0 0 100%}.estate-search input:not([type="hidden"]){flex:1 1 100%;min-width:0}.estate-search-count{margin-left:0;flex:0 0 100%}}

/* SEK-DOCUMENT-PANELS-12
   Premises administration document register.
   Visual styling only; no functional changes.
*/

details.sek-document-panel.sek-document-panel-v1 {
  display: block;
  margin: 10px 0 !important;
  padding: 0 !important;
  background: #f7f9fc !important;
  border: 1px solid #dce4ed !important;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(22, 45, 69, .035);
}

details.sek-document-panel.sek-document-panel-v1:hover {
  border-color: #b8cbd8 !important;
}

details.sek-document-panel.sek-document-panel-v1[open] {
  background: #fff !important;
  border-color: #b8cbd8 !important;
}

details.sek-document-panel > summary.sek-document-summary {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 13px 16px !important;
  min-height: 62px;
  margin: 0 !important;
  cursor: pointer;
  list-style: none;
}

details.sek-document-panel > summary.sek-document-summary::-webkit-details-marker {
  display: none;
}

details.sek-document-panel > summary.sek-document-summary::marker {
  content: "";
}

details.sek-document-panel > summary.sek-document-summary::after {
  content: "▸";
  color: #64748b;
  font-size: 18px;
  margin-left: 4px;
}

details.sek-document-panel[open] > summary.sek-document-summary::after {
  content: "▾";
}

.sek-document-icon {
  flex-shrink: 0;
  font-size: 19px;
}

.sek-document-heading {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column !important;
  gap: 3px;
  min-width: 0;
}

.sek-document-heading strong {
  color: #19324b;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.sek-document-heading small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.sek-document-status {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.sek-document-status .sek-pill {
  display: inline-flex !important;
  align-items: center;
  border-radius: 999px !important;
  padding: 5px 10px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.2;
  white-space: nowrap;
}

.sek-document-status .sek-published {
  color: #11634e !important;
  background: #ddf4e9 !important;
}

.sek-document-status .sek-draft {
  color: #865511 !important;
  background: #fff0d0 !important;
}

.sek-document-status .sek-historical {
  color: #5b6676 !important;
  background: #e9edf2 !important;
}

details.sek-document-panel > .ui-document-compact {
  margin: 0 !important;
  padding: 15px 17px !important;
  border: 0 !important;
  border-top: 1px solid #e1e7ef !important;
  border-radius: 0 !important;
  background: #fff !important;
}

details.sek-document-panel > .ui-document-compact > h3:first-child {
  display: none;
}

details.sek-document-panel > summary:focus-visible {
  outline: 3px solid #087f76;
  outline-offset: -3px;
}

@media (max-width: 600px) {
  details.sek-document-panel > summary.sek-document-summary {
    gap: 8px !important;
    padding: 12px !important;
  }

  .sek-document-heading strong {
    font-size: 13px;
  }

  .sek-document-status .sek-pill {
    padding: 4px 7px !important;
    font-size: 10px !important;
  }

  details.sek-document-panel > .ui-document-compact {
    padding: 12px !important;
  }
}

/* SEK-PREMISES-TILES-14
   Three-tile premises dashboard; visual styling only.
*/

.sek-premises-tiles-v1 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  align-items: stretch;
  margin: 18px 0 24px !important;
}

.sek-premises-tiles-v1 > .ui-disclosure,
.sek-premises-tiles-v1 > .ui-asset-summary {
  display: block !important;
  min-width: 0;
  margin: 0 !important;
  padding: 16px !important;
  border: 1px solid #dce4ed !important;
  border-radius: 12px !important;
  background: #f7f9fc !important;
  box-shadow: 0 1px 3px rgba(22,45,69,.035);
  box-sizing: border-box;
}

.sek-premises-tiles-v1 > .ui-disclosure[open] {
  background: #fff !important;
}

.sek-premises-tiles-v1 > .ui-disclosure > summary {
  display: list-item;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: #18334c;
  line-height: 1.5;
}

.sek-premises-tiles-v1 > .ui-disclosure[open] > summary {
  margin-bottom: 12px;
}

.sek-premises-tiles-v1 > .ui-disclosure > section {
  min-width: 0;
}

.sek-premises-tiles-v1 > .ui-disclosure h2 {
  font-size: 15px;
  margin: 8px 0 10px;
}

.sek-premises-tiles-v1 .premises-qr {
  max-width: 100%;
  height: auto;
}

.sek-premises-tiles-v1 .qr-destination {
  overflow-wrap: anywhere;
  font-size: 11px;
}

.sek-premises-tiles-v1 .ui-asset-summary h2 {
  margin: 0 0 13px !important;
  color: #18334c;
  font-size: 15px;
}

.sek-premises-tiles-v1 .ui-asset-strip {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 9px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.sek-premises-tiles-v1 .ui-asset-strip span {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px;
  min-width: 0;
  white-space: normal !important;
  color: #65758a;
  font-size: 11px;
  line-height: 1.35;
}

.sek-premises-tiles-v1 .ui-asset-strip span strong {
  color: #17334c;
  font-size: 23px;
  line-height: 1.15;
}

.sek-premises-tiles-v1 .ui-asset-strip a {
  grid-column: 1 / -1;
  width: auto;
  margin: 7px 0 0 !important;
  font-size: 12px;
  font-weight: 600;
}

.sek-premises-tiles-v1 .ui-asset-help {
  margin: 10px 0 0;
  font-size: 11px;
  color: #65758a;
}

.sek-premises-tiles-v1 input,
.sek-premises-tiles-v1 select,
.sek-premises-tiles-v1 textarea {
  max-width: 100%;
  box-sizing: border-box;
}

.sek-premises-tiles-v1 > .ui-disclosure summary:focus-visible {
  outline: 3px solid #087f76;
  outline-offset: 3px;
}

@media (max-width: 950px) {
  .sek-premises-tiles-v1 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .sek-premises-tiles-v1 > .ui-asset-summary {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .sek-premises-tiles-v1 {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .sek-premises-tiles-v1 > .ui-asset-summary {
    grid-column: auto;
  }
}

/* SEK-ADMIN-FINDER-18R1 */
.sek-admin-finder {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid #dce4ed;
  border-radius: 12px;
  background: #f7f9fc;
}
.sek-admin-finder h2 { margin: 0 0 8px; }
.sek-admin-finder-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}
.sek-admin-finder-controls input {
  flex: 1;
  min-width: 0;
  margin: 0;
}
#sek-premises-results[hidden],
.sek-admin-finder-result[hidden] {
  display: none !important;
}
.sek-admin-finder-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 9px 0;
  padding: 12px 14px;
  background: white;
  border: 1px solid #dce4ed;
  border-radius: 10px;
}
.sek-admin-finder-result strong,
.sek-admin-finder-result small {
  display: block;
}
.sek-admin-finder-result small {
  color: #64748b;
  font-size: 12px;
  margin-top: 4px;
}
.sek-admin-customer-list {
  margin: 18px 0;
}
.sek-admin-customer-list summary {
  padding: 12px 14px;
  cursor: pointer;
  background: #f7f9fc;
  border: 1px solid #dce4ed;
  border-radius: 10px;
  font-weight: 600;
}
@media(max-width:620px) {
  .sek-admin-finder-controls,
  .sek-admin-finder-result {
    flex-direction: column;
    align-items: stretch;
  }
}


/* SEK FIRE STRATEGY GRID 369 */
.sek-fire-strategy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px;
  width: 100%;
}

.sek-fire-strategy-grid > .info-panel {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .sek-fire-strategy-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}


/* SEK FIRE STRATEGY GRID 369-R1 */
.sek-fire-strategy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}
.sek-fire-strategy-grid > .info-panel {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 640px) {
  .sek-fire-strategy-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
