:root {
  --bg: #020f2a;
  --bg-soft: #081a3f;
  --bg-soft-2: #0a2552;
  --panel: #ffffff;
  --text: #13233d;
  --muted: #5b6981;
  --brand: #001a48;
  --red: #ff0032;
  --line: #d9e0ec;
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: "Lato", "Arial", sans-serif;
  background:
    radial-gradient(1000px 600px at 95% 0%, #0c2557 0%, #020f2a 50%),
    linear-gradient(130deg, #020f2a 0%, #041538 100%);
  color: var(--text);
  min-height: 100vh;
}

.hero {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  display: block;
  padding: 36px 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(120deg, #011338 0%, #031a45 72%, #05215a 100%);
  color: white;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.manager-tabs {
  width: 100%;
  margin-top: 16px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  padding-top: 12px;
}

.manager-tab {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.84);
  border-radius: 0;
  padding: 8px 0;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  border-bottom: 2px solid transparent;
}

.manager-tab.active {
  background: transparent;
  color: #ffffff;
  border-bottom-color: #ff0032;
}

.manager-tab.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border: 2px solid rgba(255, 0, 50, 0.6);
  border-radius: 42% 58% 60% 40% / 58% 40% 60% 42%;
  pointer-events: none;
}

.hero::before {
  width: 480px;
  height: 480px;
  right: -170px;
  top: -140px;
}

.hero::after {
  width: 260px;
  height: 260px;
  right: 150px;
  top: -100px;
  opacity: 0.55;
}

.eyebrow {
  margin: 0;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: #ff4b6a;
  font-weight: 700;
}

h1 {
  margin: 10px 0;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
}

.lead {
  margin: 0;
  max-width: 780px;
  opacity: 0.95;
}

.hero-tag {
  margin: 14px 0 0;
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-actions form {
  margin: 0;
}

.hero-actions > button,
.hero-actions > a,
.hero-actions > form > button {
  min-width: 120px;
  min-height: 34px;
  height: 34px;
  font-size: 0.82rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
}

.top-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.notification-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: center;
  margin: 0;
}

.notification-trigger {
  list-style: none;
  border: 1px solid #7ba0d9;
  background: #eef5ff;
  color: #1f5db3;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  margin: 0;
}

.notification-icon {
  width: 17px;
  height: 17px;
}

.notification-trigger::-webkit-details-marker {
  display: none;
}

.notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.notification-panel {
  position: absolute;
  right: 0;
  left: auto;
  top: calc(100% + 8px);
  z-index: 70;
  width: min(420px, calc(100vw - 28px));
  max-height: 60vh;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid #d7e1f0;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(3, 20, 49, 0.28);
  padding: 10px;
}

.notification-menu[open] {
  z-index: 90;
}

.notification-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e7edf7;
}

.notification-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.notification-item {
  border: 1px solid #dfe8f5;
  border-radius: 10px;
  padding: 8px;
}

.notification-item.unread {
  border-left: 4px solid var(--red);
  background: #fff8fa;
}

.notification-item a {
  background: transparent;
  border: none;
  padding: 0;
  color: #123d84;
  font-weight: 700;
}

.notification-item p {
  margin: 6px 0;
  color: #3a4f73;
  font-size: 0.83rem;
}

.notification-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.notification-empty {
  margin: 0;
  color: #5f7090;
  font-size: 0.84rem;
}

.lang-picker-wrap {
  min-width: 48px;
  max-width: 48px;
  align-self: center;
}

.lang-picker-wrap .ms-menu {
  min-width: 130px;
  width: 130px;
}

.lang-picker-wrap .ms-trigger {
  min-height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  text-transform: uppercase;
}

.profile-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.profile-trigger {
  list-style: none;
  border: 1px solid #7ba0d9;
  background: #eef5ff;
  color: #1f5db3;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.profile-trigger::-webkit-details-marker {
  display: none;
}

.profile-trigger-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-trigger-fallback {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #d7e7ff;
  color: #15407f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 800;
}

.profile-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 85;
  width: min(320px, calc(100vw - 28px));
  border-radius: 12px;
  border: 1px solid #d7e1f0;
  background: #fff;
  box-shadow: 0 14px 30px rgba(3, 20, 49, 0.22);
  overflow: hidden;
  color: #1f3355;
}

.profile-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  padding: 12px;
  background: #f6f8fc;
}

.profile-card-avatar-btn {
  border: none;
  background: transparent;
  padding: 0;
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
}

