/* =====================================================================
   سیستەمی موڵكی مزگەوت — Mobile-first Kurdish RTL theme
   ===================================================================== */

:root {
  --brand:        #1b5e20;
  --brand-light:  #2e7d32;
  --brand-dark:   #124116;
  --accent:       #f9a825;
  --ink:          #1f2933;
  --ink-soft:     #52606d;
  --line:         #e4e7eb;
  --bg:           #f4f6f8;
  --card:         #ffffff;
  --radius:       14px;
  --shadow-sm:    0 1px 3px rgba(16,24,40,.06), 0 1px 2px rgba(16,24,40,.04);
  --shadow-md:    0 4px 14px rgba(16,24,40,.08);
  --sidebar-w:    262px;
  --navbar-h:     58px;
  --tabbar-h:     62px;
  --ok:           #2e7d32;
  --warn:         #ed6c02;
  --bad:          #c62828;
}

/* =====================================================================
   TYPOGRAPHY

   Two families, split by script:

     · NRT   — all Kurdish / Arabic text
     · Inter — digits and the punctuation that appears inside figures

   NRT does ship Latin digits, but they are narrow and easy to misread in
   money columns. The `unicode-range` on the Inter faces below claims ONLY
   those codepoints, so listing Inter first in the stack hands digits to
   Inter while every letter still falls through to NRT. No markup needed —
   a number typed mid-sentence is rendered clearly too.

   Both families are served locally, so the PWA keeps its typography
   offline and on devices that have never seen a Kurdish font.
   ===================================================================== */

