:root {
  --page: #dfe3e7;
  --workspace: #f3f4f4;
  --paper: #ffffff;
  --paper-2: #f7f8f8;
  --sidebar: #232b34;
  --sidebar-deep: #1d242c;
  --sidebar-head: #155a83;
  --teal: #1c97a3;
  --teal-dark: #167784;
  --teal-soft: #d9eef1;
  --blue: #176698;
  --orange: #f6a12a;
  --orange-dark: #dc8613;
  --ink: #26313b;
  --muted: #6b747d;
  --line: #d5dadd;
  --line-dark: #303a43;
  --success: #218c5c;
  --danger: #b7324b;
  --shadow: 0 18px 42px rgba(41, 49, 56, 0.18);
  --radius: 4px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.75), transparent 24%),
    linear-gradient(135deg, #f6f6f5 0%, var(--page) 100%);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.hidden {
  display: none !important;
}

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

h1 {
  color: var(--ink);
  font-size: 22px;
  letter-spacing: 0;
}

h2 {
  color: var(--ink);
  font-size: 16px;
  letter-spacing: 0;
}

.login-screen,
.install-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.login-screen {
  background:
    linear-gradient(rgba(243, 244, 244, 0.9), rgba(225, 229, 232, 0.94)),
    radial-gradient(circle at 78% 16%, rgba(28, 151, 163, 0.24), transparent 24%),
    var(--page);
}

.login-card,
.install-card {
  width: min(560px, 100%);
  display: grid;
  gap: 15px;
  padding: 28px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.install-card {
  width: min(980px, 100%);
}

.brand-row,
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-row p,
.login-card small,
.install-notes p,
.muted-copy {
  color: var(--muted);
  line-height: 1.45;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), #f36b3c);
  border-radius: var(--radius);
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  padding: 5px;
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
}

.login-card label,
.field label {
  color: inherit;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  padding: 10px 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd6d9;
  border-radius: var(--radius);
}

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

input::placeholder,
textarea::placeholder {
  color: #9ba3aa;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(28, 151, 163, 0.22);
  border-color: var(--teal);
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  width: min(1560px, calc(100vw - 26px));
  min-height: calc(100vh - 26px);
  margin: 13px auto;
  background: var(--workspace);
  border: 1px solid #bfc5c8;
  box-shadow: var(--shadow);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
  color: #fff;
  background: var(--sidebar);
  border-right: 1px solid #151a20;
  overflow: auto;
}

.brand {
  min-height: 86px;
  padding: 18px 20px;
  background: var(--sidebar-head);
}

.brand-name {
  max-width: 160px;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.15;
}

