:root {
  --page: #f3f6fa;
  --panel: rgba(255, 255, 255, 0.88);
  --card: rgba(255, 255, 255, 0.92);
  --line: rgba(11, 26, 55, 0.08);
  --text: #071631;
  --shadow: 0 18px 50px rgba(7, 22, 49, 0.13);
  --card-shadow: 0 10px 24px rgba(7, 22, 49, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.95), transparent 34%),
    linear-gradient(135deg, #f8fafc 0%, #eef3f8 45%, #f7f9fc 100%);
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 26px 22px;
}

.toast-region {
  position: fixed;
  z-index: 50;
  top: 18px;
  right: 18px;
  width: min(360px, calc(100vw - 36px));
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.toast-message {
  padding: 13px 15px;
  border: 1px solid rgba(17, 187, 122, 0.26);
  border-radius: 12px;
  background: rgba(242, 253, 248, 0.98);
  color: #07543b;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
  box-shadow: 0 14px 34px rgba(7, 22, 49, 0.16);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast-message.error {
  border-color: rgba(244, 63, 103, 0.26);
  background: rgba(255, 246, 248, 0.98);
  color: #9b1233;
}

.toast-message.is-leaving {
  opacity: 0;
  transform: translateY(-6px);
}

.portal-confirm {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(7, 22, 49, 0.38);
  opacity: 0;
  pointer-events: auto;
  transition: opacity 150ms ease;
}

.portal-confirm.is-open {
  opacity: 1;
}

.portal-confirm.is-leaving {
  opacity: 0;
}

.portal-confirm-card {
  width: min(460px, 100%);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(244, 63, 103, 0.2);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(244, 63, 103, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 72px rgba(7, 22, 49, 0.26);
  transform: translateY(8px) scale(0.98);
  transition: transform 150ms ease;
}

.portal-confirm.is-open .portal-confirm-card {
  transform: translateY(0) scale(1);
}

.portal-confirm-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(244, 63, 103, 0.1);
  color: #b01237;
  font-size: 20px;
  font-weight: 950;
}

.portal-confirm-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.portal-confirm-copy strong {
  color: var(--text);
  font-size: 19px;
  line-height: 1.2;
}

.portal-confirm-copy p {
  margin: 0;
  color: #52627a;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.portal-password-reveal-value {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(82, 98, 122, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
}

.portal-password-reveal-value code {
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  font: 750 14px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--text);
}

.portal-password-reveal-copy {
  flex-shrink: 0;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(31, 107, 255, 0.18);
  background: rgba(31, 107, 255, 0.08);
  color: #174da8;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.portal-confirm-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.portal-confirm-actions button {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.portal-confirm-cancel {
  border: 1px solid rgba(31, 107, 255, 0.18);
  background: rgba(31, 107, 255, 0.08);
  color: #174da8;
}

.portal-confirm-ok {
  border: 1px solid rgba(244, 63, 103, 0.26);
  background: #e11d48;
  color: #fff;
}

.portal-confirm-actions button:hover,
.portal-confirm-actions button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.technician-success-overlay {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(7, 22, 49, 0.38);
  opacity: 0;
  pointer-events: auto;
  cursor: pointer;
  transition: opacity 150ms ease;
}

.technician-success-overlay.is-open {
  opacity: 1;
}

.technician-success-overlay.is-leaving {
  opacity: 0;
}

.technician-success-card {
  width: min(420px, 100%);
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 28px 24px;
  border: 1px solid rgba(17, 187, 122, 0.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(17, 187, 122, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 72px rgba(7, 22, 49, 0.26);
  text-align: center;
  transform: translateY(8px) scale(0.98);
  transition: transform 150ms ease;
}

.technician-success-overlay.is-open .technician-success-card {
  transform: translateY(0) scale(1);
}

.technician-success-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(17, 187, 122, 0.14);
  color: #06724f;
  font-size: 28px;
  font-weight: 950;
}

.technician-success-card p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}

.portal-window {
  width: min(1320px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.topbar {
  position: relative;
  z-index: 60;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 38px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.portal-title {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--text);
  font-size: 29px;
  font-weight: 800;
  text-decoration: none;
}

.portal-logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(7, 22, 49, 0.08);
}

.portal-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.top-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-actions button,
.avatar,
.login-button,
.profile-button,
.logout-button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 7px 18px rgba(7, 22, 49, 0.06);
}

.top-actions button {
  cursor: default;
}

.top-actions .global-search-button {
  cursor: pointer;
}

.global-search-button[aria-expanded="true"] {
  border-color: rgba(31, 107, 255, 0.28);
  background: rgba(31, 107, 255, 0.1);
  color: #174da8;
}

.top-actions .logout-button {
  width: auto;
  min-width: 86px;
  padding: 0 18px;
  border-radius: 999px;
  cursor: pointer;
}

.top-actions .profile-button {
  width: auto;
  min-width: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 999px;
  cursor: pointer;
}

.profile-button span {
  font-size: 13px;
  font-weight: 900;
}

.profile-button[aria-expanded="true"] {
  border-color: rgba(31, 107, 255, 0.28);
  background: rgba(31, 107, 255, 0.1);
  color: #174da8;
}

.notification-button {
  position: relative;
  cursor: pointer !important;
}

.global-search-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 122px;
  z-index: 74;
  width: min(640px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 118px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(11, 26, 55, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 76px rgba(7, 22, 49, 0.2);
  backdrop-filter: blur(16px);
}

.global-search-panel[hidden] {
  display: none;
}

.global-search-panel::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 74px;
  width: 14px;
  height: 14px;
  border-left: 1px solid rgba(11, 26, 55, 0.1);
  border-top: 1px solid rgba(11, 26, 55, 0.1);
  background: rgba(255, 255, 255, 0.98);
  transform: rotate(45deg);
}

.global-search-form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid rgba(11, 26, 55, 0.08);
}

.global-search-form svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #64748b;
  stroke-width: 2;
}

.global-search-form input {
  width: 100%;
  min-height: 46px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 850;
}

.global-search-form input::placeholder {
  color: #94a3b8;
}

.top-actions .global-search-close {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  box-shadow: none;
  cursor: pointer;
}

.global-search-results {
  display: grid;
  gap: 10px;
  overflow: auto;
  padding: 12px;
}

.global-search-empty {
  padding: 22px;
  color: #64748b;
  font-size: 13px;
  font-weight: 850;
}

.global-search-group {
  display: grid;
  gap: 6px;
}

.global-search-group h3 {
  margin: 4px 8px;
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.top-actions .global-search-result {
  width: 100%;
  height: auto;
  min-height: 68px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 8px 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(82, 98, 122, 0.12);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.72);
  box-shadow: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.top-actions .global-search-result:hover,
.top-actions .global-search-result:focus-visible {
  border-color: rgba(31, 107, 255, 0.24);
  background: rgba(239, 246, 255, 0.9);
}

.global-search-result span {
  grid-row: span 2;
  justify-self: start;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(31, 107, 255, 0.09);
  color: #174da8;
  font-size: 11px;
  font-weight: 950;
}

.global-search-result strong,
.global-search-result small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search-result strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
}

.global-search-result small {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.notification-button[aria-expanded="true"],
.notification-button.has-unread {
  border-color: rgba(31, 107, 255, 0.28);
  background: rgba(31, 107, 255, 0.1);
  color: #174da8;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.notification-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 72px;
  z-index: 72;
  width: min(390px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 118px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  overflow: hidden;
  border: 1px solid rgba(11, 26, 55, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 70px rgba(7, 22, 49, 0.18);
  backdrop-filter: blur(16px);
}

.notification-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 10px 12px 0;
  padding: 4px;
  border: 1px solid rgba(11, 26, 55, 0.08);
  border-radius: 999px;
  background: rgba(241, 245, 249, 0.86);
}

.notification-tabs[hidden] {
  display: none;
}

.notification-tabs button {
  width: 100%;
  height: 32px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #52627a;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.notification-tabs button.is-active {
  background: #fff;
  border-color: rgba(31, 107, 255, 0.2);
  color: #071631;
  box-shadow: 0 8px 22px rgba(7, 22, 49, 0.12);
}

.notification-tabs button:hover {
  color: #071631;
}

.notification-panel[hidden] {
  display: none;
}

.notification-panel::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 24px;
  width: 14px;
  height: 14px;
  border-left: 1px solid rgba(11, 26, 55, 0.1);
  border-top: 1px solid rgba(11, 26, 55, 0.1);
  background: rgba(255, 255, 255, 0.97);
  transform: rotate(45deg);
}

.notification-panel-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(11, 26, 55, 0.08);
}

.notification-panel-head strong,
.notification-panel-head small {
  display: block;
}

.notification-panel-head strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 950;
}

.notification-panel-head small {
  margin-top: 3px;
  color: #52627a;
  font-size: 12px;
  font-weight: 800;
}

.notification-close {
  width: 34px !important;
  height: 34px !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

.notification-list {
  display: grid;
  gap: 8px;
  overflow: auto;
  padding: 12px;
}

.notification-empty {
  padding: 22px 12px;
  color: #52627a;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.notification-item {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(11, 26, 55, 0.09);
  border-radius: 16px;
  background: #fff;
}

.notification-item.is-unread {
  border-color: rgba(31, 107, 255, 0.28);
  background: linear-gradient(135deg, rgba(31, 107, 255, 0.07), rgba(255, 255, 255, 0.98));
  box-shadow: inset 3px 0 0 #1f6bff;
}

.notification-item.level-warning {
  box-shadow: inset 3px 0 0 #b45309;
}

.notification-item.level-critical {
  box-shadow: inset 3px 0 0 #dc2626;
}

.notification-item-main {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.notification-item strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.25;
}

.notification-item small,
.notification-item p {
  color: #52627a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.notification-item p {
  margin: 0;
  white-space: pre-wrap;
}

.notification-sent-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.notification-sent-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.09);
  color: #0f766e;
  font-size: 11px;
  font-weight: 950;
}

.notification-level {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(31, 107, 255, 0.09);
  color: #174da8;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.notification-item-actions,
.notification-panel-actions,
.notification-admin-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.notification-item-actions button,
.notification-panel-actions button,
.notification-admin-form button {
  width: auto;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
}

.notification-panel-actions {
  padding: 12px;
  border-top: 1px solid rgba(11, 26, 55, 0.08);
}

.notification-admin-form {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(11, 26, 55, 0.08);
  background: rgba(248, 250, 252, 0.72);
}

.notification-admin-form[hidden] {
  display: none;
}

.notification-admin-form input,
.notification-admin-form textarea,
.notification-admin-form select {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(82, 98, 122, 0.18);
  border-radius: 12px;
  padding: 8px 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.notification-admin-form textarea {
  min-height: 72px;
  resize: vertical;
}

.notification-admin-grid {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
}

.notification-admin-status {
  min-height: 16px;
  color: #52627a;
  font-size: 11px;
  font-weight: 800;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 70;
  width: min(330px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid rgba(11, 26, 55, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(7, 22, 49, 0.18);
  backdrop-filter: blur(16px);
}

.profile-menu[hidden] {
  display: none;
}

.profile-menu::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 52px;
  width: 14px;
  height: 14px;
  border-left: 1px solid rgba(11, 26, 55, 0.1);
  border-top: 1px solid rgba(11, 26, 55, 0.1);
  background: rgba(255, 255, 255, 0.96);
  transform: rotate(45deg);
}

.profile-menu-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 12px 14px;
  border-bottom: 1px solid rgba(11, 26, 55, 0.08);
}

.profile-menu-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background:
    linear-gradient(145deg, #071631, #143452);
  color: #fff;
}

.profile-menu-avatar svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.profile-menu-head strong,
.profile-menu-head small {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.profile-menu-head strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.2;
}

.profile-menu-head small {
  margin-top: 3px;
  color: #52627a;
  font-size: 12px;
  font-weight: 800;
}

.profile-menu button {
  width: 100%;
  min-height: auto;
  height: auto;
  display: grid;
  gap: 3px;
  justify-items: start;
  margin-top: 4px;
  padding: 11px 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  box-shadow: none;
  text-align: left;
  cursor: pointer;
}

.profile-menu button:hover,
.profile-menu button:focus-visible {
  background:
    linear-gradient(90deg, rgba(31, 107, 255, 0.08), rgba(17, 187, 122, 0.045));
  outline: none;
}

.profile-menu button span {
  color: var(--text);
  font-size: 13px;
  font-weight: 950;
}

.profile-menu button small {
  color: #52627a;
  font-size: 11px;
  font-weight: 800;
}

.profile-menu .profile-menu-logout {
  margin-top: 8px;
  border-top: 1px solid rgba(11, 26, 55, 0.08);
  border-radius: 14px;
  color: #b42318;
  font-weight: 950;
}

.top-actions .login-button {
  width: auto;
  min-width: 190px;
  padding: 0 18px;
  border-radius: 999px;
  cursor: pointer;
}

body.is-logged-out .logout-button {
  display: none;
}

body.is-authenticated .top-actions > .logout-button {
  display: none;
}

body.is-logged-out .profile-button {
  display: none;
}

body.is-logged-out .profile-menu {
  display: none;
}

body.is-logged-out .top-actions button[aria-label="Suchen"],
body.is-logged-out .top-actions button[aria-label="Benachrichtigungen"] {
  display: none;
}

body:not(.is-authenticated) .notification-button,
body:not(.is-authenticated) .notification-panel {
  display: none;
}

.auth-state {
  min-width: 128px;
  color: #52627a;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.auth-state::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #94a3b8;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, .14);
}

.auth-state.is-online {
  color: #047857;
}

.auth-state.is-online::before {
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .14);
}

.auth-state.is-syncing::before {
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, .14);
}

.top-actions svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.2;
}

.avatar {
  background: #e2e8f0;
  font-size: 18px;
}

.tools-section {
  padding: 26px 46px 46px;
}

body.auth-pending .tools-section,
body.auth-pending .admin-workspace-section,
body:not(.is-authenticated) .tools-section,
body:not(.is-authenticated) .admin-workspace-section,
body.auth-pending .employee-section,
body.auth-pending .internal-ticket-section,
body.auth-pending .technician-report-section,
body:not(.is-authenticated) .employee-section {
  display: none;
}

body:not(.is-authenticated) .internal-ticket-section {
  display: none;
}

body:not(.is-authenticated) .technician-report-section {
  display: none;
}

h1 {
  margin: 0 0 28px;
  font-size: 35px;
  line-height: 1;
  letter-spacing: 0;
}

.identity-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin: 32px 46px 0;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(17, 187, 122, 0.1), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.82));
  box-shadow: 0 18px 42px rgba(7, 22, 49, 0.08);
}

.profile-close {
  display: none;
}

body.is-authenticated .identity-panel {
  position: fixed;
  z-index: 45;
  top: 118px;
  right: max(38px, calc((100vw - 1320px) / 2 + 38px));
  width: min(430px, calc(100vw - 44px));
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
  display: none;
  margin: 0;
  padding: 20px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(17, 187, 122, 0.08), transparent 34%),
    linear-gradient(135deg, #ffffff, #f8fafc);
  box-shadow: 0 26px 70px rgba(7, 22, 49, 0.18);
}

body.is-authenticated.is-profile-screen .identity-panel {
  position: static;
  width: min(1060px, calc(100% - 112px));
  display: grid;
  margin: 22px auto 44px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.is-authenticated.is-profile-screen .employee-section {
  display: none;
}

body.is-authenticated.is-profile-screen .employee-panel {
  box-shadow: 0 16px 38px rgba(7, 22, 49, 0.08);
}

body.is-authenticated.is-profile-screen .identity-main,
body.is-authenticated.is-profile-screen .identity-meta {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(17, 187, 122, 0.08), transparent 34%),
    linear-gradient(135deg, #ffffff, #f8fafc);
  box-shadow: 0 16px 38px rgba(7, 22, 49, 0.08);
}

body.is-authenticated.is-profile-screen .identity-main {
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 96% 8%, rgba(17, 187, 122, 0.13), transparent 32%),
    radial-gradient(circle at 4% 0%, rgba(31, 107, 255, 0.09), transparent 30%),
    linear-gradient(135deg, #ffffff, #f8fafc 58%, #f4f9f7);
}

body.is-authenticated.is-profile-screen .identity-meta {
  display: none;
}

body.is-authenticated.is-profile-screen .identity-main > .dashboard-role-label,
body.is-authenticated.is-profile-screen .identity-main > .user-name,
body.is-authenticated.is-profile-screen .identity-main > .user-email,
body.is-authenticated.is-profile-screen .identity-main > .permission-summary {
  display: none;
}

body.is-authenticated.is-profile-screen .profile-page-head,
body.is-authenticated.is-profile-screen .profile-settings-tabs {
  display: none;
}

body.is-authenticated .profile-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  cursor: pointer;
}

body.is-authenticated.is-profile-screen .profile-close {
  display: none;
}

body.is-authenticated .profile-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.3;
}

body.is-authenticated .identity-panel h1 {
  padding-right: 38px;
  font-size: 28px;
}

body.is-authenticated .user-email {
  font-size: 14px;
}

body.is-authenticated .permission-summary {
  margin-top: 14px;
}

.profile-password-form {
  display: grid;
  gap: 12px;
  margin-top: 0;
  padding: 16px;
  border: 1px solid rgba(11, 26, 55, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(7, 22, 49, 0.06);
}

.profile-password-form[hidden] {
  display: none;
}

.profile-password-head {
  display: grid;
  gap: 3px;
}

.profile-password-head strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.2;
}

.profile-password-head small,
.profile-password-message {
  color: #52627a;
  font-size: 12px;
  font-weight: 800;
}

.profile-password-form label {
  display: grid;
  gap: 6px;
  color: #52627a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-password-form input {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(11, 26, 55, 0.13);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  padding: 0 13px;
  outline: none;
}

.profile-password-form input:focus {
  border-color: rgba(17, 187, 122, 0.52);
  box-shadow: 0 0 0 4px rgba(17, 187, 122, 0.12);
}

.profile-password-form button {
  justify-self: start;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: #11a873;
  color: #fff;
  font: inherit;
  font-weight: 900;
  padding: 0 18px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(17, 168, 115, 0.22);
}

.profile-password-form button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.profile-password-message {
  min-height: 18px;
  margin: 0;
  text-transform: none;
}

.profile-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-password-message.is-success {
  color: #07865a;
}

.profile-password-message.is-error {
  color: #b42318;
}

.profile-hub {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 18px 22px 22px;
  margin-top: 0;
}

.profile-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 30px 18px;
}

.profile-page-head span {
  display: block;
  color: #52627a;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-page-head h2 {
  margin: 6px 0 0;
  color: var(--text);
  font-size: 30px;
  line-height: 1.1;
}

.profile-page-head p {
  max-width: 620px;
  margin: 9px 0 0;
  color: #52627a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.profile-version-chip {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 1px solid rgba(17, 187, 122, 0.24);
  border-radius: 999px;
  background: rgba(236, 253, 245, 0.86);
  color: #047857;
  font-size: 12px;
  font-weight: 950;
}

.profile-summary-card,
.profile-settings-card {
  border: 1px solid rgba(11, 26, 55, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 46px rgba(7, 22, 49, 0.065);
}

.profile-summary-card {
  display: none;
  align-content: start;
  justify-items: center;
  gap: 12px;
  min-height: 460px;
  padding: 28px 18px 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(17, 187, 122, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
  color: var(--text);
}

.profile-avatar {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(11, 26, 55, 0.08);
  border-radius: 50%;
  background:
    linear-gradient(145deg, #ffffff, #f3f7fb);
  color: #071631;
  box-shadow: 0 14px 28px rgba(7, 22, 49, 0.1);
}

.profile-avatar svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.profile-summary-name {
  max-width: 100%;
  color: var(--text);
  font-size: 20px;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}

.profile-summary-email {
  max-width: 100%;
  color: #52627a;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
  overflow-wrap: anywhere;
}

.profile-summary-role {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(17, 187, 122, 0.24);
  border-radius: 999px;
  background: rgba(236, 253, 245, 0.88);
  color: #047857;
  font-size: 12px;
  font-weight: 950;
}

.profile-summary-metrics {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}

.profile-summary-metrics span {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(11, 26, 55, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  text-align: center;
}

.profile-summary-metrics b {
  color: var(--text);
  font-size: 13px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.profile-summary-metrics small {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-summary-groups {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: auto;
}

.profile-summary-groups span {
  max-width: 100%;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(31, 107, 255, 0.18);
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.88);
  color: #174da8;
  font-size: 11px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.profile-summary-logout {
  width: 100%;
  min-height: 42px;
  margin-top: 6px;
  border: 1px solid rgba(220, 38, 38, 0.22);
  border-radius: 14px;
  background: rgba(254, 242, 242, 0.9);
  color: #b42318;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}

.profile-summary-logout:hover,
.profile-summary-logout:focus-visible {
  background: #dc2626;
  color: #fff;
  outline: none;
}

.profile-settings-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: auto;
  border: 1px solid rgba(11, 26, 55, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.98));
  box-shadow: 0 18px 46px rgba(7, 22, 49, 0.07);
}

body.is-authenticated.is-profile-screen .profile-settings-card {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1016px;
  margin: 0 auto;
}

.profile-settings-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-right: 1px solid rgba(11, 26, 55, 0.08);
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.94), rgba(255, 255, 255, 0.82));
  overflow: visible;
}

.profile-settings-tabs button {
  min-height: 44px;
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #52627a;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  padding: 0 12px;
  text-align: left;
  cursor: pointer;
}

.profile-settings-tabs button.is-active {
  background: #071631;
  color: #fff;
  box-shadow: 0 14px 30px rgba(7, 22, 49, 0.13);
}

.profile-settings-panels {
  padding: 0;
  min-width: 0;
}

.profile-settings-panel {
  display: grid;
  min-height: 460px;
  align-content: start;
}

.profile-settings-panel[hidden] {
  display: none;
}

.profile-panel-intro {
  display: grid;
  gap: 4px;
  padding: 22px 24px 12px;
}

.profile-panel-intro span {
  color: #52627a;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.profile-panel-intro strong {
  color: var(--text);
  font-size: 20px;
  line-height: 1.2;
}

.profile-setting-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 88px;
  width: 100%;
  padding: 16px 24px;
  border: 0;
  border-bottom: 1px solid rgba(11, 26, 55, 0.08);
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.profile-setting-row:last-child {
  border-bottom: 0;
}

.profile-setting-row:hover,
.profile-setting-row:focus-visible {
  background:
    linear-gradient(90deg, rgba(31, 107, 255, 0.065), rgba(17, 187, 122, 0.035));
  outline: none;
  transform: translateX(3px);
}

.profile-setting-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(7, 22, 49, 0.055);
  color: #0d2442;
}

.profile-setting-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.profile-setting-row strong {
  display: block;
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.25;
}

.profile-setting-row small {
  display: block;
  margin-top: 4px;
  color: #52627a;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.profile-setting-row i {
  color: #52627a;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
}

.profile-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(11, 26, 55, 0.08);
  background:
    radial-gradient(circle at 100% 0%, rgba(17, 187, 122, 0.07), transparent 36%),
    linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.99));
}

.profile-section-head:has(> button) {
  grid-template-columns: auto minmax(0, 1fr);
}

.profile-section-head button {
  min-height: 34px;
  border: 1px solid rgba(31, 107, 255, 0.18);
  border-radius: 999px;
  background: #fff;
  color: #174da8;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  padding: 0 11px;
  cursor: pointer;
}

.profile-section-head span {
  display: block;
  color: #52627a;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.profile-section-head strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.2;
}

.profile-note-card {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(31, 107, 255, 0.12);
  border-radius: 14px;
  background: rgba(244, 248, 255, 0.8);
}

.profile-note-card strong {
  color: var(--text);
}

.profile-note-card p {
  margin: 0;
  color: #52627a;
  font-weight: 800;
  line-height: 1.45;
}

.profile-info-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(11, 26, 55, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
}

.profile-info-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(11, 26, 55, 0.08);
}

.profile-info-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.profile-info-list dt {
  color: #52627a;
  font-size: 12px;
  font-weight: 900;
}

.profile-info-list dd {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 950;
  text-align: right;
}

.profile-section-body {
  display: grid;
  gap: 14px;
  padding: 20px 22px 22px;
}

.profile-status-grid,
.profile-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-action-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-status-grid div,
.profile-action-card {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(11, 26, 55, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9));
  box-shadow: 0 10px 26px rgba(7, 22, 49, 0.04);
}

.profile-status-grid span,
.profile-action-card span {
  color: #047857;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.profile-action-card span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(236, 253, 245, 0.92);
}

.profile-action-button {
  border: 1px solid rgba(31, 107, 255, 0.12);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.profile-action-button:hover,
.profile-action-button:focus-visible {
  border-color: rgba(31, 107, 255, 0.32);
  box-shadow: 0 18px 42px rgba(31, 107, 255, 0.11);
  outline: none;
  transform: translateY(-2px);
}

.profile-status-grid strong,
.profile-action-card strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
}

.profile-status-grid small,
.profile-action-card small {
  color: #52627a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.profile-employee-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-employee-card {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 18px;
  border: 1px solid rgba(11, 26, 55, 0.08);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(17, 187, 122, 0.08), transparent 36%),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(7, 22, 49, 0.05);
}

.profile-employee-card span {
  color: #047857;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.profile-employee-card strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
}

.profile-employee-card small {
  color: #52627a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.profile-employee-card em {
  justify-self: start;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.88);
  color: #174da8;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.profile-employee-card button {
  justify-self: start;
  min-height: 34px;
  margin-top: 2px;
  border: 1px solid rgba(17, 187, 122, 0.24);
  border-radius: 999px;
  background: rgba(236, 253, 245, 0.9);
  color: #047857;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  padding: 0 12px;
  cursor: pointer;
}

.profile-employee-card button:hover,
.profile-employee-card button:focus-visible {
  background: #0d8f62;
  color: #fff;
  outline: none;
}

.profile-sensitive-note {
  border-color: rgba(220, 38, 38, 0.12);
  background: rgba(254, 242, 242, 0.68);
}

.profile-document-list {
  display: grid;
  gap: 10px;
}

