:root {
  --topdesk-bg: #eef3f8;
  --topdesk-panel: #ffffff;
  --topdesk-panel-soft: #f8fbfe;
  --topdesk-border: #d9e3ee;
  --topdesk-border-strong: #c7d4e1;
  --topdesk-text: #223548;
  --topdesk-muted: #6b7d90;
  --topdesk-link: #2f70d0;
  --topdesk-link-hover: #2258a9;
  --topdesk-primary: #3078db;
  --topdesk-primary-hover: #2266c0;
  --topdesk-shadow: 0 6px 18px rgba(36, 60, 94, 0.06);
  --topdesk-shadow-soft: 0 2px 8px rgba(36, 60, 94, 0.04);
  --secure-topbar-height: 54px;
  --secure-tabbar-height: 42px;
  --secure-sidebar-mobile-height: 64px;
}
body.has-secure-tab-overflow {
  --secure-tabbar-height: 56px;
}
.layout {
  display: grid;
  grid-template-columns: 64px 1fr;
  background: var(--topdesk-bg);
  grid-template-rows: var(--secure-topbar-height) var(--secure-tabbar-height) 1fr;
  min-height: 100vh;
}
body {
  font-family: "Segoe UI", Tahoma, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: var(--topdesk-bg);
  color: var(--topdesk-text);
  overflow-x: hidden;
}
h1,
h2,
h3 {
  color: #16324d;
}
p {
  line-height: 1.5;
}
/* Top bar */
.topbar {
  grid-column: 1 / span 2;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--secure-topbar-height);
  min-height: var(--secure-topbar-height);
  box-sizing: border-box;
  z-index: 60;
  background: #434c56;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: none;
}
.topbar a {
  color: #ffffff;
  margin-left: 10px;
  text-decoration: none;
}
.topbar-right {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}
.secure-tabbar-wrap {
  grid-column: 2;
  grid-row: 2;
  position: fixed;
  top: var(--secure-topbar-height);
  left: 64px;
  right: 0;
  height: var(--secure-tabbar-height);
  z-index: 50;
  min-width: 0;
  background: #f7fafc;
  border-bottom: 1px solid var(--topdesk-border);
  box-shadow: var(--topdesk-shadow-soft);
  overflow: hidden;
}
.secure-tabbar {
  display: flex;
  align-items: end;
  gap: 4px;
  height: var(--secure-tabbar-height);
  padding: 6px 10px 0;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}
