/* ==========================================================================
   BR1 Employee Portal
   ========================================================================== */

:root {
  --brand: #4f46e5;
  --brand-dark: #4338ca;
  --brand-soft: #eef2ff;

  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-2: #d1d5db;
  --bg: #f6f7f9;
  --surface: #ffffff;

  --ok: #047857;
  --ok-soft: #ecfdf5;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --danger: #b91c1c;
  --danger-soft: #fef2f2;
  --info: #1d4ed8;
  --info-soft: #eff6ff;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 10px 25px rgba(16, 24, 40, .09);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.25; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 1.55rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; }
p { margin: 0 0 .75rem; }

/* ---------- Top bar --------------------------------------------------- */

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 58px;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: .55rem; color: var(--ink); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  display: grid; place-items: center;
  font-size: .82rem; font-weight: 700;
  letter-spacing: -.02em;
}
.brand-text { font-size: 1rem; }
.brand-text em { font-style: normal; color: var(--muted); font-weight: 500; margin-left: .35rem; }

.mainnav { display: flex; gap: .15rem; flex: 1; flex-wrap: wrap; }
.mainnav a {
  color: var(--ink-2);
  padding: .42rem .68rem;
  border-radius: var(--radius-sm);
  font-size: .885rem;
  font-weight: 500;
  white-space: nowrap;
}
.mainnav a:hover { background: #f3f4f6; text-decoration: none; }
.mainnav a.active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }

.usermenu { display: flex; align-items: center; gap: .8rem; font-size: .83rem; color: var(--muted); }
.username { color: var(--ink-2); font-weight: 550; display: inline-flex; align-items: center; gap: .4rem; }
.role-chip {
  background: var(--brand-soft); color: var(--brand-dark);
  border-radius: 99px; padding: .05rem .45rem;
  font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700;
}
.userlink { color: var(--muted); }
.linkbutton {
  background: none; border: 0; padding: 0;
  color: var(--muted); font: inherit; font-size: .83rem; cursor: pointer;
}
.linkbutton:hover { color: var(--danger); text-decoration: underline; }
.inline { display: inline; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink-2); margin: 4px 0; border-radius: 2px; }

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

.page { max-width: 1500px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.page-bare { max-width: 430px; padding-top: 5vh; }

.sitefoot {
  max-width: 1500px; margin: 0 auto;
  padding: 1.25rem; color: var(--muted); font-size: .78rem;
  border-top: 1px solid var(--line);
}
.sitefoot .dot { margin: 0 .4rem; }

.pagehead {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.15rem;
}
.pagehead .sub { color: var(--muted); font-size: .9rem; margin: 0; }
.pagehead-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ---------- Cards ----------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem;
  margin-bottom: 1.15rem;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; flex-wrap: wrap; margin-bottom: .9rem;
}
.card-head h2, .card-head h3 { margin: 0; }
.card-tight { padding: 0; overflow: hidden; }
.card-tight .card-head { padding: 1rem 1.15rem 0; }

.grid { display: grid; gap: 1.15rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* ---------- Stat tiles ------------------------------------------------ */

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .95rem 1.05rem;
  box-shadow: var(--shadow);
}
.stat .label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); font-weight: 650; margin-bottom: .3rem;
}
.stat .value { font-size: 1.65rem; font-weight: 680; letter-spacing: -.02em; line-height: 1.1; }
.stat .hint { font-size: .78rem; color: var(--muted); margin-top: .2rem; }
.stat.accent { border-left: 3px solid var(--brand); }
.stat.good  .value { color: var(--ok); }
.stat.warn  .value { color: var(--warn); }
.stat.bad   .value { color: var(--danger); }

/* ---------- Time clock ------------------------------------------------ */

.clockcard {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-left: 3px solid var(--line-2);
}
.clockcard.is-on { border-left-color: var(--ok); background: linear-gradient(90deg, var(--ok-soft) 0%, var(--surface) 45%); }

.clockcard-status { flex: 1 1 220px; }
.clockcard-status .label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); font-weight: 650;
  display: flex; align-items: center; gap: .45rem;
}
.clockcard-elapsed {
  font-size: 2.1rem; font-weight: 680; letter-spacing: -.02em;
  line-height: 1.15; margin-top: .15rem;
  font-variant-numeric: tabular-nums;
}
.clockcard.is-on .clockcard-elapsed { color: var(--ok); }
.clockcard .hint { font-size: .8rem; color: var(--muted); }

