/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  --bg: #eef3f7;
  --bg-soft: #f8fbfd;
  --card: #ffffff;
  --card-muted: #f6fafc;
  --text: #172133;
  --heading: #0f172a;
  --muted: #5f6b80;
  --primary: #0f6d77;
  --primary-strong: #0b5862;
  --secondary: #27465d;
  --secondary-strong: #1d3649;
  --neutral: #ffffff;
  --neutral-strong: #f4f7fa;
  --danger: #b42318;
  --danger-strong: #8f1d13;
  --primary-weak: #def7f4;
  --accent-weak: #e6f4ff;
  --success-weak: #ecfdf3;
  --border: #dbe2ec;
  --border-strong: #c7d2df;
  --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 18px 48px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Aptos", "Segoe UI Variable", "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(187, 247, 208, 0.25), transparent 24%),
    radial-gradient(circle at top left, rgba(186, 230, 253, 0.32), transparent 28%),
    linear-gradient(180deg, #f9fbfd 0%, var(--bg) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

main {
  min-height: calc(100vh - 140px);
  padding: 30px 0 44px;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.app-shell-header,
.app-shell-footer {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.app-shell-footer {
  border-top: 1px solid var(--border);
  border-bottom: none;
  margin-top: 20px;
}

.app-shell-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-row {
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.brand-logo-wrap,
.footer-logo-wrap {
  flex-shrink: 0;
}

.brand-logo-wrap {
  margin-right: 16px;
}

.brand-logo,
.footer-logo {
  width: auto;
  border-radius: 10px;
  object-fit: contain;
  border: 1px solid var(--border);
  background: #fff;
  transition: transform 0.2s ease;
}

.brand-logo:hover,
.footer-logo:hover {
  transform: scale(1.03);
}

.brand-logo {
  height: 64px;
}

.footer-logo {
  height: 48px;
  margin-bottom: 8px;
}

.brand-text {
  min-width: 0;
}

.brand-title {
  font-size: 15px;
  font-weight: 700;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--muted);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(16px, 2.2vw, 24px) 40px;
}

.page-shell {
  display: grid;
  grid-gap: 24px;
  gap: 24px;
}

.page-shell.narrow {
  max-width: 860px;
}

.page-shell.wide {
  width: 100%;
  max-width: 1480px;
}

.container.admin-page-container {
  max-width: 1560px;
  padding-inline: clamp(18px, 2.6vw, 38px);
}

.container.admin-list-container {
  max-width: 1700px;
  padding-inline: clamp(18px, 2.4vw, 38px);
}

.page-shell.admin-list-shell {
  max-width: none;
}

.container.admin-ticket-list-container {
  max-width: none;
  padding-inline: clamp(18px, 1.8vw, 30px);
}

.page-shell.admin-ticket-list-shell {
  width: 100%;
}

.page-hero {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.page-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.page-lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--muted);
  font-size: 13px;
}

.page-grid {
  display: grid;
  grid-gap: 24px;
  gap: 24px;
}

.page-grid.two {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.admin-topbar-tools {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  justify-items: end;
  flex: 0 0 auto;
}

.admin-mode-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-mode-badge.is-dev {
  color: #8a4f08;
  background: #fff3d6;
  border-color: #f0d39a;
}

.admin-mode-badge.is-prod {
  color: #0b4f36;
  background: #dcf8e8;
  border-color: #9ddab7;
}

.language-switcher {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(72px, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.language-switcher-option {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  min-height: 40px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.language-switcher-option:hover {
  background: rgba(15, 23, 42, 0.06);
  color: var(--heading);
}

.language-switcher-option:focus-visible {
  outline: 2px solid #14b8a6;
  outline-offset: 2px;
}

.language-switcher-option.active {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.2);
}

.language-switcher-option:active {
  transform: translateY(1px);
}

.topbar h1 {
  font-size: clamp(1.95rem, 3vw, 2.7rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--heading);
}

.topbar .muted {
  max-width: 760px;
}

.card {
  background: linear-gradient(180deg, var(--card) 0%, #fcfdff 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.card.soft {
  background: linear-gradient(180deg, var(--card-muted) 0%, #ffffff 100%);
}

.card.notice {
  background: linear-gradient(135deg, #f0fdfa 0%, #f8fbfd 100%);
  border-color: #99f6e4;
}

.card.danger {
  border-color: #fecdd3;
  background: linear-gradient(180deg, #fff8f8 0%, #ffffff 100%);
}

.grid {
  display: grid;
  grid-gap: 18px;
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

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

.stack-sm {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.stack-md {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
}

.stack-lg {
  display: grid;
  grid-gap: 24px;
  gap: 24px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.panel-head h2,
.panel-head h3 {
  letter-spacing: -0.02em;
  color: var(--heading);
}

.panel-copy {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.form-section {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--card-muted) 0%, #ffffff 100%);
}

.form-section > h2,
.form-section > h3 {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.helper-text,
.field-help {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

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

.detail-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  grid-gap: 14px;
  gap: 14px;
}

.detail-item {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  min-height: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbfd 0%, #ffffff 100%);
}

.detail-item.wide {
  grid-column: 1 / -1;
}

.detail-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-value {
  color: var(--heading);
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.mail-preview-body {
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
}

.selection-list {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.selection-item {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  color: var(--heading);
  text-align: left;
  box-shadow: none;
}

.selection-item:hover {
  border-color: #7dd3fc;
  background: #f8fdff;
}

.selection-item.active {
  border-color: #0f6d77;
  background: #ecfeff;
  box-shadow: 0 0 0 4px rgba(15, 109, 119, 0.1);
}

.selection-title {
  font-size: 15px;
  font-weight: 700;
}

.selection-subtitle {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.compact-list {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.list-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
}

.list-row-main {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  min-width: 0;
}

.list-row-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.45;
}

.list-row-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.list-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.attachment-preview-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.56);
}

.attachment-preview-dialog {
  width: min(1120px, 100%);
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 24px;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.attachment-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.attachment-preview-heading {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  min-width: 0;
}

.attachment-preview-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.attachment-preview-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--heading);
  line-height: 1.45;
  word-break: break-word;
}

.attachment-preview-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.attachment-preview-zoom {
  min-width: 56px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.attachment-preview-body {
  min-height: 0;
  padding: 20px 22px 22px;
  background: #f8fafc;
}

.attachment-preview-canvas {
  height: min(72vh, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 20px;
  background: #ffffff;
}

.attachment-preview-canvas.image {
  background:
    linear-gradient(45deg, rgba(226, 232, 240, 0.55) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(226, 232, 240, 0.55) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(226, 232, 240, 0.55) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(226, 232, 240, 0.55) 75%);
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
}

.attachment-preview-image {
  width: auto;
  height: auto;
  max-width: min(100%, 980px);
  max-height: min(66vh, 680px);
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.15s ease;
}

.attachment-preview-pdf {
  width: 100%;
  height: 100%;
  min-height: 620px;
  border: 0;
  background: #ffffff;
}

.ticket-list {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.ticket-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-gap: 16px;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
  box-shadow: var(--shadow-sm);
}

.ticket-row-main {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  min-width: 0;
}

.ticket-row-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.ticket-row-title-block {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  min-width: 0;
}

.ticket-row-number {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--heading);
}

.ticket-row-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  grid-gap: 12px 16px;
  gap: 12px 16px;
}

.ticket-cell {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  min-width: 0;
}

.ticket-cell-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.ticket-cell-value {
  color: var(--heading);
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
}

.ticket-row-summary {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.ticket-row-foot {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.ticket-row-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.radio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  grid-gap: 10px;
  gap: 10px;
}

.radio-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  cursor: pointer;
}

.radio-option.active {
  border-color: #0f6d77;
  background: #ecfeff;
  box-shadow: 0 0 0 4px rgba(15, 109, 119, 0.08);
}

.radio-option input {
  width: 16px;
  min-height: 16px;
  margin-top: 3px;
  padding: 0;
  box-shadow: none;
}

.radio-option-copy {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
}

.radio-option-copy strong {
  font-size: 14px;
}

.radio-option-copy span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #526071;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  padding: 12px 14px;
  min-height: 46px;
  font-size: 15px;
  font-family: inherit;
  color: var(--heading);
  line-height: 1.5;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16);
}

input:disabled,
select:disabled,
textarea:disabled {
  background: #f3f6f9;
  color: #738195;
}

button {
  width: auto;
  border: none;
  font-family: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease, border-color 120ms ease;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-sm {
  min-height: 38px;
  padding: 0 12px;
  font-size: 13px;
}

.btn-md {
  min-height: 46px;
}

.btn-lg {
  min-height: 52px;
  padding: 0 18px;
  font-size: 15px;
}

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

.btn-primary:hover {
  background: var(--primary-strong);
}

.btn-secondary {
  background: var(--secondary);
  color: #ffffff;
}

.btn-secondary:hover {
  background: var(--secondary-strong);
}

.btn-neutral {
  background: var(--neutral);
  color: var(--heading);
  border-color: var(--border);
  box-shadow: none;
}

.btn-neutral:hover {
  background: var(--neutral-strong);
}

.btn-danger {
  background: var(--danger);
  color: #ffffff;
}

.btn-danger:hover {
  background: var(--danger-strong);
}

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

.actions > * {
  width: auto;
}

.actions.spread {
  justify-content: space-between;
}

.inline-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.error {
  border: 1px solid #fecdd3;
  border-radius: 14px;
  background: #fff1f2;
  color: var(--danger);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.55;
}

.muted {
  color: var(--muted);
  line-height: 1.6;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-weak);
  color: #115e59;
  border: 1px solid #99f6e4;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--border-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
}

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

.admin-table-wrap {
  margin-inline: -6px;
  padding-inline: 6px;
  scrollbar-gutter: stable both-edges;
}

.admin-table-card {
  padding: 18px 16px;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.registry-pagination-footer {
  margin-top: 14px;
  margin-bottom: 0;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination-controls .btn {
  min-width: 38px;
  padding-inline: 10px;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 38px;
  color: var(--muted);
  font-weight: 800;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.registry-preview-table {
  width: max(100%, 1880px);
  min-width: 1880px;
}

.registry-preview-table th,
.registry-preview-table td {
  font-size: 13px;
  line-height: 1.5;
  white-space: normal;
  word-break: break-word;
}

.registry-diff-cell {
  background: #fff7ed;
  color: #9a3412;
  font-weight: 800;
}

.registry-action-create {
  background: #ecfdf3;
  border-color: #86efac;
  color: #166534;
}

.registry-action-update {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.registry-action-unchanged {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #475569;
}

.registry-action-invalid {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #b42318;
}

.bulk-preview-table {
  width: max(100%, 1920px);
  min-width: 1920px;
}

.bulk-preview-table thead th {
  text-transform: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.bulk-preview-table th,
.bulk-preview-table td {
  font-size: 13px;
  line-height: 1.5;
}

.bulk-preview-cell-wrap {
  white-space: normal;
  word-break: break-word;
  min-width: 150px;
}

.bulk-preview-description {
  min-width: 280px;
  max-width: 360px;
}

.bulk-preview-errors {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  min-width: 220px;
}

.admin-list-table {
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.admin-list-table.ticket-list-table {
  width: max(100%, 2020px);
  min-width: 2020px;
  table-layout: auto;
}

.admin-list-table.work-order-list-table {
  width: 1700px;
  min-width: 1700px;
}

thead th {
  background: #f7fafc;
  color: #526071;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

tbody tr:hover {
  background: rgba(248, 251, 253, 0.85);
}

.admin-list-table th,
.admin-list-table td {
  padding: 13px 14px;
  font-size: 13.5px;
  line-height: 1.45;
}

.admin-list-table thead th {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.35;
  vertical-align: bottom;
  height: 74px;
  min-height: 74px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.admin-list-table td {
  overflow-wrap: break-word;
  word-break: normal;
  line-height: 1.55;
}

.admin-list-table th:not(:last-child),
.admin-list-table td:not(:last-child) {
  border-right: 1px solid rgba(219, 226, 236, 0.75);
}

.admin-list-table .table-cell-nowrap {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.admin-list-table .table-cell-wrap {
  white-space: normal;
}

.admin-list-table .table-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  justify-content: flex-start;
}

.admin-list-table .table-actions .btn {
  width: 100%;
}

.ticket-list-table .table-ticket-button {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  justify-content: flex-start;
  padding-inline: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticket-list-table .col-ticket {
  width: 170px;
}

.ticket-list-table .col-created {
  width: 150px;
}

.ticket-list-table .col-customer {
  width: 140px;
}

.ticket-list-table .col-client {
  width: 160px;
}

.ticket-list-table .col-site {
  width: 220px;
}

.ticket-list-table .col-unit {
  width: 180px;
}

.ticket-list-table .col-phone {
  width: 140px;
}

.ticket-list-table .col-region {
  width: 150px;
}

.ticket-list-table .col-date {
  width: 150px;
}

.ticket-list-table .col-reference {
  width: 180px;
}

.ticket-list-table .col-reference-short {
  width: 130px;
}

.ticket-list-table .col-assignment {
  width: 170px;
}

.ticket-list-table .col-status {
  width: 120px;
}

.work-order-list-table .col-work-order {
  width: 150px;
}

.work-order-list-table .col-linked-ticket {
  width: 140px;
}

.work-order-list-table .col-client {
  width: 180px;
}

.work-order-list-table .col-contact {
  width: 190px;
}

.work-order-list-table .col-site {
  width: 300px;
}

.work-order-list-table .col-serial {
  width: 160px;
}

.work-order-list-table .col-assignment {
  width: 230px;
}

.work-order-list-table .col-service-type {
  width: 130px;
}

.work-order-list-table .col-date {
  width: 150px;
}

.work-order-list-table .col-status {
  width: 120px;
}

.work-order-list-table .col-created-short {
  width: 150px;
}

.work-order-list-table .col-action {
  width: 120px;
}

.divider {
  height: 1px;
  width: 100%;
  background: var(--border);
}

@media (max-width: 900px) {
  .page-grid.two,
  .detail-grid,
  .detail-grid.three,
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  main {
    padding-top: 22px;
  }

  .container,
  .container.admin-page-container,
  .container.admin-list-container,
  .container.admin-ticket-list-container {
    padding: 0 16px 32px;
  }

  .card {
    padding: 18px;
    border-radius: 18px;
  }

  .topbar {
    margin-bottom: 18px;
  }

  .admin-topbar-tools {
    width: 100%;
    justify-items: stretch;
  }

  .admin-mode-badge {
    justify-self: start;
  }

  .language-switcher {
    width: 100%;
  }

  .topbar h1 {
    font-size: 1.85rem;
  }

  .brand-logo {
    height: 40px;
  }

  .footer-logo {
    height: 36px;
  }

  .btn,
  .actions > .btn {
    width: 100%;
  }

  .actions {
    align-items: stretch;
  }

  .list-row {
    flex-direction: column;
  }

  .list-row-actions {
    width: 100%;
    justify-content: stretch;
  }

  .attachment-preview-backdrop {
    padding: 12px;
  }

  .attachment-preview-dialog {
    max-height: calc(100vh - 24px);
    border-radius: 20px;
  }

  .attachment-preview-header,
  .attachment-preview-body {
    padding: 16px;
  }

  .attachment-preview-canvas {
    height: min(68vh, 640px);
    padding: 12px;
  }

  .attachment-preview-pdf {
    min-height: 520px;
  }

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

  .ticket-row-actions {
    width: 100%;
  }
}

@media (min-width: 721px) and (max-width: 1024px) {
  .brand-logo {
    height: 48px;
  }
}