.brand-sub {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.brand-version {
  display: inline-block;
  margin-top: 7px;
  padding: 3px 7px;
  color: #d9f3f6;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
}

.nav {
  display: grid;
  padding: 12px 0;
}

.nav-item,
.ghost-button,
.primary-button,
.secondary-button,
.tab-button {
  cursor: pointer;
  font-weight: 900;
}

.nav-item {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  color: #c2cad1;
  text-align: left;
  background: transparent;
  border: 0;
  border-left: 4px solid transparent;
}

.nav-item span {
  min-width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  color: #f0f5f7;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  font-size: 9px;
  font-weight: 900;
}

.nav-item:hover,
.nav-item.active {
  color: #fff;
  background: var(--sidebar-deep);
  border-left-color: var(--orange);
}

.nav-item.active span {
  background: var(--teal);
}

.sidebar-footer {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding: 14px 16px 18px;
  background: var(--sidebar-deep);
  border-top: 1px solid var(--line-dark);
}

.ghost-button,
.primary-button,
.secondary-button,
.link-button {
  min-height: 38px;
  padding: 9px 12px;
  border-radius: var(--radius);
}

.ghost-button {
  color: #d4dbe1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.primary-button {
  color: #fff;
  background: var(--orange);
  border: 1px solid var(--orange-dark);
}

.primary-button:hover {
  background: var(--orange-dark);
}

.secondary-button {
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd6d9;
}

.secondary-button:hover {
  background: #eef7f8;
  border-color: var(--teal);
}

.danger-button {
  color: #fff;
  background: var(--danger);
  border-color: #8f2438;
}

.danger-button:hover {
  background: #9d263d;
  border-color: #7f1e31;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.main {
  min-width: 0;
  padding: 0 18px 18px;
  background: var(--workspace);
  overflow: auto;
}

.topbar {
  min-height: 62px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 0 -18px 18px;
  padding: 10px 18px;
  color: var(--ink);
  background: linear-gradient(#f8f9f9, #e6e9eb);
  border-bottom: 1px solid #c8cfd3;
}

.topbar > div:first-child {
  display: grid;
  gap: 4px;
}

.topbar p {
  color: var(--muted);
  font-size: 12px;
}

.status-strip {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.status-pill {
  min-width: 118px;
  padding: 8px 11px;
  background: #fff;
  border: 1px solid #cfd6d9;
  border-radius: var(--radius);
}

.status-pill span,
.deploy-info span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 900;
}

.status-pill strong,
.deploy-info strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 11px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.kpi-card {
  min-height: 96px;
  position: relative;
  overflow: hidden;
  padding: 16px 18px;
  color: #fff;
  background: linear-gradient(135deg, #ff8d45 0%, #ed6a72 52%, #d77ada 100%);
  border-radius: var(--radius);
  box-shadow: 0 10px 22px rgba(60, 68, 76, 0.18);
}

.kpi-card::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.kpi-card:nth-child(2n) {
  background: linear-gradient(135deg, #31b87d 0%, #1fb8b2 52%, #48bdd0 100%);
}

.kpi-card:nth-child(3n) {
  background: linear-gradient(135deg, #1e73a7 0%, #1c97a3 100%);
}

.kpi-card:nth-child(4n) {
  background: linear-gradient(135deg, #2c3641 0%, #42515e 100%);
}

.kpi-label {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.kpi-value {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  color: #fff;
  font-size: 25px;
  font-weight: 900;
  word-break: break-word;
}

.dashboard-grid,
.work-grid,
.report-grid,
.admin-grid,
.settings-grid {
  display: grid;
  gap: 16px;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
  margin-bottom: 16px;
}

.work-grid,
.admin-grid,
.settings-grid {
  grid-template-columns: minmax(330px, 420px) minmax(0, 1fr);
}

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

.panel {
  min-width: 0;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 22px rgba(60, 68, 76, 0.08);
}

.panel.wide {
  min-height: 330px;
}

.form-panel {
  color: #fff;
  background: linear-gradient(180deg, #249dab, #1c8796);
  border-color: #187986;
}

.table-panel {
  background: #fff;
}

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

.form-panel .panel-head h2,
.form-panel h2,
.form-panel h3 {
  color: #fff;
}

.form-grid,
.field {
  display: grid;
}

.form-grid {
  gap: 12px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.form-actions .primary-button,
.form-actions .secondary-button {
  flex: 1 1 150px;
}

.field {
  gap: 7px;
}

.field small {
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
  line-height: 1.35;
}

.form-panel input,
.form-panel select,
.form-panel textarea {
  color: var(--ink);
  background: #f4f7f8;
  border-color: rgba(255, 255, 255, 0.52);
}

.pos-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
}

.pos-summary div {
  display: grid;
  gap: 5px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}

.pos-summary span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.pos-summary strong {
  color: #fff;
  font-size: 16px;
}

.pos-mode .work-grid {
  grid-template-columns: minmax(680px, 1.25fr) minmax(360px, 0.75fr);
  align-items: start;
}

.pos-terminal {
  display: grid;
  gap: 14px;
}

.pos-hero,
.pos-last-sale,
.pos-layout,
.pos-checkout,
.pos-fields,
.pos-calc-display,
.pos-targets,
.pos-keypad,
.payment-buttons,
.checkout-buttons,
.pos-client-strip,
.pos-service-grid {
  display: grid;
  gap: 12px;
}

.pos-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  border-radius: var(--radius);
}

.pos-hero span,
.pos-section-head span,
.pos-last-sale span,
.pos-calc-display span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.pos-hero strong {
  display: block;
  margin-top: 5px;
  font-size: 34px;
  line-height: 1;
}

.pos-hero small {
  display: inline-block;
  margin-top: 9px;
  padding: 5px 9px;
  color: #fff;
  background: rgba(0, 0, 0, 0.16);
  border-radius: 999px;
  font-weight: 900;
}

.pos-hero-actions,
.checkout-buttons,
.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.pos-last-sale {
  grid-template-columns: minmax(120px, 1fr) auto auto auto;
  align-items: center;
  padding: 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.1);
  border-radius: var(--radius);
}

.pos-layout,
.pos-checkout {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
}

.pos-panel {
  min-width: 0;
  padding: 16px;
  color: #fff;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
}

.pos-right,
.pos-total-panel {
  background: rgba(0, 0, 0, 0.16);
}

.pos-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.pos-section-head h3 {
  margin: 0;
  color: #fff;
  font-size: 16px;
}

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

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

.pos-wide {
  grid-column: 1 / -1;
}

.pos-client-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.pos-client-strip button,
.pos-service-card,
.pos-targets button,
.payment-buttons button,
.calc-key {
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 900;
}

.pos-client-strip button {
  display: grid;
  gap: 5px;
  min-height: 72px;
  padding: 12px;
  text-align: left;
  background: rgba(255, 255, 255, 0.16);
}

.pos-client-strip button span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
  font-weight: 700;
}

.pos-service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.pos-service-card {
  display: grid;
  gap: 6px;
  min-height: 104px;
  padding: 14px;
  text-align: left;
  background: rgba(255, 255, 255, 0.16);
}

.pos-service-card:nth-child(3n) {
  background: var(--orange);
}

.pos-service-card:nth-child(4n) {
  background: var(--blue);
}

.pos-service-card span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 10px;
  text-transform: uppercase;
}

.pos-service-card strong {
  font-size: 15px;
}

.pos-service-card em {
  color: #fff;
  font-style: normal;
  font-size: 13px;
}

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

.pos-calc-display div {
  min-height: 74px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}

.pos-calc-display strong {
  display: block;
  margin-top: 8px;
  font-size: 17px;
  word-break: break-word;
}

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

.pos-targets button,
.payment-buttons button {
  min-height: 42px;
  padding: 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.pos-targets button.active,
.payment-buttons button.active {
  background: var(--orange);
  border-color: var(--orange-dark);
}

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

.calc-key {
  min-height: 56px;
  font-size: 18px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.calc-soft {
  background: rgba(0, 0, 0, 0.24);
}

.calc-accent {
  background: var(--orange);
}

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

.pos-total-panel textarea {
  margin-top: 12px;
  min-height: 90px;
}

.checkout-buttons {
  margin-top: 12px;
}

.checkout-buttons .primary-button,
.checkout-buttons .secondary-button {
  flex: 1 1 160px;
}

.table-tools {
  display: flex;
  gap: 8px;
  min-width: 320px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.table-tools input {
  max-width: 240px;
  background: #fff;
}

.data-table,
.mini-table {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 11px 12px;
  color: var(--ink);
  border-bottom: 1px solid #e3e7e9;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
  font-size: 13px;
}

th {
  color: #5a636b;
  background: #edf1f2;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 900;
}

tbody tr:hover td {
  background: #f4fbfc;
}

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

.row-actions .secondary-button {
  min-height: 32px;
  padding: 7px 10px;
  white-space: nowrap;
}

.chart {
  min-height: 290px;
  background: #fff;
}

.chart svg {
  width: 100%;
  height: 290px;
  display: block;
}

.axis-label {
  fill: #66727c;
  font-size: 10px;
}

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

.bar-row {
  display: grid;
  grid-template-columns: minmax(90px, 170px) minmax(0, 1fr) 82px;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  font-size: 12px;
}

.bar-track {
  height: 9px;
  overflow: hidden;
  background: #e1e7e9;
  border-radius: 999px;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  border-radius: inherit;
}

.report-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  margin-bottom: 16px;
  color: #fff;
  background: var(--teal);
  border-radius: var(--radius);
}

.report-toolbar h2 {
  color: #fff;
}

.report-toolbar p {
  color: rgba(255, 255, 255, 0.78);
  margin-top: 6px;
}

.report-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tab-button {
  min-height: 38px;
  padding: 9px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd6d9;
  border-radius: var(--radius);
}

.tab-button.active {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal-dark);
}

.report-tab {
  display: none;
}

.report-tab.active {
  display: block;
}

.deploy-info {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.deploy-info div,
.success-box,
.error-box,
.install-notes {
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.success-box {
  color: #135b3e;
  background: #dcf2e6;
  border-color: #b7dfc9;
}

.error-box {
  color: #84233a;
  background: #fde5ea;
  border-color: #f2bdc9;
}

.install-notes {
  display: grid;
  gap: 8px;
}

.role-panel {
  margin-top: 16px;
}

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

.role-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.role-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.role-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}

.role-head span,
.role-card p {
  color: var(--muted);
  font-size: 12px;
}

.permission-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.settings-preview {
  display: grid;
  gap: 14px;
}

.settings-logo {
  max-width: 200px;
  max-height: 110px;
  object-fit: contain;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.settings-logo-placeholder {
  width: 200px;
  height: 96px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.settings-info {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.settings-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toast {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 20;
  max-width: 380px;
  padding: 13px 15px;
  color: #fff;
  background: var(--sidebar);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.loading {
  cursor: progress;
}

code {
  padding: 2px 6px;
  background: #edf1f2;
  border-radius: 3px;
}

.invoice-page,
.estimate-page,
.receipt-page {
  color: #111827;
  background: #fff;
}

.invoice-page h1,
.invoice-page h2,
.estimate-page h1,
.estimate-page h2,
.receipt-page h1,
.receipt-page h2 {
  color: #111827;
}

.invoice-page th,
.estimate-page th {
  color: #374151;
  background: #f3f4f6;
}

.invoice-page td,
.estimate-page td {
  color: #111827;
  border-bottom-color: #e5e7eb;
}

@media print {
  body {
    background: #fff;
  }

  .sidebar,
  .topbar,
  .report-toolbar,
  .report-tabs,
  .kpi-grid,
  .toast {
    display: none !important;
  }

  .app-shell,
  .main {
    display: block;
    width: 100%;
    min-height: auto;
    margin: 0;
    padding: 0;
    box-shadow: none;
    border: 0;
    background: #fff;
  }

  .panel {
    break-inside: avoid;
    box-shadow: none;
  }
}

@media (max-width: 1180px) {
  .app-shell {
    width: 100%;
    margin: 0;
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
  }

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

  .kpi-grid,
  .dashboard-grid,
  .work-grid,
  .pos-mode .work-grid,
  .pos-layout,
  .pos-checkout,
  .report-grid,
  .admin-grid,
  .settings-grid,
  .role-grid,
  .deploy-info {
    grid-template-columns: 1fr;
  }

  .pos-hero,
  .pos-last-sale,
  .pos-fields,
  .pos-fields.compact,
  .pos-client-strip,
  .pos-service-grid,
  .payment-buttons {
    grid-template-columns: 1fr;
  }

  .topbar,
  .report-toolbar,
  .panel-head,
  .row-actions {
    display: grid;
  }

  .main {
    padding: 0 12px 18px;
  }

  .topbar {
    margin: 0 -12px 14px;
  }
}