.profile-document-list a {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(11, 26, 55, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  text-decoration: none;
}

.profile-document-list a[aria-disabled="true"] {
  cursor: default;
  pointer-events: none;
}

.profile-document-list strong {
  color: var(--text);
  font-size: 14px;
}

.profile-document-list small {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(236, 253, 245, 0.9);
  color: #047857;
  font-size: 11px;
  font-weight: 950;
}

body:not(.is-authenticated) .profile-hub {
  display: none;
}

body.is-authenticated .identity-meta {
  min-width: 0;
  justify-items: start;
}

body.is-authenticated .group-list {
  justify-content: flex-start;
}

.eyebrow {
  margin: 0 0 10px;
  color: #52627a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.identity-panel h1 {
  margin-bottom: 8px;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.08;
}

.user-email {
  margin: 0;
  color: #52627a;
  font-size: 16px;
  font-weight: 700;
}

body.is-authenticated .identity-main {
  min-width: 0;
}

.permission-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.permission-card {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid rgba(17, 187, 122, 0.16);
  border-radius: 999px;
  background: rgba(17, 187, 122, 0.08);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: default;
}

.permission-summary b {
  color: #0c7d55;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
}

.permission-summary small {
  color: #52627a;
  font-size: 12px;
  font-weight: 800;
}

.logged-out-copy {
  max-width: 520px;
  margin: 12px 0 0;
  color: #52627a;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 650;
}

.login-brand,
.login-intro,
.portal-credit {
  display: none;
}

.login-form {
  width: min(650px, 100%);
  display: grid;
  gap: 18px;
  margin-top: 0;
  padding: 28px;
  border: 1px solid rgba(11, 26, 55, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 28px 60px rgba(7, 22, 49, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.login-form-head {
  display: grid;
  gap: 5px;
  margin-bottom: 0;
}

.login-form-head strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
}

.login-form label {
  display: grid;
  gap: 10px;
  color: #344256;
  font-size: 19px;
  font-weight: 800;
  text-align: left;
}

.input-field,
.password-field {
  position: relative;
  display: block;
}

.input-field > svg,
.password-field > svg {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #11bb7a;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-50%);
  pointer-events: none;
}

.login-form input:not([type="checkbox"]) {
  width: 100%;
  height: 68px;
  border: 1px solid rgba(11, 26, 55, 0.12);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 21px;
  font-weight: 700;
  padding: 0 56px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.login-form input:not([type="checkbox"]):focus {
  border-color: rgba(17, 187, 122, 0.52);
  box-shadow:
    0 0 0 4px rgba(17, 187, 122, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.password-field input {
  padding-right: 58px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible,
.password-toggle.is-active {
  background: rgba(17, 187, 122, 0.08);
  color: #11bb7a;
  outline: none;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-submit {
  width: min(650px, 100%);
  height: 72px;
  margin-top: 8px;
  border: 0;
  border-radius: 16px;
  background: #11bb7a;
  color: #fff;
  font: inherit;
  font-size: 23px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 22px 34px rgba(17, 187, 122, 0.22);
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.login-submit::after {
  content: " \2192";
}

.login-submit:hover,
.login-submit:focus-visible {
  transform: translateY(-1px);
  filter: saturate(1.05) brightness(0.98);
  box-shadow: 0 26px 40px rgba(17, 187, 122, 0.28);
  outline: none;
}

.login-submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.login-message {
  min-height: 20px;
  margin: 0;
  color: #9f1239;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.remember-row {
  width: max-content;
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 10px !important;
  color: #52627a;
  font-size: 16px !important;
  font-weight: 800;
}

.remember-row input {
  width: 25px;
  height: 25px;
  margin: 0;
  display: grid;
  place-items: center;
  appearance: none;
  border: 2px solid #11bb7a;
  border-radius: 8px;
  background: #fff;
  accent-color: #11bb7a;
  cursor: pointer;
}

.remember-row input:checked {
  background: #11bb7a;
}

.remember-row input:checked::after {
  content: "";
  width: 7px;
  height: 12px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) translateY(-1px);
}

.portal-credit {
  margin: 26px 0 0;
  color: #64748b;
  font-size: 16px;
  font-weight: 750;
  text-align: center;
}

.portal-credit a {
  color: #11bb7a;
  text-decoration: none;
}

.portal-credit a:hover,
.portal-credit a:focus-visible {
  color: #0f4fd8;
  text-decoration: underline;
  outline: none;
}

.login-assurance {
  position: relative;
  z-index: 1;
  align-self: end;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
}

.login-assurance strong {
  font-size: 20px;
  line-height: 1.08;
}

.login-assurance p {
  margin: 0;
  color: rgba(232, 240, 255, 0.78);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 650;
}

body.is-logged-out {
  background:
    radial-gradient(circle at 50% 118%, rgba(26, 188, 126, 0.22), transparent 25%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

body.is-logged-out::after {
  content: "";
  position: fixed;
  left: -8%;
  right: -8%;
  bottom: -92px;
  height: 160px;
  border-radius: 50% 50% 0 0;
  background: rgba(26, 188, 126, 0.14);
  pointer-events: none;
}

body.is-logged-out .portal-window {
  min-height: calc(100vh - 52px);
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.is-logged-out .topbar {
  display: none;
}

body.is-logged-out .identity-panel {
  grid-template-columns: 1fr;
  width: min(680px, calc(100% - 40px));
  min-height: auto;
  margin: 110px auto 34px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.is-logged-out .identity-main {
  min-width: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 0;
  text-align: center;
}

body.is-logged-out .eyebrow,
body.is-logged-out .user-name,
body.is-logged-out .user-email,
body.is-logged-out .profile-page-head,
body.is-logged-out .logged-out-copy,
body.is-logged-out .permission-summary {
  display: none;
}

body.is-logged-out .login-brand {
  display: block;
  margin-bottom: 24px;
}

body.is-logged-out .login-brand img {
  width: min(310px, 78vw);
  height: auto;
  object-fit: contain;
}

body.is-logged-out .login-intro {
  display: block;
  margin-bottom: 30px;
}

body.is-logged-out .login-intro h2 {
  margin: 0;
  color: #071631;
  font-size: clamp(34px, 4vw, 44px);
  line-height: 1.05;
}

body.is-logged-out .login-intro p {
  max-width: 590px;
  margin: 18px auto 0;
  color: #657086;
  font-size: 23px;
  line-height: 1.38;
  font-weight: 500;
}

body.is-logged-out .identity-panel h1 {
  max-width: 560px;
  margin-bottom: 10px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
}

body.is-logged-out .identity-meta {
  display: none;
}

body.is-logged-out .portal-credit {
  display: block;
}

body.is-logged-out .login-button {
  display: none;
  min-width: 210px;
  color: #fff;
  border-color: transparent;
  background: linear-gradient(145deg, #1f6bff, #3886ff);
  box-shadow: 0 14px 28px rgba(31, 107, 255, 0.2);
}

.identity-meta {
  display: grid;
  min-width: 260px;
  gap: 12px;
  justify-items: end;
}

body.is-authenticated .login-status {
  display: none;
}

.status-badge,
.group-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid rgba(32, 184, 105, 0.22);
  border-radius: 999px;
  background: rgba(32, 184, 105, 0.1);
  color: #11643a;
  font-size: 13px;
  font-weight: 800;
}

.status-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: currentColor;
}

.group-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.group-pill {
  border-color: rgba(31, 107, 255, 0.18);
  background: rgba(31, 107, 255, 0.08);
  color: #174da8;
}

.group-pill.muted {
  border-color: rgba(82, 98, 122, 0.18);
  background: rgba(82, 98, 122, 0.08);
  color: #52627a;
}

.auth-error {
  margin: 18px 46px 0;
  padding: 13px 16px;
  border: 1px solid rgba(244, 63, 103, 0.2);
  border-radius: 10px;
  background: rgba(244, 63, 103, 0.08);
  color: #9f1239;
  font-weight: 700;
}

[hidden] {
  display: none !important;
}

.access-empty {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(82, 98, 122, 0.16);
  border-radius: 10px;
  background: rgba(82, 98, 122, 0.07);
  color: #52627a;
  font-weight: 800;
}

.employee-section {
  padding: 28px 46px 48px;
}

body.is-authenticated .portal-window {
  display: flex;
  flex-direction: column;
}

body.is-authenticated .topbar {
  order: 0;
}

.employee-section {
  order: 1;
}

.admin-workspace-section {
  order: 2;
}

.internal-ticket-section {
  order: 3;
}

.technician-report-section {
  order: 4;
}

.employee-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(17, 187, 122, 0.08), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.86));
  box-shadow: 0 18px 42px rgba(7, 22, 49, 0.07);
}

.employee-panel .section-heading {
  margin-bottom: 16px;
}

.employee-panel .summary-card {
  box-shadow: 0 10px 24px rgba(7, 22, 49, 0.06);
}

.admin-workspace-section {
  display: flex;
  flex-direction: column;
  padding: 0 46px 42px;
}

body.is-workspace-open .employee-section,
body.is-workspace-open .dashboard-overview,
body.is-workspace-open .admin-workspace-section > .section-heading,
body.is-workspace-open .admin-workspace-section > .workspace-grid,
body.is-workspace-open .admin-workspace-section > .workspace-groups {
  display: none;
}

body.is-workspace-open .admin-workspace-section {
  padding-top: 12px;
  padding-bottom: 0;
}

body.is-profile-screen .admin-workspace-section {
  display: none;
}

body.is-authenticated:not(.is-profile-screen) .employee-section {
  display: none;
}

.dashboard-overview {
  order: 1;
  display: grid;
  gap: 14px;
  margin-bottom: 30px;
}

.admin-workspace-section > .section-heading {
  order: 2;
}

.admin-workspace-section > .workspace-grid {
  order: 3;
}

.admin-workspace-section > .workspace-groups {
  order: 3;
}

.admin-workspace-section > .workspace-screen {
  order: 4;
}

.dashboard-overview-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.dashboard-overview-head h2 {
  margin: 0;
  font-size: 27px;
  line-height: 1.1;
}

.dashboard-overview-head > span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(17, 187, 122, 0.18);
  border-radius: 999px;
  background: rgba(17, 187, 122, 0.08);
  color: #0c7d55;
  font-size: 13px;
  font-weight: 850;
}

.dashboard-title-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 4px 2px 0;
}

.dashboard-title-head h1 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 34px;
  line-height: 1.08;
}

.dashboard-title-head span {
  display: block;
  margin-top: 6px;
  color: #52627a;
  font-size: 14px;
  font-weight: 850;
}

.dashboard-title-head > strong {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 13px;
  border: 1px solid rgba(17, 187, 122, 0.2);
  border-radius: 999px;
  background: rgba(236, 253, 245, 0.82);
  color: #06724f;
  font-size: 13px;
  font-weight: 950;
}

.dashboard-monitoring-shell {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(31, 107, 255, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(31, 107, 255, 0.11), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.88));
  box-shadow: 0 14px 34px rgba(7, 22, 49, 0.06);
}

.dashboard-monitoring-bar {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-monitoring-bar strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 950;
}

.dashboard-monitoring-bar > div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dashboard-monitoring-bar span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(31, 107, 255, 0.2);
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.92);
  color: #174da8;
  font-size: 12px;
  font-weight: 900;
}

.dashboard-monitoring-bar .section-toggle {
  min-height: 34px;
  border-color: rgba(31, 107, 255, 0.24);
  background: rgba(31, 107, 255, 0.09);
  color: #174da8;
  box-shadow: none;
}

.dashboard-monitoring-bar .section-toggle:hover,
.dashboard-monitoring-bar .section-toggle:focus-visible {
  background: #1f6bff;
  color: #fff;
}

.dashboard-monitoring-content {
  padding-top: 2px;
}

.dashboard-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-overview-card {
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 16px;
  border: 1px solid rgba(82, 98, 122, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
}

.dashboard-overview-card span {
  color: #52627a;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-overview-card strong {
  color: var(--text);
  font-size: 23px;
  line-height: 1.08;
}

.dashboard-overview-card small {
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
}

.dashboard-overview-card.red {
  border-color: rgba(244, 63, 103, 0.16);
  background: rgba(244, 63, 103, 0.06);
}

.dashboard-overview-card.blue {
  border-color: rgba(31, 107, 255, 0.16);
  background: rgba(31, 107, 255, 0.06);
}

.dashboard-overview-card.orange {
  border-color: rgba(255, 140, 26, 0.18);
  background: rgba(255, 140, 26, 0.07);
}

.dashboard-overview-card.green {
  border-color: rgba(17, 187, 122, 0.18);
  background: rgba(17, 187, 122, 0.07);
}

.dashboard-overview-card.slate {
  border-color: rgba(82, 98, 122, 0.16);
  background: rgba(82, 98, 122, 0.07);
}

.internal-ticket-section {
  padding: 12px 46px 36px;
}

.technician-report-section {
  padding: 12px 46px 36px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-heading-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.section-heading h1 {
  margin: 0;
}

.section-toggle {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(82, 98, 122, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #334155;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.section-toggle:hover,
.section-toggle:focus-visible {
  border-color: rgba(31, 107, 255, 0.26);
  background: rgba(31, 107, 255, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.collapsible-content[hidden] {
  display: none !important;
}

.employee-summary-status {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(17, 187, 122, 0.18);
  border-radius: 999px;
  background: rgba(17, 187, 122, 0.08);
  color: #0c7d55;
  font-size: 13px;
  font-weight: 850;
}

.ticket-list-status {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(244, 63, 103, 0.18);
  border-radius: 999px;
  background: rgba(244, 63, 103, 0.08);
  color: #b0123b;
  font-size: 13px;
  font-weight: 850;
}

.technician-report-status {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(0, 167, 167, 0.18);
  border-radius: 999px;
  background: rgba(0, 167, 167, 0.08);
  color: #057276;
  font-size: 13px;
  font-weight: 850;
}

.workspace-status {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(31, 107, 255, 0.18);
  border-radius: 999px;
  background: rgba(31, 107, 255, 0.08);
  color: #174da8;
  font-size: 13px;
  font-weight: 850;
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.workspace-groups {
  display: grid;
  gap: 18px;
  margin-bottom: 16px;
}

.workspace-group {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(31, 107, 255, 0.06), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(248, 250, 252, 0.72));
}

.workspace-group h2 {
  margin: 0 0 12px;
  color: #52627a;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 950;
  letter-spacing: 0;
}

.workspace-group .workspace-grid {
  margin-bottom: 0;
}

.workspace-card {
  min-height: 122px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 9px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 252, 0.9));
  color: var(--text);
  font: inherit;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.workspace-card:hover,
.workspace-card:focus-visible,
.workspace-card.is-active {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  box-shadow: 0 18px 36px rgba(7, 22, 49, 0.13);
  outline: none;
}

.workspace-card.is-active {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 250, 255, 0.94));
}

.workspace-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
}

.workspace-card .icon svg {
  width: 29px;
  height: 29px;
}

.workspace-card strong,
.workspace-card small {
  width: 100%;
  display: block;
  text-align: center;
}

.workspace-card strong {
  font-size: 15px;
  line-height: 1.15;
}

.workspace-card small {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.workspace-screen {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(31, 107, 255, 0.08), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9));
  box-shadow: var(--card-shadow);
}

.workspace-screen-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.workspace-screen-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.tool-screen-nav {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  align-items: center;
  margin: 0 0 10px;
}

.profile-screen-nav {
  display: none;
}

body.is-authenticated.is-profile-screen .profile-screen-nav {
  display: none;
}

.dashboard-back-button,
.dashboard-refresh-button {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(31, 107, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #174da8;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.dashboard-back-button:hover,
.dashboard-back-button:focus-visible,
.dashboard-refresh-button:hover,
.dashboard-refresh-button:focus-visible {
  border-color: rgba(31, 107, 255, 0.3);
  background: rgba(31, 107, 255, 0.13);
  outline: none;
}

.dashboard-refresh-button {
  color: #0f7a55;
  border-color: rgba(15, 159, 110, 0.24);
  background: rgba(236, 253, 245, 0.76);
}

.dashboard-refresh-button:hover,
.dashboard-refresh-button:focus-visible {
  border-color: rgba(15, 159, 110, 0.34);
  background: rgba(15, 159, 110, 0.13);
}

.workspace-screen-head h2 {
  margin: 0 0 8px;
  font-size: 27px;
  line-height: 1.1;
}

.workspace-screen-head p:last-child {
  margin: 0;
  color: #52627a;
  font-size: 15px;
  font-weight: 750;
}

.workspace-detail-status {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(31, 107, 255, 0.18);
  border-radius: 999px;
  background: rgba(31, 107, 255, 0.08);
  color: #174da8;
  font-size: 13px;
  font-weight: 850;
}

.workspace-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.workspace-metric-grid.is-two-tiles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workspace-metric {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 18px;
  border: 1px solid rgba(82, 98, 122, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.workspace-metric span {
  color: #52627a;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.workspace-metric strong {
  color: var(--text);
  font-size: 22px;
  line-height: 1.12;
}

.workspace-metric small {
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
}

.workspace-screen-head .section-toggle {
  min-height: 34px;
  border-color: rgba(17, 187, 122, 0.24);
  background: rgba(17, 187, 122, 0.1);
  color: #06724f;
  box-shadow: none;
}

.workspace-screen-head .section-toggle:hover,
.workspace-screen-head .section-toggle:focus-visible {
  background: #0f9f6e;
  color: #fff;
}

.workspace-head-refresh {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(31, 107, 255, 0.22);
  border-radius: 999px;
  background: rgba(31, 107, 255, 0.08);
  color: #174da8;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.workspace-head-refresh:hover,
.workspace-head-refresh:focus-visible {
  background: #174da8;
  color: #fff;
  outline: none;
}

.workspace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.workspace-actions a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.workspace-actions a:first-child {
  border-color: transparent;
  background: var(--text);
  color: #fff;
}

.access-overview-panel {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.access-overview-empty {
  padding: 18px;
  border: 1px solid rgba(82, 98, 122, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: #52627a;
  font-weight: 800;
}

.access-filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(5, minmax(126px, 1fr)) auto auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(82, 98, 122, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
}

.access-filter-form input,
.access-filter-form select {
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 760;
}

.access-filter-form button {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.access-filter-form button[type="button"] {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.access-filter-form span {
  color: #52627a;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.access-editor {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(31, 107, 255, 0.14);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(31, 107, 255, 0.08), transparent 30%),
    rgba(255, 255, 255, 0.88);
}

.access-saas-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(15, 159, 110, 0.1), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
}

.access-saas-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.access-saas-head h4 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.15;
}

.access-saas-head small {
  max-width: 340px;
  color: #52627a;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.access-saas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.access-create-options .access-saas-panel {
  grid-column: 1 / -1;
}

.access-app-permission {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  min-height: 166px;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(82, 98, 122, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.access-app-permission::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: rgba(148, 163, 184, 0.28);
}

.access-app-permission:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 107, 255, 0.22);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.access-app-permission.is-active {
  border-color: rgba(15, 159, 110, 0.34);
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.9), rgba(255, 255, 255, 0.94));
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.access-app-permission.is-active::before {
  background: #0f9f6e;
}

.access-app-permission.is-danger.is-active {
  border-color: rgba(190, 18, 60, 0.3);
  background:
    linear-gradient(135deg, rgba(255, 241, 242, 0.92), rgba(255, 255, 255, 0.94));
}

.access-app-permission.is-danger.is-active::before {
  background: #be123c;
}

.access-app-permission label {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
}

.access-app-permission input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #0f9f6e;
}

.access-app-permission.is-danger input[type="checkbox"] {
  accent-color: #be123c;
}

.access-app-permission strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  line-height: 1.2;
}

.access-app-kicker {
  display: inline-flex;
  width: fit-content;
  min-height: 22px;
  align-items: center;
  margin-bottom: 8px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(31, 107, 255, 0.08);
  color: #174da8;
  font-size: 11px;
  font-weight: 900;
}

.access-app-permission small {
  display: block;
  margin-top: 6px;
  color: #52627a;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 750;
}

.access-app-state {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(100, 116, 139, 0.18);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.92);
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}

.access-app-permission.is-active .access-app-state {
  border-color: rgba(15, 159, 110, 0.22);
  background: rgba(236, 253, 245, 0.95);
  color: #0c7d55;
}

.access-app-permission.is-partial .access-app-state {
  border-color: rgba(202, 138, 4, 0.22);
  background: rgba(254, 252, 232, 0.95);
  color: #92400e;
}

.access-app-rights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-left: 32px;
}

.access-app-rights em {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(31, 107, 255, 0.14);
  border-radius: 999px;
  background: rgba(31, 107, 255, 0.07);
  color: #174da8;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.access-app-permission.is-danger .access-app-rights em {
  border-color: rgba(190, 18, 60, 0.16);
  background: rgba(255, 241, 242, 0.9);
  color: #be123c;
}

@media (max-width: 760px) {
  .access-saas-head {
    display: grid;
  }

  .access-saas-head small {
    max-width: none;
    text-align: left;
  }

  .access-saas-grid {
    grid-template-columns: 1fr;
  }

  .access-app-permission {
    min-height: auto;
  }

  .access-app-state {
    position: static;
    width: fit-content;
    margin-left: 32px;
  }

  .access-editor-column-primary,
  .access-advanced-grid {
    grid-template-columns: 1fr;
  }

  .access-advanced-settings summary {
    display: grid;
  }

  .access-advanced-settings summary::after {
    width: fit-content;
  }
}

.access-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.access-editor-head h3 {
  margin: 0 0 5px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.1;
}

.access-editor-head small {
  color: #64748b;
  font-weight: 800;
}

.access-editor-status {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(17, 187, 122, 0.18);
  border-radius: 999px;
  background: rgba(17, 187, 122, 0.08);
  color: #0c7d55;
  font-size: 13px;
  font-weight: 850;
}

.access-editor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.access-editor-column-primary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.access-editor label,
.access-editor fieldset {
  min-width: 0;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(82, 98, 122, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.access-advanced-settings {
  display: grid;
  border: 1px solid rgba(82, 98, 122, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.access-advanced-settings summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.access-advanced-settings summary::-webkit-details-marker {
  display: none;
}

.access-advanced-settings summary::after {
  content: "Öffnen";
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(31, 107, 255, 0.18);
  border-radius: 999px;
  background: rgba(31, 107, 255, 0.07);
  color: #174da8;
  font-size: 12px;
  font-weight: 900;
}

.access-advanced-settings[open] summary::after {
  content: "Schließen";
}

.access-advanced-settings summary span,
.access-advanced-settings summary small {
  display: block;
}

.access-advanced-settings summary small {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.access-advanced-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 16px 16px;
}

.access-editor .access-app-permission label {
  min-width: 0;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.access-editor .access-app-permission label > span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.access-app-permission.is-partial {
  border-color: rgba(202, 138, 4, 0.32);
  background:
    linear-gradient(135deg, rgba(254, 252, 232, 0.92), rgba(255, 255, 255, 0.94));
}

.access-app-permission.is-partial::before {
  background: #ca8a04;
}

.access-app-permission.is-partial .access-app-rights em {
  border-color: rgba(202, 138, 4, 0.18);
  background: rgba(254, 252, 232, 0.9);
  color: #92400e;
}

.access-editor label > span,
.access-editor legend {
  color: #52627a;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.access-editor select {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(82, 98, 122, 0.18);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 0 10px;
}

.access-check {
  min-height: auto !important;
  grid-template-columns: auto 1fr;
  display: grid !important;
  align-items: center;
  gap: 8px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.access-check input {
  width: 16px;
  height: 16px;
  accent-color: #1f6bff;
}

.access-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.access-editor-actions button,
.access-edit-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(31, 107, 255, 0.18);
  border-radius: 999px;
  background: rgba(31, 107, 255, 0.08);
  color: #174da8;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.access-editor-actions button:first-child {
  border-color: transparent;
  background: var(--text);
  color: #fff;
}

.access-edit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  appearance: none;
  -webkit-appearance: none;
  width: fit-content;
  box-shadow: none;
}

.access-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.access-overview-grid article {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(82, 98, 122, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.access-overview-grid span,
.access-table th {
  color: #52627a;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.access-overview-grid strong {
  color: var(--text);
  font-size: 22px;
  line-height: 1.12;
}

.access-overview-grid small {
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
}

.access-overview-lists {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.access-overview-lists > div {
  padding: 16px;
  border: 1px solid rgba(82, 98, 122, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.pill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mini-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 2px 4px 2px 0;
  padding: 0 9px;
  border: 1px solid rgba(31, 107, 255, 0.18);
  border-radius: 999px;
  background: rgba(31, 107, 255, 0.08);
  color: #174da8;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.ticket-status-cell-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.ticket-status-cell-badges .mini-pill {
  margin: 0;
  min-height: 24px;
  padding: 0 7px;
  font-size: 11px;
  white-space: normal;
  text-align: center;
}

.ticket-activity-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.ticket-row-popup-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid rgba(82, 98, 122, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #52627a;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.ticket-row-popup-button:hover,
.ticket-row-popup-button:focus-visible {
  border-color: rgba(31, 107, 255, 0.4);
  color: #1f6bff;
  outline: none;
}

.mini-pill.muted {
  border-color: rgba(82, 98, 122, 0.16);
  background: rgba(82, 98, 122, 0.07);
  color: #52627a;
}

.mini-pill.status {
  border-color: rgba(17, 187, 122, 0.18);
  background: rgba(17, 187, 122, 0.08);
  color: #0c7d55;
}

.mini-pill.success {
  border-color: rgba(17, 187, 122, 0.2);
  background: rgba(17, 187, 122, 0.1);
  color: #08734e;
}

.mini-pill.warning {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.14);
  color: #9a5500;
}

.mini-pill.danger {
  border-color: rgba(220, 38, 38, 0.22);
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

.presence-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid rgba(100, 116, 139, 0.2);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.86);
  color: #475569;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.presence-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.14);
}

.presence-pill.online {
  border-color: rgba(16, 185, 129, 0.28);
  background: rgba(236, 253, 245, 0.95);
  color: #047857;
}

.presence-pill.online::before {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

.presence-pill.away {
  border-color: rgba(217, 119, 6, 0.26);
  background: rgba(255, 251, 235, 0.95);
  color: #92400e;
}

.presence-pill.away::before {
  background: #d97706;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.14);
}

.presence-pill.offline,
.presence-pill.unknown {
  border-color: rgba(100, 116, 139, 0.18);
  background: rgba(248, 250, 252, 0.88);
  color: #64748b;
}

.presence-lamp {
  display: inline-flex;
  width: 10px;
  height: 10px;
  margin-right: 7px;
  border-radius: 999px;
  background: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.14);
  vertical-align: middle;
  flex: 0 0 auto;
}

.presence-lamp.online {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.17);
}

.presence-lamp.away {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.17);
}

.presence-lamp.offline,
.presence-lamp.unknown {
  background: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.14);
}

.access-table-wrap {
  max-height: 560px;
  overflow: auto;
  border: 1px solid rgba(82, 98, 122, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.access-list-content {
  display: grid;
  gap: 0;
}

.access-list-content .access-filter-form {
  margin-bottom: 12px;
}

.access-list-content.is-full-mode .access-table-wrap {
  max-height: 78vh;
}

.access-table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
}

.access-table th,
.access-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(82, 98, 122, 0.1);
  text-align: left;
  vertical-align: top;
}

.access-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(248, 250, 252, 0.96);
}

.access-table td strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
}

.access-table td small {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.employee-summary-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(420px, 1.25fr);
  gap: 14px;
}

.employee-today-card {
  align-content: start;
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.78), rgba(255, 255, 255, 0.94));
}

.employee-workday-card {
  align-content: start;
  gap: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(17, 187, 122, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.94);
}

.employee-workday-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.employee-workday-actions button {
  min-height: 42px;
  min-width: 145px;
  border: 0;
  border-radius: 999px;
  background: #0d8f62;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  padding: 0 16px;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(13, 143, 98, 0.18);
}

.employee-workday-actions button:last-child {
  background: #071631;
  box-shadow: 0 14px 30px rgba(7, 22, 49, 0.16);
}

.employee-workday-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
}

.employee-workday-detail,
.employee-workday-history {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(11, 26, 55, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
}

.employee-workday-detail {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.employee-workday-detail div,
.employee-workday-history div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.employee-workday-detail strong,
.employee-workday-detail small,
.employee-workday-history span,
.employee-workday-history strong,
.employee-workday-history small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.employee-workday-detail a,
.employee-workday-history a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  padding: 0 10px;
  border: 1px solid rgba(31, 107, 255, 0.18);
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.9);
  color: #174da8;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.employee-workday-history {
  max-height: 220px;
  overflow: auto;
}

.employee-workday-history div {
  grid-template-columns: minmax(90px, 0.5fr) minmax(150px, 1fr) auto;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(11, 26, 55, 0.07);
}

.employee-workday-history div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.profile-time-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.profile-time-grid .summary-card {
  min-height: auto;
}

.profile-time-grid .employee-today-card,
.profile-time-grid .employee-workday-card {
  padding: 18px;
  border-radius: 18px;
}

.profile-time-grid .employee-today-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 16px;
  align-items: center;
}

.profile-time-grid .employee-today-card span,
.profile-time-grid .employee-today-card strong,
.profile-time-grid .employee-today-card small {
  min-width: 0;
}

.profile-time-grid .employee-today-card span {
  grid-column: 1 / -1;
}

.profile-time-grid .employee-today-card small {
  overflow-wrap: anywhere;
}

.profile-time-grid .employee-workday-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-time-grid .employee-workday-actions button {
  min-width: 0;
  width: 100%;
}

.profile-time-grid .employee-workday-detail {
  grid-template-columns: 1fr;
}

.profile-time-grid .employee-workday-history div {
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr) auto;
}

.ticket-collapsible-card {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid rgba(82, 98, 122, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}

.ticket-monitoring-panel {
  border-color: rgba(37, 99, 235, 0.18);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.07), rgba(255, 255, 255, 0.96) 46%, rgba(239, 246, 255, 0.72));
}

.ticket-monitoring-content {
  display: grid;
  gap: 10px;
}

.ticket-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.summary-card.compact {
  min-height: 112px;
}

.ticket-stat-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
}

