/* KAHAANI licence portal. The layout follows the DineDesk portal; the colours are KAHAANI's own -
   wine from the app's buttons, gold from the logo, the warm paper background the shop sees. */

:root {
  color-scheme: light;
  --wine: #9c3d54;
  --wine-hover: #883449;
  --wine-deep: #5a2331;
  --wine-night: #3f1822;
  --wine-wash: #fbf2f4;
  --wine-line: #ecc6d0;
  --gold: #b8860b;
  --gold-bright: #e8c07a;
  --gold-soft: #f5ead2;
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-alt: #f8f4ee;
  --text: #2c2620;
  --muted: #7a7166;
  --border: #e6ddd0;
  --border-strong: #d6c9b6;
  --success: #1f7a4d; --success-bg: #e8f5ee; --success-border: #b9dcc7;
  --warning: #a35a06; --warning-bg: #fdf1e3; --warning-border: #f3cf9f;
  --danger: #b3261e; --danger-bg: #fdecea; --danger-border: #eeb9b4;
  --info: #1f5f99; --info-bg: #eef5fb; --info-border: #bcd6ec;
  --neutral: #5d554b; --neutral-bg: #f3ede4; --neutral-border: #dcd1c1;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(44 38 32 / 6%), 0 1px 3px rgb(44 38 32 / 8%);
  --shadow-lg: 0 24px 56px rgb(63 24 34 / 24%);
  --focus: 0 0 0 3px rgb(156 61 84 / 28%);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; background: var(--bg); }
body { min-width: 320px; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
a { color: var(--wine); }
code, .mono { font-family: "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace; font-size: 0.93em; }
small { font-size: 12.5px; }
.muted { color: var(--muted); }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- shell ---------- */

.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px;
  padding: 18px 14px; background: linear-gradient(180deg, var(--wine-deep) 0%, var(--wine-night) 100%); color: #fff; z-index: 40;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; padding: 4px 6px; }
.brand-logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; flex: none; }
.brand-logo img { width: 30px; height: 34px; object-fit: contain; }
.brand-text { display: grid; }
.brand-text strong { font-size: 17px; letter-spacing: 0.06em; }
.brand-text small { color: var(--gold-bright); font-size: 12px; }
.new-shop { justify-content: center; }
.nav { display: grid; gap: 2px; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  color: rgb(255 255 255 / 80%); text-decoration: none; font-weight: 600;
}
.nav a:hover { background: rgb(255 255 255 / 7%); color: #fff; }
.nav a.active { background: rgb(255 255 255 / 12%); color: #fff; }
.nav a.active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--gold-bright); }
.nav a:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 1px; }
.sidebar-foot { margin-top: auto; display: grid; gap: 2px; padding: 12px; border-radius: 10px; background: rgb(255 255 255 / 7%); font-size: 12px; overflow-wrap: anywhere; }
.sidebar-foot .secure { color: var(--gold-bright); }
.sidebar-foot .version { color: rgb(255 255 255 / 60%); }
.sidebar-foot .sign-out { justify-self: start; margin-top: 6px; color: #fff; background: rgb(255 255 255 / 10%); }
.sidebar-foot .sign-out:hover { background: rgb(255 255 255 / 18%); }
.sidebar-scrim { position: fixed; inset: 0; background: rgb(63 24 34 / 45%); z-index: 35; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px;
  padding: 10px 28px; background: rgb(250 247 242 / 92%); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.topbar .menu-toggle { display: none; }
.search { position: relative; flex: 1; max-width: 560px; }
.search input { background: var(--surface); }
.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; max-height: 420px; overflow: auto; z-index: 50;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px;
}
.search-item { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--text); text-decoration: none; }
.search-item:hover, .search-item:focus { background: var(--wine-wash); outline: none; }
.search-item small { grid-column: 2; color: var(--muted); }
.search-kind { grid-row: span 2; align-self: center; font-size: 11px; font-weight: 700; color: var(--wine); background: var(--wine-wash); border-radius: 6px; padding: 3px 7px; }
.search-empty { padding: 12px; color: var(--muted); }
.connection { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.connection::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.connection[data-state="connected"]::before { background: #2fa36b; }
.connection[data-state="error"] { color: var(--danger); }
.connection[data-state="error"]::before { background: var(--danger); }
.session-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 28px 0; padding: 12px 16px; border-radius: var(--radius); background: var(--danger-bg); border: 1px solid var(--danger-border); color: var(--danger); font-weight: 600; }

.view { width: 100%; max-width: 1440px; margin: 0 auto; padding: 24px 28px 72px; outline: none; }
.page { display: grid; gap: 18px; }

/* ---------- sign-in (only while Cloudflare Access is not in front) ---------- */

.gate { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(160deg, var(--wine-deep), var(--wine-night)); }
.gate-card { width: min(420px, 100%); display: grid; gap: 14px; padding: 26px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-lg); }
.gate-card .brand { color: var(--text); padding: 0; }
.gate-card .brand-logo { background: var(--wine-wash); }
.gate-card .brand-text small { color: var(--gold); }

