/* =====================================================================
   Jan Dental Lounge — admin / clinic management UI
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
img, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; }

:root {
  --bg:        #F6F3EE;
  --panel:     #FFFFFF;
  --panel-2:   #FAF7F2;
  --ink:       #17241F;
  --ink-2:     #46574F;
  --ink-3:     #74857C;
  --ink-4:     #9BA9A1;
  --line:      #E5DDD1;
  --line-2:    #F0EAE0;

  --forest:      #1D4B3C;
  --forest-deep: #10281F;
  --forest-soft: #2C6B55;
  --forest-wash: #E5EFE9;
  --clay:        #BE5F3C;
  --clay-wash:   #FBEDE5;
  --gold:        #C9962F;
  --blue:        #2E6E8E;
  --blue-wash:   #E7F0F5;
  --red:         #B3452F;
  --red-wash:    #FBE9E5;
  --green:       #2C7A52;
  --green-wash:  #E4F2EA;

  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --mono:    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --sidebar: 244px;
  --r: 12px;
  --ease: cubic-bezier(.2,.7,.3,1);
}

body {
  font-family: var(--sans);
  font-size: 14px; line-height: 1.55;
  background: var(--bg); color: var(--ink-2);
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4 { color: var(--ink); line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; } h4 { font-size: .875rem; }
.serif { font-family: var(--display); font-weight: 500; }
.muted { color: var(--ink-3); }
.tiny  { font-size: .75rem; }
.small { font-size: .82rem; }
.mono  { font-family: var(--mono); font-size: .82rem; }
.tc { text-align: center; } .tr { text-align: right; }
.nowrap { white-space: nowrap; }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}
.flex{display:flex;gap:.75rem}.center{align-items:center}.between{justify-content:space-between}
.wrapf{flex-wrap:wrap}.grow{flex:1}.col{flex-direction:column}
.grid{display:grid;gap:1rem}
.g2{grid-template-columns:repeat(2,1fr)}.g3{grid-template-columns:repeat(3,1fr)}
.g4{grid-template-columns:repeat(4,1fr)}.g5{grid-template-columns:repeat(5,1fr)}
.hidden { display: none !important; }

/* ============================== LOGIN ============================== */
.login {
  min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem;
  background:
    radial-gradient(50rem 30rem at 80% -10%, #DCEAE2 0%, transparent 60%),
    radial-gradient(40rem 26rem at 5% 105%, #F5E2D6 0%, transparent 60%),
    var(--bg);
}
.login__card {
  width: 100%; max-width: 420px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 20px;
  padding: 2.4rem 2.2rem;
  box-shadow: 0 40px 80px -50px rgba(23,36,31,.5);
}
.login__mark {
  width: 52px; height: 52px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--forest); color: #fff; display: grid; place-items: center;
  font-family: var(--display); font-size: 1.4rem; font-style: italic; margin-bottom: 1.4rem;
}

/* ============================== SHELL ============================== */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }

.side {
  background: var(--forest-deep); color: #A9C2B7;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.side__brand { display: flex; align-items: center; gap: .7rem; padding: 1.15rem 1.15rem; text-decoration: none; }
.side__mark {
  width: 36px; height: 36px; flex: none; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: rgba(255,255,255,.13); color: #fff; display: grid; place-items: center;
  font-family: var(--display); font-style: italic; font-size: 1rem;
}
.side__name { color: #fff; font-weight: 600; font-size: .92rem; line-height: 1.15; }
.side__sub  { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.4); }

.side__nav { padding: .4rem .7rem 1.5rem; flex: 1; }
.side__group {
  font-size: .62rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.32); padding: 1.1rem .55rem .45rem;
}
.side__link {
  display: flex; align-items: center; gap: .65rem;
  padding: .55rem .6rem; border-radius: 9px; margin-bottom: 1px;
  font-size: .86rem; text-decoration: none; color: #B3C9BF;
  transition: background-color .2s, color .2s;
}
.side__link:hover { background: rgba(255,255,255,.07); color: #fff; }
.side__link.is-active { background: var(--forest-soft); color: #fff; font-weight: 600; }
.side__link svg { flex: none; opacity: .85; }
.side__count {
  margin-left: auto; background: var(--clay); color: #fff;
  font-size: .66rem; font-weight: 700; padding: .1rem .4rem; border-radius: 999px; min-width: 18px; text-align: center;
}
.side__foot { padding: .9rem 1.15rem; border-top: 1px solid rgba(255,255,255,.09); font-size: .78rem; }
.side__foot a { color: #B3C9BF; text-decoration: none; }
.side__foot a:hover { color: #fff; }

.main { min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(246,243,238,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: .85rem clamp(1rem, 2.5vw, 2rem);
  display: flex; align-items: center; gap: 1rem;
}
.topbar__title { font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.topbar__crumb { font-size: .76rem; color: var(--ink-4); }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.who { display: flex; align-items: center; gap: .55rem; padding-left: .8rem; border-left: 1px solid var(--line); }
.who__av { width: 32px; height: 32px; border-radius: 50%; background: var(--forest-wash); color: var(--forest);
  display: grid; place-items: center; font-size: .74rem; font-weight: 700; }

.content { padding: clamp(1rem, 2.5vw, 2rem); flex: 1; }
.menu-btn { display: none; }

/* ============================== CARDS ============================== */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.panel__head {
  padding: .95rem 1.15rem; border-bottom: 1px solid var(--line-2);
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
}
.panel__head h2 { font-size: .98rem; }
.panel__body { padding: 1.15rem; }
.panel__foot { padding: .85rem 1.15rem; border-top: 1px solid var(--line-2); background: var(--panel-2);
  border-radius: 0 0 var(--r) var(--r); }

/* stat tiles */
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 1.05rem 1.15rem; }
.stat__label { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); display: flex; align-items: center; gap: .4rem; }
.stat__value { font-family: var(--display); font-size: 1.7rem; color: var(--ink); line-height: 1.1; margin-top: .5rem; font-weight: 500; }
.stat__sub { font-size: .76rem; color: var(--ink-3); margin-top: .3rem; }
.stat--good .stat__value { color: var(--green); }
.stat--warn .stat__value { color: var(--clay); }
.stat--bad  .stat__value { color: var(--red); }
.stat--accent { background: var(--forest); border-color: var(--forest); }
.stat--accent .stat__label { color: rgba(255,255,255,.6); }
.stat--accent .stat__value { color: #fff; }
.stat--accent .stat__sub { color: rgba(255,255,255,.7); }

/* ============================== TABLE ============================== */
.tablewrap { overflow-x: auto; }
table.tb { width: 100%; border-collapse: collapse; font-size: .86rem; }
table.tb th {
  text-align: left; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-4); font-weight: 600; padding: .7rem .85rem;
  border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--panel-2);
  position: sticky; top: 0; z-index: 1;
}
table.tb td { padding: .75rem .85rem; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.tb tbody tr:hover { background: var(--panel-2); }
table.tb tbody tr:last-child td { border-bottom: 0; }
table.tb a.link { color: var(--forest); text-decoration: none; font-weight: 600; }
table.tb a.link:hover { text-decoration: underline; }
.tb--compact td, .tb--compact th { padding: .5rem .7rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ============================== BADGES ============================= */
.badge {
  display: inline-block; padding: .16rem .55rem; border-radius: 999px;
  font-size: .7rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
}
.badge--ok    { background: var(--green-wash); color: var(--green); }
.badge--bad   { background: var(--red-wash);   color: var(--red); }
.badge--warn  { background: var(--clay-wash);  color: var(--clay); }
.badge--info  { background: var(--blue-wash);  color: var(--blue); }
.badge--muted { background: #EFEBE4; color: var(--ink-3); }

.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .2rem .6rem; border-radius: 999px; background: var(--panel-2);
  border: 1px solid var(--line); font-size: .74rem; color: var(--ink-2);
}

.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--forest-wash); color: var(--forest);
  display: grid; place-items: center; font-size: .74rem; font-weight: 700;
}
.avatar--sm { width: 26px; height: 26px; font-size: .64rem; }

/* ============================== BUTTONS ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .52rem 1rem; border-radius: 9px; border: 1px solid transparent;
  font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--forest); color: #fff; }
.btn--primary:hover { background: var(--forest-deep); }
.btn--clay { background: var(--clay); color: #fff; }
.btn--clay:hover { background: #A34D2E; }
.btn--wa { background: #25D366; color: #fff; }
.btn--wa:hover { background: #1FB855; }
.btn--ghost { border-color: var(--line); background: var(--panel); color: var(--ink-2); }
.btn--ghost:hover { border-color: var(--ink-4); color: var(--ink); }
.btn--danger { background: var(--red-wash); color: var(--red); border-color: #F0CFC6; }
.btn--danger:hover { background: var(--red); color: #fff; border-color: var(--red); }
.btn--sm { padding: .32rem .65rem; font-size: .76rem; border-radius: 7px; }
.btn--lg { padding: .75rem 1.4rem; font-size: .95rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.iconbtn {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line);
  display: inline-grid; place-items: center; color: var(--ink-3); background: var(--panel);
  transition: .2s;
}
.iconbtn:hover { border-color: var(--ink-4); color: var(--ink); }
.iconbtn--danger:hover { background: var(--red); border-color: var(--red); color: #fff; }
.rot45 { rotate: 45deg; }

/* ============================== FORMS ============================== */
.field { display: grid; gap: .3rem; margin-bottom: .95rem; }
.field > label { font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: .72rem; color: var(--ink-4); font-weight: 400; }
.req { color: var(--clay); }
.input, .select, .textarea {
  width: 100%; padding: .55rem .75rem; border-radius: 9px;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  font-size: .875rem; transition: border-color .2s, box-shadow .2s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--forest-soft); box-shadow: 0 0 0 3px rgba(44,107,85,.13);
}
.input[readonly] { background: var(--panel-2); color: var(--ink-3); }
.textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.textarea--tall { min-height: 190px; }
.select { appearance: none; padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2374857C' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.row3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 0 1rem; }
.row4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 0 1rem; }
.checkline { display: flex; gap: .5rem; align-items: center; font-size: .84rem; }
.checkline input[type=checkbox], .checkline input[type=radio] { accent-color: var(--forest); width: 16px; height: 16px; }
.inline-form { display: inline; }

/* filter bar */
.filterbar {
  display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-end;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: .85rem 1rem; margin-bottom: 1rem;
}
.filterbar .field { margin: 0; }
.filterbar .input, .filterbar .select { min-width: 150px; }
.searchbox { position: relative; flex: 1; min-width: 200px; }
.searchbox svg { position: absolute; left: .7rem; top: 50%; translate: 0 -50%; color: var(--ink-4); }
.searchbox .input { padding-left: 2.2rem; }

/* image picker */
.imgpick {
  display: flex; gap: .9rem; align-items: flex-start;
  border: 1px dashed var(--line); border-radius: var(--r); padding: .8rem; background: var(--panel-2);
}
.imgpick__prev {
  width: 96px; height: 96px; flex: none; border-radius: 9px; overflow: hidden;
  background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-4);
}
.imgpick__prev img { width: 100%; height: 100%; object-fit: cover; }
.imgpick__body { flex: 1; min-width: 0; }

/* tabs */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; flex-wrap: wrap; }
.tabs a {
  padding: .55rem .9rem; font-size: .85rem; text-decoration: none; color: var(--ink-3);
  border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500;
}
.tabs a:hover { color: var(--ink); }
.tabs a.is-active { color: var(--forest); border-bottom-color: var(--forest); font-weight: 600; }