.ticket-stat-card::after {
  content: "";
  position: absolute;
  inset: auto 16px 12px 16px;
  height: 3px;
  border-radius: 999px;
  opacity: 0.72;
}

.ticket-stat-card.red {
  border-color: rgba(244, 63, 103, 0.16);
  background:
    linear-gradient(135deg, rgba(244, 63, 103, 0.07), rgba(255, 255, 255, 0.9));
}

.ticket-stat-card.red::after {
  background: #f43f67;
}

.ticket-stat-card.orange {
  border-color: rgba(255, 140, 26, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 140, 26, 0.08), rgba(255, 255, 255, 0.9));
}

.ticket-stat-card.orange::after {
  background: #ff8c1a;
}

.ticket-stat-card.green {
  border-color: rgba(17, 187, 122, 0.18);
  background:
    linear-gradient(135deg, rgba(17, 187, 122, 0.08), rgba(255, 255, 255, 0.9));
}

.ticket-stat-card.green::after {
  background: #11bb7a;
}

.ticket-stat-card.blue {
  border-color: rgba(31, 107, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(31, 107, 255, 0.07), rgba(255, 255, 255, 0.9));
}

.ticket-stat-card.blue::after {
  background: #1f6bff;
}

.ticket-create-form {
  border: 1px solid rgba(17, 187, 122, 0.18);
  background:
    linear-gradient(135deg, rgba(17, 187, 122, 0.08), rgba(255, 255, 255, 0.96) 46%, rgba(236, 253, 245, 0.78));
}

.ticket-create-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ticket-create-head strong {
  color: #071631;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0;
}

.ticket-create-head .section-heading-actions {
  gap: 8px;
}

.ticket-monitoring-status,
.ticket-create-status {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  border: 1px solid rgba(82, 98, 122, 0.14);
  background: rgba(255, 255, 255, 0.82);
  color: #52627a;
  font-size: 12px;
  font-weight: 900;
}

.ticket-monitoring-status {
  border-color: rgba(37, 99, 235, 0.18);
  background: rgba(37, 99, 235, 0.08);
  color: #0b4db3;
}

.ticket-create-status {
  border-color: rgba(17, 187, 122, 0.22);
  background: rgba(17, 187, 122, 0.1);
  color: #06724f;
}

.ticket-monitoring-panel .section-toggle,
.ticket-create-form .section-toggle {
  min-height: 36px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: rgba(37, 99, 235, 0.08);
  color: #0b4db3;
  box-shadow: none;
}

.ticket-create-form .section-toggle {
  border-color: rgba(17, 187, 122, 0.24);
  background: rgba(17, 187, 122, 0.1);
  color: #06724f;
}

.ticket-monitoring-panel .section-toggle:hover,
.ticket-monitoring-panel .section-toggle:focus-visible {
  background: #1f6bff;
  color: #fff;
}

.ticket-create-form .section-toggle:hover,
.ticket-create-form .section-toggle:focus-visible {
  background: #0f9f6e;
  color: #fff;
}

.ticket-create-form-content {
  display: grid;
  gap: 10px;
}

.ticket-create-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) minmax(140px, auto);
  gap: 10px;
}

.ticket-create-additional-technicians {
  grid-column: 1 / -1;
}

.ticket-participant-field {
  grid-column: 1 / -1;
}

.ticket-participant-picker {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.ticket-participant-picker-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.ticket-participant-picker-row select {
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(82, 98, 122, 0.16);
  border-radius: 12px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.ticket-participant-picker .ticket-participant-picker-row button,
.ticket-update-form .ticket-participant-picker .ticket-participant-picker-row button,
.ticket-create-form .ticket-participant-picker .ticket-participant-picker-row button,
.ticket-participant-picker .ticket-participant-chip button {
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  min-height: 38px;
  padding: 0 16px;
  box-shadow: 0 12px 24px rgba(0, 166, 118, 0.16);
}

.ticket-participant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 34px;
  align-items: center;
}

.ticket-participant-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  border: 1px solid rgba(21, 101, 216, 0.18);
  border-radius: 999px;
  background: rgba(232, 240, 255, 0.86);
  padding: 4px 5px 4px 12px;
}

.ticket-participant-chip strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.ticket-participant-picker .ticket-participant-chip button {
  min-height: 28px;
  padding: 0 10px;
  background: #c76600;
  font-size: 11px;
  box-shadow: none;
}

.ticket-participant-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ticket-customer-picker {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(240px, 2fr);
  align-items: center;
  gap: 8px;
}

.ticket-customer-search-wrap {
  position: relative;
  min-width: 0;
}

.ticket-customer-search-wrap .ticket-create-customer-search {
  width: 100%;
  padding-right: 44px;
}

.ticket-customer-dropdown-toggle {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
}

.ticket-customer-dropdown {
  position: absolute;
  z-index: 35;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: min(380px, 52vh);
  overflow: auto;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
  padding: 6px;
}

.ticket-customer-dropdown button {
  width: 100%;
  min-height: 40px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  display: grid;
  gap: 2px;
  text-align: left;
  padding: 8px 10px;
  box-shadow: none;
}

.ticket-customer-dropdown button:hover,
.ticket-customer-dropdown button:focus-visible {
  background: rgba(37, 99, 235, 0.09);
}

.ticket-customer-dropdown strong,
.ticket-customer-dropdown small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-customer-dropdown small {
  color: #52627a;
  font-size: 11px;
}

.ticket-customer-dropdown-empty {
  padding: 10px;
  color: #52627a;
  font-size: 12px;
  font-weight: 750;
}

.ticket-customer-status,
.ticket-inline-customer-status {
  color: #52627a;
  font-size: 12px;
  font-weight: 750;
}

.ticket-customer-edit-block {
  border-color: rgba(17, 187, 122, 0.26);
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.78), rgba(255, 255, 255, 0.96));
}

.ticket-customer-edit-inline {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(17, 187, 122, 0.24);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.ticket-customer-edit-inline h3 {
  margin-bottom: 12px;
}

.ticket-customer-update-form {
  display: grid;
  gap: 12px;
}

.ticket-customer-update-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
}

.ticket-customer-edit-inline .ticket-detail-customer-search-wrap {
  grid-column: 1;
}

.ticket-customer-edit-inline input[name="customer_contact"] {
  grid-column: 1;
}

.ticket-customer-update-grid input[type="search"],
.ticket-customer-update-grid input[type="email"],
.ticket-customer-update-grid input[type="text"],
.ticket-customer-update-grid select,
.ticket-customer-update-grid textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid rgba(82, 98, 122, 0.16);
  border-radius: 14px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.ticket-detail-customer-search-wrap {
  min-width: 0;
}

.ticket-detail-customer-search-wrap .ticket-detail-customer-name-search {
  width: 100%;
  padding-right: 50px;
}

.ticket-customer-update-form .ticket-detail-customer-dropdown-toggle {
  position: absolute;
  top: 6px;
  right: 6px;
  min-height: 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.1);
  color: #0b4db3;
  box-shadow: none;
  display: grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
}

.ticket-customer-update-form .ticket-detail-customer-dropdown button {
  min-height: 42px;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  box-shadow: none;
  padding: 8px 10px;
}

.ticket-customer-update-grid textarea {
  grid-column: 1;
  grid-row: auto;
  min-height: 76px;
  padding-top: 13px;
  resize: vertical;
  line-height: 1.35;
}

.ticket-customer-update-grid select.ticket-site-location-select,
.ticket-create-description-wrap select.ticket-site-location-select {
  color: #52627a;
  background: rgba(255, 255, 255, 0.98);
}

.ticket-customer-update-grid select.ticket-site-location-select {
  grid-column: 1;
}

.ticket-customer-update-grid input:focus {
  outline: 3px solid rgba(17, 187, 122, 0.16);
  border-color: rgba(17, 187, 122, 0.44);
}

.ticket-customer-sync-check {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #52627a;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.ticket-customer-sync-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.ticket-customer-update-status {
  color: #52627a;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.ticket-inline-customer-create {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr)) auto auto minmax(240px, 1fr);
  align-items: center;
  gap: 8px;
}

.ticket-inline-customer-create[hidden] {
  display: none;
}

.ticket-inline-customer-address-grid {
  display: contents;
}

.ticket-create-description-wrap {
  display: grid;
  gap: 8px;
}

.ticket-create-form input,
.ticket-create-form textarea,
.ticket-create-form select {
  min-width: 0;
  border: 1px solid rgba(82, 98, 122, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.ticket-create-form input,
.ticket-create-form select {
  min-height: 42px;
  padding: 0 12px;
}

.ticket-create-form textarea {
  min-height: 88px;
  resize: vertical;
  padding: 12px;
  line-height: 1.45;
}

.ticket-create-form button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: #0f9f6e;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15, 159, 110, 0.22);
}

.ticket-create-form button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  box-shadow: none;
}

.ticket-create-form .ticket-customer-dropdown-toggle {
  min-height: 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.1);
  color: #0b4db3;
  box-shadow: none;
}

.ticket-create-form .ticket-customer-dropdown button {
  min-height: 42px;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  box-shadow: none;
  padding: 8px 10px;
}

.ticket-create-form .ticket-customer-dropdown button:hover,
.ticket-create-form .ticket-customer-dropdown button:focus-visible {
  background: rgba(37, 99, 235, 0.09);
}

.ticket-create-file-picker {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  border: 1px solid rgba(43, 106, 246, 0.22);
  border-radius: 999px;
  background: #fff;
  color: #0b4db3;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  padding: 0 14px;
}

.ticket-create-file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
}

.ticket-create-file-picker input {
  display: none;
}

.ticket-create-file-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.ticket-create-file-preview span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  border-radius: 999px;
  background: rgba(43, 106, 246, 0.1);
  color: #0b4db3;
  font-size: 12px;
  font-weight: 850;
  padding: 6px 9px;
  overflow-wrap: anywhere;
}

.ticket-create-file-preview button {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(11, 77, 179, 0.12);
  color: #0b4db3;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
}

.ticket-create-file-preview button:hover,
.ticket-create-file-preview button:focus-visible {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
  outline: none;
}

.technician-report-form {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 16px;
  background: rgba(255, 251, 235, 0.72);
}

.technician-form-content {
  display: grid;
  gap: 10px;
}

.technician-wizard-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px 0 4px;
}

.technician-wizard-chip {
  min-height: 34px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(184, 93, 0, 0.18) !important;
  background: rgba(255, 255, 255, 0.76) !important;
  color: #8a4b00 !important;
  box-shadow: none !important;
}

.technician-wizard-chip.is-active {
  background: #b85d00 !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(184, 93, 0, 0.18) !important;
}

.technician-report-form.is-step-mode > .technician-form-content > .technician-flow-step[data-wizard-panel]:not(.is-active) {
  display: none;
}

.technician-flow-step {
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(184, 93, 0, 0.14);
  padding-top: 12px;
}

.technician-flow-step:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.technician-step-head {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #8a4b00;
  font-size: 13px;
  font-weight: 950;
}

.technician-step-head span {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: #b85d00;
  color: #fff;
}

.technician-ticket-preview {
  border: 1px dashed rgba(184, 93, 0, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
  color: #52627a;
  padding: 12px;
  font-size: 13px;
  font-weight: 750;
}

.technician-ticket-preview strong,
.technician-ticket-preview span {
  display: block;
}

.technician-ticket-preview p {
  margin: 5px 0 0;
}

.technician-report-filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 0.35fr) auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.technician-report-filter-form input,
.technician-report-filter-form select {
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(82, 98, 122, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  padding: 0 12px;
}

.technician-report-filter-form button {
  min-height: 42px;
  border: 1px solid rgba(184, 93, 0, 0.18);
  border-radius: 999px;
  padding: 0 14px;
  background: #fff;
  color: #8a4b00;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.technician-report-filter-form button[type="submit"] {
  border-color: transparent;
  background: #b85d00;
  color: #fff;
}

.technician-report-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(120px, 1fr));
  gap: 10px;
}

.additional-technicians-panel,
.material-items-panel {
  display: grid;
  gap: 8px;
}

.additional-technicians-head,
.material-items-head {
  display: grid;
  grid-template-columns: max-content minmax(118px, 180px);
  align-items: center;
  gap: 10px;
}

.additional-technicians-head strong,
.material-items-head strong {
  min-width: max-content;
}

.technician-report-form .additional-technicians-head button,
.technician-report-form .material-items-head button {
  width: auto;
  min-width: 118px;
  padding-inline: 18px;
}

.additional-technicians-list,
.material-items-list {
  display: grid;
  gap: 8px;
}

.additional-technician-row {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(184, 93, 0, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.64);
}

.material-item-row {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(184, 93, 0, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.64);
}

.additional-technician-editor {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) 92px 92px minmax(120px, 1fr) minmax(120px, 1fr);
  gap: 6px;
  align-items: center;
}

.material-item-editor {
  display: grid;
  grid-template-columns: 72px minmax(110px, 0.8fr) minmax(110px, 0.8fr) minmax(240px, 1.5fr) minmax(110px, 0.8fr) minmax(110px, 0.8fr);
  gap: 6px;
  align-items: center;
}

.additional-technician-summary,
.material-item-summary {
  display: none;
  gap: 4px;
  min-width: 0;
}

.additional-technician-summary strong,
.material-item-summary strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.additional-technician-summary span,
.material-item-summary span {
  color: #52627a;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.additional-technician-actions,
.material-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.additional-technician-actions button,
.material-item-actions button {
  min-width: 116px;
  height: 42px;
  justify-content: center;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.additional-technician-actions [data-additional-save],
.material-item-actions [data-material-save] {
  background: #0f9f6e;
  box-shadow: 0 10px 22px rgba(15, 159, 110, 0.2);
}

.additional-technician-actions [data-additional-edit],
.material-item-actions [data-material-edit] {
  display: none;
  background: #2563eb;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
}

.additional-technician-actions [data-additional-remove],
.material-item-actions [data-material-remove] {
  background: #b85d00;
}

.additional-technician-row.is-saved,
.material-item-row.is-saved {
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

@media (min-width: 900px) {
  .additional-technician-row.is-saved,
  .material-item-row.is-saved {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.additional-technician-row.is-saved .additional-technician-summary,
.material-item-row.is-saved .material-item-summary {
  display: grid;
}

.additional-technician-row.is-saved .additional-technician-editor,
.material-item-row.is-saved .material-item-editor {
  display: none;
}

.additional-technician-row.is-saved [data-additional-save],
.material-item-row.is-saved [data-material-save] {
  display: none;
}

.additional-technician-row.is-saved [data-additional-edit],
.material-item-row.is-saved [data-material-edit] {
  display: inline-flex;
}

.technician-report-form input,
.technician-report-form textarea,
.technician-report-form select {
  min-width: 0;
  border: 1px solid rgba(82, 98, 122, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.technician-report-form input,
.technician-report-form select {
  min-height: 42px;
  padding: 0 12px;
}

.technician-report-form .is-field-error {
  border-color: rgba(220, 38, 38, 0.55) !important;
  background: rgba(254, 226, 226, 0.5) !important;
  outline: 3px solid rgba(220, 38, 38, 0.14);
}

.technician-ready-row.is-field-error {
  padding: 10px 12px;
  border: 1px solid rgba(220, 38, 38, 0.55);
  border-radius: 12px;
  background: rgba(254, 226, 226, 0.5);
  outline: 3px solid rgba(220, 38, 38, 0.14);
}

.technician-time-field {
  display: contents;
}

.technician-time-field > span {
  display: none;
}

.technician-required-field {
  display: contents;
}

.technician-required-hint {
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.technician-report-grid .technician-required-hint {
  display: none;
}

.technician-report-form textarea {
  resize: vertical;
  padding: 12px;
  line-height: 1.45;
}

.technician-photo-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.technician-photo-picker {
  display: inline-flex;
  min-width: 160px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(184, 93, 0, 0.18);
  border-radius: 999px;
  background: #fff7ed;
  color: #9a4a00;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  padding: 0 18px;
  box-shadow: 0 10px 22px rgba(184, 93, 0, 0.12);
}

.technician-photo-library {
  border-color: rgba(15, 159, 110, 0.26);
  background: #ecfdf5;
  color: #047857;
  box-shadow: 0 10px 22px rgba(15, 159, 110, 0.14);
}

.technician-photo-camera {
  border-color: rgba(184, 93, 0, 0.28);
  background: #fff3df;
  color: #9a4a00;
  box-shadow: 0 10px 22px rgba(184, 93, 0, 0.16);
}

.technician-photo-picker input {
  display: none;
}

.technician-photo-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.technician-photo-preview span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(15, 159, 110, 0.1);
  color: #11643a;
  font-size: 12px;
  font-weight: 850;
  padding: 6px 9px;
}

.technician-photo-preview button {
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(244, 63, 103, 0.2);
  border-radius: 999px;
  background: rgba(244, 63, 103, 0.09);
  color: #a21436;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.technician-signature-box {
  display: grid;
  gap: 10px;
  margin: 10px 0 4px;
  padding: 10px;
  border: 1px solid rgba(82, 98, 122, 0.22);
  border-radius: 12px;
  background: #fff;
}

.technician-signature-box.is-collapsed {
  display: none;
}

.technician-signature-box .technician-signature-clear,
.technician-signature-box .technician-inline-signature-clear {
  justify-self: end;
  min-height: 34px;
  padding: 0 12px;
  background: #dc2626;
  box-shadow: none;
  font-size: 12px;
}

.technician-signature-pad {
  width: 100%;
  height: 180px;
  border: 1px dashed rgba(82, 98, 122, 0.28);
  border-radius: 10px;
  background: #fff;
  touch-action: none;
}

.technician-signature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.technician-signature-trigger-row {
  display: flex;
  justify-content: center;
  margin: 8px 0 2px;
}

.technician-signature-trigger-row button {
  min-width: 170px;
}

.technician-confirm-separator {
  height: 1px;
  margin: 12px 0 6px;
  background: linear-gradient(90deg, transparent, rgba(184, 93, 0, 0.24), transparent);
}

.technician-wizard-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.technician-wizard-back {
  background: #64748b !important;
  box-shadow: 0 10px 22px rgba(82, 98, 122, 0.16) !important;
}

.technician-wizard-next {
  background: #0f9f6e !important;
  box-shadow: 0 10px 22px rgba(15, 159, 110, 0.22) !important;
}

.technician-final-actions {
  justify-content: center;
  align-items: center;
  margin-top: 12px;
}

.technician-final-nav-actions {
  margin-top: 8px;
}

.technician-final-submit-actions {
  margin-top: 8px;
}

.technician-ready-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  color: #52627a;
  font-size: 13px;
  font-weight: 850;
}

.ticket-customer-edit-inline .ticket-note-actions {
  align-items: center;
  padding-top: 2px;
}

.ticket-customer-edit-inline .ticket-customer-update-status {
  max-width: 55%;
  color: #52627a;
  line-height: 1.45;
}

.ticket-customer-edit-inline .ticket-note-actions button {
  min-width: 154px;
}

.technician-ready-row label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.technician-report-form button {
  width: fit-content;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: #b85d00;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(184, 93, 0, 0.18);
}

.technician-report-form button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  box-shadow: none;
}

.technician-final-actions button {
  min-width: 150px;
  justify-content: center;
}

.technician-final-actions button[type="submit"],
.technician-final-actions [data-technician-save] {
  background: #0f9f6e;
  box-shadow: 0 10px 22px rgba(15, 159, 110, 0.22);
}

.technician-final-actions .technician-report-print {
  background: #2563eb;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.2);
}

.technician-final-actions .technician-signature-open,
.technician-final-actions .technician-inline-signature-open {
  background: #64748b;
  box-shadow: 0 10px 22px rgba(82, 98, 122, 0.16);
}

.technician-signature-trigger-row .technician-signature-open,
.technician-signature-trigger-row .technician-inline-signature-open {
  background: #64748b;
  box-shadow: 0 10px 22px rgba(82, 98, 122, 0.16);
}

.technician-final-actions .technician-report-new {
  background: #b85d00;
  box-shadow: 0 10px 22px rgba(184, 93, 0, 0.18);
}

.ticket-filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) repeat(5, minmax(120px, 1fr)) auto;
  gap: 10px;
  align-items: center;
}

.ticket-filter-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(31, 107, 255, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.62), rgba(255, 255, 255, 0.94));
}

.ticket-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ticket-filter-head strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
}

.ticket-filter-form input,
.ticket-filter-form select {
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font: inherit;
  font-weight: 750;
}

.ticket-filter-form button,
.ticket-filter-form a {
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.ticket-filter-form a {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.ticket-filter-form .ticket-filter-reset {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--blue-line);
  background: #eef5ff;
  color: var(--blue);
  font-size: 17px;
  line-height: 1;
}

.ticket-filter-form .ticket-filter-reset:hover,
.ticket-filter-form .ticket-filter-reset:focus-visible {
  border-color: var(--blue);
  outline: none;
}

.ticket-list-content {
  display: grid;
  gap: 0;
}

.technician-report-list-content {
  display: grid;
  gap: 0;
}

.technician-report-list-wrap {
  display: grid;
  max-height: 82vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  padding: 10px;
}

.technician-report-body {
  display: grid;
  gap: 10px;
}

.technician-report-card-group {
  display: grid;
  gap: 0;
}

.technician-report-card-group.is-open {
  gap: 0;
}

.technician-report-empty {
  padding: 16px;
  border: 1px solid rgba(82, 98, 122, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  color: #52627a;
  font-weight: 800;
}

.technician-report-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(82, 98, 122, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.technician-report-card:hover,
.technician-report-card:focus-visible,
.technician-report-card.is-selected {
  border-color: rgba(37, 99, 235, 0.34);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.92), rgba(236, 253, 245, 0.78));
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  outline: none;
}

.technician-report-card-group.is-open .technician-report-card {
  border-color: rgba(37, 99, 235, 0.34);
  border-bottom-color: rgba(37, 99, 235, 0.14);
  border-radius: 14px 14px 0 0;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(236, 253, 245, 0.82));
}

.technician-report-card-main {
  display: grid;
  gap: 5px;
}

.technician-report-card-title,
.technician-report-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.technician-report-card-title > span:first-child {
  color: #52627a;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.technician-report-card-main > strong {
  color: var(--text);
  font-size: 17px;
  line-height: 1.2;
}

.technician-report-card-main > small,
.technician-report-card-footer > span:first-child {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.technician-report-card-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.technician-report-card-meta span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(82, 98, 122, 0.1);
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.92);
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
}

.technician-report-card-meta strong {
  color: #52627a;
  font-size: 10px;
  text-transform: uppercase;
}

.technician-report-card p {
  margin: 0;
  color: #52627a;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.technician-inline-editor-host {
  display: grid;
  gap: 0;
  margin-top: 14px;
}

.technician-inline-edit-row {
  padding: 0 0 8px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.92), rgba(236, 253, 245, 0.78));
}

.technician-inline-form {
  width: 100%;
  margin: 0;
  padding: 22px;
  border: 0;
  border-radius: 0 0 16px 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.technician-inline-content {
  margin-top: 12px;
}

.technician-inline-form .technician-flow-step {
  border-radius: 14px;
  background: rgba(255, 251, 235, 0.44);
  padding: 12px;
}

.technician-inline-form .technician-flow-step:first-of-type {
  padding-top: 12px;
}

.technician-inline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.technician-inline-head small {
  display: block;
  color: #52627a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.technician-inline-head strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
}

.technician-inline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.technician-inline-work-grid {
  grid-template-columns: minmax(180px, 1.4fr) repeat(4, minmax(110px, 1fr));
}

.technician-inline-form .additional-technicians-panel,
.technician-inline-form .material-items-panel,
.technician-inline-photo-panel {
  margin: 12px 0;
  padding: 14px;
  border: 1px solid rgba(184, 93, 0, 0.16);
  border-radius: 14px;
  background: rgba(255, 247, 237, 0.58);
}

.technician-inline-photo-panel {
  display: grid;
  gap: 10px;
  border-color: rgba(15, 159, 110, 0.18);
  background: rgba(236, 253, 245, 0.58);
}

.technician-inline-photo-panel > strong {
  color: var(--text);
  font-size: 13px;
}

.technician-inline-existing-photos,
.technician-inline-photo-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.technician-inline-photo-chip,
.technician-inline-photo-preview span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(15, 159, 110, 0.1);
  color: #11643a;
  font-size: 12px;
  font-weight: 850;
  padding: 6px 9px;
}

.technician-inline-photo-chip a {
  color: inherit;
  text-decoration: none;
}

.technician-inline-photo-chip button,
.technician-inline-photo-preview button {
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(244, 63, 103, 0.2);
  border-radius: 999px;
  background: rgba(244, 63, 103, 0.09);
  color: #a21436;
  box-shadow: none;
  font-size: 11px;
}

.technician-inline-signature-pad {
  height: 260px;
  margin-top: 10px;
}

