@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --navy-950: #071a38;
  --navy-900: #0b2348;
  --navy-800: #12345f;
  --blue-700: #1d57d5;
  --blue-600: #2f6fed;
  --blue-500: #4382f3;
  --blue-100: #eaf2ff;
  --green-600: #23b768;
  --orange-500: #f59e0b;
  --violet-500: #8b5cf6;
  --ink-900: #101f3d;
  --ink-700: #3d4d69;
  --ink-500: #70809b;
  --line: #dce4ef;
  --canvas: #f5f7fb;
  --white: #fff;
  --sidebar-width: 244px;
  --header-h: 72px;
  --panel-radius: 14px;
  --soft-shadow: 0 7px 22px rgba(20, 45, 82, 0.07);
}

/* Operational business modules: inventory and invoices */
.businessPage {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: calc(100vh - var(--header-h));
  padding: 18px 20px 30px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 92% 2%, rgba(47, 112, 237, 0.055), transparent 24%),
    linear-gradient(180deg, #f8fafd 0, #f4f7fb 100%);
}

.businessPageHeader {
  margin-bottom: 16px;
}

.businessHeaderActions,
.invoiceDialogFooter > div,
.invoiceLinesHeading,
.invoiceLinesHeading > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.moduleSecondaryAction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 15px;
  color: var(--blue-700);
  background: #fff;
  border: 1px solid #cfdcf0;
  border-radius: 7px;
  box-shadow: 0 2px 7px rgba(28, 59, 101, 0.05);
  font-size: 0.68rem;
  font-weight: 700;
}

.moduleSecondaryAction svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.moduleSecondaryAction:hover {
  color: #fff;
  background: var(--blue-600);
  border-color: var(--blue-600);
}

.businessKpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 14px;
}

.businessKpis article {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 15px;
  background: #fff;
  border: 1px solid #e1e7ef;
  border-radius: 11px;
  box-shadow: 0 5px 16px rgba(20, 45, 82, 0.045);
}

.businessKpis article > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.businessKpis small {
  color: #7d899a;
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.businessKpis strong {
  overflow: hidden;
  color: #172a49;
  font-size: 1.08rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.businessKpis article > div > span {
  color: #8c98a8;
  font-size: 0.55rem;
}

.businessKpiIcon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
}

.businessKpiIcon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.businessKpiIcon.blue { color: #2769dc; background: #edf4ff; }
.businessKpiIcon.green { color: #168653; background: #eaf9f1; }
.businessKpiIcon.amber { color: #c37913; background: #fff7e7; }
.businessKpiIcon.slate { color: #56687f; background: #f0f3f7; }

.businessPanel {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e0e6ee;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(20, 45, 82, 0.05);
}

.businessToolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 160px auto;
  gap: 9px;
  padding: 13px;
  background: #fbfcfe;
  border-bottom: 1px solid #e5eaf1;
}

.businessToolbar input,
.businessToolbar select {
  width: 100%;
  min-height: 39px;
  color: #40516a;
  background: #fff;
  border: 1px solid #d5deea;
  border-radius: 7px;
  box-shadow: none;
  font: 600 0.62rem "Manrope", sans-serif;
}

.businessSearch {
  position: relative;
}

.businessSearch svg {
  position: absolute;
  top: 50%;
  left: 12px;
  z-index: 1;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #8492a7;
  stroke-width: 1.8;
  transform: translateY(-50%);
}

.businessSearch input {
  padding-left: 36px;
}

.businessTableWrap {
  width: 100%;
  overflow-x: auto;
}

.businessTable {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.businessTable th {
  height: 41px;
  padding: 0 12px;
  color: #6e7c91;
  background: #f7f9fc;
  border-bottom: 1px solid #e4e9f0;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.businessTable td {
  height: 61px;
  padding: 8px 12px;
  color: #4e5f77;
  border-bottom: 1px solid #edf0f4;
  font-size: 0.62rem;
  vertical-align: middle;
}

.businessTable tr:last-child td {
  border-bottom: 0;
}

.businessTable tbody tr:not(.businessRowInactive):hover {
  background: #f9fbff;
}

.businessRowInactive {
  background: #fafbfc;
  opacity: 0.68;
}

.businessEntity {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 180px;
}

.businessEntityIcon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--blue-700);
  background: #edf4ff;
  border-radius: 8px;
}

.businessEntityIcon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.businessEntity strong,
.businessDocumentNo,
.businessTable td > strong {
  display: block;
  color: #253852;
  font-size: 0.65rem;
}

.businessEntity small,
.businessTable td > small {
  display: block;
  max-width: 230px;
  margin-top: 3px;
  overflow: hidden;
  color: #8a96a7;
  font-size: 0.52rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.businessStockLow {
  color: #ba6b0c !important;
  font-weight: 800;
}

.businessBadge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.53rem;
  font-weight: 800;
  white-space: nowrap;
}

.businessBadge.success { color: #137548; background: #e9f8f0; }
.businessBadge.warning { color: #a46009; background: #fff4dc; }
.businessBadge.neutral { color: #52637a; background: #eef1f5; }
.businessBadge.inactive { color: #7d8898; background: #f1f3f6; }

.businessActions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.businessActionButton {
  min-height: 29px;
  padding: 0 9px;
  color: #fff;
  background: var(--blue-600);
  border: 1px solid var(--blue-600);
  border-radius: 6px;
  box-shadow: none;
  font-size: 0.53rem;
  font-weight: 750;
  white-space: nowrap;
}

.businessActionButton.secondary {
  color: #48617e;
  background: #fff;
  border-color: #d2dbe7;
}

.businessActionButton.success {
  background: #1c9a60;
  border-color: #1c9a60;
}

.businessTableState {
  height: 150px !important;
  color: #8290a4 !important;
  text-align: center;
}

.businessTableState.error {
  color: #b23e49 !important;
  background: #fff8f8;
}

.businessTableFooter {
  display: flex;
  min-height: 45px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 13px;
  color: #7e8b9e;
  background: #fbfcfe;
  border-top: 1px solid #e7ebf1;
  font-size: 0.57rem;
}

.businessTableFooter .msg {
  margin: 0;
}

.businessDialog {
  width: min(670px, calc(100vw - 30px));
}

.businessFormGrid {
  padding: 18px 20px;
}

.businessFormGrid textarea {
  resize: vertical;
}

.businessCheckbox {
  display: flex !important;
  align-items: center;
  align-self: end;
  min-height: 40px;
  flex-direction: row !important;
  gap: 9px !important;
}

.businessCheckbox input {
  width: 16px !important;
  height: 16px;
}

.businessHint {
  margin: -5px 20px 13px;
  padding: 9px 11px;
  color: #60738e;
  background: #f3f7fd;
  border-radius: 7px;
  font-size: 0.57rem;
}

.businessDialog .sheetMessage {
  margin: 0 20px 10px;
}

.invoiceDialog {
  width: calc(100vw - var(--sidebar-width) - 40px);
  max-width: calc(100vw - var(--sidebar-width) - 40px);
}

.invoiceDialog > form {
  max-height: min(88vh, 850px);
  overflow: hidden;
}

.invoiceDialogBody {
  max-height: calc(88vh - 144px);
  overflow-y: auto;
  background: #f6f8fb;
}

.invoiceMetaSection,
.invoiceLinesSection {
  background: #fff;
}

.invoiceMetaSection {
  border-bottom: 1px solid #e3e8ef;
}

.invoiceLinesSection {
  margin-top: 10px;
  padding: 16px 20px 19px;
  border-top: 1px solid #e3e8ef;
  border-bottom: 1px solid #e3e8ef;
}

.invoiceLinesHeading {
  justify-content: space-between;
  margin-bottom: 13px;
}

.invoiceLinesHeading > div {
  display: block;
}

.invoiceLinesHeading h4 {
  margin: 0;
  color: #263a56;
  font-size: 0.72rem;
}

.invoiceLinesHeading p {
  margin: 3px 0 0;
  color: #8794a7;
  font-size: 0.53rem;
}

.invoiceLineLabels,
.invoiceLine {
  display: grid;
  grid-template-columns: minmax(270px, 2.3fr) 90px 70px 110px 76px 120px 32px;
  gap: 7px;
  align-items: center;
}

.invoiceLineLabels {
  padding: 0 5px 6px;
  color: #7a899d;
  font-size: 0.5rem;
  font-weight: 800;
  text-transform: uppercase;
}

.invoiceLines {
  display: grid;
  gap: 8px;
}

.invoiceLine {
  padding: 9px;
  background: #f9fbfd;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.invoiceLine input,
.invoiceLine select {
  width: 100%;
  min-width: 0;
  min-height: 35px;
  padding: 0 8px;
  color: #40516a;
  background: #fff;
  border: 1px solid #d4dde9;
  border-radius: 6px;
  font: 600 0.56rem "Manrope", sans-serif;
}

.invoiceLineDescriptionWrap {
  display: grid;
  grid-template-columns: minmax(115px, 0.8fr) minmax(130px, 1.2fr);
  gap: 6px;
}

.invoiceLineTotal {
  color: #233b5c;
  font-size: 0.61rem;
  text-align: right;
  white-space: nowrap;
}

.invoiceLineRemove {
  display: grid;
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  place-items: center;
  color: #a33c47;
  background: #fff;
  border: 1px solid #edd1d5;
  border-radius: 6px;
  box-shadow: none;
  font-size: 1rem;
}

.invoiceTotals {
  display: grid;
  width: min(400px, calc(100% - 40px));
  margin: 12px 20px 17px auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce4ed;
  border-radius: 9px;
}

.invoiceTotals > div {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  color: #687890;
  border-bottom: 1px solid #e8ecf2;
  font-size: 0.59rem;
}

.invoiceTotals > div:last-child {
  border-bottom: 0;
}

.invoiceTotals strong {
  color: #283e5c;
}

.invoiceTotals .invoiceGrandTotal {
  min-height: 48px;
  color: #fff;
  background: #193b6d;
}

.invoiceGrandTotal strong {
  color: #fff;
  font-size: 0.83rem;
}

.invoiceDialogFooter {
  align-items: center;
  justify-content: space-between;
}

.invoiceStatusSummary {
  color: #697991;
  font-size: 0.59rem;
  font-weight: 700;
}

/* Operational dashboard and accounting */
.operationsSnapshotPanel {
  margin-bottom: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 96% -15%, rgba(30, 104, 224, 0.1), transparent 28%),
    rgba(255, 255, 255, 0.98);
}

.liveDataBadge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  color: #42705a;
  background: #edf8f2;
  border: 1px solid #d4ecdf;
  border-radius: 999px;
  font-size: 0.53rem;
  font-weight: 800;
}

.liveDataBadge i {
  width: 6px;
  height: 6px;
  background: #28a76b;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(40, 167, 107, 0.11);
}

.operationsMetrics {
  display: grid;
  grid-template-columns: repeat(7, minmax(125px, 1fr));
  gap: 10px;
}

.operationsMetric {
  display: grid;
  min-width: 0;
  min-height: 112px;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  padding: 13px 11px;
  color: #314761;
  text-align: left;
  background: #fbfcfe;
  border: 1px solid #e3e9f1;
  border-radius: 10px;
  box-shadow: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.operationsMetric:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: #c7d7ec;
  box-shadow: 0 9px 22px rgba(25, 57, 99, 0.09);
}

.operationsMetricIcon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #2c6dd4;
  background: #edf4ff;
  border-radius: 9px;
}

.operationsMetricIcon svg {
  width: 17px;
  height: 17px;
}

.operationsMetric > span:last-child {
  display: grid;
  min-width: 0;
}

.operationsMetric small {
  overflow: hidden;
  color: #6e7e93;
  font-size: 0.53rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operationsMetric strong {
  margin: 6px 0 4px;
  overflow: hidden;
  color: #172d49;
  font-size: 0.92rem;
  font-weight: 850;
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operationsMetric em {
  overflow: hidden;
  color: #96a1b1;
  font-size: 0.48rem;
  font-style: normal;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operationsMetric.critical .operationsMetricIcon {
  color: #c84954;
  background: #fff0f1;
}

.operationsMetric.waiting .operationsMetricIcon,
.operationsMetric.stock .operationsMetricIcon {
  color: #b97812;
  background: #fff6e4;
}

.operationsMetric.materials .operationsMetricIcon,
.operationsMetric.finance .operationsMetricIcon {
  color: #188056;
  background: #eaf8f1;
}

.accountingNotice {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  margin-top: 14px;
  padding: 13px 15px;
  color: #304966;
  background: linear-gradient(100deg, #f1f6fd, #f8fbff);
  border: 1px solid #d9e5f4;
  border-radius: 10px;
}

.accountingNoticeIcon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #286bd1;
  background: #fff;
  border: 1px solid #d9e5f4;
  border-radius: 9px;
}

.accountingNoticeIcon svg {
  width: 19px;
  height: 19px;
}

.accountingNotice strong,
.accountingNotice p {
  display: block;
  margin: 0;
}

.accountingNotice strong {
  font-size: 0.67rem;
}

.accountingNotice p {
  margin-top: 3px;
  color: #71839a;
  font-size: 0.54rem;
}

.accountingNoticeStatus {
  padding: 6px 9px;
  color: #38659d;
  background: #fff;
  border: 1px solid #d7e3f2;
  border-radius: 999px;
  font-size: 0.5rem;
  font-weight: 800;
  white-space: nowrap;
}

.businessActions {
  flex-wrap: wrap;
}

.businessActionButton.accountingExport {
  color: #365f91;
  background: #f4f8fd;
  border-color: #d5e1ef;
}

.businessActionButton.accountingSync {
  color: #176d4c;
  background: #edf8f2;
  border-color: #cce8da;
}

@media (max-width: 1180px) {
  .businessKpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operationsMetrics {
    grid-template-columns: repeat(4, minmax(145px, 1fr));
  }

  .invoiceLineLabels {
    display: none;
  }

  .invoiceLine {
    grid-template-columns: minmax(250px, 2fr) repeat(4, minmax(75px, 1fr)) 110px 32px;
  }
}

@media (max-width: 760px) {
  .operationsMetrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .accountingNotice {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .accountingNoticeStatus {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 460px) {
  .operationsMetrics {
    grid-template-columns: 1fr;
  }

  .operationsMetric {
    min-height: 86px;
  }

  .liveDataBadge {
    display: none;
  }
}

@media (max-width: 760px) {
  .businessPage {
    padding: 14px 11px 24px;
  }

  .businessPageHeader,
  .businessHeaderActions,
  .invoiceLinesHeading {
    align-items: stretch;
    flex-direction: column;
  }

  .businessHeaderActions > button,
  .businessPageHeader > button {
    width: 100%;
  }

  .businessKpis,
  .businessToolbar {
    grid-template-columns: 1fr;
  }

  .businessKpis article {
    min-height: 78px;
  }

  .businessDialog,
  .invoiceDialog {
    width: 100%;
    max-width: 100%;
    margin: 0;
    max-height: 100vh;
    border-radius: 0;
  }

  .invoiceDialog > form,
  .invoiceDialogBody {
    max-height: 100vh;
  }

  .invoiceLinesSection {
    padding: 13px 11px;
  }

  .invoiceLine {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .invoiceLineDescriptionWrap {
    grid-column: 1 / -1;
  }

  .invoiceLineTotal {
    text-align: left;
  }

  .invoiceLineRemove {
    justify-self: end;
  }

  .invoiceTotals {
    width: calc(100% - 22px);
    margin: 11px;
  }

  .invoiceDialogFooter,
  .invoiceDialogFooter > div {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .invoiceStatusSummary {
    text-align: center;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
}

body {
  color: var(--ink-900);
  background: var(--canvas);
  font-family: "Manrope", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.srOnly {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.svgSprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

#app {
  width: 100%;
  max-width: none;
  padding: 0;
}

/* Top navigation */
header.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: var(--header-h);
  height: var(--header-h);
  margin: 0;
  padding: 0 17px;
  color: #fff;
  background:
    radial-gradient(circle at 74% -140%, rgba(70, 134, 255, 0.5), transparent 34rem),
    linear-gradient(106deg, #071831 0%, #0b2758 58%, #11438f 100%);
  border: 0;
  border-bottom: 1px solid rgba(168, 196, 239, 0.2);
  border-radius: 0;
  box-shadow: 0 5px 20px rgba(4, 18, 42, 0.16);
}

header.topbar::before {
  display: none;
}

.sidebarToggle {
  display: grid;
  width: 34px;
  min-width: 34px;
  height: 40px;
  min-height: 40px;
  margin: 0 15px 0 -7px;
  padding: 0;
  place-items: center;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 7px;
  box-shadow: none;
}

.sidebarToggle:hover {
  background: rgba(255, 255, 255, 0.09);
}

.menuLines,
.menuLines::before,
.menuLines::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.menuLines {
  position: relative;
}

.menuLines::before,
.menuLines::after {
  content: "";
  position: absolute;
  left: 0;
}

.menuLines::before {
  top: -6px;
}

.menuLines::after {
  top: 6px;
}

.brandMark {
  display: grid;
  width: 42px;
  height: 48px;
  margin-right: 9px;
  place-items: center;
}

.brandMark svg {
  width: 40px;
  height: 40px;
}

header .brand {
  min-width: 310px;
  max-width: 470px;
}

header .brand h1 {
  margin: 0;
  color: #fff;
  font-size: 1.23rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

header .brand p {
  margin: 3px 0 0;
  color: rgba(229, 239, 255, 0.82);
  font-size: 0.72rem;
  line-height: 1.25;
}

.activeViewBadge {
  display: none;
}

.topbarActions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.quickSearch {
  position: relative;
  display: block;
  width: min(260px, 21vw);
  z-index: 40;
}

.quickSearch input {
  width: 100%;
  height: 40px;
  min-height: 40px;
  padding: 0 42px 0 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  outline: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.04);
}

.quickSearch input::placeholder {
  color: rgba(255, 255, 255, 0.53);
}

.quickSearch input:focus {
  border-color: rgba(143, 184, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(93, 153, 255, 0.15);
}

.quickSearch > svg {
  position: absolute;
  top: 12px;
  right: 15px;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #9eb8e4;
  stroke-width: 1.8;
  pointer-events: none;
}

.globalSearchDropdown {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  width: min(440px, calc(100vw - 24px));
  max-height: min(70vh, 520px);
  overflow-y: auto;
  color: #263b54;
  background: #fff;
  border: 1px solid #d7e1eb;
  border-radius: 13px;
  box-shadow: 0 20px 55px rgba(7, 25, 57, 0.24);
}

.globalSearchDropdown[hidden] {
  display: none;
}

.globalSearchGroup {
  padding: 7px;
}

.globalSearchGroup + .globalSearchGroup {
  border-top: 1px solid #e8edf3;
}

.globalSearchGroupHeading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px 5px;
}

.globalSearchGroupHeading strong {
  color: #68798e;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.globalSearchGroupHeading span {
  display: grid;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  place-items: center;
  color: #5f7085;
  background: #edf2f7;
  border-radius: 999px;
  font-size: 0.55rem;
  font-weight: 800;
}

.globalSearchOption {
  display: grid;
  width: 100%;
  min-height: 57px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  color: #263b54;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 9px;
  box-shadow: none;
}

.globalSearchOption:hover,
.globalSearchOption.active {
  background: #edf5ff;
}

.globalSearchOption.active {
  box-shadow: inset 3px 0 #2f7bc2;
}

.globalSearchOptionIcon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #17639f;
  background: #e9f3fc;
  border-radius: 9px;
}

.globalSearchOptionIcon.client {
  color: #176437;
  background: #e9f7ef;
}

.globalSearchOptionIcon.ticket {
  color: #9a5a15;
  background: #fff3df;
}

.globalSearchOptionIcon svg,
.globalSearchState svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.globalSearchOption > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.globalSearchOption > div strong,
.globalSearchOption > div span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.globalSearchOption > div strong {
  color: #283d55;
  font-size: 0.67rem;
  font-weight: 800;
}

.globalSearchOption > div span {
  color: #76869a;
  font-size: 0.59rem;
}

.globalSearchOption > i {
  color: #9aabba;
  font-size: 1.15rem;
  font-style: normal;
}

.globalSearchState {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 20px;
}

.globalSearchState > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  color: #3977ae;
  background: #edf5fc;
  border-radius: 10px;
}

.globalSearchState > div {
  display: grid;
  gap: 3px;
}

.globalSearchState strong {
  color: #34495f;
  font-size: 0.68rem;
}

.globalSearchState div span {
  color: #78889b;
  font-size: 0.6rem;
}

.globalSearchState.error > span {
  color: #a04449;
  background: #fff0f1;
}

.globalSearchTarget {
  animation: global-search-highlight 3.2s ease;
}

@keyframes global-search-highlight {
  0%,
  100% {
    box-shadow: none;
  }
  12%,
  72% {
    background: #edf6ff;
    box-shadow: inset 4px 0 #2f7bc2;
  }
}

.notificationButton {
  position: relative;
  display: grid;
  width: 34px;
  min-width: 34px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  place-items: center;
  color: #f2f7ff;
  background: transparent;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}

.notificationButton:hover {
  background: rgba(255, 255, 255, 0.08);
}

.notificationButton svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notificationButton span {
  position: absolute;
  top: 2px;
  right: -1px;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  color: #fff;
  background: #36b96f;
  border: 2px solid #16488e;
  border-radius: 50%;
  font-size: 0.55rem;
  font-weight: 800;
}

.notificationButton span[hidden] {
  display: none;
}

#topbarNotificationBadge {
  width: auto;
  min-width: 16px;
  padding: 0 3px;
}

.notificationButton.summaryError {
  color: #ffd18a;
}

.notificationButton.summaryError::after {
  position: absolute;
  top: 5px;
  right: 3px;
  width: 6px;
  height: 6px;
  content: "";
  background: #f4a340;
  border: 1px solid #16488e;
  border-radius: 50%;
}

.notificationButton[aria-busy="true"] svg {
  opacity: 0.62;
}

.userSummary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 202px;
}

.userAvatar {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #48a8ec, #2e80ce);
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  font-size: 0.85rem;
  font-weight: 800;
}

.userSummary strong {
  display: block;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.35;
}

#userBox {
  max-width: 145px;
  margin: 1px 0 0;
  overflow: hidden;
  color: #bcd0ef;
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.userChevron {
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-right: 1.5px solid #d6e5fa;
  border-bottom: 1.5px solid #d6e5fa;
  transform: rotate(45deg) translateY(-2px);
}

/* Sidebar and main shell */
.appShell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - var(--header-h));
  align-items: stretch;
}

#sidebar {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  max-width: var(--sidebar-width);
  height: calc(100vh - var(--header-h));
  min-height: calc(100vh - var(--header-h));
  padding: 24px 8px 14px;
  overflow: hidden auto;
  color: #e9f1ff;
  background:
    linear-gradient(180deg, rgba(25, 65, 111, 0.25), transparent 35%),
    linear-gradient(180deg, #091d3b, #102e54);
  border: 0;
  border-right: 1px solid rgba(181, 204, 240, 0.12);
  border-radius: 0;
  box-shadow: 7px 0 24px rgba(13, 36, 68, 0.06);
}

.sidebarHeader {
  padding: 0 8px 12px;
  border: 0;
}

.sidebarHeader p,
.systemNav > p {
  margin: 0;
  color: #8298b9;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.015em;
}

.sidebarSearchWrap {
  display: none;
}

#sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0;
}

#sidebar nav button,
.systemNav button {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 25px;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 45px;
  min-height: 45px;
  margin: 0;
  padding: 0 8px 0 10px;
  color: #f2f6fe;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: none;
  font-size: 0.76rem;
  font-weight: 700;
  text-align: left;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

#sidebar nav button:hover,
.systemNav button:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.06);
  transform: translateX(2px);
}

#sidebar nav button.active,
#sidebar nav button[aria-current="page"] {
  color: #fff;
  background: linear-gradient(108deg, #316fe9, #427fec);
  border-color: rgba(118, 164, 255, 0.78);
  outline: 0;
  box-shadow: 0 6px 15px rgba(26, 90, 211, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.navIcon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#sidebar .label {
  min-width: 0;
}

#sidebar kbd {
  display: grid;
  width: 25px;
  height: 25px;
  padding: 0;
  place-items: center;
  color: #dce8fa;
  background: rgba(105, 148, 211, 0.2);
  border: 0;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font: 700 0.67rem "Manrope", sans-serif;
}

#sidebar nav button.active kbd {
  color: #fff;
  background: rgba(7, 45, 112, 0.35);
}

.systemNav {
  margin-top: 18px;
}

.systemNav > p {
  margin: 0 8px 9px;
}

.systemNav #logoutBtn {
  background: transparent;
  border-color: transparent;
}

.supportCard {
  display: grid;
  grid-template-columns: 32px 1fr 15px;
  align-items: center;
  gap: 8px;
  min-height: 65px;
  margin: auto 8px 0;
  padding: 10px;
  color: #dce9fb;
  background: rgba(67, 105, 159, 0.16);
  border: 1px solid rgba(139, 170, 214, 0.14);
  border-radius: 9px;
}

.supportIcon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: #fff;
  border: 2px solid #a8c5ed;
  border-radius: 50%;
  font-weight: 800;
}

.supportCard strong,
.supportCard small {
  display: block;
}

.supportCard strong {
  font-size: 0.64rem;
}

.supportCard small {
  margin-top: 3px;
  color: #91a9ca;
  font-size: 0.55rem;
}

body.sidebar-compact {
  --sidebar-width: 76px;
}

body.sidebar-compact #sidebar {
  padding-right: 8px;
  padding-left: 8px;
}

body.sidebar-compact .sidebarHeader,
body.sidebar-compact .systemNav > p,
body.sidebar-compact #sidebar .label,
body.sidebar-compact #sidebar kbd,
body.sidebar-compact .supportCard {
  display: none;
}

body.sidebar-compact #sidebar nav button,
body.sidebar-compact .systemNav button {
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 0;
}

.appContent {
  min-width: 0;
  padding: 0;
  background:
    radial-gradient(circle at 53% 0%, rgba(47, 111, 237, 0.045), transparent 35rem),
    var(--canvas);
}

.appContent > .view:not(.clientsPage) {
  margin: 20px;
}

.appContent > .view.dashboardPage,
.appContent > .view.assetsPage,
.appContent > .view.ticketsPage,
.appContent > .view.interventionsPage,
.appContent > .view.reportsPage,
.appContent > .view.schedulesPage,
.appContent > .view.contractsPage,
.appContent > #inventory.businessPage,
.appContent > #invoices.businessPage,
.appContent > .view.notificationsPage,
.appContent > .view.usersPage,
.appContent > .view.portalPage {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

/* Operational dashboard */
.appContent > .dashboardPage {
  display: block;
  width: auto;
  min-height: calc(100vh - var(--header-h));
  margin: 0;
  padding: 17px 20px 28px;
}

.dashboardPage.hidden {
  display: none !important;
}

.dashboardHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 0 6px 15px;
}

.dashboardHeader .pageTitleGroup h2 {
  margin: 0;
  color: var(--ink-900);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.dashboardHeader .pageTitleGroup p {
  margin: 6px 0 0;
  color: var(--ink-500);
  font-size: 0.76rem;
}

.dashboardHeaderMeta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dashboardHeaderMeta > span {
  color: #78879d;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: capitalize;
}

.dashboardHeaderMeta button,
.dashboardPanelTitle > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 13px;
  color: var(--blue-700);
  background: #f4f7ff;
  border: 1px solid #d7e3f8;
  border-radius: 7px;
  box-shadow: none;
  font-size: 0.64rem;
  font-weight: 700;
}

.dashboardHeaderMeta button {
  min-height: 39px;
  padding: 0 16px;
  color: #fff;
  background: linear-gradient(110deg, #2f70ed, #2864dd);
  border-color: #265ed2;
}

.dashboardHeaderMeta button:hover {
  background: linear-gradient(110deg, #3678f3, #235bd0);
}

.dashboardHeaderMeta svg,
.dashboardPanelTitle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboardKpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  min-height: 92px;
  margin-bottom: 18px;
}

.dashboardKpi {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 92px;
  padding: 14px 15px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e1e7ef;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(20, 45, 82, 0.05);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.dashboardKpi[role="button"] {
  cursor: pointer;
}

.dashboardKpi[role="button"]:hover {
  border-color: #cbd9ed;
  box-shadow: 0 10px 24px rgba(20, 45, 82, 0.09);
  transform: translateY(-2px);
}

.dashboardKpi::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: currentColor;
  opacity: 0.72;
}

.dashboardKpiIcon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: inherit;
  background: color-mix(in srgb, currentColor 10%, white);
  border-radius: 10px;
}

.dashboardKpiIcon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboardKpi.blue {
  color: #2f6fed;
}

.dashboardKpi.green {
  color: #1ba564;
}

.dashboardKpi.orange {
  color: #dc8a0b;
}

.dashboardKpi.red {
  color: #d64e55;
}

.dashboardKpiBody {
  min-width: 0;
}

.dashboardKpiBody small,
.dashboardKpiBody strong,
.dashboardKpiBody span {
  display: block;
}

.dashboardKpiBody small {
  overflow: hidden;
  color: #6d7b91;
  font-size: 0.64rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboardKpiBody strong {
  margin: 3px 0;
  color: var(--ink-900);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.dashboardKpiBody span {
  overflow: hidden;
  color: #8b98aa;
  font-size: 0.56rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboardKpi > i {
  align-self: start;
  color: currentColor;
  font-size: 0.86rem;
  font-style: normal;
  opacity: 0.7;
}

.dashboardPerformancePanel {
  margin-bottom: 0;
}

.dashboardPerformanceControls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.dashboardPerformanceControl {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.dashboardPerformanceControl span {
  color: #76879a;
  font-size: 0.58rem;
  font-weight: 760;
}

.dashboardPerformanceControl input {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  color: #33435b;
  background: #f8fafc;
  border: 1px solid #d9e3ef;
  border-radius: 8px;
  font: 600 0.62rem "Manrope", sans-serif;
}

.dashboardPerformanceActions {
  display: flex;
  align-items: end;
  gap: 8px;
}

.dashboardPerformanceActions button {
  min-height: 38px;
}

.dashboardPerformanceActions button:first-child {
  min-width: 110px;
}

.dashboardPerformanceActions button:last-child {
  min-width: 90px;
}

.dashboardPerformanceKpis {
  margin-bottom: 10px;
}

.dashboardPerformanceTechnicians {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 4px;
}

.dashboardMainGrid,
.dashboardLowerGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(310px, 0.85fr);
  gap: 18px;
  margin-bottom: 18px;
}

.dashboardPanel {
  min-width: 0;
  padding: 15px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid #e0e6ef;
  border-radius: 13px;
  box-shadow: var(--soft-shadow);
}

.dashboardPanelTitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.dashboardPanelTitle > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dashboardPanelTitle > div > svg {
  width: 20px;
  height: 20px;
  color: var(--blue-600);
}

.dashboardPanelTitle h3 {
  margin: 0;
  color: var(--ink-900);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  text-transform: none;
}

.dashboardPanelTitle p {
  margin: 3px 0 0;
  color: #8390a3;
  font-size: 0.56rem;
}

.dashboardPanelTitle > button:hover {
  color: #fff;
  background: var(--blue-600);
  border-color: var(--blue-600);
}

.ticketHealthContent {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr);
  align-items: center;
  gap: 24px;
  min-height: 210px;
  padding: 4px 10px 12px;
}

.ticketRingWrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.ticketRing {
  --close-angle: 0deg;
  position: relative;
  display: grid;
  width: 142px;
  min-width: 142px;
  height: 142px;
  place-items: center;
  background: conic-gradient(#28ac69 0 var(--close-angle), #3474ec var(--close-angle) 360deg);
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(47, 111, 237, 0.12);
}

.ticketRing.empty {
  background: #e8edf4;
}

.ticketRing::after {
  content: "";
  position: absolute;
  width: 102px;
  height: 102px;
  background: #fff;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px #edf1f6;
}

.ticketRing > div {
  position: relative;
  z-index: 1;
  text-align: center;
}

.ticketRing strong,
.ticketRing span {
  display: block;
}

.ticketRing strong {
  color: var(--ink-900);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.ticketRing span {
  margin-top: 3px;
  color: #8592a4;
  font-size: 0.55rem;
}

.ticketLegend {
  display: grid;
  gap: 12px;
}

.ticketLegend span {
  display: grid;
  grid-template-columns: 8px minmax(55px, 1fr) auto;
  align-items: center;
  gap: 7px;
  color: #65738a;
  font-size: 0.6rem;
}

.ticketLegend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.ticketLegend i.open {
  background: #3474ec;
}

.ticketLegend i.closed {
  background: #28ac69;
}

.ticketLegend strong {
  color: var(--ink-900);
  font-size: 0.68rem;
}

.priorityBlock {
  min-width: 0;
  padding: 15px;
  background: #f8fafd;
  border: 1px solid #e8edf3;
  border-radius: 10px;
}

.priorityHeading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.priorityHeading strong {
  color: #33445f;
  font-size: 0.66rem;
}

.priorityHeading span {
  color: #8a97a9;
  font-size: 0.55rem;
}

.priorityDistribution {
  display: grid;
  gap: 14px;
}

.priorityRow > div:first-child {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: #6c7a90;
  font-size: 0.58rem;
}

.priorityRow strong {
  color: #384861;
  font-size: 0.6rem;
}

.priorityTrack {
  height: 7px;
  overflow: hidden;
  background: #e8edf3;
  border-radius: 999px;
}

.priorityTrack i {
  display: block;
  min-width: 3px;
  height: 100%;
  border-radius: inherit;
}

.priorityRow.high .priorityTrack i {
  background: #e3575e;
}

.priorityRow.medium .priorityTrack i {
  background: #e7a126;
}

.priorityRow.low .priorityTrack i {
  background: #42a576;
}

.riskStrip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 13px;
  border-top: 1px solid #e7ecf2;
}

.riskStrip article {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 9px 10px;
  background: #fafbfd;
  border: 1px solid #edf1f5;
  border-radius: 8px;
}

.riskIcon {
  display: grid;
  width: 29px;
  min-width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 7px;
  font-size: 0.58rem;
  font-weight: 800;
}

.riskIcon.danger {
  color: #d84e55;
  background: #fff0f1;
}

.riskIcon.warning {
  color: #cf8210;
  background: #fff5e5;
}

.riskIcon.safe {
  color: #15955a;
  background: #eaf8f1;
}

.riskStrip small,
.riskStrip strong {
  display: block;
}

.riskStrip small {
  overflow: hidden;
  color: #7a8799;
  font-size: 0.53rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.riskStrip strong {
  margin-top: 2px;
  color: var(--ink-900);
  font-size: 0.78rem;
}

.quickActionsGrid {
  display: grid;
  gap: 9px;
}

.quickActionsGrid > button {
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 11px;
  min-height: 57px;
  padding: 8px 10px;
  color: #41516a;
  background: #fff;
  border: 1px solid #e4e9f0;
  border-radius: 9px;
  box-shadow: none;
  text-align: left;
}

.quickActionsGrid > button:hover {
  background: #f8faff;
  border-color: #cbd9ed;
  transform: translateX(2px);
}

.quickActionsGrid button > span {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border-radius: 8px;
}

.quickActionsGrid span.blue {
  color: #2f6fed;
  background: #edf3ff;
}

.quickActionsGrid span.green {
  color: #1ba564;
  background: #eaf8f1;
}

.quickActionsGrid span.orange {
  color: #d9860d;
  background: #fff5e5;
}

.quickActionsGrid span.violet {
  color: #7452d2;
  background: #f1edff;
}

.quickActionsGrid svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quickActionsGrid strong,
.quickActionsGrid small {
  display: block;
}

.quickActionsGrid strong {
  color: #30415c;
  font-size: 0.65rem;
}

.quickActionsGrid small {
  margin-top: 3px;
  color: #8794a7;
  font-size: 0.54rem;
}

.quickActionsGrid i {
  color: #8fa0b7;
  font-size: 1rem;
  font-style: normal;
}

.dashboardFeed {
  min-height: 222px;
  max-height: 330px;
  overflow: auto;
}

.dashboardFeedItem {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 9px 5px;
  border-bottom: 1px solid #edf1f5;
}

.dashboardFeedItem:last-child {
  border-bottom: 0;
}

.feedIcon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--blue-600);
  background: #eef3ff;
  border-radius: 8px;
}

.reportFeedItem .feedIcon {
  color: #d8890d;
  background: #fff5e5;
}

.feedIcon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.feedMain {
  min-width: 0;
}

.feedMain > div {
  display: flex;
  gap: 7px;
  min-width: 0;
}

.feedMain strong,
.feedMain span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedMain strong {
  flex: 0 0 auto;
  color: #283a56;
  font-size: 0.62rem;
}

.feedMain span {
  color: #53627a;
  font-size: 0.61rem;
}

.feedMain p {
  margin: 4px 0 0;
  color: #8a97a8;
  font-size: 0.54rem;
}

.feedMeta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.statusBadge,
.priorityBadge {
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 0.49rem;
  font-weight: 700;
  white-space: nowrap;
}

.statusBadge.open {
  color: #2762c9;
  background: #eaf1ff;
}

.statusBadge.in_progress {
  color: #a0660d;
  background: #fff4df;
}

.statusBadge.waiting {
  color: #6c51b9;
  background: #f2edff;
}

.statusBadge.closed {
  color: #167e4e;
  background: #e7f7ef;
}

.priorityBadge.high {
  color: #c8434c;
  background: #ffedef;
}

.priorityBadge.medium {
  color: #a56a0e;
  background: #fff4df;
}

.priorityBadge.low {
  color: #1a8050;
  background: #e8f7ef;
}

.dashboardFeed time {
  color: #97a2b2;
  font-size: 0.49rem;
  white-space: nowrap;
}

.dashboardFeed.compact .dashboardFeedItem {
  grid-template-columns: 38px minmax(0, 1fr) auto;
}

.dashboardEmpty {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #7c899b;
  text-align: center;
}

.dashboardEmpty::before {
  content: "";
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  background:
    linear-gradient(#dce7f8 0 0) center 11px / 22px 2px no-repeat,
    linear-gradient(#dce7f8 0 0) center 20px / 16px 2px no-repeat,
    #f1f5fb;
  border: 1px solid #dfe7f2;
  border-radius: 12px;
}

.dashboardEmpty strong {
  color: #52617a;
  font-size: 0.66rem;
}

.dashboardEmpty span {
  margin-top: 4px;
  font-size: 0.54rem;
}

.technicianPanel {
  margin-bottom: 0;
}

.technicianPerformance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.technicianPerformance > article {
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 9px 10px;
  background: #f9fbfd;
  border: 1px solid #e9edf3;
  border-radius: 9px;
}

.technicianAvatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #4e91eb, #2f6fd2);
  border-radius: 50%;
  font-size: 0.56rem;
  font-weight: 800;
}

.technicianPerformance article > div {
  min-width: 0;
}

.technicianPerformance article strong {
  display: block;
  overflow: hidden;
  color: #394a64;
  font-size: 0.6rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.technicianTrack {
  display: block;
  height: 5px;
  margin-top: 7px;
  overflow: hidden;
  background: #e6ecf3;
  border-radius: 999px;
}

.technicianTrack i {
  display: block;
  min-width: 3px;
  height: 100%;
  background: linear-gradient(90deg, #3677ea, #52a1f2);
  border-radius: inherit;
}

.technicianPerformance article > b {
  color: #66758b;
  font-size: 0.54rem;
  font-weight: 700;
  white-space: nowrap;
}

.technicianPerformance > .dashboardEmpty {
  grid-column: 1 / -1;
  min-height: 120px;
}

/* Clients page */
.clientsPage {
  display: block;
  width: 100%;
  min-height: calc(100vh - var(--header-h));
  margin: 0;
  padding: 17px 20px 28px;
  background: transparent;
}

.clientsPage.hidden {
  display: none !important;
}

.clientsPageHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  margin-bottom: 14px;
  padding: 12px 14px 13px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #dfe7f3;
  border-radius: 14px;
  box-shadow: 0 7px 18px rgba(30, 57, 102, 0.08);
}

.pageTitleGroup {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pageTitleIcon {
  width: 27px;
  height: 27px;
  margin-top: 1px;
  fill: none;
  stroke: var(--blue-600);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pageTitleGroup h2 {
  margin: 0;
  color: var(--ink-900);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.pageTitleGroup p {
  margin: 6px 0 0;
  color: var(--ink-500);
  font-size: 0.76rem;
  line-height: 1.4;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #74849d;
  font-size: 0.7rem;
}

.breadcrumb svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #7183a0;
  stroke-width: 1.8;
}

.breadcrumb strong {
  font-weight: 600;
}

.clientsWorkspace {
  display: grid;
  grid-template-columns: minmax(390px, 0.74fr) minmax(560px, 1.28fr);
  align-items: stretch;
  gap: 18px;
}

.clientPanel,
.ioPanel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e0e6ef;
  border-radius: var(--panel-radius);
  box-shadow: var(--soft-shadow);
}

.clientPanel {
  min-height: 320px;
  padding: 14px;
}

.panelTitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  margin-bottom: 13px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
}

.panelTitle > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panelTitle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--blue-600);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.panelTitle h3 {
  margin: 0;
  color: var(--ink-900);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
}

.panelAddIcon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--blue-600);
  background: #f3f7ff;
  border: 1px solid #d9e4f8;
  border-radius: 8px;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1;
}

.clientForm {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 16px;
}

.clientForm label {
  display: grid;
  align-items: initial;
  gap: 7px;
  color: #44536c;
  font-size: 0.7rem;
  font-weight: 600;
}

.clientForm input {
  width: 100%;
  height: 41px;
  min-height: 41px;
  padding: 0 13px;
  color: var(--ink-900);
  background: #fff;
  border: 1px solid #d5deea;
  border-radius: 6px;
  outline: none;
}

.clientForm input::placeholder {
  color: #96a4b9;
  font-size: 0.72rem;
}

.clientForm input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.11);
}

.inputWithIcon {
  position: relative;
  display: block;
}

.inputWithIcon svg {
  position: absolute;
  top: 13px;
  left: 14px;
  z-index: 1;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #6d7d97;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.inputWithIcon input {
  padding-left: 42px;
}

.primaryWide,
.secondaryWide {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 44px;
  min-height: 44px;
  margin-top: 5px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 800;
}

.primaryWide {
  color: #fff;
  background: linear-gradient(110deg, #2e6ce9, #2c65de);
  border: 1px solid #235bd2;
  box-shadow: 0 7px 14px rgba(47, 111, 237, 0.18);
}

.primaryWide:hover {
  background: linear-gradient(110deg, #3475f1, #2862da);
}

.primaryWide svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.secondaryWide {
  margin-top: -4px;
  color: var(--blue-700);
  background: #fff;
  border: 1px solid #a9c2ef;
}

.clientListPanel {
  display: flex;
  flex-direction: column;
}

.clientSearch {
  position: relative;
  display: block;
  margin-bottom: 13px;
}

.clientSearch input {
  width: 100%;
  height: 41px;
  min-height: 41px;
  padding: 0 88px 0 14px;
  color: var(--ink-900);
  background: #fff;
  border: 1px solid #d7e0ec;
  border-radius: 6px;
  outline: none;
}

.clientSearch input::placeholder {
  color: #94a2b6;
  font-size: 0.71rem;
}

.clientSearch input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.1);
}

.clientSearch > svg {
  position: absolute;
  top: 13px;
  right: 44px;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #60728f;
  stroke-width: 1.8;
}

.clientSearchClear {
  position: absolute;
  top: 6px;
  right: 8px;
  display: inline-grid;
  width: 29px;
  height: 29px;
  place-items: center;
  margin: 0;
  padding: 0;
  color: #7c8ca2;
  background: #fff;
  border: 1px solid #d7e0ec;
  border-radius: 6px;
  box-shadow: none;
}

.clientSearchClear:hover {
  color: #2f6fed;
  border-color: #9ec0f5;
}

.clientSearchClear span {
  display: block;
  font-size: 14px;
  line-height: 1;
}

.clientsTable {
  min-height: 207px;
  overflow: auto;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.clientTable {
  width: 100%;
  min-width: 680px;
  border: 0;
  border-spacing: 0;
  border-collapse: separate;
  border-radius: 0;
  box-shadow: none;
}

.clientTable th {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 43px;
  padding: 0 10px;
  color: #465673;
  background: #fbfcfe;
  border: 0;
  border-bottom: 1px solid #e5eaf1;
  font-size: 0.65rem;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.clientTable th:first-child {
  width: 9%;
}

.clientTable th:nth-child(2) {
  width: 22%;
}

.clientTable th:nth-child(3),
.clientTable th:nth-child(4) {
  width: 16%;
}

.clientTable th:nth-child(5) {
  width: 22%;
}

.clientTable th:nth-child(6) {
  width: 25%;
}

.clientTable th:last-child,
.clientTable td:last-child {
  width: 104px;
  text-align: right;
}

.clientTable td {
  transition: background-color 140ms ease;
  height: 45px;
  padding: 7px 10px;
  color: #526079;
  border: 0;
  border-bottom: 1px solid #edf1f5;
  font-size: 0.72rem;
}

.clientTable tr:last-child td {
  border-bottom: 0;
}

.clientTable tbody tr:nth-child(even) td {
  background: #fbfdff;
}

.clientTable tbody tr:hover td {
  background: #f0f6ff;
}

.clientValueMissing {
  color: #94a3b8;
  font-size: 0.72rem;
  font-style: italic;
}

.clientContactCell {
  min-width: 110px;
}

.clientContactBadge {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 999px;
  color: #4b5e78;
  background: #f3f6fa;
  border: 1px solid #d8e1ee;
  font-size: 0.63rem;
  font-weight: 700;
  white-space: nowrap;
}

.clientContactBadge.ok {
  color: #0f6b3c;
  background: #e8f6ef;
  border-color: #bee8d4;
}

.clientContactBadge.warning {
  color: #9a6a10;
  background: #fff6e2;
  border-color: #f3d7a7;
}

.clientContactBadge.missing {
  color: #8e6b73;
  background: #fcf0f1;
  border-color: #f1c8cd;
}

.clientTable td:last-child {
  text-align: right;
}

.clientActions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.clientAction {
  display: grid;
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  place-items: center;
  color: var(--blue-600);
  background: #f2f6ff;
  border: 1px solid #d8e3f8;
  border-radius: 6px;
  box-shadow: none;
}

.clientAction:hover {
  color: #fff;
  background: var(--blue-600);
}

.clientAction.delete {
  color: #c85050;
  background: #fff5f5;
  border-color: #f0d1d1;
}

.clientAction.delete:hover {
  color: #fff;
  background: #d95555;
}

.clientAction svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.clientEmptyCell {
  height: 162px !important;
  padding: 20px !important;
  color: var(--ink-900) !important;
  text-align: center;
}

.clientEmptyCell > strong {
  display: block;
  margin-top: 6px;
  font-size: 0.83rem;
  font-weight: 800;
}

.clientEmptyCell > p {
  margin: 4px 0 0;
  color: #77869e;
  font-size: 0.7rem;
}

.clientEmptyIllustration {
  position: relative;
  width: 68px;
  height: 43px;
  margin: 0 auto;
}

.clientEmptyIllustration span {
  position: absolute;
  bottom: 0;
  width: 17px;
  height: 30px;
  background: linear-gradient(#3179ef 0 48%, #205dca 48%);
  border-radius: 8px 8px 4px 4px;
}

.clientEmptyIllustration span::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 4px;
  width: 10px;
  height: 10px;
  background: #f0b89a;
  border-radius: 50%;
}

.clientEmptyIllustration span:first-child {
  left: 4px;
}

.clientEmptyIllustration span:nth-child(2) {
  right: 4px;
}

.clientEmptyIllustration i {
  position: absolute;
  top: 13px;
  left: 20px;
  width: 29px;
  height: 20px;
  background: #edf3ff;
  border: 2px solid #dbe7fa;
  border-radius: 7px;
}

.clientEmptyIllustration i::before,
.clientEmptyIllustration i::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 13px;
  height: 2px;
  background: #7da5e8;
}

.clientEmptyIllustration i::before {
  left: -11px;
  transform: rotate(25deg);
}

.clientEmptyIllustration i::after {
  right: -11px;
  transform: rotate(-25deg);
}

/* Export and import */
.ioPanel {
  margin-top: 18px;
  padding: 14px 12px 16px;
}

.ioPanel .panelTitle {
  margin: 0;
  padding: 0 2px 11px;
}

.ioTitle::after {
  content: "";
  position: absolute;
  top: 51px;
  left: 12px;
  width: 185px;
  height: 2px;
  background: #6f9df2;
}

.exportGrid {
  display: grid;
  grid-template-columns: repeat(6, minmax(125px, 1fr));
  gap: 8px;
  padding: 0 0 15px;
}

.exportGrid button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  min-height: 46px;
  padding: 0 10px;
  color: #34445f;
  background: #fff;
  border: 1px solid #dae2ed;
  border-radius: 6px;
  box-shadow: none;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
}

.exportGrid button:hover {
  color: var(--blue-700);
  background: #f7faff;
  border-color: #a9c4f2;
}

.exportGrid svg,
.ioImport svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.exportGrid button:nth-child(1) svg,
.exportGrid button:nth-child(3) svg {
  color: var(--blue-600);
}

.exportGrid button:nth-child(2) svg {
  color: #61708a;
}

.exportGrid button:nth-child(4) svg {
  color: var(--orange-500);
}

.exportGrid button:nth-child(5) svg {
  color: #326fe5;
}

.exportGrid button:nth-child(6) svg {
  color: var(--violet-500);
}

.ioImport {
  margin-top: 0;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
}

.ioImport + .ioImport {
  margin-top: 14px;
}

.importHeading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.importHeading h4 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #253751;
  font-size: 0.76rem;
  font-weight: 800;
}

