:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-muted: #f9fafb;
  --text: #18202f;
  --muted: #667085;
  --subtle: #98a2b3;
  --line: #d9dee8;
  --line-soft: #e7ebf0;
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --primary-soft: #eff6ff;
  --success: #16845b;
  --success-soft: #e9f8f1;
  --warning: #b26a00;
  --warning-soft: #fff6df;
  --danger: #c53030;
  --danger-soft: #fff1f1;
  --info: #0f7490;
  --info-soft: #e8f7fb;
  --shadow: 0 12px 28px rgba(18, 25, 38, 0.08);
  --radius: 8px;
  --radius-sm: 6px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: var(--primary);
}

body.login-page {
  overflow-x: hidden;
  min-height: 100vh;
  padding: 0;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.login-shell {
  width: 100%;
  min-height: 100vh;
}

.login-eyebrow,
.login-badge,
.profile-kicker,
.dashboard-card-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid #c7d7fe;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.login-branding h1 {
  margin: 18px 0 14px;
  max-width: 620px;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: 0;
  color: #111827;
}

.login-branding p,
.login-card-header p,
.dashboard-card p,
.profile-note,
.modal-body {
  color: var(--muted);
}

.login-card {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(520px, 1.1fr);
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.login-card-header {
  margin: clamp(30px, 8vh, 78px) 0 clamp(18px, 4vh, 30px);
}

.login-card-header h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  color: #171051;
}

.login-card-header p {
  margin: 0;
  color: #171051;
  font-size: 0.95rem;
  font-weight: 700;
}

.login-form-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(28px, 6vh, 56px) clamp(42px, 7vw, 112px);
  background: #fff;
}

.login-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: #171051;
  font-size: 1.35rem;
  font-weight: 900;
  text-decoration: none;
}

.login-logo-mark {
  position: relative;
  width: 31px;
  height: 18px;
  display: inline-block;
}

.login-logo-mark::before,
.login-logo-mark::after {
  content: "";
  position: absolute;
  left: 0;
  height: 4px;
  border-radius: 999px;
}

.login-logo-mark::before {
  top: 2px;
  width: 28px;
  background: linear-gradient(90deg, #f3b51b 0 28%, #0f7f78 28% 68%, #171051 68%);
}

.login-logo-mark::after {
  bottom: 3px;
  width: 21px;
  background: linear-gradient(90deg, #0f7f78 0 55%, #171051 55%);
}

.login-form {
  width: min(100%, 330px);
}

.login-form label {
  margin-bottom: 18px;
  color: #8a90a3;
  font-size: 0.78rem;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  min-height: 54px;
  margin-top: 7px;
  padding: 15px 16px;
  border-color: #d8dce7;
  border-radius: 7px;
  color: #171051;
  font-weight: 700;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
  border-color: #0f7f78;
  box-shadow: 0 0 0 3px rgba(15, 127, 120, 0.1);
}

.login-actions {
  display: grid;
  grid-template-columns: minmax(150px, 180px);
  gap: 12px;
  width: min(100%, 330px);
}

.login-actions .button,
.login-actions button {
  min-height: 48px;
  border-radius: 7px;
  font-size: 0.86rem;
}

.login-actions button {
  background: #0f7f78;
  border-color: #0f7f78;
  box-shadow: 0 16px 26px rgba(15, 127, 120, 0.18);
}

.login-actions button:hover {
  background: #0b6762;
  border-color: #0b6762;
}

.login-actions .button.secondary {
  background: #ffffff;
  color: #171051;
  border-color: #0f7f78;
}

.login-art-panel {
  position: relative;
  align-self: center;
  height: min(760px, calc(100vh - 48px));
  height: min(760px, calc(100svh - 48px));
  max-height: calc(100vh - 48px);
  max-height: calc(100svh - 48px);
  margin-right: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b4c4b;
}

.login-art-panel img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100vh;
  max-height: 100svh;
  object-fit: cover;
}

.login-art-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 76, 75, 0.06), transparent 18%),
    linear-gradient(180deg, transparent 72%, rgba(0, 0, 0, 0.18));
  pointer-events: none;
}


label {
  display: block;
  margin-bottom: 14px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #344054;
}