.technician-inline-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.technician-inline-actions .report-print-link,
.technician-inline-actions button {
  min-height: 40px;
  border-radius: 999px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.technician-inline-actions .report-print-link {
  border: 1px solid rgba(37, 99, 235, 0.24);
  background: #eff6ff;
  color: #0b4fb3;
}

.technician-inline-actions .technician-inline-close {
  background: #eef2f7;
  color: #243247;
  box-shadow: none;
}

.list-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 10px;
}

.list-panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.list-panel-head strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.2;
}

.list-full-toggle {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(31, 107, 255, 0.18);
  border-radius: 999px;
  background: rgba(31, 107, 255, 0.08);
  color: #174da8;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.list-full-toggle:hover,
.list-full-toggle:focus-visible,
.list-full-toggle[aria-pressed="true"] {
  border-color: rgba(31, 107, 255, 0.3);
  background: rgba(31, 107, 255, 0.13);
  transform: translateY(-1px);
  outline: none;
}

.ticket-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 16px;
}

.ticket-list-content.is-full-mode .ticket-workspace {
  grid-template-columns: minmax(0, 1fr);
}

.ticket-list-content.is-full-mode .ticket-detail-panel {
  display: none;
}

.ticket-list-content.is-full-mode .ticket-table-wrap {
  max-height: none;
  overflow: visible;
}

.technician-report-list-content.is-full-mode .technician-report-list-wrap {
  max-height: 88vh;
}

.ticket-list-content.is-detail-full-mode .ticket-filter-form,
.ticket-list-content.is-detail-full-mode .ticket-table-wrap,
.ticket-list-content.is-detail-full-mode .ticket-card-list {
  display: none;
}

.ticket-list-content.is-technician-detail-screen .ticket-filter-form,
.ticket-list-content.is-technician-detail-screen .ticket-table-wrap,
.ticket-list-content.is-technician-detail-screen .ticket-card-list {
  display: none !important;
}

.ticket-list-content.is-detail-full-mode .ticket-workspace {
  grid-template-columns: minmax(0, 1fr);
}

.ticket-list-content.is-technician-detail-screen .ticket-workspace {
  grid-template-columns: minmax(0, 1fr);
}

.ticket-list-content.is-detail-full-mode .ticket-detail-panel {
  max-height: none;
  overflow: visible;
}

body.is-popup-minimal .topbar,
body.is-popup-minimal .tool-screen-nav,
body.is-popup-minimal button[data-detail-action="full"] {
  display: none;
}

body.is-popup-minimal .ticket-detail-back-button {
  display: none !important;
}

body.is-popup-minimal .internal-ticket-section > *:not(#internal-ticket-content) {
  display: none;
}

body.is-popup-minimal #internal-ticket-content > *:not(.ticket-list-content) {
  display: none;
}

body.is-popup-minimal .ticket-list-content > *:not(.ticket-workspace) {
  display: none;
}

body.is-popup-minimal .ticket-table-wrap,
body.is-popup-minimal .ticket-card-list {
  display: none !important;
}

body.is-popup-minimal .ticket-workspace {
  grid-template-columns: minmax(0, 1fr);
}

body.is-popup-minimal .ticket-detail-panel {
  max-height: none;
  overflow: visible;
}

body.is-popup-minimal.is-technician-report-return-active .technician-report-section .tool-screen-nav {
  display: flex;
}

body.is-popup-minimal.is-technician-report-return-active .technician-report-section .dashboard-refresh-button {
  display: none;
}

.ticket-list-content.is-technician-detail-screen .ticket-detail-panel {
  display: block !important;
  max-height: none;
  overflow: visible;
}

.ticket-table-wrap,
.ticket-detail-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--card-shadow);
}

.ticket-table-wrap {
  overflow: auto;
  scrollbar-gutter: stable;
  max-height: 620px;
}

.ticket-column-menu {
  position: relative;
}

.ticket-column-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(180, 83, 9, 0.3);
  border-radius: 999px;
  background: rgba(254, 243, 199, 0.92);
  color: #92400e;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(146, 64, 14, 0.08);
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, transform 150ms ease;
}

.ticket-column-toggle::before {
  content: "";
  width: 15px;
  height: 15px;
  border-radius: 4px;
  background:
    linear-gradient(90deg, currentColor 0 2px, transparent 2px 6px, currentColor 6px 8px, transparent 8px 12px, currentColor 12px 14px),
    linear-gradient(currentColor 0 2px, transparent 2px);
  opacity: 0.85;
}

.ticket-column-toggle:hover,
.ticket-column-toggle:focus-visible {
  border-color: rgba(180, 83, 9, 0.42);
  background: rgba(253, 230, 138, 0.98);
  color: #78350f;
  transform: translateY(-1px);
  outline: none;
}

.ticket-column-toggle[aria-expanded="true"] {
  background: #92400e;
  border-color: #92400e;
  color: #fff;
}

.ticket-column-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 15;
  width: 250px;
  padding: 14px;
  border: 1px solid rgba(82, 98, 122, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18);
}

.ticket-column-panel strong {
  display: block;
  margin-bottom: 8px;
  color: #0b1b3a;
  font-size: 13px;
}

.ticket-column-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
}

.ticket-column-option:hover {
  background: rgba(239, 246, 255, 0.72);
}

.ticket-column-panel label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 7px 8px;
  border-radius: 10px;
  color: #26364d;
  font-size: 13px;
  font-weight: 800;
}

.ticket-column-panel input {
  width: 16px;
  height: 16px;
  accent-color: #16a874;
}

.ticket-column-order-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-right: 5px;
}

.ticket-column-order-actions button {
  width: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 9px;
  background: rgba(239, 246, 255, 0.95);
  color: #174da8;
}

.ticket-column-order-actions button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.ticket-column-panel > button {
  width: 100%;
  margin-top: 8px;
  padding: 9px 10px;
  border-radius: 999px;
  background: rgba(236, 253, 245, 0.95);
  color: #08714d;
}

.ticket-billing-table-wrap {
  max-height: 78vh;
}

.ticket-card-list {
  display: none;
}

.ticket-card-empty,
.ticket-card-item {
  border: 1px solid rgba(82, 98, 122, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
}

.ticket-card-empty {
  padding: 18px;
  color: var(--muted);
  font-weight: 800;
}

.ticket-card-item {
  display: grid;
  gap: 12px;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.ticket-card-toggle {
  display: grid;
  gap: 12px;
  padding: 15px;
}

.ticket-card-item:focus-visible,
.ticket-card-item:hover,
.ticket-card-toggle:focus-visible {
  border-color: rgba(31, 107, 255, 0.3);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(236, 253, 245, 0.82));
  outline: none;
}

.ticket-card-item.is-selected {
  border-color: rgba(31, 107, 255, 0.44);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(236, 253, 245, 0.9));
  box-shadow: 0 16px 34px rgba(31, 107, 255, 0.14);
}

.ticket-card-item.is-selected .ticket-card-toggle {
  box-shadow: inset 4px 0 0 #1f6bff;
}

.ticket-card-main {
  display: grid;
  gap: 5px;
}

.ticket-card-main strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
}

.ticket-card-main span,
.ticket-card-main small,
.ticket-card-foot {
  color: var(--muted);
  font-weight: 800;
}

.ticket-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.ticket-card-foot {
  font-size: 12px;
}

body.is-technician-user .ticket-table-wrap {
  display: none !important;
}

body.is-technician-user .ticket-card-list {
  display: grid;
  gap: 10px;
  overflow: visible;
}

body.is-technician-user .ticket-workspace {
  grid-template-columns: minmax(0, 1fr);
}

body.is-technician-user .ticket-card-item.is-open {
  border-color: rgba(17, 187, 122, 0.36);
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.96), rgba(255, 255, 255, 0.92));
}

.technician-report-list-wrap.has-inline-edit,
.technician-report-list-wrap:has(.technician-inline-edit-row) {
  max-height: 92vh;
}

.ticket-table {
  width: 100%;
  min-width: 1160px;
  border-collapse: collapse;
  font-size: 14px;
}

.ticket-table th,
.ticket-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(82, 98, 122, 0.1);
  text-align: left;
  vertical-align: top;
}

.ticket-table th:first-child,
.ticket-table td:first-child {
  width: 116px;
  white-space: nowrap;
}

.ticket-table th[data-ticket-column="priority"],
.ticket-table td[data-ticket-column="priority"] {
  width: 110px;
}

.ticket-table th[data-ticket-column="status"],
.ticket-table td[data-ticket-column="status"] {
  width: 170px;
  max-width: 170px;
}

.ticket-table th[data-ticket-column="execution"],
.ticket-table td[data-ticket-column="execution"] {
  width: 150px;
  max-width: 150px;
}

.ticket-table th[data-ticket-column="activity"],
.ticket-table td[data-ticket-column="activity"] {
  width: 160px;
  max-width: 160px;
}

.ticket-table td[data-ticket-column="activity"] {
  padding-right: 10px;
}

.ticket-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.96);
  color: #52627a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ticket-sort-button,
.billing-sort-button {
  width: 100%;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.ticket-sort-button span,
.billing-sort-button span {
  color: #1f6bff;
  font-size: 13px;
  line-height: 1;
}

.ticket-sort-button.is-active,
.billing-sort-button.is-active {
  color: #174da8;
}

.ticket-sort-button:hover,
.ticket-sort-button:focus-visible,
.billing-sort-button:hover,
.billing-sort-button:focus-visible {
  color: #174da8;
  outline: none;
}

.ticket-table tbody tr {
  cursor: pointer;
}

.ticket-table tbody tr:hover,
.ticket-table tbody tr:focus-visible {
  background: rgba(244, 63, 103, 0.06);
  outline: none;
}

.ticket-table-body tr.is-selected {
  background: linear-gradient(90deg, rgba(31, 107, 255, 0.14), rgba(17, 187, 122, 0.08));
  box-shadow: inset 4px 0 0 #1f6bff;
}

.ticket-table-body tr.is-selected td {
  border-color: rgba(31, 107, 255, 0.16);
}

.ticket-table-body tr.is-selected td:first-child strong {
  color: #174da8;
}

.priority-pill,
.status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(31, 107, 255, 0.08);
  color: #174da8;
  font-size: 12px;
  font-weight: 900;
}

.priority-pill.niedrig {
  background: rgba(32, 184, 105, 0.1);
  color: #11643a;
}

.priority-pill.normal {
  background: rgba(31, 107, 255, 0.08);
  color: #174da8;
}

.priority-pill.hoch,
.priority-pill.dringend {
  background: rgba(244, 63, 103, 0.1);
  color: #a21436;
}

.status-pill {
  background: rgba(82, 98, 122, 0.1);
  color: #334155;
}

.status-pill.offen {
  background: rgba(31, 107, 255, 0.08);
  color: #174da8;
}

.status-pill.in-bearbeitung {
  background: rgba(20, 184, 166, 0.12);
  color: #0f766e;
}

.status-pill.in-klaerung {
  background: rgba(245, 158, 11, 0.13);
  color: #8a4b00;
}

.status-pill.geloest,
.status-pill.geschlossen,
.status-pill.bereit {
  background: rgba(32, 184, 105, 0.1);
  color: #11643a;
}

.status-pill.archiviert,
.status-pill.pruefen {
  background: rgba(245, 158, 11, 0.13);
  color: #8a4b00;
}

.status-pill.geloescht {
  background: rgba(244, 63, 103, 0.1);
  color: #a21436;
}

.execution-date-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(82, 98, 122, 0.12);
  background: rgba(82, 98, 122, 0.08);
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.execution-date-pill strong,
.execution-date-pill small {
  font: inherit;
}

.execution-date-pill small {
  opacity: 0.78;
}

.execution-date-pill.today {
  border-color: rgba(20, 184, 166, 0.22);
  background: rgba(20, 184, 166, 0.12);
  color: #0f766e;
}

.execution-date-pill.overdue {
  border-color: rgba(244, 63, 103, 0.22);
  background: rgba(244, 63, 103, 0.11);
  color: #a21436;
}

.execution-date-pill.planned {
  border-color: rgba(31, 107, 255, 0.18);
  background: rgba(31, 107, 255, 0.08);
  color: #174da8;
}

.execution-date-pill.muted {
  color: #64748b;
}

.ready-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(32, 184, 105, 0.1);
  color: #11643a;
  font-size: 12px;
  font-weight: 900;
}

.report-print-link {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  margin-top: 8px;
  padding: 0 9px;
  border: 1px solid rgba(31, 107, 255, 0.22);
  border-radius: 7px;
  background: rgba(31, 107, 255, 0.07);
  color: #174da8;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.report-print-link:hover {
  border-color: rgba(31, 107, 255, 0.36);
  background: rgba(31, 107, 255, 0.12);
}

.portal-image-viewer,
.portal-pdf-viewer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  grid-template-rows: auto 1fr;
  background: rgba(7, 22, 49, 0.96);
}

.portal-image-viewer[hidden],
.portal-pdf-viewer[hidden] {
  display: none !important;
}

.portal-image-viewer-bar,
.portal-pdf-viewer-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: max(14px, env(safe-area-inset-top)) 18px 14px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(148, 163, 184, 0.26);
}

.portal-image-viewer-back,
.portal-pdf-viewer-back,
.portal-image-viewer-print,
.portal-pdf-viewer-print {
  min-height: 44px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: #0f9f6e;
  color: #fff;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(15, 159, 110, 0.18);
}

.portal-image-viewer-print,
.portal-pdf-viewer-print {
  margin-left: auto;
  border: 1px solid rgba(31, 107, 255, 0.22);
  background: rgba(31, 107, 255, 0.08);
  color: #174da8;
  box-shadow: none;
}

.portal-image-viewer-title,
.portal-pdf-viewer-title {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-pdf-viewer-open {
  color: #174da8;
  font-weight: 850;
  text-decoration: none;
}

.portal-image-viewer-stage {
  min-height: 0;
  padding: 14px;
  overflow: auto;
  touch-action: pan-x pan-y pinch-zoom;
}

.portal-image-viewer-stage img {
  display: block;
  width: min(100%, 1100px);
  max-width: none;
  height: auto;
  max-height: none;
  margin: 0 auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.portal-pdf-viewer iframe {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #fff;
}

body.portal-image-viewer-open,
body.portal-pdf-viewer-open {
  overflow: hidden;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.table-actions button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(31, 107, 255, 0.2);
  border-radius: 999px;
  background: rgba(31, 107, 255, 0.08);
  color: #174da8;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

body.is-technician-user .list-full-toggle[data-full-target="internal-ticket-list"],
body.is-technician-user .section-toggle[data-collapse-target="internal-ticket-content"],
body.is-technician-user .section-toggle[data-collapse-target="internal-ticket-list"],
body.is-technician-user .ticket-column-menu {
  display: none !important;
}

body.is-technician-user .section-toggle[data-collapse-target="technician-report-content"],
body.is-technician-user .list-full-toggle[data-full-target="technician-report-list"],
body.is-technician-user .section-toggle[data-collapse-target="technician-report-list"] {
  display: none !important;
}

.section-toggle[data-collapse-target="technician-report-content"] {
  display: none !important;
}

body.is-technician-user .ticket-created-from,
body.is-technician-user .ticket-created-to,
body.is-technician-user .ticket-department-filter,
body.is-technician-user .ticket-agent-filter {
  display: none !important;
}

.table-actions button.danger {
  border-color: rgba(244, 63, 103, 0.2);
  background: rgba(244, 63, 103, 0.08);
  color: #a21436;
}

.table-actions button:hover,
.table-actions button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.ticket-delete-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(244, 63, 103, 0.14);
}

.ticket-delete-actions span {
  color: #7f4a58;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}

.ticket-delete-actions button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(244, 63, 103, 0.24);
  border-radius: 999px;
  background: rgba(244, 63, 103, 0.1);
  color: #a21436;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.ticket-billing-panel {
  border-color: rgba(17, 187, 122, 0.18);
  background:
    linear-gradient(135deg, rgba(17, 187, 122, 0.07), rgba(255, 255, 255, 0.96) 46%, rgba(236, 253, 245, 0.72));
}

.ticket-billing-head {
  margin: 0;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(17, 187, 122, 0.16);
}

.ticket-billing-head strong {
  color: #071631;
  font-size: 15px;
  font-weight: 950;
}

.ticket-billing-status {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  border: 1px solid rgba(17, 187, 122, 0.22);
  background: rgba(17, 187, 122, 0.1);
  color: #06724f;
  font-size: 12px;
  font-weight: 900;
}

.ticket-billing-monitoring-content {
  padding: 0 0 4px;
}

.ticket-billing-monitoring-shell {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(31, 107, 255, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.82), rgba(255, 255, 255, 0.96));
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.erp-monitoring-shell {
  border-color: rgba(37, 99, 235, 0.16);
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.86), rgba(255, 255, 255, 0.96));
}

.erp-monitoring-shell .workspace-metric {
  border-color: rgba(37, 99, 235, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

.ticket-billing-monitoring-shell + .ticket-billing-panel {
  margin-top: 16px;
}

.ticket-billing-monitoring-bar {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ticket-billing-monitoring-bar strong {
  color: #071631;
  font-size: 15px;
  font-weight: 950;
}

.ticket-billing-monitoring-bar > div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ticket-billing-monitoring-bar span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(31, 107, 255, 0.2);
  border-radius: 999px;
  background: rgba(31, 107, 255, 0.08);
  color: #174da8;
  font-size: 12px;
  font-weight: 900;
}

.ticket-billing-monitoring-bar .section-toggle {
  min-height: 34px;
  border-color: rgba(31, 107, 255, 0.24);
  background: rgba(31, 107, 255, 0.09);
  color: #174da8;
  box-shadow: none;
}

.ticket-billing-monitoring-bar .section-toggle:hover,
.ticket-billing-monitoring-bar .section-toggle:focus-visible {
  background: #1f6bff;
  color: #fff;
}

.ticket-billing-monitoring-box {
  padding: 12px 0 0;
  border-top: 1px solid rgba(31, 107, 255, 0.12);
  background: transparent;
  box-shadow: none;
}

.ticket-billing-monitoring-box .workspace-metric {
  border-color: rgba(17, 187, 122, 0.14);
  background: rgba(255, 255, 255, 0.9);
}

.trash-panel {
  display: grid;
  gap: 12px;
}

.ticket-billing-filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(82, 98, 122, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
}

.ticket-billing-filter-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
}

.ticket-billing-filter-form input[name="search"] {
  flex: 1 1 260px;
}

.ticket-billing-filter-form select {
  flex: 0 1 170px;
}

.billing-flag-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 14px;
  line-height: 1;
}