.profile-card-avatar,
.profile-card-fallback {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.profile-card-avatar {
  object-fit: cover;
}

.profile-card-fallback {
  background: #d7e7ff;
  color: #15407f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
}

.profile-card-meta {
  min-width: 0;
}

.profile-card-meta strong,
.profile-card-meta small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-card-meta strong {
  color: #1f3355;
}

.profile-card-meta small {
  color: #617390;
  font-size: 0.82rem;
  margin-top: 2px;
}

.profile-card-role {
  color: #3f5781;
  font-weight: 700;
}

.profile-actions {
  border-top: 1px solid #e1e8f4;
  padding: 6px;
}

.profile-actions .ms-option {
  min-height: 38px;
  border-radius: 8px;
  padding: 9px 10px;
  color: #1f3355;
}

.profile-actions form {
  margin: 0;
}

.profile-card-avatar-btn:hover {
  box-shadow: 0 0 0 2px #d5e5ff;
}

button,
a {
  border: none;
  background: white;
  color: var(--brand);
  border-radius: 12px;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.primary {
  background: var(--red);
  color: #ffffff;
}

.secondary {
  background: rgba(255, 255, 255, 0.18);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

main {
  padding: 24px 36px 40px;
  display: grid;
  gap: 18px;
}

.auth-main {
  max-width: 920px;
  margin: 0 auto;
}

.auth-card {
  width: 100%;
}

.auth-flash {
  margin-bottom: 2px;
}

.auth-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.auth-lang-wrap {
  width: 84px;
  min-width: 84px;
}

.auth-lang-wrap .ms-trigger {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d7e1f0;
  background: #f8fbff;
  color: #23406d;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.auth-lang-wrap .ms-menu {
  min-width: 96px;
  width: 96px;
}

.auth-note {
  margin-top: 0;
  margin-bottom: 10px;
}

.auth-form-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

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

.auth-actions {
  margin-top: 6px;
}

.auth-actions .primary,
.auth-actions .secondary.dark {
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  line-height: 1;
}

.register-password-meta {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.register-password-meta .meta-chip {
  width: fit-content;
}

.password-rules-list {
  display: grid;
  gap: 4px;
}

.password-rule {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  line-height: 1.2;
}

.password-rule.is-ok {
  color: #1c7a4e;
}

.password-rule.is-pending {
  color: #b13b3b;
}

.password-rule-icon {
  min-width: 10px;
  text-align: center;
  font-weight: 800;
}

.register-password-info {
  margin-top: 2px;
}

.register-security-stack {
  display: grid;
  gap: 8px;
}

.auth-success-modal-card {
  width: min(420px, calc(100vw - 28px));
  max-width: 420px;
  padding: 14px;
}

.mfa-login-card {
  width: min(360px, calc(100vw - 28px)) !important;
  max-width: 360px;
  padding: 10px 12px;
  border: 1px solid #d7e1f0;
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 10px 20px rgba(3, 20, 49, 0.18);
}

.mfa-login-form {
  grid-template-columns: 1fr;
  gap: 4px;
}

.mfa-login-email {
  margin: 0 0 2px;
  padding: 8px 10px;
  border: 1px solid #d7e1f0;
  border-radius: 8px;
  background: #f8fbff;
  color: #29466f;
  font-weight: 700;
}

.mfa-login-form input[name="mfa_code"] {
  max-width: 124px;
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
}

.mfa-login-card .catalog-modal-head {
  margin-bottom: 0;
}

.mfa-login-card .button-row {
  margin-top: 2px;
}

.mfa-mode-row {
  justify-content: flex-start;
}

.mfa-mode-row .secondary.dark,
.mfa-reset-request-form .secondary.dark {
  min-height: 30px;
  border-radius: 8px;
  font-size: 0.78rem;
  padding: 6px 10px;
}

.mfa-reset-request-form {
  margin-top: 6px;
}

.mfa-login-card h3 {
  color: var(--text);
}

.mfa-login-card .form-note {
  margin: 4px 0 0;
}

.mfa-login-card .catalog-modal-head h3 {
  border-bottom: none;
  padding-bottom: 0;
}

.api-token-modal-card {
  width: min(460px, calc(100vw - 28px));
  max-width: 460px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.kpi {
  background: var(--panel);
  border: 1px solid #cfd8e7;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 8px 18px rgba(0, 12, 35, 0.18);
  border-top: 4px solid var(--red);
}

.kpi h3 {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.kpi p {
  margin: 8px 0 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 18px rgba(0, 12, 35, 0.18);
}

.panel h2 {
  margin-top: 0;
  color: var(--brand);
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 3px solid rgba(255, 0, 50, 0.8);
}

.panel-collapsed {
  display: none;
}

.filter-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.filter-toolbar {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.filter-toolbar .filter-grid {
  flex: 1 1 auto;
}

.filter-action-cell {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 22px;
}

.inline-filter {
  display: grid;
  gap: 4px;
  min-width: 132px;
}

.filter-inline-input {
  width: 160px;
  height: 36px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.filter-chip-btn {
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #1f3355;
  font-weight: 700;
  font-size: 0.84rem;
  line-height: 1;
  white-space: nowrap;
}

.search-mode-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.compact-chip-btn {
  padding: 6px 10px;
  min-height: 34px;
}

.info-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
  align-items: center;
}

.info-note {
  margin: 10px 0 14px;
  padding: 12px 14px;
  border: 1px solid #b8d1ef;
  background: #e9f3ff;
  border-radius: 10px;
  display: block;
  width: min(620px, 100%);
  max-width: 100%;
}

.info-note-title {
  font-weight: 700;
  color: #204d84;
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.25;
}

.info-note p {
  margin: 5px 0;
  color: #204d84;
  line-height: 1.3;
  font-size: 12px;
}

.info-note-example {
  font-weight: 600;
}

.info-note-warning {
  color: #183b68;
}

.filter-chip-btn:hover {
  background: #f3f7ff;
}

.filter-help {
  margin: 2px 0 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.filter-grid > label {
  min-width: 0;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--muted);
}

select,
input {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-family: inherit;
  width: 100%;
  min-width: 0;
}

textarea {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-family: inherit;
  width: 100%;
  min-width: 0;
  resize: vertical;
}

select[multiple] {
  min-height: 120px;
}

.ms {
  position: relative;
  width: 100%;
}

.ms-trigger {
  display: block;
  width: 100%;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: #1f3355;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ms-trigger::-webkit-details-marker {
  display: none;
}

.ms-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: auto;
  width: max(360px, 100%);
  max-width: min(92vw, 560px);
  max-height: 240px;
  overflow: auto;
  border: 1px solid #d6e0ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 20px rgba(3, 20, 49, 0.22);
  padding: 8px;
}

.ms.ms-open-up .ms-menu {
  top: auto;
  bottom: calc(100% + 6px);
}

.ms-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e7edf7;
}

.ms-search {
  width: 100%;
  margin-bottom: 8px;
}

.ms-clear {
  border: 1px solid #d7e1f0;
  border-radius: 6px;
  background: #f8fbff;
  color: #23406d;
  padding: 2px 5px;
  font-size: 0.72rem;
  line-height: 1;
}

.ms-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 2px;
  color: #1f3355;
  border: none;
  background: transparent;
  border-radius: 6px;
  width: 100%;
  text-align: left;
  font-weight: 500;
}

.ms-option:hover {
  background: #f3f7ff;
}

.ms-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.ms-option input {
  margin: 0;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  height: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

th,
td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #edf1f7;
  font-size: 0.9rem;
  vertical-align: top;
}

.col-actions {
  text-align: right;
}

th {
  color: var(--brand);
  background: #f8fafe;
  position: sticky;
  top: 0;
  z-index: 1;
}

th.sortable {
  cursor: pointer;
  user-select: none;
}

th.sortable::after {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-left: 6px;
  vertical-align: middle;
  background-repeat: no-repeat;
  background-size: 11px 11px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 11 11'%3E%3Cpath d='M2.2 4.3L5.5 1.4l3.3 2.9M2.2 6.7l3.3 2.9 3.3-2.9' fill='none' stroke='%238a98b2' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

th.sortable[data-sort="asc"]::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 11 11'%3E%3Cpath d='M2.2 7.2L5.5 3.9l3.3 3.3' fill='none' stroke='%23ff0032' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

th.sortable[data-sort="desc"]::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 11 11'%3E%3Cpath d='M2.2 3.8L5.5 7.1l3.3-3.3' fill='none' stroke='%23274a83' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.ticket-link-btn {
  border: none;
  background: transparent;
  color: #123d84;
  padding: 0 2px;
  border-radius: 0;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  white-space: normal;
  text-align: left;
  max-width: 340px;
}

.ticket-link-btn:hover {
  color: #ff0032;
}

.ticket-link-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: underline;
}

.ticket-link-sub {
  display: block;
  max-width: 100%;
  color: #6a7a95;
  font-size: 0.76rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-inline-sla {
  display: inline-flex;
  margin-top: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

.sla-time-chip {
  min-width: 82px;
  text-align: center;
  background: #f8fbff;
  border-color: #d7e1f0;
  color: #23406d;
  border-radius: 8px;
  padding: 4px 10px;
  justify-content: center;
}

.sla-time-ok {
  background: #f8fbff;
  border-color: #d7e1f0;
  color: #23406d;
}

.sla-time-warn {
  background: #f8fbff;
  border-color: #d7e1f0;
  color: #23406d;
}

.sla-time-late {
  background: #f8fbff;
  border-color: #d7e1f0;
  color: #23406d;
}

.sla-time-neutral {
  background: #f8fbff;
  border-color: #d7e1f0;
  color: #23406d;
}

.sla-health-chip {
  border-width: 1px;
}

.sla-health-ok {
  background: #edf9f0;
  color: #145d2c;
  border-color: #b7e1c2;
}

.sla-health-at_risk {
  background: #fff8ea;
  color: #7a4c04;
  border-color: #ead1a5;
}

.sla-health-breached {
  background: #ffeef1;
  color: #8f1732;
  border-color: #efbfd0;
}

.company-col {
  width: 150px;
  max-width: 150px;
}

.truncate {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.registrations-table {
  table-layout: fixed;
}

.registrations-table th:nth-child(1) {
  width: 170px;
}

.registrations-table th:nth-child(2) {
  width: 200px;
}

.registrations-table th:nth-child(4) {
  width: 110px;
}

.registrations-table th:nth-child(5) {
  width: 110px;
}

.registration-email-cell {
  max-width: 260px;
}

.registration-email-text {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: top;
}

.registrations-table-wrap {
  overflow-x: hidden;
}

.registrations-table th,
.registrations-table td {
  min-width: 0;
}

.sku-name {
  font-weight: 700;
  color: #142d5c;
}

.sku-code {
  color: var(--muted);
}

.license-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.license-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 5px 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f2f5fc 0%, #e8eef8 100%);
  color: #162a53;
  font-size: 0.8rem;
  line-height: 1.1;
}

.panel,
.kpi {
  animation: rise 280ms ease-out;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.license-chip small {
  color: #5d6b84;
  font-size: 0.68rem;
}

.free-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 0, 50, 0.12);
  border: 1px solid rgba(255, 0, 50, 0.35);
  color: #cf0030;
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  vertical-align: middle;
}

.chart-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  overflow: visible;
}

.chart-head label {
  position: relative;
  align-items: flex-start;
  max-width: 260px;
}

.chart-head .ms-trigger {
  max-width: 240px;
}

.chart-head .ms-menu {
  left: auto;
  right: 0;
  width: max(260px, 100%);
  max-width: min(86vw, 340px);
}

.chart-wrap {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(240px, 1fr);
  gap: 14px;
  align-items: center;
}

.chart-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.chart-card {
  border: 1px solid #e2e8f2;
  border-radius: 12px;
  padding: 12px;
  background: #fdfdff;
}

.chart-card h3 {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 1rem;
}

.chart-card canvas {
  width: min(100%, 320px);
  height: auto;
  display: block;
  margin: 0 auto;
}

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

.legend-row {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid #e5ebf5;
  border-radius: 10px;
  cursor: pointer;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.duration-row {
  display: grid;
  grid-template-columns: 1fr minmax(120px, 160px);
  gap: 8px;
  align-items: center;
}

.form-note {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 0.84rem;
}

.form-section-title {
  grid-column: 1 / -1;
  margin-top: 2px;
  padding-top: 6px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1f3e6d;
}

.scope-chip {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  border: 1px solid #d9e3f3;
  background: #f8fbff;
  color: #35527f;
  vertical-align: middle;
}

.scope-chip.m365 {
  border-color: #cfdcf2;
  color: #274a83;
}

.scope-chip.manager {
  border-color: #d9e6f7;
  color: #355f96;
}

.scope-chip.distributor {
  border-color: #ead5db;
  color: #8a3650;
}

.impersonate-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: -2px;
}

.mfa-qr-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.mfa-qr-image {
  width: 148px;
  height: 148px;
  border-radius: 10px;
  border: 1px solid #d7e1f0;
  background: #fff;
  padding: 6px;
}

input[readonly] {
  background: #f6f9ff;
  color: #45608a;
}

.check-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1f3355;
  font-weight: 600;
}

.check-row input[type="checkbox"] {
  width: 16px;
}

.check-row.compact {
  grid-column: auto;
  font-weight: 500;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  border: none;
  padding: 0;
  background: transparent;
}

.permission-row {
  min-height: 0;
}

.permission-row span {
  font-size: 0.78rem;
  line-height: 1.25;
  display: block;
}

.permission-group {
  border: 1px solid #dfe8f5;
  border-radius: 9px;
  background: #f8fbff;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-content: stretch;
  overflow: hidden;
}

.permission-group-title {
  grid-column: 1 / -1;
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2f4f81;
  margin: 0;
  padding: 8px 10px;
  border-bottom: 1px solid #dfe8f5;
  background: #edf4ff;
}

.permission-group .permission-row {
  grid-column: auto;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 10px;
  font-weight: 500;
  border-bottom: 1px solid #e8eef8;
}

.permission-group .permission-row:last-child {
  border-bottom: none;
}

.permission-group .permission-row input[type="checkbox"] {
  margin: 0;
}

.equipment-options {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
  justify-content: start;
  justify-self: start;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e2e8f2;
  border-radius: 10px;
  background: #ffffff;
  width: fit-content;
  max-width: 100%;
}

.shipping-address {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
  justify-content: start;
  justify-self: start;
  gap: 10px;
  margin-top: 2px;
  padding: 10px;
  border: 1px solid #e2e8f2;
  border-radius: 10px;
  background: #ffffff;
  width: fit-content;
  max-width: 100%;
}

.shipping-address.panel-collapsed {
  display: none;
}

.button-row {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.inline-form {
  display: flex;
  align-items: end;
  gap: 8px;
  flex-wrap: wrap;
}

.popup-actions .inline-form {
  background: #ffffff;
  border: 1px solid #dfe8f5;
  border-radius: 10px;
  padding: 8px 10px;
}

.compact-action {
  align-items: center;
}

.compact-action .ms {
  min-width: 160px;
}

.type-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 8px;
  vertical-align: middle;
}

.type-dot.incident {
  background: #ff0032;
  box-shadow: 0 0 0 2px rgba(255, 0, 50, 0.16);
}

.type-dot.service {
  background: #2bb673;
  box-shadow: 0 0 0 2px rgba(43, 182, 115, 0.16);
}

.ticket-type-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1;
}

.ticket-type-pill.incident {
  background: rgba(255, 0, 50, 0.1);
  color: #bb0030;
  border: 1px solid rgba(255, 0, 50, 0.25);
}

.ticket-type-pill.service {
  background: rgba(43, 182, 115, 0.12);
  color: #1f7f55;
  border: 1px solid rgba(43, 182, 115, 0.28);
}

.ticket-type-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #d7e1f0;
  background: #f8fbff;
  color: #23406d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

.ticket-type-code.incident {
  background: rgba(255, 0, 50, 0.11);
  color: #b4002e;
  border-color: rgba(255, 0, 50, 0.25);
}

.ticket-type-code.service {
  min-width: 36px;
  background: rgba(43, 182, 115, 0.13);
  color: #1d7f54;
  border-color: rgba(43, 182, 115, 0.28);
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  min-height: 24px;
  border-radius: 999px;
  border: 1px solid #d7e1f0;
  background: #f8fbff;
  color: #23406d;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.1;
  vertical-align: middle;
  white-space: nowrap;
}

#ticketsTable td {
  vertical-align: middle !important;
}