.clockcard-week { flex: 0 1 150px; }
.clockcard-week .label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); font-weight: 650;
}
.clockcard-week .value {
  font-size: 1.65rem; font-weight: 680; letter-spacing: -.02em; line-height: 1.15;
}
.clockcard-week .unit { font-size: .95rem; font-weight: 600; color: var(--muted); margin-left: .1rem; }

.clockcard-action {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: stretch; gap: .5rem;
  min-width: 190px;
}
.clockcard-action .meta { text-align: center; }

.dot-live {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--line-2); display: inline-block; flex: none;
}
.dot-live.on {
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(4, 120, 87, .5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 7px rgba(4, 120, 87, 0); }
  100% { box-shadow: 0 0 0 0 rgba(4, 120, 87, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .dot-live.on { animation: none; }
}

.btn-clock {
  padding: .8rem 1.6rem;
  font-size: 1rem;
  font-weight: 650;
  border-radius: 8px;
  width: 100%;
}
.btn-clock-in  { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-clock-in:hover  { background: #036148; border-color: #036148; }
.btn-clock-out { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-clock-out:hover { background: #991b1b; border-color: #991b1b; }

.row-open   td { background: var(--ok-soft) !important; }
.row-flagged td { background: var(--warn-soft) !important; }

/* ---------- Permission editor ----------------------------------------- */

.permgroup { padding: .9rem 0; border-top: 1px solid var(--line); }
.permgroup:first-of-type { border-top: 0; padding-top: .25rem; }
.permgroup h3 {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); font-weight: 700; margin-bottom: .55rem;
}
.permgroup .checkline label { font-size: .89rem; }
.permgroup .help { font-size: .78rem; color: var(--muted); margin-top: .1rem; }

/* ---------- Checklists ------------------------------------------------ */

.checkitem {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: .7rem 1.15rem;
  border-bottom: 1px solid var(--line);
}
.checkitem:last-child { border-bottom: 0; }
.checkitem:nth-child(even) { background: #fcfcfd; }

.checkitem-label { display: flex; gap: .65rem; align-items: flex-start; flex: 1 1 260px; font-size: .92rem; }
.checkitem-num {
  flex: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: #f3f4f6; color: var(--muted);
  font-size: .72rem; font-weight: 700;
  display: grid; place-items: center;
  margin-top: .05rem;
}
.checkitem-label .help { font-size: .78rem; color: var(--muted); margin-top: .15rem; }
.checkitem-label .req { color: var(--danger); font-weight: 700; }

.checkitem-input { flex: 0 0 auto; min-width: 220px; }
.checkitem-input select, .checkitem-input input[type=text], .checkitem-input input[type=number] {
  min-width: 220px;
}

.passfail { display: flex; gap: .35rem; }
.pf {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 68px; padding: .45rem .6rem;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  font-size: .84rem; font-weight: 600; color: var(--ink-2);
  cursor: pointer; background: #fff;
  user-select: none;
}
.pf input { position: absolute; opacity: 0; width: 0; height: 0; }
.pf:hover { border-color: #9ca3af; }
.pf:has(input:checked) { color: #fff; }
.pf-pass:has(input:checked) { background: var(--ok);     border-color: var(--ok); }
.pf-fail:has(input:checked) { background: var(--danger); border-color: var(--danger); }
.pf-na:has(input:checked)   { background: var(--muted);  border-color: var(--muted); }
.pf:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(79, 70, 229, .25); }

/* Fallback for browsers without :has() — the radio stays visible and usable. */
@supports not selector(:has(*)) {
  .pf input { position: static; opacity: 1; width: auto; height: auto; margin-right: .35rem; }
}

/* ---------- Tables ---------------------------------------------------- */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
table.data th, table.data td {
  text-align: left;
  padding: .55rem .7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.data thead th {
  background: #fafafa;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
  position: sticky; top: 0; z-index: 2;
}
table.data tbody tr:hover { background: #fafbff; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data tfoot td { font-weight: 650; background: #fafafa; border-top: 2px solid var(--line-2); }

.empty {
  padding: 2.25rem 1rem;
  text-align: center;
  color: var(--muted);
}
.empty strong { display: block; color: var(--ink-2); margin-bottom: .25rem; font-size: .95rem; }

/* ---------- Work-days grid -------------------------------------------- */

.gridsheet { font-size: .8rem; border-collapse: separate; border-spacing: 0; }
.gridsheet th, .gridsheet td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: .35rem .4rem; }
.gridsheet thead th {
  background: #fafafa; position: sticky; top: 0; z-index: 3;
  font-size: .68rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); font-weight: 700; text-align: center; white-space: nowrap;
}
.gridsheet thead th.dow { font-size: .62rem; font-weight: 600; text-transform: none; letter-spacing: 0; }
.gridsheet th.namecol, .gridsheet td.namecol {
  position: sticky; left: 0; z-index: 2;
  background: var(--surface);
  min-width: 178px; max-width: 220px;
  text-align: left; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  border-right: 2px solid var(--line-2);
}
.gridsheet thead th.namecol { z-index: 4; background: #fafafa; }
.gridsheet tbody tr:hover td { background: #fafbff; }
.gridsheet tbody tr:hover td.namecol { background: #f5f6ff; }
.gridsheet td.cell { text-align: center; padding: 0; height: 30px; }
.gridsheet td.weekend { background: #fcfcfd; }
.gridsheet td.total { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; background: #fafafa; }

.daycell {
  display: block; width: 100%; height: 100%;
  min-height: 29px; line-height: 29px;
  font-size: .74rem; font-weight: 650;
  color: var(--muted);
  cursor: pointer; border: 0; background: none; font-family: inherit;
}
.daycell:hover { outline: 2px solid var(--brand); outline-offset: -2px; }
.daycell.worked   { background: var(--ok-soft);     color: var(--ok); }
.daycell.vacation { background: var(--info-soft);   color: var(--info); }
.daycell.sick     { background: var(--warn-soft);   color: var(--warn); }
.daycell.holiday  { background: #f5f3ff;            color: #6d28d9; }
.daycell.absent   { background: var(--danger-soft); color: var(--danger); }
.daycell.off      { color: #d1d5db; }

.legend { display: flex; gap: .9rem; flex-wrap: wrap; font-size: .78rem; color: var(--muted); margin-top: .8rem; }
.legend span { display: inline-flex; align-items: center; gap: .35rem; }
.legend i { width: 13px; height: 13px; border-radius: 3px; display: inline-block; border: 1px solid rgba(0,0,0,.06); }

/* ---------- Forms ----------------------------------------------------- */

.field { margin-bottom: .9rem; }
.field label, .lbl {
  display: block;
  font-size: .8rem;
  font-weight: 620;
  color: var(--ink-2);
  margin-bottom: .3rem;
}
.field .help { font-size: .77rem; color: var(--muted); margin-top: .28rem; }

input[type=text], input[type=email], input[type=password], input[type=date],
input[type=number], input[type=search], input[type=tel], input[type=file],
select, textarea {
  width: 100%;
  padding: .5rem .6rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: .9rem;
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .13);
}
input[type=file] { padding: .38rem; background: #fcfcfd; }
textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
textarea.tall { min-height: 320px; font-family: var(--mono); font-size: .84rem; }
select { appearance: auto; }

.formrow { display: flex; gap: .9rem; flex-wrap: wrap; }
.formrow > .field { flex: 1 1 190px; margin-bottom: .9rem; }

.checkline { display: flex; align-items: flex-start; gap: .5rem; margin-bottom: .55rem; font-size: .88rem; }
.checkline input { width: auto; margin-top: .18rem; flex: none; }
.checkline label { margin: 0; font-weight: 500; font-size: .88rem; }

.filterbar {
  display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .85rem 1rem; margin-bottom: 1.15rem;
  box-shadow: var(--shadow);
}
.filterbar .field { margin: 0; }
.filterbar .field input, .filterbar .field select { min-width: 145px; }

/* ---------- Buttons --------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .5rem .9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--ink-2);
  font: inherit; font-size: .875rem; font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { background: #f9fafb; text-decoration: none; border-color: #9ca3af; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-danger { background: #fff; border-color: #fca5a5; color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-ok:hover { background: #036148; border-color: #036148; }
.btn-sm { padding: .3rem .55rem; font-size: .78rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btnrow { display: flex; gap: .55rem; flex-wrap: wrap; align-items: center; }

/* ---------- Badges / pills -------------------------------------------- */

.badge {
  display: inline-block;
  padding: .12rem .5rem;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 650;
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge-ok      { background: var(--ok-soft);     color: var(--ok);     border-color: #a7f3d0; }
.badge-warn    { background: var(--warn-soft);   color: var(--warn);   border-color: #fde68a; }
.badge-danger  { background: var(--danger-soft); color: var(--danger); border-color: #fecaca; }
.badge-info    { background: var(--info-soft);   color: var(--info);   border-color: #bfdbfe; }
.badge-muted   { background: #f3f4f6;            color: var(--muted);  border-color: var(--line); }

/* ---------- Flash / alerts -------------------------------------------- */

.flash-stack { margin-bottom: 1.15rem; display: grid; gap: .5rem; }
.flash {
  padding: .7rem .9rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  border: 1px solid;
}
.flash-success { background: var(--ok-soft);     color: var(--ok);     border-color: #a7f3d0; }
.flash-error   { background: var(--danger-soft); color: var(--danger); border-color: #fecaca; }
.flash-info    { background: var(--info-soft);   color: var(--info);   border-color: #bfdbfe; }
.flash-warning { background: var(--warn-soft);   color: var(--warn);   border-color: #fde68a; }

.notice {
  background: var(--info-soft); border: 1px solid #bfdbfe; color: #1e40af;
  padding: .8rem .95rem; border-radius: var(--radius-sm); font-size: .87rem;
  margin-bottom: 1rem;
}
.notice.warn { background: var(--warn-soft); border-color: #fde68a; color: #92400e; }

/* ---------- Login ----------------------------------------------------- */

.login-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 1.9rem;
}
.login-brand { text-align: center; margin-bottom: 1.5rem; }
.login-brand .mark {
  width: 50px; height: 50px; border-radius: 13px;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  font-size: 1.25rem; font-weight: 700;
  margin: 0 auto .7rem;
}
.login-brand h1 { font-size: 1.3rem; margin-bottom: .15rem; }
.login-brand p { color: var(--muted); font-size: .88rem; margin: 0; }

/* ---------- Policy reader --------------------------------------------- */

.policy-body {
  font-size: .95rem;
  line-height: 1.72;
  color: var(--ink-2);
  max-width: 76ch;
}
.policy-body h2 { margin: 1.6rem 0 .5rem; font-size: 1.08rem; color: var(--ink); }
.policy-body h3 { margin: 1.25rem 0 .4rem; font-size: .97rem; color: var(--ink); }
.policy-body ul, .policy-body ol { margin: 0 0 .9rem; padding-left: 1.4rem; }
.policy-body li { margin-bottom: .35rem; }
.policy-body p { margin-bottom: .9rem; }
.policy-body hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }

.doclist { list-style: none; margin: 0; padding: 0; }
.doclist li {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.doclist li:last-child { border-bottom: 0; }
.doclist .doc-title { font-weight: 620; color: var(--ink); }
.doclist .doc-desc { font-size: .82rem; color: var(--muted); margin-top: .12rem; max-width: 62ch; }

.meta { font-size: .78rem; color: var(--muted); }
.meta-row { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: .8rem; }

/* ---------- Misc ------------------------------------------------------ */

.mono { font-family: var(--mono); font-size: .84rem; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.mt1 { margin-top: 1rem; } .mb1 { margin-bottom: 1rem; }
.mt2 { margin-top: 1.75rem; }
.hr { border: 0; border-top: 1px solid var(--line); margin: 1.25rem 0; }

.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: 1.15rem; flex-wrap: wrap; }
.tabs a {
  padding: .5rem .85rem; font-size: .88rem; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs a:hover { color: var(--ink-2); text-decoration: none; }
.tabs a.active { color: var(--brand-dark); border-bottom-color: var(--brand); }

/* ---------- Responsive ------------------------------------------------ */

@media (max-width: 900px) {
  .nav-toggle { display: block; order: 2; margin-left: auto; }
  .mainnav {
    display: none; order: 4; width: 100%;
    flex-direction: column; gap: 0;
    padding: .5rem 0 .75rem; border-top: 1px solid var(--line);
  }
  .mainnav.open { display: flex; }
  .mainnav a { padding: .6rem .4rem; }
  .usermenu { order: 3; width: 100%; padding-bottom: .7rem; border-top: 1px solid var(--line); padding-top: .7rem; }
  .topbar-inner { padding: 0 1rem; }
  .page { padding: 1rem .85rem 2.5rem; }
}

@media print {
  .topbar, .sitefoot, .filterbar, .pagehead-actions, .btn, .legend { display: none !important; }
  body { background: #fff; font-size: 11px; }
  .card { border: 0; box-shadow: none; padding: 0; }
  .page { max-width: none; padding: 0; }
  table.data, .gridsheet { font-size: 10px; }
}