.billing-flag-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(82, 98, 122, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #52627a;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.billing-flag-toggle:hover,
.billing-flag-toggle:focus-visible {
  border-color: rgba(31, 107, 255, 0.4);
  outline: none;
}

.billing-flag-toggle[aria-pressed="true"] {
  border-color: rgba(31, 107, 255, 0.3);
  background: #1f6bff;
  color: #fff;
}

.trash-filter-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.ticket-billing-filter-form input,
.ticket-billing-filter-form select,
.trash-filter-form input {
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(82, 98, 122, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.trash-filter-form button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #0f9f6e;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.trash-filter-form button[data-trash-action="reset"],
.trash-filter-form button[data-trash-action="refresh"] {
  border: 1px solid rgba(31, 107, 255, 0.18);
  background: rgba(31, 107, 255, 0.08);
  color: #174da8;
}

.ticket-billing-filter-form button[data-billing-action="reset"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  margin-left: auto;
  border: 1px solid rgba(82, 98, 122, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #52627a;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.ticket-billing-filter-form button[data-billing-action="reset"]:hover,
.ticket-billing-filter-form button[data-billing-action="reset"]:focus-visible {
  border-color: rgba(31, 107, 255, 0.4);
  color: #1f6bff;
  outline: none;
}

.billing-archive-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  min-height: 38px;
  padding: 4px;
  border: 1px solid rgba(82, 98, 122, 0.16);
  border-radius: 999px;
  background: rgba(241, 244, 248, 0.9);
}

.billing-archive-toggle button {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #52627a;
  box-shadow: none;
  font-size: 12px;
}

.billing-archive-toggle button[aria-pressed="true"] {
  background: #06724f;
  color: #fff;
  box-shadow: none;
}

.ticket-billing-table,
.trash-table {
  min-width: 760px;
  table-layout: fixed;
}

.trash-table th:first-child,
.trash-table td:first-child {
  width: 22%;
}

.trash-table th:nth-child(2),
.trash-table td:nth-child(2) {
  width: 28%;
}

.trash-table th:nth-child(3),
.trash-table td:nth-child(3) {
  width: 32%;
}

.trash-table th:nth-child(4),
.trash-table td:nth-child(4) {
  width: 18%;
}

.ticket-billing-table th:first-child,
.ticket-billing-table td:first-child {
  width: 18%;
}

.ticket-billing-table th:nth-child(2),
.ticket-billing-table td:nth-child(2) {
  width: 24%;
}

.ticket-billing-table th:nth-child(3),
.ticket-billing-table td:nth-child(3) {
  width: 26%;
}

.ticket-billing-table th:nth-child(4),
.ticket-billing-table td:nth-child(4) {
  width: 17%;
}

.ticket-billing-table th:nth-child(5),
.ticket-billing-table td:nth-child(5) {
  width: 15%;
}

.ticket-billing-table td strong,
.ticket-billing-table td small,
.trash-table td strong,
.trash-table td small {
  display: block;
}

.ticket-billing-table td small,
.trash-table td small {
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.ticket-billing-table tbody tr.is-selected,
.trash-table tbody tr.is-selected {
  background: linear-gradient(90deg, rgba(31, 107, 255, 0.12), rgba(255, 255, 255, 0.92));
  box-shadow: inset 4px 0 0 #1f6bff;
}

.billing-ticket-cell,
.billing-customer-cell {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.billing-ticket-cell > span {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.billing-subject-cell {
  display: block;
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.billing-proof-cell {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.billing-proof-cell span {
  display: grid;
  gap: 2px;
  min-height: 38px;
  align-content: center;
  padding: 6px 7px;
  border-radius: 10px;
  background: rgba(31, 107, 255, 0.06);
  color: #52627a;
  font-size: 10px;
  font-weight: 850;
}

.billing-proof-cell span:nth-child(1) {
  background: rgba(31, 107, 255, 0.08);
  color: #174da8;
}

.billing-proof-cell span:nth-child(2) {
  background: rgba(15, 159, 110, 0.1);
  color: #047857;
}

.billing-proof-cell span:nth-child(3) {
  background: rgba(184, 93, 0, 0.11);
  color: #92400e;
}

.billing-proof-cell b {
  color: var(--text);
  font-size: 14px;
  line-height: 1;
}

.ticket-billing-accordion-row td,
.trash-accordion-row td {
  padding: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 247, 255, 0.62));
}

.ticket-billing-accordion-detail,
.trash-accordion-detail {
  padding: 14px;
  border-top: 1px solid rgba(31, 107, 255, 0.14);
}

.ticket-billing-detail-card {
  gap: 14px;
}

.ticket-billing-detail-screen {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(31, 107, 255, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.62));
}

.ticket-billing-detail-back {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(31, 107, 255, 0.18);
  border-radius: 999px;
  background: rgba(31, 107, 255, 0.08);
  color: #174da8;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.ticket-billing-detail-back:hover,
.ticket-billing-detail-back:focus-visible {
  background: #1f6bff;
  color: #fff;
  outline: none;
}

.billing-detail-head {
  align-items: center;
  margin-bottom: 10px;
}

.billing-detail-head .eyebrow {
  margin: 0 0 8px;
}

.billing-detail-head h2 {
  margin: 0;
  font-size: 20px;
  overflow-wrap: anywhere;
}

.billing-detail-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.billing-detail-head-actions button {
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: #071631;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.trash-detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.trash-detail-actions button,
.trash-restore-block button {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #0ea66b;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(14, 166, 107, 0.18);
}

.trash-restore-block {
  border-color: rgba(14, 166, 107, 0.22);
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.88), rgba(255, 255, 255, 0.92));
}

.trash-restore-block p {
  margin: 0 0 12px;
  color: #53657f;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.billing-detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.billing-detail-meta span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(82, 98, 122, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
}

.billing-detail-meta b {
  color: #52627a;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.billing-detail-meta strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.billing-check-block {
  padding: 12px;
  border: 1px solid rgba(31, 107, 255, 0.14);
  border-radius: 14px;
  background: rgba(31, 107, 255, 0.06);
}

.billing-check-block.abgerechnet {
  border-color: rgba(184, 93, 0, 0.2);
  background: rgba(255, 243, 223, 0.72);
}

.billing-check-block.bezahlt {
  border-color: rgba(15, 159, 110, 0.22);
  background: rgba(236, 253, 245, 0.86);
}

.billing-check-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.billing-check-grid span {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid rgba(82, 98, 122, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  color: #52627a;
  font-size: 12px;
  font-weight: 850;
}

.billing-check-grid b {
  color: var(--text);
  font-size: 18px;
}

.billing-row-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.billing-row-actions button {
  min-height: 38px;
  min-width: 0;
  width: 100%;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.billing-row-actions button[data-status="offen"] {
  background: #1f6bff;
}

.billing-row-actions button[data-status="abgerechnet"] {
  background: #b85d00;
}

.billing-row-actions button[data-status="bezahlt"] {
  background: #0f9f6e;
}

.billing-row-actions button.danger {
  background: #071631;
}

.billing-row-actions button[data-billing-action="unarchive"] {
  background: #0ea66b;
}

.billing-row-actions button[aria-pressed="true"] {
  outline: 3px solid rgba(7, 22, 49, 0.14);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.92), 0 12px 24px rgba(7, 22, 49, 0.16);
  transform: translateY(-1px);
}

.billing-row-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  outline: none;
  box-shadow: none;
  transform: none;
}

.ticket-billing-panel .billing-evidence-row,
.ticket-billing-panel .billing-history-row {
  padding: 10px;
}

.billing-evidence-list,
.billing-history-row,
.billing-evidence-row {
  display: grid;
  gap: 8px;
}

.billing-evidence-row,
.billing-history-row {
  padding: 12px;
  border: 1px solid rgba(82, 98, 122, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
}

.billing-evidence-row {
  grid-template-columns: minmax(130px, 0.8fr) minmax(220px, 1.2fr) auto;
  align-items: center;
  gap: 10px;
}

.billing-evidence-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.billing-evidence-main strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.billing-evidence-main small {
  color: #52627a;
  font-size: 12px;
  font-weight: 800;
}

.billing-evidence-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.billing-evidence-metrics span {
  display: grid;
  gap: 2px;
  min-height: 42px;
  align-content: center;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(31, 107, 255, 0.06);
  color: #52627a;
  font-size: 11px;
  font-weight: 850;
}

.billing-evidence-metrics b {
  color: var(--text);
  font-size: 15px;
  line-height: 1;
}

.billing-evidence-materials {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.billing-evidence-materials span {
  border: 1px solid rgba(199, 102, 0, 0.2);
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.92);
  color: #8a3f00;
  font-size: 12px;
  font-weight: 850;
  padding: 6px 10px;
}

.billing-history-row {
  border-color: rgba(31, 107, 255, 0.16);
  border-left: 4px solid #1f6bff;
  background: linear-gradient(135deg, rgba(244, 248, 255, 0.96), rgba(255, 255, 255, 0.9));
  box-shadow: 0 8px 18px rgba(31, 107, 255, 0.05);
}

.billing-history-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(82, 98, 122, 0.08);
}

.billing-history-row strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.billing-history-row small {
  color: #52627a;
  font-size: 11px;
  font-weight: 800;
}

.billing-history-message {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(31, 107, 255, 0.1);
  color: #174da8;
  font-size: 11px;
  font-weight: 900;
}

.billing-history-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.billing-history-flow span {
  display: grid;
  min-height: 34px;
  align-content: center;
  gap: 2px;
  padding: 6px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #174da8;
  font-size: 12px;
  font-weight: 900;
}

.billing-history-flow b {
  color: #52627a;
  font-size: 10px;
  text-transform: uppercase;
}

.billing-history-status {
  border-left-color: #0f9f6e;
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.96), rgba(255, 255, 255, 0.92));
}

.billing-history-status .billing-history-message {
  background: rgba(15, 159, 110, 0.12);
  color: #047857;
}

.billing-history-status .billing-history-flow span {
  color: #047857;
}

.billing-history-archive {
  border-left-color: #b85d00;
  background: linear-gradient(135deg, rgba(255, 243, 223, 0.96), rgba(255, 255, 255, 0.92));
}

.billing-history-archive .billing-history-message {
  background: rgba(184, 93, 0, 0.12);
  color: #92400e;
}

.billing-history-archive .billing-history-flow span {
  color: #92400e;
}

.billing-history-note {
  border-left-color: #2563eb;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.92));
}

.billing-history-note .billing-history-message {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.billing-evidence-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.billing-evidence-row a,
.billing-evidence-actions button {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  justify-self: end;
  padding: 0 12px;
  border-radius: 999px;
  background: #071631;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(7, 22, 49, 0.14);
}

.billing-evidence-actions button {
  border: 0;
  background: #0f9f6e;
  cursor: pointer;
}

.billing-evidence-row a:hover,
.billing-evidence-row a:focus-visible,
.billing-evidence-actions button:hover,
.billing-evidence-actions button:focus-visible {
  background: #0f9f6e;
  outline: none;
}

.billing-evidence-actions button:hover,
.billing-evidence-actions button:focus-visible {
  background: #047857;
}

.billing-document-block {
  border-color: rgba(15, 159, 110, 0.18);
  background: linear-gradient(135deg, rgba(240, 253, 250, 0.9), rgba(255, 255, 255, 0.94));
}

.billing-document-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.billing-document-head h3 {
  margin: 0;
}

.billing-document-head p {
  margin: 4px 0 0;
  color: #52627a;
  font-size: 12px;
  font-weight: 800;
}

.billing-attachment-form {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(220px, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(15, 159, 110, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
}

.billing-attachment-form select {
  min-height: 40px;
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(82, 98, 122, 0.18);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}

.billing-attachment-form select {
  padding: 0 12px;
}

.billing-file-picker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 42px;
  min-width: 0;
  padding: 5px;
  border: 1px solid rgba(82, 98, 122, 0.18);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.billing-file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.billing-file-picker span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(31, 107, 255, 0.1);
  color: #174da8;
  font-size: 12px;
  font-weight: 900;
}

.billing-file-picker strong {
  min-width: 0;
  overflow: hidden;
  color: #52627a;
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.billing-attachment-form button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #0f9f6e;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(15, 159, 110, 0.16);
}

.billing-attachment-form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.billing-attachment-status {
  grid-column: 1 / -1;
  min-height: 16px;
  color: #52627a;
  font-size: 12px;
  font-weight: 800;
}

.billing-document-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.billing-document-row {
  display: grid;
  grid-template-columns: minmax(120px, 170px) minmax(180px, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(15, 159, 110, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
}

.billing-document-type {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(15, 159, 110, 0.12);
  color: #047857;
  font-size: 11px;
  font-weight: 950;
}

.billing-document-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.billing-document-main strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.billing-document-main small {
  color: #52627a;
  font-size: 11px;
  font-weight: 800;
}

.billing-document-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.billing-document-actions a,
.billing-document-actions button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(31, 107, 255, 0.1);
  color: #174da8;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.billing-document-actions button.danger {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

.billing-document-empty {
  padding: 12px;
  border: 1px dashed rgba(82, 98, 122, 0.18);
  border-radius: 12px;
  color: #52627a;
  font-size: 12px;
  font-weight: 850;
}

.billing-history-row p {
  margin: 0;
  color: #1f2937;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.ticket-billing-panel .billing-history-row {
  gap: 7px;
  padding: 9px 10px;
}

.status-pill.abgerechnet {
  background: rgba(255, 243, 223, 0.9);
  color: #8a4b00;
}

.status-pill.bezahlt {
  background: rgba(236, 253, 245, 0.95);
  color: #047857;
}

.ticket-detail-panel {
  min-height: 420px;
  max-height: 620px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 22px;
}

.ticket-detail-panel {
  scrollbar-width: thin;
  scrollbar-color: rgba(82, 98, 122, 0.34) transparent;
}

.ticket-detail-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(82, 98, 122, 0.1);
}

.ticket-detail-back-button {
  display: none;
}

.ticket-list-content.is-detail-full-mode .ticket-detail-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ticket-list-content.is-technician-detail-screen .ticket-detail-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ticket-detail-topbar button,
.ticket-detail-topbar-actions button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #0f9f6e;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(15, 159, 110, 0.2);
}

.ticket-detail-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
}

.ticket-detail-topbar-actions button {
  min-width: 92px;
  background: #071631;
  box-shadow: 0 14px 28px rgba(7, 22, 49, 0.16);
}

.ticket-detail-topbar button:hover,
.ticket-detail-topbar button:focus-visible,
.ticket-detail-topbar-actions button:hover,
.ticket-detail-topbar-actions button:focus-visible {
  background: #0d8f62;
  outline: none;
}

.ticket-detail-topbar-actions button:hover,
.ticket-detail-topbar-actions button:focus-visible,
.ticket-detail-topbar-actions button[aria-pressed="true"] {
  background: #12305f;
}

.ticket-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.ticket-detail-head > div {
  min-width: 0;
}

.ticket-detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.ticket-detail-actions button {
  max-width: 100%;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(31, 107, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #174da8;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.ticket-detail-actions button:hover,
.ticket-detail-actions button:focus-visible,
.ticket-detail-actions button[aria-pressed="true"] {
  border-color: rgba(31, 107, 255, 0.3);
  background: rgba(31, 107, 255, 0.1);
  outline: none;
}

.ticket-detail-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.muted-copy {
  color: #52627a;
  font-weight: 700;
  line-height: 1.5;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta-grid span {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(82, 98, 122, 0.07);
  color: #52627a;
  font-size: 13px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.detail-meta-grid b {
  color: var(--text);
  font-size: 12px;
  text-transform: uppercase;
}

.detail-block {
  margin-top: 18px;
}

.ticket-report-status-block {
  padding: 14px;
  border: 1px solid rgba(17, 187, 122, 0.18);
  border-radius: 14px;
  background: rgba(17, 187, 122, 0.06);
}

.write-block {
  padding: 14px;
  border: 1px solid rgba(17, 187, 122, 0.18);
  border-radius: 14px;
  background: rgba(17, 187, 122, 0.06);
}

.write-block > h3 {
  margin-bottom: 12px;
}

.ticket-edit-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  margin: -2px -2px 12px;
  padding: 2px 2px 10px;
  border-bottom: 1px solid rgba(17, 187, 122, 0.12);
  cursor: pointer;
  user-select: none;
}

.ticket-edit-card-head::after {
  content: "⌃";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(17, 187, 122, 0.1);
  color: #0e7a55;
  font-size: 14px;
  font-weight: 950;
  transition: transform 160ms ease, background 160ms ease;
}

.ticket-edit-card.is-collapsed .ticket-edit-card-head {
  margin-bottom: 0;
  padding-bottom: 2px;
  border-bottom-color: transparent;
}

.ticket-edit-card.is-collapsed .ticket-edit-card-head::after {
  transform: rotate(180deg);
}

.ticket-edit-card-head:hover::after,
.ticket-edit-card-head:focus-visible::after {
  background: rgba(17, 187, 122, 0.18);
}

.ticket-edit-card-head:focus-visible {
  outline: 3px solid rgba(17, 187, 122, 0.16);
  outline-offset: 4px;
  border-radius: 12px;
}

.ticket-execution-head {
  cursor: pointer;
  user-select: none;
}

.ticket-execution-head::after {
  content: "⌃";
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(17, 187, 122, 0.1);
  color: #0e7a55;
  font-size: 14px;
  font-weight: 950;
  transition: transform 160ms ease, background 160ms ease;
}

.ticket-execution-block.is-collapsed .ticket-execution-head {
  margin-bottom: 0;
}

.ticket-execution-block.is-collapsed .ticket-execution-head::after {
  transform: rotate(180deg);
}

.ticket-execution-head:hover::after,
.ticket-execution-head:focus-visible::after {
  background: rgba(17, 187, 122, 0.18);
}

.ticket-execution-head:focus-visible {
  outline: 3px solid rgba(17, 187, 122, 0.16);
  outline-offset: 4px;
  border-radius: 12px;
}

.detail-block h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.ticket-description-block {
  padding: 14px;
  border: 1px solid rgba(82, 98, 122, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.ticket-description-block p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #0b1730;
  font-weight: 700;
  line-height: 1.55;
}

.ticket-description-edit {
  margin-top: 12px;
}

.ticket-description-edit summary {
  width: fit-content;
  cursor: pointer;
  list-style: none;
  min-height: 36px;
  padding: 9px 16px;
  border: 1px solid rgba(17, 187, 122, 0.28);
  border-radius: 999px;
  background: rgba(17, 187, 122, 0.1);
  color: #08734f;
  font-weight: 850;
}

.ticket-description-edit summary::-webkit-details-marker {
  display: none;
}

.ticket-description-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.ticket-description-form textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
}

.technician-ticket-description-field {
  width: 100%;
  margin-top: 10px;
  resize: vertical;
  background: rgba(255, 255, 255, 0.78);
}

.technician-ticket-preview-description {
  margin-top: 8px;
  color: #52627a;
  font-weight: 750;
  line-height: 1.5;
}

.ticket-report-status-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.ticket-report-status-head p {
  margin: 0 0 12px;
}

.ticket-report-status-head small {
  display: block;
  line-height: 1.5;
}

.ticket-report-status-head button {
  min-height: 36px;
  flex: 0 0 auto;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--green) !important;
  color: #fff !important;
  font-weight: 850;
  box-shadow: 0 14px 28px rgba(17, 187, 122, 0.22);
}

.ticket-report-status-head button:hover,
.ticket-report-status-head button:focus,
.ticket-report-status-head button:active {
  background: #0e9f69;
  color: #fff;
}

.ticket-report-status-block button[data-detail-action="reports"] {
  background: #0f9f6e !important;
  color: #fff !important;
  opacity: 1 !important;
  box-shadow: 0 14px 28px rgba(15, 159, 110, 0.22) !important;
}

.ticket-report-status-block button[data-detail-action="reports"]:hover,
.ticket-report-status-block button[data-detail-action="reports"]:focus,
.ticket-report-status-block button[data-detail-action="reports"]:active {
  background: #0d8f62 !important;
  color: #fff !important;
}

.detail-block dl {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1fr);
  gap: 8px 12px;
  margin: 0;
}

.detail-block dt {
  color: #52627a;
  font-size: 13px;
  font-weight: 850;
}

.detail-block dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 750;
}

.ticket-note-form,
.ticket-subject-form,
.ticket-description-form,
.ticket-update-form,
.ticket-execution-form {
  display: grid;
  gap: 10px;
}

.ticket-subject-form,
.ticket-description-form,
.ticket-update-form {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(82, 98, 122, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.ticket-update-form + .ticket-subject-form,
.ticket-subject-form + .ticket-description-form {
  margin-top: 10px;
}

.ticket-update-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.ticket-update-grid label {
  display: grid;
  gap: 6px;
}

.ticket-subject-edit {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.ticket-description-edit-field {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.ticket-update-grid span {
  color: #52627a;
  font-size: 12px;
  font-weight: 850;
}

.ticket-subject-edit span {
  color: #52627a;
  font-size: 12px;
  font-weight: 850;
}

.ticket-description-edit-field span {
  color: #52627a;
  font-size: 12px;
  font-weight: 850;
}

.ticket-update-grid select {
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(82, 98, 122, 0.16);
  border-radius: 12px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.ticket-subject-edit input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(82, 98, 122, 0.16);
  border-radius: 12px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.ticket-note-form textarea,
.ticket-description-form textarea,
.ticket-update-form textarea {
  width: 100%;
  min-height: 126px;
  resize: vertical;
  border: 1px solid rgba(82, 98, 122, 0.16);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
}

.ticket-update-form textarea {
  min-height: 86px;
}

.ticket-description-form textarea {
  min-height: 150px;
}

.ticket-note-form textarea:focus,
.ticket-subject-edit input:focus,
.ticket-description-form textarea:focus,
.ticket-update-form textarea:focus,
.ticket-update-grid select:focus {
  outline: 3px solid rgba(17, 187, 122, 0.16);
  border-color: rgba(17, 187, 122, 0.44);
}

.ticket-note-form textarea:disabled,
.ticket-subject-edit input:disabled,
.ticket-description-form textarea:disabled,
.ticket-update-form textarea:disabled {
  opacity: 0.62;
}

.ticket-note-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ticket-note-actions span:empty {
  display: none;
}

.ticket-subject-form .ticket-note-actions,
.ticket-description-form .ticket-note-actions,
.ticket-update-form .ticket-note-actions {
  justify-content: center;
}

.ticket-execution-block {
  border-color: rgba(17, 187, 122, 0.26);
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.78), rgba(255, 255, 255, 0.96));
}

.ticket-execution-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ticket-execution-head p {
  margin: 3px 0 0;
  color: #52627a;
  font-size: 12px;
  font-weight: 850;
}

.ticket-execution-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
}

.ticket-list-content.is-detail-full-mode .ticket-execution-grid {
  grid-template-columns: minmax(170px, 0.8fr) minmax(220px, 1fr) minmax(240px, 1.15fr);
}

.ticket-execution-grid label,
.ticket-execution-grid > span {
  min-width: 0;
  overflow-wrap: anywhere;
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 58px;
  padding: 8px 12px;
  border: 1px solid rgba(82, 98, 122, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.ticket-execution-grid b,
.ticket-execution-grid label span {
  color: #52627a;
  font-size: 12px;
  font-weight: 850;
}

.ticket-execution-grid input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(82, 98, 122, 0.16);
  border-radius: 12px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.ticket-execution-grid input:focus {
  outline: 3px solid rgba(17, 187, 122, 0.16);
  border-color: rgba(17, 187, 122, 0.44);
}

.ticket-execution-part {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(82, 98, 122, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
}

.ticket-execution-part + .ticket-execution-part {
  margin-top: 10px;
}

.ticket-execution-action-head {
  display: grid;
  gap: 4px;
}

.ticket-execution-action-head b {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.ticket-execution-action-head span {
  color: #52627a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.ticket-execution-status {
  color: #52627a;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.ticket-execution-start {
  background: #059669 !important;
  color: #fff !important;
  border-color: #059669 !important;
}

.ticket-execution-complete {
  background: #071631 !important;
  color: #fff !important;
  border-color: #071631 !important;
}

.ticket-execution-form .ticket-note-actions {
  align-items: center;
  justify-content: center;
}

.ticket-execution-form .ticket-note-actions button {
  min-width: 190px;
}

.ticket-list-content:not(.is-detail-full-mode) .ticket-detail-panel .ticket-execution-block {
  padding: 14px;
}

.ticket-list-content:not(.is-detail-full-mode) .ticket-detail-panel .ticket-execution-head {
  align-items: center;
}

.ticket-list-content:not(.is-detail-full-mode) .ticket-detail-panel .ticket-execution-head p,
.ticket-list-content:not(.is-detail-full-mode) .ticket-detail-panel .ticket-execution-action-head span {
  display: none;
}

.ticket-list-content:not(.is-detail-full-mode) .ticket-detail-panel .ticket-execution-part {
  padding: 9px;
  gap: 8px;
}

.ticket-list-content:not(.is-detail-full-mode) .ticket-detail-panel .ticket-execution-grid label,
.ticket-list-content:not(.is-detail-full-mode) .ticket-detail-panel .ticket-execution-grid > span {
  min-height: auto;
  padding: 9px 10px;
}

.ticket-list-content:not(.is-detail-full-mode) .ticket-detail-panel .ticket-execution-save-actions {
  justify-content: center;
}

.ticket-list-content:not(.is-detail-full-mode) .ticket-detail-panel .ticket-execution-work-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.ticket-list-content:not(.is-detail-full-mode) .ticket-detail-panel .ticket-execution-form .ticket-note-actions button {
  min-width: 0;
  width: 100%;
  min-height: 40px;
  padding-inline: 10px;
}

.ticket-execution-work-actions {
  justify-content: center;
}

.ticket-note-status,
.ticket-update-status {
  color: #52627a;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.ticket-note-actions button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: #0f9f6e;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15, 159, 110, 0.22);
}

.ticket-note-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  box-shadow: none;
}

.ticket-create-form .ticket-participant-picker .ticket-participant-picker-row button,
.ticket-update-form .ticket-participant-picker .ticket-participant-picker-row button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: #0f9f6e;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15, 159, 110, 0.22);
}

.ticket-create-form .ticket-participant-picker .ticket-participant-chip button,
.ticket-update-form .ticket-participant-picker .ticket-participant-chip button {
  min-height: 28px;
  padding: 0 10px;
  background: #c76600;
  color: #fff;
  font-size: 11px;
  box-shadow: none;
}

.thread-entry {
  padding: 12px;
  border: 1px solid rgba(82, 98, 122, 0.12);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.9);
}

.ticket-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.ticket-history-head h3 {
  margin: 0;
}

.ticket-history-head button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(31, 107, 255, 0.18);
  border-radius: 999px;
  background: rgba(31, 107, 255, 0.08);
  color: #174da8;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.thread-entry + .thread-entry {
  margin-top: 10px;
}

.thread-entry span,
.attachment-row {
  color: #52627a;
  font-size: 12px;
  font-weight: 850;
}

.attachment-row strong,
.attachment-row span {
  display: block;
}

.attachment-row strong {
  color: var(--text);
  font-size: 13px;
}

.attachment-row span {
  margin-top: 3px;
}

.attachment-actions {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px !important;
}

.attachment-actions a,
.attachment-actions button {
  border-radius: 999px;
  border: 0;
  background: rgba(15, 159, 110, 0.1);
  color: #11643a;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 9px;
  text-decoration: none;
}

.attachment-actions button {
  background: rgba(244, 63, 103, 0.1);
  color: #a21436;
}

.attachment-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.ticket-attachment-upload-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(31, 107, 255, 0.14);
  border-radius: 14px;
  background: rgba(239, 246, 255, 0.58);
}

.ticket-attachment-upload-picker {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  padding: 0 16px;
  border: 1px solid rgba(31, 107, 255, 0.22);
  border-radius: 999px;
  background: rgba(31, 107, 255, 0.08);
  color: #174da8;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.ticket-attachment-upload-picker input {
  display: none;
}

.ticket-attachment-upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ticket-attachment-upload-preview span {
  max-width: 100%;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #52627a;
  font-size: 12px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.thread-entry p {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.thread-entry.internal-note {
  border-color: rgba(244, 63, 103, 0.18);
  background: rgba(244, 63, 103, 0.06);
}

.summary-card {
  min-height: 132px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--card-shadow);
}

.summary-card span {
  color: #52627a;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.summary-card strong {
  min-width: 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.15;
}

.summary-card small {
  color: #52627a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.tool-grid.five-tools {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tool-card {
  min-height: 150px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.88));
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--card-shadow);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.tool-card:hover,
.tool-card:focus-visible {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
  box-shadow: 0 18px 36px rgba(7, 22, 49, 0.13);
  outline: none;
}

.icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  box-shadow: 0 11px 22px color-mix(in srgb, var(--accent) 28%, transparent);
}

.icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-card strong {
  width: 100%;
  display: block;
  text-align: center;
  font-size: 18px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.tool-card small {
  display: block;
  width: 100%;
  text-align: center;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.blue { --accent: #1f6bff; --accent-2: #3886ff; }
.purple { --accent: #7547d8; --accent-2: #9467ea; }
.green { --accent: #20b869; --accent-2: #3bd082; }
.yellow { --accent: #f4aa13; --accent-2: #ffc432; }
.sky { --accent: #5fa4eb; --accent-2: #7cb7f5; }
.teal { --accent: #00a7a7; --accent-2: #05c0b8; }
.orange { --accent: #ff821c; --accent-2: #ff9f25; }
.red { --accent: #f43f67; --accent-2: #ff6381; }
.mint { --accent: #46d0a0; --accent-2: #63dfb6; }
.violet { --accent: #6a50d7; --accent-2: #8469ed; }
.slate { --accent: #40546a; --accent-2: #60778f; }
.lavender { --accent: #8d7cf3; --accent-2: #a399ff; }
.cyan { --accent: #04aeca; --accent-2: #24c2dc; }
.gray { --accent: #cbd5e1; --accent-2: #e2e8f0; }
.gray .icon { color: #344256; }

/* Open workspace polish: Login-Zentrale, Tablet-Verwaltung, ERPNext, Arbeitsstatus */
.access-command-bar,
.access-guide-panel,
.mdm-setup-panel,
.mdm-model-panel,
.mdm-rollout-panel,
.erp-command-panel,
.erp-customer-create-form,
.erp-item-create-form,
.erp-customer-list-panel,
.workday-admin-command,
.workday-filter-form {
  border: 1px solid rgba(82, 98, 122, 0.1);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(31, 107, 255, 0.06), transparent 30%),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 30px rgba(7, 22, 49, 0.05);
}

.access-command-bar,
.access-guide-head,
.mdm-setup-panel,
.erp-command-panel,
.workday-admin-command {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
}

.access-summary-line,
.access-command-actions,
.access-guide-grid article div,
.access-term-grid,
.mdm-setup-actions,
.workday-admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.access-summary-line span,
.access-guide-grid article div span,
.mdm-rollout-checks span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(31, 107, 255, 0.16);
  border-radius: 999px;
  background: rgba(31, 107, 255, 0.07);
  color: #174da8;
  font-size: 12px;
  font-weight: 900;
}

.access-command-actions button,
.access-command-actions a,
.mdm-setup-actions a,
.mdm-setup-actions button,
.workday-admin-actions button,
.erp-command-panel a,
.erp-command-panel button,
.erp-customer-filter-form button,
.erp-customer-edit-form button,
.erp-item-create-form button,
.erp-customer-create-form button,
.workday-filter-form button,
.workday-row-toggle,
.workday-correction-form button,
.cloud-toolbar button,
.cloud-toolbar a,
.cloud-upload-button,
.cloud-row-actions button,
.cloud-row-actions a,
.cloud-admin-head button,
.cloud-admin-settings-form button,
.mini-link-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(31, 107, 255, 0.18);
  border-radius: 999px;
  background: rgba(31, 107, 255, 0.08);
  color: #174da8;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.access-command-actions button,
.mdm-setup-actions a,
.erp-command-panel a,
.erp-item-create-form button[type="submit"],
.erp-customer-create-form button[type="submit"],
.workday-admin-actions button:first-child,
.workday-filter-form button[type="submit"],
.workday-correction-form button {
  border-color: transparent;
  background: var(--text);
  color: #fff;
  box-shadow: 0 10px 22px rgba(7, 22, 49, 0.14);
}

.access-master-panel,
.mdm-overview-panel,
.erp-overview-panel,
.workday-admin-panel,
.cloud-panel {
  display: grid;
  gap: 14px;
}

.cloud-command-panel,
.cloud-drive-head,
.cloud-toolbar,
.cloud-admin-panel,
.cloud-drive-list {
  border: 1px solid rgba(82, 98, 122, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(7, 22, 49, 0.04);
}

.cloud-command-panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
}

.cloud-drive-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
}

.cloud-command-panel h3,
.cloud-drive-head h3,
.cloud-admin-head h3 {
  margin: 2px 0 4px;
  color: var(--text);
  font-size: 18px;
}

.cloud-command-panel small,
.cloud-admin-head small,
.cloud-usage small,
.cloud-admin-users span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.cloud-usage-details {
  position: relative;
  justify-self: end;
}

.cloud-usage-details summary {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(15, 159, 110, 0.18);
  border-radius: 999px;
  background: rgba(236, 253, 245, 0.82);
  color: #047857;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.cloud-usage-details summary::-webkit-details-marker {
  display: none;
}

.cloud-usage {
  min-width: 220px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(15, 159, 110, 0.14);
  border-radius: 14px;
  background: rgba(236, 253, 245, 0.76);
}

.cloud-usage-details .cloud-usage {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 5;
  width: min(280px, 80vw);
  box-shadow: 0 16px 34px rgba(7, 22, 49, 0.12);
}

.cloud-usage strong {
  color: var(--text);
  font-size: 14px;
}

.cloud-usage span {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
}

.cloud-usage i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #10a66f, #1f6bff);
}

.cloud-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.cloud-upload-button {
  position: relative;
}

.cloud-drive-list,
.cloud-list {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.cloud-list-head {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 110px 110px minmax(240px, auto);
  gap: 12px;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(82, 98, 122, 0.12);
  background: rgba(248, 250, 252, 0.94);
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.cloud-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 110px 110px minmax(240px, auto);
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 8px 14px;
  border: 0;
  border-bottom: 1px solid rgba(82, 98, 122, 0.08);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.94);
}

.cloud-row:nth-child(even) {
  background: rgba(248, 250, 252, 0.74);
}

.cloud-row-folder {
  border-color: rgba(82, 98, 122, 0.08);
  background: rgba(255, 255, 255, 0.94);
}

.cloud-row strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
}

.cloud-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cloud-name-cell strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cloud-file-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 9px;
  border: 1px solid rgba(31, 107, 255, 0.16);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(219, 234, 254, 0.84));
  box-shadow: inset 0 -6px 14px rgba(31, 107, 255, 0.08);
}

.cloud-folder-icon {
  border-color: rgba(15, 159, 110, 0.18);
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.98), rgba(167, 243, 208, 0.74));
}

.cloud-kind {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.cloud-size {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.cloud-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.cloud-row-actions .danger {
  border-color: rgba(220, 38, 38, 0.18);
  background: rgba(254, 226, 226, 0.78);
  color: #b91c1c;
}

.cloud-empty {
  padding: 18px;
  border: 0;
  border-radius: 0;
  background: rgba(248, 250, 252, 0.72);
  color: #64748b;
  font-weight: 800;
}

.cloud-admin-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.cloud-admin-head,
.cloud-admin-grid,
.cloud-admin-settings-form {
  display: grid;
  gap: 12px;
}

.cloud-admin-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.cloud-admin-grid {
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.6fr);
}

.cloud-admin-users {
  display: grid;
  align-content: start;
  gap: 8px;
}

.cloud-admin-users button {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(82, 98, 122, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.cloud-admin-users button.is-active {
  border-color: rgba(31, 107, 255, 0.28);
  background: rgba(239, 246, 255, 0.9);
  box-shadow: inset 4px 0 0 #1f6bff;
}

.cloud-admin-detail {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.cloud-admin-settings-form {
  grid-template-columns: minmax(180px, 1fr) 160px 150px auto;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(82, 98, 122, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.cloud-admin-settings-form label {
  display: grid;
  gap: 5px;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.cloud-admin-settings-form input[type="number"] {
  min-height: 38px;
  border: 1px solid rgba(82, 98, 122, 0.18);
  border-radius: 12px;
  padding: 0 10px;
}

.cloud-admin-settings-form .inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
}

@media (max-width: 760px) {
  .cloud-command-panel,
  .cloud-drive-head,
  .cloud-row,
  .cloud-list-head,
  .cloud-admin-head,
  .cloud-admin-grid,
  .cloud-admin-settings-form {
    grid-template-columns: 1fr;
  }

  .cloud-command-panel {
    display: grid;
  }

  .cloud-usage {
    min-width: 0;
  }

  .cloud-usage-details {
    justify-self: stretch;
  }

  .cloud-usage-details summary {
    width: 100%;
  }

  .cloud-usage-details .cloud-usage {
    position: static;
    width: 100%;
    margin-top: 8px;
  }

  .cloud-list-head {
    display: none;
  }

  .cloud-row {
    align-items: start;
    gap: 8px;
    padding: 12px;
  }

  .cloud-row-actions {
    justify-content: stretch;
  }

  .cloud-row-actions > * {
    flex: 1 1 120px;
  }
}

.cloud-app-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 0;
  min-height: min(720px, calc(100vh - 170px));
  overflow: hidden;
  border: 1px solid rgba(82, 98, 122, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 54px rgba(7, 22, 49, 0.08);
}

.cloud-app-sidebar {
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  gap: 18px;
  padding: 18px 14px;
  border-right: 1px solid rgba(82, 98, 122, 0.12);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.86));
}

.cloud-app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cloud-app-brand strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.1;
}

.cloud-app-brand small,
.cloud-content-head p,
.cloud-name-cell small,
.cloud-admin-settings-form small {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.cloud-app-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 11px;
  background: linear-gradient(135deg, #0078d4, #31c6f7 48%, #10a66f);
  box-shadow: 0 12px 22px rgba(31, 107, 255, 0.18);
}

.cloud-app-nav {
  display: grid;
  gap: 6px;
}

.cloud-app-nav button,
.cloud-app-nav a {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #334155;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.cloud-app-nav .is-active,
.cloud-app-nav a:hover,
.cloud-app-nav button:hover {
  background: rgba(31, 107, 255, 0.1);
  color: #174da8;
  box-shadow: inset 3px 0 0 #1f6bff;
}

.cloud-app-sidebar .cloud-usage-details {
  align-self: end;
  justify-self: stretch;
  margin-top: auto;
}

.cloud-app-sidebar .cloud-usage-details summary {
  width: 100%;
  justify-content: flex-start;
  background: rgba(255, 255, 255, 0.76);
}

.cloud-app-sidebar .cloud-usage-details .cloud-usage {
  position: static;
  width: 100%;
  margin-top: 10px;
  box-shadow: none;
}

.cloud-app-main {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  background: rgba(255, 255, 255, 0.98);
}

.cloud-app-topbar {
  display: grid;
  grid-template-columns: minmax(260px, 540px) auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(82, 98, 122, 0.1);
  background: rgba(255, 255, 255, 0.92);
}

.cloud-search {
  min-height: 42px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(82, 98, 122, 0.16);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.cloud-search span {
  width: 15px;
  height: 15px;
  border: 2px solid #64748b;
  border-radius: 999px;
  position: relative;
}

.cloud-search span::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: #64748b;
  transform: rotate(45deg);
}

.cloud-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
}

.cloud-top-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.cloud-primary-action,
.cloud-toolbar button,
.cloud-upload-button,
.cloud-row-actions button,
.cloud-row-actions a,
.cloud-admin-head button,
.cloud-admin-settings-form button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(31, 107, 255, 0.18);
  border-radius: 999px;
  background: rgba(31, 107, 255, 0.08);
  color: #174da8;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.cloud-primary-action {
  border-color: transparent;
  background: #1f6bff;
  color: #fff;
  box-shadow: 0 12px 24px rgba(31, 107, 255, 0.16);
}

.cloud-content-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
}

.cloud-content-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.15;
}

.cloud-content-head p {
  margin: 5px 0 0;
}

.cloud-content-head .cloud-toolbar,
.cloud-app-main > .cloud-toolbar {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.cloud-app-shell .cloud-drive-list {
  margin: 0 22px 22px;
  min-height: 360px;
  align-self: stretch;
  border: 1px solid rgba(82, 98, 122, 0.14);
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}

.cloud-app-shell .cloud-list-head,
.cloud-app-shell .cloud-row {
  grid-template-columns: 34px minmax(240px, 1.5fr) 150px 120px minmax(230px, auto);
}

.cloud-app-shell .cloud-list-head {
  min-height: 50px;
  background: rgba(248, 250, 252, 0.92);
  text-transform: none;
  font-size: 12px;
}

.cloud-app-shell .cloud-row {
  min-height: 62px;
  padding: 8px 14px;
  cursor: default;
}

.cloud-app-shell .cloud-row:hover {
  background: rgba(239, 246, 255, 0.55);
}

.cloud-app-shell .cloud-row:nth-child(odd) {
  background: rgba(255, 255, 255, 0.98);
}

.cloud-app-shell .cloud-row:nth-child(even) {
  background: rgba(248, 250, 252, 0.62);
}

.cloud-app-shell .cloud-file-icon {
  width: 26px;
  height: 22px;
  border-radius: 5px;
  border: 0;
  background: linear-gradient(180deg, #ffd24d, #f8b01f);
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.22);
}

.cloud-app-shell .cloud-document-icon {
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(180deg, #dbeafe, #bfdbfe);
}

.cloud-app-shell .cloud-name-cell {
  display: grid;
  gap: 3px;
}

.cloud-app-shell .cloud-name-cell strong {
  font-size: 14px;
}

.cloud-app-shell .cloud-row-actions {
  flex-wrap: nowrap;
}

.cloud-app-shell .cloud-row-actions .danger {
  border-color: rgba(220, 38, 38, 0.18);
  background: rgba(254, 226, 226, 0.78);
  color: #b91c1c;
}

.cloud-admin-drive {
  grid-column: 1 / -1;
  margin: 0;
  border-width: 1px 0 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(255, 255, 255, 0.98));
  box-shadow: none;
}

.cloud-admin-drive .cloud-admin-head,
.cloud-admin-drive .cloud-admin-search,
.cloud-admin-drive .cloud-admin-grid {
  width: min(100%, 1180px);
  margin-inline: auto;
}

.cloud-admin-drive .cloud-admin-search {
  margin-top: 4px;
}

.cloud-admin-drive .cloud-admin-grid {
  grid-template-columns: minmax(230px, 310px) minmax(0, 1fr);
}

.cloud-admin-drive .cloud-admin-users button {
  border-radius: 12px;
}

.cloud-admin-drive .cloud-admin-detail {
  min-width: 0;
}

@media (max-width: 980px) {
  .cloud-app-shell {
    grid-template-columns: 1fr;
  }

  .cloud-app-sidebar {
    grid-template-rows: auto auto auto;
    border-right: 0;
    border-bottom: 1px solid rgba(82, 98, 122, 0.12);
  }

  .cloud-app-topbar,
  .cloud-content-head,
  .cloud-admin-drive .cloud-admin-grid,
  .cloud-admin-settings-form {
    grid-template-columns: 1fr;
  }

  .cloud-top-actions,
  .cloud-content-head .cloud-toolbar {
    justify-content: stretch;
  }

  .cloud-top-actions > *,
  .cloud-content-head .cloud-toolbar > * {
    flex: 1 1 150px;
  }

  .cloud-app-shell .cloud-list-head {
    display: none;
  }

  .cloud-app-shell .cloud-row {
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: start;
  }

  .cloud-app-shell .cloud-kind,
  .cloud-app-shell .cloud-size,
  .cloud-app-shell .cloud-row-actions {
    grid-column: 2;
  }

  .cloud-app-shell .cloud-row-actions {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .cloud-app-shell .cloud-row-actions > * {
    flex: 1 1 120px;
  }
}

@media (max-width: 640px) {
  .cloud-app-shell {
    border-radius: 14px;
  }

  .cloud-app-topbar,
  .cloud-content-head {
    padding-inline: 14px;
  }

  .cloud-app-shell .cloud-drive-list {
    margin-inline: 14px;
  }
}

.workspace-screen:has(.cloud-app-shell) {
  padding: 0;
  border: 0;
  background: #f7f8fa;
  box-shadow: none;
}

.cloud-app-shell {
  grid-template-columns: 258px minmax(0, 1fr);
  min-height: calc(100vh - 132px);
  border: 0;
  border-radius: 0;
  background: #f7f8fa;
  box-shadow: none;
}

.cloud-app-shell.has-admin-dock {
  grid-template-columns: 250px minmax(520px, 1fr) minmax(330px, 390px);
}

.cloud-app-sidebar {
  gap: 16px;
  padding: 18px 16px;
  border-right: 1px solid #e5e7eb;
  background: #f3f4f6;
}

.cloud-suite-row {
  display: grid;
  grid-template-columns: 26px 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 42px;
  color: #111827;
  font-size: 14px;
  font-weight: 900;
}

.cloud-waffle {
  width: 18px;
  height: 18px;
  opacity: 0.78;
  background-image: radial-gradient(circle, #111827 1.4px, transparent 1.5px);
  background-size: 8px 8px;
}

.cloud-suite-row .cloud-app-logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.cloud-app-brand {
  padding: 8px 6px;
}

.cloud-app-brand strong {
  font-size: 14px;
}

.cloud-create-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 4px 0 8px;
}

.cloud-main-create,
.cloud-main-upload {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.cloud-main-create {
  background: #0969da;
  color: #fff;
  box-shadow: 0 12px 22px rgba(9, 105, 218, 0.18);
}

.cloud-main-upload {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #1f2937;
}

.cloud-app-nav {
  gap: 3px;
}

.cloud-app-nav button,
.cloud-app-nav a {
  min-height: 38px;
  border-radius: 6px;
  color: #1f2937;
  font-size: 14px;
  font-weight: 800;
}

.cloud-app-nav .is-active,
.cloud-app-nav a:hover,
.cloud-app-nav button:hover {
  background: #e8f1ff;
  color: #0757b8;
  box-shadow: inset 3px 0 0 #0969da;
}

.cloud-app-sidebar .cloud-usage-details {
  align-self: end;
}

.cloud-app-sidebar .cloud-usage-details summary {
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0757b8;
  font-size: 13px;
}

.cloud-app-sidebar .cloud-usage-details .cloud-usage {
  padding: 0;
  border: 0;
  background: transparent;
}

.cloud-app-sidebar .cloud-usage span {
  height: 6px;
  background: #d1d5db;
}

.cloud-app-main {
  background: #f7f8fa;
}

.cloud-app-topbar {
  grid-template-columns: minmax(260px, 520px) auto;
  min-height: 68px;
  padding: 14px 26px;
  border-bottom: 0;
  background: #f7f8fa;
}

.cloud-search {
  min-height: 40px;
  border-color: #d7dbe2;
  background: #fff;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.08);
}

.cloud-top-actions button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: #1f2937;
  box-shadow: none;
}

.cloud-content-head {
  padding: 18px 26px 12px;
}

.cloud-content-head h3 {
  font-size: 20px;
  font-weight: 900;
}

.cloud-content-head .cloud-toolbar {
  gap: 8px;
}

.cloud-content-head .cloud-toolbar button,
.cloud-content-head .cloud-toolbar .cloud-upload-button {
  min-height: 34px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  box-shadow: none;
}

.cloud-app-shell .cloud-drive-list {
  min-height: calc(100vh - 268px);
  margin: 0 26px 24px;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}

.cloud-app-shell .cloud-list-head {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 48px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  color: #4b5563;
  font-size: 13px;
  font-weight: 800;
}

.cloud-app-shell .cloud-row {
  min-height: 52px;
  border-bottom: 1px solid #edf0f3;
  background: #fff;
}

.cloud-app-shell .cloud-row:nth-child(odd),
.cloud-app-shell .cloud-row:nth-child(even) {
  background: #fff;
}

.cloud-app-shell .cloud-row:hover {
  background: #f5f9ff;
}

.cloud-app-shell .cloud-file-icon {
  width: 28px;
  height: 22px;
  border-radius: 3px;
  background: linear-gradient(180deg, #facc15, #f59e0b);
}

.cloud-app-shell .cloud-document-icon {
  width: 24px;
  height: 28px;
  border: 1px solid #bfdbfe;
  border-radius: 4px;
  background: #eff6ff;
}

.cloud-app-shell .cloud-name-cell strong {
  color: #111827;
  font-size: 14px;
  font-weight: 750;
}

.cloud-app-shell .cloud-name-cell small {
  display: none;
}

.cloud-kind,
.cloud-size {
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
}

.cloud-app-shell .cloud-row-actions {
  gap: 6px;
}

.cloud-app-shell .cloud-row-actions button,
.cloud-app-shell .cloud-row-actions a {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #0757b8;
  box-shadow: none;
  font-size: 12px;
}

.cloud-app-shell .cloud-row-actions button:hover,
.cloud-app-shell .cloud-row-actions a:hover {
  background: #e8f1ff;
}

.cloud-app-shell .cloud-row-actions .danger {
  background: transparent;
  color: #b91c1c;
}

.cloud-app-shell .cloud-row-actions .danger:hover {
  background: #fee2e2;
}

.cloud-admin-drive {
  grid-column: auto;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: start;
  gap: 12px;
  height: 100%;
  max-height: calc(100vh - 132px);
  overflow: hidden;
  padding: 18px 14px;
  border: 0;
  border-left: 1px solid #e5e7eb;
  background: #fff;
}

.cloud-admin-drive .cloud-admin-head,
.cloud-admin-drive .cloud-admin-search,
.cloud-admin-drive .cloud-admin-grid {
  width: 100%;
  margin: 0;
}

.cloud-admin-drive .cloud-admin-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.cloud-admin-drive .cloud-admin-head h3 {
  margin: 0;
  font-size: 18px;
}

.cloud-admin-drive .cloud-admin-head button {
  min-height: 32px;
  border-radius: 8px;
  background: #f3f4f6;
  color: #1f2937;
}

.cloud-admin-drive .cloud-admin-grid {
  grid-template-columns: 1fr;
  min-height: 0;
  overflow: hidden;
}

.cloud-admin-drive .cloud-admin-users {
  max-height: 220px;
  overflow: auto;
  padding-right: 2px;
}

.cloud-admin-drive .cloud-admin-users button {
  padding: 10px 11px;
  border-color: #e5e7eb;
  border-radius: 9px;
  background: #fff;
}

.cloud-admin-drive .cloud-admin-users button.is-active {
  border-color: #93c5fd;
  background: #eff6ff;
  box-shadow: inset 3px 0 0 #0969da;
}

.cloud-admin-drive .cloud-admin-detail {
  min-height: 0;
  overflow: auto;
}

.cloud-admin-drive .cloud-admin-settings-form {
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 12px;
  border-color: #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
}

.cloud-admin-drive .cloud-toolbar {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.cloud-admin-drive .cloud-drive-list {
  min-height: 220px;
  max-height: 330px;
  margin: 0;
}

.cloud-admin-drive .cloud-list-head,
.cloud-admin-drive .cloud-row {
  grid-template-columns: 30px minmax(130px, 1fr) 90px 70px minmax(120px, auto);
  padding-inline: 10px;
}

.cloud-admin-drive .cloud-row-actions {
  flex-wrap: wrap;
}

@media (max-width: 1220px) {
  .cloud-app-shell.has-admin-dock {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .cloud-admin-drive {
    grid-column: 1 / -1;
    height: auto;
    max-height: none;
    border-left: 0;
    border-top: 1px solid #e5e7eb;
  }

  .cloud-admin-drive .cloud-admin-grid {
    grid-template-columns: minmax(230px, 0.75fr) minmax(0, 1.25fr);
  }
}

@media (max-width: 860px) {
  .cloud-app-shell,
  .cloud-app-shell.has-admin-dock {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .cloud-app-sidebar {
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
  }

  .cloud-app-topbar,
  .cloud-content-head,
  .cloud-admin-drive .cloud-admin-grid {
    grid-template-columns: 1fr;
  }

  .cloud-app-shell .cloud-drive-list {
    min-height: 320px;
  }
}

/* Final cloud file-app polish: keep the app flat, compact and table-like. */
.cloud-app-shell.has-admin-dock {
  grid-template-columns: 220px minmax(0, 1fr) 330px;
}

.cloud-app-sidebar {
  padding: 16px 14px;
}

.cloud-create-stack {
  gap: 8px;
  margin: 2px 0 10px;
}

.cloud-create-stack .cloud-main-create,
.cloud-create-stack .cloud-main-upload {
  width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  aspect-ratio: auto !important;
  border-radius: 999px !important;
  padding: 0 16px !important;
  box-shadow: none;
}

.cloud-create-stack .cloud-main-create {
  background: #0f6cbd;
}

.cloud-create-stack .cloud-main-upload {
  border: 1px solid #d1d5db;
  background: #fff;
}

.cloud-app-topbar {
  min-height: 62px;
  padding: 12px 24px;
}

.cloud-content-head {
  padding: 14px 24px 10px;
}

.cloud-content-head .cloud-toolbar button,
.cloud-content-head .cloud-toolbar .cloud-upload-button {
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 14px;
  border-radius: 8px;
}

.cloud-app-shell .cloud-drive-list {
  display: block;
  min-height: calc(100vh - 280px);
  margin: 0 24px 22px;
  overflow-x: hidden;
  overflow-y: auto;
}

.cloud-app-shell .cloud-list-head,
.cloud-app-shell .cloud-row {
  grid-template-columns: 30px minmax(130px, 1fr) 112px 70px minmax(132px, auto);
  column-gap: 10px;
  padding-inline: 12px;
}

.cloud-app-shell .cloud-list-head {
  min-height: 42px;
}

.cloud-app-shell .cloud-row {
  min-height: 50px;
}

.cloud-app-shell .cloud-row-actions {
  justify-content: flex-end;
  gap: 4px;
}

.cloud-app-shell .cloud-row-actions button,
.cloud-app-shell .cloud-row-actions a {
  min-height: 28px;
  padding: 0 8px;
  font-size: 12px;
}

.cloud-admin-drive {
  max-height: calc(100vh - 132px);
  padding: 16px 14px;
}

.cloud-admin-drive .cloud-admin-head {
  gap: 10px;
}

.cloud-admin-drive .cloud-admin-head button {
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 12px;
}

.cloud-admin-drive .cloud-admin-users {
  max-height: 210px;
}

.cloud-admin-drive .cloud-admin-users button {
  gap: 3px;
  min-height: 58px;
}

.cloud-admin-drive .cloud-admin-detail {
  align-content: start;
}

.cloud-admin-drive .cloud-admin-detail > .cloud-empty {
  margin-top: 10px;
  border-radius: 10px;
}

.cloud-admin-drive .cloud-drive-list {
  display: block;
  overflow-x: hidden;
}

.cloud-admin-drive .cloud-list-head,
.cloud-admin-drive .cloud-row {
  grid-template-columns: 26px minmax(110px, 1fr) 80px 58px minmax(96px, auto);
  column-gap: 8px;
  padding-inline: 8px;
}

@media (max-width: 1220px) {
  .cloud-app-shell.has-admin-dock {
    grid-template-columns: 210px minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .cloud-app-shell.has-admin-dock,
  .cloud-app-shell {
    grid-template-columns: 1fr;
  }

  .cloud-create-stack {
    grid-template-columns: 1fr 1fr;
  }

  .cloud-app-shell .cloud-drive-list {
    overflow-x: hidden;
  }
}

/* Expert cloud pass: stable file-app proportions and compact enterprise spacing. */
.cloud-app-shell.has-admin-dock {
  grid-template-columns: 208px minmax(650px, 1fr) 300px;
  min-height: calc(100vh - 118px);
  background: #f8fafc;
}

.cloud-app-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 14px 14px;
  background: #f3f6fa;
}

.cloud-suite-row {
  grid-template-columns: minmax(0, 1fr);
  min-height: 34px;
}

.cloud-suite-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cloud-app-brand {
  min-height: 54px;
  padding: 6px 2px 8px;
}

.cloud-app-brand strong,
.cloud-app-brand small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cloud-create-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 2px 0 4px;
}

.cloud-create-stack .cloud-main-create,
.cloud-create-stack .cloud-main-upload {
  justify-content: flex-start;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  padding: 0 14px !important;
  border-radius: 9px !important;
  font-size: 13px;
}

.cloud-create-stack .cloud-main-create {
  background: #106ebe;
  box-shadow: 0 8px 16px rgba(16, 110, 190, 0.14);
}

.cloud-create-stack .cloud-main-upload {
  background: #fff;
  color: #111827;
}

.cloud-app-nav {
  margin-top: 6px;
}

.cloud-app-nav button,
.cloud-app-nav a {
  min-height: 36px;
  padding-inline: 10px;
  border-radius: 7px;
  font-size: 13px;
}

.cloud-app-sidebar .cloud-usage-details {
  margin-top: auto;
  padding-top: 12px;
}

.cloud-app-sidebar .cloud-usage-details summary {
  min-height: 26px;
  font-size: 12px;
}

.cloud-app-sidebar .cloud-usage strong {
  font-size: 12px;
}

.cloud-app-sidebar .cloud-usage small {
  font-size: 11px;
}

.cloud-app-main {
  min-width: 0;
  border-right: 1px solid #e5e7eb;
}

.cloud-app-topbar {
  grid-template-columns: minmax(320px, 520px) auto;
  min-height: 58px;
  padding: 12px 22px 8px;
}

.cloud-search {
  min-height: 38px;
  border-radius: 999px;
}

.cloud-search input {
  font-size: 13px;
}

.cloud-top-actions button {
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 12px;
}

.cloud-content-head {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 16px 22px 10px;
}

.cloud-content-head h3 {
  font-size: 19px;
}

.cloud-content-head p {
  margin-top: 3px;
  font-size: 12px;
}

.cloud-content-head .cloud-toolbar {
  flex-wrap: nowrap;
}

.cloud-content-head .cloud-toolbar button,
.cloud-content-head .cloud-toolbar .cloud-upload-button {
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 12px;
}

.cloud-app-shell .cloud-drive-list {
  min-height: calc(100vh - 250px);
  margin: 0 22px 20px;
  border-radius: 9px;
}

.cloud-app-shell .cloud-list-head,
.cloud-app-shell .cloud-row {
  grid-template-columns: 26px minmax(230px, 1.45fr) 104px 80px minmax(190px, auto);
  column-gap: 8px;
  padding-inline: 10px;
}

.cloud-app-shell .cloud-list-head {
  min-height: 38px;
  font-size: 12px;
}

.cloud-app-shell .cloud-row {
  min-height: 48px;
}

.cloud-app-shell .cloud-name-cell strong {
  font-size: 13px;
  font-weight: 800;
}

.cloud-kind,
.cloud-size {
  font-size: 12px;
}

.cloud-app-shell .cloud-file-icon {
  width: 24px;
  height: 20px;
}

.cloud-app-shell .cloud-document-icon {
  width: 22px;
  height: 26px;
}

.cloud-app-shell .cloud-row-actions {
  flex-wrap: nowrap;
  gap: 2px;
}

.cloud-app-shell .cloud-row-actions button,
.cloud-app-shell .cloud-row-actions a {
  min-height: 26px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 850;
}

.cloud-admin-drive {
  max-height: calc(100vh - 118px);
  padding: 16px 12px;
  background: #ffffff;
}

.cloud-admin-drive .cloud-admin-head {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.cloud-admin-drive .cloud-admin-head .eyebrow {
  margin-bottom: 4px;
}

.cloud-admin-drive .cloud-admin-head h3 {
  font-size: 18px;
}

.cloud-admin-drive .cloud-admin-head small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
}

.cloud-admin-drive .cloud-admin-head button {
  justify-self: start;
  height: 32px !important;
  min-height: 32px !important;
  padding-inline: 12px;
  border: 1px solid #d7dbe2;
  background: #fff;
  font-size: 12px;
}

.cloud-admin-drive .cloud-admin-search {
  min-height: 38px;
}

.cloud-admin-drive .cloud-admin-users {
  max-height: 214px;
  padding-right: 4px;
  scrollbar-width: thin;
}

.cloud-admin-drive .cloud-admin-users button {
  min-height: 54px;
  padding: 9px 10px;
  border-radius: 8px;
}

.cloud-admin-drive .cloud-admin-users strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.cloud-admin-drive .cloud-admin-users span {
  font-size: 11px;
}

.cloud-admin-drive .cloud-admin-detail > .cloud-empty {
  margin-top: 12px;
  padding: 14px;
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
  line-height: 1.35;
}

.cloud-admin-drive .cloud-drive-list {
  max-height: 300px;
}

.cloud-admin-drive .cloud-list-head,
.cloud-admin-drive .cloud-row {
  grid-template-columns: 24px minmax(100px, 1fr) 72px 52px minmax(82px, auto);
  column-gap: 6px;
}

.cloud-admin-drive .cloud-row-actions button,
.cloud-admin-drive .cloud-row-actions a {
  font-size: 10px;
  padding-inline: 5px;
}

@media (max-width: 1320px) {
  .cloud-app-shell.has-admin-dock {
    grid-template-columns: 196px minmax(570px, 1fr) 286px;
  }

  .cloud-app-shell .cloud-list-head,
  .cloud-app-shell .cloud-row {
    grid-template-columns: 26px minmax(190px, 1fr) 96px 76px minmax(164px, auto);
  }
}

@media (max-width: 1180px) {
  .cloud-app-shell.has-admin-dock {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .cloud-admin-drive {
    grid-column: 1 / -1;
    max-height: none;
  }
}

/* Cloud product pass: treat employee cloud as a focused file application. */
html.is-cloud-workspace-pending .workspace-tool-nav .dashboard-refresh-button,
body.is-cloud-workspace-pending .workspace-tool-nav .dashboard-refresh-button,
body:has(.cloud-app-shell) .workspace-tool-nav .dashboard-refresh-button {
  display: none;
}

.workspace-screen:has(.cloud-app-shell) {
  margin-top: 0;
  border-radius: 0;
}

.cloud-app-shell.has-admin-dock {
  grid-template-columns: 216px minmax(700px, 1fr) 316px;
  min-height: calc(100vh - 96px);
  border-radius: 16px;
  overflow: hidden;
  background: #f8fafc;
}

.cloud-app-sidebar {
  gap: 12px;
  padding: 18px 14px;
  border-right-color: #dfe5ee;
}

.cloud-create-stack {
  display: block;
  margin: 4px 0 10px;
}

.cloud-create-stack .cloud-main-create {
  justify-content: center;
  width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  border-radius: 999px !important;
  background: #0f6cbd;
  color: #fff;
  box-shadow: 0 10px 18px rgba(15, 108, 189, 0.14);
}

.cloud-create-stack .cloud-main-upload {
  display: none !important;
}

.cloud-app-nav {
  margin-top: 0;
  display: grid;
  gap: 6px;
}

.cloud-app-main {
  position: relative;
  background: #fbfcfe;
}

.cloud-folder-dialog-backdrop {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(248, 250, 252, 0.72);
  backdrop-filter: blur(3px);
}

.cloud-folder-dialog {
  width: min(420px, 100%);
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

.cloud-folder-dialog h3 {
  margin: 2px 0 0;
  font-size: 22px;
  letter-spacing: 0;
}

.cloud-folder-dialog label {
  display: grid;
  gap: 8px;
  color: #475569;
  font-weight: 850;
}

.cloud-folder-dialog input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #cfd8e6;
  border-radius: 12px;
  background: #fbfdff;
  color: #0f172a;
  font: inherit;
  font-weight: 800;
  outline: none;
}

.cloud-folder-dialog input:focus {
  border-color: #0f6cbd;
  box-shadow: 0 0 0 3px rgba(15, 108, 189, 0.14);
}

.cloud-folder-dialog .cloud-dialog-warning {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #fecaca;
  border-radius: 14px;
  background: #fff1f2;
  color: #991b1b;
  font-weight: 800;
  line-height: 1.45;
}

.cloud-folder-dialog-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.cloud-folder-dialog-actions button {
  min-height: 40px;
  min-width: 140px;
  border: 1px solid #d6dfec;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font-weight: 900;
}

.cloud-folder-dialog-actions button[type="submit"] {
  border-color: #0f6cbd;
  background: #0f6cbd;
  color: #fff;
}

.cloud-folder-dialog-actions button.danger {
  border-color: #dc2626;
  background: #dc2626;
  color: #fff;
}

.cloud-folder-dialog-actions button:not(:disabled):hover {
  transform: translateY(-1px);
}

.cloud-share-dialog {
  width: min(720px, calc(100vw - 32px));
}

.cloud-share-list {
  max-height: min(430px, 55vh);
  display: grid;
  gap: 8px;
  overflow: auto;
  padding-right: 4px;
}

.cloud-share-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 150px;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(82, 98, 122, 0.14);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.82);
}

.cloud-share-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.cloud-share-row strong,
.cloud-share-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cloud-share-row strong {
  color: var(--text);
  font-size: 14px;
}

.cloud-share-row small {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.cloud-share-row select {
  min-height: 38px;
  border: 1px solid rgba(82, 98, 122, 0.18);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
}

.cloud-app-topbar {
  grid-template-columns: minmax(360px, 560px) auto;
  padding: 16px 24px 10px;
}

.cloud-search {
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.07);
}

.cloud-top-actions button {
  border: 1px solid transparent;
  background: transparent;
  color: #334155;
}

.cloud-top-actions button:hover {
  border-color: #d7dbe2;
  background: #fff;
}

.cloud-content-head {
  padding: 18px 24px 10px;
}

.cloud-content-head h3 {
  letter-spacing: 0;
}

.cloud-content-head .cloud-toolbar {
  gap: 8px;
}

.cloud-content-head .cloud-toolbar button,
.cloud-content-head .cloud-toolbar .cloud-upload-button {
  border-color: #d8dee8;
  background: #fff;
  color: #0f172a;
  font-weight: 850;
}

.cloud-content-head .cloud-toolbar button:not(:disabled):hover,
.cloud-content-head .cloud-toolbar .cloud-upload-button:hover {
  border-color: #93c5fd;
  background: #f8fbff;
  color: #0757b8;
}

.cloud-selection-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 24px 10px;
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #eff6ff;
  color: #0f172a;
}

.cloud-selection-bar strong {
  margin-right: 4px;
  color: #0f3f78;
}

.cloud-selection-bar button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #b8c9e4;
  border-radius: 999px;
  background: #fff;
  color: #0f4f9d;
  font-weight: 850;
}

.cloud-selection-bar button.danger {
  border-color: #fecaca;
  background: #fff5f5;
  color: #b91c1c;
}

.cloud-app-shell .cloud-drive-list {
  min-height: calc(100vh - 232px);
  margin: 0 24px 22px;
  border-color: #dfe5ee;
  border-radius: 12px;
  background: #fff;
}

.cloud-app-shell .cloud-list-head,
.cloud-app-shell .cloud-row {
  grid-template-columns: 30px minmax(260px, 1.55fr) 120px 88px minmax(210px, auto);
  padding-inline: 12px;
}

.cloud-app-shell .cloud-list-head {
  min-height: 40px;
  color: #475569;
  background: #fbfcfe;
}

.cloud-app-shell .cloud-list-head button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.cloud-app-shell .cloud-list-head button:hover,
.cloud-app-shell .cloud-list-head button.is-active {
  color: #0f6cbd;
}

.cloud-app-shell .cloud-list-head button span {
  font-size: 12px;
  color: currentColor;
}

.cloud-app-shell .cloud-row {
  min-height: 46px;
  cursor: pointer;
}

.cloud-app-shell .cloud-row:nth-child(even) {
  background: #fcfdff;
}

.cloud-app-shell .cloud-row:hover {
  background: #f4f8ff;
}

.cloud-app-shell .cloud-row.is-selected {
  background: #eaf3ff;
  box-shadow: inset 3px 0 0 #0f6cbd;
}

.cloud-select-cell {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
}

.cloud-select-cell input {
  width: 18px;
  height: 18px;
  accent-color: #0f6cbd;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .cloud-app-shell .cloud-row .cloud-select-cell {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.14s ease;
  }

  .cloud-app-shell .cloud-row:hover .cloud-select-cell,
  .cloud-app-shell .cloud-row:focus-within .cloud-select-cell,
  .cloud-app-shell .cloud-row.is-selected .cloud-select-cell {
    opacity: 1;
    pointer-events: auto;
  }
}

.cloud-app-shell .cloud-name-cell strong {
  max-width: 100%;
  font-weight: 850;
}

.cloud-app-shell .cloud-row-actions {
  gap: 6px;
}

.cloud-app-shell .cloud-row-actions button,
.cloud-app-shell .cloud-row-actions a {
  min-height: 28px;
  padding-inline: 8px;
}

.cloud-admin-drive {
  max-height: calc(100vh - 96px);
  padding: 18px 14px;
  border-left-color: #dfe5ee;
  background: #fff;
}

.cloud-admin-drive .cloud-admin-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.cloud-admin-drive .cloud-admin-head button {
  justify-self: end;
}

.cloud-admin-drive .cloud-admin-users {
  max-height: 236px;
}

.cloud-admin-drive .cloud-admin-users button {
  min-height: 56px;
  border-color: #dfe5ee;
}

.cloud-admin-drive .cloud-admin-detail > .cloud-empty {
  display: flex;
  align-items: center;
  min-height: 110px;
  margin-top: 12px;
  padding: 18px;
  border: 1px dashed #d7dbe2;
}

.cloud-admin-drive .cloud-admin-settings-form {
  background: #fbfcfe;
}

@media (max-width: 1360px) {
  .cloud-app-shell.has-admin-dock {
    grid-template-columns: 208px minmax(610px, 1fr) 300px;
  }

  .cloud-app-shell .cloud-list-head,
  .cloud-app-shell .cloud-row {
    grid-template-columns: 28px minmax(210px, 1fr) 104px 78px minmax(168px, auto);
  }
}

@media (max-width: 1200px) {
  .cloud-app-shell.has-admin-dock {
    grid-template-columns: 208px minmax(0, 1fr);
  }

  .cloud-admin-drive {
    grid-column: 1 / -1;
    max-height: none;
    border-left: 0;
    border-top: 1px solid #dfe5ee;
  }
}

/* Cloud product pass 2: give the file workspace priority over admin management. */
.cloud-app-sidebar .cloud-usage-details {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #dfe5ee;
}

.cloud-app-sidebar .cloud-usage {
  gap: 6px;
}

.cloud-app-shell .cloud-drive-list {
  min-height: 560px;
  max-height: calc(100vh - 220px);
}

.cloud-app-shell .cloud-list-head,
.cloud-app-shell .cloud-row {
  grid-template-columns: 30px minmax(280px, 1fr) 126px 94px 244px;
}

.cloud-app-shell .cloud-row-actions {
  min-width: 0;
}

.cloud-app-shell .cloud-row-actions button,
.cloud-app-shell .cloud-row-actions a {
  white-space: nowrap;
}

@media (max-width: 1500px) {
  .cloud-app-shell.has-admin-dock {
    grid-template-columns: 216px minmax(0, 1fr);
  }

  .cloud-admin-drive {
    grid-column: 1 / -1;
    max-height: none;
    border-left: 0;
    border-top: 1px solid #dfe5ee;
  }

  .cloud-admin-drive .cloud-admin-grid {
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    align-items: start;
  }

  .cloud-admin-drive .cloud-admin-users {
    max-height: 280px;
  }

  .cloud-admin-drive .cloud-admin-detail > .cloud-empty {
    min-height: 96px;
  }
}

@media (max-width: 980px) {
  .cloud-app-shell.has-admin-dock,
  .cloud-app-shell {
    grid-template-columns: 1fr;
  }

  .cloud-app-shell .cloud-drive-list {
    max-height: none;
  }

  .cloud-app-shell .cloud-list-head,
  .cloud-app-shell .cloud-row {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .cloud-admin-drive .cloud-admin-grid {
    grid-template-columns: 1fr;
  }
}

/* Cloud product pass 3: admin areas live inside the sidebar, storage stays bottom. */
.cloud-app-shell.has-admin-dock,
.cloud-app-shell {
  grid-template-columns: 248px minmax(0, 1fr);
}

.cloud-app-sidebar {
  min-height: calc(100vh - 96px);
  overflow: hidden;
}

.cloud-sidebar-admin-card {
  display: grid;
  gap: 8px;
  border: 1px solid #dfe5ee;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.cloud-sidebar-admin-card summary {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  color: #0f172a;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.cloud-sidebar-admin-card summary::-webkit-details-marker {
  display: none;
}

.cloud-sidebar-admin-card summary::after {
  content: "Aufklappen";
  justify-self: start;
  margin-top: 2px;
  color: #0757b8;
  font-size: 11px;
  font-weight: 900;
}

.cloud-sidebar-admin-card[open] summary {
  border-bottom: 1px solid #edf0f3;
  background: #eff6ff;
}

.cloud-sidebar-admin-card[open] summary::after {
  content: "Zuklappen";
}

.cloud-sidebar-admin-card summary small {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.cloud-sidebar-admin-search {
  min-height: 34px;
  margin: 8px 8px 0;
  box-shadow: none;
}

.cloud-sidebar-admin-search input {
  font-size: 12px;
}

.cloud-sidebar-admin-users {
  display: grid;
  gap: 6px;
  max-height: 230px;
  overflow: auto;
  padding: 0 8px 8px;
  scrollbar-width: thin;
}

.cloud-sidebar-admin-users button {
  display: grid;
  gap: 3px;
  min-height: 54px;
  padding: 9px 10px;
  border: 1px solid #dfe5ee;
  border-radius: 9px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.cloud-sidebar-admin-users button.is-active {
  border-color: #93c5fd;
  background: #eff6ff;
  box-shadow: inset 3px 0 0 #0f6cbd;
}

.cloud-sidebar-admin-users strong,
.cloud-sidebar-admin-users span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cloud-sidebar-admin-users strong {
  font-size: 12px;
  font-weight: 900;
}

.cloud-sidebar-admin-users span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.cloud-sidebar-admin-refresh {
  min-height: 32px;
  margin: 0 8px 8px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #f8fafc;
  color: #0757b8;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.cloud-app-sidebar .cloud-usage-details {
  margin-top: auto;
}

.cloud-admin-drive {
  grid-column: auto;
  margin: 0 24px 22px;
  max-height: none;
  border: 1px solid #dfe5ee;
  border-radius: 12px;
  background: #fff;
}

.cloud-admin-drive .cloud-admin-head {
  grid-template-columns: minmax(0, 1fr) auto;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf0f3;
}

.cloud-admin-drive .cloud-admin-detail {
  display: grid;
  gap: 12px;
}

.cloud-admin-drive .cloud-drive-list {
  margin: 0;
}

.cloud-admin-overview {
  display: grid;
  gap: 10px;
  margin: 0 24px 16px;
  padding: 14px;
  border: 1px solid #dfe5ee;
  border-radius: 12px;
  background: #fff;
  min-height: auto;
}

.cloud-admin-overview .cloud-admin-users {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  max-height: none;
  overflow: visible;
  padding: 0;
}

.cloud-admin-overview .cloud-admin-users button {
  display: grid;
  gap: 4px;
  min-height: 64px;
  padding: 12px;
  border: 1px solid #dfe5ee;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.cloud-admin-overview .cloud-admin-users button.is-active {
  border-color: #93c5fd;
  background: #eff6ff;
  box-shadow: inset 4px 0 0 #0f6cbd;
}

.cloud-admin-owner-select {
  display: grid;
  gap: 8px;
  max-width: 620px;
  align-content: start;
}

.cloud-admin-owner-select span {
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
}

.cloud-admin-owner-select select {
  width: 100%;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 0 42px 0 14px;
  border: 1px solid #d8dee8;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  outline: none;
}

.cloud-admin-owner-select select:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.28);
}

.cloud-admin-owner-select small {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.cloud-admin-overview {
  align-content: start;
  min-height: 0;
}

.cloud-admin-overview .cloud-admin-owner-select {
  min-height: 0;
}

@media (max-width: 980px) {
  .cloud-app-shell.has-admin-dock,
  .cloud-app-shell {
    grid-template-columns: 1fr;
  }

  .cloud-app-sidebar {
    min-height: auto;
  }

  .cloud-sidebar-admin-users {
    max-height: 260px;
  }
}

.access-guide-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.access-guide-head h3 {
  margin: 2px 0 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
}

.access-guide-head small,
.access-guide-grid article small,
.access-term-grid span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.access-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.access-guide-grid article {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 148px;
  padding: 14px;
  border: 1px solid rgba(82, 98, 122, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.access-guide-grid article strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
}

.access-guide-grid article div {
  gap: 6px;
}

.access-guide-grid article div span {
  min-height: 28px;
  background: rgba(15, 159, 110, 0.08);
  border-color: rgba(15, 159, 110, 0.16);
  color: #047857;
}

.access-term-grid {
  gap: 8px;
  padding-top: 2px;
}

.access-term-grid span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(82, 98, 122, 0.1);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.86);
}

.access-term-grid strong {
  color: var(--text);
}

.access-user-list-items {
  display: grid;
  gap: 8px;
}

.access-user-accordion {
  border: 1px solid rgba(82, 98, 122, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  overflow: hidden;
}

.access-user-accordion.is-open {
  border-color: rgba(31, 107, 255, 0.42);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(236, 253, 245, 0.86));
  box-shadow: 0 16px 36px rgba(31, 107, 255, 0.13);
}

.access-user-item {
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(140px, 0.75fr) minmax(140px, 0.7fr) minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.access-user-item.is-selected {
  background: linear-gradient(90deg, rgba(31, 107, 255, 0.12), rgba(255, 255, 255, 0.48));
  box-shadow: inset 5px 0 0 #1f6bff;
}

.access-user-item.is-selected .access-user-main strong {
  color: #174da8;
}

.access-user-main strong,
.access-user-meta strong,
.access-user-template strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
}

.access-user-main small,
.access-user-meta small,
.access-user-template span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.access-user-template {
  min-height: 42px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 7px 10px;
  border: 1px solid rgba(31, 107, 255, 0.18);
  border-radius: 12px;
  background: rgba(239, 246, 255, 0.72);
}

.access-user-template span {
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 10px;
}

.access-user-template strong {
  margin-top: 2px;
  color: #174ea6;
}

.access-user-pills,
.access-user-state,
.access-lifecycle-actions,
.erp-customer-status,
.mdm-rollout-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.access-accordion-editor {
  padding: 0 14px 14px;
}

.access-selected-summary,
.mdm-model-grid,
.erp-summary-grid,
.workday-admin-insights,
.workday-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.access-selected-summary {
  margin-bottom: 12px;
}

.access-selected-summary article,
.access-warning-box,
.mdm-model-grid article,
.erp-summary-card,
.workday-admin-insights article,
.workday-detail-grid article,
.mdm-slot-grid article {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(82, 98, 122, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
}

.access-selected-summary span,
.access-field-hint,
.workday-admin-command small,
.erp-command-panel small,
.mdm-setup-panel li span,
.mdm-slot-grid small {
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.access-warning-box {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  border-color: rgba(245, 158, 11, 0.24);
  background: rgba(255, 251, 235, 0.92);
  color: #8a4b00;
}

.access-warning-box strong {
  color: #8a4b00;
  font-size: 13px;
}

.access-warning-box ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}

.access-warning-box li {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.access-warning-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 2px;
}

.access-warning-actions button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.22);
  color: #8a4b00;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.1);
}

.access-warning-actions button:hover {
  background: rgba(245, 158, 11, 0.3);
  border-color: rgba(245, 158, 11, 0.46);
}

.access-multiselect summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid rgba(82, 98, 122, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.access-multiselect-menu {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid rgba(82, 98, 122, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
}

.access-editor-column,
.access-editor-footer,
.erp-customer-list,
.workday-event-list {
  display: grid;
  gap: 10px;
}

.access-lifecycle-actions {
  justify-content: center;
}

.access-edit-button.danger {
  border-color: rgba(220, 38, 38, 0.18);
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
}

.access-edit-button.success {
  border-color: rgba(15, 159, 110, 0.2);
  background: rgba(15, 159, 110, 0.1);
  color: #047857;
}

.access-create-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(15, 159, 110, 0.18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.84), rgba(255, 255, 255, 0.9));
}

.access-create-grid,
.access-create-options,
.erp-customer-create-grid,
.erp-item-create-grid,
.workday-filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  align-items: center;
}

.access-create-panel input,
.access-create-panel select,
.access-preset-select select,
.erp-customer-create-form input,
.erp-customer-edit-form input,
.erp-customer-site-form input,
.erp-item-create-form input,
.erp-item-create-form select,
.erp-customer-filter-form input,
.workday-filter-form input,
.workday-filter-form select,
.workday-correction-form input,
.workday-correction-form select {
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(82, 98, 122, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.access-preset-select {
  display: grid;
  gap: 6px;
  max-width: 520px;
}

.access-preset-select span {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.access-preset-select small {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.access-preset-select-inline {
  margin: 0 0 12px;
}

.access-create-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  color: #52627a;
  font-size: 13px;
  font-weight: 850;
}

.access-create-result,
.erp-warning-panel {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 12px;
  background: rgba(255, 251, 235, 0.88);
  color: #8a4b00;
  font-size: 13px;
  font-weight: 800;
}

.mdm-setup-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(320px, 1.4fr) auto;
  align-items: center;
}

.mdm-setup-panel ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mdm-setup-panel li,
.workday-absence-box > div,
.workday-location-box,
.workday-correction-form,
.workday-event-list {
  padding: 12px;
  border: 1px solid rgba(82, 98, 122, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
}

.mdm-model-panel,
.erp-customer-create-form,
.erp-item-create-form,
.mdm-rollout-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.mdm-model-grid span,
.erp-summary-card span,
.workday-admin-insights span,
.workday-detail-grid span,
.mdm-slot-grid span {
  color: #52627a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.mdm-model-grid strong,
.erp-summary-card strong,
.workday-admin-insights strong,
.workday-detail-grid strong,
.mdm-slot-grid strong {
  color: var(--text);
  font-size: 20px;
  line-height: 1.1;
}

.mdm-rollout-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.mdm-rollout-checks {
  justify-content: flex-end;
}

.mdm-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.mdm-slot-grid article {
  min-height: 144px;
  border-color: rgba(245, 158, 11, 0.18);
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.76), rgba(255, 255, 255, 0.9));
}

.mdm-slot-grid article.is-connected {
  border-color: rgba(15, 159, 110, 0.22);
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.84), rgba(255, 255, 255, 0.9));
}

.mdm-slot-grid p {
  margin: 0;
  color: #8a4b00;
  font-weight: 900;
}

.mdm-slot-grid article.is-connected p {
  color: #047857;
}

.erp-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mdm-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.mdm-table-wrap,
.erp-table-wrap {
  max-height: 420px;
}

.mdm-table {
  min-width: 920px;
  table-layout: fixed;
}

.mdm-table th:first-child,
.mdm-table td:first-child {
  width: 30%;
}

.mdm-table th:nth-child(2),
.mdm-table td:nth-child(2) {
  width: 26%;
}

.mdm-table th:nth-child(3),
.mdm-table td:nth-child(3) {
  width: 22%;
}

.mdm-table th:nth-child(4),
.mdm-table td:nth-child(4) {
  width: 22%;
}

.mdm-map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  font-weight: 900;
  text-decoration: none;
}

.mdm-app-table {
  min-width: 520px;
}

.mdm-app-table th:first-child,
.mdm-app-table td:first-child {
  width: 64%;
}

.mdm-app-table th:nth-child(2),
.mdm-app-table td:nth-child(2) {
  width: 36%;
}

.erp-command-panel {
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(31, 107, 255, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(31, 107, 255, 0.08), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.94));
  box-shadow: 0 16px 38px rgba(7, 22, 49, 0.06);
}

.erp-command-panel h3 {
  margin: 2px 0 3px;
  color: var(--text);
  font-size: 28px;
  font-weight: 950;
  letter-spacing: 0;
}

.erp-command-panel small {
  color: #52627a;
  font-size: 13px;
  font-weight: 850;
}

.erp-tab-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  margin-top: 14px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.82), rgba(255, 255, 255, 0.96));
}

.erp-tab-bar.access-tab-bar {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.erp-tab-bar button {
  min-height: 62px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #52627a;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.erp-tab-bar button strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 950;
}

.erp-tab-bar button small {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.erp-tab-bar button.is-active {
  border-color: rgba(31, 107, 255, 0.22);
  background: linear-gradient(135deg, #fff, rgba(239, 246, 255, 0.72));
  box-shadow: 0 12px 26px rgba(31, 107, 255, 0.09);
}

.erp-tab-bar button.is-active strong {
  color: #174da8;
}

.erp-tab-panel {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.erp-panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.erp-panel-actions .mini-link-button,
.erp-command-panel button,
.erp-customer-filter-form button {
  min-height: 40px;
  border-radius: 999px;
  font-weight: 900;
}

.erp-customer-filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 10px;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(82, 98, 122, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
}

.erp-customer-list-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(15, 159, 110, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(240, 253, 250, 0.72), rgba(255, 255, 255, 0.96));
  box-shadow: 0 12px 30px rgba(7, 22, 49, 0.045);
}

.erp-customer-list-panel .erp-customer-create-form {
  box-shadow: none;
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.58), rgba(255, 255, 255, 0.9));
}

.erp-customer-import-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(31, 107, 255, 0.14);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.72), rgba(255, 255, 255, 0.94));
}

.erp-customer-import-panel > div:first-child {
  display: grid;
  gap: 4px;
}

.erp-customer-import-panel strong {
  color: var(--text);
  font-weight: 950;
}

.erp-customer-import-panel small,
.erp-customer-import-status,
.erp-import-more {
  color: #52627a;
  font-size: 12px;
  font-weight: 800;
}

.erp-customer-import-actions,
.erp-import-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.erp-import-preview-button,
.erp-import-reset-button {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.erp-import-preview-button {
  border: 1px solid rgba(31, 107, 255, 0.32);
  background: linear-gradient(135deg, #1f6bff, #0f4fc7);
  color: #fff;
  box-shadow: 0 12px 24px rgba(31, 107, 255, 0.18);
}

.erp-import-preview-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(31, 107, 255, 0.24);
}

.erp-import-preview-button:disabled {
  border-color: rgba(148, 163, 184, 0.32);
  background: #eef2f7;
  color: #8a97aa;
  box-shadow: none;
  cursor: not-allowed;
}

.erp-import-reset-button {
  border: 1px solid rgba(220, 38, 38, 0.2);
  background: rgba(255, 255, 255, 0.92);
  color: #b91c1c;
}

.erp-import-reset-button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #fff5f5;
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.12);
}

.erp-import-file {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(100%, 360px);
  padding: 0 12px;
  border: 1px solid rgba(31, 107, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #174da8;
  cursor: pointer;
}

.erp-import-file input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.erp-import-file span {
  font-size: 12px;
  font-weight: 950;
}

.erp-import-file strong {
  min-width: 0;
  color: #52627a;
  font-size: 12px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.erp-import-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
}

.erp-import-summary span {
  min-height: 42px;
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid rgba(82, 98, 122, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  color: #52627a;
  font-size: 12px;
  font-weight: 850;
}

.erp-import-summary b {
  color: var(--text);
  font-size: 16px;
}

.erp-import-summary .danger b,
.erp-import-summary .danger {
  color: #b42318;
}

.erp-import-mode {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.92);
  color: #174da8;
  font-size: 11px;
  font-weight: 950;
}

.erp-import-mode.new {
  background: rgba(236, 253, 245, 0.96);
  color: #047857;
}

.erp-import-mode.update {
  background: rgba(255, 247, 237, 0.96);
  color: #b45309;
}

.erp-import-mode.unchanged {
  background: rgba(241, 245, 249, 0.96);
  color: #52627a;
}

.erp-import-mode.conflict {
  background: rgba(254, 242, 242, 0.96);
  color: #b42318;
}

.erp-import-final-actions {
  justify-content: flex-end;
}

.erp-import-final-actions .primary {
  background: var(--green);
  color: #fff;
}

.erp-customer-list-subhead {
  padding: 14px 12px;
  border: 1px solid rgba(15, 159, 110, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.erp-customer-list {
  display: grid;
  gap: 10px;
}

.erp-customer-row {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(82, 98, 122, 0.11);
  border-left: 4px solid rgba(31, 107, 255, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 20px rgba(7, 22, 49, 0.035);
}

.erp-customer-list .erp-customer-row:nth-child(odd) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.92));
}

.erp-customer-list .erp-customer-row:nth-child(even) {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.92));
}

.erp-customer-row.is-editing {
  border-color: rgba(37, 99, 235, 0.28);
  border-left-color: #1f6bff;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.78), rgba(255, 255, 255, 0.95));
}

.erp-customer-row.is-disabled {
  border-color: rgba(190, 18, 60, 0.24);
  border-left-color: #be123c;
  background:
    linear-gradient(135deg, rgba(254, 242, 242, 0.92), rgba(255, 255, 255, 0.94));
}

.erp-customer-row.is-disabled strong,
.erp-customer-row.is-disabled .erp-customer-row-main > div:first-child small {
  color: #9f1239;
}

.erp-customer-list .erp-customer-row.is-disabled:nth-child(odd),
.erp-customer-list .erp-customer-row.is-disabled:nth-child(even) {
  background:
    linear-gradient(135deg, rgba(254, 242, 242, 0.92), rgba(255, 255, 255, 0.94));
}

.erp-customer-row-main {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(140px, 0.8fr) auto;
  gap: 12px;
  align-items: center;
  padding: 2px 0 4px;
}

.erp-customer-row strong,
.erp-customer-row span {
  color: var(--text);
  font-weight: 900;
}

.erp-customer-row small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.erp-customer-status {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.erp-customer-edit-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.72), rgba(255, 255, 255, 0.92));
}

.erp-customer-edit-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(82, 98, 122, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
}

.erp-customer-edit-section strong {
  grid-column: 1 / -1;
  color: #071631;
  font-size: 13px;
  font-weight: 950;
}

.erp-customer-edit-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.erp-customer-edit-status {
  grid-column: 1 / -1;
  color: #52627a;
  font-size: 12px;
  font-weight: 850;
}

.erp-customer-sites-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(17, 187, 122, 0.2);
  border-left: 4px solid rgba(15, 159, 110, 0.45);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(240, 253, 250, 0.76), rgba(255, 255, 255, 0.9));
}