#ticketsTable td[data-col-key="status"] .meta-chip,
#ticketsTable td[data-col-key="priority"] .meta-chip,
#ticketsTable td[data-col-key="store"] .meta-chip,
#ticketsTable td[data-col-key="country"] .meta-chip,
#ticketsTable td[data-col-key="requester"] .meta-chip,
#ticketsTable td[data-col-key="assignee"] .meta-chip,
#ticketsTable td[data-col-key="created"] .meta-chip {
  margin: 0;
  align-self: center;
}

#usersTable td {
  vertical-align: middle !important;
}

#usersTable td[data-col-key="status"] .ticket-type-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  margin: 0;
  line-height: 1;
}

#usersTable td[data-col-key="last_login"] {
  text-align: right;
}

#usersTable th[data-col-key="last_login"] {
  text-align: right;
}

#usersTable td[data-col-key="last_login"] .meta-chip {
  margin: 0;
}

.status-chip.status-open {
  background: rgba(255, 0, 50, 0.1);
  border-color: rgba(255, 0, 50, 0.3);
  color: #b3002d;
}

.status-chip.status-in-progress {
  background: rgba(22, 92, 214, 0.12);
  border-color: rgba(22, 92, 214, 0.3);
  color: #154fae;
}

.status-chip.status-waiting {
  background: rgba(242, 153, 0, 0.14);
  border-color: rgba(242, 153, 0, 0.35);
  color: #9b5f00;
}