/* alerts */
.alert { padding: .75rem 1rem; border-radius: 10px; font-size: .85rem; border: 1px solid; margin-bottom: 1rem; }
.alert--success { background: var(--green-wash); border-color: #C4E0D0; color: #1E5C3C; }
.alert--error   { background: var(--red-wash);   border-color: #F0CFC6; color: #8B3320; }
.alert--info    { background: var(--blue-wash);  border-color: #CDDFE9; color: #23576F; }
.alert--warn    { background: var(--clay-wash);  border-color: #F2D7C7; color: #90441F; }

.empty { text-align: center; padding: 3.5rem 1rem; color: var(--ink-4); }
.empty svg { margin: 0 auto .8rem; color: var(--line); }

.pagination { display: flex; gap: .3rem; justify-content: center; margin-top: 1.25rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 34px; height: 34px; padding: 0 .6rem; border-radius: 8px;
  display: grid; place-items: center; font-size: .82rem; text-decoration: none;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink-2);
}
.pagination .is-current { background: var(--forest); border-color: var(--forest); color: #fff; }

/* progress */
.bar { height: 6px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--forest-soft); border-radius: 999px; }
.bar--clay > i { background: var(--clay); }
.bar--red > i { background: var(--red); }

/* ============================== CHART ============================== */
.chart { width: 100%; height: 260px; }
.chart__bars { display: flex; align-items: flex-end; gap: 3px; height: 200px; padding-top: 1rem; }
.chart__col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-width: 0; position: relative; }
.chart__col:hover .chart__tip { opacity: 1; transform: translate(-50%, -6px); }
.chart__bar { border-radius: 3px 3px 0 0; min-height: 2px; transition: opacity .2s; }
.chart__bar--in { background: var(--forest-soft); }
.chart__bar--out { background: var(--clay); opacity: .75; }
.chart__x { display: flex; gap: 3px; margin-top: .5rem; }
.chart__x span { flex: 1; font-size: .62rem; color: var(--ink-4); text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart__tip {
  position: absolute; bottom: 100%; left: 50%; translate: -50% 0;
  background: var(--forest-deep); color: #fff; font-size: .7rem; padding: .35rem .55rem;
  border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: .2s var(--ease); z-index: 5;
}
.legend { display: flex; gap: 1rem; font-size: .76rem; color: var(--ink-3); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .35rem; }

/* ============================== REPORT CARD ======================== */
/* This block is what gets rasterised to JPG / PDF — keep it self-contained. */
.rcard {
  width: 720px; background: #FBF6EE; color: #16241F; font-family: var(--sans);
  border: 1px solid #E3D8C8; border-radius: 18px; overflow: hidden;
}
.rcard__head { background: linear-gradient(135deg, #10281F, #1D4B3C 60%, #2C6B55); color: #fff; padding: 1.6rem 1.8rem; }
.rcard__brand { display: flex; align-items: center; gap: .7rem; }
.rcard__mark { width: 40px; height: 40px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: rgba(255,255,255,.16); display: grid; place-items: center;
  font-family: var(--display); font-style: italic; font-size: 1.1rem; }
.rcard__title { font-family: var(--display); font-size: 1.5rem; margin-top: 1.2rem; font-weight: 500; }
.rcard__sub { font-size: .82rem; color: rgba(255,255,255,.72); margin-top: .25rem; }
.rcard__body { padding: 1.6rem 1.8rem; }
.rcard__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.rcard__tile { background: #fff; border: 1px solid #EDE4D7; border-radius: 12px; padding: .85rem 1rem; }
.rcard__tile span { font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: #9AAAA1; }
.rcard__tile b { display: block; font-family: var(--display); font-size: 1.35rem; margin-top: .3rem; font-weight: 500; }
.rcard table { width: 100%; border-collapse: collapse; font-size: .82rem; margin-top: 1.2rem; }
.rcard th { text-align: left; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase;
  color: #9AAAA1; padding: .5rem .6rem; border-bottom: 1px solid #E3D8C8; }
.rcard td { padding: .55rem .6rem; border-bottom: 1px solid #F0EAE0; }
.rcard__foot { background: #F0EAE0; padding: .9rem 1.8rem; font-size: .72rem; color: #6E837A; }
.rcard__due { background: #FBEDE5; border: 1px solid #F0DACE; border-radius: 12px; padding: 1rem 1.2rem; margin-top: 1.2rem; }
.rcard__due b { font-family: var(--display); font-size: 1.5rem; color: #9C4A2C; display: block; }

.stage { background: #E8E2D8; border-radius: var(--r); padding: 1.5rem; overflow: auto; display: grid; place-items: start center; }

/* ============================== INVOICE ============================ */
.inv-items { width: 100%; border-collapse: collapse; }
.inv-items th { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4);
  text-align: left; padding: .4rem .5rem; }
.inv-items td { padding: .3rem .5rem; vertical-align: middle; }
.inv-items .input { padding: .45rem .6rem; }
.inv-totals { margin-left: auto; width: min(320px, 100%); }
.inv-totals div { display: flex; justify-content: space-between; padding: .4rem 0; font-size: .88rem; }
.inv-totals .grand { border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .6rem;
  font-size: 1.05rem; font-weight: 700; color: var(--ink); }

/* timeline */
.tl { position: relative; padding-left: 1.6rem; }
.tl::before { content: ""; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 1px; background: var(--line); }
.tl__item { position: relative; padding-bottom: 1.2rem; }
.tl__item::before {
  content: ""; position: absolute; left: -1.6rem; top: .35rem; width: 13px; height: 13px;
  border-radius: 50%; background: var(--panel); border: 2px solid var(--forest-soft);
}
.tl__item--clay::before { border-color: var(--clay); }
.tl__item--muted::before { border-color: var(--line); }
.tl__when { font-size: .72rem; color: var(--ink-4); }

/* whatsapp preview */
.wa-preview {
  background: #E5DDD5; border-radius: 12px; padding: 1rem; min-height: 120px;
  background-image: radial-gradient(rgba(0,0,0,.03) 1px, transparent 1px); background-size: 12px 12px;
}
.wa-bubble {
  background: #DCF8C6; border-radius: 10px 10px 2px 10px; padding: .7rem .85rem;
  font-size: .84rem; white-space: pre-wrap; word-break: break-word;
  max-width: 90%; margin-left: auto; box-shadow: 0 1px 2px rgba(0,0,0,.12); color: #111;
}
.wa-row { display: flex; align-items: center; gap: .75rem; padding: .6rem .5rem; border-bottom: 1px solid var(--line-2); }
.wa-row:last-child { border-bottom: 0; }
.wa-row.is-sent { opacity: .5; }

/* ============================== RESPONSIVE ========================= */
@media (max-width: 1200px) {
  .g5 { grid-template-columns: repeat(3,1fr); }
  .g4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side {
    position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 80;
    transform: translateX(-100%); transition: transform .3s var(--ease);
  }
  .side.is-open { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.4); }
  .menu-btn { display: inline-grid; }
  .scrim { position: fixed; inset: 0; background: rgba(16,40,31,.5); z-index: 70; display: none; }
  .scrim.is-open { display: block; }
  .g3, .g4, .g5, .row, .row3, .row4 { grid-template-columns: 1fr; }
  .rcard { width: 100%; min-width: 340px; }
}
@media (max-width: 620px) {
  .g2 { grid-template-columns: 1fr; }
  .topbar__crumb { display: none; }
  .content { padding: .85rem; }
}

/* ============================== PRINT ============================== */
@media print {
  .side, .topbar, .no-print, .filterbar, .scrim { display: none !important; }
  .shell { grid-template-columns: 1fr; }
  .content { padding: 0; }
  body { background: #fff; }
  .panel { border-color: #ddd; break-inside: avoid; }
  .rcard { width: 100%; border: 0; }
}