.erp-customer-sites-panel.muted {
  border-color: rgba(82, 98, 122, 0.12);
  background: rgba(248, 250, 252, 0.8);
}

.erp-customer-sites-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.erp-customer-sites-head strong,
.erp-customer-sites-panel > strong {
  color: #065f46;
  font-size: 13px;
  font-weight: 950;
}

.erp-customer-sites-head small {
  color: #52627a;
  font-size: 12px;
  font-weight: 850;
}

.erp-customer-sites {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

.erp-customer-sites span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  max-width: 100%;
  padding: 5px 11px;
  border: 1px solid rgba(17, 187, 122, 0.22);
  border-radius: 999px;
  background: rgba(17, 187, 122, 0.1);
  color: #08734e;
  font-size: 12px;
  font-weight: 900;
}

.erp-customer-sites.muted span {
  border-color: rgba(82, 98, 122, 0.15);
  background: rgba(82, 98, 122, 0.06);
  color: #52627a;
}

.erp-customer-site-edit-list {
  display: grid;
  gap: 10px;
}

.erp-customer-site-existing,
.erp-customer-site-empty {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(82, 98, 122, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.erp-customer-site-existing > strong,
.erp-customer-site-empty > strong {
  color: #071631;
  font-size: 13px;
  font-weight: 950;
}

.erp-customer-site-empty p {
  margin: 0;
  color: #52627a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.erp-customer-site-form {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(90px, 0.45fr) minmax(130px, 0.75fr) minmax(150px, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(82, 98, 122, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
}

.erp-customer-site-form button[type="submit"] {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(15, 159, 110, 0.18);
  border-radius: 999px;
  background: #0f9f6e;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(15, 159, 110, 0.16);
  cursor: pointer;
}

.erp-customer-site-form button[type="submit"]:hover {
  background: #08734e;
}

.erp-danger-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #be123c;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(190, 18, 60, 0.16);
  cursor: pointer;
}

.erp-danger-button:hover {
  background: #9f1239;
  color: #fff;
}

.erp-customer-edit-form .erp-danger-button,
.erp-customer-site-form .erp-danger-button {
  border-color: transparent;
  background: #be123c;
  color: #fff;
  box-shadow: 0 10px 22px rgba(190, 18, 60, 0.16);
}

.erp-customer-edit-form .erp-danger-button:hover,
.erp-customer-site-form .erp-danger-button:hover {
  background: #9f1239;
  color: #fff;
}

.erp-sync-pill.danger {
  background: rgba(254, 226, 226, 0.9);
  color: #be123c;
}

.erp-customer-site-new-form {
  border-color: rgba(17, 187, 122, 0.18);
  background: rgba(255, 255, 255, 0.96);
}

.erp-customer-site-form strong {
  grid-column: 1 / -1;
  color: #08734e;
  font-size: 13px;
  font-weight: 950;
}

.erp-customer-site-status {
  grid-column: 1 / -1;
  color: #52627a;
  font-size: 12px;
  font-weight: 850;
}

.erp-sync-pill {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(82, 98, 122, 0.08);
  color: #52627a;
  font-size: 12px;
  font-weight: 900;
}

.erp-sync-pill.success {
  background: rgba(15, 159, 110, 0.1);
  color: #047857;
}

.erp-edit-button {
  border-color: rgba(31, 107, 255, 0.22) !important;
  background: rgba(31, 107, 255, 0.08) !important;
  color: #174da8 !important;
  box-shadow: none !important;
}

.erp-edit-button:hover,
.erp-edit-button:focus-visible {
  background: #174da8 !important;
  color: #fff !important;
}

.workday-admin-insights article.attention {
  border-color: rgba(220, 38, 38, 0.2);
  background: rgba(254, 242, 242, 0.86);
}

.workday-filter-form {
  padding: 10px;
}

.workday-admin-list {
  max-height: 620px;
  overflow: auto;
  border: 1px solid rgba(82, 98, 122, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
}

.workday-admin-table {
  width: 100%;
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0;
}

.workday-admin-table th,
.workday-admin-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(82, 98, 122, 0.09);
  text-align: left;
  vertical-align: top;
}

.workday-admin-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(248, 250, 252, 0.96);
  color: #52627a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.workday-admin-table td strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.workday-admin-table td small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.workday-admin-row {
  cursor: pointer;
}