body.has-secure-tab-overflow .secure-tabbar {
  padding-bottom: 12px;
}
.secure-tab {
  display: inline-flex;
  align-items: center;
  position: relative;
  width: 180px;
  min-width: 180px;
  max-width: 180px;
  height: 35px;
  background: #e9eff6;
  border: 1px solid var(--topdesk-border);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  color: var(--topdesk-text);
  flex: 0 0 auto;
}
.secure-tab.is-active {
  background: var(--topdesk-panel);
  border-color: var(--topdesk-border-strong);
  box-shadow: 0 -2px 8px rgba(36, 60, 94, 0.04);
}
.secure-tab.is-pinned {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  background: #dfe8f2;
}
.secure-tab.is-pinned a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.secure-tab.is-pinned a i {
  font-size: 16px;
}
.secure-tab.is-pinned .secure-tab-icon {
  width: 100%;
  min-width: 0;
}
.secure-tab.is-pinned .secure-tab-text,
.secure-tab.is-pinned .secure-tab-close {
  display: none;
}
.secure-tab a {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
  height: 100%;
  padding: 5px 30px 5px 8px;
  color: var(--topdesk-text);
  text-decoration: none;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
}
.secure-tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-width: 32px;
  color: #1f5da5;
  font-size: 17px;
}
.secure-tab-text {
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  min-width: 0;
  line-height: 1;
}
.secure-tab-primary,
.secure-tab-secondary {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.secure-tab-primary {
  align-self: end;
  line-height: 1.05;
}
.secure-tab-secondary {
  align-self: start;
  margin-top: 3px;
  color: var(--topdesk-muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}
.secure-tab a:hover {
  color: var(--topdesk-link-hover);
}
.secure-tab-close {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-right: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--topdesk-muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.secure-tab-close:hover {
  background: #dbe6f2;
  color: var(--topdesk-text);
}
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
/* Sidebar */
.sidebar {
  grid-column: 1;
  grid-row: 2 / span 2;
  position: fixed;
  top: var(--secure-topbar-height);
  left: 0;
  bottom: 0;
  z-index: 55;
  width: 64px;
  height: calc(100vh - var(--secure-topbar-height));
  min-height: calc(100vh - var(--secure-topbar-height));
  align-self: start;
  background: #434c56;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: none;
  min-width: 0;
}
/* Main content */
.content {
  grid-column: 2;
  grid-row: 3;
  background: transparent;
  padding: 24px 28px 28px;
  overflow-y: auto;
  min-width: 0;
}
.content a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  background: #2f74d7;
  color: #ffffff;
  padding: 7px 13px;
  border: 1px solid rgba(28, 87, 168, 0.16);
  border-radius: 6px;
  box-shadow: none;
  font-size: 14px;
  font-weight: 600;
}
.content a.task-inline-link,
.results a.task-inline-link {
  display: inline;
  justify-content: normal;
  align-items: normal;
  padding: 0;
  margin: 0;
  min-height: 0;
  width: auto;
  background: none;
  color: var(--topdesk-link);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: inherit;
  font-weight: inherit;
  text-decoration: underline;
}
.content a.task-inline-link:hover,
.results a.task-inline-link:hover {
  background: none;
  color: var(--topdesk-link-hover);
  text-decoration: underline;
}
.content a:hover {
  background: #255fba;
  color: #ffffff;
}
/* Quick links */
.quicklinks {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.quicklinks a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 148px;
  height: 136px;
  background: #2f74d7;
  color: #ffffff;
  text-decoration: none;
  gap: 12px;
  border-radius: 14px;
  border: 1px solid rgba(28, 87, 168, 0.16);
  box-shadow: 0 6px 18px rgba(36, 85, 153, 0.12);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  color: #ffffff;
}
.quicklinks a:hover {
  background: #255fba;
  color: #ffffff;
  transform: translateY(-1px);
  border-color: rgba(28, 87, 168, 0.22);
  box-shadow: var(--topdesk-shadow);
}
.quicklinks a i {
  color: #ffffff;
}
.homebutton {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 64px;
  height: 64px;
  background-color: #4a4a4a;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.18s ease, filter 0.18s ease;
}
.sidebarbutton {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 64px;
  height: 64px;
  color: #ffffff;
  text-decoration: none;
  transition: filter 0.18s ease, background 0.18s ease;
}
.homebutton i,
.sidebarbutton i {
  font-size: 18px;
}
.homebutton:hover,
.sidebarbutton:hover {
  filter: brightness(1.04);
}
.sidebarbutton-incident {
  background-color: #2f74d7;
}
.sidebarbutton-change {
  background-color: #b9a2e6;
}
.sidebarbutton-problem {
  background-color: #ec973a;
}
.sidebarbutton-initiative {
  background-color: #e5d67c;
  color: #3d3210;
}
.sidebarbutton-search {
  background-color: #4a4a4a;
}
.sidebarbutton-caller {
  background-color: #2d8f9f;
}
.sidebarbutton-caller-phone {
  font-size: 0.6em;
}
.sidebarbutton-knowledge {
  background-color: #3f79a8;
}
.sidebarbutton-knowledge-info {
  font-size: 0.65em;
  color: #ffffff;
}
.page-layout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  min-width: 0;
}
.page-sidebar {
  width: 280px;
  background: var(--topdesk-panel);
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--topdesk-border);
  box-shadow: var(--topdesk-shadow);
  flex-shrink: 0;
  min-width: 0;
}
.modules-menu a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 44px;
  vertical-align: middle;
  background: #2f74d7;
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  border-radius: 10px;
  border: 1px solid rgba(28, 87, 168, 0.16);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
  margin-bottom: 8px;
  padding: 10px 14px;
  box-sizing: border-box;
  white-space: normal;
}
.modules-menu a:hover {
  background: #255fba;
  border-color: rgba(28, 87, 168, 0.22);
  color: #ffffff;
  transform: translateX(2px);
}
.module-section {
  padding: 6px 0 0;
}
.module-section h1 {
  margin-bottom: 18px;
  font-size: 34px;
  font-weight: 650;
  color: #16324d;
  line-height: 1.15;
}
/* Grid replaces table rows/columns */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 200px));
  gap: 16px;
}
.module-grid a {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;
  width: 100%;
  min-height: 110px;
  background: #2f74d7;
  color: #ffffff;
  text-decoration: none;
  flex-direction: column;
  gap: 8px;
  margin-right: 0;
  border-radius: 14px;
  border: 1px solid rgba(28, 87, 168, 0.16);
  box-shadow: 0 6px 18px rgba(36, 85, 153, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-align: center;
  line-height: 1.35;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: anywhere;
}
.module-grid a:hover {
  background: #255fba;
  color: #ffffff;
  transform: translateY(-1px);
  border-color: rgba(28, 87, 168, 0.22);
  box-shadow: var(--topdesk-shadow);
}
.page-content {
  flex: 1;
  min-width: 0;
}
.results {
  width: 100%;
}
div.results {
  overflow: auto;
  border: 1px solid var(--topdesk-border);
  border-radius: 10px;
  background: var(--topdesk-panel);
}
table.results,
.results table {
  width: 100%;
  padding: 0;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: auto;
  background: var(--topdesk-panel);
  border: 1px solid var(--topdesk-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--topdesk-shadow-soft);
}
div.results table {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.results th,
.results td {
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid #e7edf4;
  font-size: 13px;
  line-height: 1.3;
  vertical-align: top;
}
.results th {
  background: #f4f7fb;
  color: #47596d;
  font-size: 11px;
  position: sticky;
  top: 0;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.results tbody tr:nth-child(odd) {
  background-color: #fdfefe;
}
.results tbody tr:nth-child(even) {
  background-color: #f8fbfe;
}
.results tbody tr:hover {
  background: #eaf2ff;
}
.results tbody tr.is-selected {
  background: #eaf2ff;
}
.results tbody tr.is-openable {
  cursor: pointer;
}
.results tbody tr:last-child td {
  border-bottom: 0;
}
.results .table-action-hidden {
  display: none;
}
.results a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  background: #2f74d7;
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(28, 87, 168, 0.16);
  font-size: 12px;
  white-space: nowrap;
}
.results a:hover {
  background: #255fba;
  color: #ffffff;
}
.results td a.btn {
  min-width: 42px;
}
.table-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.table-pagination-summary {
  color: var(--topdesk-muted);
  font-size: 13px;
  margin-right: 4px;
}
.table-pagination a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 5px 9px;
  border-radius: 6px;
  background: #2f74d7;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
}
.table-pagination a.btn.is-active {
  background: #16324d;
}
.table-pagination a.btn.is-disabled {
  pointer-events: none;
  opacity: 0.45;
}
.tblaction {
  align-items: right;
  text-align: right;
  white-space: nowrap;
  width: 1%;
}
.incident-results-table {
  table-layout: auto;
}
.incident-results-table th,
.incident-results-table td {
  white-space: nowrap;
}
.incident-results-table th {
  font-size: 13px;
}
.incident-results-table td:nth-child(4),
.incident-results-table td:nth-child(5) {
  white-space: normal;
}
.incident-results-table .tblaction {
  vertical-align: middle;
}
.incident-results-table .tblaction a {
  padding: 5px 10px;
  font-size: 13px;
}
/* Card */
.form-card {
  background: var(--topdesk-panel);
  padding: 25px;
  border-radius: 16px;
  border: 1px solid var(--topdesk-border);
  box-shadow: var(--topdesk-shadow);
  max-width: 600px;
  min-width: 0;
  width: 100%;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.form-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}
/* Form layout */
.form-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
/* Input group */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.form-group input, .form-group select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--topdesk-border-strong);
  background: #fbfdff;
  color: var(--topdesk-text);
}
.form-group textarea {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--topdesk-border-strong);
  font-family: inherit;
  font-size: 14px;
  min-height: 140px;
  resize: vertical;
  width: 100%;
  box-sizing: border-box;
  background: #fbfdff;
  color: var(--topdesk-text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.combo-input:focus {
  outline: none;
  border-color: #8eb4ea;
  box-shadow: 0 0 0 3px rgba(45, 108, 223, 0.12);
}
.form-card-wide {
  max-width: 760px;
  min-width: 0;
  width: 100%;
}
.operator-form-card {
  max-width: 760px;
}
.operator-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.operator-group-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--topdesk-border);
  border-radius: 10px;
  background: #f8fbfe;
  box-sizing: border-box;
  cursor: pointer;
}
.operator-group-option:hover {
  border-color: var(--topdesk-border-strong);
  background: #edf4ff;
}
.operator-group-option input {
  flex: 0 0 auto;
}
.operator-group-option span {
  overflow-wrap: anywhere;
}
.asset-connection-row-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
}
.asset-connection-row-form input[type="text"] {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--topdesk-border-strong);
  border-radius: 8px;
}
.asset-template-row-form {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(220px, 1.4fr) auto auto auto;
  gap: 10px;
  align-items: center;
}
.asset-template-row-form input,
.asset-template-row-form textarea {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--topdesk-border-strong);
  border-radius: 8px;
  font-family: inherit;
}
.checkbox-inline {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.asset-config-panel {
  margin-top: 24px;
}
.asset-config-overview-card {
  margin-top: 16px;
  max-width: none;
}
.asset-config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.asset-config-list {
  display: grid;
  gap: 10px;
}
.asset-config-list-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--topdesk-border);
  border-radius: 10px;
  background: var(--topdesk-panel-soft);
}
.asset-config-list-row form {
  flex: 0 0 auto;
}
.asset-config-tree {
  margin: 10px 0 0 18px;
  padding-left: 14px;
}
.asset-config-tree li {
  margin: 8px 0;
}
.asset-config-tree-root {
  margin-left: 0;
}
.asset-config-current {
  font-weight: 700;
}
.asset-config-connection {
  display: inline-block;
  background: #edf4ff;
  border: 1px solid #d8e4f0;
  border-radius: 999px;
  color: #25415f;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
}
.manual-mail-rule-form {
  margin: 18px 0;
}
.mail-variable-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.mail-variable-list code {
  background: #eef4fb;
  border: 1px solid #d8e4f0;
  border-radius: 8px;
  color: #25415f;
  padding: 6px 8px;
}
.muted {
  color: #66788a;
}
.success {
  color: #1f7a3a;
  font-weight: 700;
}
.update-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.update-status-card {
  background: var(--topdesk-panel-soft);
  border: 1px solid var(--topdesk-border);
  border-radius: 10px;
  padding: 14px;
}
.update-status-card strong {
  display: block;
  margin-bottom: 4px;
  color: #16324d;
}
.update-version-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}
.update-version-list span {
  background: #edf4ff;
  border: 1px solid #d8e4f0;
  border-radius: 999px;
  color: #25415f;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
}
.update-changelog {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.update-changelog-entry {
  background: var(--topdesk-panel);
  border: 1px solid var(--topdesk-border);
  border-radius: 10px;
  padding: 16px;
  box-shadow: var(--topdesk-shadow-soft);
}
.update-changelog-entry h2,
.update-changelog-entry h3 {
  margin-top: 0;
}
.update-log {
  background: #f6f9fc;
  border: 1px solid var(--topdesk-border);
  border-radius: 10px;
  padding: 12px 14px;
  white-space: pre-wrap;
}
.form-card p {
  margin-top: 0;
}
.info-note {
  margin: 0;
  color: var(--topdesk-muted);
  font-size: 14px;
}
.inline-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.inline-link-row a,
.form-actions a {
  border-radius: 6px;
}
.search-card {
  max-width: 520px;
  min-width: 0;
  width: 100%;
}
.combo-box {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
}
.combo-input {
  width: 100%;
  padding-right: 34px !important;
}
.combo-toggle {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 32px;
  border: 0;
  background: transparent;
  color: #666;
  cursor: pointer;
}
.combo-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  display: none;
  max-height: 220px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid var(--topdesk-border);
  border-radius: 10px;
  box-shadow: 0 16px 28px rgba(23, 45, 76, 0.1);
  z-index: 20;
}
.combo-menu.is-open {
  display: block;
}
.combo-option {
  display: block;
  width: 100%;
  padding: 7px 9px;
  border: 0;
  background: #ffffff;
  color: #111111;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
}
.combo-option:hover {
  background: #edf4ff;
}
/* Buttons */
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}
.btn-primary {
  background: var(--topdesk-primary);
  color: white;
  border: 1px solid rgba(30, 78, 146, 0.22);
  padding: 10px 15px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: none;
}
.btn-primary:hover {
  background: var(--topdesk-primary-hover);
}
.btn-success {
  background: #3fa45a;
  color: white;
  border: 1px solid rgba(33, 106, 54, 0.18);
  padding: 10px 15px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}