@font-face {
  font-family: 'NRT';
  src: url('../fonts/NRT-Reg.woff2') format('woff2'),
       url('../fonts/NRT-Reg.ttf')   format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'NRT';
  src: url('../fonts/NRT-Bd.woff2') format('woff2'),
       url('../fonts/NRT-Bd.ttf')   format('truetype');
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

/* Digits, currency and figure punctuation only. */
@font-face {
  font-family: 'AppNum';
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0030-0039, U+0024-0025, U+002B-002F, U+003A;
}
@font-face {
  font-family: 'AppNum';
  src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 500 600;
  font-display: swap;
  unicode-range: U+0030-0039, U+0024-0025, U+002B-002F, U+003A;
}
@font-face {
  font-family: 'AppNum';
  src: url('../fonts/Inter-Bold.woff2') format('woff2');
  font-weight: 700 900;
  font-display: swap;
  unicode-range: U+0030-0039, U+0024-0025, U+002B-002F, U+003A;
}

:root {
  /* AppNum must come first — it only answers for the digit range. */
  --font-app: 'AppNum', 'NRT', 'Segoe UI', 'Noto Naskh Arabic', Tahoma, system-ui, sans-serif;
  --font-num: 'AppNum', 'Inter', 'Segoe UI', system-ui, sans-serif;
}

/* ---------- base ---------- */
* { -webkit-tap-highlight-color: transparent; }

html { font-size: 15px; }

body {
  font-family: var(--font-app);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  /* dvh tracks the collapsing mobile URL bar; vh above is the fallback */
  min-height: 100dvh;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

/* Form controls and buttons do not inherit the page font by default. */
input, select, textarea, button, .form-control, .form-select, .btn {
  font-family: var(--font-app);
}

/*
 * Figures: isolated so RTL never reorders them, and tabular so digits line
 * up column-to-column. Latin-only here, hence the pure numeric stack.
 */
.num, td.num, .table td.num, .money, .coord,
input[type="number"], input[type="tel"], input[type="date"], code {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.num, td.num, .table td.num, .money, .coord {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  letter-spacing: .01em;
}
.text-end .num, td.num { text-align: end; }

/* Headline figures read better slightly tighter. */
.stat-value, .doc-title { letter-spacing: -.01em; }

a { text-decoration: none; }
a:hover { text-decoration: none; }

/* ---------- navbar ---------- */
.app-navbar {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  min-height: var(--navbar-h);
  box-shadow: var(--shadow-md);
  z-index: 1040;
}
.app-navbar .navbar-brand { font-weight: 700; font-size: 1.05rem; color: #fff; }
.app-navbar .brand-text { max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.avatar-circle {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.22);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .95rem; color: #fff;
}

.global-search {
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff; border-radius: 10px;
}
.global-search::placeholder { color: rgba(255,255,255,.75); }
.global-search:focus {
  background: rgba(255,255,255,.96); color: var(--ink);
  border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(249,168,37,.25);
}

/* Phones hide the navbar search bar; this panel carries it instead. */
.mobile-search {
  background: var(--brand-dark);
  box-shadow: var(--shadow-md);
  position: relative; z-index: 1035;
}
/* Line the dropdown up with the input rather than the form's padding box. */
.mobile-search .search-results { inset-inline: .5rem; }

.search-results {
  position: absolute; top: 100%; inset-inline: 0; z-index: 1060;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  max-height: 62vh; overflow-y: auto; margin-top: 4px;
}
.search-results a {
  display: block; padding: .6rem .85rem; border-bottom: 1px solid var(--line); color: var(--ink);
}
.search-results a:last-child { border-bottom: 0; }
.search-results a:hover, .search-results a.active { background: #f0f7f1; }

/* ---------- shell ---------- */
.app-shell { display: flex; min-height: calc(100dvh - var(--navbar-h)); }

.app-main { flex: 1 1 auto; min-width: 0; max-width: 100%; }

/*
 * The sidebar is a Bootstrap `offcanvas-lg`: below the lg breakpoint it is a
 * slide-in panel, so it must NOT reserve any width in the flex row — otherwise
 * the page content is squeezed into a narrow column on phones.
 */
@media (min-width: 992px) {
  .app-sidebar {
    width: var(--sidebar-w); flex: 0 0 var(--sidebar-w);
    background: #fff; border-inline-start: 1px solid var(--line);
    position: sticky; top: var(--navbar-h);
    height: calc(100vh - var(--navbar-h)); overflow-y: auto;
  }
}

@media (max-width: 991.98px) {
  .app-sidebar { width: min(300px, 85vw); }
  .app-sidebar.offcanvas-lg { background: #fff; }
}

/*
 * Above the breakpoint Bootstrap gives `.offcanvas-lg .offcanvas-body` a bare
 * `display: flex`, which defaults to a ROW — standing the menu and the footer
 * side by side and parking the role/date block at the top of the sidebar.
 * Force a column, and let the menu absorb the slack so the footer stays at the
 * bottom when the menu is shorter than the panel.
 */
.app-sidebar .offcanvas-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.app-sidebar .sidebar-nav    { flex: 1 1 auto; }
.app-sidebar .sidebar-footer { flex: 0 0 auto; margin-top: auto; }

.sidebar-group {
  padding: .95rem 1rem .35rem; font-size: .72rem; font-weight: 700;
  color: var(--ink-soft); letter-spacing: .04em; text-transform: uppercase;
}
.sidebar-link {
  display: flex; align-items: center; gap: .7rem;
  padding: .62rem 1rem; color: var(--ink-soft);
  border-inline-start: 3px solid transparent; font-size: .94rem;
  transition: background .15s, color .15s;
}
.sidebar-link i { font-size: 1.05rem; width: 1.4rem; text-align: center; }
.sidebar-link:hover { background: #f5f7f6; color: var(--brand); }
.sidebar-link.active {
  background: #eaf3ea; color: var(--brand-dark);
  border-inline-start-color: var(--brand); font-weight: 600;
}
.sidebar-footer { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .75rem; }

/* ---------- cards ---------- */
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); background: var(--card);
}
.card-header {
  background: #fbfcfc; border-bottom: 1px solid var(--line);
  font-weight: 600; border-radius: var(--radius) var(--radius) 0 0 !important;
  padding: .7rem 1rem;
}

/* ---------- stat tiles ---------- */
.stat-card {
  border-radius: var(--radius); padding: .95rem 1rem; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: .85rem; height: 100%;
}
.stat-icon {
  width: 46px; height: 46px; border-radius: 12px; flex: 0 0 46px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; color: #fff;
}
.stat-value { font-size: 1.45rem; font-weight: 700; line-height: 1.15; }
.stat-label { font-size: .8rem; color: var(--ink-soft); }
.stat-sub   { font-size: .74rem; color: var(--ink-soft); }

.bg-brand      { background: var(--brand) !important; }
.bg-brand-soft { background: #eaf3ea !important; color: var(--brand-dark) !important; }
.text-brand    { color: var(--brand) !important; }

/* ---------- tables ---------- */
.table { --bs-table-hover-bg: #f3f8f4; margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .58rem .6rem; vertical-align: middle; }
.table thead th {
  background: #f6f8f7; font-size: .8rem; font-weight: 700;
  color: var(--ink-soft); border-bottom: 2px solid var(--line); white-space: nowrap;
}
.table-sticky thead th { position: sticky; top: 0; z-index: 2; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }

/* =====================================================================
   Mobile: every `.table-cards` row becomes a standalone card.
   Driven entirely by the markup the list views already carry:
     · first cell            → card header (identity)
     · cells with data-label → labelled key/value rows
     · cell with data-label="" → the action bar
   ===================================================================== */
@media (max-width: 767.98px) {
  /* The surrounding .card would draw a second frame around the stack.
     Let the row cards themselves carry the elevation. */
  .card:has(.table-cards) { background: transparent; border: 0; box-shadow: none; }
  .card:has(.table-cards) > .table-wrap { overflow-x: visible; }

  .table-cards { background: transparent; border: 0; }
  .table-cards thead { display: none; }
  .table-cards,
  .table-cards tbody,
  .table-cards tbody tr,
  .table-cards tbody td { display: block; width: 100%; }

  /* ---- the card ---- */
  .table-cards tbody tr {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: .7rem;
    overflow: hidden;
  }
  .table-cards tbody tr:last-child { margin-bottom: 0; }
  .table-cards tbody tr:active { background: #fbfdfb; }

  /* ---- key/value rows ---- */
  .table-cards > :not(caption) > * > * { padding: 0; }
  .table-cards tbody td {
    display: flex; align-items: center; gap: .55rem;
    padding: .5rem .85rem;
    border: 0; border-bottom: 1px solid #f1f4f2;
    text-align: start !important;
    font-size: .93rem; min-height: 40px;
  }
  /* `.num` cells carry `display:inline-block; direction:ltr` for tabular digits.
     In a card that beats the row layout above and mirrors the label to the
     wrong edge — restore the row and keep the digits isolated instead. */
  .table-cards tbody td.num {
    display: flex;
    direction: rtl;
  }
  .table-cards tbody td::before {
    content: attr(data-label);
    /* Pinning the label with auto margin keeps every value glued to the
       opposite edge — `space-between` would scatter cells that hold more
       than one element, such as an amount plus its badge. */
    margin-inline-end: auto;
    flex: 0 0 auto; font-size: .76rem; font-weight: 600; color: var(--ink-soft);
  }

  /* ---- header: the leading cell ---- */
  .table-cards tbody td:first-child {
    background: linear-gradient(180deg, #fafcfa 0%, #f3f7f4 100%);
    border-bottom: 1px solid var(--line);
    padding: .6rem .85rem;
    font-size: 1.02rem; font-weight: 700;
    flex-wrap: wrap;
  }
  .table-cards tbody td:first-child::before { content: none; }
  .table-cards tbody td:first-child a { color: var(--brand-dark); }

  /* ---- action bar: the trailing cell ---- */
  .table-cards tbody td[data-label=""] {
    gap: .45rem; padding: .55rem .85rem;
    background: #fafbfa;
    border-top: 1px solid var(--line); border-bottom: 0;
  }
  .table-cards tbody td[data-label=""]::before { content: none; }
  .table-cards tbody td[data-label=""] .btn {
    flex: 1 1 0; min-height: 42px;
    display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
  }
  .table-cards tbody td:last-child { border-bottom: 0; }

  /* ---- empty state keeps no card chrome ---- */
  .table-cards tbody tr:has(td[colspan]) {
    background: transparent; border: 0; box-shadow: none;
  }
  .table-cards tbody td[colspan] { display: block; padding: 0; border: 0; }
  .table-cards tbody td[colspan]::before { content: none; }

  /* Column widths and ellipsis tuned for the desktop grid fight the card
     layout — a card has the full width to spend, so let values wrap instead.
     Some views pin `max-width` inline, hence the !important. */
  .table-cards tbody td,
  .table-cards tbody td .text-truncate,
  .table-cards tbody td [style*="max-width"] { max-width: none !important; }
  .table-cards tbody td.text-truncate,
  .table-cards tbody td .text-truncate {
    overflow: visible; white-space: normal;
  }
}

/* ---------- badges & statuses ---------- */
.badge { font-weight: 600; letter-spacing: 0; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.status-paid    { background: var(--ok); }
.status-partial { background: var(--warn); }
.status-unpaid  { background: var(--bad); }
.status-exempt  { background: #90a4ae; }

.type-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .12rem .5rem; border-radius: 999px;
  font-size: .76rem; font-weight: 600; color: #fff;
}

/* ---------- forms ---------- */
.form-label { font-weight: 600; font-size: .87rem; margin-bottom: .3rem; color: var(--ink); }
.form-control, .form-select {
  border-radius: 10px; border-color: #d6dbe0; padding: .5rem .7rem; font-size: .95rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand-light); box-shadow: 0 0 0 .18rem rgba(46,125,50,.15);
}
/* Prevent iOS zoom-on-focus */
@media (max-width: 767.98px) {
  .form-control, .form-select, .btn { font-size: 16px; }
  .form-control, .form-select { min-height: 44px; }
}
.form-text { font-size: .78rem; }

.btn { border-radius: 10px; font-weight: 600; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-lg-touch { min-height: 48px; }

/* ---------- map ---------- */
.map-canvas { width: 100%; border-radius: var(--radius); z-index: 1; }
#masterMap  { height: calc(100vh - var(--navbar-h) - 190px); min-height: 340px; }
#editorMap  { height: 56vh; min-height: 320px; }
@media (max-width: 767.98px) {
  #masterMap { height: calc(100vh - var(--navbar-h) - var(--tabbar-h) - 150px); }
  #editorMap { height: 48vh; }
}

.leaflet-container { font-family: inherit; direction: ltr; }
.leaflet-popup-content { direction: rtl; text-align: right; margin: .7rem .9rem; min-width: 210px; }
.leaflet-popup-content-wrapper { border-radius: 12px; }

.point-marker {
  background: var(--brand); color: #fff; border-radius: 50%;
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.point-marker.first { background: var(--accent); color: #222; }

.map-toolbar {
  display: flex; flex-wrap: wrap; gap: .4rem;
  padding: .6rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: .7rem;
}

/* ---------- drawing tools ---------- */
.draw-toolbar {
  background: #fff; border: 2px solid var(--brand);
  border-radius: var(--radius); padding: .6rem .75rem;
  box-shadow: var(--shadow-sm);
}
.draw-toolbar-label {
  font-size: .82rem; font-weight: 700; color: var(--brand-dark);
  margin-bottom: .5rem;
}
.draw-modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.draw-modes .btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .2rem; padding: .55rem .3rem; line-height: 1.2;
}
.draw-modes .btn i { font-size: 1.25rem; }
.draw-modes .btn span { font-size: .74rem; font-weight: 600; }
.draw-modes .btn.active { box-shadow: 0 0 0 .18rem rgba(46,125,50,.22); }

@media (max-width: 575.98px) {
  .draw-modes { grid-template-columns: repeat(2, 1fr); }
  .draw-modes .btn span { font-size: .8rem; }
}

/* While drawing, suppress the text selection ghosting on the tiles */
.leaflet-container.drawing,
.leaflet-container.drawing * { -webkit-user-select: none; user-select: none; }
.map-legend {
  position: absolute; bottom: 14px; inset-inline-start: 14px; z-index: 500;
  background: rgba(255,255,255,.95); border-radius: 10px; padding: .5rem .7rem;
  font-size: .78rem; box-shadow: var(--shadow-md); max-width: 190px;
}
.map-legend .legend-row { display: flex; align-items: center; gap: .45rem; margin-bottom: .2rem; }
.legend-swatch { width: 14px; height: 14px; border-radius: 3px; flex: 0 0 14px; }

.gps-indicator {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .8rem; padding: .2rem .55rem; border-radius: 999px;
}
.gps-good { background: #e8f5e9; color: #1b5e20; }
.gps-ok   { background: #fff8e1; color: #e65100; }
.gps-poor { background: #ffebee; color: #b71c1c; }

/* ---------- connection bar ---------- */
.connection-bar {
  position: fixed; top: 0; inset-inline: 0; z-index: 2000;
  background: #b71c1c; color: #fff; text-align: center;
  padding: .35rem .8rem; font-size: .82rem; font-weight: 600;
}
.connection-bar.syncing { background: #ef6c00; }
.connection-bar.online  { background: var(--ok); }
/* The bar is fixed at the very top, so the sticky navbar has to dock below it
   instead of sliding underneath. */
body.is-offline { padding-top: 30px; }
body.is-offline .app-navbar { top: 30px; }

/* ---------- mobile tab bar ---------- */
.mobile-tabbar {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 1030;
  background: #fff; border-top: 1px solid var(--line);
  display: flex; justify-content: space-around; align-items: stretch;
  /* The home-indicator inset has to grow the bar, not eat into the icons. */
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 10px rgba(16,24,40,.06);
}
.mobile-tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--ink-soft); font-size: .68rem; padding: .3rem 0;
}
.mobile-tabbar a i { font-size: 1.25rem; }
.mobile-tabbar a.active { color: var(--brand); font-weight: 700; }
.mobile-tabbar a.tab-primary i { font-size: 1.9rem; color: var(--brand); margin-top: -12px; }

@media (max-width: 991.98px) {
  .app-main { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 12px); }
}

/* ---------- timeline ---------- */
.timeline { position: relative; padding-inline-start: 1.4rem; }
.timeline::before {
  content: ''; position: absolute; inset-inline-start: .38rem; top: .35rem; bottom: .35rem;
  width: 2px; background: var(--line);
}
.timeline-item { position: relative; padding-bottom: .85rem; }
.timeline-item::before {
  content: ''; position: absolute; inset-inline-start: -1.17rem; top: .32rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--brand); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--line);
}

/* ---------- misc ---------- */
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--ink-soft); }
.empty-state i { font-size: 2.8rem; opacity: .35; display: block; margin-bottom: .6rem; }

.photo-thumb {
  width: 44px; height: 44px; border-radius: 9px; object-fit: cover;
  border: 1px solid var(--line); background: #f1f3f5;
}
.photo-lg { width: 110px; height: 110px; border-radius: 12px; object-fit: cover; border: 2px solid var(--line); }

.progress-thin { height: 6px; border-radius: 3px; }

/* Pagination is the densest tap area in the app — give it real targets. */
@media (max-width: 767.98px) {
  .pagination { gap: .25rem; }
  .pagination .page-link {
    min-width: 42px; min-height: 42px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
  }
}

.filter-bar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .75rem; margin-bottom: .85rem;
}

.kv-row { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px dashed var(--line); }
.kv-row:last-child { border-bottom: 0; }
.kv-key { color: var(--ink-soft); font-size: .85rem; }
.kv-val { font-weight: 600; text-align: end; }

.sticky-actions {
  position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line);
  padding: .7rem; margin: 1rem -.75rem -1rem; z-index: 10;
}
@media (max-width: 991.98px) {
  .sticky-actions { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
}

/* ---------- print ---------- */
@media print {
  .app-navbar, .app-sidebar, .mobile-tabbar, .connection-bar,
  .no-print, .btn, .filter-bar, .sticky-actions, .alert-dismissible .btn-close { display: none !important; }
  .app-shell, .app-main { display: block; }
  body { background: #fff; font-size: 12px; padding: 0; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .table { font-size: 11px; }
  .table thead { display: table-header-group; }
  tr, img { break-inside: avoid; }
  a[href]::after { content: none !important; }
  .print-only { display: block !important; }
  @page { margin: 12mm; size: A4; }
}
.print-only { display: none; }

/* ---------- print documents (receipt / parcel sheet) ---------- */
.doc-sheet {
  max-width: 800px; margin: 1rem auto; background: #fff; padding: 1.6rem;
  border: 1px solid var(--line); border-radius: 10px;
}
.doc-header { text-align: center; border-bottom: 3px double var(--brand); padding-bottom: .8rem; margin-bottom: 1.1rem; }
.doc-title { font-size: 1.45rem; font-weight: 800; color: var(--brand-dark); }
.doc-sub { color: var(--ink-soft); font-size: .88rem; }
.doc-signatures { display: flex; justify-content: space-between; gap: 2rem; margin-top: 2.4rem; }
.doc-sign-box { flex: 1; text-align: center; }
.doc-sign-line { border-top: 1px solid #333; margin-top: 2.6rem; padding-top: .35rem; font-size: .85rem; }

@media print {
  .doc-sheet { max-width: none; margin: 0; border: 0; padding: 0; }
}