.importHeading h4 svg,
.importHeading p strong {
  color: var(--green-600);
}

.importHeading p {
  margin: 7px 0 0;
  color: #5d6c83;
  font-size: 0.64rem;
  line-height: 1.4;
}

.downloadTemplate {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 15px;
  color: var(--blue-700);
  background: #f4f7ff;
  border: 1px solid #d8e3fa;
  border-radius: 7px;
  box-shadow: none;
  font-size: 0.65rem;
  font-weight: 700;
  white-space: nowrap;
}

.downloadTemplate:hover {
  background: #eaf1ff;
}

.ioImport textarea {
  display: none;
}

.ioImport input[type="file"] {
  width: 100%;
  min-height: 43px;
  height: 43px;
  margin-top: 10px;
  padding: 6px;
  color: #53627a;
  background: #fff;
  border: 1px solid #dce3ec;
  border-radius: 5px;
  font-size: 0.68rem;
}

.ioImport input[type="file"]::file-selector-button {
  height: 29px;
  margin-right: 10px;
  padding: 0 12px;
  color: #34445d;
  background: #f5f7fa;
  border: 1px solid #cfd8e4;
  border-radius: 4px;
  font: 600 0.65rem "Manrope", sans-serif;
  cursor: pointer;
}

.importActions {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 12px;
  margin-top: 11px;
}

.importActions button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 42px;
  min-height: 42px;
  border-radius: 6px;
  box-shadow: none;
  font-size: 0.67rem;
  font-weight: 700;
}

.importPrimary {
  color: #fff;
  background: linear-gradient(100deg, #25b866, #2bc173);
  border: 1px solid #20aa5c;
}

.importPrimary:hover {
  background: linear-gradient(100deg, #20aa5c, #25b568);
}

.templateHint {
  color: var(--blue-700);
  background: #fff;
  border: 1px solid #2f6fed;
}

.templateHint:hover {
  background: #f3f7ff;
}

/* Assets inventory */
.appContent > .interventionsPage,
.appContent > .reportsPage {
  display: block;
  width: auto;
  min-height: calc(100vh - var(--header-h));
  margin: 0;
  padding: 17px 20px 28px;
}

.interventionsPage.hidden,
.reportsPage.hidden {
  display: none !important;
}

.interventionStats,
.reportStats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.interventionStats article,
.reportStats article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 76px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  box-shadow: 0 5px 16px rgba(20, 45, 82, 0.045);
}

.interventionStats small,
.interventionStats strong,
.reportStats small,
.reportStats strong {
  display: block;
}

.interventionStats small,
.reportStats small {
  color: #738198;
  font-size: 0.62rem;
  font-weight: 600;
}

.interventionStats strong,
.reportStats strong {
  margin-top: 3px;
  color: var(--ink-900);
  font-size: 1.18rem;
  font-weight: 800;
}

.operationToolbar {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(220px, 0.55fr) auto;
  gap: 9px;
  margin-bottom: 14px;
  padding: 13px;
  background: #fff;
  border: 1px solid #e0e6ef;
  border-radius: 11px;
  box-shadow: 0 5px 16px rgba(20, 45, 82, 0.045);
}

.operationToolbar > select,
.operationToolbar > input {
  width: 100%;
  height: 40px;
  min-height: 40px;
  padding: 0 11px;
  color: #42516a;
  background: #fff;
  border: 1px solid #d6dfeb;
  border-radius: 7px;
  outline: none;
  font-size: 0.63rem;
}

.reportToolbar {
  grid-template-columns: minmax(260px, 1fr) repeat(2, minmax(160px, 0.55fr)) repeat(2, minmax(170px, 0.6fr)) auto;
}

.operationPanel {
  padding: 14px;
  background: #fff;
  border: 1px solid #e0e6ef;
  border-radius: 12px;
  box-shadow: var(--soft-shadow);
}

.interventionCards,
.reportCards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  min-height: 260px;
}

.interventionCards > .item {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 160px;
  padding: 14px;
  background: #fafbfd;
  border: 1px solid #e6ebf2;
  border-radius: 10px;
}

.interventionCards > .item > div:first-child {
  color: var(--ink-900);
  font-size: 0.72rem;
  font-weight: 800;
}

.interventionCards .small {
  color: #718096;
  font-size: 0.58rem;
}

.interventionCards .itemActions {
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px solid #e5eaf1;
}

.interventionCards .itemActions button,
.interventionCards .actionLink {
  min-height: 32px;
  padding: 0 10px;
  color: var(--blue-700);
  background: #fff;
  border: 1px solid #cfdcf0;
  border-radius: 6px;
  box-shadow: none;
  font-size: 0.56rem;
}

.operationDialog {
  width: min(780px, calc(100vw - 32px));
  max-width: 780px;
}

.operationForm {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  max-height: 64vh;
  padding: 18px 20px;
  overflow: auto;
}

.operationForm label {
  display: grid;
  gap: 7px;
  color: #506078;
  font-size: 0.62rem;
  font-weight: 650;
}

.operationForm .dialogFullField {
  grid-column: 1 / -1;
}

.operationForm input,
.operationForm select,
.operationForm textarea {
  width: 100%;
  min-height: 41px;
  padding: 9px 11px;
  color: var(--ink-900);
  background: #fff;
  border: 1px solid #d6dfeb;
  border-radius: 7px;
  outline: none;
}

.operationForm textarea {
  min-height: 78px;
  resize: vertical;
}

.reportCard {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(110px, 0.45fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 12px;
  background: #fafbfd;
  border: 1px solid #e6ebf2;
  border-radius: 10px;
}

.reportCardIcon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #d4860d;
  background: #fff5e5;
  border-radius: 9px;
}

.reportCardIcon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.reportCardMain strong,
.reportCardMain span,
.reportCardMain small,
.reportCardMeta strong,
.reportCardMeta small {
  display: block;
}

.reportCardMain strong {
  color: var(--ink-900);
  font-size: 0.68rem;
}

.reportCardMain span,
.reportCardMeta strong {
  margin-top: 3px;
  color: #53627a;
  font-size: 0.58rem;
}

.reportCardMain small,
.reportCardMeta small {
  margin-top: 3px;
  color: #8996a8;
  font-size: 0.52rem;
}

.reportCard .itemActions {
  margin: 0;
}

.reportCard .actionLink {
  min-height: 34px;
  padding: 0 11px;
  color: var(--blue-700);
  background: #fff;
  border: 1px solid #cfdcf0;
  border-radius: 6px;
  box-shadow: none;
  font-size: 0.56rem;
}

.appContent > .ticketsPage {
  display: block;
  width: auto;
  min-height: calc(100vh - var(--header-h));
  margin: 0;
  padding: 17px 20px 28px;
}

.ticketsPage.hidden {
  display: none !important;
}

.modulePrimaryAction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  color: #fff;
  background: linear-gradient(110deg, #2f70ed, #2864dd);
  border: 1px solid #265ed2;
  border-radius: 7px;
  box-shadow: 0 7px 16px rgba(47, 111, 237, 0.18);
  font-size: 0.68rem;
  font-weight: 800;
}

.modulePrimaryAction:hover {
  background: linear-gradient(110deg, #3678f3, #235bd0);
}

.modulePrimaryAction svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.ticketStats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.ticketStats article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 76px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  box-shadow: 0 5px 16px rgba(20, 45, 82, 0.045);
}

.ticketStats small,
.ticketStats strong {
  display: block;
}

.ticketStats small {
  color: #738198;
  font-size: 0.62rem;
  font-weight: 600;
}

.ticketStats strong {
  margin-top: 3px;
  color: var(--ink-900);
  font-size: 1.18rem;
  font-weight: 800;
}

.ticketPanel {
  min-width: 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid #e0e6ef;
  border-radius: 12px;
  box-shadow: var(--soft-shadow);
}

.ticketFilterPanel {
  margin-bottom: 14px;
}

.ticketFilterGrid {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) repeat(3, minmax(140px, 0.7fr)) auto auto;
  align-items: center;
  gap: 9px;
}

.ticketFilterGrid select,
.ticketFilterGrid input {
  width: 100%;
  height: 40px;
  min-height: 40px;
  padding: 0 11px;
  color: #42516a;
  background: #fff;
  border: 1px solid #d6dfeb;
  border-radius: 7px;
  outline: none;
  font-size: 0.64rem;
}

.ticketFilterGrid select:focus,
.ticketFilterGrid input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.1);
}

.ticketSearch {
  position: relative;
  display: block;
}

.ticketSearch input {
  padding-right: 39px;
}

.ticketSearch > svg {
  position: absolute;
  top: 12px;
  right: 13px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #6e7e96;
  stroke-width: 1.8;
}

.filterButton,
.resetFilterButton {
  min-height: 40px;
  padding: 0 13px;
  border-radius: 7px;
  box-shadow: none;
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
}

.filterButton {
  color: #fff;
  background: var(--blue-600);
  border: 1px solid var(--blue-700);
}

.resetFilterButton {
  color: #5c6b81;
  background: #fff;
  border: 1px solid #d6dfeb;
}

.panelSummary {
  color: #8491a3;
  font-size: 0.6rem;
}

.ticketsTable {
  min-height: 315px;
  overflow: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.ticketTable {
  width: 100%;
  min-width: 1040px;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 0;
  box-shadow: none;
}

.ticketTable th {
  height: 43px;
  padding: 0 9px;
  color: #465673;
  background: #fbfcfe;
  border: 0;
  border-bottom: 1px solid #e5eaf1;
  font-size: 0.61rem;
  text-align: left;
  white-space: nowrap;
}

.ticketDueDate,
.ticketSlaMeta {
  display: block;
  white-space: nowrap;
}

.ticketSlaMeta {
  margin-top: 4px;
  color: #76859b;
  font-size: 0.52rem;
  font-weight: 600;
}

.ticketTable th > button {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 15px 0 0;
  color: inherit;
  background: transparent;
  border: 0;
  box-shadow: none;
  font: inherit;
  font-weight: 700;
}

.ticketTable th > button::after {
  content: "";
  position: absolute;
  right: 1px;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid #9aa8ba;
  border-bottom: 1.5px solid #9aa8ba;
  opacity: 0.5;
  transform: rotate(45deg) translateY(-2px);
}

.ticketTable th > button.active {
  color: var(--blue-700);
}

.ticketTable th > button.active[data-direction="desc"]::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.ticketTable td {
  height: 55px;
  padding: 8px 9px;
  color: #526079;
  border: 0;
  border-bottom: 1px solid #edf1f5;
  font-size: 0.65rem;
}

.ticketTable td strong,
.ticketTable td small {
  display: block;
}

.ticketTable td strong {
  color: #34455f;
  font-size: 0.64rem;
}

.ticketTable td small {
  margin-top: 4px;
  color: #8b97a8;
  font-size: 0.52rem;
}

.ticketTable tr.overdueRow {
  background: #fffafa;
}

.ticketTable tr.overdueRow td:first-child {
  border-left: 2px solid #dc555b;
}

.ticketStatus,
.ticketPriority {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.52rem;
  font-weight: 700;
  white-space: nowrap;
}

.ticketStatus::before,
.ticketPriority::before {
  content: "";
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}

.ticketStatus.open {
  color: #2c65ce;
  background: #eaf1ff;
}

.ticketStatus.in_progress {
  color: #a56a0e;
  background: #fff4df;
}

.ticketStatus.waiting {
  color: #6d50bb;
  background: #f2edff;
}

.ticketStatus.closed {
  color: #168352;
  background: #e8f7ef;
}

.ticketPriority.high {
  color: #c3454d;
  background: #ffedef;
}

.ticketPriority.medium {
  color: #a56a0e;
  background: #fff4df;
}

.ticketPriority.low {
  color: #168352;
  background: #e8f7ef;
}

.ticketEmptyCell {
  height: 260px !important;
  padding: 24px !important;
  text-align: center;
}

.ticketEmptyCell strong,
.ticketEmptyCell p {
  display: block;
}

.ticketEmptyCell strong {
  margin-top: 10px;
  color: var(--ink-900);
  font-size: 0.8rem;
}

.ticketEmptyCell p {
  margin: 5px 0 0;
  color: #7b899d;
  font-size: 0.64rem;
}

/* Ticket workspace polish */
.ticketsPage {
  --ticket-border: #dfe7f1;
  --ticket-border-soft: #eaf0f6;
  --ticket-surface-soft: #f7f9fc;
  --ticket-text-muted: #718096;
}

.ticketsPage .modulePageHeader {
  margin-bottom: 16px;
}

.ticketsPage .modulePrimaryAction {
  min-height: 42px;
  padding: 0 17px;
  border-color: #235fcf;
  border-radius: 9px;
  box-shadow: 0 6px 14px rgba(36, 95, 207, 0.18);
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ticketsPage .modulePrimaryAction:hover {
  box-shadow: 0 8px 18px rgba(36, 95, 207, 0.24);
  transform: translateY(-1px);
}

.ticketsPage .modulePrimaryAction:active {
  box-shadow: 0 3px 9px rgba(36, 95, 207, 0.18);
  transform: translateY(0);
}

.ticketsPage .ticketStats {
  gap: 14px;
  margin-bottom: 16px;
}

.ticketsPage .ticketStats article {
  position: relative;
  min-height: 82px;
  overflow: hidden;
  border-color: var(--ticket-border);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(31, 55, 86, 0.05);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ticketsPage .ticketStats article::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: #3d7bea;
  opacity: 0.78;
}

.ticketsPage .ticketStats article:nth-child(2)::after {
  background: #e89a32;
}

.ticketsPage .ticketStats article:nth-child(3)::after {
  background: #7759c7;
}

.ticketsPage .ticketStats article:nth-child(4)::after {
  background: #2a9a67;
}

.ticketsPage .ticketStats article:hover {
  border-color: #cdd9e8;
  box-shadow: 0 9px 24px rgba(31, 55, 86, 0.08);
  transform: translateY(-1px);
}

.ticketsPage .ticketStats small {
  color: var(--ticket-text-muted);
  letter-spacing: 0.01em;
}

.ticketsPage .ticketStats strong {
  font-size: 1.28rem;
  letter-spacing: -0.025em;
}

.ticketsPage .ticketPanel {
  border-color: var(--ticket-border);
  border-radius: 12px;
  box-shadow: 0 7px 22px rgba(31, 55, 86, 0.055);
}

.ticketsPage .ticketFilterPanel {
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(245, 249, 255, 0.94), rgba(255, 255, 255, 0.98) 58%),
    #fff;
}

.ticketsPage .ticketFilterGrid {
  grid-template-columns: minmax(310px, 1.7fr) repeat(3, minmax(142px, 0.72fr)) auto auto;
  gap: 10px;
}

.ticketsPage .ticketFilterGrid select,
.ticketsPage .ticketFilterGrid input {
  height: 42px;
  min-height: 42px;
  color: #34445d;
  border-color: #ccd8e7;
  border-radius: 8px;
  font-size: 0.65rem;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.ticketsPage .ticketFilterGrid select {
  padding-right: 30px;
  cursor: pointer;
}

.ticketsPage .ticketFilterGrid input::placeholder {
  color: #8a98aa;
  opacity: 1;
}

.ticketsPage .ticketFilterGrid select:hover,
.ticketsPage .ticketFilterGrid input:hover {
  border-color: #aebed2;
}

.ticketsPage .ticketFilterGrid select:focus,
.ticketsPage .ticketFilterGrid input:focus {
  background: #fff;
  border-color: #4a7fe1;
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.11);
}

.ticketsPage .ticketSearch input {
  padding-right: 42px;
}

.ticketsPage .ticketSearch > svg {
  top: 13px;
  right: 14px;
  color: #71839b;
  stroke: currentColor;
  transition: color 150ms ease;
}

.ticketsPage .ticketSearch:focus-within > svg {
  color: var(--blue-600);
}

.ticketsPage .filterButton,
.ticketsPage .resetFilterButton {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.ticketsPage .filterButton {
  box-shadow: 0 4px 10px rgba(36, 95, 207, 0.14);
}

.ticketsPage .filterButton:hover {
  background: #245fcf;
  box-shadow: 0 6px 13px rgba(36, 95, 207, 0.2);
}

.ticketsPage .resetFilterButton:hover {
  color: #34445d;
  background: #f5f8fc;
  border-color: #b9c7d8;
}

.ticketsPage .ticketTablePanel {
  padding: 0;
  overflow: hidden;
}

.ticketsPage .ticketTablePanel > .panelTitle {
  min-height: 58px;
  margin: 0;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid var(--ticket-border-soft);
}

.ticketsPage .ticketTablePanel > .panelTitle h3 {
  color: #253853;
  font-size: 0.72rem;
}

.ticketsPage .ticketTablePanel .panelSummary {
  padding: 5px 9px;
  color: #607087;
  background: var(--ticket-surface-soft);
  border: 1px solid #e3eaf3;
  border-radius: 999px;
  font-weight: 700;
}

.ticketsPage .ticketsTable {
  min-height: 330px;
  overflow: auto;
  border: 0;
  border-radius: 0;
  scrollbar-color: #c6d2e1 transparent;
  scrollbar-width: thin;
}

.ticketsPage .ticketTable {
  min-width: 1080px;
}

.ticketsPage .ticketTable th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 46px;
  padding: 0 12px;
  color: #53647b;
  background: #f7f9fc;
  border-bottom-color: #dfe7f0;
  font-size: 0.59rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.ticketsPage .ticketTable th > button {
  letter-spacing: inherit;
  text-transform: inherit;
}

.ticketsPage .ticketTable th > button:hover,
.ticketsPage .ticketTable th > button.active {
  color: var(--blue-700);
}

.ticketsPage .ticketTable td {
  height: 62px;
  padding: 10px 12px;
  color: #526178;
  border-bottom-color: var(--ticket-border-soft);
  vertical-align: middle;
  transition: background-color 130ms ease;
}

.ticketsPage .ticketTable tbody tr:last-child td {
  border-bottom: 0;
}

.ticketsPage .ticketTable tbody tr:hover td {
  background: #f8fbff;
}

.ticketsPage .ticketTable tr.overdueRow td {
  background: #fffafa;
}

.ticketsPage .ticketTable tr.overdueRow:hover td {
  background: #fff5f5;
}

.ticketsPage .ticketTable tr.overdueRow td:first-child {
  border-left-width: 3px;
}

.ticketsPage .ticketTable td strong {
  color: #263a57;
  font-size: 0.66rem;
  font-weight: 750;
}

.ticketsPage .ticketTable td small {
  color: #7e8ca0;
  line-height: 1.35;
}

.ticketsPage .ticketStatus,
.ticketsPage .ticketPriority {
  min-height: 24px;
  padding: 4px 9px;
  border: 1px solid currentColor;
  font-size: 0.52rem;
  font-weight: 750;
}

.ticketsPage .ticketStatus::before,
.ticketsPage .ticketPriority::before {
  width: 5px;
  height: 5px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.72);
}

.ticketsPage .ticketStatus.open {
  color: #2d63be;
  background: #edf4ff;
  border-color: #cfe0fa;
}

.ticketsPage .ticketStatus.in_progress {
  color: #98610b;
  background: #fff7e8;
  border-color: #f1ddb4;
}

.ticketsPage .ticketStatus.waiting {
  color: #6548aa;
  background: #f4f0ff;
  border-color: #ddd2f7;
}

.ticketsPage .ticketStatus.closed {
  color: #16774d;
  background: #ebf8f1;
  border-color: #ccebdc;
}

.ticketsPage .ticketPriority.high {
  color: #b83d48;
  background: #fff0f1;
  border-color: #f3cdd1;
}

.ticketsPage .ticketPriority.medium {
  color: #94600f;
  background: #fff7e8;
  border-color: #efdcb8;
}

.ticketsPage .ticketPriority.low {
  color: #17754d;
  background: #edf8f2;
  border-color: #cee9dc;
}

.ticketsPage .ticketTable td:last-child .itemActions,
.ticketsPage .ticketTable td:last-child {
  white-space: nowrap;
}

.ticketsPage .ticketTable .itemActions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.ticketsPage .ticketTable .itemActions button,
.ticketsPage .ticketTable td:last-child > button {
  min-height: 30px;
  padding: 0 10px;
  color: #385579;
  background: #f7f9fc;
  border: 1px solid #dce5ef;
  border-radius: 7px;
  box-shadow: none;
  font-size: 0.56rem;
  font-weight: 700;
  transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.ticketsPage .ticketTable .itemActions button:hover,
.ticketsPage .ticketTable td:last-child > button:hover {
  color: #245fcf;
  background: #eef5ff;
  border-color: #c8daf5;
}

.ticketsPage .ticketEmptyCell {
  height: 292px !important;
  color: #8b9aae;
  background:
    radial-gradient(circle at 50% 45%, rgba(232, 240, 252, 0.7), transparent 34%),
    #fff;
}

.ticketsPage .ticketEmptyCell svg {
  width: 34px;
  height: 34px;
  padding: 9px;
  color: #5f7fa9;
  background: #eef4fc;
  border: 1px solid #dce8f7;
  border-radius: 12px;
  fill: none;
  stroke: currentColor;
}

.ticketsPage .ticketEmptyCell strong {
  margin-top: 13px;
  color: #2c405e;
  font-size: 0.76rem;
}

.ticketsPage .ticketEmptyCell p {
  max-width: 420px;
  margin: 6px auto 0;
  color: #7a899e;
  line-height: 1.55;
}

.ticketsPage .ticketTablePanel > .tableFooter {
  min-height: 52px;
  padding: 0 16px;
  background: #fbfcfe;
  border-top: 1px solid var(--ticket-border-soft);
}

.ticketsPage .ticketTablePanel > .msg:not(:empty) {
  margin: 0;
  padding: 10px 16px;
  border-top: 1px solid var(--ticket-border-soft);
}

.ticketsPage button:focus-visible,
.ticketsPage select:focus-visible,
.ticketsPage input:focus-visible {
  outline: 2px solid rgba(47, 111, 237, 0.72);
  outline-offset: 2px;
}

@media (max-width: 1280px) {
  .ticketsPage .ticketFilterGrid {
    grid-template-columns: minmax(280px, 1.4fr) repeat(2, minmax(150px, 0.7fr)) auto auto;
  }

  .ticketsPage #ticketFilterAssigned {
    display: none;
  }
}

@media (max-width: 980px) {
  .ticketsPage .ticketStats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ticketsPage .ticketFilterGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ticketsPage .ticketSearch {
    grid-column: 1 / -1;
  }

  .ticketsPage #ticketFilterAssigned {
    display: block;
  }
}

@media (max-width: 640px) {
  .ticketsPage .modulePageHeader {
    align-items: stretch;
  }

  .ticketsPage .modulePrimaryAction {
    justify-content: center;
    width: 100%;
  }

  .ticketsPage .ticketStats {
    gap: 9px;
  }

  .ticketsPage .ticketStats article {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 9px;
    min-height: 72px;
    padding: 10px;
  }

  .ticketsPage .ticketStats strong {
    font-size: 1.08rem;
  }

  .ticketsPage .ticketFilterPanel {
    padding: 12px;
  }

  .ticketsPage .ticketFilterGrid {
    grid-template-columns: 1fr;
  }

  .ticketsPage .ticketSearch {
    grid-column: auto;
  }

  .ticketsPage .filterButton,
  .ticketsPage .resetFilterButton {
    width: 100%;
  }

  .ticketsPage .ticketTablePanel > .panelTitle {
    min-height: 54px;
    padding: 9px 12px;
  }

  .ticketsPage .ticketsTable {
    min-height: 300px;
    overscroll-behavior-inline: contain;
  }

  .ticketsPage .ticketTable {
    min-width: 920px;
  }

  .ticketsPage .ticketTablePanel > .tableFooter {
    align-items: flex-start;
    gap: 9px;
    min-height: 0;
    padding: 11px 12px;
  }
}

.ticketDialog {
  width: min(760px, calc(100vw - 32px));
  max-width: 760px;
}

.ticketCreateForm textarea {
  min-height: 88px;
  padding: 10px 12px;
  resize: vertical;
  color: var(--ink-900);
  background: #fff;
  border: 1px solid #d6dfeb;
  border-radius: 7px;
  outline: none;
}