.status-chip.status-resolved {
  background: rgba(43, 182, 115, 0.13);
  border-color: rgba(43, 182, 115, 0.34);
  color: #1f7f55;
}

.status-chip.status-closed {
  background: rgba(86, 102, 127, 0.14);
  border-color: rgba(86, 102, 127, 0.32);
  color: #3f516b;
}

.status-chip.status-archived {
  background: rgba(125, 132, 145, 0.16);
  border-color: rgba(125, 132, 145, 0.34);
  color: #4f5968;
}

.form-block {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  padding: 10px;
  border: 1px solid #e2e8f2;
  border-radius: 10px;
  background: #ffffff;
}

.full-row {
  grid-column: 1 / -1;
}

.attachments-row {
  max-width: 360px;
}

.attachment-upload {
  border: 1px dashed #ccd9ee;
  border-radius: 10px;
  padding: 10px;
  background: #f9fbff;
}

tr.clickable-row {
  cursor: pointer;
}

tr.clickable-row:hover td {
  background: #f8fbff;
}

tr.archived-ticket-row td {
  background: #f4f6f9;
}

tr.archived-ticket-row:hover td {
  background: #eef2f7;
}

tr.archived-ticket-row .ticket-link-main,
tr.archived-ticket-row .ticket-link-sub,
tr.archived-ticket-row .meta-chip,
tr.archived-ticket-row .ticket-type-pill,
tr.archived-ticket-row .ticket-type-code {
  opacity: 0.84;
}

tr.ticket-expand-row td {
  background: #fbfdff;
  border-top: 0;
}

tr.archived-ticket-expand-row td {
  background: #f6f8fb;
}

.ticket-expand-cell {
  padding: 8px 12px 12px;
}

.ticket-expand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 8px 12px;
  border: 1px solid #dde8f7;
  border-radius: 10px;
  background: #f7fbff;
  padding: 10px;
}

.ticket-expand-grid > div {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.followers-list {
  margin-top: 12px;
}

.action-menu {
  position: relative;
}

.action-menu summary {
  list-style: none;
  display: inline-flex;
}

.action-menu summary::-webkit-details-marker {
  display: none;
}

.action-menu-box {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  background: #fff;
  border: 1px solid #d6e0ef;
  border-radius: 10px;
  box-shadow: 0 12px 20px rgba(3, 20, 49, 0.22);
  min-width: 180px;
  overflow: hidden;
}

.action-menu-box .ms-option {
  width: 100%;
  border-radius: 0;
  padding: 10px;
}

.danger-option {
  color: #b3002d;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  min-width: 220px;
}

td.col-actions .row-actions,
th.col-actions .row-actions {
  justify-content: flex-end;
  min-width: 0;
}

th.col-actions,
td.col-actions {
  width: 1%;
  white-space: nowrap;
}

.row-actions form {
  margin: 0;
}

.row-status-form {
  margin: 0;
}

.inline-status-form {
  width: 100%;
}

.popup-status-picker {
  width: 100%;
}

.popup-status-picker .ms {
  width: 100%;
}

.popup-status-picker .ms-trigger {
  min-height: 36px;
  padding: 8px 30px 8px 10px;
  border-radius: 8px;
  background: #ffffff;
  font-size: 0.86rem;
  font-weight: 600;
}

.uniform-status-picker {
  width: 100%;
  max-width: 100%;
}

.uniform-status-picker .ms {
  width: 100%;
  max-width: 100%;
}

.status-field-picker {
  width: 100%;
  min-width: 0;
}

.status-field-picker .ms {
  width: 100%;
  min-width: 0;
}

.status-field-picker .ms-trigger {
  min-height: 36px;
  padding: 8px 30px 8px 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: #45608a;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.column-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  max-height: min(44vh, 360px);
  overflow: auto;
  padding-right: 2px;
}

.column-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 8px;
  border: 1px solid #d4deed;
  border-radius: 10px;
  background: #ffffff;
  padding: 7px 10px;
  border-left: 3px solid #b9cbea;
  box-shadow: 0 3px 8px rgba(6, 24, 60, 0.06);
  transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.column-item:hover {
  background: #f8fbff;
  border-color: #b9cbea;
  box-shadow: 0 6px 14px rgba(6, 24, 60, 0.1);
}

.column-item.dragging {
  opacity: 0.55;
  box-shadow: 0 10px 20px rgba(6, 24, 60, 0.15);
}

.column-drag {
  cursor: grab;
  color: #5f79a3;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
}

.column-item .column-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  color: #1f3355;
  font-size: 0.84rem;
  font-weight: 600;
}

