/* ==========================================================================
   Suong Mai — Admin console (FRONTEND-ONLY redesign).
   Khung: sidebar 240/64 + topbar + content. Chi CSS transition .2s —
   KHONG GSAP / sm-motion.js o admin.
   Token ke thua 100% site-theme.css, card admin bo 12px.
   ========================================================================== */

.admin { background: var(--cream); }
.admin .visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.admin-muted { color: var(--muted); }
.admin .card { border-radius: 12px; }

/* ---------- 1. Cong dang nhap ---------- */
.admin-login {
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 32px 20px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(184, 135, 91, .18), transparent 60%),
    var(--cream);
}
.admin-login-card { width: min(440px, 100%); padding: 32px; }
.admin-login-card h1 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  margin: 0 0 .4em;
}
.admin-login-card .eyebrow { margin-bottom: .5rem; }
.admin-login-back { margin-top: 1.2rem; }

/* Monogram SM: dung cho avatar mac dinh + logo console (CSS, khong anh). */
.admin-monogram {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 12px;
  background: var(--forest); color: var(--cream);
  font-family: var(--serif); font-weight: 700; font-size: 1rem;
}
.admin-monogram-lg { width: 52px; height: 52px; font-size: 1.3rem; margin-bottom: 1rem; }

/* ---------- 2. Khung shell ---------- */
.admin-shell { display: flex; min-height: 100svh; }
.admin-sidebar {
  position: sticky; top: 0; z-index: 60;
  width: 240px; flex-shrink: 0;
  height: 100svh; max-height: 100svh;
  display: flex; flex-direction: column;
  padding: 20px 14px;
  background: var(--forest-deep); color: var(--cream);
  transition: width .2s ease;
}
.admin-shell.is-collapsed .admin-sidebar { width: 64px; padding-inline: 10px; }
.admin-brand { display: flex; align-items: center; gap: 12px; padding: 0 6px 18px; }
.admin-brand-text { display: flex; flex-direction: column; line-height: 1.25; white-space: nowrap; }
.admin-brand-text strong { font-family: var(--serif); font-size: 1.1rem; }
.admin-brand-text small { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.admin-shell.is-collapsed .admin-brand-text { display: none; }
.admin-shell.is-collapsed .admin-brand { justify-content: center; padding-inline: 0; }

.admin-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; overflow-y: auto; }
.admin-nav-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 10px 12px;
  border: 0; border-left: 3px solid transparent; border-radius: 8px;
  background: transparent; color: var(--cream);
  font-size: .92rem; font-weight: 600; text-align: left;
  transition: background-color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.admin-nav-item svg { width: 20px; height: 20px; flex-shrink: 0; opacity: .85; }