.workday-admin-row.is-open {
  background: rgba(31, 107, 255, 0.06);
  box-shadow: inset 4px 0 0 #1f6bff;
}

.workday-admin-detail-row {
  display: none;
}

.workday-admin-row.is-open + .workday-admin-detail-row {
  display: table-row;
}

.workday-admin-row-body {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(244, 248, 255, 0.9), rgba(255, 255, 255, 0.92));
}

.workday-status-pill {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(82, 98, 122, 0.1);
  color: #52627a;
  font-size: 12px;
  font-weight: 900;
}

.workday-status-pill.active {
  background: rgba(15, 159, 110, 0.1);
  color: #047857;
}

.workday-status-pill.ended {
  background: rgba(31, 107, 255, 0.09);
  color: #174da8;
}

.workday-status-pill.missing {
  background: rgba(245, 158, 11, 0.13);
  color: #8a4b00;
}

.workday-absence-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.workday-location-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.workday-location-box.has-location {
  border-color: rgba(15, 159, 110, 0.18);
  background: rgba(236, 253, 245, 0.78);
}

.workday-location-box.no-location {
  border-color: rgba(245, 158, 11, 0.18);
  background: rgba(255, 251, 235, 0.78);
}

.workday-location-main,
.workday-location-meta {
  display: grid;
  gap: 4px;
}