.column-item .column-name {
  display: inline-block;
  color: #1a3764;
  letter-spacing: 0.01em;
}

.column-item .column-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #ff0032;
  cursor: pointer;
}

.columns-form .full-row {
  border: 1px solid #dce6f5;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
  padding: 10px;
}

.columns-form .form-note {
  margin-top: 0;
  margin-bottom: 8px;
  color: #4f678e;
  font-size: 0.8rem;
}

.columns-modal-card {
  width: min(560px, 100%);
}

.columns-modal-card .catalog-modal-head {
  margin-bottom: 2px;
}

.columns-modal-card .catalog-modal-head h3 {
  font-size: 1.08rem;
  padding-bottom: 4px;
  border-bottom-width: 2px;
}

.columns-form .button-row {
  justify-content: flex-end;
}

.save-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  border: 1px solid #d7e1f0;
  background: #f8fbff;
  color: #23406d;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(3, 20, 49, 0.2);
}

.ticket-filter-grid .ms {
  width: 100%;
}

.ticket-filter-grid .ms-trigger {
  min-height: 36px;
  border: 1px solid #d7e1f0;
  border-radius: 8px;
  background: #f8fbff;
  color: #23406d;
  font-size: 0.82rem;
  font-weight: 600;
}

.ticket-filter-grid .ms-menu {
  width: 100%;
  min-width: 220px;
}

.filter-grid input[type="text"] {
  min-height: 36px;
  border: 1px solid #d7e1f0;
  border-radius: 8px;
  background: #ffffff;
  color: #23406d;
  font-size: 0.82rem;
  font-weight: 600;
}

.table-status-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  min-width: 128px;
  height: 30px;
  padding: 4px 26px 4px 8px;
  border: 1px solid #d7e1f0;
  border-radius: 8px;
  background: #f8fbff;
  color: #23406d;
  font-size: 0.78rem;
  font-weight: 600;
  background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5l4 4 4-4' fill='none' stroke='%23516d99' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.table-status-picker {
  min-width: 128px;
}

.table-status-picker .ms {
  width: 128px;
}

.table-status-picker .ms-trigger {
  min-height: 30px;
  padding: 4px 26px 4px 8px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  line-height: 1.15;
}

.table-status-picker .ms-menu {
  width: 180px;
  min-width: 180px;
}

.table-status-picker .ms-option {
  min-height: 32px;
  align-items: center;
}

.table-status-picker.status-field-picker {
  min-width: 0;
  width: 100%;
}

.table-status-picker.status-field-picker .ms {
  width: 100%;
  min-width: 0;
}

.table-status-picker.status-field-picker .ms-trigger {
  min-height: 36px;
  padding: 8px 30px 8px 10px;
  font-size: 0.86rem;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: #45608a;
  line-height: 1.2;
}

.table-status-picker.status-field-picker .ms-menu {
  left: 0;
  right: auto;
  width: 100%;
  min-width: 0;
}

.icon-btn.danger {
  color: #b3002d;
  border-color: #efc8d2;
  background: #fff6f8;
}

.catalog-modal-card .ms-menu {
  width: min(360px, calc(100vw - 80px));
  max-width: 100%;
  min-width: 0;
}

.ticket-quick-action {
  align-items: end;
  gap: 10px;
}

.status-picker-wrap {
  min-width: 190px;
}

.action-btn {
  min-height: 36px;
}

.status {
  margin-top: 10px;
  color: #23406d;
  font-weight: 600;
}

.flash-toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 160;
  display: grid;
  gap: 8px;
  width: min(420px, calc(100vw - 24px));
  pointer-events: none;
}

.flash-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid #d7e1f0;
  border-left: 4px solid #2f78d9;
  background: #f8fbff;
  color: #23406d;
  box-shadow: 0 10px 20px rgba(3, 20, 49, 0.2);
  font-size: 0.8rem;
  font-weight: 700;
}

.flash-toast.flash-success {
  border-left-color: #25a86a;
}

.flash-toast.flash-error,
.flash-toast.flash-danger {
  border-left-color: #ff0032;
}

.flash-toast.flash-warning {
  border-left-color: #c17a00;
}

.flash-toast-text {
  min-width: 0;
}

.flash-toast-close {
  width: 22px;
  height: 22px;
  border: 1px solid #d7e1f0;
  border-radius: 7px;
  background: #fff;
  color: #23406d;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.impersonation-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.impersonation-banner .status {
  margin: 0;
}

.impersonation-alert {
  position: sticky;
  top: 0;
  z-index: 120;
  margin: 0;
  background: #ffedf2;
  border-top: 1px solid #f6c8d4;
  border-bottom: 1px solid #f6c8d4;
}

.impersonation-alert-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #7a1534;
  font-size: 0.86rem;
  font-weight: 700;
}

.impersonation-alert-inner strong {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffd7e2;
  border: 1px solid #f0b1c4;
  letter-spacing: 0.02em;
}

.impersonation-alert-inner form {
  margin-left: auto;
}

.impersonation-alert-inner .secondary.dark {
  min-height: 32px;
}

.priority-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.1;
}

.priority-chip-icon {
  gap: 6px;
  justify-content: flex-start;
}

.priority-chip-icon.icon-only {
  min-width: 30px;
  min-height: 24px;
  padding: 0;
  justify-content: center;
  align-items: center;
  line-height: 0;
}

.priority-chip-icon.icon-only .priority-icon {
  width: 14px;
  height: 14px;
  display: block;
  margin: 0;
  flex: 0 0 auto;
}

.priority-chip-icon.icon-only .priority-icon.priority-icon-critical {
  transform: translateY(-0.5px);
}