/* ---------- page furniture ---------- */

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-head > div:first-child { display: grid; gap: 5px; min-width: 0; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 1320px) { .stats { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.stat {
  display: grid; gap: 4px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow); color: var(--text); text-decoration: none; position: relative; overflow: hidden;
}
a.stat:hover { border-color: var(--border-strong); box-shadow: 0 6px 18px rgb(44 38 32 / 9%); }
a.stat:focus-visible { outline: none; box-shadow: var(--focus); }
.stat::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: transparent; }
.stat.tone-success::after { background: #2fa36b; }
.stat.tone-warning::after { background: #e08a1e; }
.stat.tone-danger::after { background: #d9463e; }
.stat-head { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: 13px; }
.stat-head .icon { color: var(--wine); width: 17px; height: 17px; }
.stat-value { font-size: 26px; line-height: 1.15; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.stat small { color: var(--muted); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; display: grid; gap: 14px; min-width: 0; }
.card-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-head > div:first-child { display: grid; gap: 3px; min-width: 0; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.columns { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.column-main, .column-side { display: grid; gap: 18px; min-width: 0; }

/* ---------- controls ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 8px 14px;
  border-radius: var(--radius-sm); border: 1px solid transparent; font: inherit; font-weight: 650; line-height: 1.2;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s;
}
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn .icon { width: 17px; height: 17px; }
.btn-sm { min-height: 32px; padding: 5px 10px; font-size: 13px; }
.btn-primary { background: var(--wine); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--wine-hover); }
.btn-secondary { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-secondary:hover:not(:disabled) { background: var(--surface-alt); }
.btn-ghost { background: transparent; color: var(--wine); }
.btn-ghost:hover:not(:disabled) { background: var(--wine-wash); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #8f1f18; }
.btn-gold { background: var(--gold-bright); color: var(--wine-night); }
.btn-gold:hover { background: #f0cd8e; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.icon-btn:hover { background: rgb(44 38 32 / 6%); }
.icon-btn:focus-visible { outline: none; box-shadow: var(--focus); }
.text-link { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

input, select {
  width: 100%; min-height: 40px; padding: 8px 11px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font: inherit;
}
input:focus, select:focus { outline: none; border-color: var(--wine); box-shadow: var(--focus); }
input[type="checkbox"], input[type="radio"] { width: 17px; height: 17px; min-height: 0; margin: 0; accent-color: var(--wine); flex: none; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; border: 1px solid; font-size: 12px; font-weight: 700; white-space: nowrap; line-height: 1.5; vertical-align: middle; }
.tone-success.badge { color: var(--success); background: var(--success-bg); border-color: var(--success-border); }
.tone-warning.badge { color: var(--warning); background: var(--warning-bg); border-color: var(--warning-border); }
.tone-danger.badge { color: var(--danger); background: var(--danger-bg); border-color: var(--danger-border); }
.tone-info.badge { color: var(--info); background: var(--info-bg); border-color: var(--info-border); }
.tone-neutral.badge { color: var(--neutral); background: var(--neutral-bg); border-color: var(--neutral-border); }

.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid; }
.notice > div { display: grid; gap: 3px; min-width: 0; }
.notice.tone-info { color: #174a78; background: var(--info-bg); border-color: var(--info-border); }
.notice.tone-warning { color: #7d4405; background: var(--warning-bg); border-color: var(--warning-border); }
.notice.tone-danger { color: #8f1f18; background: var(--danger-bg); border-color: var(--danger-border); }

.empty { display: grid; justify-items: center; gap: 6px; padding: 26px 16px; text-align: center; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface-alt); }
.empty p { max-width: 520px; color: var(--muted); }
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 48px 12px; color: var(--muted); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-strong); border-top-color: var(--wine); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- tables and lists ---------- */

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.toolbar select { width: auto; min-width: 190px; }
.toolbar .count { margin-left: auto; }
.toolbar-search { position: relative; flex: 1 1 260px; max-width: 420px; }
.toolbar-search .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 16px; height: 16px; }
.toolbar-search input { padding-left: 34px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; }
table.data th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--muted); background: var(--surface-alt); padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tr.clickable { cursor: pointer; }
table.data tr.clickable:hover, table.data tr.clickable:focus { background: #fcf8f3; outline: none; }
table.data tr.dimmed td { color: var(--muted); }
table.data tr.sub td { background: var(--surface-alt); }
table.data tr.sub > td { padding: 12px 14px 16px; }
table.data tr.highlight td { background: var(--gold-soft); }
table.data .actions-cell { text-align: right; width: 1%; white-space: nowrap; }
table.data .actions-cell .row-actions { flex-wrap: nowrap; }
.stacked { display: grid; gap: 2px; min-width: 0; }
/* A licence code or a date broken over two lines is harder to read out over the phone. */
table.data td strong.mono, table.data td .stacked > span:first-child { white-space: nowrap; }
.row-title { font-weight: 700; color: var(--text); text-decoration: none; }
.row-title:hover { color: var(--wine); text-decoration: underline; }

.simple-list { list-style: none; margin: 0; padding: 0; display: grid; }
.simple-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.simple-list li:last-child { border-bottom: 0; }
.simple-list li > div:first-child { display: grid; min-width: 0; }
.list-end { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.attention { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.attention-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.attention-item.severity-critical { border-color: var(--danger-border); background: #fffaf9; }
.attention-item.severity-warning { border-color: var(--warning-border); }
.severity-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--info); }
.severity-critical .severity-dot { background: #d9463e; box-shadow: 0 0 0 4px var(--danger-bg); }
.severity-warning .severity-dot { background: #e08a1e; }
.attention-text { display: grid; gap: 2px; min-width: 0; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { position: relative; padding: 10px 0 10px 20px; border-left: 2px solid var(--border); margin-left: 5px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--wine); }
.timeline li.from-shop::before { border-color: var(--gold); }
.timeline li > div { display: grid; gap: 2px; }
.timeline.compact li { padding-top: 8px; padding-bottom: 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 2px 9px; border-radius: 999px; background: var(--wine-wash); color: var(--wine); font-size: 12px; font-weight: 600; }
.meter { height: 6px; width: 90px; border-radius: 999px; background: var(--neutral-bg); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: inherit; background: var(--wine); }
.meter span.full { background: #e08a1e; }

/* ---------- toasts ---------- */

.toasts { position: fixed; inset: 16px 16px auto auto; margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; z-index: 1000; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); }
.toasts:not(:popover-open) { display: none; }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); background: var(--wine-night); color: #fff; box-shadow: var(--shadow-lg); animation: toast-in .2s ease-out; transition: opacity .35s, transform .35s; }
.toast.tone-danger { background: #7a1f19; }
.toast .icon { margin-top: 1px; color: var(--gold-bright); }
.toast.leaving { opacity: 0; transform: translateY(-6px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- dialogs and forms ---------- */

dialog.dialog { padding: 0; border: 0; border-radius: 16px; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: var(--shadow-lg); color: var(--text); background: var(--surface); overflow: hidden; }
dialog.dialog[open] { display: flex; flex-direction: column; }
dialog.dialog::backdrop { background: rgb(63 24 34 / 55%); backdrop-filter: blur(2px); }
.dialog-header { display: flex; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; border-bottom: 1px solid var(--border); }
.dialog-header > div { display: grid; gap: 4px; }
.dialog-header p { color: var(--muted); }
.dialog-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.dialog-body { padding: 16px 20px; overflow-y: auto; display: grid; gap: 14px; flex: 1; min-height: 0; align-content: start; }
.dialog-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--border); background: var(--surface-alt); }
.form-error { margin: 0 20px 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--danger-bg); border: 1px solid var(--danger-border); color: #8f1f18; font-weight: 600; }
.gate-card .form-error { margin: 0; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.form-grid .wide { grid-column: 1 / -1; }
.field { display: grid; gap: 5px; align-content: start; min-width: 0; }
.field label { font-weight: 650; font-size: 13px; color: #3d352c; }
.hint { color: var(--muted); }
.consequences { margin: 0; padding: 12px 14px 12px 32px; display: grid; gap: 4px; background: var(--surface-alt); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.quick-picks { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 4px 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.module { display: flex; gap: 8px; align-items: center; padding: 4px 2px; cursor: pointer; }
.module.everything { grid-column: 1 / -1; font-weight: 700; padding-bottom: 8px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.pick { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; }
.pick:has(input:checked) { border-color: var(--wine); background: var(--wine-wash); }

.result { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 8px 4px; }
.code-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 14px 18px; border-radius: var(--radius); background: var(--wine-night); color: #fff; width: 100%; }
.code-box code { font-size: 24px; letter-spacing: .08em; font-weight: 700; user-select: all; }
.code-box .btn-ghost { color: var(--gold-bright); }
.code-box .btn-ghost:hover { background: rgb(255 255 255 / 10%); }
.result .notice { text-align: left; width: 100%; }

/* ---------- smaller screens ---------- */

@media (max-width: 1180px) {
  .columns { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; transform: translateX(-100%); transition: transform .2s ease; visibility: hidden; }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); visibility: visible; }
  .topbar .menu-toggle { display: inline-grid; }
  .topbar { padding: 8px 14px; }
  .view { padding: 18px 14px 64px; }
  .connection { display: none; }
  .session-banner { margin: 12px 14px 0; }
}

@media (max-width: 720px) {
  h1 { font-size: 22px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 12px; }
  .stat-value { font-size: 21px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .toolbar select { flex: 1 1 100%; }
  .toolbar-search { max-width: none; }
  .toolbar .count { margin-left: 0; }
  .attention-item { grid-template-columns: auto 1fr; }
  .attention-item .btn { grid-column: 2; justify-self: start; }
  .table-wrap { border: 0; background: transparent; overflow: visible; }
  table.data thead { display: none; }
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data tr { margin-bottom: 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 6px 0; }
  table.data td { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; border-bottom: 0; padding: 6px 14px; text-align: right; }
  table.data td::before { content: attr(data-label); flex: none; color: var(--muted); font-size: 12px; font-weight: 650; text-align: left; }
  table.data td[data-label=""]::before { content: none; }
  table.data .stacked { justify-items: end; }
  table.data .actions-cell { width: 100%; text-align: left; }
  table.data .row-actions { justify-content: flex-start; }
  dialog.dialog { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100%; border-radius: 0; margin: 0; }
}
