:root {
  --navy-950: #06264d;
  --navy-900: #07376a;
  --navy-800: #0a4b89;
  --blue-700: #075fd4;
  --blue-600: #0b70ea;
  --blue-100: #e8f2ff;
  --blue-50: #f4f8ff;
  --ink: #132341;
  --muted: #65738b;
  --line: #dfe6f0;
  --line-dark: #cdd8e6;
  --canvas: #f4f7fb;
  --white: #ffffff;
  --green: #138a5b;
  --green-soft: #e6f7ef;
  --amber: #b96a08;
  --amber-soft: #fff3d8;
  --red: #c33c45;
  --red-soft: #ffe9ea;
  --violet: #7545d5;
  --violet-soft: #f0eaff;
  --shadow: 0 9px 28px rgba(18, 48, 83, 0.08);
  --shadow-lg: 0 24px 70px rgba(3, 31, 67, 0.18);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; background: var(--canvas); color: var(--ink); font-size: 17.5px; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue-600); }
svg { display: block; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .9em; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.sidebar {
  position: fixed; z-index: 40; inset: 0 auto 0 0; width: 252px;
  display: flex; flex-direction: column; color: #fff;
  background:
    radial-gradient(circle at 100% 8%, rgba(52, 151, 255, .22), transparent 25%),
    linear-gradient(180deg, #083d73 0%, #062d59 55%, #052448 100%);
  box-shadow: 8px 0 26px rgba(6, 34, 70, .12);
}
.brand { min-height: 88px; display: flex; align-items: center; gap: 12px; padding: 20px 20px; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.brand:hover { color: #fff; }
.brand-logo { width: 188px; height: 54px; object-fit: contain; padding: 6px 9px; border-radius: 9px; background: #fff; }
.brand small { color: #d5e7f8; font-size: 12.5px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 5px; padding: 18px 12px; }
.nav-link { position: relative; display: flex; align-items: center; min-height: 54px; gap: 13px; padding: 0 13px; border-radius: 9px; color: #c7daee; font-size: 16.25px; font-weight: 590; transition: .18s ease; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-link.is-active { color: #fff; background: linear-gradient(90deg, rgba(31, 133, 242, .68), rgba(26, 112, 211, .36)); box-shadow: inset 3px 0 #58b5ff, 0 7px 14px rgba(1, 24, 55, .16); }
.nav-icon { width: 19px; color: #b9d9f7; }
.nav-link.is-active .nav-icon { color: #fff; }
.nav-icon svg { width: 19px; height: 19px; }
.nav-badge { margin-left: auto; min-width: 21px; height: 21px; display: grid; place-items: center; padding: 0 5px; border-radius: 99px; background: #f44752; color: #fff; font-size: 12.5px; box-shadow: 0 0 0 3px rgba(244,71,82,.16); }
.sidebar-foot { margin-top: auto; padding: 14px 14px 18px; border-top: 1px solid rgba(255,255,255,.1); }
.tenant-card { display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 11px; background: rgba(255,255,255,.07); }
.tenant-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.1); }
.tenant-icon svg { width: 17px; }
.tenant-card > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.tenant-card strong { overflow: hidden; font-size: 13.75px; white-space: nowrap; text-overflow: ellipsis; }
.tenant-card small { margin-top: 3px; color: #adc8e3; font-size: 11.25px; }
.version { display: block; padding: 11px 8px 0; color: #789cbd; font-size: 11.25px; }

.main-column { min-width: 0; grid-column: 2; display: flex; flex-direction: column; min-height: 100vh; }
.topbar { position: sticky; z-index: 30; top: 0; height: 82px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.topbar-left, .topbar-actions, .profile { display: flex; align-items: center; }
.topbar-left { gap: 14px; }
.topbar-actions { gap: 12px; }
.breadcrumb { display: flex; flex-direction: column; gap: 2px; }
.breadcrumb span { color: var(--muted); font-size: 12.5px; }
.breadcrumb strong { font-size: 18.75px; letter-spacing: -.015em; }
.icon-button { position: relative; width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0; color: #56667e; border: 1px solid transparent; border-radius: 10px; background: transparent; cursor: pointer; }
.icon-button:hover { color: var(--blue-700); background: var(--blue-50); border-color: #dbe9fb; }
.icon-button svg { width: 20px; height: 20px; }
.mobile-menu { display: none; }
.notification-button > span { position: absolute; top: 2px; right: 1px; min-width: 16px; height: 16px; display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff; border-radius: 99px; background: #f0444f; color: #fff; font-size: 10px; font-weight: 800; }
.profile { gap: 10px; padding-left: 12px; border-left: 1px solid var(--line); }
.profile-link { display: flex; align-items: center; gap: 10px; color: var(--ink); border-radius: 9px; }
.profile-link:hover { color: var(--blue-700); }
.avatar { width: 36px; height: 36px; flex: none; display: grid; place-items: center; color: #fff; border-radius: 50%; background: var(--avatar, #1d4ed8); font-weight: 760; box-shadow: 0 0 0 3px color-mix(in srgb, var(--avatar, #1d4ed8) 14%, transparent); }
.avatar-small { width: 31px; height: 31px; font-size: 13.75px; }
.profile-copy { display: flex; flex-direction: column; min-width: 130px; }
.profile-copy strong { font-size: 15px; }
.profile-copy small { color: var(--muted); font-size: 11.25px; }
.logout-button { width: 32px; height: 32px; }
.logout-button svg { width: 17px; }

.content { position: relative; width: 100%; max-width: 1640px; margin: 0 auto; padding: 30px 30px 44px; flex: 1; }
.app-footer { display: flex; justify-content: space-between; gap: 20px; padding: 16px 30px; color: #7b8798; background: #fff; border-top: 1px solid var(--line); font-size: 12.5px; }
.app-footer strong { color: var(--navy-800); }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-heading.compact { align-items: center; }
.page-heading h1 { margin: 3px 0 6px; color: #102241; font-size: clamp(30px, 3vw, 42.5px); letter-spacing: -.035em; line-height: 1.1; }
.page-heading p:not(.eyebrow) { max-width: 730px; margin: 0; color: var(--muted); line-height: 1.6; }
.eyebrow { margin: 0; color: var(--blue-700); font-size: 12.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.result-count { padding: 8px 12px; color: #53647b; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 13.75px; }

.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border: 1px solid transparent; border-radius: 8px; font-weight: 720; font-size: 15px; cursor: pointer; transition: .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: linear-gradient(180deg, #147cf0, #0864d7); box-shadow: 0 6px 14px rgba(8,100,215,.2); }
.button-primary:hover { color: #fff; background: linear-gradient(180deg, #1b85f8, #0759c5); }
.button-secondary { color: var(--blue-700); border-color: #bbd7f8; background: #f4f9ff; }
.button-ghost { color: #53657e; border-color: var(--line); background: #fff; }
.button-danger { color: #a82f3a; border-color: #efb7bd; background: #fff4f5; }
.button-danger:hover { color: #8f202c; border-color: #e69aa3; background: #ffecef; }
.button-block { width: 100%; }
.button-small { min-height: 39px; padding: 0 13px; font-size: 12.5px; }
.button-link { padding: 0; color: var(--blue-700); border: 0; background: transparent; font-weight: 720; cursor: pointer; }
.button-link.danger { color: var(--red); }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 20px; }
.metric-grid-five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.metric-card { min-height: 132px; display: flex; flex-direction: column; padding: 17px 18px 15px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.metric-alert { border-color: #f2c8cb; background: linear-gradient(160deg, #fff 60%, #fff5f5); }
.metric-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #52617a; font-size: 13.75px; font-weight: 650; }
.metric-icon { min-width: 25px; height: 25px; display: grid; place-items: center; padding: 0 5px; border-radius: 50%; font-size: 12.5px; font-style: normal; font-weight: 850; }
.metric-icon.blue { color: #096bdc; background: #e7f1ff; }
.metric-icon.red { color: #cc303c; background: #ffe6e8; }
.metric-icon.amber { color: #ac6508; background: #fff0cf; }
.metric-icon.green { color: #0d8556; background: #e3f7ed; }
.metric-icon.violet { color: var(--violet); background: var(--violet-soft); }
.metric-card > strong { margin-top: 8px; font-size: 36.25px; line-height: 1; letter-spacing: -.04em; }
.metric-card > a { margin-top: auto; font-size: 12.5px; font-weight: 700; }

.panel { border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.panel-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 17px; border-bottom: 1px solid #e8edf4; }
.panel-header h2 { margin: 0; font-size: 17.5px; letter-spacing: -.015em; }
.panel-header p { margin: 4px 0 0; color: var(--muted); font-size: 11.25px; }
.panel-header > a { font-size: 12.5px; font-weight: 750; }
.panel-head { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 17px; border-bottom: 1px solid #e8edf4; }
.panel-head h2 { margin: 0; font-size: 17.5px; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 11.25px; }
.panel-form { display: grid; gap: 14px; padding: 18px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.form-actions small { color: var(--muted); font-size: 11.25px; line-height: 1.5; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(280px, .9fr); gap: 18px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
th { padding: 12px 14px; color: #687890; background: #f9fbfd; border-bottom: 1px solid var(--line); font-size: 11.25px; font-weight: 760; letter-spacing: .02em; text-align: left; text-transform: uppercase; white-space: nowrap; }
th[data-sortable="true"] { cursor: pointer; user-select: none; }
th[data-sortable="true"]::after { content: "↕"; display: inline-block; margin-left: 6px; color: #a7b2c1; font-size: .9em; }
th[data-sort-direction="asc"]::after { content: "↑"; color: var(--blue-700); }
th[data-sort-direction="desc"]::after { content: "↓"; color: var(--blue-700); }
th[data-sortable="true"]:focus-visible { outline: 2px solid #6ab2ff; outline-offset: -2px; }
td { padding: 12px 14px; border-bottom: 1px solid #edf1f6; vertical-align: middle; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbfdff; }
.datatable-toolbar, .datatable-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 12px 14px; background: #fff; }
.datatable-toolbar { border-bottom: 1px solid var(--line); }
.datatable-footer { align-items: center; border-top: 1px solid var(--line); }
.datatable-search { width: min(340px, 100%); }
.datatable-search input { width: 100%; }
.datatable-size { min-width: 90px; }
.datatable-pagination { display: flex; align-items: center; gap: 8px; }
.datatable-pagination button { min-height: 40px; padding: 0 13px; color: var(--blue-700); border: 1px solid #bdd6f4; border-radius: 7px; background: #f5f9ff; font-weight: 700; cursor: pointer; }
.datatable-pagination button:disabled { color: #9aa5b4; border-color: #dfe5ed; background: #f7f8fa; cursor: not-allowed; }
.datatable-summary, .datatable-page { color: var(--muted); font-size: 11.25px; }
.ticket-link { color: #0867d9; font-weight: 760; }
.subject-cell { display: block; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.table-sub { display: block; margin-top: 3px; color: #8b96a7; font-size: 10px; }
.row-action { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; background: var(--blue-50); font-weight: 900; }
.status, .priority, .state, .http-status { display: inline-flex; align-items: center; justify-content: center; min-height: 22px; padding: 0 8px; border-radius: 6px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.status-received { color: #155fba; background: #e7f1ff; border: 1px solid #bdd9fa; }
.status-in_review, .status-reopened { color: #6d43c5; background: #f0eaff; border: 1px solid #d5c6fb; }
.status-waiting_information { color: #9a5c05; background: #fff3d7; border: 1px solid #f0d193; }
.status-answered { color: #0f7b51; background: #e3f6ed; border: 1px solid #b7e5d0; }
.status-closed { color: #566172; background: #eef1f4; border: 1px solid #d8dde4; }
.status-cancelled { color: #a4323e; background: #ffeaec; border: 1px solid #efbbc0; }
.status-active { color: #0f7b51; background: #e3f6ed; border: 1px solid #b7e5d0; }
.priority-low { color: #43805f; background: #edf7f1; }
.priority-normal { color: #94610f; background: #fff3dc; }
.priority-high, .priority-urgent { color: #ba3340; background: #ffeaec; }
.state-active { color: #0c7d50; background: #e4f7ee; }
.state-inactive { color: #b4333f; background: #ffeaeb; }
.state-neutral { color: #626f82; background: #eef1f5; }
.http-ok { color: var(--green); background: var(--green-soft); }
.http-error { color: var(--red); background: var(--red-soft); }
.text-danger { color: var(--red); font-weight: 720; }
.empty-row { padding: 30px; color: var(--muted); text-align: center; }

.activity-panel { min-width: 0; overflow: hidden; }
.activity-list { padding: 6px 15px; }
.activity-item { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 8px; padding: 12px 2px; color: var(--ink); border-bottom: 1px solid #edf1f5; }
.activity-item:hover { color: var(--ink); }
.activity-item:last-child { border: 0; }
.activity-dot { width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: #2779da; box-shadow: 0 0 0 3px #e8f2ff; }
.activity-dot.danger { background: #d13c46; box-shadow: 0 0 0 3px #ffeaec; }
.activity-item > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.activity-item strong { overflow: hidden; font-size: 11.25px; text-overflow: ellipsis; white-space: nowrap; }
.activity-item small { overflow: hidden; margin-top: 4px; color: #58677d; font-size: 11.25px; text-overflow: ellipsis; white-space: nowrap; }
.activity-item time { margin-top: 5px; color: #8a96a6; font-size: 10px; }
.panel-footer-link { display: flex; align-items: center; justify-content: space-between; padding: 14px 17px; border-top: 1px solid var(--line); font-size: 12.5px; font-weight: 730; }

.filter-bar { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 18px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: var(--shadow); }
.filter-bar label { min-width: 170px; }
.ticket-filters .search-field { flex: 1; min-width: 260px; }
label { display: flex; flex-direction: column; gap: 6px; color: #42516a; font-size: 12.5px; font-weight: 700; }
label > small { color: #8a96a7; font-size: 10px; font-weight: 500; }
input, select, textarea { width: 100%; color: var(--ink); border: 1px solid var(--line-dark); border-radius: 7px; background: #fff; outline: 0; transition: .16s ease; }
input, select { height: 48px; padding: 0 12px; }
textarea { min-height: 80px; padding: 10px 11px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: #4d9cf0; box-shadow: 0 0 0 3px rgba(56, 144, 236, .13); }
input::placeholder, textarea::placeholder { color: #a1acbb; }

.toast-stack { position: fixed; z-index: 100; top: 84px; right: 24px; width: min(390px, calc(100vw - 32px)); display: grid; gap: 9px; }
.toast { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 14px; border: 1px solid; border-radius: 9px; background: #fff; box-shadow: 0 14px 40px rgba(7, 34, 72, .18); font-size: 13.75px; }
.toast-success { color: #0b6e48; border-color: #a9dfc6; background: #f1fbf6; }
.toast-error { color: #a92e3a; border-color: #f0b5ba; background: #fff4f5; }
.toast-warning { color: #8d5907; border-color: #ecd097; background: #fffaed; }
.toast button { border: 0; background: none; color: inherit; font-size: 22.5px; cursor: pointer; }

.back-row { margin-bottom: 14px; }
.back-row a { font-size: 12.5px; font-weight: 720; }
.ticket-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px 22px 17px; border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; background: #fff; }
.ticket-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.ticket-code { color: var(--blue-700); font-size: 17.5px; font-weight: 820; }
.ticket-hero h1 { margin: 0; font-size: 22.5px; letter-spacing: -.025em; }
.ticket-hero p { max-width: 900px; margin: 10px 0 0; color: var(--muted); font-size: 13.75px; line-height: 1.6; }
.ticket-meta-grid { display: grid; grid-template-columns: repeat(5, 1fr); margin-bottom: 18px; border: 1px solid var(--line); border-radius: 0 0 12px 12px; background: #fbfcfe; }
.ticket-meta-grid > div { min-width: 0; display: flex; flex-direction: column; gap: 5px; padding: 12px 16px; border-right: 1px solid var(--line); }
.ticket-meta-grid > div:last-child { border: 0; }
.ticket-meta-grid span { color: #7d899a; font-size: 10px; }
.ticket-meta-grid strong { overflow: hidden; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.ticket-meta-grid .meta-danger strong { color: var(--red); }
.ticket-workspace { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(280px, .85fr); gap: 16px; align-items: start; }
.conversation-panel { overflow: hidden; }
.conversation-count { color: #687890; font-size: 11.25px; }
.conversation-list { max-height: 630px; overflow-y: auto; padding: 10px 18px 4px; }
.message { display: grid; grid-template-columns: 31px minmax(0, 1fr); gap: 10px; padding: 13px 0; border-bottom: 1px solid #edf1f5; }
.message:last-child { border: 0; }
.message > div > header { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.message header strong { font-size: 12.5px; }
.message header time { margin-left: auto; color: #8a96a7; font-size: 10px; }
.message-type { padding: 3px 6px; color: #42668f; border-radius: 4px; background: #eef5fd; font-size: 8.75px; font-weight: 750; }
.message p { margin: 7px 0 0; padding: 10px 12px; color: #3e4e65; border: 1px solid #e3e9f1; border-radius: 2px 9px 9px 9px; background: #f8fafc; font-size: 12.5px; line-height: 1.65; }
.message-internal p { border-color: #f0d7a5; background: #fffaf0; }
.message-internal .message-type { color: #8f5d0a; background: #fff1d4; }
.reply-box { margin: 12px 16px 16px; overflow: hidden; border: 1px solid var(--line-dark); border-radius: 10px; }
.reply-tabs { display: flex; border-bottom: 1px solid var(--line); background: #f8fafc; }
.reply-tabs button { padding: 10px 13px; color: #6d798c; border: 0; border-bottom: 2px solid transparent; background: transparent; font-size: 11.25px; font-weight: 740; cursor: pointer; }
.reply-tabs button.is-active { color: var(--blue-700); border-bottom-color: var(--blue-600); background: #fff; }
.reply-box textarea { border: 0; border-radius: 0; box-shadow: none; }
.reply-box footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 9px 10px; border-top: 1px solid var(--line); }
.reply-box footer span { color: #8994a4; font-size: 10px; }
.ticket-side { display: grid; gap: 14px; }
.compact-panel { overflow: hidden; }
.client-data-list { display: grid; margin: 0; }
.client-data-list div { display: grid; grid-template-columns: minmax(90px, .75fr) minmax(0, 1.4fr); gap: 10px; padding: 10px 14px; border-bottom: 1px solid #edf1f5; }
.client-data-list div:last-child { border-bottom: 0; }
.client-data-list dt { color: var(--muted); font-size: 10px; }
.client-data-list dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 11.25px; font-weight: 700; }
.attachment-list { padding: 6px 13px; }
.attachment-list > a { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 9px; align-items: center; padding: 9px 0; color: var(--ink); border-bottom: 1px solid #edf1f5; }
.file-icon { width: 34px; height: 34px; display: grid; place-items: center; color: #d03a46; border-radius: 7px; background: #ffedef; font-size: 8.75px; font-weight: 850; }
.attachment-list strong { display: block; overflow: hidden; font-size: 11.25px; text-overflow: ellipsis; white-space: nowrap; }
.attachment-list small { display: block; margin-top: 4px; color: #8b96a6; font-size: 8.75px; }
.muted-copy { padding: 6px; color: var(--muted); font-size: 11.25px; }
.upload-form { display: grid; grid-template-columns: 1fr 75px; gap: 8px; padding: 10px 13px 13px; }
.file-picker input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.file-picker span { height: 48px; display: grid; place-items: center; border: 1px dashed #abc7e8; border-radius: 7px; background: #f6faff; color: #31689d; cursor: pointer; }
.compact-panel .stack-form { padding: 13px; }
.timeline { position: relative; display: grid; gap: 0; margin: 0; padding: 12px 15px 8px; list-style: none; }
.timeline::before { content: ""; position: absolute; top: 18px; bottom: 20px; left: 20px; width: 1px; background: #d7e1ed; }
.timeline li { position: relative; display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 9px; padding-bottom: 14px; }
.timeline li > span { z-index: 1; width: 9px; height: 9px; margin-top: 2px; border: 2px solid #4d95e7; border-radius: 50%; background: #fff; }
.timeline li div { display: flex; flex-direction: column; }
.timeline time { color: #8d98a7; font-size: 8.75px; }
.timeline strong { margin-top: 2px; font-size: 11.25px; }
.timeline small { margin-top: 3px; color: #68758a; font-size: 8.75px; }
.timeline-roomy { padding: 18px 20px 10px; }
.timeline-roomy::before { left: 25px; }
.timeline-roomy li { gap: 13px; padding-bottom: 22px; }
.traceability-grid { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(0, 2fr); gap: 18px; align-items: start; }

.tab-bar { display: flex; gap: 4px; margin-bottom: 18px; padding: 0 7px; border-bottom: 1px solid var(--line); background: #fff; border-radius: 9px 9px 0 0; box-shadow: 0 5px 16px rgba(18,48,83,.04); overflow-x: auto; }
.tab-bar a { flex: none; padding: 13px 12px 11px; color: #66748a; border-bottom: 2px solid transparent; font-size: 12.5px; font-weight: 720; }
.tab-bar a.is-active { color: var(--blue-700); border-bottom-color: var(--blue-600); }
.admin-split { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(280px, .8fr); gap: 16px; align-items: start; }
.roles-panel { padding-bottom: 8px; }
.role-card { display: grid; grid-template-columns: 35px minmax(0, 1fr); gap: 10px; align-items: center; margin: 10px 12px; padding: 11px; border: 1px solid #e3e9f1; border-radius: 9px; }
.role-card > span { width: 35px; height: 35px; display: grid; place-items: center; color: #2369b8; border-radius: 8px; background: #e9f3ff; font-size: 12.5px; font-weight: 850; }
.role-card > div { display: flex; flex-direction: column; }
.role-card strong { font-size: 12.5px; }
.role-card small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.role-fiscal > span { color: #7242ca; background: #f0eaff; }
.role-notary > span,
.role-notary_admin > span { color: #0b7d51; background: #e4f7ee; }
.role-notary_staff > span { color: #3157a4; background: #eaf2ff; }
.admin-form-card { overflow: hidden; }
.admin-form-card .stack-form { padding: 15px; }
.admin-column { display: grid; gap: 16px; min-width: 0; }
.admin-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.admin-actions form { margin: 0; }
.admin-actions .button { min-height: 39px; padding: 0 11px; font-size: 11.25px; }
.admin-editor { position: relative; }
.admin-editor > summary { list-style: none; user-select: none; }
.admin-editor > summary::-webkit-details-marker { display: none; }
.admin-editor[open] > summary { color: var(--blue-700); border-color: #9bc5f2; background: #eef6ff; }
.admin-editor > .stack-form {
  position: fixed; z-index: 80; inset: 88px 28px auto auto;
  width: min(410px, calc(100vw - 32px)); max-height: calc(100vh - 116px);
  overflow-y: auto; padding: 18px; border: 1px solid var(--line-dark);
  border-radius: 12px; background: #fff; box-shadow: 0 24px 70px rgba(4, 34, 72, .24);
}
.admin-editor-wide > .stack-form { width: min(570px, calc(100vw - 32px)); }
.form-two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin-search { display: flex; align-items: center; gap: 7px; }
.admin-search input { width: 190px; }
.stack-form { display: grid; gap: 13px; }
.info-box { padding: 11px; color: #3c608a; border: 1px solid #c6dcf6; border-radius: 8px; background: #f3f8ff; font-size: 11.25px; line-height: 1.5; }
.secret-once { display: grid; grid-template-columns: 1.2fr 1fr 1.5fr; gap: 12px; align-items: center; margin-bottom: 16px; padding: 15px; color: #4f3c08; border: 1px solid #e5c56e; border-radius: 10px; background: #fff9e8; box-shadow: var(--shadow); }
.secret-once > div { display: flex; flex-direction: column; }
.secret-once strong { font-size: 13.75px; }
.secret-once span { margin-top: 3px; font-size: 10px; }
.secret-once label { min-width: 0; }
.secret-once code { display: block; overflow: hidden; padding: 8px; color: #463913; border-radius: 6px; background: rgba(255,255,255,.7); text-overflow: ellipsis; }

.security-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.security-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.security-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.security-card { min-height: 205px; padding: 14px; }
.security-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.security-card > header > div { display: flex; gap: 9px; }
.security-card h2 { margin: 0; font-size: 13.75px; }
.security-card header p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.security-icon { min-width: 29px; height: 29px; display: grid; place-items: center; padding: 0 6px; color: #176bc9; border-radius: 7px; background: #e8f3ff; font-size: 10px; font-weight: 850; }
.credential-row, .ip-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid #edf1f5; }
.credential-row > span { display: flex; flex-direction: column; min-width: 0; }
.credential-row strong { overflow: hidden; font-size: 11.25px; text-overflow: ellipsis; white-space: nowrap; }
.credential-row small { margin-top: 3px; color: var(--muted); font-size: 8.75px; }
.credential-row code, .ip-row code { color: #536178; font-size: 10px; }
.security-note { display: block; margin-top: 10px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.readonly-field code { padding: 8px; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: 6px; background: #f8fafc; font-size: 10px; }
.event-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }
.event-list span { padding: 5px 6px; color: #3f6087; border-radius: 5px; background: #eef5fd; font-size: 8.75px; }
.key-stat { display: flex; align-items: baseline; gap: 7px; padding: 9px; border-radius: 8px; background: #f7f9fc; }
.key-stat strong { font-size: 30px; }
.key-stat span { color: var(--muted); font-size: 10px; }
.security-definition { margin: 10px 0 0; }
.security-definition div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid #edf1f5; font-size: 10px; }
.security-definition dt { color: var(--muted); }
.security-definition dd { margin: 0; font-weight: 700; }
.security-bottom-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(240px, .8fr); gap: 16px; align-items: start; }
.policy-list { display: grid; gap: 11px; margin: 0; padding: 15px; list-style: none; color: #4e5d72; font-size: 11.25px; }
.policy-list li { display: flex; align-items: center; gap: 8px; }
.policy-list span { width: 18px; height: 18px; display: grid; place-items: center; color: var(--green); border-radius: 50%; background: var(--green-soft); font-size: 10px; font-weight: 850; }
.policy-list-compact { padding: 4px 0 0; }
.policy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.policy-update { display: flex; justify-content: space-between; padding: 12px 15px; border-top: 1px solid var(--line); font-size: 10px; }
.policy-update span { color: var(--muted); }
.audit-action { display: inline-block; padding: 5px 7px; color: #3c5f88; border-radius: 5px; background: #edf4fc; font-family: monospace; font-size: 10px; }
.notification-panel { overflow: hidden; }
.notification-item { display: grid; grid-template-columns: 10px minmax(0, 1fr) 20px; gap: 11px; align-items: start; padding: 16px 18px; color: var(--ink); border-bottom: 1px solid var(--line); }
.notification-item:hover { color: var(--ink); background: #fbfdff; }
.notification-item.is-unread { background: #f4f8ff; }
.notification-dot { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: #aab3c0; }
.is-unread .notification-dot { background: var(--blue-600); box-shadow: 0 0 0 4px #e4f0ff; }
.notification-item strong { font-size: 13.75px; }
.notification-item p { margin: 5px 0; color: #5e6d82; font-size: 11.25px; }
.notification-item time { color: #8a96a7; font-size: 10px; }
.notification-item i { color: #6c7d92; font-style: normal; }
.empty-state { padding: 50px 20px; color: var(--muted); text-align: center; }
.empty-state strong { color: var(--ink); }
.empty-state p { margin: 6px 0 0; font-size: 12.5px; }
.empty-state.small { padding: 25px 10px; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.table-subcopy { display: block; max-width: 420px; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.inline-setting-form { display: block; min-width: 210px; }
.compact-info { margin-top: 18px; padding: 18px; }
.compact-info h2 { margin: 0 0 8px; font-size: 17.5px; }
.compact-info p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.65; }

.portal-body { background:
  radial-gradient(circle at 12% 8%, rgba(11,112,234,.1), transparent 28%),
  var(--canvas); }
.portal-topbar { height: 92px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(22px, calc((100vw - 1060px) / 2)); background: #fff; border-bottom: 1px solid var(--line); }
.portal-topbar img { width: 190px; height: 65px; object-fit: contain; }
.portal-topbar span { color: var(--muted); font-size: 13.75px; font-weight: 700; }
.portal-shell { width: min(1060px, calc(100% - 32px)); margin: 32px auto 60px; }
.portal-ticket-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; padding: 24px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow); }
.portal-ticket-card h1 { margin: 5px 0 4px; font-size: clamp(27px, 4vw, 38px); letter-spacing: -.03em; }
.portal-ticket-id { margin: 0; color: var(--blue-700); font-family: monospace; font-size: 13.75px; font-weight: 800; }
.portal-ticket-meta { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 4px -24px -24px; border-top: 1px solid var(--line); }
.portal-ticket-meta div { min-width: 0; padding: 15px 24px; border-right: 1px solid var(--line); }
.portal-ticket-meta div:last-child { border: 0; }
.portal-ticket-meta dt { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.portal-ticket-meta dd { margin: 5px 0 0; overflow-wrap: anywhere; font-size: 12.5px; font-weight: 720; }
.portal-thread { margin-top: 18px; overflow: hidden; }
.portal-history { margin-top: 18px; overflow: hidden; }
.portal-status-list { display: flex; gap: 0; margin: 0; padding: 18px 20px; overflow-x: auto; list-style: none; }
.portal-status-list li { position: relative; min-width: 180px; display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; padding-right: 18px; }
.portal-status-list li::after { content: ""; position: absolute; top: 6px; left: 8px; right: -2px; height: 1px; background: #cfdaea; }
.portal-status-list li:last-child::after { display: none; }
.portal-status-list li > span { z-index: 1; width: 12px; height: 12px; border: 3px solid #3a8deb; border-radius: 50%; background: #fff; }
.portal-status-list li div { z-index: 1; display: flex; flex-direction: column; padding: 0 5px; background: #fff; }
.portal-status-list strong { font-size: 12.5px; }
.portal-status-list time, .portal-status-list small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.portal-messages { display: grid; gap: 12px; padding: 20px; background: #f8fafc; }
.portal-message { max-width: 78%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 4px 13px 13px; background: #fff; }
.portal-message.is-customer { justify-self: end; border-color: #bdd8fa; border-radius: 13px 4px 13px 13px; background: #edf6ff; }
.portal-message-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.portal-message-head strong { font-size: 12.5px; }
.portal-message-head time { color: var(--muted); font-size: 10px; }
.portal-message p { margin: 9px 0 0; color: #42526a; font-size: 13.75px; line-height: 1.65; }
.portal-reply { display: grid; gap: 12px; padding: 20px; border-top: 1px solid var(--line); }
.portal-security-note { margin: 18px 0 0; color: var(--muted); font-size: 11.25px; text-align: center; }
.portal-toasts { top: 108px; }

.auth-body { display: grid; place-items: center; padding: 28px; background:
  radial-gradient(circle at 8% 20%, rgba(31, 139, 241, .11), transparent 28%),
  radial-gradient(circle at 95% 90%, rgba(12, 84, 178, .09), transparent 30%),
  #f4f7fb; }
.auth-shell { width: min(1060px, 100%); min-height: 670px; display: grid; grid-template-columns: 1.08fr .92fr; overflow: hidden; border: 1px solid #dce5f0; border-radius: 19px; background: #fff; box-shadow: var(--shadow-lg); }
.auth-brand-panel { position: relative; display: flex; flex-direction: column; padding: 42px 48px; color: #fff; background:
  radial-gradient(circle at 80% 20%, rgba(76, 177, 255, .25), transparent 30%),
  linear-gradient(145deg, #073f79, #052952 68%, #041f40); overflow: hidden; }
.auth-brand-panel::after { content: ""; position: absolute; width: 310px; height: 310px; right: -140px; bottom: -140px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 42px rgba(255,255,255,.025), 0 0 0 88px rgba(255,255,255,.02); }
.auth-brand { z-index: 1; display: flex; align-items: center; gap: 13px; color: #fff; }
.auth-brand:hover { color: #fff; }
.auth-brand-logo { width: 190px; height: 62px; object-fit: contain; padding: 7px 10px; border-radius: 10px; background: #fff; }
.auth-logo { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 13px; background: rgba(255,255,255,.1); }
.auth-logo svg { width: 33px; }
.auth-brand > span:last-child { display: flex; flex-direction: column; }
.auth-brand strong { font-size: 20px; }
.auth-brand small { margin-top: 4px; color: #bdd5ed; font-size: 11.25px; }
.security-art { position: relative; height: 240px; display: grid; place-items: center; margin-top: 30px; }
.shield { z-index: 2; width: 134px; filter: drop-shadow(0 18px 26px rgba(0,16,43,.34)); }
.shield-orbit { position: absolute; border: 1px solid rgba(120,193,255,.2); border-radius: 50%; }
.orbit-one { width: 210px; height: 210px; }
.orbit-two { width: 280px; height: 280px; border-style: dashed; }
.auth-promise { z-index: 1; text-align: center; }
.auth-promise h1 { max-width: 390px; margin: 0 auto; font-size: 30px; letter-spacing: -.035em; }
.auth-promise p { max-width: 390px; margin: 10px auto 0; color: #bad0e7; font-size: 13.75px; line-height: 1.6; }
.security-points { z-index: 1; display: grid; gap: 11px; margin-top: auto; padding-top: 25px; }
.security-points > span { display: grid; grid-template-columns: 25px 1fr; gap: 9px; align-items: center; }
.security-points b { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; color: #99d1ff; background: rgba(255,255,255,.1); font-size: 12.5px; }
.security-points > span > span { display: flex; flex-direction: column; }
.security-points strong { font-size: 11.25px; }
.security-points small { margin-top: 2px; color: #98b7d4; font-size: 8.75px; }
.auth-form-panel { display: grid; place-items: center; padding: 46px; background:
  linear-gradient(rgba(255,255,255,.94), rgba(255,255,255,.94)),
  radial-gradient(circle at 10% 10%, #e2eefb, transparent 35%); }
.auth-card { width: min(355px, 100%); }
.auth-step { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 28px; color: #768399; font-size: 11.25px; }
.auth-step i { width: 88px; height: 4px; overflow: hidden; border-radius: 99px; background: #e7ecf2; }
.auth-step b { display: block; width: 50%; height: 100%; background: var(--blue-600); }
.auth-step b.complete { width: 100%; }
.auth-card h2 { margin: 5px 0 8px; font-size: 31.25px; letter-spacing: -.035em; }
.auth-intro { margin: 0 0 22px; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.password-field { position: relative; }
.password-field input { padding-right: 45px; }
.password-field button { position: absolute; top: 0; right: 0; height: 48px; padding: 0 11px; border: 0; background: transparent; color: var(--blue-700); font-size: 11.25px; font-weight: 720; cursor: pointer; }
.form-row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.form-row-between a { font-size: 11.25px; font-weight: 700; }
.check-label { display: inline-flex; flex-direction: row; align-items: center; gap: 7px; font-size: 11.25px; cursor: pointer; }
.check-label input { width: 15px; height: 15px; accent-color: var(--blue-600); }
.auth-legal { margin: 17px 0 0; color: #929cac; font-size: 10px; line-height: 1.5; text-align: center; }
.auth-support { align-self: end; margin: 24px 0 0; color: var(--muted); font-size: 11.25px; }
.inline-alert { margin-bottom: 15px; padding: 10px 11px; border: 1px solid; border-radius: 8px; font-size: 11.25px; line-height: 1.45; }
.inline-alert-error { color: #a92e3a; border-color: #edb6bc; background: #fff3f4; }
.inline-alert-success { color: #0d744c; border-color: #aedfc8; background: #effbf5; }
.inline-alert-warning { color: #83540c; border-color: #ebcf98; background: #fff9eb; }
.mfa-art { z-index: 1; display: grid; place-items: center; margin: auto 0; text-align: center; }
.mfa-lock { width: 110px; height: 110px; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,.26); border-radius: 32px; background: linear-gradient(145deg, #1d98f2, #0758be); box-shadow: 0 24px 50px rgba(0,22,57,.3); font-size: 35px; font-weight: 850; letter-spacing: .06em; }
.mfa-art h1 { margin: 30px 0 8px; font-size: 30px; }
.mfa-art p { max-width: 370px; margin: 0; color: #b9d1e8; font-size: 13.75px; line-height: 1.6; }
.otp-inputs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.otp-inputs input { height: 49px; padding: 0; text-align: center; font-size: 23.75px; font-weight: 780; }
.error-body { display: grid; place-items: center; padding: 24px; background: var(--canvas); }
.error-card { width: min(500px, 100%); padding: 44px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-lg); text-align: center; }
.error-code { color: #c6d9ef; font-size: 87.5px; font-weight: 900; letter-spacing: -.08em; }
.error-card h1 { margin: 6px 0 10px; }
.error-card > p:not(.eyebrow) { margin: 0 0 25px; color: var(--muted); line-height: 1.6; }

.sidebar-backdrop { display: none; }

@media (max-width: 1180px) {
  .metric-grid-five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .security-grid, .security-grid-three, .policy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .main-column { grid-column: 1; }
  .sidebar { transform: translateX(-105%); transition: transform .23s ease; }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; z-index: 35; inset: 0; background: rgba(3,22,47,.48); backdrop-filter: blur(2px); }
  body.sidebar-open .sidebar-backdrop { display: block; }
  .mobile-menu { display: inline-grid; }
  .dashboard-grid, .ticket-workspace, .admin-split, .security-bottom-grid, .traceability-grid, .profile-grid { grid-template-columns: 1fr; }
  .ticket-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-panel { grid-column: 1 / -1; }
  .metric-grid, .metric-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-shell { grid-template-columns: .85fr 1fr; }
  .auth-brand-panel { padding: 35px; }
  .auth-form-panel { padding: 35px; }
}

@media (max-width: 720px) {
  .content { padding: 22px 16px 36px; }
  .topbar { height: 74px; padding: 0 14px; }
  .profile-copy { display: none; }
  .profile { padding-left: 8px; }
  .breadcrumb span { display: none; }
  .page-heading { align-items: stretch; flex-direction: column; }
  .page-heading .button { align-self: flex-start; }
  .filter-bar { align-items: stretch; flex-direction: column; }
  .filter-bar label, .ticket-filters .search-field { min-width: 0; }
  .metric-grid, .metric-grid-five, .metric-grid-four { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 122px; }
  .ticket-meta-grid { grid-template-columns: repeat(2, 1fr); }
  .ticket-meta-grid > div { border-bottom: 1px solid var(--line); }
  .ticket-meta-grid > div:nth-child(2n) { border-right: 0; }
  .ticket-meta-grid > div:last-child { grid-column: 1 / -1; }
  .ticket-side { grid-template-columns: 1fr; }
  .history-panel { grid-column: auto; }
  .security-grid, .security-grid-three, .security-grid-two, .policy-grid { grid-template-columns: 1fr; }
  .secret-once { grid-template-columns: 1fr; }
  .app-footer { align-items: center; flex-direction: column; text-align: center; }
  .auth-body { padding: 0; }
  .auth-shell { min-height: 100vh; grid-template-columns: 1fr; border: 0; border-radius: 0; }
  .auth-brand-panel { min-height: 260px; padding: 25px; }
  .security-art { display: none; }
  .auth-promise { margin: auto 0 12px; }
  .security-points { display: none; }
  .auth-form-panel { padding: 36px 24px; }
  .auth-support { display: none; }
  .mfa-art { padding: 35px 0 10px; }
  .mfa-lock { width: 80px; height: 80px; border-radius: 24px; font-size: 27.5px; }
  .mfa-art h1 { margin-top: 18px; font-size: 25px; }
  .admin-editor > .stack-form { inset: 72px 16px auto 16px; width: auto; max-height: calc(100vh - 88px); }
  .form-two-columns { grid-template-columns: 1fr; }
  .admin-search { width: 100%; }
  .admin-search input { min-width: 0; flex: 1; }
  .datatable-toolbar, .datatable-footer { align-items: stretch; flex-direction: column; }
  .datatable-size { width: 100%; }
  .datatable-pagination { justify-content: space-between; }
  .portal-topbar { height: 78px; }
  .portal-topbar img { width: 155px; height: 54px; }
  .portal-topbar span { display: none; }
  .portal-ticket-card { grid-template-columns: 1fr; }
  .portal-ticket-card > .status { justify-self: start; }
  .portal-ticket-meta { grid-template-columns: 1fr 1fr; }
  .portal-ticket-meta div:nth-child(2n) { border-right: 0; }
  .portal-message { max-width: 92%; }
  .form-actions { align-items: stretch; flex-direction: column; }
}

@media (max-width: 460px) {
  .metric-grid, .metric-grid-five, .metric-grid-four { grid-template-columns: 1fr; }
  .ticket-title-row { align-items: flex-start; flex-direction: column; }
  .ticket-meta-grid { grid-template-columns: 1fr; }
  .ticket-meta-grid > div, .ticket-meta-grid > div:nth-child(2n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .ticket-meta-grid > div:last-child { grid-column: auto; }
  .reply-box footer { align-items: stretch; flex-direction: column; }
  .reply-box footer .button { width: 100%; }
}

@media print {
  .sidebar, .topbar, .app-footer, .filter-bar, .reply-box, .button, .toast-stack { display: none !important; }
  .app-shell { display: block; }
  .main-column { display: block; }
  .content { max-width: none; padding: 0; }
  .panel, .metric-card { box-shadow: none; break-inside: avoid; }
}

/* v1.4.1 - ajustes de privacidad y configuración fiscal */
.complainant-cell { display:flex; flex-direction:column; min-width:190px; }
.complainant-cell strong { color:var(--ink); font-size:12px; }
.complainant-cell small { margin-top:3px; color:#7a8799; font-size:10px; }
.closed-ticket-notice { margin:14px; padding:12px 14px; border:1px solid #d8dde4; border-radius:10px; background:#f6f8fa; color:#566172; font-size:12px; }
.toggle-setting { display:inline-flex; align-items:center; gap:8px; font-weight:700; }
.toggle-setting input { width:18px; height:18px; accent-color:var(--blue-600); }