.priority-glyph {
  display: inline-flex;
  min-width: 16px;
  justify-content: center;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.priority-chip.priority-low {
  background: #edf4ff;
  color: #2f5eab;
  border-color: #c7dbfa;
}

.priority-chip.priority-medium {
  background: #fff4e8;
  color: #9b5a18;
  border-color: #ffd8b7;
}

.priority-chip.priority-high {
  background: #ffedd8;
  color: #a14e08;
  border-color: #ffc992;
}

.priority-chip.priority-critical {
  background: #ffe6cf;
  color: #a54800;
  border-color: #ffbf82;
}

.priority-field {
  display: flex;
  align-items: center;
  min-height: 36px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
}

.priority-field-low {
  background: #eef3fb;
  color: #395f94;
  border-color: #d2e0f3;
}

.priority-field-medium {
  background: #eaf7ff;
  color: #0e5f8d;
  border-color: #c9e8f9;
}

.priority-field-high {
  background: #fff3e8;
  color: #9b4c12;
  border-color: #ffd7b6;
}

.priority-field-critical {
  background: #fff0f4;
  color: #ab1f4e;
  border-color: #f7c8d8;
}

.ticket-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.user-filter-grid {
  margin-bottom: 0;
}

.user-filter-grid .ms {
  width: 100%;
}

.user-filter-grid .ms-trigger {
  min-height: 36px;
  border: 1px solid #d7e1f0;
  border-radius: 8px;
  background: #f8fbff;
  color: #23406d;
  font-size: 0.82rem;
  font-weight: 600;
}

.user-filter-grid .ms-menu {
  width: 100%;
  min-width: 220px;
}

th[data-col-key] {
  user-select: none;
}

th[data-col-key].col-draggable {
  cursor: grab;
}

th[data-col-key].col-dragging {
  opacity: 0.55;
}

.role-filter-grid {
  margin-bottom: 0;
}

.role-filter-grid .ms {
  width: 100%;
}

.role-filter-grid .ms-trigger {
  min-height: 36px;
  border: 1px solid #d7e1f0;
  border-radius: 8px;
  background: #f8fbff;
  color: #23406d;
  font-size: 0.82rem;
  font-weight: 600;
}

.role-filter-grid .ms-menu {
  width: 100%;
  min-width: 220px;
}

.alert-balloon {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #f1ccd7;
  background: #fff6f8;
  color: #7d3048;
  font-size: 0.84rem;
  width: fit-content;
  max-width: 100%;
  justify-self: start;
}

.bulk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-items: end;
}

.bulk-meta {
  min-height: 40px;
  display: flex;
  align-items: center;
  color: #244372;
  font-weight: 700;
  border: 1px dashed #d6e0ef;
  border-radius: 8px;
  padding: 8px 10px;
  background: #f8fbff;
}

#bulkEditContent .button-row {
  margin-top: 10px;
}

#employeesTable tbody tr {
  cursor: pointer;
}

#employeesTable tbody tr.row-selected {
  background: #f5f9ff;
}

.employee-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(520px, 100vw);
  height: 100vh;
  background: #ffffff;
  border-left: 1px solid #d8e1ef;
  box-shadow: -12px 0 28px rgba(3, 20, 49, 0.22);
  z-index: 40;
  padding: 14px;
  overflow: auto;
}

.employee-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.employee-drawer-head h3 {
  margin: 0;
  color: var(--brand);
  font-size: 1.05rem;
}

.employee-drawer .secondary {
  background: #f2f6fd;
  color: #1e3a66;
  border: 1px solid #d3deef;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(2, 15, 42, 0.5);
  display: grid;
  place-items: center;
  padding: 16px;
}

.confirm-modal.panel-collapsed {
  display: none;
}

.confirm-modal-card {
  width: min(560px, 100%);
  border-radius: 12px;
  border: 1px solid rgba(255, 0, 50, 0.5);
  border-left: 4px solid var(--red);
  background: linear-gradient(120deg, #03183f 0%, #082655 100%);
  box-shadow: 0 16px 36px rgba(3, 20, 49, 0.3);
  padding: 16px;
}

.confirm-modal-card h3 {
  margin: 0 0 8px;
  color: #ffffff;
}

.confirm-modal-card p {
  margin: 0 0 12px;
  color: #dce9ff;
}

.catalog-modal-card {
  width: min(980px, calc(100vw - 28px));
  max-width: 980px;
  max-height: 88vh;
  overflow: auto;
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
}

.catalog-modal-card p {
  color: var(--text);
}

.catalog-edit-card {
  max-height: none;
  overflow: visible;
}

.form-modal-card {
  width: min(760px, calc(100vw - 28px));
  max-width: 760px;
  max-height: calc(100vh - 44px);
  overflow: auto;
  margin: 20px auto;
}

.modal-compact {
  width: min(480px, calc(100vw - 28px));
  max-width: 480px;
}

.modal-standard {
  width: min(760px, calc(100vw - 28px));
  max-width: 760px;
}

.modal-wide {
  width: min(980px, calc(100vw - 28px));
  max-width: 980px;
}

.form-modal-card.columns-modal-card {
  width: min(560px, calc(100vw - 28px));
  max-width: 560px;
}

#api-token-create-modal .api-token-modal-card {
  width: min(460px, 100%);
  max-width: 460px;
}

.compact-confirm-modal-card {
  width: min(480px, 100%);
}

.registration-action-modal-card {
  width: min(560px, calc(100vw - 28px));
  max-width: 560px;
}

#user-modal .form-modal-card {
  max-height: calc(100vh - 44px);
  overflow: auto;
  margin: 20px auto;
}

#user-modal {
  overflow-y: auto;
  align-items: flex-start;
}

#profile-modal .form-modal-card {
  max-height: calc(100vh - 44px);
  overflow: auto;
  margin: 20px auto;
}

#profile-modal {
  overflow-y: auto;
  align-items: center;
}

.catalog-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.catalog-modal-head h3 {
  margin: 0;
  color: var(--brand);
  padding-bottom: 6px;
  border-bottom: 3px solid rgba(255, 0, 50, 0.8);
  flex: 0 1 auto;
  min-width: 0;
  display: inline-block;
}

.catalog-modal-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}

.catalog-modal-card .form-note {
  color: var(--muted);
}

.settings-accordion {
  margin: 10px 0;
  border: 1px solid #d8e2f0;
  border-radius: 10px;
  background: #f9fbff;
  overflow: hidden;
}

.settings-accordion > summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  color: #173c72;
  padding: 10px 12px;
  border-bottom: 1px solid #e3ebf7;
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-accordion > summary::-webkit-details-marker {
  display: none;
}

.settings-accordion[open] > summary {
  background: #eef5ff;
}

.settings-accordion > form,
.settings-accordion > .form-grid {
  padding: 12px;
}