.workday-location-meta {
  justify-items: end;
}

.workday-location-meta a {
  color: #174da8;
  font-weight: 900;
}

.workday-correction-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(130px, 0.5fr) minmax(120px, 0.45fr) auto minmax(180px, 1fr);
  gap: 10px;
  align-items: center;
}

.workday-correction-form > span {
  color: var(--text);
  font-weight: 900;
}

.workday-event-row {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) minmax(160px, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(82, 98, 122, 0.08);
}

.workday-event-row:last-child {
  border-bottom: 0;
}

@media (max-width: 980px) {
  body {
    padding: 0;
    background: #f8fafc;
  }

  .portal-window {
    width: 100%;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .topbar {
    height: 76px;
    padding: 0 20px;
  }

  .portal-title {
    font-size: 22px;
  }

  .top-actions button:first-child,
  .auth-state {
    display: none;
  }

  .top-actions .logout-button {
    min-width: 76px;
    height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  .top-actions .profile-button {
    height: 40px;
    min-width: 40px;
    padding: 0 10px;
  }

  .profile-button span {
    display: none;
  }

  .profile-menu {
    right: 0;
    width: min(330px, calc(100vw - 24px));
  }

  .profile-menu::before {
    right: 18px;
  }

  .top-actions .login-button {
    min-width: 168px;
    height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  .identity-panel {
    grid-template-columns: 1fr;
    margin: 24px 16px 0;
    padding: 20px;
    border-radius: 16px;
  }

  body.is-authenticated .identity-panel {
    top: 88px;
    right: 12px;
    width: calc(100vw - 24px);
    padding: 20px;
  }

  body.is-authenticated.is-profile-screen .identity-panel {
    position: static;
    width: calc(100% - 32px);
    margin: 12px 16px 24px;
    padding: 0;
  }

  body.is-authenticated.is-profile-screen .employee-section {
    display: none;
    padding: 0 16px 34px;
  }

  .profile-hub {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }

  .profile-page-head {
    display: grid;
    padding: 20px 18px 16px;
  }

  .profile-page-head h2 {
    font-size: 24px;
  }

  .profile-version-chip {
    justify-self: start;
  }

  .profile-summary-card {
    min-height: 190px;
    border-radius: 16px;
    padding: 24px 16px 18px;
  }

  .profile-summary-metrics {
    max-width: 420px;
  }

  .profile-settings-card {
    border-radius: 18px;
    grid-template-columns: 1fr;
  }

  .profile-settings-tabs {
    flex-direction: row;
    overflow-x: auto;
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(11, 26, 55, 0.08);
  }

  .profile-settings-tabs button {
    min-height: 42px;
    width: auto;
    flex: 0 0 auto;
    text-align: center;
    border-radius: 999px;
  }

  .profile-settings-panel {
    min-height: auto;
  }

  .profile-setting-row {
    min-height: 82px;
    padding: 14px;
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }

  .profile-info-list div {
    align-items: flex-start;
  }

  .profile-section-body {
    padding: 14px;
  }

  .profile-status-grid,
  .profile-action-grid,
  .profile-employee-grid {
    grid-template-columns: 1fr;
  }

  .profile-form-actions {
    display: grid;
  }

  .profile-password-form button {
    width: 100%;
    justify-self: stretch;
  }

  .profile-document-list a {
    align-items: flex-start;
    flex-direction: column;
  }

  body.is-logged-out .portal-window {
    min-height: 100vh;
  }

  body.is-logged-out .identity-panel {
    grid-template-columns: 1fr;
    width: auto;
    min-height: auto;
    margin: 44px 14px 24px;
    padding: 0;
    border-radius: 18px;
  }

  body.is-logged-out .identity-main {
    padding: 0;
  }

  body.is-logged-out .identity-panel h1 {
    font-size: 34px;
  }

  body.is-logged-out .login-brand {
    margin-bottom: 18px;
  }

  body.is-logged-out .login-brand img {
    width: min(230px, 72vw);
  }

  body.is-logged-out .login-intro {
    margin-bottom: 22px;
  }

  body.is-logged-out .login-intro h2 {
    font-size: 31px;
  }

  body.is-logged-out .login-intro p {
    max-width: 340px;
    margin-top: 12px;
    font-size: 18px;
  }

  .logged-out-copy {
    font-size: 15px;
  }

  .login-form {
    width: 100%;
    padding: 20px;
    border-radius: 20px;
  }

  .login-form label {
    font-size: 15px;
  }

  .login-form input:not([type="checkbox"]) {
    height: 58px;
    font-size: 16px;
    padding-inline: 50px;
  }

  .input-field > svg,
  .password-field > svg {
    left: 16px;
    width: 21px;
    height: 21px;
  }

  .password-toggle {
    width: 46px;
    height: 46px;
  }

  .login-submit {
    height: 60px;
    font-size: 18px;
  }

  .remember-row {
    font-size: 14px !important;
  }

  .portal-credit {
    font-size: 13px;
  }

  .login-assurance {
    align-self: end;
    padding: 16px;
  }

  .login-assurance strong {
    font-size: 19px;
  }

  .identity-meta {
    justify-items: start;
    min-width: 0;
  }

  .group-list {
    justify-content: flex-start;
  }

  .tools-section {
    padding: 28px 16px 36px;
  }

  .employee-section {
    padding: 22px 16px 34px;
  }

  .employee-panel {
    padding: 18px;
  }

  .admin-workspace-section {
    padding: 0 16px 34px;
  }

  body.is-workspace-open .admin-workspace-section {
    padding-top: 10px;
  }

  .dashboard-overview {
    gap: 12px;
  }

  .dashboard-overview-head,
  .dashboard-title-head,
  .dashboard-monitoring-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-monitoring-bar > div {
    width: 100%;
    justify-content: space-between;
  }

  .dashboard-title-head h1 {
    font-size: 28px;
  }

  .dashboard-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .internal-ticket-section {
    padding: 10px 16px 34px;
  }

  .technician-report-section {
    padding: 10px 16px 34px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .employee-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .workspace-groups {
    gap: 14px;
  }

  .workspace-group {
    padding: 12px;
  }

  .workspace-screen {
    padding: 18px;
  }

  .workspace-screen-head {
    flex-direction: column;
  }

  .workspace-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .access-overview-grid,
  .access-overview-lists,
  .access-editor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .access-command-bar,
  .mdm-setup-panel,
  .erp-command-panel,
  .workday-admin-command,
  .mdm-rollout-head,
  .workday-location-box {
    display: grid;
  }

  .access-user-item,
  .erp-customer-row,
  .erp-customer-row-main,
  .erp-customer-edit-form,
  .erp-customer-edit-section,
  .erp-customer-site-form,
  .workday-correction-form,
  .workday-event-row {
    grid-template-columns: 1fr;
  }

  .mdm-setup-panel ol,
  .mdm-list-grid,
  .erp-list-grid,
  .erp-tab-bar,
  .erp-tab-bar.access-tab-bar,
  .workday-absence-box,
  .access-selected-summary {
    grid-template-columns: 1fr;
  }

  .erp-customer-filter-form {
    grid-template-columns: 1fr;
  }

  .erp-customer-import-actions,
  .erp-import-final-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .erp-import-file,
  .erp-customer-import-actions .mini-link-button,
  .erp-customer-import-actions button,
  .erp-import-final-actions button {
    width: 100%;
    justify-content: center;
  }

  .erp-import-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .erp-customer-site-form button[type="submit"],
  .erp-customer-site-form .erp-danger-button {
    width: 100%;
  }

  .workday-location-meta {
    justify-items: start;
  }

  .access-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ticket-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ticket-filter-form {
    grid-template-columns: 1fr;
  }

  .ticket-filter-panel {
    padding: 10px;
    border-radius: 16px;
    margin-bottom: 10px;
  }

  .ticket-filter-head {
    min-height: 38px;
  }

  .trash-filter-form,
  .billing-detail-meta,
  .billing-check-grid {
    grid-template-columns: 1fr;
  }

  .ticket-billing-table,
  .trash-table {
    min-width: 720px;
  }

  .ticket-billing-accordion-detail,
  .trash-accordion-detail {
    padding: 14px;
  }

  .trash-detail-actions {
    justify-content: flex-start;
  }

  .billing-detail-head {
    display: grid;
  }

  .billing-detail-head-actions,
  .billing-row-actions {
    justify-content: flex-start;
  }

  .billing-evidence-row {
    grid-template-columns: 1fr;
  }

  .billing-evidence-row a {
    justify-self: start;
  }

  .billing-attachment-form,
  .billing-document-row {
    grid-template-columns: 1fr;
  }

  .billing-document-actions {
    justify-content: flex-start;
  }

  .ticket-create-grid {
    grid-template-columns: 1fr;
  }

  .ticket-customer-picker,
  .ticket-inline-customer-create {
    grid-template-columns: 1fr;
  }

  .ticket-inline-customer-address-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ticket-create-file-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .technician-report-filter-form {
    grid-template-columns: 1fr;
  }

  .technician-report-grid {
    grid-template-columns: 1fr;
  }

  .technician-report-list-wrap {
    max-height: 78vh;
    padding: 8px;
  }

  .technician-report-card {
    padding: 12px;
  }

  .technician-report-card-meta {
    grid-template-columns: 1fr;
  }

  .technician-report-card-footer {
    align-items: stretch;
  }

  .technician-report-card-footer .table-actions {
    width: 100%;
    justify-content: stretch;
  }

  .technician-report-card-footer .table-actions > * {
    flex: 1 1 120px;
  }

  .technician-inline-form {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
  }

  .technician-inline-grid,
  .technician-inline-work-grid {
    grid-template-columns: 1fr;
  }

  .technician-inline-content {
    gap: 10px;
  }

  .technician-inline-form .technician-flow-step {
    padding: 12px;
  }

  .technician-inline-signature-pad {
    min-height: 230px;
  }

  .additional-technician-row,
  .material-item-row {
    grid-template-columns: 1fr;
  }

  .additional-technician-editor,
  .material-item-editor {
    grid-template-columns: 1fr;
  }

  .additional-technician-actions,
  .material-item-actions {
    justify-content: stretch;
  }

  .additional-technician-actions button,
  .material-item-actions button {
    flex: 1 1 130px;
  }

  .additional-technicians-head,
  .material-items-head {
    grid-template-columns: max-content minmax(118px, 1fr);
  }

  .technician-report-form .additional-technicians-head button,
  .technician-report-form .material-items-head button {
    width: auto;
    min-width: 118px;
    max-width: 220px;
    justify-self: stretch;
  }

  .technician-time-field {
    display: grid;
    gap: 5px;
  }

  .technician-time-field > span {
    display: block;
    color: #174da8;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
  }

  .technician-report-grid .technician-required-hint {
    display: block;
  }

  .technician-report-form input[data-technician-time-input="1"] {
    min-height: 42px;
    padding-left: 36px;
    padding-right: 12px;
    font-size: 13px;
    font-weight: 750;
    background:
      rgba(255, 255, 255, 0.9),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23174da8' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat;
    background-position: 0 0, 12px center;
    background-size: auto, 18px 18px;
    border-color: rgba(82, 98, 122, 0.16);
  }

  .technician-report-form input[data-technician-time-input="1"]::-webkit-calendar-picker-indicator {
    display: block;
    width: 22px;
    height: 22px;
    margin-right: -2px;
    opacity: 0.75;
    cursor: pointer;
  }

  .technician-report-form button {
    width: 100%;
  }

  .additional-technician-row.is-saved .additional-technician-actions,
  .material-item-row.is-saved .material-item-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(112px, 160px));
    justify-content: end;
  }

  .additional-technician-row.is-saved .additional-technician-actions button,
  .material-item-row.is-saved .material-item-actions button {
    width: auto;
    min-width: 0;
    height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  .ticket-workspace {
    grid-template-columns: 1fr;
  }

  .ticket-detail-panel {
    max-height: none;
    overflow: visible;
    min-height: auto;
    padding: 18px;
  }

  .ticket-detail-head {
    display: grid;
  }

  .ticket-detail-topbar button {
    width: 100%;
    min-height: 48px;
  }

  .ticket-detail-actions {
    justify-content: flex-start;
    gap: 10px;
  }

  .ticket-execution-head,
  .ticket-execution-grid {
    grid-template-columns: 1fr;
  }

  .ticket-execution-head {
    display: grid;
    gap: 8px;
  }

  .ticket-execution-grid {
    gap: 8px;
  }

  .ticket-execution-grid label,
  .ticket-execution-grid > span {
    min-height: auto;
    padding: 10px 12px;
  }

  .ticket-note-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ticket-update-grid {
    grid-template-columns: 1fr;
  }

  .ticket-note-actions button {
    width: 100%;
  }

  .ticket-execution-form .ticket-note-actions button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 16px;
  }

  .ticket-customer-update-grid {
    grid-template-columns: 1fr;
  }

  .ticket-customer-edit-inline .ticket-detail-customer-search-wrap,
  .ticket-customer-edit-inline input[name="customer_contact"],
  .ticket-customer-update-grid textarea {
    grid-column: 1;
    grid-row: auto;
  }

  .ticket-customer-edit-inline .ticket-customer-update-status {
    max-width: none;
  }

  .ticket-customer-sync-check {
    align-items: flex-start;
  }

  .summary-card {
    min-height: 122px;
    padding: 16px;
  }

  .summary-card strong {
    font-size: 18px;
  }

  h1 {
    margin-bottom: 20px;
    font-size: 25px;
  }

  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .tool-grid.five-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-card {
    min-height: 128px;
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
  }

  .icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
  }

  .icon svg {
    width: 29px;
    height: 29px;
  }

  .tool-card strong {
    font-size: 15px;
  }

  .tool-card small {
    font-size: 12px;
  }
}

@media (max-width: 640px) {
  .ticket-customer-edit-inline .ticket-customer-update-grid {
    grid-template-columns: 1fr;
  }

  .ticket-customer-edit-inline .ticket-detail-customer-search-wrap,
  .ticket-customer-edit-inline input[name="customer_contact"],
  .ticket-customer-edit-inline .ticket-customer-update-grid textarea {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 360px) {
  .access-filter-form {
    grid-template-columns: 1fr;
  }

  body.is-logged-out .identity-main {
    padding-inline: 16px;
  }

  body.is-logged-out .identity-meta {
    padding: 20px;
  }

  .login-form {
    padding: 14px;
  }

  .tools-section {
    padding-inline: 10px;
  }

  .employee-section {
    padding: 18px 10px 34px;
  }

  .employee-panel {
    padding: 14px;
  }

  .admin-workspace-section {
    padding-inline: 10px;
  }

  body.is-workspace-open .admin-workspace-section {
    padding-top: 10px;
  }

  .dashboard-overview {
    gap: 10px;
  }

  .dashboard-monitoring-shell {
    padding: 14px;
    border-radius: 18px;
  }

  .dashboard-monitoring-bar > div {
    display: grid;
    width: 100%;
    gap: 8px;
  }

  .dashboard-monitoring-bar .section-toggle {
    width: 100%;
  }

  .internal-ticket-section {
    padding-inline: 10px;
  }

  .technician-report-section {
    padding-inline: 10px;
  }

  .employee-summary-grid {
    grid-template-columns: 1fr;
  }

  .profile-time-grid {
    grid-template-columns: 1fr;
  }

  .employee-workday-detail,
  .employee-workday-history div,
  .profile-time-grid .employee-workday-history div,
  .profile-time-grid .employee-today-card,
  .profile-time-grid .employee-workday-actions {
    grid-template-columns: 1fr;
  }

  .employee-workday-actions button {
    width: 100%;
  }

  .workspace-grid,
  .workspace-metric-grid,
  .workspace-metric-grid.is-two-tiles,
  .access-overview-grid,
  .access-overview-lists,
  .access-editor-grid,
  .dashboard-overview-grid {
    grid-template-columns: 1fr;
  }

  .ticket-stats-grid,
  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .tool-grid {
    gap: 8px;
  }

  .tool-card strong {
    font-size: 13px;
  }
}

/* Mobile Cloud pass: keep desktop Drive view, but turn own files into touch-friendly rows. */
@media (max-width: 760px) {
  .global-search-panel {
    top: 74px;
    right: 10px;
    left: 10px;
    width: auto;
    max-height: calc(100vh - 96px);
    border-radius: 18px;
  }

  .global-search-panel::before {
    right: 126px;
  }

  .global-search-form {
    grid-template-columns: 20px minmax(0, 1fr) 34px;
    padding: 12px;
  }

  .top-actions .global-search-result {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .global-search-result span {
    grid-row: auto;
  }

  .workspace-screen:has(.cloud-app-shell) {
    padding-inline: 8px;
  }

  .cloud-app-shell,
  .cloud-app-shell.has-admin-dock {
    grid-template-columns: 1fr;
    min-height: auto;
    border-radius: 18px;
  }

  .cloud-app-sidebar {
    min-height: auto;
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid #dfe5ee;
  }

  .cloud-suite-row,
  .cloud-app-brand {
    margin-bottom: 10px;
  }

  .cloud-create-stack {
    margin: 10px 0;
  }

  .cloud-main-create {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
  }

  .cloud-app-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .cloud-app-main {
    padding: 14px;
    min-width: 0;
  }

  .cloud-app-topbar {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 14px;
  }

  .cloud-search {
    width: 100%;
    min-height: 48px;
  }

  .cloud-content-head {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
  }

  .cloud-content-head h3 {
    font-size: 20px;
  }

  .cloud-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .cloud-toolbar > *,
  .cloud-upload-button {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .cloud-selection-bar {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 8px;
  }

  .cloud-selection-bar button {
    width: 100%;
    justify-content: center;
  }

  .cloud-app-shell .cloud-drive-list {
    min-height: auto;
    max-height: none;
    overflow: visible;
    border-radius: 16px;
  }

  .cloud-app-shell .cloud-list-head {
    display: none;
  }

  .cloud-app-shell .cloud-row,
  .cloud-app-shell .cloud-row:nth-child(odd),
  .cloud-app-shell .cloud-row:nth-child(even) {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 4px 10px;
    min-height: 76px;
    padding: 12px;
    border-bottom: 1px solid #edf1f7;
    background: #fff;
  }

  .cloud-app-shell .cloud-row:hover {
    background: #f7fbff;
  }

  .cloud-select-cell {
    grid-row: 1 / span 3;
    align-self: start;
    margin-top: 4px;
  }

  .cloud-select-cell,
  .cloud-select-cell input {
    width: 24px;
    height: 24px;
  }

  .cloud-app-shell .cloud-name-cell {
    grid-column: 2;
    min-width: 0;
  }

  .cloud-app-shell .cloud-name-cell strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
  }

  .cloud-app-shell .cloud-name-cell small {
    font-size: 11px;
  }

  .cloud-app-shell .cloud-kind,
  .cloud-app-shell .cloud-size {
    grid-column: 2;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
  }

  .cloud-app-shell .cloud-kind::before {
    content: "Geändert: ";
    color: #94a3b8;
  }

  .cloud-app-shell .cloud-size::before {
    content: "Größe: ";
    color: #94a3b8;
  }

  .cloud-app-shell .cloud-row-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    padding-left: 34px;
    margin-top: 6px;
  }

  .cloud-app-shell .cloud-row-actions button,
  .cloud-app-shell .cloud-row-actions a {
    min-height: 36px;
    padding-inline: 12px;
    border-radius: 12px;
  }

  .cloud-admin-overview,
  .cloud-admin-panel {
    padding: 12px;
  }

  .cloud-admin-owner-select {
    padding: 12px;
  }

  .cloud-admin-owner-select select {
    min-height: 48px;
  }
}

@media (max-width: 640px) {
  .notification-panel {
    right: 0;
    width: min(360px, calc(100vw - 20px));
    max-height: calc(100vh - 96px);
  }

  .notification-admin-grid {
    grid-template-columns: 1fr;
  }

  .notification-item-main {
    display: grid;
  }
}

@media print {
  body {
    background: #fff;
  }

  .login-screen,
  .portal-shell > :not(.portal-main),
  .workspace-screen,
  .technician-report-filter-form,
  .ticket-table-wrap,
  .technician-report-status,
  .toast-region {
    display: none !important;
  }

  .portal-main,
  .technician-report-section {
    display: block !important;
    padding: 0 !important;
  }

  .technician-report-section[hidden] {
    display: block !important;
  }

  .technician-report-form {
    border: 0;
    background: #fff;
    padding: 0;
  }

  .technician-report-form button,
  .technician-photo-picker,
  .technician-signature-actions {
    display: none !important;
  }

  .technician-flow-step {
    break-inside: avoid;
    border-color: #ddd;
  }
}