.ticketCreateForm select {
  width: 100%;
  height: 42px;
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink-900);
  background: #fff;
  border: 1px solid #d6dfeb;
  border-radius: 7px;
  outline: none;
}

.ticketDetailDialog {
  width: min(820px, calc(100vw - 32px));
  max-width: 820px;
}

.ticketDetailBody {
  display: grid;
  gap: 0;
  max-height: 70vh;
  overflow: auto;
}

.ticketDetailBody > section {
  padding: 16px 20px;
  border-bottom: 1px solid #e5eaf1;
}

.ticketDetailBody > section:last-child {
  border-bottom: 0;
}

.ticketDetailBody h4 {
  margin: 0 0 12px;
  color: #33445e;
  font-size: 0.7rem;
}

.detailFormGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.detailFormGrid label {
  display: grid;
  gap: 6px;
  color: #5c6b81;
  font-size: 0.6rem;
  font-weight: 650;
}

.detailFormGrid input,
.detailFormGrid select,
.commentComposer input {
  width: 100%;
  height: 40px;
  min-height: 40px;
  padding: 0 11px;
  color: var(--ink-900);
  background: #fff;
  border: 1px solid #d6dfeb;
  border-radius: 7px;
  outline: none;
}

.detailPrimaryButton {
  width: 100%;
  min-height: 40px;
  margin-top: 12px;
  color: #fff;
  background: var(--blue-600);
  border: 1px solid var(--blue-700);
  border-radius: 7px;
  font-size: 0.64rem;
  font-weight: 800;
}

.commentComposer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.commentComposer button,
.detailSectionTitle button {
  min-height: 40px;
  padding: 0 14px;
  color: #fff;
  background: var(--blue-600);
  border: 1px solid var(--blue-700);
  border-radius: 7px;
  box-shadow: none;
  font-size: 0.62rem;
}

.detailSectionTitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detailSectionTitle button {
  min-height: 32px;
  color: var(--blue-700);
  background: #f3f7ff;
  border-color: #d7e3f8;
}

.ticketTimeline {
  display: grid;
  gap: 9px;
  min-height: 70px;
}

.ticketTimeline .item {
  position: relative;
  padding: 10px 10px 10px 28px;
  background: #f9fbfd;
  border: 1px solid #e8edf3;
  border-radius: 8px;
  font-size: 0.6rem;
}

.ticketTimeline .item::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 11px;
  width: 7px;
  height: 7px;
  background: var(--blue-600);
  border-radius: 50%;
}

.appContent > .assetsPage {
  display: block;
  width: auto;
  min-height: calc(100vh - var(--header-h));
  margin: 0;
  padding: 17px 20px 28px;
}

.assetsPage.hidden {
  display: none !important;
}

.modulePageHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 0 6px 15px;
}

.modulePageHeader .pageTitleGroup h2 {
  margin: 0;
  color: var(--ink-900);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.modulePageHeader .pageTitleGroup p {
  margin: 6px 0 0;
  color: var(--ink-500);
  font-size: 0.76rem;
}

.assetStats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.assetStats article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 76px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  box-shadow: 0 5px 16px rgba(20, 45, 82, 0.045);
}

.assetStats small,
.assetStats strong {
  display: block;
}

.assetStats small {
  overflow: hidden;
  color: #738198;
  font-size: 0.62rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assetStats strong {
  margin-top: 3px;
  color: var(--ink-900);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.assetsWorkspace {
  display: grid;
  grid-template-columns: minmax(390px, 0.72fr) minmax(620px, 1.45fr);
  align-items: stretch;
  gap: 18px;
}

.assetPanel {
  position: relative;
  min-width: 0;
  min-height: 442px;
  padding: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid #e0e6ef;
  border-radius: var(--panel-radius);
  box-shadow: var(--soft-shadow);
}

.assetForm {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.assetForm label {
  display: grid;
  align-items: initial;
  gap: 7px;
  color: #44536c;
  font-size: 0.68rem;
  font-weight: 650;
}

.assetForm .fullField {
  grid-column: 1 / -1;
}

.assetForm input,
.assetForm select {
  width: 100%;
  height: 40px;
  min-height: 40px;
  padding: 0 12px;
  color: var(--ink-900);
  background: #fff;
  border: 1px solid #d5deea;
  border-radius: 6px;
  outline: none;
}

.assetForm input::placeholder {
  color: #97a5b8;
  font-size: 0.7rem;
}

.assetForm input:focus,
.assetForm select:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.11);
}

.assetForm .primaryWide {
  margin-top: 3px;
}

.assetListPanel {
  display: flex;
  flex-direction: column;
}

.assetSearch {
  position: relative;
  display: block;
  margin-bottom: 13px;
}

.assetSearch input {
  width: 100%;
  height: 41px;
  min-height: 41px;
  padding: 0 42px 0 14px;
  color: var(--ink-900);
  background: #fff;
  border: 1px solid #d7e0ec;
  border-radius: 6px;
  outline: none;
}

.assetSearch input::placeholder {
  color: #94a2b6;
  font-size: 0.7rem;
}

.assetSearch input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.1);
}

.assetSearch > svg {
  position: absolute;
  top: 13px;
  right: 14px;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #60728f;
  stroke-width: 1.8;
}

.assetsTable {
  min-height: 292px;
  overflow: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.assetTable {
  width: 100%;
  min-width: 780px;
  border: 0;
  border-spacing: 0;
  border-collapse: separate;
  border-radius: 0;
  box-shadow: none;
}

.assetTable th {
  height: 43px;
  padding: 0 9px;
  color: #465673;
  background: #fbfcfe;
  border: 0;
  border-bottom: 1px solid #e5eaf1;
  font-size: 0.62rem;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.assetTable th > button {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 15px 0 0;
  color: inherit;
  background: transparent;
  border: 0;
  box-shadow: none;
  font: inherit;
}

.assetTable th > button::after {
  content: "";
  position: absolute;
  right: 1px;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid #9aa8ba;
  border-bottom: 1.5px solid #9aa8ba;
  opacity: 0.5;
  transform: rotate(45deg) translateY(-2px);
}

.assetTable th > button:hover,
.assetTable th > button.active {
  color: var(--blue-700);
  background: transparent;
}

.assetTable th > button.active::after {
  border-color: var(--blue-600);
  opacity: 1;
}

.assetTable th > button.active[data-direction="desc"]::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.assetTable td {
  height: 48px;
  padding: 7px 9px;
  color: #526079;
  border: 0;
  border-bottom: 1px solid #edf1f5;
  font-size: 0.68rem;
}

.assetTable tr:last-child td {
  border-bottom: 0;
}

.assetStatus {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.54rem;
  font-weight: 700;
  white-space: nowrap;
}

.assetStatus::before {
  content: "";
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}

.assetStatus.operational {
  color: #168352;
  background: #e8f7ef;
}

.assetStatus.maintenance {
  color: #ad6e0d;
  background: #fff4df;
}

.assetStatus.out_of_service {
  color: #c3454d;
  background: #ffedef;
}

.assetStatus.unknown {
  color: #68778d;
  background: #eef1f5;
}

.assetEmptyCell {
  height: 245px !important;
  padding: 24px !important;
  text-align: center;
}

.assetEmptyCell strong,
.assetEmptyCell p {
  display: block;
}

.assetEmptyCell strong {
  margin-top: 10px;
  color: var(--ink-900);
  font-size: 0.8rem;
}

.assetEmptyCell p {
  margin: 5px 0 0;
  color: #7b899d;
  font-size: 0.66rem;
}

.assetEmptyIcon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto;
  place-items: center;
  color: #4a83e6;
  background: #edf3ff;
  border: 1px solid #dbe6f8;
  border-radius: 16px;
}

.assetEmptyIcon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.assetDialog .dialogFullField {
  grid-column: 1 / -1;
}

.assetDialog select {
  width: 100%;
  height: 42px;
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink-900);
  background: #fff;
  border: 1px solid #d6dfeb;
  border-radius: 7px;
  outline: none;
}

.assetDialog select:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.11);
}

/* Assets page professional polish */
.assetsPage {
  --asset-accent: #167f78;
  --asset-accent-strong: #0f665f;
  --asset-accent-soft: #e8f7f4;
  --asset-blue: #2f6fed;
  --asset-surface: #ffffff;
  --asset-surface-muted: #f7f9fc;
  --asset-border: #dfe6ef;
  --asset-border-strong: #d2dce9;
  --asset-text: #18243a;
  --asset-muted: #6b7890;
  --asset-shadow: 0 12px 34px rgba(28, 48, 78, 0.07);
  background:
    radial-gradient(circle at 92% 2%, rgba(22, 127, 120, 0.07), transparent 24rem),
    linear-gradient(180deg, #f8fafc 0, #f5f7fa 100%);
}

.appContent > .assetsPage {
  width: 100%;
  max-width: none;
  padding: 22px 24px 32px;
}

.assetsPage .modulePageHeader {
  position: relative;
  min-height: 78px;
  margin-bottom: 16px;
  padding: 4px 4px 18px;
  border-bottom: 1px solid rgba(210, 220, 233, 0.85);
}

.assetsPage .modulePageHeader::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 4px;
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, var(--asset-accent), #3b82f6);
  border-radius: 999px;
}

.assetsPage .pageTitleGroup {
  gap: 13px;
}