.rich-editor-wrap {
  border: 1px solid #d3deef;
  border-radius: 10px;
  background: #ffffff;
}

.rich-editor-toolbar {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 8px;
  border-bottom: 1px solid #e3ebf7;
  background: #f8fbff;
}

.rich-editor-toolbar .secondary.dark {
  min-height: 28px;
  padding: 4px 10px;
  font-size: 0.78rem;
}

.rich-editor {
  min-height: 160px;
  padding: 10px;
  outline: none;
  color: #11284a;
  font-size: 0.86rem;
  line-height: 1.35;
}

.mail-templates-form {
  display: grid;
  gap: 12px;
}

.mail-template-action-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 4px 0 8px;
}

.mail-template-card-grid {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
}

.mail-template-card {
  border: 1px solid #d8e2f0;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
  overflow: hidden;
}

.mail-template-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #e2ebf8;
}

.mail-template-card-head strong {
  color: #16366a;
}

.mail-template-card-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 12px;
  padding: 12px;
}

.mail-template-editor-col,
.mail-template-side-col {
  min-width: 0;
}

.mail-template-editor-col > label.full-row:first-child {
  margin-bottom: 8px;
}

.mail-template-side-col .info-note {
  margin-top: 0;
  margin-bottom: 10px;
  width: 100%;
  max-width: 100%;
}

.mail-template-preview-controls {
  display: grid;
  gap: 8px;
}

.mail-template-preview-controls .button-row {
  justify-content: flex-start;
}

.mail-template-side-col code {
  font-size: 0.78rem;
}

.secondary.dark {
  background: #e9eef7;
  color: #1e3a66;
  border: 1px solid #ccd9ee;
}

.action-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  max-width: min(560px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 0, 50, 0.5);
  border-left: 4px solid var(--red);
  background: linear-gradient(120deg, #03183f 0%, #082655 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(3, 20, 49, 0.25);
  font-weight: 700;
}

.analytics-toolbar {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e1e9f6;
}

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

.analytics-kpi-card {
  border: 1px solid #d9e4f4;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f9ff 100%);
  padding: 12px;
  display: grid;
  gap: 6px;
}

.analytics-kpi-card small {
  color: #5b7396;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

.analytics-kpi-card strong {
  color: #102f5a;
  font-size: 1.28rem;
  line-height: 1.1;
}

.service-health-top-grid .analytics-kpi-card {
  min-height: 112px;
}

.service-health-panel .info-note {
  width: 100%;
  max-width: none;
}

.service-health-panel .info-note.service-half-note {
  width: min(50%, 680px);
}

.service-health-panel .form-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.1;
}

.service-health-panel .form-section-title .scope-chip {
  margin-left: 0;
}

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

.service-health-top-grid {
  margin-top: 10px;
}

.service-health-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 10px;
}

.service-health-info-col {
  display: grid;
  gap: 0;
  align-content: start;
}

.service-components-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.service-components-side-note {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.service-health-components-wrap {
  margin-top: 6px;
  margin-bottom: 14px;
}

.service-health-components-table td {
  vertical-align: top;
}

.service-health-details-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service-health-audit-ok {
  border-color: rgba(25, 135, 84, 0.35);
  background: #eefaf3;
  color: #1f6f47;
}

.service-health-audit-error {
  border-color: rgba(255, 0, 50, 0.35);
  background: #fff1f4;
  color: #8a1231;
}

.health-kpi-chip {
  border-radius: 8px;
  font-weight: 700;
}

.health-kpi-ok {
  background: #eaf8ef;
  border-color: #b8e1c4;
  color: #1f6f47;
}

.health-kpi-bad {
  background: #ffeef1;
  border-color: #efbfd0;
  color: #8f1732;
}

.service-kpi-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 2px 10px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-kpi-badge-neutral {
  background: #f3f7ff;
  border-color: #d6e1f2;
  color: #2d4d7e;
}

.service-kpi-badge-ok {
  background: #eaf8ef;
  border-color: #b8e1c4;
  color: #1f6f47;
}

.service-kpi-badge-stale {
  background: #fff7e9;
  border-color: #efd9ae;
  color: #8a5b0f;
}

.service-kpi-badge-warning {
  background: #fff3e8;
  border-color: #f1cfaf;
  color: #8f5510;
}

.service-kpi-badge-error {
  background: #ffeef1;
  border-color: #efbfd0;
  color: #8f1732;
}

.service-guide-accordion {
  margin-bottom: 12px;
}

.service-guide-accordion .service-guide-body {
  padding: 12px;
}

.service-guide-accordion .info-note {
  margin: 0 0 10px;
}

.service-guide-accordion .info-note:last-child {
  margin-bottom: 0;
}

.service-guide-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.service-guide-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 10px;
  align-items: start;
  padding: 8px 10px;
  border: 1px solid #cfe0f5;
  border-radius: 8px;
  background: #f3f8ff;
}

.service-guide-item p {
  margin: 0;
}

.service-self-heal-actions > button {
  min-height: 34px;
}

.service-detail-glossary-wrap {
  margin-top: 10px;
}

.service-detail-glossary td:nth-child(2) {
  min-width: 220px;
}

.service-detail-glossary td .meta-chip {
  margin: 0 6px 6px 0;
}

.service-detail-glossary th,
.service-detail-glossary td {
  font-family: inherit;
  color: #204d84;
  font-size: 0.84rem;
}

.service-runtime-filter-grid {
  grid-template-columns: minmax(180px, 220px) minmax(220px, 280px) minmax(260px, 1fr) auto;
  align-items: end;
}

.service-runtime-filter-actions {
  justify-content: flex-end;
  align-items: end;
  margin-bottom: 1px;
}

.service-runtime-logs-wrap {
  margin-top: 8px;
}

.service-runtime-logs-table td {
  vertical-align: top;
}

.service-runtime-component-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service-runtime-log-message {
  color: #102f5a;
  font-weight: 700;
  line-height: 1.3;
}

.service-runtime-log-details {
  margin-top: 4px;
  color: #5b7396;
  font-size: 0.8rem;
  line-height: 1.25;
}

.service-runtime-level {
  border-radius: 8px;
  font-weight: 700;
}

.service-runtime-level-critical,
.service-runtime-level-error {
  border-color: rgba(255, 0, 50, 0.35);
  background: #ffeef1;
  color: #8f1732;
}

.service-runtime-level-warning {
  border-color: rgba(244, 163, 16, 0.35);
  background: #fff5e6;
  color: #8a5b0f;
}

.service-runtime-level-info {
  border-color: rgba(92, 135, 194, 0.35);
  background: #eef4ff;
  color: #2d4d7e;
}