.admin-nav-item:hover { background: rgba(251, 249, 244, .08); }
.admin-nav-item.is-active { background: rgba(184, 135, 91, .18); border-left-color: var(--clay); }
.admin-nav-item span { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.admin-shell.is-collapsed .admin-nav-item { justify-content: center; padding-inline: 0; }
.admin-shell.is-collapsed .admin-nav-item span { display: none; }
.admin-nav-count {
  font-style: normal; font-size: .72rem; font-weight: 700;
  min-width: 22px; height: 22px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--clay); color: var(--forest-deep);
}
.admin-nav-count.is-alert { background: var(--danger); color: #fff; }
.admin-shell.is-collapsed .admin-nav-count { display: none; }

.admin-side-foot { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid rgba(251, 249, 244, .14); }
.admin-home-link { color: var(--gold); font-size: .85rem; font-weight: 600; text-decoration: none; padding: 0 6px; white-space: nowrap; }
.admin-home-link:hover { color: #fff; }
.admin-user { display: flex; align-items: center; gap: 10px; padding: 0 6px; min-width: 0; }
.admin-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 50%; background: var(--clay);
  color: var(--forest-deep); font-weight: 700; font-size: .95rem;
}
.admin-user-name {
  flex: 1; min-width: 0; font-size: .85rem; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.admin-shell.is-collapsed .admin-home-link,
.admin-shell.is-collapsed .admin-user-name { display: none; }
.admin-shell.is-collapsed .admin-user { justify-content: center; padding: 0; }
.admin-side-actions { display: flex; gap: 8px; }
.admin-collapse, .admin-logout {
  border: 1px solid rgba(251, 249, 244, .25); border-radius: 8px;
  background: transparent; color: var(--cream);
  font-size: .82rem; font-weight: 600; padding: 8px 10px;
  transition: background-color .2s ease;
}
.admin-collapse:hover, .admin-logout:hover { background: rgba(251, 249, 244, .12); }
.admin-logout { flex: 1; }
.admin-shell.is-collapsed .admin-side-actions { flex-direction: column; }
.admin-shell.is-collapsed .admin-logout { font-size: 0; }
.admin-shell.is-collapsed .admin-logout::after { content: "↪"; font-size: .9rem; }
.admin-scrim { display: none; }

/* ---------- 3. Topbar + content ---------- */
.admin-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 32px;
  background: rgba(251, 249, 244, .94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.admin-menu-btn {
  display: none; flex-direction: column; gap: 5px;
  border: 0; background: transparent; padding: 10px;
}
.admin-menu-btn span { display: block; width: 22px; height: 2px; background: var(--forest); border-radius: 2px; }
.admin-title-wrap h1 {
  margin: 0; font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
}
.admin-title-wrap p { margin: 0; font-size: .82rem; color: var(--muted); }
.admin-topbar-search {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  max-width: 320px; flex: 1;
  padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff;
}
.admin-topbar-search svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--muted); }
.admin-topbar-search input { border: 0; background: transparent; min-height: 42px; padding-inline: 0; }
.admin-topbar-search input:focus { box-shadow: none; background: transparent; }

.admin-main { width: 100%; max-width: 1280px; margin: 0 auto; padding: 32px; flex: 1; }
.admin-foot {
  display: flex; gap: 8px; align-items: center; justify-content: center;
  padding: 18px 32px; font-size: .82rem; color: var(--muted);
  border-top: 1px solid var(--line);
}
.admin-status:empty { display: none; }
.admin-status {
  margin: 0 0 18px; padding: 12px 16px;
  border-radius: 12px; background: #fff; border: 1px solid var(--line);
  font-size: .9rem;
}
.admin-status.is-error { border-color: var(--danger); color: var(--danger); font-weight: 600; }
.admin-status.is-success { border-color: var(--success); color: var(--success); font-weight: 600; }

/* ---------- 4. Tong quan ---------- */
.admin-greeting {
  margin: 0 0 16px; font-family: var(--serif);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem); color: var(--forest);
}
.admin-exceptions {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 18px; padding: 14px 18px;
  border-radius: 12px; background: rgba(176, 124, 46, .1);
  border: 1px solid rgba(176, 124, 46, .4);
  font-size: .92rem; font-weight: 600; color: #7c5a1e;
}
.admin-exceptions button {
  margin-left: 8px; padding: 4px 12px;
  border-radius: 999px; border: 1px solid currentColor;
  background: transparent; color: inherit; font-size: .82rem; font-weight: 700;
  transition: background-color .2s ease;
}
.admin-exceptions button:hover { background: rgba(176, 124, 46, .18); }

.kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.kpi {
  text-align: left; padding: 18px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
button.kpi:hover { border-color: rgba(184, 135, 91, .5); box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.kpi > span { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); }
.kpi > strong {
  display: block; margin-top: 6px;
  color: var(--forest); font-size: 1.45rem;
  font-variant-numeric: tabular-nums;
}
.kpi small { display: block; margin-top: 4px; font-size: .76rem; color: var(--leaf); }

.admin-actions-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.admin-preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-preview { padding: 20px; }
.admin-preview header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.admin-preview h2 { margin: 0; font-family: var(--sans); font-size: 1.05rem; font-weight: 700; letter-spacing: 0; }
.admin-preview .text-link { border: 0; background: none; padding: 4px 0; font-size: .88rem; cursor: pointer; }
.preview-row {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 8px;
  border: 0; border-bottom: 1px solid var(--line);
  background: transparent; text-align: left; font-size: .9rem;
  border-radius: 8px;
  transition: background-color .2s ease;
}
.preview-row:last-child { border-bottom: 0; }
.preview-row:hover { background: var(--cream); }
.preview-row strong { font-variant-numeric: tabular-nums; }
.preview-row .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-row .num { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.admin-empty { margin: 0; padding: 18px 8px; color: var(--muted); font-size: .9rem; text-align: center; }

/* ---------- 5. Toolbar + table ---------- */
.admin-section { animation: admin-fade .2s ease; }
@keyframes admin-fade { from { opacity: 0; } to { opacity: 1; } }
.admin-toolbar { padding: 16px 18px; margin-bottom: 14px; }
.toolbar-row { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.toolbar-row + .toolbar-row { margin-top: 12px; }
.toolbar-row .field { margin: 0; min-width: 130px; }
.toolbar-row .field label { font-size: .8rem; }
.toolbar-search { flex: 1; min-width: 200px; }
.admin-toolbar input, .admin-toolbar select { min-height: 44px; font-size: .9rem; }
.toolbar-cta { margin-left: auto; white-space: nowrap; }
.toolbar-row-secondary .button { margin-left: auto; }

.status-pills { border: 0; margin: 0; padding: 0; flex: 1 1 100%; }
.status-pills legend { font-size: .8rem; font-weight: 600; color: var(--forest); padding: 0; margin-bottom: 6px; }
.status-pills label {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0 8px 8px 0; padding: 6px 12px 6px 8px;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font-size: .82rem; font-weight: 600; cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.status-pills label:has(input:checked) { border-color: var(--forest); background: var(--forest); color: var(--paper); }

.admin-count { margin: 0 0 10px; font-size: .85rem; color: var(--muted); }
.admin-table-wrap { overflow-x: auto; padding: 0; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; border-radius: 12px; }
.admin-table thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--forest); color: var(--paper);
  text-align: left; font-size: .78rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 12px 14px; white-space: nowrap;
}
.admin-table thead th:first-child { border-top-left-radius: 12px; }
.admin-table thead th:last-child { border-top-right-radius: 12px; }
.admin-table tbody td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.admin-table tbody tr:nth-child(even) td { background: rgba(230, 222, 206, .28); }
.admin-table tbody tr:hover td { background: rgba(184, 135, 91, .1); }
.admin-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.admin-table .code { font-weight: 700; white-space: nowrap; }
.admin-table .sub { display: block; font-size: .78rem; color: var(--muted); font-weight: 400; }
.copy-btn {
  border: 0; background: transparent; color: var(--leaf);
  font-size: .8rem; padding: 2px 6px; border-radius: 6px; margin-left: 4px;
}
.copy-btn:hover { background: var(--cream); color: var(--forest); }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.mini-btn {
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font-size: .8rem; font-weight: 700; padding: 6px 10px; white-space: nowrap;
  transition: border-color .2s ease, background-color .2s ease;
}
.mini-btn:hover { border-color: var(--forest); background: var(--cream); }
.mini-btn.is-danger { color: var(--danger); border-color: rgba(141, 68, 53, .4); }
.stock-ok { color: var(--success); font-weight: 700; }
.stock-out { color: var(--danger); font-weight: 700; }
.sale-on { color: var(--success); font-weight: 700; }
.sale-off { color: var(--muted); font-weight: 700; }

/* Toggle hien/an */
.switch { position: relative; display: inline-flex; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch-track {
  display: inline-flex; align-items: center;
  width: 40px; height: 22px; border-radius: 999px;
  background: rgba(46, 58, 44, .25);
  transition: background-color .2s ease;
}
.switch-track::after {
  content: ""; width: 16px; height: 16px; margin-left: 3px;
  border-radius: 50%; background: #fff;
  transition: transform .2s ease;
}
.switch input:checked + .switch-track { background: var(--success); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { outline: 3px solid rgba(184, 135, 91, .8); outline-offset: 2px; }

/* Stepper ton kho inline */
.stepper { display: flex; align-items: center; gap: 2px; }
.stepper button {
  width: 30px; height: 30px; padding: 0;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font-size: 1rem; font-weight: 700; line-height: 1; color: var(--forest);
  transition: background-color .2s ease;
}
.stepper button:hover { background: var(--cream); }
.stepper input {
  width: 56px; min-height: 30px; padding: 2px 4px;
  border: 1px solid var(--line); border-radius: 8px;
  text-align: center; font-variant-numeric: tabular-nums;
}
.adjust-form { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.adjust-form input[type="text"] { width: 130px; min-height: 30px; padding: 2px 8px; font-size: .82rem; border-radius: 8px; }

/* Phan trang */
.admin-pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; }
.admin-pager:empty { display: none; }
.admin-pager button {
  min-width: 36px; height: 36px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font-size: .85rem; font-weight: 700; color: var(--forest);
  transition: background-color .2s ease;
}
.admin-pager button:hover:not(:disabled) { background: var(--cream); }
.admin-pager button[aria-current="page"] { background: var(--forest); border-color: var(--forest); color: var(--paper); }

/* ---------- 6. Drawer don hang ---------- */
.admin-drawer { width: min(460px, 100vw); }
.drawer-order-code { margin: 0 0 4px; font-family: var(--serif); font-size: 1.35rem; color: var(--forest); word-break: break-all; }
.drawer-meta { margin: 0 0 14px; font-size: .85rem; color: var(--muted); }
.drawer-block { margin: 18px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.drawer-block h3 { font-family: var(--sans); font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; }
.drawer-item { display: flex; gap: 8px; padding: 6px 0; font-size: .9rem; border-bottom: 1px dashed var(--line); }
.drawer-item:last-child { border-bottom: 0; }
.drawer-item .grow { flex: 1; min-width: 0; }
.drawer-item .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.drawer-totals { font-size: .9rem; }
.drawer-totals .row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-variant-numeric: tabular-nums; }
.drawer-totals .grand { font-weight: 700; font-size: 1rem; color: var(--forest); border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; }
.drawer-address { margin: 0; font-size: .9rem; }
.drawer-next { display: grid; gap: 10px; margin-top: 12px; }
.drawer-note { margin: 0; }
.drawer-note textarea { min-height: 64px; font-size: .88rem; }

/* ---------- 7. Dialog (modal) ---------- */
.admin-dialog {
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--paper); color: var(--ink);
  width: min(620px, calc(100vw - 32px)); padding: 0;
  max-height: calc(100svh - 48px); overflow: auto;
}
.admin-dialog::backdrop { background: rgba(28, 36, 28, .45); }
.admin-dialog-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px 0;
}
.admin-dialog-head h2 { margin: 0; font-family: var(--serif); font-size: 1.4rem; }
.admin-dialog form { padding: 16px 22px 22px; display: grid; gap: 4px; }
.admin-dialog .field { margin-bottom: .8rem; }
.admin-dialog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.profile-fields {
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
  padding: 14px; margin: 0 0 .8rem;
}
.profile-fields legend { font-size: .82rem; font-weight: 700; color: var(--forest); padding: 0 6px; }
.profile-fields .field { margin: 0; }
.profile-fields label { font-size: .78rem; }
.profile-fields input { min-height: 42px; padding: .5em; text-align: center; }
.admin-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.admin-dialog .field-error[data-error-for]:not(:empty) { display: flex; }
.admin-form-card { padding: 24px; }
.admin-form-card h2 { font-family: var(--serif); font-size: 1.5rem; margin: 0 0 14px; }
.admin-form-card textarea { font-size: .92rem; }

/* ---------- 8. Banner trang thai tai du lieu ---------- */
.admin-loading, .admin-errorline {
  padding: 28px 16px; text-align: center;
  color: var(--muted); font-size: .9rem;
  border: 1px dashed var(--line); border-radius: 12px; background: #fff;
}

/* ---------- 9. Responsive ---------- */
@media (max-width: 1050px) {
  .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-main { padding: 24px; }
  .admin-topbar { padding: 12px 20px; }
}
@media (max-width: 900px) {
  .admin-sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    transform: translateX(-105%);
    transition: transform .2s ease;
    width: 260px !important;
  }
  .admin-shell.nav-open .admin-sidebar { transform: none; }
  .admin-shell.is-collapsed .admin-sidebar { width: 260px !important; padding: 20px 14px; }
  .admin-shell.is-collapsed .admin-brand-text,
  .admin-shell.is-collapsed .admin-nav-item span,
  .admin-shell.is-collapsed .admin-home-link,
  .admin-shell.is-collapsed .admin-user-name { display: flex; }
  .admin-shell.is-collapsed .admin-nav-item { justify-content: flex-start; padding-inline: 12px; }
  .admin-shell.is-collapsed .admin-logout { font-size: .82rem; }
  .admin-shell.is-collapsed .admin-logout::after { content: none; }
  .admin-shell.nav-open .admin-scrim {
    display: block; position: fixed; inset: 0; z-index: 55;
    background: rgba(28, 36, 28, .45);
  }
  .admin-menu-btn { display: flex; }
  .admin-preview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-main { padding: 18px 16px; }
  .admin-topbar { padding: 10px 14px; gap: 10px; }
  .admin-topbar-search { max-width: none; }
  .admin-title-wrap p { display: none; }
  .toolbar-row .field { flex: 1 1 140px; }
  .toolbar-cta { margin-left: 0; width: 100%; }
  .toolbar-row-secondary .button { margin-left: 0; }

  /* Table -> card list tren mobile: an thead, moi row la 1 card. */
  .admin-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .admin-table { background: transparent; }
  .admin-table tbody tr {
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    margin-bottom: 12px; padding: 6px 4px;
  }
  .admin-table tbody tr:nth-child(even) td { background: transparent; }
  .admin-table tbody td { border: 0; padding: 8px 14px; }
  .admin-table tbody td::before {
    content: attr(data-label);
    display: block; font-size: .72rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  }
  .admin-table .num { text-align: left; }
  .row-actions, .adjust-form { justify-content: flex-start; }
}
@media (max-width: 390px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px; }
  .kpi > strong { font-size: 1.2rem; }
  .admin-dialog-grid { grid-template-columns: 1fr; }
  .profile-fields { grid-template-columns: repeat(2, 1fr); }
  .admin-topbar-search input::placeholder { font-size: 0; }
}

/* ---------- 10. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .admin *, .admin *::before, .admin *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- 11. In don hang ---------- */
#print-sheet { display: none; }
@media print {
  body > *:not(#print-sheet) { display: none !important; }
  #print-sheet { display: block; font-size: 12px; color: #000; }
  #print-sheet h2 { font-size: 18px; margin: 0 0 8px; }
  #print-sheet table { width: 100%; border-collapse: collapse; margin: 12px 0; }
  #print-sheet th, #print-sheet td { border: 1px solid #999; padding: 6px 8px; text-align: left; }
}