input,
select,
textarea,
label input,
label select,
.compact-select,
.compact-input,
.search-input,
.dt-container .dt-input,
.dt-container .dt-filter select,
.dt-container .dt-length select,
.dt-container .dt-search input {
  width: 100%;
  min-height: 42px;
  margin-top: 7px;
  padding: 10px 12px;
  border: 1px solid #cfd6e1;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

input:focus,
select:focus,
textarea:focus,
.compact-select:focus,
.compact-input:focus,
.search-input:focus,
.dt-container .dt-input:focus,
.dt-container .dt-filter select:focus,
.dt-container .dt-length select:focus,
.dt-container .dt-search input:focus {
  border-color: #84a8f8;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

input:disabled,
select:disabled,
textarea:disabled {
  background: #f3f4f6;
  color: var(--muted);
  cursor: not-allowed;
}

select[multiple],
label select[multiple],
.multi-select {
  min-height: 164px;
}

.checkbox-list-field {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

.checkbox-list-field legend {
  margin-bottom: 7px;
  color: #344054;
  font-size: 0.92rem;
  font-weight: 700;
}

.checkbox-list {
  display: grid;
  gap: 2px;
  max-height: 190px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #cfd6e1;
  border-radius: var(--radius-sm);
  background: #fff;
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  margin: 0;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.checkbox-option:hover {
  background: var(--primary-soft);
}

.checkbox-option input[type="checkbox"] {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-option input[type="checkbox"]:disabled,
.checkbox-option input[type="checkbox"]:disabled + span {
  cursor: not-allowed;
}

.field-hint {
  display: inline-block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

button:hover,
.button:hover {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
}

.button.secondary {
  background: #fff;
  color: #344054;
  border-color: #cfd6e1;
}

.button.secondary:hover {
  background: #f8fafc;
  color: var(--text);
  border-color: #aeb8c7;
}

.button.small,
.app-header a.button.small {
  min-height: 34px;
  padding: 7px 11px;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 66px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  color: var(--text);
  backdrop-filter: blur(12px);
}

.app-header .brand {
  font-size: 1rem;
  font-weight: 800;
  color: #111827;
}

.app-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  justify-content: flex-end;
}

.app-header a {
  color: #475467;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}

.app-header nav > a:not(.button):hover {
  color: var(--primary);
}

.header-company {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: #344054;
  font-size: 0.86rem;
  font-weight: 700;
}

.header-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 8px 4px 4px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
}

.header-profile-link:hover {
  background: #f8fafc;
  border-color: var(--line);
}

.header-profile-avatar,
.profile-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #111827;
  color: #fff;
  font-weight: 800;
}

.header-profile-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.header-profile-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.header-profile-name {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.15;
}

.header-profile-username {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.15;
}

.page.shell {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 1px 2px rgba(18, 25, 38, 0.04);
}

.small-panel {
  max-width: 840px;
  margin: 0 auto;
}

.panel + .panel {
  margin-top: 20px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.panel-header h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--text);
}

.panel-header p {
  margin: 0;
  color: var(--muted);
}

.panel-actions,
.form-actions,
.filter-actions,
.table-actions,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.panel-actions,
.form-actions,
.filter-actions,
.modal-actions {
  justify-content: flex-end;
}

.dashboard-panel,
.profile-hero {
  background: var(--surface);
}

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

.dashboard-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 176px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

a.dashboard-card:hover,
a.dashboard-card:focus-visible {
  transform: translateY(-2px);
  border-color: #a9bdf6;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.1);
  outline: none;
}

.dashboard-card-disabled {
  border-style: dashed;
  background: #f8fafc;
  box-shadow: none;
  cursor: default;
}

.dashboard-card-top {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}

.dashboard-card-count {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.dashboard-card-count-label,
.result-count {
  color: var(--muted);
  font-size: 0.92rem;
}

.dashboard-card-body {
  flex: 1;
}

.dashboard-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--text);
}

.dashboard-card-link {
  color: var(--primary);
  font-weight: 800;
}

.dashboard-card-link::after {
  content: " ->";
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 16px;
}

.profile-avatar {
  width: 58px;
  height: 58px;
  border-radius: var(--radius);
  font-size: 1.35rem;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.profile-name {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 800;
}

.profile-subtitle,
.profile-list dt {
  color: var(--muted);
}

.profile-list {
  margin: 0;
}

.profile-list div {
  padding: 13px 0;
  border-top: 1px solid var(--line-soft);
}

.profile-list div:first-child {
  padding-top: 0;
  border-top: 0;
}

.profile-list dt {
  margin-bottom: 5px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.profile-list dd {
  margin: 0;
  font-weight: 700;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.filter-grid .filter-actions,
.filter-grid .form-actions {
  grid-column: 1 / -1;
}

.table-actions {
  justify-content: space-between;
  margin-bottom: 14px;
}

.search-input {
  width: min(100%, 320px);
  margin-top: 0;
}

.table-responsive {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  position: relative;
  background: #f8fafc;
  color: #344054;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  white-space: nowrap;
  user-select: none;
}

.data-table td {
  color: #344054;
  font-size: 0.92rem;
}

.data-table th:last-child,
.data-table td:last-child {
  border-right: 0;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:nth-child(even) td {
  background: #fcfcfd;
}

.data-table tbody tr:hover td {
  background: #f5f8ff;
}

.data-table th.dt-sortable {
  cursor: pointer;
  padding-right: 32px;
}

.data-table th.dt-sortable::after {
  content: "\2195";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--subtle);
  font-size: 0.8rem;
}

.data-table th.sort-asc::after {
  content: "\2191";
}

.data-table th.sort-desc::after {
  content: "\2193";
}

.data-table .actions-column,
.data-table .action-cell {
  width: 1%;
  white-space: nowrap;
}

.data-table .action-cell {
  position: relative;
  vertical-align: top;
  overflow: visible;
}

.table-action-dropdown {
  position: relative;
  display: inline-block;
}

.table-action-dropdown[open] {
  z-index: 40;
}

.table-action-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 96px;
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid #cfd6e1;
  border-radius: var(--radius-sm);
  background: #fff;
  color: #344054;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.table-action-trigger:hover,
.table-action-dropdown[open] .table-action-trigger {
  border-color: #a9bdf6;
  background: #f8fbff;
}

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

.table-action-trigger::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--muted);
}

.table-action-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 950;
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: min(238px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 24px);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  overflow-y: auto;
}

.table-action-dropdown.open-up .table-action-menu {
  top: auto;
  bottom: calc(100% + 8px);
}

.table-action-menu.is-floating {
  position: fixed;
  left: 0;
  top: 0;
  right: auto;
  bottom: auto;
}

.action-menu-form,
.action-menu-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.action-menu-divider {
  height: 1px;
  background: var(--line-soft);
}

.action-menu-label {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.action-button,
.table-action-menu .action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 34px;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.table-action-menu .action-button,
.table-action-menu .compact-select,
.table-action-menu .compact-input,
.table-action-menu .table-note {
  width: 100%;
  min-width: 0;
  justify-content: flex-start;
}

.action-button-edit {
  background: var(--primary-soft);
  color: var(--primary-strong);
  border: 1px solid #bfccfb;
}

.action-button-edit:hover {
  background: #dce8ff;
}

.action-button-delete {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid #ffd0d0;
}

.action-button-delete:hover {
  background: #ffe4e4;
}

.row-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fff;
}

.table-action-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 190px;
}

.table-note,
.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.table-note {
  background: #f2f4f7;
  color: #475467;
}

.status-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.status-summary-button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.status-summary-button:hover,
.status-summary-button.active {
  box-shadow: 0 0 0 2px rgba(38, 83, 218, 0.18);
  transform: translateY(-1px);
}

.status-summary-button.active {
  outline: 2px solid rgba(38, 83, 218, 0.3);
  outline-offset: 1px;
}

.status-chip-new,
.status-chip-uploaded {
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.status-chip-waiting,
.status-chip-extended {
  background: var(--warning-soft);
  color: var(--warning);
}

.status-chip-received {
  background: var(--success-soft);
  color: var(--success);
}

.status-chip-na {
  background: #eef0f3;
  color: #475467;
}

.status-chip-disregard {
  background: var(--danger-soft);
  color: var(--danger);
}

.status-chip-submitted {
  background: #f1edff;
  color: #6941c6;
}

.empty-state {
  padding: 26px;
  text-align: center;
  color: var(--muted);
}

.alert {
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 650;
}

.alert-error {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: #ffd0d0;
}

.alert-success {
  background: var(--info-soft);
  color: var(--info);
  border-color: #b9e7f2;
}

.toast-stack {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(420px, calc(100vw - 2rem));
  pointer-events: none;
}

.toast-notification {
  margin-bottom: 0;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast-notification.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-notification.hide {
  opacity: 0;
  transform: translateY(-10px);
}

.dt-container {
  margin-top: 12px;
}

.dt-container .dt-layout-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.dt-container .dt-layout-row:last-child {
  margin-top: 14px;
  margin-bottom: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.dt-container .dt-layout-cell,
.dt-container .dt-length label,
.dt-container .dt-search label,
.dt-container .dt-filter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dt-container .dt-layout-row > .dt-layout-cell:last-child {
  justify-content: flex-end;
  margin-left: auto;
}

.dt-container .dt-length label,
.dt-container .dt-search label {
  margin-bottom: 0;
  font-weight: 700;
}

.dt-container .dt-search input {
  min-width: 190px;
}

.dt-container .dt-filter select,
.dt-container .dt-length select {
  width: auto;
  min-width: 86px;
}

.dt-container .dt-info {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.dt-container .dt-paging {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dt-container .dt-paging .dt-paging-button {
  min-height: 34px;
  padding: 7px 11px !important;
  border: 1px solid #cfd6e1 !important;
  border-radius: var(--radius-sm) !important;
  background: #fff !important;
  color: #344054 !important;
  font-weight: 800;
  box-shadow: none !important;
}

.dt-container .dt-paging .dt-paging-button:hover:not(.disabled):not(.current) {
  background: var(--primary-soft) !important;
  color: var(--primary-strong) !important;
  border-color: #a9bdf6 !important;
}

.dt-container .dt-paging .dt-paging-button.current,
.dt-container .dt-paging .dt-paging-button.current:hover {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
}

.dt-container .dt-paging .dt-paging-button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.modal {
  display: none !important;
  position: fixed;
  z-index: 1000;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(2px);
}

.modal.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  width: min(440px, 100%);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.18);
  animation: modalFadeIn 0.16s ease-out;
}

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

.modal-header {
  margin-bottom: 12px;
}

.modal-header h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.2rem;
}

.modal-body {
  margin-bottom: 20px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-form label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-weight: 800;
}

footer.app-footer {
  padding: 18px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 760px) {
  body.login-page {
    background: #fff;
  }

  .login-shell {
    width: 100%;
    min-height: 100vh;
  }

  .login-card {
    grid-template-columns: 1fr;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .login-form-panel {
    min-height: 100vh;
    padding: 32px 24px;
  }

  .login-card-header {
    margin: 42px 0 24px;
  }

  .login-form,
  .login-actions,
  .login-actions button {
    width: 100%;
  }

  .login-actions {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .login-art-panel {
    display: none;
  }

  .app-header {
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }

  .app-header nav,
  .panel-actions,
  .form-actions,
  .filter-actions,
  .modal-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .page.shell {
    padding: 16px;
  }

  .panel {
    padding: 16px;
  }

  .panel-header {
    flex-direction: column;
  }

  .profile-grid,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .table-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input {
    width: 100%;
  }

  .table-action-dropdown,
  .table-action-trigger {
    width: 100%;
  }

  .table-action-menu {
    right: 0;
    width: min(260px, calc(100vw - 48px));
  }

  .table-action-menu.is-floating {
    left: 0;
    right: auto;
  }

  .toast-stack {
    top: 0.85rem;
    right: 0.85rem;
    left: 0.85rem;
    width: auto;
  }

  .dt-container .dt-layout-row,
  .dt-container .dt-layout-cell {
    flex-direction: column;
    align-items: flex-start;
  }

  .dt-container .dt-search input {
    width: 100%;
    min-width: 0;
  }
}