.assetsPage .pageTitleIcon {
  width: 38px;
  height: 38px;
  padding: 9px;
  color: var(--asset-accent-strong);
  background: linear-gradient(145deg, #e5f7f3, #eef5ff);
  border: 1px solid #cfe9e4;
  border-radius: 11px;
  box-shadow: 0 7px 18px rgba(22, 127, 120, 0.1);
}

.assetsPage .modulePageHeader .pageTitleGroup h2 {
  color: var(--asset-text);
  font-size: clamp(1.38rem, 2vw, 1.68rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.assetsPage .modulePageHeader .pageTitleGroup p {
  max-width: 680px;
  margin-top: 5px;
  color: var(--asset-muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.assetsPage .breadcrumb {
  padding: 7px 10px;
  color: #77849a;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(218, 226, 236, 0.9);
  border-radius: 999px;
}

.assetsPage .breadcrumb svg {
  color: var(--asset-accent);
}

.assetsPage .breadcrumb strong {
  color: #3d4c64;
}

.assetsPage .assetStats {
  gap: 14px;
  margin-bottom: 20px;
}

.assetsPage .assetStats article {
  position: relative;
  isolation: isolate;
  min-height: 86px;
  padding: 14px 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border-color: var(--asset-border);
  border-radius: 13px;
  box-shadow: 0 8px 24px rgba(28, 48, 78, 0.055);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.assetsPage .assetStats article::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -30px;
  right: -26px;
  width: 88px;
  height: 88px;
  background: rgba(47, 111, 237, 0.045);
  border-radius: 50%;
}

.assetsPage .assetStats article:nth-child(2)::after {
  background: rgba(22, 127, 120, 0.065);
}

.assetsPage .assetStats article:nth-child(3)::after {
  background: rgba(217, 137, 26, 0.07);
}

.assetsPage .assetStats article:nth-child(4)::after {
  background: rgba(95, 83, 176, 0.06);
}

.assetsPage .assetStats article:hover {
  border-color: var(--asset-border-strong);
  box-shadow: 0 12px 28px rgba(28, 48, 78, 0.085);
  transform: translateY(-1px);
}

.assetsPage .assetStats .statIcon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58);
}

.assetsPage .assetStats small {
  color: #66748b;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.assetsPage .assetStats strong {
  margin-top: 4px;
  color: var(--asset-text);
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
}

.assetsPage .assetsWorkspace {
  grid-template-columns: minmax(350px, 0.68fr) minmax(640px, 1.5fr);
  gap: 20px;
}

.assetsPage .assetPanel {
  min-height: 476px;
  padding: 0;
  background: rgba(255, 255, 255, 0.97);
  border-color: var(--asset-border);
  border-radius: 14px;
  box-shadow: var(--asset-shadow);
}

.assetsPage .assetPanel::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--asset-accent), #58a6a0 48%, transparent);
  opacity: 0.85;
}

.assetsPage .assetPanel > .panelTitle {
  min-height: 62px;
  margin: 0;
  padding: 13px 16px;
  background: linear-gradient(180deg, #fff, #fbfcfe);
  border-bottom: 1px solid #e8edf4;
}

.assetsPage .assetPanel > .panelTitle > div {
  gap: 10px;
}

.assetsPage .assetPanel > .panelTitle svg {
  width: 16px;
  height: 16px;
  color: var(--asset-accent);
}

.assetsPage .assetPanel > .panelTitle h3 {
  color: #26354d;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.assetsPage .panelAddIcon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: var(--asset-accent-strong);
  background: var(--asset-accent-soft);
  border: 1px solid #cfe8e3;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
}

.assetsPage .assetForm {
  gap: 13px 14px;
  padding: 17px 16px 18px;
}

.assetsPage .assetForm label {
  gap: 7px;
  color: #4b5b72;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.assetsPage .assetForm input,
.assetsPage .assetForm select {
  height: 42px;
  min-height: 42px;
  padding-inline: 12px;
  color: #24324a;
  background-color: #fbfcfe;
  border-color: #d8e1ec;
  border-radius: 8px;
  font-size: 0.71rem;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.assetsPage .assetForm input:hover,
.assetsPage .assetForm select:hover {
  background-color: #fff;
  border-color: #c3cfdd;
}

.assetsPage .assetForm input:focus,
.assetsPage .assetForm select:focus {
  background-color: #fff;
  border-color: var(--asset-accent);
  box-shadow: 0 0 0 3px rgba(22, 127, 120, 0.11);
}

.assetsPage .assetForm input::placeholder {
  color: #96a3b5;
}

.assetsPage .assetForm .primaryWide {
  grid-column: 1 / -1;
  min-height: 43px;
  margin-top: 3px;
  color: #fff;
  background: linear-gradient(135deg, var(--asset-accent), var(--asset-accent-strong));
  border: 1px solid var(--asset-accent-strong);
  border-radius: 9px;
  box-shadow: 0 7px 16px rgba(15, 102, 95, 0.17);
  font-size: 0.7rem;
  font-weight: 750;
  transition: box-shadow 160ms ease, transform 160ms ease, filter 160ms ease;
}

.assetsPage .assetForm .primaryWide:hover {
  box-shadow: 0 9px 20px rgba(15, 102, 95, 0.23);
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.assetsPage .assetForm .primaryWide:active {
  box-shadow: 0 4px 10px rgba(15, 102, 95, 0.18);
  transform: translateY(0);
}

.assetsPage .assetForm .primaryWide:focus-visible,
.assetsPage .assetSearch input:focus-visible,
.assetsPage .assetTable th > button:focus-visible,
.assetsPage .clientActions button:focus-visible,
.assetsPage .pagination button:focus-visible {
  outline: 2px solid var(--asset-blue);
  outline-offset: 2px;
}

.assetsPage .assetListPanel {
  min-width: 0;
}

.assetsPage .assetSearch {
  flex: 0 0 auto;
  margin: 14px 16px 13px;
}

.assetsPage .assetSearch::before {
  content: "CAUTARE RAPIDA";
  display: block;
  margin-bottom: 7px;
  color: #78869a;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.assetsPage .assetSearch input {
  height: 43px;
  min-height: 43px;
  padding: 0 44px 0 14px;
  color: #24324a;
  background: var(--asset-surface-muted);
  border-color: #d8e1ec;
  border-radius: 9px;
  font-size: 0.71rem;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.assetsPage .assetSearch input:hover {
  background: #fff;
  border-color: #c6d1df;
}

.assetsPage .assetSearch input:focus {
  background: #fff;
  border-color: var(--asset-accent);
  box-shadow: 0 0 0 3px rgba(22, 127, 120, 0.11);
}

.assetsPage .assetSearch > svg {
  top: 35px;
  right: 15px;
  width: 16px;
  height: 16px;
  color: var(--asset-accent);
  stroke: currentColor;
}

.assetsPage .assetsTable {
  position: relative;
  flex: 1 1 auto;
  min-height: 318px;
  margin: 0 16px;
  overflow: auto;
  background: #fff;
  border-color: #dfe6ef;
  border-radius: 10px;
  scrollbar-color: #c4cfdd transparent;
  scrollbar-width: thin;
}

.assetsPage .assetsTable::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.assetsPage .assetsTable::-webkit-scrollbar-thumb {
  background: #c4cfdd;
  border: 2px solid #fff;
  border-radius: 999px;
}

.assetsPage .assetTable {
  min-width: 840px;
  table-layout: auto;
}

.assetsPage .assetTable thead {
  position: sticky;
  z-index: 3;
  top: 0;
}

.assetsPage .assetTable th {
  height: 44px;
  padding: 0 11px;
  color: #526078;
  background: #f7f9fc;
  border-bottom-color: #dfe6ef;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  box-shadow: 0 1px 0 rgba(214, 223, 234, 0.7);
}

.assetsPage .assetTable th:first-child {
  width: 56px;
}

.assetsPage .assetTable th:nth-child(2) {
  min-width: 155px;
}

.assetsPage .assetTable th:nth-child(3) {
  min-width: 130px;
}

.assetsPage .assetTable th:nth-child(4) {
  min-width: 150px;
}

.assetsPage .assetTable th:nth-child(5) {
  min-width: 112px;
}

.assetsPage .assetTable th:nth-child(6) {
  min-width: 108px;
}

.assetsPage .assetTable th:last-child {
  width: 84px;
  text-align: right;
}

.assetsPage .assetTable th > button {
  min-height: 30px;
  cursor: pointer;
  letter-spacing: inherit;
  text-transform: inherit;
}

.assetsPage .assetTable th > button::after {
  width: 5px;
  height: 5px;
  border-color: #8290a4;
}

.assetsPage .assetTable th > button:hover,
.assetsPage .assetTable th > button.active {
  color: var(--asset-accent-strong);
}

.assetsPage .assetTable th > button.active::after {
  border-color: var(--asset-accent);
}

.assetsPage .assetTable tbody tr {
  position: relative;
  background: #fff;
  transition: background-color 140ms ease, box-shadow 140ms ease;
}

.assetsPage .assetTable tbody tr:hover {
  background: #f7fbfa;
  box-shadow: inset 3px 0 0 var(--asset-accent);
}

.assetsPage .assetTable td {
  height: 54px;
  padding: 9px 11px;
  color: #526078;
  border-bottom-color: #e9eef4;
  font-size: 0.67rem;
  line-height: 1.35;
  vertical-align: middle;
}

.assetsPage .assetTable td:first-child {
  color: #8390a3;
  font-size: 0.61rem;
  font-variant-numeric: tabular-nums;
}

.assetsPage .assetTable td:nth-child(2) {
  color: #223149;
  font-weight: 750;
}

.assetsPage .assetTable td:nth-child(3) {
  color: #3c4c64;
  font-weight: 650;
}

.assetsPage .assetTable td:nth-child(4),
.assetsPage .assetTable td:nth-child(5) {
  color: #68768b;
}

.assetsPage .assetTable td:nth-child(5) {
  font-family: "IBM Plex Mono", "Cascadia Code", monospace;
  font-size: 0.61rem;
  letter-spacing: 0.01em;
}

.assetsPage .assetStatus {
  min-height: 25px;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid transparent;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.assetsPage .assetStatus::before {
  width: 6px;
  height: 6px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7);
}

.assetsPage .assetStatus.operational {
  color: #10724c;
  background: #e8f7ef;
  border-color: #ccebdc;
}

.assetsPage .assetStatus.maintenance {
  color: #98600b;
  background: #fff5e2;
  border-color: #f2dfb9;
}

.assetsPage .assetStatus.out_of_service {
  color: #b53d49;
  background: #feedef;
  border-color: #f3d0d5;
}

.assetsPage .assetStatus.unknown {
  color: #657389;
  background: #f0f3f7;
  border-color: #dfe5ec;
}

.assetsPage .clientActions {
  justify-content: flex-end;
  gap: 5px;
  white-space: nowrap;
}

.assetsPage .clientActions button {
  width: 29px;
  height: 29px;
  color: #64738a;
  background: #f8fafc;
  border: 1px solid #dfe6ef;
  border-radius: 7px;
  box-shadow: none;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.assetsPage .clientActions button:hover {
  color: var(--asset-accent-strong);
  background: var(--asset-accent-soft);
  border-color: #bcded8;
  transform: translateY(-1px);
}

.assetsPage .clientActions button.delete:hover,
.assetsPage .clientActions button[data-action="delete"]:hover {
  color: #b4232f;
  background: #fff0f1;
  border-color: #f0cbd0;
}

.assetsPage .assetEmptyCell {
  height: 270px !important;
  padding: 32px !important;
  color: var(--asset-muted);
  background:
    radial-gradient(circle at 50% 42%, rgba(22, 127, 120, 0.055), transparent 120px),
    #fff;
}

.assetsPage .assetEmptyCell strong {
  margin-top: 13px;
  color: #27364d;
  font-size: 0.77rem;
  font-weight: 750;
}

.assetsPage .assetEmptyCell p {
  max-width: 320px;
  margin: 6px auto 0;
  color: #7a879a;
  font-size: 0.65rem;
  line-height: 1.5;
}

.assetsPage .assetEmptyIcon {
  width: 62px;
  height: 62px;
  color: var(--asset-accent);
  background: linear-gradient(145deg, var(--asset-accent-soft), #eef5ff);
  border-color: #cfe7e3;
  border-radius: 18px;
  box-shadow: 0 9px 22px rgba(22, 127, 120, 0.09);
}

.assetsPage .assetsTable > .loadingState,
.assetsPage .assetsTable > .loading,
.assetsPage .assetsTable > [aria-busy="true"] {
  display: grid;
  min-height: 300px;
  place-items: center;
  color: #68768b;
  background:
    linear-gradient(90deg, transparent, rgba(22, 127, 120, 0.055), transparent),
    #fff;
  background-size: 220% 100%;
  font-size: 0.69rem;
  font-weight: 650;
  animation: assetLoadingSweep 1.35s ease-in-out infinite;
}

@keyframes assetLoadingSweep {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

.assetsPage .assetListPanel > .tableFooter {
  flex: 0 0 auto;
  min-height: 58px;
  margin-top: 0;
  padding: 11px 16px;
  color: #748196;
  background: #fbfcfe;
  border-top: 1px solid #e8edf4;
  font-size: 0.62rem;
}

.assetsPage .assetListPanel > .tableFooter > span {
  font-variant-numeric: tabular-nums;
}

.assetsPage .pagination {
  gap: 7px;
}

.assetsPage .pagination span {
  min-width: 92px;
  color: #59677d;
  font-size: 0.61rem;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.assetsPage .pagination button {
  width: 30px;
  height: 30px;
  min-height: 30px;
  color: #526078;
  background: #fff;
  border: 1px solid #d9e1eb;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(28, 48, 78, 0.04);
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.assetsPage .pagination button:not(:disabled):hover {
  color: var(--asset-accent-strong);
  background: var(--asset-accent-soft);
  border-color: #bddfd9;
}

.assetsPage .pagination button:disabled {
  color: #b4bdca;
  background: #f5f7fa;
  border-color: #e8edf3;
  box-shadow: none;
  cursor: not-allowed;
}

.assetsPage .assetDialog .dialogHeader {
  border-top: 3px solid var(--asset-accent);
}

.assetsPage .assetDialog .dialogIcon {
  color: var(--asset-accent-strong);
  background: var(--asset-accent-soft);
}

.assetsPage .assetDialog select:focus {
  border-color: var(--asset-accent);
  box-shadow: 0 0 0 3px rgba(22, 127, 120, 0.11);
}

@media (max-width: 1280px) {
  .assetsPage .assetsWorkspace {
    grid-template-columns: minmax(330px, 0.65fr) minmax(560px, 1.35fr);
    gap: 16px;
  }

  .assetsPage .assetStats {
    gap: 10px;
  }

  .assetsPage .assetStats article {
    padding-inline: 12px;
  }
}

@media (max-width: 1040px) {
  .assetsPage .assetStats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .assetsPage .assetsWorkspace {
    grid-template-columns: 1fr;
  }

  .assetsPage .assetPanel {
    min-height: auto;
  }

  .assetsPage .assetFormPanel {
    order: 2;
  }

  .assetsPage .assetListPanel {
    order: 1;
    min-height: 520px;
  }

  .assetsPage .assetsTable {
    min-height: 340px;
  }
}

@media (max-width: 720px) {
  .appContent > .assetsPage {
    padding: 16px 14px 24px;
  }

  .assetsPage .modulePageHeader {
    align-items: flex-start;
    min-height: 72px;
    padding-inline: 2px;
  }

  .assetsPage .breadcrumb {
    display: none;
  }

  .assetsPage .pageTitleIcon {
    width: 36px;
    height: 36px;
  }

  .assetsPage .assetStats {
    gap: 10px;
    margin-bottom: 14px;
  }

  .assetsPage .assetStats article {
    min-height: 78px;
    padding: 11px 12px;
  }

  .assetsPage .assetStats .statIcon {
    width: 38px;
    height: 38px;
  }

  .assetsPage .assetStats strong {
    font-size: 1.17rem;
  }

  .assetsPage .assetsWorkspace {
    gap: 14px;
  }

  .assetsPage .assetPanel {
    border-radius: 12px;
  }

  .assetsPage .assetTable {
    min-width: 800px;
  }
}

@media (max-width: 520px) {
  .assetsPage .modulePageHeader .pageTitleGroup p {
    font-size: 0.68rem;
  }

  .assetsPage .assetStats {
    grid-template-columns: 1fr;
  }

  .assetsPage .assetStats article {
    min-height: 70px;
  }

  .assetsPage .assetForm {
    grid-template-columns: 1fr;
    padding: 15px 13px 16px;
  }

  .assetsPage .assetForm .fullField,
  .assetsPage .assetForm .primaryWide {
    grid-column: auto;
  }

  .assetsPage .assetPanel > .panelTitle {
    min-height: 56px;
    padding-inline: 13px;
  }

  .assetsPage .assetSearch {
    margin: 12px 13px;
  }

  .assetsPage .assetsTable {
    min-height: 300px;
    margin-inline: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    overscroll-behavior-inline: contain;
  }

  .assetsPage .assetListPanel > .tableFooter {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    min-height: 0;
    padding: 12px 13px;
  }

  .assetsPage .pagination {
    justify-content: space-between;
    width: 100%;
  }

  .assetsPage .assetDialog .dialogFullField {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .assetsPage .assetStats article,
  .assetsPage .assetForm .primaryWide,
  .assetsPage .clientActions button {
    transition: none;
  }

  .assetsPage .assetsTable > .loadingState,
  .assetsPage .assetsTable > .loading,
  .assetsPage .assetsTable > [aria-busy="true"] {
    animation: none;
  }
}

/* Asset documents, warranties and alerts */
.assetLifecycleGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  align-items: start;
  gap: 14px;
  margin-top: 14px;
}

.assetLifecycleGrid .maintenancePlansPanel {
  margin: 0;
}

.assetDocumentsPanel {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe8ef;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(19, 51, 67, 0.06);
}

.assetDocumentsHeader {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 17px;
  border-bottom: 1px solid #e7edf2;
}

.assetDocumentsHeader > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.assetDocumentsHeaderIcon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  color: #1c6e75;
  background: #e8f5f4;
  border: 1px solid #cbe7e4;
  border-radius: 10px;
}

.assetDocumentsHeaderIcon svg {
  width: 17px;
  height: 17px;
}

.assetDocumentsHeader h3 {
  margin: 2px 0 3px;
  overflow: hidden;
  color: #20394c;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assetDocumentsHeader p {
  margin: 0;
  overflow: hidden;
  color: #7b8c9c;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assetWarrantyCard {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 13px 15px 0;
  padding: 12px;
  color: #496274;
  background: #f5f8fa;
  border: 1px solid #e0e8ed;
  border-radius: 11px;
}

.assetWarrantyIcon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 9px;
}

.assetWarrantyIcon svg {
  width: 16px;
  height: 16px;
}

.assetWarrantyCard > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.assetWarrantyCard small {
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.assetWarrantyCard strong {
  font-size: 11px;
}

.assetWarrantyCard span {
  font-size: 8px;
}

.assetWarrantyCard.valid {
  color: #17634a;
  background: #ebf8f2;
  border-color: #c7e8d9;
}

.assetWarrantyCard.expiring {
  color: #8d5b0b;
  background: #fff6df;
  border-color: #efd9a7;
}

.assetWarrantyCard.expired {
  color: #a2343d;
  background: #fff0f1;
  border-color: #efc8cc;
}

.assetDocumentsToolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 15px;
  border-bottom: 1px solid #edf1f4;
}

.assetDocumentsSectionTitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 15px 8px;
  color: #304b60;
}

.assetDocumentsSectionTitle > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.assetDocumentsSectionTitle svg {
  width: 14px;
  height: 14px;
  color: #1b746d;
}

.assetDocumentsSectionTitle strong {
  font-size: 9px;
  text-transform: uppercase;
}

.assetDocumentsSectionTitle > span {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  color: #9b5d0d;
  background: #fff2d5;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 850;
}

.assetAlertsBlock {
  border-bottom: 1px solid #e7edf2;
}

.assetDocumentAlertsList,
.assetDocumentsList,
.notificationAssetAlertsList {
  display: grid;
  min-width: 0;
}

.assetDocumentCard {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(105px, auto) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border-top: 1px solid #edf1f4;
}

.assetDocumentIcon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #176f75;
  background: #e9f5f4;
  border-radius: 8px;
}

.assetDocumentIcon svg {
  width: 14px;
  height: 14px;
}

.assetDocumentMain {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.assetDocumentMain > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.assetDocumentMain strong,
.assetDocumentMain p,
.assetDocumentMain small {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assetDocumentMain strong {
  color: #263f53;
  font-size: 9px;
}

.assetDocumentMain p,
.assetDocumentMain small {
  color: #7e8e9d;
  font-size: 7px;
}

.assetDocumentType {
  flex: 0 0 auto;
  padding: 3px 5px;
  color: #2c6b68;
  background: #e9f5f3;
  border-radius: 5px;
  font-size: 6px;
  font-weight: 850;
  text-transform: uppercase;
}

.assetDocumentExpiry {
  display: grid;
  gap: 2px;
  text-align: right;
}

.assetDocumentExpiry strong {
  color: #527083;
  font-size: 8px;
}

.assetDocumentExpiry span {
  color: #8997a4;
  font-size: 7px;
}

.assetDocumentCard.expiring .assetDocumentExpiry strong {
  color: #9a610c;
}

.assetDocumentCard.expired .assetDocumentExpiry strong {
  color: #aa3840;
}

.assetDocumentActions,
.assetAlertActions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.assetDocumentAction {
  min-height: 27px;
  padding: 0 8px;
  color: #315d6e;
  background: #f1f6f7;
  border: 1px solid #d8e5e8;
  border-radius: 7px;
  font-size: 7px;
  font-weight: 800;
}

.assetDocumentAction:hover {
  background: #e7f1f2;
}

.assetDocumentAction.delete,
.assetDocumentAction.dismiss {
  color: #a13a42;
  background: #fff3f3;
  border-color: #edced1;
}

.assetAlertCard {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin: 0 12px 8px;
  padding: 10px;
  background: #fff9ec;
  border: 1px solid #f0dcad;
  border-radius: 9px;
}

.assetAlertCard.expired {
  background: #fff1f2;
  border-color: #efc8cc;
}

.assetAlertIcon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: #9a610e;
  background: #ffedc2;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 900;
}

.assetAlertCard.expired .assetAlertIcon {
  color: #a73940;
  background: #ffdadd;
}

.assetAlertMain {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.assetAlertMain > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.assetAlertMain strong {
  color: #374d5e;
  font-size: 9px;
}

.assetAlertMain > div span {
  padding: 2px 5px;
  color: #93600f;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  font-size: 6px;
  font-weight: 850;
  text-transform: uppercase;
}

.assetAlertMain p,
.assetAlertMain small {
  overflow: hidden;
  margin: 0;
  color: #7c8791;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assetDocumentState {
  display: grid;
  min-height: 84px;
  place-content: center;
  gap: 4px;
  padding: 18px;
  color: #7c8d9b;
  text-align: center;
}

.assetDocumentState strong {
  color: #3b5264;
  font-size: 9px;
}

.assetDocumentState span {
  font-size: 7px;
}

.assetDocumentState.loading strong::before {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  content: "";
  vertical-align: -2px;
  border: 2px solid #d5e5e3;
  border-top-color: #1b7b72;
  border-radius: 50%;
  animation: maintenanceDashboardSpin 750ms linear infinite;
}

.assetDocumentState.error strong {
  color: #a13d44;
}

.assetDocumentsMessage {
  margin: 0;
  padding: 0 15px;
  color: #a23c44;
  font-size: 8px;
}

.assetDocumentDialog {
  width: min(640px, calc(100vw - 28px));
}

.assetDocumentFileField input {
  padding: 8px;
  background: #f8fafb;
  border: 1px dashed #cbd9e1;
}

.assetDocumentFileField small {
  color: #81909e;
  font-size: 7px;
}

.notificationsPage .notificationStats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.notificationAssetAlertsPanel {
  margin-top: 14px;
}

.notificationAssetAlertsList {
  padding: 12px 0 4px;
}

.notificationAssetAlertsList .assetAlertCard {
  grid-template-columns: 31px minmax(0, 1fr) auto;
  margin: 0 14px 9px;
}

@media (max-width: 1180px) {
  .assetLifecycleGrid {
    grid-template-columns: 1fr;
  }

  .notificationsPage .notificationStats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .assetDocumentsHeader {
    align-items: stretch;
    flex-direction: column;
  }

  .assetDocumentsHeader .modulePrimaryAction {
    width: 100%;
  }

  .assetDocumentCard {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .assetDocumentExpiry,
  .assetDocumentActions {
    grid-column: 2;
    justify-content: flex-start;
    text-align: left;
  }

  .assetAlertCard,
  .notificationAssetAlertsList .assetAlertCard {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .assetAlertActions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .notificationsPage .notificationStats {
    grid-template-columns: 1fr;
  }
}

/* Client details and contact management */
.clientDetailsDialog {
  width: min(920px, calc(100vw - 32px));
  max-width: 920px;
  max-height: min(90vh, 820px);
}

.clientDetailsDialog > form {
  display: flex;
  max-height: min(90vh, 820px);
  flex-direction: column;
}

.clientDetailsContent {
  min-height: 0;
  overflow-y: auto;
  background: #f7f9fc;
}

.clientIdentityForm {
  position: relative;
  padding-top: 48px;
  background: #fff;
  border-bottom: 1px solid #dfe6ef;
}

.clientDetailsSectionTitle {
  position: absolute;
  top: 18px;
  left: 20px;
  margin: 0;
  color: #263b55;
  font-size: 0.76rem;
  font-weight: 850;
}

.clientContactsPanel {
  padding: 20px;
}

.clientContactsHeader,
.clientContactsHeader > div,
.clientContactEditorHeading,
.clientContactEditorActions,
.clientContactHeading,
.clientContactChannels,
.clientContactActions {
  display: flex;
  align-items: center;
}

.clientContactsHeader {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.clientContactsHeader > div {
  min-width: 0;
  gap: 11px;
}

.clientContactsIcon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  color: #0c5da9;
  background: #eaf3ff;
  border-radius: 10px;
}

.clientContactsIcon svg,
.clientContactPrimaryAction svg,
.clientContactEditorActions svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.clientContactsHeader h4,
.clientContactEditorHeading strong {
  margin: 0;
  color: #213750;
  font-size: 0.78rem;
  font-weight: 850;
}

.clientContactsHeader p,
.clientContactEditorHeading span {
  margin: 3px 0 0;
  color: #75849a;
  font-size: 0.64rem;
}

.clientContactPrimaryAction {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  color: #fff;
  background: #0c5da9;
  border: 1px solid #0c5da9;
  border-radius: 8px;
  box-shadow: 0 7px 17px rgba(12, 93, 169, 0.18);
  font-size: 0.67rem;
  font-weight: 800;
}

.clientContactEditor {
  margin-bottom: 14px;
  padding: 15px;
  background: #fff;
  border: 1px solid #cfdeed;
  border-radius: 11px;
  box-shadow: 0 8px 24px rgba(27, 54, 88, 0.07);
}

.clientContactEditorHeading {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.clientContactEditorHeading > div {
  display: grid;
}

.clientContactEditorHeading > button {
  width: 30px;
  height: 30px;
  padding: 0;
  color: #718096;
  background: #f1f4f8;
  border: 0;
  border-radius: 7px;
  box-shadow: none;
  font-size: 1.15rem;
}

.clientContactForm {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 12px;
}

.clientContactForm label {
  display: grid;
  gap: 6px;
  color: #506178;
  font-size: 0.64rem;
  font-weight: 750;
}

.clientContactForm input:not([type="checkbox"]) {
  width: 100%;
  min-height: 39px;
  padding: 0 10px;
  color: #263a52;
  background: #fff;
  border: 1px solid #d4dfeb;
  border-radius: 8px;
  outline: 0;
}

.clientContactForm input:not([type="checkbox"]):focus {
  border-color: #3981c7;
  box-shadow: 0 0 0 3px rgba(57, 129, 199, 0.11);
}

.clientContactPrimaryToggle {
  display: flex !important;
  grid-column: 1 / -1;
  align-items: center;
  gap: 8px !important;
}

.clientContactPrimaryToggle input {
  width: 16px;
  height: 16px;
  accent-color: #0c5da9;
}

.clientContactEditorActions {
  justify-content: flex-end;
  gap: 8px;
  margin-top: 13px;
}

.clientContactEditorActions button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border-radius: 8px;
  box-shadow: none;
  font-size: 0.65rem;
  font-weight: 800;
}

.clientContactsMessage {
  min-height: 17px;
  margin: 0 0 7px;
  color: #a13b3b;
  font-size: 0.64rem;
}

.clientContactsList {
  display: grid;
  gap: 9px;
}

.clientContactCard {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  background: #fff;
  border: 1px solid #dfe6ee;
  border-radius: 10px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.clientContactCard.primary {
  border-color: #a8cce9;
  box-shadow: inset 3px 0 #0c5da9;
}

.clientContactAvatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #0c5da9;
  background: #eaf3ff;
  border-radius: 11px;
  font-size: 0.72rem;
  font-weight: 900;
}

.clientContactContent {
  min-width: 0;
}

.clientContactHeading {
  gap: 8px;
}

.clientContactHeading strong {
  overflow: hidden;
  color: #273b53;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clientContactHeading span {
  padding: 3px 7px;
  color: #176437;
  background: #e8f7ee;
  border: 1px solid #c8ead5;
  border-radius: 999px;
  font-size: 0.55rem;
  font-weight: 850;
  text-transform: uppercase;
}

.clientContactChannels {
  flex-wrap: wrap;
  gap: 5px 13px;
  margin-top: 5px;
}

.clientContactChannels a,
.clientContactChannels > span {
  overflow: hidden;
  color: #65778d;
  font-size: 0.63rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clientContactChannels a:hover {
  color: #0c5da9;
}

.clientContactActions {
  justify-content: flex-end;
  gap: 6px;
}

.clientContactActions button {
  min-height: 32px;
  padding: 0 9px;
  background: #fff;
  border: 1px solid #d7e1eb;
  border-radius: 7px;
  box-shadow: none;
  font-size: 0.59rem;
  font-weight: 800;
}

.clientContactActions .setPrimary {
  color: #176437;
}

.clientContactActions .edit {
  color: #175f9f;
}

.clientContactActions .delete {
  color: #a43b3b;
}

.clientContactsState {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 26px 16px;
  color: #708096;
  text-align: center;
  background: #fff;
  border: 1px dashed #cfdbe7;
  border-radius: 10px;
}

.clientContactsState strong {
  color: #3b4e65;
  font-size: 0.7rem;
}

.clientContactsState span {
  font-size: 0.62rem;
}

.clientContactsState.loading {
  background: linear-gradient(100deg, #f8fafc, #fff, #f8fafc);
}

.clientContactsState.error {
  color: #9c4747;
  background: #fff8f8;
  border-color: #edcaca;
}

@media (max-width: 720px) {
  .clientDetailsDialog {
    width: 100%;
    max-width: 100%;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
  }

  .clientDetailsDialog > form {
    max-height: 100vh;
  }

  .clientContactsHeader {
    align-items: stretch;
    flex-direction: column;
  }

  .clientContactPrimaryAction {
    width: 100%;
  }

  .clientContactForm {
    grid-template-columns: 1fr;
  }

  .clientContactCard {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .clientContactAvatar {
    width: 38px;
    height: 38px;
  }

  .clientContactActions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .clientContactActions button {
    flex: 1;
  }
}

/* Intervention materials and invoice workflow */
.interventionMaterialsHeading,
.interventionMaterialsSummary,
.interventionMaterialIdentity {
  display: flex;
  align-items: center;
}

.interventionMaterialsSummary {
  gap: 10px;
}

.interventionMaterialsSummary small {
  color: #718198;
  font-size: 0.6rem;
}

.interventionMaterialsSummary strong {
  color: #173e63;
  font-size: 0.78rem;
}

.interventionMaterialComposer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 12px;
  padding: 13px;
  background: #f7faff;
  border: 1px solid #dbe6f1;
  border-radius: 10px;
}

.interventionMaterialComposer label {
  display: grid;
  gap: 6px;
  color: #506178;
  font-size: 0.63rem;
  font-weight: 800;
}

.interventionMaterialComposer :is(select, input) {
  width: 100%;
  min-height: 39px;
  padding: 0 10px;
  color: #263b54;
  background: #fff;
  border: 1px solid #d4dfeb;
  border-radius: 8px;
  outline: 0;
}

.interventionMaterialComposer :is(select, input):focus {
  border-color: #3981c7;
  box-shadow: 0 0 0 3px rgba(57, 129, 199, 0.11);
}

.interventionMaterialComposer > button {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border-radius: 8px;
  font-size: 0.64rem;
  font-weight: 850;
}

.interventionMaterialComposer > button svg,
.interventionMaterialIdentity svg,
.interventionInvoiceButton svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.materialStockHint {
  grid-column: 1 / -1;
  color: #718198;
  font-size: 0.6rem;
}

.interventionMaterialsMessage {
  min-height: 17px;
  margin: 0 0 7px;
  color: #a13b3b;
}

.interventionMaterialsList {
  display: grid;
  gap: 8px;
}

.interventionMaterialRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px 130px auto;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  background: #fff;
  border: 1px solid #dfe7ef;
  border-radius: 10px;
}

.interventionMaterialIdentity {
  min-width: 0;
  gap: 10px;
}

.interventionMaterialIdentity > span {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  color: #176437;
  background: #e9f7ef;
  border-radius: 9px;
}

.interventionMaterialIdentity > div,
.interventionMaterialQuantity,
.interventionMaterialCost {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.interventionMaterialIdentity strong {
  overflow: hidden;
  color: #263b53;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.interventionMaterialIdentity div span,
.interventionMaterialQuantity small,
.interventionMaterialCost small {
  color: #79889c;
  font-size: 0.57rem;
}

.interventionMaterialQuantity strong,
.interventionMaterialCost strong {
  color: #334960;
  font-size: 0.66rem;
}

.interventionMaterialCost strong {
  color: #176437;
}

.interventionMaterialDelete {
  min-height: 32px;
  padding: 0 9px;
  color: #a43b3b;
  background: #fff;
  border: 1px solid #ebcaca;
  border-radius: 7px;
  box-shadow: none;
  font-size: 0.59rem;
  font-weight: 800;
}

.interventionMaterialsState {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 24px 15px;
  color: #738399;
  text-align: center;
  background: #f9fbfd;
  border: 1px dashed #cfdae6;
  border-radius: 10px;
}

.interventionMaterialsState strong {
  color: #3c5068;
  font-size: 0.69rem;
}

.interventionMaterialsState span {
  font-size: 0.61rem;
}

.interventionMaterialsState.error {
  color: #9e4747;
  background: #fff8f8;
  border-color: #edcaca;
}

.interventionInvoiceButton {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  color: #fff;
  background: #176437;
  border: 1px solid #176437;
  border-radius: 8px;
  box-shadow: 0 7px 18px rgba(23, 100, 55, 0.18);
  font-size: 0.65rem;
  font-weight: 850;
}

.sheetFooterMeta {
  display: grid;
  gap: 3px;
}

#interventionInvoiceMessage {
  max-width: 420px;
  color: #a05a20;
  font-size: 0.58rem;
}

@media (max-width: 760px) {
  .interventionMaterialsHeading,
  .interventionMaterialsSummary {
    align-items: flex-start;
    flex-direction: column;
  }

  .interventionMaterialComposer {
    grid-template-columns: 1fr;
  }

  .materialStockHint {
    grid-column: auto;
  }

  .interventionMaterialRow {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .interventionMaterialDelete {
    grid-column: 1 / -1;
    width: 100%;
  }

  .sheetStickyFooter > div:last-child {
    width: 100%;
    flex-wrap: wrap;
  }

  .interventionInvoiceButton {
    width: 100%;
  }
}

/* Invoice payments, balances and cancellation */
.businessBadge.partial {
  color: #8a5a0a;
  background: #fff4d7;
  border-color: #efd796;
}

.businessBadge.cancelled {
  color: #8d3f46;
  background: #fff0f1;
  border-color: #edc6ca;
}

.invoiceFinancialSection {
  margin: 0 18px 18px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #dce5ee;
  border-radius: 12px;
}

.invoiceFinancialHeader,
.invoiceFinancialHeader > div,
.invoiceFinancialSubheading,
.invoicePaymentsHeading,
.invoicePaymentRow,
.invoicePaymentContent > div,
.invoiceDialogFooter > div {
  display: flex;
  align-items: center;
}

.invoiceFinancialHeader {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
}

.invoiceFinancialHeader > div {
  min-width: 0;
  gap: 10px;
}

.invoiceFinancialIcon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  color: #176437;
  background: #e8f6ed;
  border-radius: 10px;
}

.invoiceFinancialIcon svg,
.invoicePaymentIcon svg,
.invoicePaymentForm button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.invoiceFinancialHeader h4,
.invoiceFinancialSubheading h5,
.invoicePaymentsHeading h5 {
  margin: 0;
  color: #283d55;
  font-size: 0.75rem;
  font-weight: 850;
}

.invoiceFinancialHeader p,
.invoiceFinancialSubheading p {
  margin: 3px 0 0;
  color: #74849a;
  font-size: 0.61rem;
}

.invoiceFinancialMetrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 14px;
}

.invoiceFinancialMetrics article {
  display: grid;
  gap: 5px;
  padding: 12px;
  background: #fff;
  border: 1px solid #dfe7ef;
  border-radius: 9px;
}

.invoiceFinancialMetrics small {
  color: #77879b;
  font-size: 0.59rem;
  font-weight: 700;
}

.invoiceFinancialMetrics strong {
  color: #2c425a;
  font-size: 0.83rem;
}

.invoiceFinancialMetrics .paid strong {
  color: #176437;
}

.invoiceFinancialMetrics .balance strong {
  color: #a05a20;
}

.invoicePaymentComposer,
.invoiceCancelPanel {
  margin-bottom: 13px;
  padding: 13px;
  background: #fff;
  border: 1px solid #d8e3ed;
  border-radius: 10px;
}

.invoiceFinancialSubheading {
  justify-content: space-between;
  margin-bottom: 11px;
}

.invoicePaymentForm {
  display: grid;
  grid-template-columns: 130px 145px 160px minmax(150px, 1fr);
  align-items: end;
  gap: 10px;
}

.invoicePaymentForm label {
  display: grid;
  gap: 6px;
  color: #506178;
  font-size: 0.61rem;
  font-weight: 800;
}

.invoicePaymentForm :is(input, select, textarea),
.invoiceCancelPanel textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  color: #293e56;
  background: #fff;
  border: 1px solid #d4dfeb;
  border-radius: 8px;
  outline: 0;
}

.invoicePaymentForm :is(input, select, textarea):focus,
.invoiceCancelPanel textarea:focus {
  border-color: #3981c7;
  box-shadow: 0 0 0 3px rgba(57, 129, 199, 0.11);
}

.invoicePaymentNotes {
  grid-column: 1 / -2;
}

.invoicePaymentForm > button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 8px;
  font-size: 0.64rem;
  font-weight: 850;
}

.invoiceFinancialMsg {
  min-height: 17px;
  margin: 0 0 7px;
  color: #a13b3b;
}

.invoicePaymentsHeading {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.invoicePaymentsList {
  display: grid;
  gap: 8px;
}

.invoicePaymentRow {
  gap: 10px;
  padding: 11px 12px;
  background: #fff;
  border: 1px solid #dfe7ef;
  border-radius: 9px;
}

.invoicePaymentIcon {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  place-items: center;
  color: #176437;
  background: #e9f7ef;
  border-radius: 9px;
}

.invoicePaymentContent {
  min-width: 0;
  flex: 1;
}

.invoicePaymentContent > div {
  gap: 8px;
}

.invoicePaymentContent strong {
  color: #24405b;
  font-size: 0.69rem;
}

.invoicePaymentContent div span {
  padding: 3px 7px;
  color: #53677e;
  background: #edf2f7;
  border-radius: 999px;
  font-size: 0.55rem;
  font-weight: 800;
}

.invoicePaymentContent p,
.invoicePaymentContent small {
  margin: 3px 0 0;
  color: #75859a;
  font-size: 0.59rem;
}

.invoicePaymentsState {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 21px 14px;
  color: #738399;
  text-align: center;
  background: #fff;
  border: 1px dashed #cfdae6;
  border-radius: 9px;
}

.invoicePaymentsState strong {
  color: #3c5068;
  font-size: 0.68rem;
}

.invoicePaymentsState span {
  font-size: 0.6rem;
}

.invoicePaymentsState.error,
.invoiceCancellationSummary {
  color: #943f46;
  background: #fff4f5;
  border-color: #edc9cc;
}

.invoiceCancellationSummary {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #edc9cc;
  border-radius: 8px;
  font-size: 0.63rem;
  font-weight: 750;
}

.invoiceCancelPanel {
  display: grid;
  gap: 10px;
  border-color: #ebc9cc;
  background: #fffafa;
}

.invoiceCancelPanel > div:first-child {
  display: grid;
  gap: 3px;
}

.invoiceCancelPanel strong {
  color: #8e3f46;
  font-size: 0.69rem;
}

.invoiceCancelPanel span {
  color: #846d70;
  font-size: 0.59rem;
}

.invoiceCancelPanel > div:last-child {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.invoiceDangerButton,
.invoiceDangerOutline {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 8px;
  box-shadow: none;
  font-size: 0.63rem;
  font-weight: 850;
}

.invoiceDangerButton {
  color: #fff;
  background: #a64048;
  border: 1px solid #a64048;
}

.invoiceDangerOutline {
  color: #9a4047;
  background: #fff;
  border: 1px solid #e6bfc3;
}

@media (max-width: 820px) {
  .invoiceFinancialMetrics,
  .invoicePaymentForm {
    grid-template-columns: 1fr;
  }

  .invoicePaymentNotes {
    grid-column: auto;
  }

  .invoiceFinancialHeader {
    align-items: flex-start;
  }

  .invoiceDialogFooter > div,
  .invoiceCancelPanel > div:last-child {
    width: 100%;
    flex-wrap: wrap;
  }

  .invoiceDangerOutline,
  .invoiceCancelPanel button {
    flex: 1;
  }
}

/* Preventive maintenance plans */
.maintenancePlansPanel {
  margin-top: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce5ee;
  border-radius: 13px;
  box-shadow: 0 10px 30px rgba(28, 51, 80, 0.06);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.maintenancePlansHeader,
.maintenancePlansHeader > div,
.maintenancePlansToolbar,
.maintenancePlanContent > div,
.maintenancePlanDetails,
.maintenancePlanActions {
  display: flex;
  align-items: center;
}

.maintenancePlansHeader {
  justify-content: space-between;
  gap: 16px;
  padding: 17px 19px;
  background: linear-gradient(145deg, #f7faff, #fff);
  border-bottom: 1px solid #e1e8f0;
}

.maintenancePlansHeader > div {
  min-width: 0;
  gap: 12px;
}

.maintenancePlansHeaderIcon {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  place-items: center;
  color: #176437;
  background: #e9f7ef;
  border-radius: 11px;
}

.maintenancePlansHeaderIcon svg,
.maintenancePlanMarker svg,
.maintenancePlansHeader button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.maintenanceEyebrow {
  color: #278153;
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.maintenancePlansHeader h3 {
  margin: 2px 0 0;
  color: #243a53;
  font-size: 0.86rem;
}

.maintenancePlansHeader p {
  margin: 3px 0 0;
  color: #74849a;
  font-size: 0.62rem;
}

.maintenancePlansToolbar {
  gap: 9px;
  padding: 12px 19px;
  background: #f8fafc;
  border-bottom: 1px solid #e5ebf1;
}

.maintenancePlansToolbar select {
  min-height: 37px;
  padding: 0 32px 0 10px;
  color: #42566e;
  background: #fff;
  border: 1px solid #d6e0ea;
  border-radius: 8px;
  outline: 0;
  font-size: 0.63rem;
}

.maintenancePlansToolbar .panelSummary {
  margin-left: auto;
}

.maintenancePlansMessage {
  min-height: 0;
  margin: 0;
  padding: 0 19px;
  color: #a04449;
  font-size: 0.62rem;
}

.maintenancePlansMessage:not(:empty) {
  padding-top: 10px;
}

.maintenancePlansList {
  display: grid;
  gap: 9px;
  padding: 14px 19px 19px;
}

.maintenancePlanCard {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  background: #fff;
  border: 1px solid #dfe7ef;
  border-radius: 10px;
}

.maintenancePlanCard.due {
  border-color: #ebc4c7;
  box-shadow: inset 3px 0 #b6484f;
}

.maintenancePlanCard.soon {
  border-color: #ecd7a6;
  box-shadow: inset 3px 0 #d5972d;
}

.maintenancePlanCard.inactive {
  opacity: 0.66;
  background: #f8fafc;
}

.maintenancePlanMarker {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #176437;
  background: #e9f7ef;
  border-radius: 10px;
}

.maintenancePlanCard.due .maintenancePlanMarker {
  color: #a13d44;
  background: #fff0f1;
}

.maintenancePlanContent {
  min-width: 0;
}

.maintenancePlanContent > div:first-child {
  gap: 8px;
}

.maintenancePlanContent strong {
  overflow: hidden;
  color: #293e56;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.maintenancePlanContent p {
  margin: 4px 0 6px;
  overflow: hidden;
  color: #728298;
  font-size: 0.61rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.maintenancePlanDetails {
  flex-wrap: wrap;
  gap: 5px 14px;
}

.maintenancePlanDetails span {
  color: #61748b;
  font-size: 0.58rem;
}

.maintenanceDueBadge,
.maintenancePriority {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.54rem;
  font-weight: 850;
  text-transform: uppercase;
}

.maintenanceDueBadge.due {
  color: #983e45;
  background: #fff0f1;
}

.maintenanceDueBadge.soon {
  color: #8a5b10;
  background: #fff4dd;
}

.maintenanceDueBadge.future {
  color: #176437;
  background: #e9f7ef;
}

.maintenanceDueBadge.inactive {
  color: #647386;
  background: #edf1f5;
}

.maintenancePriority {
  color: #51647b;
  background: #edf2f7;
}

.maintenancePriority.high {
  color: #963d44;
  background: #fff0f1;
}

.maintenancePriority.low {
  color: #176437;
  background: #e9f7ef;
}

.maintenancePlanActions {
  justify-content: flex-end;
  gap: 6px;
}

.maintenancePlanActions button {
  min-height: 32px;
  padding: 0 9px;
  background: #fff;
  border: 1px solid #d7e1eb;
  border-radius: 7px;
  box-shadow: none;
  font-size: 0.58rem;
  font-weight: 800;
}

.maintenancePlanActions .edit {
  color: #17619f;
}

.maintenancePlanActions .generate {
  color: #176437;
}

.maintenancePlanActions .delete {
  color: #9b4047;
}

.maintenancePlansState {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 27px 16px;
  color: #738399;
  text-align: center;
  background: #f9fbfd;
  border: 1px dashed #cfdae6;
  border-radius: 10px;
}

.maintenancePlansState strong {
  color: #3c5068;
  font-size: 0.69rem;
}

.maintenancePlansState span {
  font-size: 0.61rem;
}

.maintenancePlansState.error {
  color: #9c4747;
  background: #fff8f8;
  border-color: #edcaca;
}

.maintenancePlanDialog {
  width: min(700px, calc(100vw - 32px));
  max-width: 700px;
}

.maintenancePlanForm {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.maintenancePlanForm label {
  display: grid;
  gap: 6px;
  color: #506178;
  font-size: 0.64rem;
  font-weight: 800;
}

.maintenancePlanForm :is(input, select, textarea) {
  width: 100%;
  min-height: 39px;
  padding: 8px 10px;
  color: #293e56;
  background: #fff;
  border: 1px solid #d4dfeb;
  border-radius: 8px;
  outline: 0;
}

.maintenancePlanForm :is(input, select, textarea):focus {
  border-color: #3981c7;
  box-shadow: 0 0 0 3px rgba(57, 129, 199, 0.11);
}

.clientAction.maintenance {
  color: #176437;
  background: #edf8f1;
  border-color: #cce8d7;
}

@media (max-width: 820px) {
  .maintenancePlansHeader,
  .maintenancePlansToolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .maintenancePlansHeader > button,
  .maintenancePlansToolbar > * {
    width: 100%;
  }

  .maintenancePlansToolbar .panelSummary {
    margin-left: 0;
  }

  .maintenancePlanCard {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .maintenancePlanMarker {
    width: 38px;
    height: 38px;
  }

  .maintenancePriority,
  .maintenancePlanActions {
    grid-column: 1 / -1;
  }

  .maintenancePlanActions {
    justify-content: stretch;
  }

  .maintenancePlanActions button {
    flex: 1;
  }

  .maintenancePlanForm {
    grid-template-columns: 1fr;
  }

  .maintenancePlanForm .dialogFullField {
    grid-column: auto;
  }
}

/* Client intelligence and table controls */
.clientStats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.clientStats article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 76px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  box-shadow: 0 5px 16px rgba(20, 45, 82, 0.045);
}

.statIcon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 9px;
}

.statIcon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.statIcon.blue {
  color: #2f6fed;
  background: #edf3ff;
}

.statIcon.green {
  color: #1ca864;
  background: #eaf9f1;
}

.statIcon.orange {
  color: #dc8a0b;
  background: #fff6e6;
}

.statIcon.violet {
  color: #7652d8;
  background: #f2efff;
}

.clientStats small,
.clientStats strong {
  display: block;
}

.clientStats small {
  overflow: hidden;
  color: #738198;
  font-size: 0.62rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clientStats strong {
  margin-top: 3px;
  color: var(--ink-900);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.statTrend {
  align-self: end;
  color: #8a98ab;
  font-size: 0.55rem;
  font-weight: 600;
  white-space: nowrap;
}

.statTrend.positive {
  color: #19985b;
}

.clientTable th > button {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 15px 0 0;
  color: inherit;
  background: transparent;
  border: 0;
  box-shadow: none;
  font: inherit;
}

.clientTable th > button::after {
  content: "";
  position: absolute;
  right: 1px;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid #9aa8ba;
  border-bottom: 1.5px solid #9aa8ba;
  opacity: 0.5;
  transform: rotate(45deg) translateY(-2px);
}

.clientTable th > button:hover,
.clientTable th > button.active {
  color: var(--blue-700);
  background: transparent;
}

.clientTable th > button.active::after {
  border-color: var(--blue-600);
  opacity: 1;
}

.clientTable th > button.active[data-direction="desc"]::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.tableFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 45px;
  margin-top: 8px;
  padding: 8px 2px 0;
  color: #7a879b;
  font-size: 0.62rem;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 9px;
}

.pagination button {
  display: grid;
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  place-items: center;
  color: var(--blue-700);
  background: #fff;
  border: 1px solid #d7e1ef;
  border-radius: 6px;
  box-shadow: none;
  font-size: 1rem;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.pagination button:hover:not(:disabled) {
  color: #fff;
  background: var(--blue-600);
  border-color: var(--blue-600);
}

.pagination button:disabled {
  color: #b6c0cf;
  background: #f7f9fc;
  cursor: not-allowed;
}

/* Client edit dialog */
.clientDialog {
  width: calc(100vw - var(--sidebar-width) - 40px);
  max-width: calc(100vw - var(--sidebar-width) - 40px);
  padding: 0;
  overflow: hidden;
  color: var(--ink-900);
  background: #fff;
  border: 1px solid #dce4ef;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(7, 25, 57, 0.28);
}

.clientDialog::backdrop {
  background: rgba(6, 22, 47, 0.58);
  backdrop-filter: blur(3px);
}

.clientDialog form {
  margin: 0;
}

.dialogHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 19px 20px 17px;
  background: linear-gradient(145deg, #f8faff, #fff);
  border-bottom: 1px solid #e2e8f0;
}

.dialogHeader > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dialogIcon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--blue-600);
  background: #eaf1ff;
  border-radius: 9px;
}

.dialogIcon svg,
.dialogPrimary svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dialogHeader h3 {
  margin: 0;
  color: var(--ink-900);
  font-size: 0.98rem;
  font-weight: 800;
  text-transform: none;
}

.dialogHeader p {
  margin: 4px 0 0;
  color: #75839a;
  font-size: 0.66rem;
}

.dialogClose {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  color: #6e7d92;
  background: transparent;
  border: 0;
  border-radius: 7px;
  box-shadow: none;
  font-size: 1.4rem;
  font-weight: 400;
}

.dialogClose:hover {
  color: var(--ink-900);
  background: #eef2f7;
}

.dialogBody {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  padding: 20px;
}

.dialogBody label {
  display: grid;
  align-items: initial;
  gap: 7px;
  color: #4b5a71;
  font-size: 0.68rem;
  font-weight: 700;
}

.dialogBody input {
  width: 100%;
  height: 42px;
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink-900);
  background: #fff;
  border: 1px solid #d6dfeb;
  border-radius: 7px;
  outline: none;
}

.dialogBody input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.11);
}

.dialogFooter {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  background: #f8fafd;
  border-top: 1px solid #e3e9f1;
}

.dialogFooter button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 17px;
  border-radius: 7px;
  box-shadow: none;
  font-size: 0.68rem;
  font-weight: 800;
}

.dialogSecondary {
  color: #53627a;
  background: #fff;
  border: 1px solid #d2dce8;
}

.dialogPrimary {
  color: #fff;
  background: linear-gradient(110deg, #2f70ed, #285fd4);
  border: 1px solid #245acc;
}

.dialogPrimary:hover {
  background: linear-gradient(110deg, #3678f3, #245acb);
}

/* Existing application modules */
.view.card {
  border-radius: 14px;
  border-color: #e0e6ef;
  box-shadow: var(--soft-shadow);
}

.view.card::before {
  height: 2px;
  background: linear-gradient(90deg, var(--blue-600), transparent 42%);
}

#loginCard {
  margin-top: 34px;
}

.organizationSwitcher {
  position: relative;
  min-width: 172px;
}

.organizationSwitcherButton {
  display: grid;
  width: 100%;
  gap: 2px;
  min-height: 44px;
  padding: 8px 30px 8px 12px;
  color: #263c58;
  background: linear-gradient(135deg, #f6fbf8, #eef6ff);
  border: 1px solid #d5e3dc;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  text-align: left;
}

.organizationSwitcherButton::after {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #4e6680;
  border-bottom: 1.5px solid #4e6680;
  content: "";
  transform: translateY(-65%) rotate(45deg);
}

.organizationSwitcherButton:hover,
.organizationSwitcherButton:focus-visible {
  border-color: #5fa58c;
  box-shadow: 0 0 0 3px rgba(65, 151, 114, 0.14);
  outline: 0;
}

.organizationSwitcherEyebrow {
  color: #6d8298;
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.organizationSwitcherButton strong {
  overflow: hidden;
  color: #25445b;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.organizationSwitcherMenu {
  position: absolute;
  z-index: 100;
  top: calc(100% + 8px);
  right: 0;
  min-width: 235px;
  max-height: min(340px, 55vh);
  padding: 6px;
  overflow: auto;
  background: #fff;
  border: 1px solid #dce7e0;
  border-radius: 12px;
  box-shadow: 0 16px 38px rgba(25, 55, 70, 0.18);
}

.organizationOption {
  display: block;
  width: 100%;
  min-height: 39px;
  padding: 9px 10px;
  overflow: hidden;
  color: #2c425a;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: 750 0.69rem "Manrope", sans-serif;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.organizationOption:hover,
.organizationOption:focus-visible,
.organizationOption[aria-checked="true"] {
  color: #0d6455;
  background: #edf8f4;
  outline: 0;
}

.organizationState {
  display: flex;
  align-items: center;
  min-height: 42px;
  margin: 14px 20px 0;
  padding: 10px 13px;
  color: #77520d;
  background: #fff8e7;
  border: 1px solid #efd89b;
  border-radius: 10px;
  font: 700 0.7rem "Manrope", sans-serif;
}

.organizationState[data-state="switching"] {
  color: #145b78;
  background: #edf8fc;
  border-color: #bee2ed;
}

.organizationState[data-state="forbidden"],
.organizationState[data-state="suspended"] {
  color: #9c3e32;
  background: #fff3f1;
  border-color: #f3c8c1;
}

.organizationCanary {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 2px;
  height: 2px;
  overflow: hidden;
  opacity: 0.01;
  pointer-events: none;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .organizationSwitcher {
    min-width: 0;
    width: 42px;
  }
  .organizationSwitcherButton {
    min-height: 38px;
    padding: 7px 24px 7px 9px;
  }
  .organizationSwitcherEyebrow,
  .organizationSwitcherButton strong {
    display: none;
  }
  .organizationSwitcherButton::before {
    width: 16px;
    height: 16px;
    border: 2px solid #3e8a70;
    border-radius: 50%;
    content: "";
  }
  .organizationSwitcherMenu {
    right: -58px;
  }
}

@media (max-width: 1180px) {
  .dashboardKpis {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboardMainGrid,
  .dashboardLowerGrid {
    grid-template-columns: 1fr;
  }

  .dashboardPerformanceControls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quickActionsGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .technicianPerformance {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboardPerformanceTechnicians {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clientsWorkspace {
    grid-template-columns: minmax(350px, 0.88fr) minmax(480px, 1.2fr);
  }

  .topbarActions {
    gap: 10px;
  }

  .userSummary {
    min-width: 175px;
  }

  .exportGrid {
    grid-template-columns: repeat(3, 1fr);
  }

  .clientStats {
    grid-template-columns: repeat(2, 1fr);
  }

  .assetStats {
    grid-template-columns: repeat(2, 1fr);
  }

  .ticketStats {
    grid-template-columns: repeat(2, 1fr);
  }

  .interventionStats,
  .reportStats {
    grid-template-columns: repeat(2, 1fr);
  }

  .reportToolbar {
    grid-template-columns: minmax(240px, 1fr) repeat(2, minmax(150px, 0.6fr)) auto;
  }

  .reportToolbar input[type="datetime-local"] {
    display: none;
  }

  .ticketFilterGrid {
    grid-template-columns: minmax(240px, 1.5fr) repeat(2, minmax(140px, 0.8fr)) auto auto;
  }

  #ticketFilterAssigned {
    display: none;
  }

  .assetsWorkspace {
    grid-template-columns: minmax(350px, 0.8fr) minmax(500px, 1.2fr);
  }
}

@media (max-width: 900px) {
  :root {
    --sidebar-width: 0px;
  }

  header.topbar {
    flex-direction: row;
    align-items: center;
    gap: 0;
    height: var(--header-h);
    min-height: var(--header-h);
    padding: 0 12px;
  }

  header .brand {
    min-width: 0;
  }

  header .brand p,
  .userSummary > div,
  .userChevron {
    display: none;
  }

  .quickSearch {
    width: min(42vw, 240px);
  }

  .globalSearchDropdown {
    position: fixed;
    top: calc(var(--header-h) - 3px);
    right: 8px;
    left: 8px;
    width: auto;
    max-height: calc(100vh - var(--header-h) - 12px);
  }

  .userSummary {
    min-width: auto;
  }

  .appShell {
    grid-template-columns: 1fr;
  }

  #sidebar {
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 260px;
    max-width: 260px;
    height: calc(100vh - var(--header-h));
    max-height: none;
    padding: 22px 8px 14px;
    transform: translateX(-102%);
    transition: transform 180ms ease;
  }

  body.sidebar-open #sidebar {
    max-height: none;
    transform: translateX(0);
  }

  #sidebar nav,
  body.sidebar-open #sidebar nav {
    display: flex;
    grid-template-columns: none;
    padding: 0;
  }

  body.sidebar-open #sidebar button {
    text-align: left;
  }

  .clientsPage {
    padding: 15px 14px 24px;
  }

  .appContent > .dashboardPage {
    padding: 15px 14px 24px;
  }

  .appContent > .assetsPage {
    padding: 15px 14px 24px;
  }

  .appContent > .ticketsPage {
    padding: 15px 14px 24px;
  }

  .appContent > .interventionsPage,
  .appContent > .reportsPage {
    padding: 15px 14px 24px;
  }

  .operationToolbar,
  .reportToolbar {
    grid-template-columns: 1fr 1fr;
  }

  .operationToolbar .ticketSearch {
    grid-column: 1 / -1;
  }

  .ticketFilterGrid {
    grid-template-columns: 1fr 1fr;
  }

  .ticketSearch {
    grid-column: 1 / -1;
  }

  .assetsWorkspace {
    grid-template-columns: 1fr;
  }

  .assetPanel {
    min-height: auto;
  }

  .ticketHealthContent {
    grid-template-columns: 1fr;
  }

  .clientsWorkspace {
    grid-template-columns: 1fr;
  }

  .clientPanel {
    min-height: auto;
  }

  .exportGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  :root {
    --header-h: 64px;
  }

  header.topbar {
    height: var(--header-h);
    min-height: var(--header-h);
    padding: 0 10px;
  }

  .sidebarToggle {
    margin: 0 6px 0 -4px;
  }

  header .brand {
    flex: 1 1 auto;
    overflow: hidden;
  }

  header .brand h1 {
    overflow: hidden;
    font-size: 0.95rem;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .brandMark {
    width: 32px;
    min-width: 32px;
    margin-right: 4px;
  }

  .brandMark svg {
    width: 32px;
    height: 32px;
  }

  .topbarActions {
    flex: 0 0 auto;
    gap: 6px;
  }

  .quickSearch {
    display: none;
  }

  .userSummary,
  .userAvatar {
    width: 36px;
    min-width: 36px;
    height: 36px;
  }

  .notificationButton {
    display: grid;
    flex: 0 0 34px;
  }

  .clientsPageHeader {
    align-items: flex-start;
    min-height: 76px;
  }

  .breadcrumb {
    display: none;
  }

  .clientForm {
    grid-template-columns: 1fr;
  }

  .dashboardHeader {
    align-items: flex-start;
  }

  .dashboardHeaderMeta > span {
    display: none;
  }

  .dashboardHeaderMeta button {
    padding: 0 11px;
  }

  .dashboardKpis,
  .quickActionsGrid,
  .riskStrip,
  .technicianPerformance {
    grid-template-columns: 1fr;
  }

  .ticketStats,
  .ticketFilterGrid,
  .detailFormGrid {
    grid-template-columns: 1fr;
  }

  .interventionStats,
  .reportStats,
  .interventionCards,
  .reportCards,
  .operationForm,
  .operationToolbar,
  .reportToolbar {
    grid-template-columns: 1fr;
  }

  .operationToolbar .ticketSearch,
  .operationForm .dialogFullField {
    grid-column: auto;
  }

  .reportCard {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .reportCardMeta,
  .reportCard .itemActions {
    grid-column: 2;
  }

  .ticketSearch {
    grid-column: auto;
  }

  #ticketFilterAssigned {
    display: block;
  }

  .ticketHealthContent {
    padding-right: 0;
    padding-left: 0;
  }

  .ticketRingWrap {
    flex-direction: column;
  }

  .ticketLegend {
    grid-template-columns: repeat(2, 1fr);
  }

  .feedMeta {
    align-items: flex-end;
    flex-direction: column;
  }

  .priorityBadge {
    display: none;
  }

  .clientStats,
  .assetStats,
  .dialogBody {
    grid-template-columns: 1fr;
  }

  .assetForm {
    grid-template-columns: 1fr;
  }

  .assetForm .fullField {
    grid-column: auto;
  }

  .modulePageHeader {
    align-items: flex-start;
  }

  .clientStats article {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .statTrend {
    display: none;
  }

  .exportGrid,
  .importActions {
    grid-template-columns: 1fr;
  }

  .importHeading {
    flex-direction: column;
  }

  .downloadTemplate {
    width: 100%;
    justify-content: center;
  }

  .dialogFooter {
    flex-direction: column-reverse;
  }

  .dialogFooter button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Final operational modules */
.schedulesPage,
.contractsPage,
.notificationsPage,
.usersPage,
.techniciansPage,
.portalPage {
  width: auto;
  max-width: none;
  min-width: 0;
  min-height: calc(100vh - var(--header-h));
  padding: 17px 20px 28px;
  overflow: hidden;
  animation: viewReveal 0.38s ease both;
}

.scheduleStats,
.contractStats,
.notificationStats,
.userStats,
.technicianStats,
.portalStats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.scheduleStats article,
.contractStats article,
.notificationStats article,
.userStats article,
.technicianStats article {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 18px;
  border: 1px solid #e3eaf5;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff 0%, #f9fbff 100%);
  box-shadow: 0 8px 24px rgba(21, 51, 92, 0.055);
}

.scheduleStats small,
.contractStats small,
.notificationStats small,
.userStats small,
.technicianStats small {
  display: block;
  color: #71809a;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}

.scheduleStats strong,
.contractStats strong,
.notificationStats strong,
.userStats strong,
.technicianStats strong {
  color: #112544;
  font-size: 25px;
  line-height: 1;
}

.scheduleToolbar,
.contractToolbar,
.notificationToolbar,
.userToolbar,
.technicianToolbar,
.portalReportToolbar {
  align-items: center;
}

.scheduleToolbar {
  grid-template-columns: minmax(260px, 1.6fr) repeat(2, minmax(150px, 0.8fr)) repeat(2, minmax(165px, 0.9fr)) auto auto;
}

.contractToolbar {
  grid-template-columns: minmax(320px, 1fr) 210px auto;
}

.notificationToolbar {
  grid-template-columns: minmax(320px, 1fr) 210px auto auto;
}

.userToolbar {
  grid-template-columns: minmax(320px, 1fr) 220px;
}

.secondaryFilter {
  color: #42536e !important;
  border-color: #d9e2ef !important;
  background: #fff !important;
}

.scheduleCards,
.contractCards,
.notificationCards,
.userCards,
.technicianCards,
.portalTicketCards,
.portalCommentCards {
  display: grid;
  gap: 10px;
  padding: 10px 14px 16px;
}

.scheduleCard,
.contractCard,
.notificationCard,
.userCard,
.technicianCard {
  display: grid;
  align-items: center;
  gap: 16px;
  padding: 15px 16px;
  border: 1px solid #e5ebf4;
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.scheduleCard:hover,
.contractCard:hover,
.notificationCard:hover,
.userCard:hover,
.technicianCard:hover {
  border-color: #c9d8ef;
  box-shadow: 0 9px 24px rgba(24, 61, 112, 0.08);
  transform: translateY(-1px);
}

.scheduleCard {
  grid-template-columns: 64px minmax(0, 1fr) auto;
}

.scheduleDate {
  height: 62px;
  display: grid;
  place-content: center;
  text-align: center;
  border: 1px solid #dce7fb;
  border-radius: 12px;
  color: #2462d7;
  background: #f1f6ff;
}

.scheduleDate strong {
  font-size: 23px;
  line-height: 1;
}

.scheduleDate span {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.scheduleMain > div,
.contractCardMain > div,
.notificationCardMain > div,
.userCardMain > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.scheduleMain h4,
.contractCardMain h4 {
  margin: 7px 0 4px;
  color: #1b2e4c;
  font-size: 14px;
}

.scheduleMain p,
.contractCardMain p,
.notificationCardMain p,
.userCardMain p {
  margin: 0 0 5px;
  color: #506079;
  font-size: 12px;
}

.scheduleMain small,
.contractCardMain small,
.notificationCardMain small,
.userCardMain small {
  color: #8a96a9;
  font-size: 11px;
}

.scheduleCard .itemActions,
.contractCard .itemActions,
.userCard .itemActions {
  justify-content: flex-end;
}

.contractCard {
  grid-template-columns: 46px minmax(0, 1fr) 76px auto;
}

.contractCardIcon,
.notificationCardIcon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #2867dc;
  background: #edf4ff;
}

.contractCardIcon svg,
.notificationCardIcon svg {
  width: 21px;
  height: 21px;
}

.contractSla {
  padding: 9px 12px;
  text-align: center;
  border-left: 1px solid #e7ecf4;
  border-right: 1px solid #e7ecf4;
}

.contractSla small {
  display: block;
  color: #8793a6;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.contractSla strong {
  color: #17345f;
  font-size: 18px;
}

.toggleField {
  min-height: 44px;
  display: flex !important;
  align-items: center;
  gap: 9px;
  padding-top: 21px;
}

.toggleField input {
  width: 18px !important;
  height: 18px;
}

.notificationCard {
  grid-template-columns: 46px minmax(0, 1fr) 150px;
}

.notificationCard time {
  color: #7f8ca1;
  font-size: 11px;
  text-align: right;
}

.notificationCardIcon {
  color: #e48a13;
  background: #fff7e9;
}

.userCard {
  grid-template-columns: 46px minmax(0, 1fr) 110px auto;
}

.userAvatar,
.commentAvatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(145deg, #2c76e8, #174aa8);
  box-shadow: 0 5px 13px rgba(37, 100, 214, 0.22);
}

.rolePill {
  padding: 7px 10px;
  border-radius: 999px;
  color: #42546e;
  background: #eef2f8;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.portalHero {
  position: relative;
  overflow: hidden;
  min-height: 168px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 34px;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 25%, rgba(90, 166, 255, 0.3), transparent 25%),
    linear-gradient(120deg, #0f2b54 0%, #174b92 58%, #1769c7 100%);
  box-shadow: 0 16px 40px rgba(18, 58, 112, 0.18);
}

.portalHero::after {
  content: "";
  position: absolute;
  right: 110px;
  bottom: -105px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.portalEyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: #a9d4ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portalHero h3 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 34px);
}

.portalHero p {
  max-width: 660px;
  margin: 0;
  color: #d7e8ff;
  font-size: 13px;
  line-height: 1.7;
}

.portalHeroIcon {
  position: relative;
  z-index: 1;
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.portalHeroIcon svg {
  width: 38px;
  height: 38px;
}

.portalStats article {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid #e1e9f4;
  border-radius: 14px;
  background: #fff;
}

.portalStats article::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #2a6ee8;
}

.portalStats small,
.portalStats span {
  display: block;
  color: #7c899e;
  font-size: 11px;
}

.portalStats strong {
  display: block;
  margin: 6px 0;
  color: #152c4f;
  font-size: 27px;
}

.portalGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  gap: 16px;
  margin-top: 16px;
}

.portalTicketCards,
.portalCommentCards {
  max-height: 480px;
  overflow: auto;
}

.portalTicketCard {
  padding: 15px;
  border: 1px solid #e5ebf4;
  border-radius: 12px;
  background: #fff;
}

.portalTicketTop,
.portalTicketMeta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.portalTicketCard h4 {
  margin: 10px 0 5px;
  color: #1b2d49;
  font-size: 14px;
}

.portalTicketCard p {
  margin: 0 0 12px;
  color: #68758a;
  font-size: 12px;
}

.portalTicketMeta {
  padding-top: 10px;
  border-top: 1px solid #edf1f6;
  color: #8290a5;
  font-size: 11px;
}

.portalTicketCard .actionLink {
  margin-top: 12px;
}

.portalCommentFilter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px 14px;
}

.portalCommentFilter select {
  min-width: 0;
}

.portalCommentCard {
  display: flex;
  gap: 11px;
  padding: 13px;
  border: 1px solid #e8edf5;
  border-radius: 11px;
  background: #fbfcfe;
}

.portalCommentCard > div {
  min-width: 0;
  flex: 1;
}

.portalCommentCard > div > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.portalCommentCard strong {
  color: #1c304e;
  font-size: 12px;
}

.portalCommentCard time {
  color: #909caf;
  font-size: 10px;
}

.portalCommentCard p {
  margin: 6px 0 0;
  color: #55647b;
  font-size: 12px;
  line-height: 1.55;
}

.portalReportsPanel {
  margin-top: 16px;
}

.portalReportToolbar {
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.6fr) minmax(180px, 0.6fr) auto;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #e8edf4;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 1200px) {
  .scheduleToolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scheduleToolbar .ticketSearch {
    grid-column: 1 / -1;
  }

  .portalGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1400px) {
  .scheduleToolbar {
    grid-template-columns: minmax(260px, 2fr) minmax(150px, 1fr) minmax(150px, 1fr) auto auto;
  }

  .scheduleToolbar input[type="datetime-local"] {
    display: none;
  }
}

@media (max-width: 860px) {
  .scheduleStats,
  .contractStats,
  .notificationStats,
  .userStats,
  .portalStats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contractToolbar,
  .notificationToolbar,
  .userToolbar,
  .portalReportToolbar {
    grid-template-columns: 1fr;
  }

  .schedulesPage,
  .contractsPage,
  .notificationsPage,
  .usersPage,
  .portalPage {
    padding: 15px 14px 24px;
  }

  .contractCard {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .contractSla,
  .contractCard .itemActions {
    grid-column: 2;
  }

  .contractSla {
    padding: 4px 0;
    text-align: left;
    border: 0;
  }

  .notificationCard {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .notificationCard time {
    grid-column: 2;
    text-align: left;
  }

  .userCard {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .rolePill,
  .userCard .itemActions {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .scheduleStats,
  .contractStats,
  .notificationStats,
  .userStats,
  .portalStats {
    grid-template-columns: 1fr;
  }

  .scheduleToolbar {
    grid-template-columns: 1fr;
  }

  .scheduleToolbar .ticketSearch {
    grid-column: auto;
  }

  .scheduleCard {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .scheduleCard .itemActions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .portalHero {
    padding: 24px 22px;
  }

  .portalHeroIcon {
    display: none;
  }

  .portalCommentFilter {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Schedules page - professional visual polish
   ========================================================================== */

.schedulesPage {
  --schedule-ink: #17243d;
  --schedule-muted: #687792;
  --schedule-line: #dfe7f1;
  --schedule-soft-line: #eaf0f7;
  --schedule-surface: #ffffff;
  --schedule-soft: #f6f9fd;
  --schedule-primary: #2563d9;
  --schedule-primary-dark: #184da9;
  --schedule-primary-soft: #edf4ff;
  --schedule-success: #17835c;
  --schedule-warning: #b66a09;
  --schedule-danger: #c43d4d;
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 20px 24px 32px;
  color: var(--schedule-ink);
  background:
    radial-gradient(circle at 92% -12%, rgba(37, 99, 217, 0.1), transparent 31rem),
    linear-gradient(180deg, #f8fbff 0, #f4f7fb 18rem, #f6f8fb 100%);
  overflow: visible;
}

.schedulesPage .modulePageHeader {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 108px;
  padding: 22px 24px;
  border: 1px solid rgba(199, 213, 231, 0.9);
  border-radius: 18px;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.96)),
    var(--schedule-surface);
  box-shadow: 0 14px 36px rgba(30, 58, 101, 0.08);
  overflow: hidden;
}

.schedulesPage .modulePageHeader::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #2f72e8, #18a17b);
}

.schedulesPage .modulePageHeader::after {
  content: "";
  position: absolute;
  top: -76px;
  right: 9%;
  width: 220px;
  height: 220px;
  border: 34px solid rgba(37, 99, 217, 0.045);
  border-radius: 50%;
  pointer-events: none;
}

.schedulesPage .pageTitleGroup {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.schedulesPage .pageTitleIcon {
  width: 46px;
  height: 46px;
  padding: 11px;
  border: 1px solid #cfe0fb;
  border-radius: 13px;
  color: var(--schedule-primary);
  background: linear-gradient(145deg, #f6f9ff, #e7f0ff);
  box-shadow: 0 8px 20px rgba(37, 99, 217, 0.12);
}

.schedulesPage .pageTitleGroup h2 {
  margin: 0 0 5px;
  color: #13223b;
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 750;
  letter-spacing: -0.035em;
}

.schedulesPage .pageTitleGroup p {
  max-width: 720px;
  margin: 0;
  color: var(--schedule-muted);
  font-size: 13px;
  line-height: 1.55;
}

.schedulesPage .modulePrimaryAction {
  position: relative;
  z-index: 1;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #1d57bd;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, #2d6fe3, #2059c4);
  box-shadow: 0 9px 22px rgba(37, 99, 217, 0.23);
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.schedulesPage .modulePrimaryAction:hover {
  background: linear-gradient(135deg, #3278ef, #194cae);
  box-shadow: 0 12px 28px rgba(37, 99, 217, 0.3);
  transform: translateY(-1px);
}

.schedulesPage .modulePrimaryAction:focus-visible,
.schedulesPage button:focus-visible,
.schedulesPage input:focus-visible,
.schedulesPage select:focus-visible,
.schedulesPage textarea:focus-visible {
  outline: 3px solid rgba(37, 99, 217, 0.18);
  outline-offset: 2px;
}

.schedulesPage .scheduleStats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.schedulesPage .scheduleStats article {
  position: relative;
  min-height: 100px;
  padding: 18px;
  border: 1px solid var(--schedule-line);
  border-radius: 15px;
  background: linear-gradient(145deg, #fff 0%, #f8fbff 100%);
  box-shadow: 0 8px 24px rgba(24, 52, 91, 0.06);
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.schedulesPage .scheduleStats article::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -34px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(37, 99, 217, 0.045);
}

.schedulesPage .scheduleStats article:hover {
  border-color: #c7d7eb;
  box-shadow: 0 12px 30px rgba(24, 52, 91, 0.09);
  transform: translateY(-2px);
}

.schedulesPage .scheduleStats .statIcon {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 13px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.schedulesPage .scheduleStats small {
  margin-bottom: 7px;
  color: #71809a;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.schedulesPage .scheduleStats strong {
  color: #152744;
  font-size: 28px;
  font-weight: 760;
  letter-spacing: -0.04em;
}

.schedulesPage .scheduleToolbar {
  display: grid;
  grid-template-columns:
    minmax(280px, 1.65fr)
    minmax(160px, 0.85fr)
    minmax(160px, 0.85fr)
    minmax(175px, 0.92fr)
    minmax(175px, 0.92fr)
    auto
    auto;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid var(--schedule-line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(24, 52, 91, 0.055);
}

.schedulesPage .scheduleToolbar .ticketSearch {
  position: relative;
  min-width: 0;
}

.schedulesPage .scheduleToolbar .ticketSearch svg {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 17px;
  height: 17px;
  color: #7d8ba1;
  transform: translateY(-50%);
  pointer-events: none;
}

.schedulesPage .scheduleToolbar input,
.schedulesPage .scheduleToolbar select {
  width: 100%;
  min-height: 42px;
  margin: 0;
  border: 1px solid #d7e0ec;
  border-radius: 10px;
  color: #263854;
  background-color: #fbfcfe;
  box-shadow: none;
  font-size: 12px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.schedulesPage .scheduleToolbar .ticketSearch input {
  padding-left: 39px;
}

.schedulesPage .scheduleToolbar input:hover,
.schedulesPage .scheduleToolbar select:hover {
  border-color: #bac9dd;
  background-color: #fff;
}

.schedulesPage .scheduleToolbar input:focus,
.schedulesPage .scheduleToolbar select:focus {
  border-color: #6c9bea;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 217, 0.1);
}

.schedulesPage .scheduleToolbar .filterButton {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid #2461ce;
  border-radius: 10px;
  color: #fff;
  background: #2867d7;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
  box-shadow: 0 5px 14px rgba(37, 99, 217, 0.16);
}

.schedulesPage .scheduleToolbar .filterButton:hover {
  background: #1f57bd;
}

.schedulesPage .scheduleToolbar .secondaryFilter {
  color: #52637c;
  border-color: #d4deea;
  background: #fff;
  box-shadow: none;
}

.schedulesPage .scheduleToolbar .secondaryFilter:hover {
  color: #243852;
  border-color: #b9c7d9;
  background: #f5f8fc;
}

.schedulesPage > .operationPanel {
  min-width: 0;
  border: 1px solid var(--schedule-line);
  border-radius: 16px;
  background: var(--schedule-surface);
  box-shadow: 0 12px 32px rgba(24, 52, 91, 0.07);
  overflow: hidden;
}

.schedulesPage > .operationPanel > .panelTitle {
  min-height: 62px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--schedule-soft-line);
  background: linear-gradient(180deg, #fff, #fbfcfe);
}

.schedulesPage > .operationPanel > .panelTitle > div {
  gap: 10px;
}

.schedulesPage > .operationPanel > .panelTitle svg {
  width: 19px;
  height: 19px;
  color: var(--schedule-primary);
}

.schedulesPage > .operationPanel > .panelTitle h3 {
  color: #1a2b47;
  font-size: 15px;
  font-weight: 750;
}

.schedulesPage .panelSummary {
  padding: 6px 10px;
  border: 1px solid #dce5f0;
  border-radius: 999px;
  color: #64738a;
  background: #f7f9fc;
  font-size: 11px;
  font-weight: 700;
}

.schedulesPage .scheduleCards {
  display: grid;
  gap: 11px;
  min-height: 120px;
  padding: 14px 16px 18px;
  background:
    linear-gradient(rgba(226, 234, 244, 0.35) 1px, transparent 1px);
  background-size: 100% 52px;
}

.schedulesPage .scheduleCard {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  min-height: 92px;
  padding: 13px 14px;
  border: 1px solid #dfe7f1;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 15px rgba(24, 52, 91, 0.045);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.schedulesPage .scheduleCard::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #72a0e9;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.schedulesPage .scheduleCard:hover {
  border-color: #bfd0e5;
  box-shadow: 0 10px 25px rgba(24, 52, 91, 0.09);
  transform: translateY(-1px);
}

.schedulesPage .scheduleCard:hover::before {
  opacity: 1;
}

.schedulesPage .scheduleDate {
  width: 70px;
  height: 68px;
  border: 1px solid #d6e3f7;
  border-radius: 12px;
  color: var(--schedule-primary);
  background: linear-gradient(145deg, #f8fbff, #edf4ff);
  box-shadow: inset 0 -1px 0 rgba(37, 99, 217, 0.08);
}

.schedulesPage .scheduleDate strong {
  font-size: 25px;
  font-weight: 780;
  letter-spacing: -0.035em;
}

.schedulesPage .scheduleDate span {
  color: #5578b5;
  font-size: 10px;
  letter-spacing: 0.09em;
}

.schedulesPage .scheduleMain {
  min-width: 0;
}

.schedulesPage .scheduleMain > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 10px;
}

.schedulesPage .scheduleMain h4 {
  margin: 7px 0 4px;
  color: #172a49;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}

.schedulesPage .scheduleMain p {
  margin: 0 0 5px;
  color: #53647e;
  font-size: 12px;
  line-height: 1.45;
}

.schedulesPage .scheduleMain small {
  color: #8491a5;
  font-size: 11px;
  line-height: 1.4;
}

.schedulesPage .scheduleCard .statusBadge,
.schedulesPage .scheduleCard .badge,
.schedulesPage .scheduleCard [class*="status"] {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid #d7e2f0;
  border-radius: 999px;
  color: #4c6381;
  background: #f5f8fc;
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
}

.schedulesPage .scheduleCard.is-today,
.schedulesPage .scheduleCard.today {
  border-color: #addbc9;
  background: linear-gradient(90deg, #f5fcf9, #fff 30%);
}

.schedulesPage .scheduleCard.is-today::before,
.schedulesPage .scheduleCard.today::before {
  background: var(--schedule-success);
  opacity: 1;
}

.schedulesPage .scheduleCard.is-overdue,
.schedulesPage .scheduleCard.overdue,
.schedulesPage .scheduleCard.is-expired {
  border-color: #edc6cc;
  background: linear-gradient(90deg, #fff7f8, #fff 30%);
}

.schedulesPage .scheduleCard.is-overdue::before,
.schedulesPage .scheduleCard.overdue::before,
.schedulesPage .scheduleCard.is-expired::before {
  background: var(--schedule-danger);
  opacity: 1;
}

.schedulesPage .scheduleCard.is-upcoming,
.schedulesPage .scheduleCard.upcoming {
  border-color: #ead8b9;
  background: linear-gradient(90deg, #fffbf4, #fff 30%);
}

.schedulesPage .scheduleCard.is-upcoming::before,
.schedulesPage .scheduleCard.upcoming::before {
  background: var(--schedule-warning);
  opacity: 1;
}

.schedulesPage .scheduleCard .itemActions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
  min-width: max-content;
}

.schedulesPage .scheduleCard .itemActions button,
.schedulesPage .scheduleCard .itemActions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid #d8e1ed;
  border-radius: 9px;
  color: #4b5f7d;
  background: #fff;
  box-shadow: none;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.schedulesPage .scheduleCard .itemActions button:hover,
.schedulesPage .scheduleCard .itemActions a:hover {
  color: #1f58bd;
  border-color: #a9c3ea;
  background: #f1f6ff;
}

.schedulesPage .scheduleCard .itemActions .danger,
.schedulesPage .scheduleCard .itemActions [data-action="delete"] {
  color: #b23a4a;
}

.schedulesPage .scheduleCard .itemActions .danger:hover,
.schedulesPage .scheduleCard .itemActions [data-action="delete"]:hover {
  color: #a52e3e;
  border-color: #e9b9c0;
  background: #fff4f5;
}

.schedulesPage .scheduleCards:empty {
  place-items: center;
  min-height: 180px;
}

.schedulesPage .scheduleCards:empty::before {
  content: "Nu există programări pentru criteriile selectate.";
  display: grid;
  place-items: center;
  width: min(100%, 520px);
  min-height: 112px;
  padding: 24px;
  border: 1px dashed #cad6e5;
  border-radius: 13px;
  color: #718098;
  background: rgba(248, 251, 255, 0.9);
  font-size: 12px;
  text-align: center;
}

.schedulesPage #schedulesMsg {
  min-height: 0;
  margin: 0;
  padding: 0 16px 14px;
  color: #687792;
  font-size: 12px;
}

.schedulesPage #schedulesMsg:not(:empty) {
  min-height: 38px;
  padding-top: 10px;
  border-top: 1px solid var(--schedule-soft-line);
  background: #fbfcfe;
}

.schedulesPage .operationDialog {
  width: min(680px, calc(100vw - 32px));
  max-height: min(780px, calc(100vh - 32px));
  padding: 0;
  border: 1px solid #d8e2ee;
  border-radius: 18px;
  color: var(--schedule-ink);
  background: #fff;
  box-shadow: 0 28px 80px rgba(13, 35, 68, 0.28);
  overflow: auto;
}

.schedulesPage .operationDialog::backdrop {
  background: rgba(18, 33, 56, 0.58);
  backdrop-filter: blur(4px);
}

.schedulesPage .operationDialog .dialogHeader {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 19px 21px;
  border-bottom: 1px solid var(--schedule-soft-line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.schedulesPage .operationDialog .dialogIcon {
  width: 42px;
  height: 42px;
  color: var(--schedule-primary);
  border: 1px solid #d2e0f7;
  border-radius: 12px;
  background: var(--schedule-primary-soft);
}

.schedulesPage .operationDialog .dialogHeader h3 {
  margin: 0 0 3px;
  color: #182a46;
  font-size: 18px;
  font-weight: 760;
}

.schedulesPage .operationDialog .dialogHeader p {
  margin: 0;
  color: #748198;
  font-size: 12px;
}

.schedulesPage .operationDialog .dialogClose {
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #718098;
  background: transparent;
  font-size: 22px;
}

.schedulesPage .operationDialog .dialogClose:hover {
  color: #293d59;
  border-color: #dce4ef;
  background: #f5f7fa;
}

.schedulesPage .operationDialog .operationForm {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 21px;
}

.schedulesPage .operationDialog .operationForm label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.schedulesPage .operationDialog .operationForm label > span {
  color: #42536d;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.schedulesPage .operationDialog .dialogFullField {
  grid-column: 1 / -1;
}

.schedulesPage .operationDialog input,
.schedulesPage .operationDialog select,
.schedulesPage .operationDialog textarea {
  width: 100%;
  min-height: 43px;
  margin: 0;
  border: 1px solid #d6e0ec;
  border-radius: 10px;
  color: #253852;
  background: #fbfcfe;
  box-shadow: none;
  font-size: 12px;
}

.schedulesPage .operationDialog textarea {
  min-height: 104px;
  padding: 11px 12px;
  line-height: 1.5;
  resize: vertical;
}

.schedulesPage .operationDialog input:focus,
.schedulesPage .operationDialog select:focus,
.schedulesPage .operationDialog textarea:focus {
  border-color: #6e9ce9;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 217, 0.1);
}

.schedulesPage .operationDialog .dialogFooter {
  position: sticky;
  bottom: 0;
  z-index: 2;
  gap: 9px;
  padding: 15px 21px;
  border-top: 1px solid var(--schedule-soft-line);
  background: rgba(249, 251, 254, 0.97);
  backdrop-filter: blur(12px);
}

.schedulesPage .operationDialog .dialogPrimary,
.schedulesPage .operationDialog .dialogSecondary {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 750;
}

.schedulesPage .operationDialog .dialogPrimary {
  color: #fff;
  border: 1px solid #1f57bc;
  background: linear-gradient(135deg, #2d6fe3, #2059c4);
  box-shadow: 0 7px 18px rgba(37, 99, 217, 0.2);
}

.schedulesPage .operationDialog .dialogSecondary {
  color: #52637c;
  border: 1px solid #d5dfea;
  background: #fff;
}

@media (max-width: 1380px) {
  .schedulesPage .scheduleToolbar {
    grid-template-columns: minmax(260px, 1.5fr) repeat(2, minmax(150px, 1fr)) repeat(2, auto);
  }

  .schedulesPage .scheduleToolbar input[type="datetime-local"] {
    display: block;
    grid-row: 2;
  }
}

@media (max-width: 1020px) {
  .schedulesPage {
    padding: 18px 18px 28px;
  }

  .schedulesPage .scheduleStats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedulesPage .scheduleToolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedulesPage .scheduleToolbar .ticketSearch {
    grid-column: 1 / -1;
  }

  .schedulesPage .scheduleToolbar input[type="datetime-local"] {
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .schedulesPage {
    padding: 14px 12px 24px;
  }

  .schedulesPage .modulePageHeader {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    padding: 18px;
  }

  .schedulesPage .modulePrimaryAction {
    width: 100%;
  }

  .schedulesPage .scheduleStats {
    gap: 10px;
  }

  .schedulesPage .scheduleStats article {
    min-height: 88px;
    padding: 14px;
  }

  .schedulesPage .scheduleStats .statIcon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .schedulesPage .scheduleStats strong {
    font-size: 24px;
  }

  .schedulesPage .scheduleToolbar {
    grid-template-columns: 1fr;
  }

  .schedulesPage .scheduleToolbar .ticketSearch {
    grid-column: auto;
  }

  .schedulesPage .scheduleCard {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
  }

  .schedulesPage .scheduleDate {
    width: 58px;
    height: 60px;
  }

  .schedulesPage .scheduleCard .itemActions {
    grid-column: 2;
    justify-content: flex-start;
    min-width: 0;
  }

  .schedulesPage .operationDialog .operationForm {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .schedulesPage .operationDialog .dialogFullField {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .schedulesPage .pageTitleGroup {
    align-items: flex-start;
  }

  .schedulesPage .pageTitleIcon {
    width: 40px;
    height: 40px;
    padding: 9px;
  }

  .schedulesPage .scheduleStats {
    grid-template-columns: 1fr;
  }

  .schedulesPage .scheduleStats article {
    min-height: 80px;
  }

  .schedulesPage > .operationPanel > .panelTitle {
    align-items: flex-start;
    gap: 8px;
  }

  .schedulesPage .scheduleCards {
    padding: 10px;
  }

  .schedulesPage .scheduleCard {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .schedulesPage .scheduleDate {
    width: 100%;
    height: auto;
    min-height: 48px;
    grid-auto-flow: column;
    gap: 7px;
  }

  .schedulesPage .scheduleDate span {
    margin: 0;
  }

  .schedulesPage .scheduleCard .itemActions {
    grid-column: auto;
  }

  .schedulesPage .scheduleCard .itemActions button,
  .schedulesPage .scheduleCard .itemActions a {
    flex: 1 1 auto;
  }

  .schedulesPage .operationDialog {
    width: calc(100vw - 18px);
    max-height: calc(100vh - 18px);
    border-radius: 14px;
  }

  .schedulesPage .operationDialog .dialogHeader,
  .schedulesPage .operationDialog .dialogFooter {
    padding: 15px;
  }

  .schedulesPage .operationDialog .dialogFooter {
    display: grid;
    grid-template-columns: 1fr;
  }

  .schedulesPage .operationDialog .dialogPrimary,
  .schedulesPage .operationDialog .dialogSecondary {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .schedulesPage,
  .schedulesPage *,
  .schedulesPage *::before,
  .schedulesPage *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Ticket attachments */
.ticketAttachmentsSection .detailSectionTitle {
  align-items: flex-start;
  margin-bottom: 12px;
}

.ticketAttachmentsSection .detailSectionTitle h4 {
  margin-bottom: 3px;
}

.ticketAttachmentsSection .detailSectionTitle p {
  margin: 0;
  color: #8290a4;
  font-size: 0.56rem;
}

.attachmentCount {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  color: #466181;
  background: #f3f7fc;
  border: 1px solid #e0e8f2;
  border-radius: 999px;
  font-size: 0.53rem;
  font-weight: 700;
  white-space: nowrap;
}

.attachmentUploader {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  padding: 9px;
  background: linear-gradient(135deg, #f8fbff 0%, #f4f8fd 100%);
  border: 1px dashed #c9d7e9;
  border-radius: 9px;
}

.attachmentFilePicker {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  padding: 5px 8px;
  cursor: pointer;
  background: #fff;
  border: 1px solid #dce5ef;
  border-radius: 7px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.attachmentFilePicker:hover,
.attachmentFilePicker:focus-within {
  border-color: #8ab1f5;
  box-shadow: 0 0 0 3px rgba(39, 104, 222, 0.08);
}

.attachmentFilePicker input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.attachmentPickerIcon {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  margin-right: 9px;
  place-items: center;
  color: #2868dc;
  background: #edf4ff;
  border-radius: 7px;
}

.attachmentPickerIcon svg,
.attachmentFileIcon svg,
.attachmentAction svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.attachmentPickerText {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.attachmentPickerText strong {
  overflow: hidden;
  color: #31435e;
  font-size: 0.61rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachmentPickerText small {
  color: #8997aa;
  font-size: 0.52rem;
}

.attachmentUploadButton {
  min-width: 96px;
  min-height: 44px;
  padding: 0 16px;
  color: #fff;
  background: linear-gradient(135deg, #2c72e8, #225dcb);
  border: 0;
  border-radius: 7px;
  box-shadow: 0 4px 12px rgba(31, 94, 205, 0.18);
  font-size: 0.59rem;
  font-weight: 750;
}

.attachmentUploadButton:hover:not(:disabled) {
  background: linear-gradient(135deg, #2568db, #1d54ba);
}

.attachmentUploadButton:disabled {
  cursor: wait;
  opacity: 0.65;
}

.attachmentMessage {
  min-height: 0;
  margin: 0;
  color: #64748b;
  font-size: 0.56rem;
}

.attachmentMessage:not(:empty) {
  min-height: 18px;
  padding-top: 7px;
}

.attachmentMessage.success {
  color: #168354;
}

.attachmentMessage.error {
  color: #c23c48;
}

.attachmentList {
  display: grid;
  gap: 6px;
  margin-top: 9px;
}

.attachmentItem {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 9px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.attachmentItem:hover {
  border-color: #cbd9eb;
  box-shadow: 0 5px 15px rgba(36, 58, 91, 0.06);
  transform: translateY(-1px);
}

.attachmentFileIcon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #2e6fdc;
  background: #edf4ff;
  border-radius: 8px;
}

.attachmentFileIcon.pdf {
  color: #cf4351;
  background: #fff0f1;
}

.attachmentDetails {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.attachmentDetails > strong {
  overflow: hidden;
  color: #293b56;
  font-size: 0.61rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachmentMeta {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  color: #8290a3;
  font-size: 0.51rem;
  white-space: nowrap;
}

.attachmentMeta > span:not(:first-child)::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-right: 7px;
  vertical-align: middle;
  background: #bac5d3;
  border-radius: 50%;
}

.attachmentType {
  color: #4270ae;
  font-weight: 800;
}

.attachmentActions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.attachmentAction {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 9px;
  color: #426181;
  background: #f7f9fc;
  border: 1px solid #dde5ef;
  border-radius: 6px;
  font-size: 0.53rem;
  font-weight: 700;
}

.attachmentAction svg {
  width: 14px;
  height: 14px;
}

.attachmentAction.download:hover:not(:disabled) {
  color: #1e60cc;
  background: #eff5ff;
  border-color: #bcd0f2;
}

.attachmentAction.delete {
  color: #ad4550;
}

.attachmentAction.delete:hover:not(:disabled) {
  color: #bf303e;
  background: #fff3f4;
  border-color: #edc4c8;
}

.attachmentAction:disabled {
  cursor: wait;
  opacity: 0.55;
}

.attachmentState {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 62px;
  padding: 12px;
  color: #75859a;
  background: #fafbfd;
  border: 1px solid #e7ecf3;
  border-radius: 8px;
  font-size: 0.57rem;
}

.attachmentStateIcon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #527198;
  background: #edf2f8;
  border-radius: 50%;
  font-size: 0.51rem;
  font-weight: 800;
}

.attachmentState.loading .attachmentStateIcon {
  animation: attachmentPulse 900ms ease-in-out infinite alternate;
}

.attachmentState.error {
  color: #b93d49;
  background: #fff8f8;
  border-color: #f1d5d8;
}

@keyframes attachmentPulse {
  to {
    color: #fff;
    background: #2c6edb;
    transform: scale(1.08);
  }
}

@media (max-width: 620px) {
  .attachmentUploader {
    grid-template-columns: minmax(0, 1fr);
  }

  .attachmentUploadButton {
    width: 100%;
  }

  .attachmentItem {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .attachmentActions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .attachmentMeta {
    flex-wrap: wrap;
    white-space: normal;
  }
}

@media (max-width: 430px) {
  .attachmentAction span {
    display: none;
  }

  .attachmentAction {
    width: 32px;
    padding: 0;
    justify-content: center;
  }
}

/* Intervention worksheet and client approval */
.interventionSheetDialog,
.portalInterventionDialog {
  width: min(1180px, calc(100vw - 28px));
  max-width: none;
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #f4f7fb;
  box-shadow: 0 26px 80px rgba(14, 36, 70, 0.28);
}

.interventionSheetDialog::backdrop,
.portalInterventionDialog::backdrop {
  background: rgba(8, 23, 46, 0.64);
  backdrop-filter: blur(5px);
}

.interventionSheetDialog > form,
.portalInterventionDialog > form {
  display: flex;
  max-height: calc(100vh - 28px);
  flex-direction: column;
}

.interventionSheetHeader {
  flex: 0 0 auto;
  padding: 18px 22px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 10%, rgba(88, 160, 255, 0.23), transparent 28%),
    linear-gradient(120deg, #0b2549, #123e76 62%, #175aa9);
  border: 0;
}

.interventionSheetHeader h3,
.interventionSheetHeader p {
  color: inherit;
}

.interventionSheetHeader p {
  color: #c8dbf4;
}

.interventionSheetHeader .dialogIcon {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.interventionSheetHeader .dialogClose {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.sheetEyebrow {
  display: block;
  margin-bottom: 3px;
  color: #79b7ff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sheetHeaderActions,
.sheetHeaderActions > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sheetStatus {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 0 10px;
  color: #53657d;
  background: #eef2f7;
  border: 1px solid #dae2ed;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.interventionSheetHeader .sheetStatus.neutral {
  color: #deebfb;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.sheetStatus.accepted {
  color: #087547;
  background: #e7f8ef;
  border-color: #bce8d0;
}

.sheetStatus.disputed {
  color: #b53242;
  background: #fff0f2;
  border-color: #f2c7ce;
}

.interventionSheetContent,
.portalInterventionDetail {
  min-height: 0;
  padding: 16px 20px 24px;
  overflow-y: auto;
}

.interventionSheetContent.isLoading {
  opacity: 0.45;
  pointer-events: none;
}

.sheetLoading {
  padding: 12px 20px;
  color: #2d5e9e;
  background: #eaf3ff;
  border-bottom: 1px solid #d4e5f9;
  font-size: 11px;
  font-weight: 700;
}

.sheetSection {
  margin-bottom: 12px;
  padding: 17px;
  background: #fff;
  border: 1px solid #e1e8f1;
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(31, 55, 87, 0.045);
}

.sheetSectionHeading {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.sheetSectionHeading > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.sheetSectionHeading > div > span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #2565cf;
  background: #eaf2ff;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 850;
}

.sheetSectionHeading h4 {
  margin: 0;
  color: #172d4d;
  font-size: 12px;
}

.sheetSectionHeading small {
  color: #8a97a9;
  font-size: 9px;
}

.sheetFormGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sheetFormGrid label,
.sheetMetricGrid label,
.portalFeedbackField {
  display: grid;
  gap: 6px;
  color: #40526c;
  font-size: 10px;
  font-weight: 750;
}

.sheetFormGrid input,
.sheetFormGrid textarea,
.sheetMetricGrid input,
.portalFeedbackField textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 11px;
  color: #223650;
  background: #fbfcfe;
  border: 1px solid #dce4ee;
  border-radius: 8px;
  outline: 0;
  font: inherit;
  font-weight: 500;
  resize: vertical;
}

.sheetFormGrid input:focus,
.sheetFormGrid textarea:focus,
.sheetMetricGrid input:focus,
.portalFeedbackField textarea:focus {
  background: #fff;
  border-color: #6da0ec;
  box-shadow: 0 0 0 3px rgba(42, 106, 219, 0.08);
}

.sheetFull {
  grid-column: 1 / -1;
}

.sheetMetricGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metricInput {
  position: relative;
}

.metricInput input {
  padding-right: 54px;
}

.metricInput small {
  position: absolute;
  top: 50%;
  right: 11px;
  color: #8090a5;
  font-size: 8px;
  transform: translateY(-50%);
}

.metricTotal {
  padding: 9px;
  background: #eef5ff;
  border-radius: 9px;
}

.sheetInlineButton {
  min-height: 31px;
  padding: 0 11px;
  color: #2362c7;
  background: #eef5ff;
  border: 1px solid #cfe0f8;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 800;
}

.sheetChecklist {
  display: grid;
  gap: 7px;
}

.checklistRow {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #f8fafc;
  border: 1px solid #e4eaf2;
  border-radius: 9px;
}

.checklistToggle {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  cursor: pointer;
}

.checklistToggle input {
  width: 16px;
  height: 16px;
  accent-color: #21915a;
}

.checklistInputs {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1.2fr);
  gap: 8px;
}

.checklistInputs input {
  min-width: 0;
  padding: 8px 9px;
  background: #fff;
  border: 1px solid #dce4ee;
  border-radius: 7px;
  outline: 0;
  font-size: 10px;
}

.checklistRemove {
  width: 30px;
  height: 30px;
  color: #a94a55;
  background: #fff;
  border: 1px solid #ecd8da;
  border-radius: 7px;
  font-size: 17px;
}

.signatureWorkspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 12px;
}

.signatureCanvasWrap {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    repeating-linear-gradient(0deg, #edf2f7 0, #edf2f7 1px, transparent 1px, transparent 30px);
  border: 1px dashed #b9c8da;
  border-radius: 10px;
  touch-action: none;
}

.signatureCanvasWrap canvas {
  display: block;
  width: 100%;
  height: 180px;
  cursor: crosshair;
  touch-action: none;
}

.signatureCanvasWrap > span {
  position: absolute;
  right: 11px;
  bottom: 8px;
  color: #a1adbd;
  font-size: 8px;
  pointer-events: none;
}

.signatureActions {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}

.signatureActions button {
  min-height: 38px;
}

.sheetMessage {
  min-height: 18px;
  margin: 4px 0 0;
  color: #b33b48;
  font-size: 10px;
  font-weight: 650;
}

.sheetStickyFooter {
  position: sticky;
  bottom: 0;
  z-index: 3;
  justify-content: space-between;
  box-shadow: 0 -8px 24px rgba(25, 46, 76, 0.06);
}

.sheetStickyFooter > div:last-child {
  display: flex;
  gap: 8px;
}

.sheetFooterMeta {
  max-width: 54%;
  color: #66768c;
  font-size: 9px;
}

.portalInterventionsPanel {
  margin-top: 16px;
}

.panelSummary {
  color: #7d8ba0;
  font-size: 10px;
  font-weight: 700;
}

.portalInterventionCards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 14px 16px;
}

.portalInterventionCard {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid #e2e9f2;
  border-radius: 11px;
}

.portalInterventionCardIcon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #2768d4;
  background: #eaf2ff;
  border-radius: 10px;
}

.portalInterventionCardIcon svg {
  width: 20px;
  height: 20px;
}

.portalInterventionCardMain {
  min-width: 0;
}

.portalInterventionCard h4 {
  margin: 0 0 3px;
  color: #1c304e;
  font-size: 12px;
}

.portalInterventionCard p,
.portalInterventionCard small {
  display: block;
  overflow: hidden;
  margin: 0;
  color: #738197;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portalInterventionEmpty {
  display: grid;
  min-height: 100px;
  grid-column: 1 / -1;
  place-content: center;
  gap: 5px;
  padding: 20px;
  color: #7c8ba0;
  text-align: center;
}

.portalInterventionEmpty strong {
  color: #31435d;
  font-size: 12px;
}

.portalInterventionEmpty.error strong,
.portalInterventionEmpty.error span {
  color: #b33d49;
}

.portalInterventionDialog {
  width: min(980px, calc(100vw - 28px));
}

.portalInterventionDetail {
  display: grid;
  gap: 12px;
  padding-bottom: 8px;
}

.portalDetailGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.portalDetailBlock {
  padding: 12px;
  background: #fff;
  border: 1px solid #e2e9f2;
  border-radius: 9px;
}

.portalDetailBlock:first-child {
  grid-column: 1 / -1;
}

.portalDetailBlock span {
  color: #718097;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portalDetailBlock p {
  margin: 6px 0 0;
  color: #2b3e59;
  font-size: 10px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.portalMetricStrip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.portalMetricStrip > div {
  padding: 11px;
  background: #eaf3ff;
  border-radius: 9px;
}

.portalMetricStrip small,
.portalMetricStrip strong {
  display: block;
}

.portalMetricStrip small {
  color: #6680a1;
  font-size: 8px;
}

.portalMetricStrip strong {
  margin-top: 4px;
  color: #1d4e91;
  font-size: 12px;
}

.portalChecklist,
.portalAttachments,
.portalDecisionSection {
  padding: 14px;
  background: #fff;
  border: 1px solid #e2e9f2;
  border-radius: 10px;
}

.portalChecklist h4,
.portalAttachments h4 {
  margin: 0 0 10px;
  color: #1e3454;
  font-size: 11px;
}

.portalChecklist > div {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 0;
  border-top: 1px solid #edf1f6;
}

.portalChecklist > div.completed .portalCheckmark {
  color: #fff;
  background: #22945d;
}

.portalCheckmark {
  display: grid;
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  place-items: center;
  color: #75869b;
  background: #edf1f6;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 900;
}

.portalChecklist strong,
.portalChecklist small {
  display: block;
}

.portalChecklist strong {
  color: #2b3c55;
  font-size: 10px;
}

.portalChecklist small {
  margin-top: 3px;
  color: #8290a3;
  font-size: 8px;
}

.portalDecisionSection {
  margin: 4px 20px 16px;
}

.portalDecisionSection.isLocked .portalSignatureWorkspace {
  display: none;
}

.portalFeedbackField {
  margin-bottom: 11px;
}

.dangerOutline {
  min-height: 38px;
  padding: 0 14px;
  color: #b43746;
  background: #fff;
  border: 1px solid #e9bdc3;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
}

.dangerOutline:hover:not(:disabled) {
  background: #fff3f4;
}

.dangerOutline:disabled {
  opacity: 0.5;
}

@media (max-width: 760px) {
  .interventionSheetDialog,
  .portalInterventionDialog {
    width: 100%;
    max-width: 100%;
    margin: 0;
    max-height: 100vh;
    border-radius: 0;
  }

  .interventionSheetDialog > form,
  .portalInterventionDialog > form {
    max-height: 100vh;
  }

  .interventionSheetHeader {
    padding: 14px;
  }

  .interventionSheetHeader .sheetStatus {
    display: none;
  }

  .interventionSheetContent,
  .portalInterventionDetail {
    padding: 10px;
  }

  .sheetSection {
    padding: 13px;
  }

  .sheetFormGrid,
  .sheetMetricGrid,
  .portalDetailGrid,
  .portalInterventionCards {
    grid-template-columns: 1fr;
  }

  .sheetFull,
  .portalDetailBlock:first-child {
    grid-column: auto;
  }

  .checklistInputs,
  .signatureWorkspace {
    grid-template-columns: 1fr;
  }

  .signatureActions {
    flex-direction: row;
  }

  .signatureActions button {
    flex: 1;
  }

  .portalMetricStrip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portalInterventionCard {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .portalInterventionCard > button {
    grid-column: 2;
    justify-self: start;
  }

  .portalDecisionSection {
    margin: 0 10px 10px;
  }

  .sheetStickyFooter {
    align-items: stretch;
    flex-direction: column;
  }

  .sheetFooterMeta {
    display: none;
  }

  .sheetStickyFooter > button,
  .sheetStickyFooter > div:last-child,
  .sheetStickyFooter > div:last-child button {
    width: 100%;
  }
}

/* ==========================================================================
   FINAL PAGE POLISH
   Dashboard, Interventions, Reports, Contracts, Inventory, Invoices,
   Notifications, Users and Client Portal
   ========================================================================== */

:is(
  .dashboardPage,
  .interventionsPage,
  .reportsPage,
  .contractsPage,
  #inventory.businessPage,
  #invoices.businessPage,
  .notificationsPage,
  .usersPage,
  .portalPage
) {
  --page-accent: #1f6ad3;
  --page-accent-dark: #164f9f;
  --page-accent-soft: #eaf3ff;
  --page-accent-border: #cfe0f7;
  --page-ink: #172b49;
  --page-muted: #697a91;
  --page-line: #dfe7f0;
  --page-surface: #ffffff;
  --page-canvas: #f5f8fc;
  --page-shadow: 0 14px 40px rgba(25, 48, 82, 0.07);
  position: relative;
  width: 100%;
  min-width: 0;
  padding: clamp(18px, 2vw, 30px);
  color: var(--page-ink);
  background:
    radial-gradient(circle at 98% 0%, color-mix(in srgb, var(--page-accent) 8%, transparent), transparent 28rem),
    linear-gradient(180deg, #f9fbfe 0, var(--page-canvas) 180px);
  border-radius: 18px;
}

.dashboardPage {
  --page-accent: #126b68;
  --page-accent-dark: #0b4d4b;
  --page-accent-soft: #e6f5f3;
  --page-accent-border: #bfe3df;
}

.interventionsPage {
  --page-accent: #d26424;
  --page-accent-dark: #a94713;
  --page-accent-soft: #fff1e7;
  --page-accent-border: #f2d2bc;
}

.reportsPage {
  --page-accent: #2461a8;
  --page-accent-dark: #174579;
  --page-accent-soft: #e9f2fc;
  --page-accent-border: #c8dcf3;
}

.contractsPage {
  --page-accent: #198358;
  --page-accent-dark: #0d6040;
  --page-accent-soft: #e8f7f0;
  --page-accent-border: #c4e8d7;
}

#inventory.businessPage {
  --page-accent: #b66a12;
  --page-accent-dark: #864909;
  --page-accent-soft: #fff4df;
  --page-accent-border: #efd7aa;
}

#invoices.businessPage {
  --page-accent: #087692;
  --page-accent-dark: #045469;
  --page-accent-soft: #e5f6fa;
  --page-accent-border: #bde2ea;
}

.notificationsPage {
  --page-accent: #c24945;
  --page-accent-dark: #94312f;
  --page-accent-soft: #fff0ef;
  --page-accent-border: #efcac8;
}

.usersPage {
  --page-accent: #355ca8;
  --page-accent-dark: #26447d;
  --page-accent-soft: #edf2fc;
  --page-accent-border: #cedaf1;
}

.portalPage {
  --page-accent: #087f72;
  --page-accent-dark: #075d55;
  --page-accent-soft: #e4f7f3;
  --page-accent-border: #bce6df;
}

:is(
  .dashboardPage,
  .interventionsPage,
  .reportsPage,
  .contractsPage,
  #inventory.businessPage,
  #invoices.businessPage,
  .notificationsPage,
  .usersPage,
  .portalPage
) :is(button, input, select, textarea, a):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--page-accent) 24%, transparent);
  outline-offset: 2px;
}

:is(
  .interventionsPage,
  .reportsPage,
  .contractsPage,
  .notificationsPage,
  .usersPage
) .modulePageHeader,
:is(#inventory.businessPage, #invoices.businessPage) .businessPageHeader {
  position: relative;
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
  padding: 22px 24px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 84% 10%, rgba(255, 255, 255, 0.19), transparent 24%),
    linear-gradient(125deg, var(--page-accent-dark), var(--page-accent) 70%, color-mix(in srgb, var(--page-accent) 72%, #ffffff));
  border: 0;
  border-radius: 16px;
  box-shadow: 0 16px 34px color-mix(in srgb, var(--page-accent) 18%, transparent);
}

:is(
  .interventionsPage,
  .reportsPage,
  .contractsPage,
  .notificationsPage,
  .usersPage
) .modulePageHeader::after,
:is(#inventory.businessPage, #invoices.businessPage) .businessPageHeader::after {
  position: absolute;
  right: -30px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 24px rgba(255, 255, 255, 0.05),
    0 0 0 52px rgba(255, 255, 255, 0.035);
  pointer-events: none;
}

:is(
  .interventionsPage,
  .reportsPage,
  .contractsPage,
  .notificationsPage,
  .usersPage
) .modulePageHeader .pageTitleGroup,
:is(#inventory.businessPage, #invoices.businessPage) .businessPageHeader .pageTitleGroup {
  position: relative;
  z-index: 1;
}

:is(
  .interventionsPage,
  .reportsPage,
  .contractsPage,
  .notificationsPage,
  .usersPage,
  #inventory.businessPage,
  #invoices.businessPage
) :is(.modulePageHeader, .businessPageHeader) .pageTitleIcon {
  width: 46px;
  height: 46px;
  padding: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

:is(
  .interventionsPage,
  .reportsPage,
  .contractsPage,
  .notificationsPage,
  .usersPage,
  #inventory.businessPage,
  #invoices.businessPage
) :is(.modulePageHeader, .businessPageHeader) h2 {
  margin: 0 0 4px;
  color: #fff;
  font-size: clamp(20px, 2vw, 27px);
  letter-spacing: -0.035em;
}

:is(
  .interventionsPage,
  .reportsPage,
  .contractsPage,
  .notificationsPage,
  .usersPage,
  #inventory.businessPage,
  #invoices.businessPage
) :is(.modulePageHeader, .businessPageHeader) p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
}

:is(
  .interventionsPage,
  .reportsPage,
  .contractsPage,
  .notificationsPage,
  .usersPage,
  #inventory.businessPage,
  #invoices.businessPage
) :is(.modulePrimaryAction, .moduleSecondaryAction) {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  color: var(--page-accent-dark);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(15, 35, 63, 0.14);
  font-size: 10px;
  font-weight: 850;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

:is(
  .interventionsPage,
  .reportsPage,
  .contractsPage,
  .notificationsPage,
  .usersPage,
  #inventory.businessPage,
  #invoices.businessPage
) :is(.modulePrimaryAction, .moduleSecondaryAction):hover:not(:disabled) {
  background: #f9fcff;
  box-shadow: 0 11px 28px rgba(15, 35, 63, 0.2);
  transform: translateY(-1px);
}

:is(#inventory.businessPage, #invoices.businessPage) .businessHeaderActions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
}

/* Shared KPI language */

:is(
  .interventionsPage .interventionStats,
  .reportsPage .reportStats,
  .contractsPage .contractStats,
  .notificationsPage .notificationStats,
  .usersPage .userStats,
  .portalPage .portalStats,
  #inventory.businessPage .businessKpis,
  #invoices.businessPage .businessKpis
) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

:is(
  .interventionsPage .interventionStats,
  .reportsPage .reportStats,
  .contractsPage .contractStats,
  .notificationsPage .notificationStats,
  .usersPage .userStats,
  .portalPage .portalStats
) > article,
:is(#inventory.businessPage, #invoices.businessPage) .businessKpis > article {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 96px;
  align-items: center;
  gap: 13px;
  padding: 17px;
  overflow: hidden;
  background: var(--page-surface);
  border: 1px solid var(--page-line);
  border-radius: 14px;
  box-shadow: 0 8px 26px rgba(30, 53, 84, 0.055);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

:is(
  .interventionsPage .interventionStats,
  .reportsPage .reportStats,
  .contractsPage .contractStats,
  .notificationsPage .notificationStats,
  .usersPage .userStats,
  .portalPage .portalStats
) > article::after,
:is(#inventory.businessPage, #invoices.businessPage) .businessKpis > article::after {
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: 66px;
  height: 66px;
  content: "";
  background: var(--page-accent-soft);
  border-radius: 50%;
  opacity: 0.72;
}

:is(
  .interventionsPage .interventionStats,
  .reportsPage .reportStats,
  .contractsPage .contractStats,
  .notificationsPage .notificationStats,
  .usersPage .userStats,
  .portalPage .portalStats
) > article:hover,
:is(#inventory.businessPage, #invoices.businessPage) .businessKpis > article:hover {
  border-color: var(--page-accent-border);
  box-shadow: var(--page-shadow);
  transform: translateY(-2px);
}

:is(
  .interventionsPage,
  .reportsPage,
  .contractsPage,
  .notificationsPage,
  .usersPage
) .statIcon,
:is(#inventory.businessPage, #invoices.businessPage) .businessKpiIcon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  place-items: center;
  color: var(--page-accent);
  background: var(--page-accent-soft);
  border: 1px solid var(--page-accent-border);
  border-radius: 11px;
}

:is(
  .interventionsPage .interventionStats,
  .reportsPage .reportStats,
  .contractsPage .contractStats,
  .notificationsPage .notificationStats,
  .usersPage .userStats,
  .portalPage .portalStats,
  #inventory.businessPage .businessKpis,
  #invoices.businessPage .businessKpis
) article small {
  display: block;
  color: var(--page-muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

:is(
  .interventionsPage .interventionStats,
  .reportsPage .reportStats,
  .contractsPage .contractStats,
  .notificationsPage .notificationStats,
  .usersPage .userStats,
  .portalPage .portalStats,
  #inventory.businessPage .businessKpis,
  #invoices.businessPage .businessKpis
) article strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 6px;
  color: var(--page-ink);
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1;
  letter-spacing: -0.04em;
}

/* Shared workspace, toolbars and fields */

:is(
  .interventionsPage,
  .reportsPage,
  .contractsPage,
  .notificationsPage,
  .usersPage
) .operationPanel,
:is(#inventory.businessPage, #invoices.businessPage) .businessPanel,
.portalPage :is(.operationPanel, .portalCommentsPanel, .portalReportsPanel, .portalInterventionsPanel) {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--page-line);
  border-radius: 15px;
  box-shadow: var(--page-shadow);
}

:is(
  .interventionsPage,
  .reportsPage,
  .contractsPage,
  .notificationsPage,
  .usersPage
) .panelTitle,
.portalPage .panelTitle {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: linear-gradient(180deg, #fff, #fbfcfe);
  border-bottom: 1px solid var(--page-line);
}

:is(
  .interventionsPage,
  .reportsPage,
  .contractsPage,
  .notificationsPage,
  .usersPage,
  .portalPage
) .panelTitle > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

:is(
  .interventionsPage,
  .reportsPage,
  .contractsPage,
  .notificationsPage,
  .usersPage,
  .portalPage
) .panelTitle svg {
  width: 17px;
  height: 17px;
  color: var(--page-accent);
}

:is(
  .interventionsPage,
  .reportsPage,
  .contractsPage,
  .notificationsPage,
  .usersPage,
  .portalPage
) .panelTitle h3 {
  margin: 0;
  color: var(--page-ink);
  font-size: 13px;
  letter-spacing: -0.015em;
}

:is(
  .interventionsPage,
  .reportsPage,
  .contractsPage,
  .notificationsPage,
  .usersPage,
  .portalPage
) .panelSummary {
  color: var(--page-muted);
  font-size: 9px;
  font-weight: 700;
}

:is(
  .interventionsPage .operationToolbar,
  .reportsPage .operationToolbar,
  .contractsPage .operationToolbar,
  .notificationsPage .operationToolbar,
  .usersPage .operationToolbar,
  .portalPage .operationToolbar,
  #inventory.businessPage .businessToolbar,
  #invoices.businessPage .businessToolbar
) {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 16px;
  background: #f8fafc;
  border-bottom: 1px solid var(--page-line);
}

:is(
  .interventionsPage,
  .reportsPage,
  .contractsPage,
  .notificationsPage,
  .usersPage,
  .portalPage
) .ticketSearch,
:is(#inventory.businessPage, #invoices.businessPage) .businessSearch {
  position: relative;
  min-width: 220px;
  flex: 1 1 320px;
}

:is(
  .interventionsPage,
  .reportsPage,
  .contractsPage,
  .notificationsPage,
  .usersPage,
  .portalPage
) :is(.ticketSearch input, .operationToolbar select, .operationToolbar input),
:is(#inventory.businessPage, #invoices.businessPage) :is(.businessSearch input, .businessToolbar select, .businessToolbar input) {
  width: 100%;
  min-height: 39px;
  padding: 0 11px;
  color: #263b57;
  background: #fff;
  border: 1px solid #d8e1ec;
  border-radius: 9px;
  outline: 0;
  font: inherit;
  font-size: 10px;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

:is(
  .interventionsPage,
  .reportsPage,
  .contractsPage,
  .notificationsPage,
  .usersPage,
  .portalPage
) :is(.ticketSearch input, .operationToolbar select, .operationToolbar input):focus,
:is(#inventory.businessPage, #invoices.businessPage) :is(.businessSearch input, .businessToolbar select, .businessToolbar input):focus {
  background: #fff;
  border-color: var(--page-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--page-accent) 10%, transparent);
}

:is(
  .interventionsPage,
  .reportsPage,
  .contractsPage,
  .notificationsPage,
  .usersPage,
  .portalPage,
  #inventory.businessPage,
  #invoices.businessPage
) .filterButton {
  display: inline-flex;
  min-height: 39px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  color: var(--page-accent-dark);
  background: var(--page-accent-soft);
  border: 1px solid var(--page-accent-border);
  border-radius: 9px;
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
  transition: background 150ms ease, transform 150ms ease;
}

:is(
  .interventionsPage,
  .reportsPage,
  .contractsPage,
  .notificationsPage,
  .usersPage,
  .portalPage,
  #inventory.businessPage,
  #invoices.businessPage
) .filterButton:hover:not(:disabled) {
  background: color-mix(in srgb, var(--page-accent-soft) 75%, var(--page-accent-border));
  transform: translateY(-1px);
}

/* Dashboard */

.dashboardPage .dashboardHeader {
  position: relative;
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 24px 26px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 75% 20%, rgba(69, 202, 182, 0.25), transparent 25%),
    linear-gradient(125deg, #0b343c, #0d635f 58%, #168c7f);
  border-radius: 17px;
  box-shadow: 0 18px 42px rgba(8, 77, 73, 0.2);
}

.dashboardPage .dashboardHeader::after {
  position: absolute;
  top: -100px;
  right: -72px;
  width: 280px;
  height: 280px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 36px rgba(255, 255, 255, 0.035);
}

.dashboardPage .dashboardHeader .pageTitleGroup,
.dashboardPage .dashboardHeaderMeta {
  position: relative;
  z-index: 1;
}

.dashboardPage .dashboardHeader .pageTitleIcon {
  width: 49px;
  height: 49px;
  padding: 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
}

.dashboardPage .dashboardHeader h2 {
  margin: 0 0 4px;
  color: #fff;
  font-size: clamp(23px, 2.2vw, 30px);
  letter-spacing: -0.04em;
}

.dashboardPage .dashboardHeader p {
  margin: 0;
  color: rgba(255, 255, 255, 0.73);
  font-size: 11px;
}

.dashboardPage .dashboardHeaderMeta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboardPage #dashboardDate {
  padding: 8px 11px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  font-size: 9px;
  font-weight: 750;
}

.dashboardPage .dashboardHeaderMeta button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  color: #0c5d57;
  background: #fff;
  border: 0;
  border-radius: 9px;
  box-shadow: 0 8px 22px rgba(3, 32, 36, 0.18);
  font-size: 10px;
  font-weight: 850;
}

.dashboardPage .dashboardKpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.dashboardPage .dashboardKpi {
  position: relative;
  min-height: 112px;
  padding: 17px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe8ef;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(19, 54, 68, 0.055);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.dashboardPage .dashboardKpi:hover {
  border-color: #b8dcd8;
  box-shadow: 0 15px 34px rgba(12, 83, 79, 0.1);
  transform: translateY(-2px);
}

.dashboardPage .dashboardKpiIcon {
  color: var(--page-accent);
  background: var(--page-accent-soft);
  border: 1px solid var(--page-accent-border);
  border-radius: 11px;
}

.dashboardPage .dashboardKpi.maintenance {
  border-color: #ead8aa;
  background:
    radial-gradient(circle at 100% 0%, rgba(218, 146, 23, 0.12), transparent 48%),
    #fff;
}

.dashboardPage .dashboardKpi.maintenance .dashboardKpiIcon {
  color: #9a5b08;
  background: #fff5d9;
  border-color: #efd69d;
}

.dashboardPage .dashboardKpi.expirations {
  border-color: #e6c7ca;
  background:
    radial-gradient(circle at 100% 0%, rgba(177, 57, 69, 0.1), transparent 48%),
    #fff;
}

.dashboardPage .dashboardKpi.expirations .dashboardKpiIcon {
  color: #a13440;
  background: #fff0f1;
  border-color: #edc7cb;
}

.dashboardPage .dashboardKpi.expirations .dashboardKpiBody span {
  white-space: normal;
}

.dashboardPage .dashboardPanel {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid #dde7ef;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(19, 51, 67, 0.06);
}

.dashboardPage .dashboardPanelTitle {
  display: flex;
  min-height: 61px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 17px;
  border-bottom: 1px solid #e5ebf1;
}

.dashboardPage .dashboardPanelTitle > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboardPage .dashboardPanelTitle svg {
  width: 18px;
  height: 18px;
  color: var(--page-accent);
}

.dashboardPage .dashboardPanelTitle h3 {
  margin: 0 0 3px;
  color: var(--page-ink);
  font-size: 12px;
}

.dashboardPage .dashboardPanelTitle p {
  margin: 0;
  color: var(--page-muted);
  font-size: 9px;
}

.dashboardPage .dashboardPanelTitle button {
  padding: 7px 10px;
  color: var(--page-accent-dark);
  background: var(--page-accent-soft);
  border: 1px solid var(--page-accent-border);
  border-radius: 8px;
  font-size: 9px;
  font-weight: 800;
}

.dashboardPage .operationsSnapshotPanel {
  margin-bottom: 14px;
}

.dashboardPage .operationsMetrics {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 9px;
  padding: 15px;
}

.dashboardPage .operationsMetric {
  display: grid;
  min-width: 0;
  min-height: 118px;
  align-content: start;
  gap: 10px;
  padding: 12px;
  text-align: left;
  background: #f8fafc;
  border: 1px solid #e2e9ef;
  border-radius: 11px;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.dashboardPage .operationsMetric:hover {
  background: #fff;
  border-color: var(--page-accent-border);
  transform: translateY(-2px);
}

.dashboardPage .operationsMetricIcon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--page-accent);
  background: var(--page-accent-soft);
  border-radius: 8px;
}

.dashboardPage .operationsMetric small,
.dashboardPage .operationsMetric strong,
.dashboardPage .operationsMetric em {
  display: block;
}

.dashboardPage .operationsMetric small {
  color: #63758c;
  font-size: 8px;
  font-weight: 750;
  text-transform: uppercase;
}

.dashboardPage .operationsMetric strong {
  margin: 5px 0;
  color: #1a314d;
  font-size: 17px;
  letter-spacing: -0.035em;
}

.dashboardPage .operationsMetric em {
  overflow: hidden;
  color: #8795a7;
  font-size: 8px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboardPage .operationsMetric.critical .operationsMetricIcon {
  color: #b93443;
  background: #fff0f2;
}

.dashboardPage .operationsMetric.waiting .operationsMetricIcon,
.dashboardPage .operationsMetric.stock .operationsMetricIcon {
  color: #a75a0a;
  background: #fff4df;
}

.dashboardPage .operationsMetric.finance .operationsMetricIcon {
  color: #08748e;
  background: #e5f6fa;
}

.dashboardPage .dashboardMainGrid,
.dashboardPage .dashboardLowerGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.8fr);
  gap: 14px;
  margin-bottom: 14px;
}

.dashboardPage .dashboardMaintenancePanel {
  margin-bottom: 14px;
}

.dashboardPage .dashboardExpirationsPanel {
  margin-bottom: 14px;
}

.dashboardPage .dashboardExpirationHeaderActions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.dashboardPage .dashboardExpirationSummary {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 0 9px;
  color: #526a7b;
  background: #f2f6f8;
  border: 1px solid #dce5ea;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.dashboardPage .dashboardExpirationSummary.expired,
.dashboardPage .dashboardExpirationSummary.error {
  color: #a53842;
  background: #fff0f1;
  border-color: #edc7cb;
}

.dashboardPage .dashboardExpirationSummary.ready {
  color: #286d55;
  background: #eaf7f1;
  border-color: #c9e8da;
}

.dashboardPage .dashboardExpirationList {
  display: grid;
  min-height: 116px;
}

.dashboardPage .dashboardExpirationItem {
  display: grid;
  grid-template-columns: minmax(100px, 0.55fr) minmax(160px, 1fr) minmax(175px, 1.2fr) minmax(145px, 0.8fr) 18px;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #233c50;
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #edf1f4;
  transition: background 150ms ease, box-shadow 150ms ease;
}

.dashboardPage .dashboardExpirationItem:last-child {
  border-bottom: 0;
}

.dashboardPage .dashboardExpirationItem:hover,
.dashboardPage .dashboardExpirationItem:focus-visible {
  z-index: 1;
  background: #fff9f9;
  box-shadow: inset 3px 0 #b43d49;
}

.dashboardPage .dashboardExpirationType {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  color: #526c7e;
}

.dashboardPage .dashboardExpirationType svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  padding: 7px;
  box-sizing: content-box;
  color: #a23b46;
  background: #fff0f1;
  border-radius: 8px;
}

.dashboardPage .dashboardExpirationType strong {
  font-size: 8px;
  text-transform: uppercase;
}

.dashboardPage :is(.dashboardExpirationIdentity, .dashboardExpirationTitle, .dashboardExpirationDate) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.dashboardPage .dashboardExpirationItem :is(strong, small, time) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboardPage .dashboardExpirationIdentity strong,
.dashboardPage .dashboardExpirationTitle strong {
  color: #263f53;
  font-size: 10px;
  font-weight: 800;
}

.dashboardPage .dashboardExpirationItem small {
  color: #81909e;
  font-size: 8px;
}

.dashboardPage .dashboardExpirationTitle > small,
.dashboardPage .dashboardExpirationDate > small {
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboardPage .dashboardExpirationDate {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.dashboardPage .dashboardExpirationDate > small {
  grid-column: 1 / -1;
}

.dashboardPage .dashboardExpirationDate time {
  font-size: 9px;
  font-weight: 800;
}

.dashboardPage .dashboardExpirationDate i {
  justify-self: start;
  padding: 3px 6px;
  color: #25684f;
  background: #e8f6ef;
  border-radius: 999px;
  font-size: 7px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.dashboardPage .dashboardExpirationItem.soon .dashboardExpirationDate i {
  color: #95600c;
  background: #fff3d7;
}

.dashboardPage .dashboardExpirationItem.expired .dashboardExpirationDate i {
  color: #ad343d;
  background: #ffedef;
}

.dashboardPage .dashboardExpirationArrow {
  color: #8ba0ae;
  font-size: 20px;
  transition: transform 150ms ease;
}

.dashboardPage .dashboardExpirationItem:hover .dashboardExpirationArrow {
  color: #a43742;
  transform: translateX(2px);
}

.dashboardPage .dashboardExpirationState {
  display: grid;
  min-height: 116px;
  place-content: center;
  justify-items: center;
  gap: 5px;
  padding: 20px;
  color: #758797;
  text-align: center;
}

.dashboardPage .dashboardExpirationState > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  margin-bottom: 2px;
  background: #fff0f1;
  border-radius: 50%;
}

.dashboardPage .dashboardExpirationState > span::before {
  content: "\2022";
  color: #aa3c47;
  font-size: 22px;
  line-height: 1;
}

.dashboardPage .dashboardExpirationState.loading > span {
  background: transparent;
  border: 2px solid #ecdadd;
  border-top-color: #ad3c47;
  animation: maintenanceDashboardSpin 750ms linear infinite;
}

.dashboardPage .dashboardExpirationState.loading > span::before {
  content: "";
}

.dashboardPage .dashboardExpirationState.error > span::before {
  content: "!";
  font-size: 13px;
  font-weight: 900;
}

.dashboardPage .dashboardExpirationState strong {
  color: #344d60;
  font-size: 10px;
}

.dashboardPage .dashboardExpirationState small {
  font-size: 8px;
}

.dashboardPage .dashboardMaintenanceHeaderActions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.dashboardPage .maintenanceOverviewBadge {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 0 9px;
  color: #476174;
  background: #f3f6f8;
  border: 1px solid #dce5eb;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.dashboardPage .maintenanceOverviewBadge.due,
.dashboardPage .maintenanceOverviewBadge.error {
  color: #a63737;
  background: #fff0f0;
  border-color: #f1c5c5;
}

.dashboardPage .maintenanceOverviewBadge.ready {
  color: #286d55;
  background: #eaf7f1;
  border-color: #c9e8da;
}

.dashboardPage .dashboardMaintenanceList {
  display: grid;
  min-height: 116px;
}

.dashboardPage .dashboardMaintenanceItem {
  display: grid;
  grid-template-columns: 36px minmax(145px, 1.1fr) minmax(155px, 1.2fr) minmax(125px, 0.8fr) minmax(110px, 0.7fr) 18px;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #233c50;
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #edf1f4;
  transition: background 150ms ease, box-shadow 150ms ease;
}

.dashboardPage .dashboardMaintenanceItem:last-child {
  border-bottom: 0;
}

.dashboardPage .dashboardMaintenanceItem:hover,
.dashboardPage .dashboardMaintenanceItem:focus-visible {
  z-index: 1;
  background: #f6fbfa;
  box-shadow: inset 3px 0 #178778;
}

.dashboardPage .dashboardMaintenanceAssetIcon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #16786f;
  background: #e7f5f2;
  border-radius: 9px;
}

.dashboardPage .dashboardMaintenanceAssetIcon svg {
  width: 16px;
  height: 16px;
}

.dashboardPage :is(.dashboardMaintenanceIdentity, .dashboardMaintenancePlan, .dashboardMaintenanceDue, .dashboardMaintenanceTicket) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.dashboardPage .dashboardMaintenanceItem :is(strong, small, time) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboardPage .dashboardMaintenanceIdentity strong,
.dashboardPage .dashboardMaintenancePlan strong,
.dashboardPage .dashboardMaintenanceTicket strong {
  color: #22394d;
  font-size: 10px;
  font-weight: 800;
}

.dashboardPage .dashboardMaintenanceItem small {
  color: #8190a0;
  font-size: 8px;
}

.dashboardPage .dashboardMaintenancePlan > small,
.dashboardPage .dashboardMaintenanceDue > small,
.dashboardPage .dashboardMaintenanceTicket > small {
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboardPage .dashboardMaintenanceDue {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.dashboardPage .dashboardMaintenanceDue > small {
  grid-column: 1 / -1;
}

.dashboardPage .dashboardMaintenanceDue time {
  font-size: 9px;
  font-weight: 800;
}

.dashboardPage .dashboardMaintenanceDue i {
  justify-self: start;
  padding: 3px 6px;
  color: #4d687a;
  background: #eef3f6;
  border-radius: 999px;
  font-size: 7px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.dashboardPage .dashboardMaintenanceItem.due .dashboardMaintenanceDue i {
  color: #ad3434;
  background: #ffeded;
}

.dashboardPage .dashboardMaintenanceItem.soon .dashboardMaintenanceDue i {
  color: #95600c;
  background: #fff3d7;
}

.dashboardPage .dashboardMaintenanceItem.planned .dashboardMaintenanceDue i {
  color: #25684f;
  background: #e8f6ef;
}

.dashboardPage .dashboardMaintenanceArrow {
  color: #8ba0ae;
  font-size: 20px;
  transition: transform 150ms ease;
}

.dashboardPage .dashboardMaintenanceItem:hover .dashboardMaintenanceArrow {
  color: #126b68;
  transform: translateX(2px);
}

.dashboardPage .dashboardMaintenanceState {
  display: grid;
  min-height: 116px;
  place-content: center;
  justify-items: center;
  gap: 5px;
  padding: 20px;
  color: #758797;
  text-align: center;
}

.dashboardPage .dashboardMaintenanceState > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  margin-bottom: 2px;
  background: #edf5f4;
  border-radius: 50%;
}

.dashboardPage .dashboardMaintenanceState > span::before {
  content: "\2022";
  color: #258077;
  font-size: 22px;
  line-height: 1;
}

.dashboardPage .dashboardMaintenanceState.loading > span {
  background: transparent;
  border: 2px solid #d8e8e6;
  border-top-color: #178778;
  animation: maintenanceDashboardSpin 750ms linear infinite;
}

.dashboardPage .dashboardMaintenanceState.loading > span::before {
  content: "";
}

.dashboardPage .dashboardMaintenanceState.error > span {
  background: #fff0f0;
}

.dashboardPage .dashboardMaintenanceState.error > span::before {
  content: "!";
  color: #b33b3b;
  font-size: 13px;
  font-weight: 900;
}

.dashboardPage .dashboardMaintenanceState strong {
  color: #344d60;
  font-size: 10px;
}

.dashboardPage .dashboardMaintenanceState small {
  font-size: 8px;
}

@keyframes maintenanceDashboardSpin {
  to {
    transform: rotate(360deg);
  }
}

.dashboardPage .ticketHealthContent {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(220px, 1.2fr);
  align-items: center;
  gap: 18px;
  padding: 18px;
}

.dashboardPage .ticketRing {
  box-shadow: inset 0 0 0 1px rgba(19, 102, 96, 0.08);
}

.dashboardPage .riskStrip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #e6ecf1;
  border-top: 1px solid #e6ecf1;
}

.dashboardPage .riskStrip article {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 15px;
  background: #fbfcfd;
}

.dashboardPage .quickActionsGrid {
  display: grid;
  gap: 8px;
  padding: 13px;
}

.dashboardPage .quickActionsGrid button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  text-align: left;
  background: #f9fbfc;
  border: 1px solid #e3e9ef;
  border-radius: 10px;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.dashboardPage .quickActionsGrid button:hover {
  background: #fff;
  border-color: var(--page-accent-border);
  transform: translateX(2px);
}

.dashboardPage .dashboardFeed,
.dashboardPage .technicianPerformance {
  min-height: 128px;
  padding: 10px 14px 15px;
}

.dashboardPage :is(.dashboardFeedItem, .technicianTrack) {
  border-bottom: 1px solid #edf1f4;
}

.dashboardPage .technicianPanel {
  margin-bottom: 2px;
}

.dashboardPage .dashboardEmpty {
  display: grid;
  min-height: 130px;
  place-content: center;
  color: #7d8c9e;
  text-align: center;
}

/* Interventions */

.interventionsPage .interventionCards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  padding: 14px;
}

.interventionsPage .interventionCards > article {
  position: relative;
  padding: 16px;
  background: #fff;
  border: 1px solid #e2e8ef;
  border-left: 3px solid var(--page-accent);
  border-radius: 11px;
  box-shadow: 0 6px 20px rgba(41, 49, 61, 0.045);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.interventionsPage .interventionCards > article:hover {
  border-color: var(--page-accent-border);
  box-shadow: 0 12px 28px rgba(94, 58, 27, 0.09);
  transform: translateY(-2px);
}

.interventionsPage :is(.statusBadge, .sheetStatus) {
  border-radius: 999px;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.interventionsPage :is(.operationForm, .sheetFormGrid) :is(input, select, textarea),
.interventionsPage .sheetMetricGrid input {
  border-color: #dde4eb;
}

.interventionsPage :is(.operationForm, .sheetFormGrid) :is(input, select, textarea):focus,
.interventionsPage .sheetMetricGrid input:focus {
  border-color: var(--page-accent);
  box-shadow: 0 0 0 3px rgba(210, 100, 36, 0.1);
}

.interventionsPage .interventionSheetHeader {
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 193, 135, 0.2), transparent 28%),
    linear-gradient(120deg, #64300f, #b85118 60%, #db742f);
}

.interventionsPage .sheetSectionHeading > div > span,
.interventionsPage .interventionSheetContent .sheetInlineButton {
  color: var(--page-accent-dark);
  background: var(--page-accent-soft);
  border-color: var(--page-accent-border);
}

/* Reports */

.reportsPage .reportToolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(130px, 0.65fr)) auto;
  gap: 9px;
  padding: 13px 16px;
  background: #f8fafc;
  border-bottom: 1px solid var(--page-line);
}

.reportsPage .reportToolbar :is(input, select) {
  width: 100%;
  min-height: 39px;
  padding: 0 10px;
  color: #263b57;
  background: #fff;
  border: 1px solid #d8e1ec;
  border-radius: 9px;
  outline: 0;
  font-size: 10px;
}

.reportsPage .reportToolbar :is(input, select):focus {
  border-color: var(--page-accent);
  box-shadow: 0 0 0 3px rgba(36, 97, 168, 0.1);
}

.reportsPage .reportCards,
.portalPage .reportCards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  padding: 14px;
}

.reportsPage .reportCard {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  min-height: 130px;
  padding: 15px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe7ef;
  border-radius: 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.reportsPage .reportCard::after {
  position: absolute;
  right: -22px;
  bottom: -28px;
  width: 76px;
  height: 76px;
  content: "";
  background: var(--page-accent-soft);
  border-radius: 50%;
  opacity: 0.65;
}

.reportsPage .reportCard:hover {
  border-color: var(--page-accent-border);
  box-shadow: 0 13px 30px rgba(25, 66, 112, 0.1);
  transform: translateY(-2px);
}

.reportsPage .reportCardIcon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--page-accent);
  background: var(--page-accent-soft);
  border: 1px solid var(--page-accent-border);
  border-radius: 11px;
}

.reportsPage .reportCardMain {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.reportsPage .reportCardMeta {
  color: var(--page-muted);
  font-size: 9px;
}

.reportsPage .reportCard .download {
  color: var(--page-accent-dark);
  background: var(--page-accent-soft);
  border: 1px solid var(--page-accent-border);
  border-radius: 8px;
}

/* Contracts */

.contractsPage .contractCards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  padding: 14px;
}

.contractsPage .contractCard {
  position: relative;
  display: flex;
  min-height: 238px;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe8e3;
  border-radius: 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.contractsPage .contractCardTop {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
}

.contractsPage .contractCard:hover {
  border-color: var(--page-accent-border);
  box-shadow: 0 14px 30px rgba(15, 91, 61, 0.1);
  transform: translateY(-2px);
}

.contractsPage .contractCardIcon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--page-accent);
  background: var(--page-accent-soft);
  border: 1px solid var(--page-accent-border);
  border-radius: 10px;
}

.contractsPage .contractCardMain {
  min-width: 0;
}

.contractsPage .contractCardMain > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.contractsPage .contractCardMain h4 { margin: 7px 0 3px; color: #23384f; font-size: 13px; }
.contractsPage .contractCardMain p { margin: 0; overflow: hidden; color: var(--page-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.contractsPage .contractHealth { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border: 1px solid transparent; border-radius: 999px; font-size: 8px; font-weight: 850; }
.contractsPage .contractHealth::before { width: 6px; height: 6px; background: currentColor; border-radius: 50%; content: ""; }
.contractsPage .contractHealth.healthy { color: #087443; background: #eaf8f0; border-color: #bfe8cf; }
.contractsPage .contractHealth.warning { color: #9a5a03; background: #fff6df; border-color: #f4d998; }
.contractsPage .contractHealth.critical { color: #b42332; background: #fff0f1; border-color: #f2c5ca; }
.contractsPage .contractHealth.inactive { color: #64748b; background: #f1f5f9; border-color: #dbe3eb; }
.contractsPage .contractCardMetrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.contractsPage .contractCardMetrics > div { min-width: 0; padding: 9px; background: #f7faf8; border: 1px solid #e5ece8; border-radius: 9px; }
.contractsPage .contractCardMetrics :is(small, span) { display: block; overflow: hidden; color: #77879a; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.contractsPage .contractCardMetrics strong { display: block; margin: 3px 0 2px; overflow: hidden; color: #20394f; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.contractsPage .contractCardActions { display: flex; gap: 6px; margin-top: auto; padding-top: 11px; border-top: 1px solid #e8eeea; }
.contractsPage .contractCardActions button { min-height: 32px; padding: 0 10px; border-radius: 8px; font-size: 8px; font-weight: 800; }
.contractsPage .contractCardActions .primary { color: #fff; background: var(--page-accent); border-color: var(--page-accent); }

.paginationControls[data-server-pagination] {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 4px 14px 14px;
  padding: 12px 14px 0;
  border-top: 1px solid #e5ebf3;
}

.paginationControls[data-server-pagination][hidden] {
  display: none;
}

.paginationControls[data-server-pagination] span {
  min-width: 112px;
  color: #5f6f85;
  font-size: 11px;
  font-weight: 750;
  text-align: center;
}

.paginationControls[data-server-pagination] button {
  min-height: 34px;
  padding: 0 14px;
  color: #25549a;
  background: #f5f8fd;
  border: 1px solid #cfdaea;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 800;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.paginationControls[data-server-pagination] button:hover:not(:disabled) {
  color: #fff;
  background: #2867d8;
  border-color: #2867d8;
}

.paginationControls[data-server-pagination] button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.paginationControls[data-server-pagination] button:focus-visible {
  outline: 3px solid rgba(40, 103, 216, 0.2);
  outline-offset: 2px;
}

.contractsPage .contractDetailsDialog { width: min(920px, calc(100vw - 32px)); max-width: 920px; }
.contractsPage .compactContractDialog { width: min(620px, calc(100vw - 32px)); max-width: 620px; }
.contractsPage .contractDetailsContent { min-height: 340px; max-height: min(68vh, 720px); padding: 18px; overflow: auto; }
.contractsPage .contractOverview { padding: 17px; background: linear-gradient(135deg, #f2faf6, #fff); border: 1px solid #dcebe3; border-radius: 13px; }
.contractsPage .contractOverviewHeading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.contractsPage .contractEyebrow { color: var(--page-accent); font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.contractsPage .contractOverviewHeading h4 { margin: 5px 0 3px; color: #18394a; font-size: 17px; }
.contractsPage .contractOverviewHeading p,
.contractsPage .entitlementsSection > div p { margin: 0; color: #75869a; font-size: 9px; }
.contractsPage .contractOverviewMetrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.contractsPage .contractOverviewMetrics > div { padding: 10px; background: rgba(255,255,255,.88); border: 1px solid #e0eae5; border-radius: 9px; }
.contractsPage .contractOverviewMetrics small,
.contractsPage .contractOverviewMetrics strong { display: block; }
.contractsPage .contractOverviewMetrics small { color: #75869a; font-size: 8px; }
.contractsPage .contractOverviewMetrics strong { margin-top: 4px; color: #264459; font-size: 9px; }
.contractsPage .entitlementsSection { margin-top: 18px; }
.contractsPage .entitlementsSection > div:first-child { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.contractsPage .entitlementsSection h4 { margin: 0 0 3px; color: #253e55; font-size: 13px; }
.contractsPage .entitlementsList { display: grid; gap: 9px; }
.contractsPage .entitlementCard { padding: 13px; background: #fff; border: 1px solid #e0e7ed; border-radius: 11px; }
.contractsPage .entitlementCard.inactive { opacity: .62; }
.contractsPage .entitlementCard > div:first-child,
.contractsPage .entitlementUsage > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.contractsPage .entitlementCode { color: var(--page-accent); font-size: 7px; font-weight: 900; letter-spacing: .07em; }
.contractsPage .entitlementCard h5 { margin: 3px 0 0; color: #2c4258; font-size: 11px; }
.contractsPage .entitlementActions { display: flex; gap: 5px; }
.contractsPage .entitlementActions button { min-height: 28px; padding: 0 8px; border: 1px solid #dce5ec; border-radius: 7px; font-size: 7px; font-weight: 800; }
.contractsPage .entitlementUsage { margin-top: 11px; }
.contractsPage .entitlementUsage span,
.contractsPage .entitlementUsage small { color: #687c90; font-size: 8px; }
.contractsPage .entitlementProgress { height: 7px; margin: 7px 0 6px; overflow: hidden; background: #edf2f0; border-radius: 999px; }
.contractsPage .entitlementProgress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--page-accent), #43b581); border-radius: inherit; }
.contractsPage .contractAlerts { margin-top: 12px; padding: 12px 14px; color: #8a5504; background: #fff8e9; border: 1px solid #f1dda9; border-radius: 10px; }
.contractsPage .contractAlerts p { margin: 5px 0 0; font-size: 8px; }
.contractsPage .contractViewState { display: grid; min-height: 180px; place-content: center; justify-items: center; gap: 8px; padding: 24px; color: #738397; text-align: center; }
.contractsPage .contractViewState strong { color: #395167; font-size: 11px; }
.contractsPage .contractViewState p { max-width: 420px; margin: 0; font-size: 9px; }
.contractsPage .contractViewState.error strong { color: #b42332; }
.contractsPage .contractSpinner { width: 26px; height: 26px; border: 3px solid #dcebe3; border-top-color: var(--page-accent); border-radius: 50%; animation: contract-spin 750ms linear infinite; }
.contractsPage .contractDetailsFooter { justify-content: flex-end; }

@keyframes contract-spin { to { transform: rotate(360deg); } }

.contractsPage .statusBadge {
  border: 1px solid var(--page-accent-border);
  border-radius: 999px;
}

.contractsPage .operationDialog .dialogHeader {
  color: #fff;
  background: linear-gradient(120deg, var(--page-accent-dark), var(--page-accent));
}

.contractsPage .toggleField input {
  accent-color: var(--page-accent);
}

/* Inventory and invoices */

:is(#inventory.businessPage, #invoices.businessPage) .businessTableWrap {
  position: relative;
  width: 100%;
  max-height: min(62vh, 680px);
  overflow: auto;
  scrollbar-color: var(--page-accent-border) transparent;
}

:is(#inventory.businessPage, #invoices.businessPage) .businessTable {
  width: 100%;
  min-width: 850px;
  border-collapse: separate;
  border-spacing: 0;
}

:is(#inventory.businessPage, #invoices.businessPage) .businessTable thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 12px 13px;
  color: #5c6d83;
  background: #f6f9fc;
  border-bottom: 1px solid #dfe7ef;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.065em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

:is(#inventory.businessPage, #invoices.businessPage) .businessTable tbody td {
  padding: 12px 13px;
  color: #34475f;
  background: #fff;
  border-bottom: 1px solid #edf1f5;
  font-size: 10px;
  vertical-align: middle;
}

:is(#inventory.businessPage, #invoices.businessPage) .businessTable tbody tr {
  transition: background 130ms ease, box-shadow 130ms ease;
}

:is(#inventory.businessPage, #invoices.businessPage) .businessTable tbody tr:hover td {
  background: color-mix(in srgb, var(--page-accent-soft) 38%, #ffffff);
}

:is(#inventory.businessPage, #invoices.businessPage) .businessEntity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

:is(#inventory.businessPage, #invoices.businessPage) .businessEntityIcon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  color: var(--page-accent);
  background: var(--page-accent-soft);
  border-radius: 8px;
}

:is(#inventory.businessPage, #invoices.businessPage) :is(.businessEntity strong, .businessEntity small) {
  display: block;
}

:is(#inventory.businessPage, #invoices.businessPage) .businessEntity strong {
  color: #223852;
  font-size: 10px;
}

:is(#inventory.businessPage, #invoices.businessPage) .businessEntity small {
  margin-top: 3px;
  color: #8290a2;
  font-size: 8px;
}

:is(#inventory.businessPage, #invoices.businessPage) .businessBadge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  color: var(--page-accent-dark);
  background: var(--page-accent-soft);
  border: 1px solid var(--page-accent-border);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 850;
  white-space: nowrap;
}

#inventory.businessPage .businessStockLow {
  color: #ac3f3b;
  background: #fff0ef;
  border-color: #efcac8;
}

:is(#inventory.businessPage, #invoices.businessPage) .businessActions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

:is(#inventory.businessPage, #invoices.businessPage) .businessActions button {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: #52677f;
  background: #fff;
  border: 1px solid #dce4ed;
  border-radius: 8px;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
}

:is(#inventory.businessPage, #invoices.businessPage) .businessActions button:hover {
  color: var(--page-accent-dark);
  background: var(--page-accent-soft);
  border-color: var(--page-accent-border);
}

:is(#inventory.businessPage, #invoices.businessPage) .businessTableFooter {
  display: flex;
  min-height: 51px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 15px;
  color: var(--page-muted);
  background: #fbfcfd;
  border-top: 1px solid var(--page-line);
  font-size: 9px;
}

:is(#inventory.businessPage, #invoices.businessPage) .businessTableState {
  padding: 42px 20px !important;
  color: #74859a !important;
  text-align: center;
  background:
    radial-gradient(circle at center, var(--page-accent-soft), transparent 180px),
    #fff !important;
}

#inventory.businessPage .businessHint {
  margin: 12px 0 0;
  padding: 10px 12px;
  color: #74511f;
  background: #fff8e9;
  border: 1px solid #eedcb7;
  border-radius: 9px;
  font-size: 9px;
}

#invoices.businessPage .accountingNotice {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
  padding: 12px 14px;
  color: #245061;
  background: linear-gradient(90deg, #eaf8fb, #f7fcfd);
  border: 1px solid #c8e6ec;
  border-radius: 11px;
}

#invoices.businessPage .accountingNoticeIcon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--page-accent);
  background: #fff;
  border-radius: 9px;
}

#invoices.businessPage .accountingNoticeStatus {
  padding: 5px 8px;
  color: var(--page-accent-dark);
  background: #fff;
  border: 1px solid var(--page-accent-border);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 850;
}

#invoices.businessPage .invoiceStatusSummary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

#invoices.businessPage .invoiceLinesSection {
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e0e8ef;
  border-radius: 11px;
}

#invoices.businessPage .invoiceLine {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) repeat(5, minmax(75px, 0.55fr)) 32px;
  align-items: end;
  gap: 8px;
  padding: 10px;
  background: #fff;
  border: 1px solid #e1e8ef;
  border-radius: 9px;
}

#invoices.businessPage .invoiceTotals {
  margin-left: auto;
  padding: 12px;
  background: var(--page-accent-soft);
  border: 1px solid var(--page-accent-border);
  border-radius: 10px;
}

#invoices.businessPage .invoiceGrandTotal {
  color: var(--page-accent-dark);
  font-size: 16px;
}

/* Notifications */

.notificationsPage .notificationCards {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.notificationsPage .notificationCard {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  background: #fff;
  border: 1px solid #e2e7ed;
  border-radius: 11px;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.notificationsPage .notificationCard:hover {
  border-color: var(--page-accent-border);
  box-shadow: 0 10px 26px rgba(104, 44, 42, 0.08);
  transform: translateX(2px);
}

.notificationsPage .notificationCardIcon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--page-accent);
  background: var(--page-accent-soft);
  border: 1px solid var(--page-accent-border);
  border-radius: 10px;
}

.notificationsPage .notificationCardMain {
  min-width: 0;
}

.notificationsPage .notificationCardMain :is(h4, p, small) {
  overflow: hidden;
  text-overflow: ellipsis;
}

.notificationsPage .notificationCardMain h4 {
  margin: 0 0 4px;
  color: #263a54;
  font-size: 11px;
}

.notificationsPage .notificationCardMain p {
  margin: 0;
  color: #708096;
  font-size: 9px;
}

.notificationsPage .notificationCard .statusBadge {
  border-radius: 999px;
}

.notificationsPage .notificationCard.error {
  background: #fff9f9;
  border-color: #efd1cf;
}

.notificationsPage .secondaryFilter {
  min-width: 145px;
}

/* Users */

.usersPage .userCards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  padding: 14px;
}

.usersPage .userCard {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 126px;
  padding: 15px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe6ef;
  border-radius: 12px;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.usersPage .userCard::after {
  position: absolute;
  top: -28px;
  right: -28px;
  width: 76px;
  height: 76px;
  content: "";
  background: var(--page-accent-soft);
  border-radius: 50%;
  opacity: 0.7;
}

.usersPage .userCard:hover {
  border-color: var(--page-accent-border);
  box-shadow: 0 13px 30px rgba(42, 66, 112, 0.1);
  transform: translateY(-2px);
}

.usersPage .userAvatar {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--page-accent), var(--page-accent-dark));
  border: 3px solid var(--page-accent-soft);
  border-radius: 13px;
  font-size: 12px;
  font-weight: 900;
}

.usersPage .userCardMain {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.usersPage .rolePill {
  display: inline-flex;
  margin-top: 7px;
  padding: 5px 8px;
  color: var(--page-accent-dark);
  background: var(--page-accent-soft);
  border: 1px solid var(--page-accent-border);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 850;
}

.usersPage .operationDialog .dialogHeader {
  color: #fff;
  background: linear-gradient(120deg, var(--page-accent-dark), var(--page-accent));
}

.techniciansPage .technicianHeaderActions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.techniciansPage .technicianHeaderActions .modulePrimaryAction,
.techniciansPage .technicianHeaderActions .moduleSecondaryAction {
  min-height: 38px;
  padding-top: 0;
  padding-bottom: 0;
}

.techniciansPage .technicianStats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.techniciansPage .technicianCards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  padding: 14px;
}

.techniciansPage .technicianCard {
  position: relative;
  min-height: 138px;
  padding: 15px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe6ef;
  border-radius: 12px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.techniciansPage .technicianCard::after {
  position: absolute;
  top: -36px;
  right: -28px;
  width: 78px;
  height: 78px;
  content: "";
  background: color-mix(in srgb, var(--page-accent) 8%, transparent);
  border-radius: 50%;
  opacity: 0.75;
}

.techniciansPage .technicianCard header {
  position: relative;
  z-index: 1;
}

.techniciansPage .technicianCard header h4 {
  margin: 0 0 3px;
  color: #1b2e4d;
  font-size: 14px;
}

.techniciansPage .technicianCard header small {
  display: block;
  margin: 0;
  color: #7788a0;
  font-size: 11px;
}

.techniciansPage .technicianBadges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.techniciansPage .technicianCard .chip {
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.techniciansPage .technicianCard .chip.success { color: #0f6e49; background: #e9f8ee; }
.techniciansPage .technicianCard .chip.danger { color: #a33d4a; background: #fde7eb; }
.techniciansPage .technicianCard .chip.warning { color: #8d5f1a; background: #fff0dc; }

.techniciansPage .technicianCardBody {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
  margin: 11px 0 0;
  color: #4d5e75;
  font-size: 12px;
}

.techniciansPage .technicianCardBody strong {
  color: #2a3f5f;
}

.techniciansPage .technicianCard footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.techniciansPage .technicianPagination {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
}

.techniciansPage .technicianPageLabel {
  min-width: 130px;
  text-align: center;
  color: #637183;
  font-size: 12px;
  font-weight: 700;
}

.techniciansPage .technicianEmpty {
  min-height: 190px;
  display: grid;
  place-content: center;
  text-align: center;
  border: 1px dashed #d2deef;
  border-radius: 12px;
  color: #74809a;
  background: #fbfdff;
  font-size: 13px;
}

.techniciansPage .operationDialog {
  width: min(1100px, calc(100vw - 32px));
  max-height: min(88vh, 860px);
  padding: 0;
  border: 1px solid #d8e2ee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(13, 35, 68, 0.22);
  overflow: auto;
}

.techniciansPage .operationDialog::backdrop {
  background: rgba(18, 33, 56, 0.56);
  backdrop-filter: blur(4px);
}

.techniciansPage .operationDialog .dialogHeader {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 18px 20px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(120deg, #08345a, #115ca4);
  backdrop-filter: blur(12px);
}

.techniciansPage .operationDialog .dialogHeader h3 {
  margin: 0 0 3px;
  color: #fff;
  font-size: 18px;
}

.techniciansPage .operationDialog .dialogHeader p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
}

.techniciansPage .operationDialog .dialogIcon {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
}

.techniciansPage .operationDialog .dialogClose {
  width: 34px;
  height: 34px;
}

.techniciansPage .operationDialog .dialogClose:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
}

.techniciansPage .operationDialog .operationForm,
.techniciansPage .technicianForm {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  padding: 20px;
}

.techniciansPage .operationDialog .operationForm label,
.techniciansPage .technicianDetailsSection .technicianDetailForm label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.techniciansPage .operationDialog .operationForm label > span,
.techniciansPage .technicianDetailsSection .technicianDetailForm label > span {
  color: #42536d;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.techniciansPage .operationDialog .operationForm .dialogFullField,
.techniciansPage .technicianForm .dialogFullField {
  grid-column: 1 / -1;
}

.techniciansPage .operationDialog input,
.techniciansPage .operationDialog select,
.techniciansPage .operationDialog textarea {
  width: 100%;
  min-height: 42px;
  margin: 0;
  border: 1px solid #d6e0ec;
  border-radius: 10px;
  color: #253852;
  background: #fbfcfe;
  box-shadow: none;
}

.techniciansPage .operationDialog textarea {
  min-height: 98px;
  padding: 10px 11px;
  resize: vertical;
}

.techniciansPage .operationDialog .dialogFooter {
  position: sticky;
  bottom: 0;
  z-index: 2;
  gap: 9px;
  padding: 15px 20px;
  border-top: 1px solid #d6e4f3;
  background: rgba(249, 251, 254, 0.98);
  backdrop-filter: blur(12px);
}

.techniciansPage .technicianDetailsBody {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  max-height: min(58vh, 620px);
  padding: 14px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #f5f8fd;
}

.techniciansPage .technicianDetailsSection {
  display: grid;
  gap: 9px;
  align-content: start;
  min-width: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid #e0e9f1;
  border-radius: 12px;
}

.techniciansPage .technicianDetailForm {
  display: grid;
  gap: 9px;
}

.techniciansPage .technicianMetaList {
  max-height: 190px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
  overflow-y: auto;
}

.techniciansPage .technicianScheduleItem,
.techniciansPage .technicianUnavailabilityItem {
  position: relative;
  min-height: 56px;
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 9px 11px;
  border: 1px dashed #d7e2ef;
  border-radius: 10px;
  background: #fff;
}

.techniciansPage .technicianScheduleItem small,
.techniciansPage .technicianUnavailabilityItem small {
  color: #7889a1;
  font-size: 10px;
}

.techniciansPage .technicianScheduleItem > button,
.techniciansPage .technicianUnavailabilityItem > button,
.techniciansPage .technicianMetaList .dangerOutline {
  min-width: 88px;
  padding-inline: 10px;
  min-height: 32px;
}

.technicianScheduleItem .dangerOutline,
.technicianUnavailabilityItem .dangerOutline {
  color: #b13c48;
  border-color: #e7c7cc;
  background: #fff8f8;
}

/* Client portal */

.portalPage .portalHero {
  position: relative;
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 16px;
  padding: 28px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 15%, rgba(133, 238, 213, 0.27), transparent 27%),
    linear-gradient(125deg, #073e42, #087267 58%, #0a9c86);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(5, 92, 82, 0.2);
}

.portalPage .portalHero::after {
  position: absolute;
  right: -52px;
  bottom: -112px;
  width: 270px;
  height: 270px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(255, 255, 255, 0.04),
    0 0 0 68px rgba(255, 255, 255, 0.025);
}

.portalPage .portalHero > * {
  position: relative;
  z-index: 1;
}

.portalPage .portalHeroIcon {
  display: grid;
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
}

.portalPage .portalEyebrow {
  display: block;
  margin-bottom: 7px;
  color: #91ead9;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.portalPage .portalHero h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: clamp(23px, 2.4vw, 32px);
  letter-spacing: -0.045em;
}

.portalPage .portalHero p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.73);
  font-size: 11px;
  line-height: 1.6;
}

.portalPage .portalHero .modulePrimaryAction {
  color: var(--page-accent-dark);
  background: #fff;
  border-color: rgba(255, 255, 255, 0.72);
}

.portalPage .portalStats > article {
  min-height: 88px;
}

.portalPage .portalGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 14px;
  margin-bottom: 14px;
}

.portalPage .portalTicketCards {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.portalPage .portalTicketCard {
  padding: 14px;
  background: #fff;
  border: 1px solid #e0e8ed;
  border-left: 3px solid var(--page-accent);
  border-radius: 10px;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.portalPage .portalTicketCard:hover {
  border-color: var(--page-accent-border);
  box-shadow: 0 10px 25px rgba(8, 92, 82, 0.09);
  transform: translateX(2px);
}

.portalPage .portalTicketTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.portalPage .portalTicketMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
  color: #718298;
  font-size: 8px;
}

.portalPage .portalCommentFilter,
.portalPage .portalReportToolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: #f8fafc;
  border-bottom: 1px solid var(--page-line);
}

.portalPage :is(.portalCommentFilter, .portalReportToolbar) :is(input, select) {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  color: #2d4159;
  background: #fff;
  border: 1px solid #d9e2ea;
  border-radius: 9px;
  outline: 0;
  font-size: 10px;
}

.portalPage :is(.portalCommentFilter, .portalReportToolbar) :is(input, select):focus {
  border-color: var(--page-accent);
  box-shadow: 0 0 0 3px rgba(8, 127, 114, 0.1);
}

.portalPage .portalCommentCards {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.portalPage .portalCommentCard {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  background: #f9fbfc;
  border: 1px solid #e2e9ee;
  border-radius: 10px;
}

.portalPage .commentAvatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--page-accent-dark);
  background: var(--page-accent-soft);
  border-radius: 9px;
  font-size: 9px;
  font-weight: 900;
}

.portalPage .portalInterventionCards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portalPage .portalInterventionCard {
  border-color: #dfe9e7;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.portalPage .portalInterventionCard:hover {
  border-color: var(--page-accent-border);
  box-shadow: 0 11px 27px rgba(8, 92, 82, 0.09);
  transform: translateY(-2px);
}

.portalPage .portalInterventionCardIcon,
.portalPage .portalMetricStrip > div {
  color: var(--page-accent);
  background: var(--page-accent-soft);
}

.portalPage .portalMetricStrip strong {
  color: var(--page-accent-dark);
}

.portalPage .portalInterventionDialog .interventionSheetHeader {
  background:
    radial-gradient(circle at 80% 10%, rgba(130, 238, 214, 0.2), transparent 28%),
    linear-gradient(120deg, #073e42, #087267 62%, #0a9c86);
}

/* Shared dialogs and states */

/* WS10 organization authority and onboarding control-plane */
.organizationState,
.operationalLockNotice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin: 0 0 14px;
  padding: 11px 15px;
  color: #43546b;
  background: linear-gradient(100deg, #eff5fc, #f8fbff);
  border: 1px solid #d5e2f0;
  border-radius: 12px;
  box-shadow: 0 7px 18px rgba(25, 62, 104, 0.06);
  font-size: 12px;
}

.organizationState strong,
.operationalLockNotice strong { color: #143f69; }
.organizationState span,
.operationalLockNotice span { color: #657990; }
.organizationState[data-state="forbidden"],
.organizationState[data-state="suspended"] { border-color: #f0c7c9; background: #fff5f5; }
.organizationState[data-state="forbidden"] strong,
.organizationState[data-state="suspended"] strong { color: #a3333d; }
.organizationState[data-state="switching"] { border-color: #d4def1; background: #f3f6fd; }
.operationalLockNotice { border-color: #f1dbac; background: linear-gradient(100deg, #fff8e9, #fffdf6); }
.operationalLockNotice strong { color: #89601b; }

.organizationControlPlane {
  margin-top: 14px;
  border-color: #d8e4f0;
  background:
    radial-gradient(circle at 97% 0%, rgba(55, 128, 204, 0.1), transparent 29%),
    #fff;
}

.organizationControlPlane .panelTitle { align-items: center; }
.onboardingStateBadge {
  padding: 6px 10px;
  color: #0c5e62;
  background: #e8f7f5;
  border: 1px solid #c5e9e5;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.controlPlaneLead { max-width: 820px; margin: 0; padding: 0 16px 14px; color: #63758b; font-size: 12px; line-height: 1.55; }
.controlPlaneForm,
.invitationForm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; padding: 0 16px 16px; }
.controlPlaneForm label,
.invitationForm label { display: grid; gap: 6px; color: #445872; font-size: 10px; font-weight: 800; }
.controlPlaneForm :is(input, select),
.invitationForm :is(input, select) { width: 100%; min-height: 40px; padding: 8px 10px; color: #203850; background: #fbfdff; border: 1px solid #d7e2ee; border-radius: 8px; outline: 0; font: inherit; }
.controlPlaneForm :is(input, select):focus,
.invitationForm :is(input, select):focus { border-color: #1b76bc; box-shadow: 0 0 0 3px rgba(27, 118, 188, 0.11); }
.controlPlaneActions { display: flex; padding: 0 16px 18px; }
.invitationHeading { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 15px 16px 11px; border-top: 1px solid #e6edf5; }
.invitationHeading h4 { margin: 0 0 3px; color: #1d3856; font-size: 13px; }
.invitationHeading p { margin: 0; color: #73849a; font-size: 11px; }
.invitationForm { grid-template-columns: minmax(220px, 1.6fr) minmax(150px, 0.8fr) minmax(120px, 0.45fr) auto; align-items: end; }
.invitationForm > button { min-height: 40px; white-space: nowrap; }
.invitationList { display: grid; gap: 7px; padding: 0 16px 16px; }
.invitationRow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 11px; background: #f8fbfe; border: 1px solid #e0e9f2; border-radius: 9px; }
.invitationRow strong,
.invitationRow small { display: block; }
.invitationRow strong { color: #253c58; font-size: 12px; }
.invitationRow small { margin-top: 3px; color: #74869b; font-size: 10px; text-transform: capitalize; }
.controlPlaneEmpty { margin: 0; padding: 12px; color: #73849a; background: #f8fbfe; border: 1px dashed #d9e4ef; border-radius: 9px; font-size: 11px; text-align: center; }
.onboarding-locked .view:not(#users) { position: relative; }
.onboarding-locked .view:not(#users)::after { position: absolute; inset: 0; z-index: 8; pointer-events: none; content: ""; background: rgba(246, 249, 253, 0.26); border-radius: inherit; }

@media (max-width: 900px) {
  .controlPlaneForm, .invitationForm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .organizationState, .operationalLockNotice { align-items: flex-start; flex-direction: column; }
  .controlPlaneForm, .invitationForm { grid-template-columns: 1fr; }
  .invitationForm > button { width: 100%; }
}

:is(
  .interventionsPage,
  .contractsPage,
  #inventory.businessPage,
  #invoices.businessPage,
  .usersPage,
  .techniciansPage,
  .portalPage
) .clientDialog {
  overflow: hidden;
  background: #f7f9fc;
  border: 1px solid #dce4ed;
  border-radius: 15px;
  box-shadow: 0 28px 80px rgba(18, 36, 61, 0.24);
}

:is(
  .interventionsPage,
  .contractsPage,
  #inventory.businessPage,
  #invoices.businessPage,
  .usersPage,
  .techniciansPage,
  .portalPage
) .clientDialog::backdrop {
  background: rgba(15, 27, 43, 0.58);
  backdrop-filter: blur(4px);
}

:is(
  .interventionsPage,
  .contractsPage,
  #inventory.businessPage,
  #invoices.businessPage,
  .usersPage,
  .techniciansPage
) .clientDialog .dialogHeader {
  padding: 17px 19px;
  border-bottom: 1px solid #dce4ed;
}

:is(
  .interventionsPage,
  .contractsPage,
  #inventory.businessPage,
  #invoices.businessPage,
  .usersPage,
  .techniciansPage
) :is(.operationForm, .businessFormGrid, .dialogFormGrid) {
  gap: 12px;
  padding: 17px 19px;
}

:is(
  .interventionsPage,
  .contractsPage,
  #inventory.businessPage,
  #invoices.businessPage,
  .usersPage,
  .techniciansPage
) :is(.operationForm, .businessFormGrid, .dialogFormGrid) label {
  color: #465970;
  font-size: 9px;
  font-weight: 800;
}

:is(
  .interventionsPage,
  .contractsPage,
  #inventory.businessPage,
  #invoices.businessPage,
  .usersPage,
  .techniciansPage
) :is(.operationForm, .businessFormGrid, .dialogFormGrid) :is(input, select, textarea) {
  width: 100%;
  min-height: 39px;
  padding: 9px 10px;
  color: #283d57;
  background: #fff;
  border: 1px solid #d9e2eb;
  border-radius: 8px;
  outline: 0;
  font: inherit;
  font-size: 10px;
}

:is(
  .interventionsPage,
  .contractsPage,
  #inventory.businessPage,
  #invoices.businessPage,
  .usersPage,
  .techniciansPage
) :is(.operationForm, .businessFormGrid, .dialogFormGrid) :is(input, select, textarea):focus {
  border-color: var(--page-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--page-accent) 10%, transparent);
}

:is(
  .interventionsPage,
  .contractsPage,
  #inventory.businessPage,
  #invoices.businessPage,
  .usersPage,
  .techniciansPage,
  .portalPage
) .dialogFooter {
  gap: 8px;
  padding: 13px 18px;
  background: #fff;
  border-top: 1px solid #dfe6ee;
}

:is(
  .interventionsPage,
  .contractsPage,
  #inventory.businessPage,
  #invoices.businessPage,
  .usersPage,
  .techniciansPage,
  .portalPage
) .dialogPrimary {
  color: #fff;
  background: var(--page-accent);
  border-color: var(--page-accent);
  box-shadow: 0 7px 18px color-mix(in srgb, var(--page-accent) 20%, transparent);
}

:is(
  .interventionsPage,
  .reportsPage,
  .contractsPage,
  #inventory.businessPage,
  #invoices.businessPage,
  .notificationsPage,
  .usersPage,
  .techniciansPage,
  .portalPage
) .msg {
  min-height: 19px;
  margin: 8px 14px 12px;
  color: #6d7d91;
  font-size: 9px;
  font-weight: 650;
}

:is(
  .interventionsPage,
  .reportsPage,
  .contractsPage,
  #inventory.businessPage,
  #invoices.businessPage,
  .notificationsPage,
  .usersPage,
  .portalPage
) :is(.empty, .portalEmptyText) {
  display: grid;
  min-height: 150px;
  place-content: center;
  gap: 7px;
  padding: 28px;
  color: #75869a;
  background:
    radial-gradient(circle at center, var(--page-accent-soft), transparent 190px),
    #fff;
  text-align: center;
}

:is(
  .interventionsPage,
  .reportsPage,
  .contractsPage,
  #inventory.businessPage,
  #invoices.businessPage,
  .notificationsPage,
  .usersPage,
  .techniciansPage,
  .portalPage
) [aria-busy="true"] {
  position: relative;
  min-height: 120px;
  opacity: 0.62;
  pointer-events: none;
}

/* Responsive layout */

@media (max-width: 1180px) {
  :is(
    .interventionsPage .interventionStats,
    .reportsPage .reportStats,
    .contractsPage .contractStats,
    .notificationsPage .notificationStats,
    .usersPage .userStats,
    .techniciansPage .technicianStats,
    .portalPage .portalStats,
    #inventory.businessPage .businessKpis,
    #invoices.businessPage .businessKpis,
    .dashboardPage .dashboardKpis
  ) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboardPage .operationsMetrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .reportsPage .reportToolbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reportsPage .reportToolbar .ticketSearch {
    grid-column: span 2;
  }

  :is(.reportsPage .reportCards, .contractsPage .contractCards, .usersPage .userCards, .techniciansPage .technicianCards) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portalPage .portalInterventionCards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #invoices.businessPage .invoiceLine {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .clientDialog {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }

  :is(
    .dashboardPage,
    .interventionsPage,
    .reportsPage,
    .contractsPage,
    #inventory.businessPage,
    #invoices.businessPage,
    .notificationsPage,
    .usersPage,
    .techniciansPage,
    .portalPage
  ) {
    padding: 16px;
    border-radius: 14px;
  }

  .dashboardPage .dashboardMainGrid,
  .dashboardPage .dashboardLowerGrid,
  .portalPage .portalGrid {
    grid-template-columns: 1fr;
  }

  .dashboardPage .operationsMetrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboardPage .dashboardPerformanceControls {
    grid-template-columns: 1fr;
  }

  .dashboardPage .ticketHealthContent {
    grid-template-columns: 1fr;
  }

  .dashboardPage .dashboardMaintenanceItem {
    grid-template-columns: 36px minmax(130px, 1fr) minmax(150px, 1.2fr) minmax(120px, 0.8fr) 18px;
  }

  .dashboardPage .dashboardExpirationItem {
    grid-template-columns: minmax(95px, 0.55fr) minmax(140px, 1fr) minmax(150px, 1.1fr) minmax(130px, 0.8fr) 18px;
  }

  .dashboardPage .dashboardMaintenanceTicket {
    display: none;
  }

  :is(
    .interventionsPage .operationToolbar,
    .reportsPage .operationToolbar,
    .contractsPage .operationToolbar,
    .notificationsPage .operationToolbar,
    .usersPage .operationToolbar,
    .techniciansPage .operationToolbar,
    .portalPage .operationToolbar,
    #inventory.businessPage .businessToolbar,
    #invoices.businessPage .businessToolbar
  ) {
    flex-wrap: wrap;
  }

  :is(
    .interventionsPage,
    .reportsPage,
    .contractsPage,
    .notificationsPage,
    .usersPage,
    .techniciansPage,
    .portalPage
  ) .ticketSearch,
  :is(#inventory.businessPage, #invoices.businessPage) .businessSearch {
    min-width: min(100%, 300px);
    flex-basis: 100%;
  }

  :is(.interventionsPage .interventionCards, .techniciansPage .technicianCards) {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  :is(
    .dashboardPage,
    .interventionsPage,
    .reportsPage,
    .contractsPage,
    #inventory.businessPage,
    #invoices.businessPage,
    .notificationsPage,
    .usersPage,
    .techniciansPage,
    .portalPage
  ) {
    padding: 10px;
    background: #f6f8fb;
    border-radius: 10px;
  }

  :is(
    .interventionsPage,
    .reportsPage,
    .contractsPage,
    .notificationsPage,
    .techniciansPage,
    .usersPage
  ) .modulePageHeader,
  :is(#inventory.businessPage, #invoices.businessPage) .businessPageHeader,
  .dashboardPage .dashboardHeader,
  .portalPage .portalHero {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
    border-radius: 13px;
  }

  :is(#inventory.businessPage, #invoices.businessPage) .businessHeaderActions,
  .dashboardPage .dashboardHeaderMeta {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  :is(
    .interventionsPage,
    .reportsPage,
    .contractsPage,
    .notificationsPage,
    .usersPage,
    .techniciansPage,
    #inventory.businessPage,
    #invoices.businessPage
  ) :is(.modulePrimaryAction, .moduleSecondaryAction),
  .dashboardPage .dashboardHeaderMeta button,
  .portalPage .portalHero .modulePrimaryAction {
    width: 100%;
  }

  .techniciansPage .technicianHeaderActions,
  .techniciansPage .technicianToolbar {
    width: 100%;
    align-items: stretch;
    flex-wrap: wrap;
  }

  .techniciansPage .technicianCards {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
  }

  .techniciansPage .technicianDetailsBody {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
    max-height: min(62vh, 620px);
  }

  :is(
    .interventionsPage .interventionStats,
    .reportsPage .reportStats,
    .contractsPage .contractStats,
    .notificationsPage .notificationStats,
    .usersPage .userStats,
    .techniciansPage .technicianStats,
    .portalPage .portalStats,
    #inventory.businessPage .businessKpis,
    #invoices.businessPage .businessKpis,
    .dashboardPage .dashboardKpis
  ) {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  :is(
    .interventionsPage .interventionStats,
    .reportsPage .reportStats,
    .contractsPage .contractStats,
    .notificationsPage .notificationStats,
    .usersPage .userStats,
    .techniciansPage .technicianStats,
    .portalPage .portalStats
  ) > article,
  :is(#inventory.businessPage, #invoices.businessPage) .businessKpis > article {
    min-height: 82px;
    padding: 13px;
  }

  .dashboardPage .operationsMetrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboardPage .operationsMetric {
    min-height: 108px;
  }

  .dashboardPage .dashboardPerformanceActions {
    width: 100%;
  }

  .dashboardPage .riskStrip {
    grid-template-columns: 1fr;
  }

  .dashboardPage .dashboardMaintenancePanel .dashboardPanelTitle,
  .dashboardPage .dashboardExpirationsPanel .dashboardPanelTitle,
  .dashboardPage .dashboardMaintenanceHeaderActions {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboardPage .dashboardMaintenanceHeaderActions {
    width: 100%;
  }

  .dashboardPage .dashboardExpirationHeaderActions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .dashboardPage .dashboardExpirationHeaderActions button {
    width: 100%;
  }

  .dashboardPage .dashboardExpirationSummary {
    justify-content: center;
  }

  .dashboardPage .dashboardMaintenanceHeaderActions button {
    width: 100%;
  }

  .dashboardPage .maintenanceOverviewBadge {
    justify-content: center;
  }

  .dashboardPage .dashboardMaintenanceItem {
    grid-template-columns: 34px minmax(0, 1fr) 16px;
    gap: 9px;
    padding: 12px;
  }

  .dashboardPage .dashboardMaintenancePlan,
  .dashboardPage .dashboardMaintenanceDue {
    grid-column: 2;
  }

  .dashboardPage .dashboardMaintenanceDue {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .dashboardPage .dashboardMaintenanceDue > small {
    width: 100%;
  }

  .dashboardPage .dashboardMaintenanceArrow {
    grid-column: 3;
    grid-row: 1 / span 3;
  }

  .dashboardPage .dashboardExpirationItem {
    grid-template-columns: minmax(88px, auto) minmax(0, 1fr) 16px;
    gap: 9px;
    padding: 12px;
  }

  .dashboardPage .dashboardExpirationTitle,
  .dashboardPage .dashboardExpirationDate {
    grid-column: 2;
  }

  .dashboardPage .dashboardExpirationDate {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .dashboardPage .dashboardExpirationDate > small {
    width: 100%;
  }

  .dashboardPage .dashboardExpirationArrow {
    grid-column: 3;
    grid-row: 1 / span 3;
  }

  :is(.reportsPage .reportCards, .contractsPage .contractCards, .usersPage .userCards),
  .portalPage .portalInterventionCards,
  .portalPage .reportCards {
    grid-template-columns: 1fr;
  }

  .contractsPage .contractCardMetrics { grid-template-columns: 1fr; }
  .contractsPage .contractOverviewHeading,
  .contractsPage .entitlementCard > div:first-child { align-items: stretch; flex-direction: column; }
  .contractsPage .contractOverviewMetrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contractsPage .contractDetailsContent { max-height: calc(100vh - 132px); padding: 12px; }
  .contractsPage .contractDetailsFooter { display: grid; grid-template-columns: 1fr 1fr; }
  .contractsPage .contractDetailsFooter button { width: 100%; }

  .reportsPage .reportToolbar {
    grid-template-columns: 1fr;
  }

  .reportsPage .reportToolbar .ticketSearch {
    grid-column: auto;
  }

  :is(
    .interventionsPage .operationToolbar,
    .reportsPage .operationToolbar,
    .contractsPage .operationToolbar,
    .notificationsPage .operationToolbar,
    .usersPage .operationToolbar,
    .portalPage .operationToolbar,
    #inventory.businessPage .businessToolbar,
    #invoices.businessPage .businessToolbar,
    .portalPage .portalCommentFilter,
    .portalPage .portalReportToolbar
  ) {
    align-items: stretch;
    flex-direction: column;
  }

  :is(
    .interventionsPage,
    .reportsPage,
    .contractsPage,
    .notificationsPage,
    .usersPage,
    .portalPage,
    #inventory.businessPage,
    #invoices.businessPage
  ) .filterButton {
    width: 100%;
  }

  .notificationsPage .notificationCard {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .notificationsPage .notificationCard > :last-child {
    grid-column: 2;
    justify-self: start;
  }

  #invoices.businessPage .accountingNotice {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  #invoices.businessPage .accountingNoticeStatus {
    grid-column: 2;
    justify-self: start;
  }

  #invoices.businessPage .invoiceLine {
    grid-template-columns: 1fr;
  }

  .portalPage .portalHeroIcon {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    border-radius: 14px;
  }

  .portalPage .portalTicketTop {
    align-items: flex-start;
    flex-direction: column;
  }

:is(
  .interventionsPage,
  .contractsPage,
  #inventory.businessPage,
  #invoices.businessPage,
  .usersPage,
  .techniciansPage,
  .portalPage
) .clientDialog {
    width: 100%;
    max-width: 100%;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
  }
}

@media (max-width: 420px) {
  .dashboardPage .operationsMetrics {
    grid-template-columns: 1fr;
  }

  .dashboardPage .operationsMetric {
    min-height: 94px;
  }

  .dashboardPage .quickActionsGrid button {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .dashboardPage .quickActionsGrid button > i {
    display: none;
  }

  .portalPage .portalMetricStrip {
    grid-template-columns: 1fr;
  }

  .techniciansPage .technicianStats,
  .techniciansPage .technicianCards {
    grid-template-columns: 1fr;
  }

  .techniciansPage .technicianCards {
    gap: 9px;
    padding: 10px;
  }

  .techniciansPage .technicianHeaderActions,
  .techniciansPage .technicianToolbar {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .techniciansPage .technicianHeaderActions .modulePrimaryAction,
  .techniciansPage .technicianHeaderActions .moduleSecondaryAction,
  .techniciansPage .technicianToolbar .modulePrimaryAction,
  .techniciansPage .technicianToolbar .moduleSecondaryAction {
    width: 100%;
  }

  .techniciansPage .technicianDetailsBody {
    grid-template-columns: 1fr;
    gap: 9px;
    max-height: min(62vh, 640px);
    padding: 10px;
  }

  .techniciansPage .technicianDetailForm {
    gap: 9px;
  }

  .techniciansPage .operationDialog .operationForm,
  .techniciansPage .technicianDetailForm {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .techniciansPage .operationDialog .dialogFullField,
  .techniciansPage .technicianDetailForm .dialogFullField {
    grid-column: auto;
  }

  .techniciansPage .operationDialog .dialogFooter {
    display: grid;
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .techniciansPage .operationDialog .dialogFooter button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(
    .dashboardPage,
    .interventionsPage,
    .reportsPage,
    .contractsPage,
    #inventory.businessPage,
    #invoices.businessPage,
    .notificationsPage,
    .usersPage,
    .portalPage
  ) *,
  :is(
    .dashboardPage,
    .interventionsPage,
    .reportsPage,
    .contractsPage,
    #inventory.businessPage,
    #invoices.businessPage,
    .notificationsPage,
    .usersPage,
    .portalPage
  ) *::before,
  :is(
    .dashboardPage,
    .interventionsPage,
    .reportsPage,
    .contractsPage,
    #inventory.businessPage,
    #invoices.businessPage,
    .notificationsPage,
    .usersPage,
    .portalPage
  ) *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* CRM locations and client timeline */
.clientDetailsDialog { width: min(1120px, calc(100vw - 32px)); max-width: 1120px; }
.clientDetailsNav { display: flex; gap: 6px; padding: 10px 18px; overflow-x: auto; background: #fff; border-bottom: 1px solid #e1e8f0; scrollbar-width: thin; }
.clientDetailsNav a { flex: 0 0 auto; padding: 8px 11px; color: #4e6077; background: #f5f8fb; border: 1px solid #e2e9f1; border-radius: 8px; font-size: .68rem; font-weight: 800; text-decoration: none; }
.clientDetailsNav a:hover, .clientDetailsNav a:focus-visible { color: #0c5da9; background: #edf5fd; border-color: #bad6ef; outline: none; }
.clientContactsPanel, .clientLocationsPanel, .clientTimelinePanel { scroll-margin-top: 12px; }
.clientLocationsPanel, .clientTimelinePanel { padding: 20px; border-top: 1px solid #e1e7ef; }
.clientLocationsPanel { background: #fff; }
.clientTimelinePanel { background: #f7f9fc; }
.clientLocationsHeader, .clientTimelineHeader { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.clientLocationsHeader > div, .clientTimelineHeader > div { display: flex; align-items: center; gap: 11px; }
.clientLocationsHeader h4, .clientTimelineHeader h4 { margin: 0 0 3px; color: #263b55; font-size: .8rem; }
.clientLocationsHeader p, .clientTimelineHeader p { margin: 0; color: #718096; font-size: .65rem; }
.clientLocationsIcon, .clientTimelineIcon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; color: #0f6c66; background: #e9f7f5; border: 1px solid #cce9e5; border-radius: 10px; }
.clientLocationsIcon svg, .clientTimelineIcon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; }
.clientLocationPrimaryAction, .clientTimelineRefresh { min-height: 36px; padding: 0 13px; color: #fff; background: #0f746c; border: 1px solid #0b655e; border-radius: 8px; font-size: .66rem; font-weight: 800; }
.clientLocationPrimaryAction { display: inline-flex; align-items: center; gap: 7px; }
.clientLocationPrimaryAction svg { width: 15px; height: 15px; fill: none; stroke: currentColor; }
.clientTimelineRefresh { color: #40546e; background: #fff; border-color: #d6e0ea; }
.clientLocationsGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.clientLocationCard { min-width: 0; padding: 14px; background: linear-gradient(135deg, rgba(15,116,108,.04), transparent 45%), #fff; border: 1px solid #dce6e9; border-radius: 12px; box-shadow: 0 8px 22px rgba(29,63,73,.05); }
.clientLocationCard.inactive { opacity: .72; background: #f7f8fa; }
.clientLocationCardHeading, .clientLocationCardHeading > div { display: flex; align-items: center; gap: 8px; }
.clientLocationCardHeading { justify-content: space-between; margin-bottom: 12px; }
.clientLocationCardHeading h5 { margin: 0; color: #20364e; font-size: .76rem; }
.clientLocationCode, .clientLocationStatus, .clientContactLocation, .clientTimelineStatus, .locationSourceHint { display: inline-flex; align-items: center; width: fit-content; color: #5c6f85; font-size: .58rem; font-weight: 750; }
.clientLocationCode { padding: 3px 6px; background: #f0f4f8; border-radius: 5px; }
.clientLocationStatus { padding: 4px 7px; border-radius: 999px; }
.clientLocationStatus.active { color: #176c4b; background: #e5f6ed; }
.clientLocationStatus.inactive { color: #7c5f39; background: #f5eee2; }
.clientLocationDetails { display: grid; gap: 7px; margin: 0; }
.clientLocationDetails > div { display: grid; grid-template-columns: 62px minmax(0,1fr); gap: 8px; }
.clientLocationDetails dt { color: #7b899a; font-size: .59rem; font-weight: 800; }
.clientLocationDetails dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: #40536a; font-size: .64rem; }
.clientLocationActions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; padding-top: 11px; border-top: 1px solid #edf1f4; }
.clientLocationActions button { min-height: 30px; padding: 0 9px; color: #3f5873; background: #fff; border: 1px solid #d7e0e8; border-radius: 7px; font-size: .6rem; font-weight: 800; }
.clientLocationActions .activate { color: #176c4b; border-color: #bfe2ce; }
.clientLocationActions .deactivate { color: #825c25; border-color: #e7d5b8; }
.clientLocationActions .delete { margin-left: auto; color: #a14343; border-color: #ebcaca; }
.clientContactLocation { margin-top: 7px; padding: 4px 7px; color: #0f665f; background: #e9f7f5; border: 1px solid #cfeae6; border-radius: 6px; }
.clientContactLocationField { grid-column: span 2; }
.clientContactForm select { width: 100%; min-height: 39px; padding: 0 10px; color: #263a52; background: #fff; border: 1px solid #d4dfeb; border-radius: 8px; }
.clientTimelineList, .clientTimelineGroup { display: grid; gap: 8px; }
.clientTimelineGroup > h5 { margin: 9px 0 2px 48px; color: #78879a; font-size: .6rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.clientTimelineItem { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 10px 11px; background: #fff; border: 1px solid #e1e7ee; border-radius: 9px; }
.clientTimelineMarker { display: grid; width: 32px; height: 32px; place-items: center; color: #0e6861; background: #e8f6f4; border-radius: 9px; font-size: .66rem; font-weight: 900; }
.clientTimelineItem > div { min-width: 0; }
.clientTimelineItem > div > div { display: flex; align-items: center; gap: 7px; }
.clientTimelineItem strong { overflow: hidden; color: #2a3e56; font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
.clientTimelineItem p { margin: 4px 0 0; overflow: hidden; color: #728195; font-size: .6rem; text-overflow: ellipsis; white-space: nowrap; }
.clientTimelineStatus { padding: 3px 6px; background: #f0f4f8; border-radius: 999px; }
.clientTimelineItem > button, .crmState button { min-height: 29px; padding: 0 9px; color: #0c5da9; background: #edf5fd; border: 1px solid #c8ddf1; border-radius: 7px; font-size: .59rem; font-weight: 800; }
.crmState { display: grid; min-height: 110px; place-content: center; justify-items: center; gap: 6px; grid-column: 1/-1; padding: 22px; color: #718096; background: #f8fafc; border: 1px dashed #d8e1eb; border-radius: 10px; text-align: center; }
.crmState strong { color: #42566e; font-size: .7rem; }
.crmState span { font-size: .62rem; }
.crmState.loading { background: linear-gradient(110deg,#f6f8fb 25%,#fff 40%,#f6f8fb 55%); background-size: 220% 100%; animation: crmShimmer 1.5s linear infinite; }
.crmState.error { color: #9c4747; background: #fff8f8; border-color: #edcaca; }
@keyframes crmShimmer { to { background-position: -220% 0; } }
.clientLocationDialog { width: min(820px, calc(100vw - 32px)); max-width: 820px; }
.clientLocationDialog > form { display: flex; max-height: min(92vh,850px); flex-direction: column; }
.clientLocationForm { grid-template-columns: repeat(2,minmax(0,1fr)); overflow-y: auto; }
.clientLocationForm label { display: grid; gap: 6px; }
.clientLocationForm textarea { resize: vertical; }
.clientLocationActiveToggle { display: flex !important; align-items: center; gap: 8px !important; color: #37536c; font-weight: 750; }
.clientLocationActiveToggle input { width: 17px !important; min-height: 17px !important; accent-color: #0f746c; }
.fieldError { grid-column: 1/-1; margin: -5px 0 0; color: #a33e3e; font-size: .61rem; font-weight: 750; }
.clientLocationForm [aria-invalid="true"] { border-color: #c84a4a !important; box-shadow: 0 0 0 3px rgba(200,74,74,.1) !important; }
.locationSourceHint { margin-top: 2px; color: #6d7f93; font-weight: 650; }
.locationImport { border-left: 3px solid #0f746c; }
.ioInlineMessage { min-width: 0; margin: 0; color: #53677e; font-size: .63rem; }
.assetForm select:disabled, .ticketCreateForm select:disabled { color: #8492a4; background: #f1f4f7; cursor: not-allowed; }

@media (max-width: 820px) {
  .clientLocationsGrid { grid-template-columns: 1fr; }
  .clientContactLocationField { grid-column: auto; }
}
@media (max-width: 720px) {
  .clientDetailsNav { padding-inline: 12px; }
  .clientLocationsPanel, .clientTimelinePanel { padding: 15px 13px; }
  .clientLocationsHeader, .clientTimelineHeader { align-items: stretch; flex-direction: column; }
  .clientLocationPrimaryAction, .clientTimelineRefresh { width: 100%; justify-content: center; }
  .clientLocationForm { grid-template-columns: 1fr; }
  .clientLocationForm .dialogFullField { grid-column: auto; }
  .clientTimelineItem { grid-template-columns: 32px minmax(0,1fr); }
  .clientTimelineItem > button { grid-column: 2; justify-self: start; }
  .clientLocationActions .delete { margin-left: 0; }
}
@media (max-width: 480px) {
  .clientDetailsNav a { padding-inline: 9px; font-size: .62rem; }
  .clientLocationCardHeading { align-items: flex-start; }
  .clientLocationCardHeading > div { align-items: flex-start; flex-direction: column; }
  .clientLocationDetails > div { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .crmState.loading { animation: none; }
}

/* Remote select: accessible server-side autocomplete over the native form value */
.remoteSelect {
  position: relative;
  width: 100%;
  min-width: 0;
}

.remoteSelectInput {
  width: 100%;
  min-height: 42px;
  padding: 0 42px 0 12px !important;
  color: #20364e !important;
  background: linear-gradient(180deg, #fff, #fbfcfe) !important;
  border: 1px solid #cfdbe7 !important;
  border-radius: 9px !important;
  box-shadow: 0 1px 2px rgba(25, 48, 73, 0.04);
  font: inherit;
  text-overflow: ellipsis;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.remoteSelectInput::placeholder {
  color: #7b8a9c;
}

.remoteSelectInput:hover:not(:disabled) {
  border-color: #9eb5ca !important;
}

.remoteSelectInput:focus-visible {
  border-color: #176b62 !important;
  outline: 3px solid rgba(23, 107, 98, 0.16) !important;
  outline-offset: 1px;
  box-shadow: 0 5px 16px rgba(21, 84, 78, 0.09) !important;
}

.remoteSelectToggle {
  position: absolute;
  z-index: 2;
  top: 1px;
  right: 1px;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  color: #5d7085;
  background: transparent;
  border: 0;
  border-left: 1px solid transparent;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
}

.remoteSelectToggle:hover:not(:disabled) {
  color: #0f665f;
  background: #eef8f6;
  border-left-color: #d8e9e6;
}

.remoteSelectToggle:focus-visible {
  outline: 3px solid rgba(23, 107, 98, 0.18);
  outline-offset: 1px;
}

.remoteSelectToggle span {
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 150ms ease;
}

.remoteSelect:has(.remoteSelectInput[aria-expanded="true"]) .remoteSelectToggle span {
  margin-top: 4px;
  transform: rotate(225deg);
}

.remoteSelectNative {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.remoteSelectList {
  position: absolute;
  z-index: 120;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  max-height: min(310px, 42vh);
  padding: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #cfdae5;
  border-radius: 11px;
  box-shadow: 0 18px 42px rgba(29, 48, 69, 0.18), 0 4px 12px rgba(29, 48, 69, 0.08);
  backdrop-filter: blur(12px);
}

.remoteSelectList[hidden] {
  display: none;
}

.remoteSelectOption {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 3px;
  padding: 10px 11px;
  color: #253a52;
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  text-align: left;
}

.remoteSelectOption + .remoteSelectOption {
  border-top: 1px solid #edf1f5;
}

.remoteSelectOption:hover,
.remoteSelectOption.isActive {
  color: #0e5f58;
  background: #eaf7f4;
}

.remoteSelectOption strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remoteSelectOption small {
  min-width: 0;
  overflow: hidden;
  color: #718196;
  font-size: 0.61rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remoteSelectEmpty,
.remoteSelectStatus {
  padding: 13px 12px;
  color: #6c7d91;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.remoteSelectStatus {
  position: absolute;
  z-index: 121;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  background: #fff;
  border: 1px solid #d5e0ea;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(29, 48, 69, 0.14);
}

.remoteSelectStatus[hidden] {
  display: none;
}

.remoteSelectStatus.isLoading::before {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  vertical-align: -2px;
  border: 2px solid #c9dedb;
  border-top-color: #176b62;
  border-radius: 50%;
  content: "";
  animation: remoteSelectSpin 700ms linear infinite;
}

.remoteSelectStatus.isError {
  color: #963f3f;
  background: #fff8f8;
  border-color: #ebcaca;
}

.remoteSelect.isDisabled {
  opacity: 0.72;
}

.remoteSelect.isDisabled .remoteSelectInput,
.remoteSelect.isDisabled .remoteSelectToggle {
  cursor: not-allowed;
}

.invoiceLineDescriptionWrap .remoteSelect {
  min-width: 180px;
}

.invoiceLineDescriptionWrap .remoteSelectInput {
  min-height: 38px;
  font-size: 0.67rem;
}

.invoiceLineDescriptionWrap .remoteSelectToggle {
  width: 36px;
  height: 36px;
}

nav button[data-rbac][hidden] {
  display: none !important;
}

@keyframes remoteSelectSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 720px) {
  .remoteSelectInput {
    min-height: 44px;
    font-size: 16px;
  }

  .remoteSelectToggle {
    width: 42px;
    height: 42px;
  }

  .remoteSelectList {
    position: fixed;
    z-index: 1000;
    top: auto;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    max-height: min(54vh, 420px);
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(18, 35, 53, 0.28);
  }

  .invoiceLineDescriptionWrap .remoteSelect {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .remoteSelectStatus.isLoading::before,
  .remoteSelectToggle span {
    animation: none;
    transition: none;
  }
}


/* Global SaaS administration */
.platformNav {
  margin: 14px 14px 6px;
  padding: 12px 10px 10px;
  border: 1px solid rgba(45, 212, 191, .26);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(15, 118, 110, .17), rgba(8, 47, 73, .13));
}
.platformNav[hidden] { display: none !important; }
.platformNav > p { margin: 0 10px 8px; color: #5eead4; font-size: .68rem; font-weight: 800; letter-spacing: .17em; }
.platformNav nav { display: grid; gap: 4px; }
.platformNav nav button { color: #ecfeff; border-color: rgba(94, 234, 212, .18); background: rgba(8, 47, 73, .26); }
.platformNav nav button:hover,
.platformNav nav button.active { color: #fff; border-color: rgba(94, 234, 212, .56); background: linear-gradient(135deg, #0f766e, #155e75); box-shadow: 0 10px 28px rgba(8, 47, 73, .28); }
body.sidebar-compact .platformNav { margin-inline: 8px; padding-inline: 6px; }
body.sidebar-compact .platformNav > p,
body.sidebar-compact .platformNav .label,
body.sidebar-compact .platformNav kbd { display: none; }

.saasAdminPage {
  --saas-petrol: #0f5f61;
  --saas-teal: #0f766e;
  --saas-ink: #15343b;
  --saas-line: #d6e5e4;
  width: 100%;
  max-width: none;
  min-width: 0;
  overflow: clip;
}
.saasHero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 26px 28px;
  color: #fff;
  border: 1px solid rgba(15, 95, 97, .28);
  border-radius: 20px;
  background: radial-gradient(circle at 90% 10%, rgba(94, 234, 212, .25), transparent 34%), linear-gradient(125deg, #0b4f53 0%, #0f766e 55%, #155e75 100%);
  box-shadow: 0 18px 45px rgba(15, 95, 97, .16);
}
.saasHero h2 { margin: 8px 0 6px; color: #fff; font-size: clamp(1.65rem, 2vw, 2.25rem); }
.saasHero p { max-width: 760px; margin: 0; color: rgba(236, 254, 255, .82); }
.saasContextBadge,
.saasEyebrow { display: inline-flex; width: fit-content; color: #0d5e61; font-size: .68rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.saasHero .saasContextBadge { padding: 6px 9px; color: #d9fffa; border: 1px solid rgba(153, 246, 228, .35); border-radius: 999px; background: rgba(6, 78, 82, .36); }
.saasRefreshBtn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; color: #074b4f; border: 1px solid rgba(255, 255, 255, .58); border-radius: 11px; background: #f0fdfa; font-weight: 750; }
.saasRefreshBtn:hover { background: #fff; transform: translateY(-1px); }
.saasTabs { display: flex; gap: 6px; margin-bottom: 18px; padding: 5px; overflow-x: auto; border: 1px solid var(--saas-line); border-radius: 14px; background: #fff; scrollbar-width: thin; }
.saasTabs button { flex: 0 0 auto; min-height: 42px; padding: 0 18px; color: #587177; border: 0; border-radius: 10px; background: transparent; font-weight: 750; }
.saasTabs button[aria-selected="true"] { color: #fff; background: linear-gradient(135deg, var(--saas-petrol), var(--saas-teal)); box-shadow: 0 7px 18px rgba(15, 118, 110, .18); }
.saasTabs button:focus-visible,
.saasRowAction:focus-visible,
.saasRefreshBtn:focus-visible { outline: 3px solid rgba(20, 184, 166, .35); outline-offset: 2px; }
.saasTabPanel { min-width: 0; }
.saasTabPanel[hidden] { display: none !important; }
.saasInlineStatus { margin-bottom: 12px; padding: 11px 14px; color: #0f5f61; border: 1px solid #bce4df; border-radius: 10px; background: #ecfdf9; }
.saasInlineStatus[hidden] { display: none; }
.saasInlineStatus[data-state="error"] { color: #9f2f28; border-color: #f3c6c2; background: #fff3f2; }
.saasKpiGrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.saasKpi { position: relative; min-width: 0; min-height: 154px; padding: 20px; overflow: hidden; border: 1px solid var(--saas-line); border-radius: 17px; background: linear-gradient(150deg, #fff, #f8fbfb); box-shadow: 0 10px 25px rgba(19, 60, 67, .06); }
.saasKpi::after { content: ''; position: absolute; right: -22px; bottom: -30px; width: 86px; height: 86px; border-radius: 50%; background: rgba(15, 118, 110, .08); }
.saasKpi span { display: block; min-height: 35px; color: #5a7378; font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .035em; }
.saasKpi strong { display: block; margin: 7px 0; color: var(--saas-ink); font-size: 2rem; line-height: 1; }
.saasKpi small { color: #71868a; }
.saasKpi.positive { border-top: 3px solid #16a36f; }
.saasKpi.attention { border-top: 3px solid #d99a24; }
.saasKpi.critical { border-top: 3px solid #d75a4f; }
.saasKpi.platform { border-top: 3px solid #0f766e; }
.saasOverviewGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.saasPanelCard { padding: 22px; border: 1px solid var(--saas-line); border-radius: 17px; background: #fff; }
.saasPanelCard h3 { margin: 7px 0 8px; color: var(--saas-ink); }
.saasPanelCard p { margin: 0; color: #667d82; }
.saasToolbar { display: grid; grid-template-columns: minmax(240px, 1.7fr) repeat(4, minmax(135px, .8fr)) auto; gap: 12px; align-items: end; margin-bottom: 14px; padding: 18px; border: 1px solid var(--saas-line); border-radius: 16px; background: #fff; }
.saasToolbar label { display: grid; gap: 6px; min-width: 0; color: #526d72; font-size: .76rem; font-weight: 750; }
.saasToolbar input,
.saasToolbar select { width: 100%; min-width: 0; height: 42px; border: 1px solid #cbdcdb; border-radius: 10px; background: #fbfdfd; }
.saasToolbar input:focus,
.saasToolbar select:focus { border-color: var(--saas-teal); box-shadow: 0 0 0 3px rgba(15, 118, 110, .12); }
.saasToolbarActions { display: flex; gap: 8px; }
.saasToolbarActions button { min-height: 42px; white-space: nowrap; border-radius: 10px; }
.saasTableFrame { width: 100%; min-width: 0; overflow-x: auto; border: 1px solid var(--saas-line); border-radius: 16px; background: #fff; }
.saasTable { width: 100%; min-width: 780px; border-collapse: collapse; }
.saasTable th { padding: 13px 16px; color: #48666b; background: #f0f7f6; font-size: .72rem; letter-spacing: .045em; text-align: left; text-transform: uppercase; }
.saasTable td { padding: 15px 16px; color: #304f55; border-top: 1px solid #e4eeee; vertical-align: middle; }
.saasTable tbody tr:hover { background: #f8fcfb; }
.saasIdentityCell { display: grid; gap: 3px; min-width: 190px; }
.saasIdentityCell strong { color: #183b42; }
.saasIdentityCell small { color: #788d91; }
.saasStatusBadge { display: inline-flex; align-items: center; width: fit-content; padding: 5px 9px; color: #52676b; border-radius: 999px; background: #edf2f2; font-size: .72rem; font-weight: 800; text-transform: capitalize; }
.saasStatusBadge.positive { color: #087653; background: #dcf8ec; }
.saasStatusBadge.attention { color: #8a5a0c; background: #fff3d5; }
.saasStatusBadge.critical { color: #a43c34; background: #fee5e3; }
.saasStatusBadge.platform { color: #076663; background: #d8f5f0; }
.saasRowAction { padding: 7px 10px; color: #0c6663; border: 1px solid #acdcd6; border-radius: 9px; background: #f0fdfa; font-size: .78rem; font-weight: 750; white-space: nowrap; }
.saasRowAction:hover { color: #fff; background: var(--saas-teal); }
.saasEmptyCell { height: 150px; color: #718589 !important; text-align: center; }
.saasPagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 14px; }
.saasPagination span { min-width: 110px; color: #587277; font-size: .82rem; text-align: center; }
.saasPagination button { min-height: 38px; padding-inline: 14px; color: #0f5f61; border: 1px solid #bddbd8; border-radius: 9px; background: #fff; }
.saasPagination button:disabled { opacity: .45; cursor: not-allowed; }
.saasDetailDialog { width: min(900px, calc(100vw - 32px)); max-width: 900px; padding: 0; overflow: hidden; border: 0; border-radius: 20px; }
.saasDetailDialog::backdrop { background: rgba(5, 35, 40, .56); backdrop-filter: blur(3px); }
.saasDialogHeader { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 24px; border-bottom: 1px solid var(--saas-line); background: linear-gradient(145deg, #f0fbf9, #fff); }
.saasDialogHeader h3 { margin: 6px 0 0; color: var(--saas-ink); font-size: 1.35rem; }
.saasDialogClose { width: 38px; height: 38px; padding: 0; color: #3f6166; border: 1px solid #c9dcda; border-radius: 50%; background: #fff; font-size: 1.45rem; }
.saasDetailGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; max-height: min(66vh, 620px); padding: 1px; overflow-y: auto; background: #e1eceb; }
.saasDetailGrid > div { display: grid; gap: 5px; min-width: 0; padding: 17px 20px; background: #fff; }
.saasDetailGrid span { color: #71868a; font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.saasDetailGrid strong { overflow-wrap: anywhere; color: #24474e; font-weight: 700; }
.srOnly { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

@media (max-width: 1280px) {
  .saasKpiGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .saasToolbar { grid-template-columns: minmax(220px, 1.5fr) repeat(2, minmax(140px, 1fr)); }
}
@media (max-width: 900px) {
  .saasAdminPage { width: 100%; }
  .saasHero { padding: 22px; }
  .saasToolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .saasSearchField { grid-column: 1 / -1; }
  .saasToolbarActions { grid-column: 1 / -1; justify-content: flex-end; }
}
@media (max-width: 720px) {
  .saasKpiGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .saasOverviewGrid,
  .saasDetailGrid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .saasHero { flex-direction: column; padding: 19px; border-radius: 15px; }
  .saasRefreshBtn { width: 100%; justify-content: center; }
  .saasTabs button { padding-inline: 14px; }
  .saasKpiGrid,
  .saasToolbar { grid-template-columns: 1fr; }
  .saasSearchField,
  .saasToolbarActions { grid-column: auto; }
  .saasToolbarActions { display: grid; grid-template-columns: 1fr 1fr; }
  .saasKpi { min-height: 132px; }
  .saasPagination { justify-content: space-between; gap: 6px; }
  .saasPagination span { min-width: 92px; }
  .saasDetailDialog { width: calc(100vw - 16px); }
  .saasDialogHeader { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .saasAdminPage *,
  .platformNav * { scroll-behavior: auto !important; transition: none !important; }
}