.service-runtime-level-debug {
  border-color: rgba(125, 139, 160, 0.3);
  background: #f2f5fa;
  color: #5b7396;
}

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

.analytics-chart-card {
  border: 1px solid #d9e4f4;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  padding: 12px;
}

.analytics-chart-card h3 {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: #1c3d69;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(255, 0, 50, 0.35);
  display: inline-block;
}

.analytics-pie {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  margin: 6px auto 10px;
  border: 1px solid #dbe6f5;
}

.analytics-legend {
  display: grid;
  gap: 5px;
}

.analytics-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.79rem;
  color: #224872;
}

.analytics-legend-item i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

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

@media (max-width: 680px) {
  .analytics-chart-grid {
    grid-template-columns: 1fr;
  }
}

.form-grid.compact {
  grid-template-columns: 1fr;
}

.alias-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: #1f3f6f;
}

.icon-btn {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border: 1px solid #d6dfec;
  background: #f7faff;
  color: #21406f;
  border-radius: 9px;
  padding: 0;
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  background: #eaf1fb;
  border-color: #c5d6ef;
}

.icon-btn.icon-assign {
  color: #1a5eaa;
}

.icon-btn.icon-status {
  color: #1c6d55;
}

.icon-btn[data-tooltip] {
  position: relative;
}

.icon-btn[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  transform: translateX(-50%);
  background: #132f5c;
  color: #ffffff;
  border: 1px solid #2c4f86;
  border-radius: 7px;
  padding: 4px 7px;
  font-size: 0.68rem;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
  z-index: 20;
}

.icon-btn[data-tooltip]:hover::after {
  opacity: 1;
}

.expense-sheet .form-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.expense-title {
  grid-column: 1 / -1;
  font-size: 1.05rem;
  font-weight: 800;
  color: #112a58;
  padding: 10px 12px;
  border: 1px solid #d8e2f1;
  border-left: 4px solid var(--red);
  border-radius: 10px;
  background: #f8fbff;
}

.expense-table-wrap {
  grid-column: 1 / -1;
}

#expensesTable input,
#expensesTable select {
  min-width: 120px;
}

#expensesTable .expense-attachment {
  min-width: 220px;
}

#expensesTable .expense-attachment-label {
  display: block;
  margin-top: 4px;
  color: #4f6891;
  font-size: 0.72rem;
  max-width: 220px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.2;
}

.expense-total {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #d8e2f1;
  border-radius: 10px;
  background: #f8fbff;
}

.expense-total strong {
  color: #123769;
}

.expense-signature {
  grid-column: 1 / -1;
  margin-top: 6px;
  min-height: 48px;
  border-bottom: 1px solid #cfd9ea;
  color: #274574;
  display: flex;
  align-items: end;
  padding-bottom: 6px;
}

.expense-note-block {
  grid-column: 1 / -1;
  border: 1px solid #d8e2f1;
  border-radius: 10px;
  background: #ffffff;
  padding: 10px 12px;
}

.expense-note-block h3 {
  margin: 0 0 8px;
  color: #163463;
  font-size: 0.95rem;
}

.expense-note-block ul {
  margin: 0;
  padding-left: 18px;
  color: #34547f;
  display: grid;
  gap: 6px;
}

@media (max-width: 900px) {
  .hero,
  main {
    padding: 18px;
  }

  .hero-top {
    flex-direction: column;
  }

  .chart-wrap {
    grid-template-columns: 1fr;
  }

  .ms-menu {
    width: 100%;
    max-width: 100%;
  }

  .hero-actions {
    width: 100%;
    align-items: stretch;
    gap: 8px;
  }

  .hero-actions > form,
  .hero-actions > details,
  .hero-actions > button,
  .hero-actions > a {
    width: 100%;
  }

  .top-tools {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }

  .hero-actions button,
  .hero-actions a {
    width: 100%;
    justify-content: center;
  }

  .lang-picker-wrap {
    margin-left: 0;
    min-width: 52px;
    max-width: 52px;
    align-self: stretch;
    order: 1;
  }

  .lang-picker-wrap .ms-trigger {
    min-height: 34px;
    padding: 6px;
    font-size: 0.8rem;
  }

  .session-chip {
    display: none;
  }

  .manager-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: thin;
  }

  .manager-tab {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .catalog-modal-card {
    width: min(100%, 980px);
    max-height: 92vh;
    padding: 12px;
  }

  .catalog-modal-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .auth-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-lang-wrap {
    width: 100%;
    max-width: 120px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-block {
    grid-template-columns: 1fr;
  }

  .permission-grid {
    grid-template-columns: 1fr;
  }

  .ticket-expand-grid {
    grid-template-columns: 1fr;
  }

  .row-actions {
    min-width: 180px;
    justify-content: flex-start;
  }

  td.col-actions .row-actions {
    justify-content: flex-end;
  }

  .table-status-select {
    min-width: 116px;
    font-size: 0.76rem;
  }

  .action-menu-box {
    right: auto;
    left: 0;
  }

  .filter-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-action-cell {
    padding-top: 0;
    justify-content: flex-end;
  }

  .impersonation-alert-inner {
    flex-wrap: wrap;
  }

  .impersonation-alert-inner form {
    margin-left: 0;
  }

  .mail-template-card-body {
    grid-template-columns: 1fr;
  }

  .registrations-table-wrap {
    overflow-x: auto;
  }

  .service-health-info-grid {
    grid-template-columns: 1fr;
  }

  .service-components-grid {
    grid-template-columns: 1fr;
  }

  .service-top-blocks {
    grid-template-columns: 1fr;
  }

  .service-runtime-filter-grid {
    grid-template-columns: 1fr;
  }

  .service-runtime-filter-actions {
    justify-content: flex-start;
  }

  .service-health-panel .info-note.service-half-note {
    width: 100%;
  }
}

@media (max-width: 640px) {
  th,
  td {
    padding: 8px;
    font-size: 0.82rem;
  }

  .panel {
    padding: 12px;
  }

  .row-actions {
    min-width: 152px;
    gap: 4px;
  }

  td.col-actions .row-actions {
    justify-content: flex-end;
  }

  .icon-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
  }

  .table-status-select {
    min-width: 102px;
    height: 28px;
    font-size: 0.72rem;
  }

  .lang-picker-wrap .ms-menu {
    min-width: 84px;
    width: 84px;
  }

  .notification-menu {
    width: auto;
    align-self: stretch;
    order: 2;
  }

  .notification-trigger {
    width: 42px;
    height: 38px;
  }

  .notification-panel {
    right: 0;
    left: auto;
    width: min(320px, calc(100vw - 24px));
  }
}