.btn-success:hover {
  background: #31894a;
}
.btn-danger {
  background: #d55656;
  color: white;
  border: 1px solid rgba(147, 40, 40, 0.2);
  padding: 10px 15px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}
.btn-danger:hover {
  background: #be4040;
}
.ssp-error {
  padding: 14px 16px;
  border-radius: 10px;
  margin: 14px 0;
  background: #fce7e7;
  color: #8a2323;
}
.incident-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(720px, 1.9fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
}
.incident-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.incident-card {
  background: var(--topdesk-panel);
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--topdesk-border);
  box-shadow: var(--topdesk-shadow);
  min-width: 0;
}
.incident-card textarea {
  min-height: 220px;
  resize: vertical;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--topdesk-border-strong);
  width: 100%;
  box-sizing: border-box;
}
.incident-main-card textarea[name="commenttext"] {
  min-height: 140px;
}
.incident-history {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}
.incident-comment {
  border: 1px solid var(--topdesk-border);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fbfdff;
}
.incident-comment-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--topdesk-muted);
}
.incident-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf2f7;
  color: #425468;
  font-size: 12px;
}
.incident-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.incident-readonly {
  background: #f3f6fa;
  color: #627284;
}
.incident-title-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-size: 24px;
  font-weight: 600;
  border: none !important;
  border-bottom: 1px solid var(--topdesk-border-strong) !important;
  border-radius: 0 !important;
  padding: 4px 0 10px 0 !important;
  background: transparent;
}
.incident-meta-label {
  font-size: 13px;
  color: var(--topdesk-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.incident-section-title {
  font-size: 18px;
  margin: 0;
}
.incident-main-card {
  min-width: 0;
}
.ticket-support-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}
.change-activity-workbench {
  display: grid;
  grid-template-rows: minmax(240px, 7fr) minmax(150px, 3fr);
  gap: 12px;
  height: min(70vh, 720px);
  min-height: 430px;
}
.change-activity-form-wrapper {
  justify-content: stretch;
}
.change-activity-form-wrapper .form-card {
  max-width: none;
}
.change-activity-table-wrap {
  overflow: auto;
  border: 1px solid var(--topdesk-border);
  border-radius: 10px;
  background: var(--topdesk-panel);
}
.change-activity-table {
  width: 100%;
  border-collapse: collapse;
  box-shadow: none;
  border: 0;
}
.change-activity-table th,
.change-activity-table td {
  padding: 6px 8px;
  text-align: left;
  white-space: nowrap;
}
.change-activity-table td:nth-child(2) {
  white-space: normal;
  min-width: 260px;
}
.change-activity-row {
  cursor: pointer;
}
.change-activity-row:hover,
.change-activity-row.is-selected {
  background: #eaf2ff;
}
.change-activity-detail {
  overflow: auto;
  border: 1px solid var(--topdesk-border);
  border-radius: 10px;
  background: var(--topdesk-panel-soft);
  padding: 12px 14px;
}
.change-activity-detail h3 {
  margin: 0 0 10px;
  font-size: 18px;
}
.change-activity-detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}
.change-activity-detail-block {
  margin-top: 10px;
  min-width: 0;
}
.change-activity-detail pre {
  margin: 6px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  line-height: 1.45;
}
.table-preview-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  position: fixed;
  left: 64px;
  right: 0;
  bottom: 0;
  z-index: 48;
  height: min(28vh, 240px);
  min-height: 150px;
  overflow: auto;
  border: 1px solid var(--topdesk-border);
  border-right: 0;
  border-bottom: 0;
  border-radius: 10px;
  background: var(--topdesk-panel-soft);
  padding: 12px 14px;
  margin-top: 0;
  box-shadow: 0 -6px 18px rgba(36, 60, 94, 0.08);
}
body.has-table-preview-panel .content {
  padding-bottom: calc(var(--secure-table-preview-height, 190px) + 24px);
}
.table-preview-source {
  overflow: auto;
}
.table-preview-empty {
  grid-column: 1 / -1;
  color: var(--topdesk-muted);
}
.table-preview-panel.is-single .table-preview-block {
  grid-column: 1 / -1;
}
.table-preview-block {
  min-width: 0;
}
.table-preview-block h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.table-preview-block pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  line-height: 1.45;
}
.record-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(620px, 1.7fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}
.record-layout .form-card {
  max-width: none;
}
.record-main-card {
  min-width: 0;
}
.record-form-wrapper {
  justify-content: flex-start;
}
.record-form-card {
  max-width: 920px;
}
.record-form-card .form-grid > .form-group > label {
  display: grid;
  grid-template-columns: minmax(160px, 0.45fr) minmax(260px, 1fr);
  gap: 10px;
  align-items: center;
}
.record-form-card .form-grid > .form-group > label > input,
.record-form-card .form-grid > .form-group > label > select,
.record-form-card .form-grid > .form-group > label > textarea {
  width: 100%;
  box-sizing: border-box;
}
.api-token-layout {
  grid-template-columns: minmax(520px, 1fr) minmax(280px, 360px);
}
.api-token-layout .record-form-card {
  max-width: none;
}
.change-radio-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}
.change-radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.change-radio-group input[type="radio"] {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  min-height: 0;
  margin: 0;
  padding: 0;
}
.incident-left-card .form-group {
  display: grid;
  grid-template-columns: minmax(128px, 1fr) minmax(200px, 260px);
  gap: 4px 8px;
  align-items: center;
  justify-content: end;
}
.incident-left-card {
  position: sticky;
  top: calc(var(--secure-topbar-height) + var(--secure-tabbar-height) + 12px);
  max-height: calc(100vh - var(--secure-topbar-height) - var(--secure-tabbar-height) - 24px);
  overflow-y: auto;
}
.incident-left-card .form-grid {
  gap: 10px;
}
.incident-left-card .form-group > label:last-child {
  display: block;
  margin: 0;
  width: 100%;
  justify-self: end;
}
.incident-left-card .form-group input,
.incident-left-card .form-group select {
  padding: 5px 7px;
  font-size: 13px;
  min-height: 32px;
  width: 100%;
  box-sizing: border-box;
}
.incident-left-card .incident-meta-label {
  margin: 0;
  font-size: 11px;
  line-height: 1.2;
  text-align: left;
  justify-self: start;
}
.incident-left-card .incident-meta-label::after {
  content: ":";
}
.incident-left-card .incident-grid-two {
  gap: 6px 10px;
}
.incident-left-card .incident-grid-two .form-group {
  grid-template-columns: minmax(76px, 1fr) minmax(112px, 1fr);
}
.incident-left-card input[type="checkbox"],
.incident-left-card input[type="radio"],
.record-form-card .form-grid > .form-group > label > input[type="checkbox"],
.record-form-card .form-grid > .form-group > label > input[type="radio"],
.checkbox-label input[type="checkbox"],
.checkbox-label input[type="radio"],
.checkbox-inline input[type="checkbox"],
.checkbox-inline input[type="radio"] {
  flex: 0 0 auto;
  margin: 0;
  width: 14px;
  height: 14px;
  min-height: 0;
  padding: 0;
  vertical-align: middle;
}
.incident-left-card input#status_ready_display,
.incident-left-card input#status_closed_display {
  width: 13px;
  height: 13px;
}
.incident-left-card hr,
.incident-main-card hr {
  width: 100%;
  border: 0;
  border-top: 1px solid #e5ebf2;
  margin: 5px 0;
}
.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.kb-tree-wrap {
  margin-top: 18px;
}
.kb-tree-columns {
  columns: 2;
  column-gap: 22px;
}
.kb-tree-branch {
  break-inside: avoid;
  margin-bottom: 18px;
}
.kb-tree {
  list-style: none;
  margin: 10px 0 0 18px;
  padding-left: 18px;
  border-left: 1px solid #d8d8d8;
}
.kb-tree > li {
  margin-bottom: 10px;
}
.ubm-tree-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.ubm-tree-initiative {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 18px;
  min-width: 0;
}
.ubm-tree-initiative-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.ubm-tree-initiative-head h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}
.ubm-tree-list {
  list-style: none;
  margin: 10px 0 0 0;
  padding-left: 18px;
  border-left: 1px solid #d8d8d8;
}
.ubm-tree-list li {
  margin: 0 0 10px;
  position: relative;
}
.ubm-tree-list li::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 18px;
  width: 14px;
  border-top: 1px solid #d8d8d8;
}
.ubm-tree-node {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}
.ubm-tree-node.is-closed {
  opacity: 0.62;
}
.ubm-tree-node-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ubm-tree-node-head > a,
.ubm-tree-initiative-head h2 a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}
.ubm-tree-node-head > a:hover,
.ubm-tree-initiative-head h2 a:hover {
  color: #ffffff;
  text-decoration: none;
}
.ubm-tree-type {
  background: #e8f1fd;
  color: #23527c;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.78rem;
  white-space: nowrap;
}
.ubm-tree-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.82rem;
}
.ubm-tree-meta span {
  background: #f1f5f9;
  border-radius: 999px;
  padding: 3px 8px;
}
.kb-node {
  background: #ffffff;
  border: 1px solid var(--topdesk-border);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: var(--topdesk-shadow-soft);
}
.kb-node-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
.content .kb-node-link,
.content .kb-breadcrumbs a,
.content .kb-markdown a {
  display: inline;
  justify-content: normal;
  align-items: normal;
  padding: 0;
  background: none;
  color: var(--topdesk-link);
  text-decoration: underline;
}
.content .kb-node-link:hover,
.content .kb-breadcrumbs a:hover,
.content .kb-markdown a:hover {
  background: none;
  color: var(--topdesk-link-hover);
}
.kb-node-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.content .kb-node-actions a {
  display: inline;
  padding: 0;
  background: none;
  color: var(--topdesk-link);
  text-decoration: underline;
}
.content .kb-node-actions a:hover {
  background: none;
  color: var(--topdesk-link-hover);
}
.kb-visibility-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ececec;
  color: #444444;
  font-size: 12px;
  white-space: nowrap;
}
.kb-visibility-badge.is-public {
  background: #dff1e3;
  color: #2f7a41;
}
.kb-editor {
  min-height: 480px;
}
.kb-markdown {
  line-height: 1.6;
}
.kb-markdown h1,
.kb-markdown h2,
.kb-markdown h3,
.kb-markdown h4,
.kb-markdown h5,
.kb-markdown h6 {
  margin: 1.1em 0 0.45em;
}
.kb-markdown p:first-child,
.kb-markdown h1:first-child,
.kb-markdown h2:first-child,
.kb-markdown h3:first-child {
  margin-top: 0;
}
.kb-markdown pre {
  overflow-x: auto;
  padding: 14px;
  border-radius: 8px;
  background: #f3f5f7;
}
.kb-markdown code {
  font-family: Consolas, monospace;
}
.kb-markdown blockquote {
  margin: 1em 0;
  padding: 8px 14px;
  border-left: 4px solid #c6d5e7;
  background: #f7fafc;
}
.kb-markdown ul,
.kb-markdown ol {
  padding-left: 24px;
}
.kb-spoiler {
  background: #3e3e3e;
  color: #3e3e3e;
  border-radius: 4px;
  padding: 0 4px;
}
.kb-spoiler:hover {
  color: #ffffff;
}
.kb-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.kb-empty {
  color: #666666;
  padding: 12px 0;
}
.dashboard-home-grid {
  display: grid;
  grid-template-columns: minmax(420px, 720px) minmax(340px, 1fr);
  gap: 24px;
  align-items: start;
}
.dashboard-left-column {
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
}
.dashboard-left-column > h2,
.dashboard-news-section > h2,
.dashboard-task-section > h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 650;
}
.dashboard-news-section {
  min-width: 0;
}
.dashboard-top-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(360px, 1.28fr);
  gap: 24px;
  align-items: start;
}
.dashboard-menu-grid {
  grid-template-columns: minmax(420px, 720px) minmax(340px, 1fr);
}
.dashboard-work-grid {
  display: grid;
  grid-template-columns: minmax(420px, 720px) minmax(340px, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 26px;
}
.dashboard-top-grid > div > h2,
.dashboard-work-grid h2,
.content > h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 650;
}
.news-dashboard-panel {
  background: var(--topdesk-panel);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--topdesk-border);
  box-shadow: var(--topdesk-shadow);
}
.dashboard-task-results {
  max-width: 720px;
  width: 100%;
}
.dashboard-task-table {
  width: 100%;
  max-width: 720px;
  table-layout: fixed;
}
.dashboard-task-table th:first-child,
.dashboard-task-table td:first-child {
  width: auto;
}
.dashboard-task-table th:nth-child(2),
.dashboard-task-table th:nth-child(3),
.dashboard-task-table td:nth-child(2),
.dashboard-task-table td:nth-child(3) {
  width: 76px;
  text-align: center;
}
.dashboard-task-table th {
  white-space: nowrap;
}
.dashboard-task-count-heading {
  color: #5c7083;
  font-size: 15px;
  text-align: center !important;
}
.dashboard-task-table td:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dashboard-task-table td a.btn {
  min-width: 48px;
  padding: 6px 10px;
  justify-content: center;
}
.page-sidebar h1,
.page-sidebar h2,
.news-dashboard-panel h2 {
  color: #21405f;
}
.news-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.news-card {
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(58, 86, 122, 0.12);
  box-shadow: var(--topdesk-shadow-soft);
}
.news-card h3 {
  margin: 8px 0 6px;
}
.news-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.news-card-body {
  line-height: 1.55;
}
.news-banner-stack {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}
.news-banner {
  padding: 12px 18px;
  text-align: center;
  font-family: Verdana;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.news-major-outage {
  background: #f3c9c9;
  color: #6d1f1f;
}
.news-outage {
  background: #f7d9b5;
  color: #784718;
}
.news-maintenance {
  background: #cfe0f6;
  color: #254b77;
}
.news-general {
  background: #e3e3e3;
  color: #414141;
}
@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: var(--secure-topbar-height) var(--secure-tabbar-height) auto 1fr;
  }
  .topbar {
    grid-column: 1;
    grid-row: 1;
    top: 0;
    left: 0;
    right: 0;
    padding: 0 14px;
    justify-content: flex-start;
  }
  .topbar-right {
    width: 100%;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    font-size: 13px;
  }
  .sidebar {
    grid-column: 1;
    grid-row: 3;
    position: fixed;
    top: calc(var(--secure-topbar-height) + var(--secure-tabbar-height));
    left: 0;
    right: 0;
    bottom: auto;
    z-index: 45;
    height: var(--secure-sidebar-mobile-height);
    width: auto;
    flex-direction: row;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    scrollbar-width: thin;
  }
  .secure-tabbar-wrap {
    grid-column: 1;
    grid-row: 2;
    top: var(--secure-topbar-height);
    left: 0;
    right: 0;
  }
  .secure-tab {
    width: 180px;
    min-width: 180px;
    max-width: 180px;
  }
  .secure-tab.is-pinned {
    width: 48px;
    min-width: 48px;
    max-width: 48px;
  }
  .content {
    grid-column: 1;
    grid-row: 4;
    margin-top: 64px;
  }
  .homebutton,
  .sidebarbutton {
    flex: 0 0 64px;
  }
  .content {
    padding: 16px;
  }
  .page-layout {
    flex-direction: column;
    gap: 14px;
  }
  .page-sidebar,
  .page-content {
    width: 100%;
  }
  .page-sidebar {
    box-sizing: border-box;
    order: 0;
  }
  .module-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
  .incident-layout {
    grid-template-columns: 1fr;
  }
  .incident-left-card {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .record-layout {
    grid-template-columns: 1fr;
  }
  .record-form-card .form-grid > .form-group > label {
    grid-template-columns: 1fr;
  }
  .change-activity-detail-columns {
    grid-template-columns: 1fr;
  }
  .table-preview-panel {
    grid-template-columns: 1fr;
    left: 0;
  }
  .incident-left-card .form-group {
    grid-template-columns: 1fr;
    gap: 6px;
    justify-content: stretch;
  }
  .incident-left-card .form-group > label:last-child {
    justify-self: stretch;
  }
  .incident-grid-two {
    grid-template-columns: 1fr;
  }
  .incident-title-input {
    font-size: 20px;
  }
  .kb-tree-columns {
    columns: 1;
  }
  .ubm-tree-overview {
    grid-template-columns: 1fr;
  }
  .kb-node-head,
  .news-card-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  .dashboard-home-grid,
  .dashboard-top-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-work-grid {
    grid-template-columns: 1fr;
  }
  .quicklinks {
    gap: 12px;
  }
  .quicklinks a {
    width: calc(50% - 6px);
    min-width: 140px;
    height: 116px;
  }
  table.results,
  .results table {
    min-width: 720px;
  }
}
@media (max-width: 640px) {
  body {
    --secure-topbar-height: 48px;
    --secure-tabbar-height: 40px;
    --secure-sidebar-mobile-height: 56px;
  }
  body.has-secure-tab-overflow {
    --secure-tabbar-height: 54px;
  }
  .layout {
    display: block;
    min-height: 100vh;
  }
  .secure-tabbar-wrap {
    position: fixed;
    top: var(--secure-topbar-height);
    left: 0;
    right: 0;
    z-index: 50;
  }
  .secure-tabbar {
    height: var(--secure-tabbar-height);
    padding: 5px 6px 0;
  }
  .secure-tab {
    width: 180px;
    min-width: 180px;
    max-width: 180px;
    height: 35px;
  }
  .secure-tab.is-pinned {
    width: 48px;
    min-width: 48px;
    max-width: 48px;
  }
  .secure-tab a {
    font-size: 12px;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 6px;
    padding: 5px 28px 5px 7px;
  }
  .secure-tab.is-pinned a {
    padding: 0;
  }
  .secure-tab-icon {
    width: 28px;
    min-width: 28px;
    font-size: 16px;
  }
  .secure-tab-close {
    width: 24px;
    height: 24px;
    font-size: 17px;
  }
  .content {
    padding: 10px;
    margin-top: calc(var(--secure-topbar-height) + var(--secure-tabbar-height) + var(--secure-sidebar-mobile-height));
  }
  .topbar {
    padding: 0 10px;
    height: var(--secure-topbar-height);
    min-height: var(--secure-topbar-height);
  }
  .topbar-right {
    font-size: 12px;
    white-space: normal;
    overflow: visible;
  }
  .sidebar {
    position: fixed;
    top: calc(var(--secure-topbar-height) + var(--secure-tabbar-height));
    left: 0;
    right: 0;
    bottom: auto;
    z-index: 45;
    height: var(--secure-sidebar-mobile-height);
    width: auto;
    gap: 0;
    padding: 0 4px;
  }
  .homebutton,
  .sidebarbutton {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
  }
  .homebutton i,
  .sidebarbutton i {
    font-size: 16px;
  }
  .module-section h1 {
    font-size: 26px;
  }
  .content > h1 {
    font-size: 22px;
    line-height: 1.2;
    margin: 6px 0 14px;
  }
  .dashboard-left-column > h2,
  .dashboard-news-section > h2,
  .dashboard-task-section > h2,
  .dashboard-top-grid > div > h2,
  .dashboard-work-grid h2,
  .content > h2 {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .page-layout {
    gap: 10px;
  }
  .page-sidebar {
    padding: 10px;
  }
  .page-sidebar h1 {
    font-size: 20px;
    margin: 0 0 10px;
  }
  .modules-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .modules-menu a {
    min-height: 52px;
    margin-bottom: 0;
    padding: 10px;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    line-height: 1.25;
  }
  .quicklinks a {
    width: calc(50% - 6px);
    min-width: 0;
    height: 88px;
    padding: 14px;
    border-radius: 12px;
    gap: 8px;
    font-size: 14px;
  }
  .quicklinks a span {
    font-size: 14px;
  }
  .form-card,
  .form-card-wide,
  .search-card,
  .incident-card,
  .news-dashboard-panel,
  .page-sidebar {
    padding: 12px;
    border-radius: 14px;
  }
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .form-actions a,
  .form-actions button {
    width: 100%;
    box-sizing: border-box;
  }
  .content > a:first-child,
  .inline-link-row > a,
  .tblaction a {
    width: auto;
  }
  .form-group input,
  .form-group select,
  .form-group textarea,
  .incident-card textarea {
    font-size: 16px;
  }
  .incident-layout {
    gap: 12px;
  }
  .incident-column {
    gap: 12px;
  }
  .incident-title-input {
    font-size: 18px;
    padding-bottom: 8px !important;
  }
  .incident-comment {
    padding: 12px;
    border-radius: 10px;
  }
  .incident-comment-meta,
  .news-card-meta,
  .kb-node-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .inline-link-row {
    flex-direction: column;
    align-items: stretch;
  }
  table.results,
  .results table {
    min-width: 620px;
  }
  .dashboard-task-table,
  .dashboard-task-table thead,
  .dashboard-task-table tbody,
  .dashboard-task-table tr,
  .dashboard-task-table th,
  .dashboard-task-table td {
    display: block;
  }
  .dashboard-task-table {
    min-width: 0 !important;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .dashboard-task-table thead {
    display: none;
  }
  .dashboard-task-table tbody {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .dashboard-task-table tr {
    background: var(--topdesk-panel);
    border: 1px solid var(--topdesk-border);
    border-radius: 14px;
    box-shadow: var(--topdesk-shadow-soft);
    padding: 12px;
  }
  .dashboard-task-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 0;
    margin-bottom: 10px;
    border-bottom: 0;
    white-space: normal;
  }
  .dashboard-task-table td:last-child {
    margin-bottom: 0;
  }
  .dashboard-task-table td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    color: var(--topdesk-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex: 0 0 120px;
  }
  .dashboard-task-table td:first-child {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #1d3a58;
    overflow: visible;
    white-space: normal;
  }
  .dashboard-task-table td:first-child::before {
    display: none;
  }
  .dashboard-task-table td a {
    min-width: 56px;
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .content {
    padding: 8px;
  }
  .topbar {
    padding: 0 8px;
  }
  .homebutton,
  .sidebarbutton {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
  }
  .module-section h1 {
    font-size: 23px;
  }
  .dashboard-left-column > h2,
  .dashboard-news-section > h2,
  .dashboard-task-section > h2,
  .dashboard-top-grid > div > h2,
  .dashboard-work-grid h2,
  .content > h2 {
    font-size: 18px;
  }
  .modules-menu {
    grid-template-columns: 1fr;
  }
  .quicklinks a {
    width: 100%;
    height: 82px;
    font-size: 14px;
  }
  .quicklinks a i {
    font-size: 20px;
  }
  .form-card,
  .form-card-wide,
  .search-card,
  .incident-card,
  .news-dashboard-panel,
  .page-sidebar {
    padding: 10px;
  }
  .modules-menu a,
  .module-grid a {
    font-size: 14px;
  }
  table.results,
  .results table {
    min-width: 560px;
  }
}

/* Tablet/mobile shell: keep fixed chrome compact and keep the work area visible. */
@media (max-width: 980px) {
  html,
  body {
    min-width: 0;
    background: var(--topdesk-bg);
  }
  .layout {
    display: block;
    min-height: 100vh;
    background: var(--topdesk-bg);
    padding-top: calc(var(--secure-topbar-height) + var(--secure-tabbar-height) + var(--secure-sidebar-mobile-height));
    box-sizing: border-box;
  }
  .topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--secure-topbar-height);
    min-height: var(--secure-topbar-height);
    z-index: 90;
  }
  .secure-tabbar-wrap {
    position: fixed;
    top: var(--secure-topbar-height);
    left: 0;
    right: 0;
    height: var(--secure-tabbar-height);
    z-index: 85;
  }
  .secure-tabbar {
    height: var(--secure-tabbar-height);
  }
  .sidebar {
    position: fixed;
    top: calc(var(--secure-topbar-height) + var(--secure-tabbar-height));
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: var(--secure-sidebar-mobile-height);
    min-height: 0;
    z-index: 80;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    background: #434c56;
  }
  .content {
    display: block;
    position: relative;
    z-index: 1;
    min-height: calc(100vh - var(--secure-topbar-height) - var(--secure-tabbar-height) - var(--secure-sidebar-mobile-height));
    margin-top: 0;
    padding: 16px;
    background: var(--topdesk-bg);
    box-sizing: border-box;
    overflow: visible;
  }
}

/* Tablet comfort sizing. */
@media (min-width: 641px) and (max-width: 980px) {
  body {
    --secure-topbar-height: 58px;
    --secure-tabbar-height: 50px;
    --secure-sidebar-mobile-height: 70px;
  }
  body.has-secure-tab-overflow {
    --secure-tabbar-height: 64px;
  }
  body {
    font-size: 16px;
  }
  .layout {
    padding-top: calc(var(--secure-topbar-height) + var(--secure-tabbar-height) + var(--secure-sidebar-mobile-height));
  }
  .topbar {
    height: var(--secure-topbar-height);
    min-height: var(--secure-topbar-height);
    padding: 0 22px;
  }
  .topbar-right {
    font-size: 15px;
  }
  .secure-tabbar-wrap {
    top: var(--secure-topbar-height);
    height: var(--secure-tabbar-height);
  }
  .secure-tabbar {
    height: var(--secure-tabbar-height);
    padding: 7px 14px 0;
    gap: 6px;
  }
  .secure-tab {
    height: 43px;
    width: 180px;
    min-width: 180px;
    max-width: 180px;
    border-radius: 12px 12px 0 0;
  }
  .secure-tab.is-pinned {
    width: 48px;
    min-width: 48px;
    max-width: 48px;
  }
  .secure-tab a {
    font-size: 15px;
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 7px 34px 7px 10px;
  }
  .secure-tab-icon {
    width: 36px;
    min-width: 36px;
    font-size: 20px;
  }
  .secure-tab-secondary {
    font-size: 11px;
  }
  .secure-tab-close {
    width: 30px;
    height: 30px;
  }
  .sidebar {
    top: calc(var(--secure-topbar-height) + var(--secure-tabbar-height));
    height: var(--secure-sidebar-mobile-height);
    padding: 0 8px;
  }
  .homebutton,
  .sidebarbutton {
    flex: 0 0 70px;
    width: 70px;
    height: 70px;
  }
  .homebutton i,
  .sidebarbutton i {
    font-size: 21px;
  }
  .content {
    min-height: calc(100vh - var(--secure-topbar-height) - var(--secure-tabbar-height) - var(--secure-sidebar-mobile-height));
    padding: 26px;
  }
  .content > h1,
  .module-section h1 {
    font-size: 34px;
  }
  .content > h2,
  .dashboard-left-column > h2,
  .dashboard-news-section > h2,
  .dashboard-task-section > h2 {
    font-size: 26px;
  }
  .form-card,
  .form-card-wide,
  .search-card,
  .incident-card,
  .news-dashboard-panel,
  .page-sidebar,
  .page-content,
  .module-section,
  .profile-card {
    padding: 22px;
    border-radius: 18px;
  }
  .form-group input,
  .form-group select,
  .form-group textarea,
  .incident-card input,
  .incident-card select,
  .incident-card textarea {
    font-size: 17px;
    min-height: 42px;
  }
  .content a,
  .content button,
  .results a,
  .btn-primary {
    font-size: 15px;
  }
  .quicklinks a {
    min-height: 132px;
    font-size: 16px;
  }
  .quicklinks a i {
    font-size: 28px;
  }
  .modules-menu a,
  .module-grid a {
    min-height: 74px;
    font-size: 16px;
    line-height: 1.3;
  }
  .results table {
    font-size: 15px;
  }
}

/* Phone shell: slightly smaller chrome. */
@media (max-width: 640px) {
  .layout {
    padding-top: calc(var(--secure-topbar-height) + var(--secure-tabbar-height) + var(--secure-sidebar-mobile-height));
  }
  .topbar {
    height: var(--secure-topbar-height);
    min-height: var(--secure-topbar-height);
  }
  .secure-tabbar-wrap {
    top: var(--secure-topbar-height);
    height: var(--secure-tabbar-height);
  }
  .secure-tabbar {
    height: var(--secure-tabbar-height);
  }
  .sidebar {
    top: calc(var(--secure-topbar-height) + var(--secure-tabbar-height));
    height: var(--secure-sidebar-mobile-height);
  }
  .content {
    min-height: calc(100vh - var(--secure-topbar-height) - var(--secure-tabbar-height) - var(--secure-sidebar-mobile-height));
    padding: 12px;
  }
}

.caller-card-selector,
.caller-card-overview,
.caller-card-tabs-wrap {
  margin-top: 16px;
}
.caller-card-overview {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(420px, 1.25fr);
  gap: 18px;
  align-items: start;
}
.caller-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 14px;
}
.caller-card-actions a,
.caller-card-actions button {
  margin: 0;
}
.caller-card-description textarea {
  min-height: 180px;
}
.caller-card-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.caller-card-tab {
  background: #edf4ff;
  color: #21405f;
  border: 1px solid #c7d8ec;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}
.caller-card-tab.is-active {
  background: #2f74d7;
  color: #ffffff;
  border-color: rgba(28, 87, 168, 0.16);
}
.caller-card-tabpanel {
  display: none;
}
.caller-card-tabpanel.is-active {
  display: block;
}

.ticket-log-tabs-wrap {
  margin-top: 1rem;
}

.ticket-view-tabs {
  margin: 0 auto 1rem;
  max-width: 1440px;
}

.ticket-view-panel:not(.is-active) {
  display: none !important;
}

.ticket-log-list {
  display: grid;
  gap: 0.75rem;
}

.ticket-log-entry {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
}

.ticket-log-entry p {
  margin: 0.35rem 0 0;
}
.ticket-log-message {
  white-space: normal;
  overflow-wrap: anywhere;
}
.caller-card-summary {
  margin: 0;
}
.caller-card-summary div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #e5ebf2;
}
.caller-card-summary div:last-child {
  border-bottom: 0;
}
.caller-card-summary dt {
  color: var(--topdesk-muted);
}
.caller-card-mini-table th,
.caller-card-mini-table td {
  white-space: normal;
}
.attachment-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.attachment-link {
  width: fit-content;
  color: #1d5f9f;
  font-weight: 600;
  text-decoration: none;
}
.attachment-link:hover {
  color: #174c80;
  text-decoration: underline;
}
.attachment-link span {
  color: var(--topdesk-muted);
  font-weight: 500;
}
.attachment-history {
  margin-top: 10px;
}
.inline-task-image {
  display: block;
  max-width: min(100%, 760px);
  max-height: 520px;
  margin: 10px 0;
  border: 1px solid #d8e5f1;
  border-radius: 10px;
  background: #ffffff;
  object-fit: contain;
}
.task-checklist {
  list-style: none;
  margin: 10px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.task-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.task-checklist-item input[type="checkbox"] {
  margin: 2px 0 0;
  accent-color: var(--topdesk-accent);
}
.task-checklist-item span {
  flex: 1;
}
.attachment-preview {
  max-width: min(100%, 420px);
  max-height: 280px;
}
.attachment-image-hint {
  display: block;
  color: var(--topdesk-muted);
  font-size: 12px;
}
.form-presence-warning {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px 0;
  padding: 10px 12px;
  border: 1px solid #d8e5f1;
  border-left: 4px solid #2f74d7;
  border-radius: 10px;
  background: #f4f9ff;
  color: #274968;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(26, 47, 68, 0.06);
}
.form-presence-warning.is-stale {
  border-color: #f0b6a8;
  border-left-color: #d84a2b;
  background: #fff6f3;
  color: #723323;
}
.form-presence-refresh {
  flex: 0 0 auto;
  padding: 7px 12px;
}
.assign-to-me-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
}
.assign-to-me-row input,
.assign-to-me-row select {
  flex: 1 1 auto;
  min-width: 0;
}
.incident-left-card .form-group > label.assign-to-me-row {
  display: flex;
}
.incident-left-card .form-group .assign-to-me-row input,
.incident-left-card .form-group .assign-to-me-row select,
.form-group .assign-to-me-row input,
.form-group .assign-to-me-row select {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}
.assign-to-me-button {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #2f74d7;
  color: #ffffff;
  cursor: pointer;
}
.assign-to-me-button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  filter: grayscale(0.4);
}
.profile-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid var(--topdesk-border);
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #eef6ff 100%);
  box-shadow: 0 10px 28px rgba(26, 47, 68, 0.08);
}
.profile-avatar {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 20px;
  background: #2f74d7;
  color: #ffffff;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.profile-eyebrow {
  margin: 0 0 4px;
  color: var(--topdesk-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.profile-hero h1 {
  margin: 0 0 4px;
}
.profile-hero p:last-child {
  margin: 0;
  color: var(--topdesk-muted);
}
.profile-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
  gap: 18px;
}
.profile-card {
  padding: 22px;
  border: 1px solid var(--topdesk-border);
  border-radius: 18px;
  background: var(--topdesk-panel);
  box-shadow: 0 8px 22px rgba(26, 47, 68, 0.06);
}
.profile-card h2 {
  margin: 0 0 14px;
  color: #21405f;
}
.profile-details {
  margin: 0;
}
.profile-details div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--topdesk-border);
}
.profile-details div:last-child {
  border-bottom: 0;
}
.profile-details dt {
  color: var(--topdesk-muted);
  font-weight: 700;
}
.profile-details dd {
  margin: 0;
}
.profile-success {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid #bfe5cb;
  border-radius: 12px;
  background: #ecf9f0;
  color: #21633a;
  font-weight: 700;
}
.profile-password-form {
  margin-top: 16px;
}
@media (max-width: 980px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .caller-card-overview {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .profile-hero {
    align-items: flex-start;
    padding: 16px;
  }
  .profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    font-size: 20px;
  }
  .profile-card {
    padding: 16px;
  }
  .profile-details div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .caller-card-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .caller-card-actions a,
  .caller-card-actions button {
    width: 100%;
    box-sizing: border-box;
  }
  .caller-card-summary div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .caller-card-tab {
    width: 100%;
    text-align: center;
  }
}
