:root {
  --bg: #f0ebe4;          /* Best Rental cream */
  --card: #ffffff;
  --ink: #1c2733;         /* brand neutral dark */
  --muted: #6b7a8c;
  --accent: #811E2D;      /* Best Rental maroon */
  --accent-dark: #6b1825; /* hover shade */
  --ok: #4a7c3f;          /* landscaping green */
  --bad: #c93c37;
  --line: #e5ddd2;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Source Sans 3', -apple-system, "Segoe UI",
       Roboto, sans-serif; background: var(--bg); color: var(--ink); }
h1, h2, .brand, button, .btn {
  font-family: 'Oswald', 'Segoe UI', Arial, sans-serif; }
h1, h2 { text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
      background: var(--card); padding: 10px 24px;
      border-bottom: 3px solid var(--accent); }
nav .brand { font-weight: 700; margin-right: 8px; }
nav .brand img { display: block; height: 34px; width: auto; }
nav a { color: var(--ink); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--accent); }
nav .spacer { flex: 1; }
nav .who { color: var(--muted); font-size: 14px; }
.badge { background: var(--accent); color: #fff; border-radius: 10px;
         padding: 1px 7px; font-size: 12px; margin-left: 4px; }
main { max-width: 1060px; margin: 24px auto; padding: 0 16px; }
h1 { font-size: 22px; } h2 { font-size: 16px; margin-top: 28px; }
.card { background: var(--card); border: 1px solid var(--line);
        border-radius: 10px; padding: 18px 20px; margin-bottom: 18px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.flash { background: #fff8e1; border: 1px solid #f0dc9b; border-radius: 8px;
         padding: 10px 14px; margin-bottom: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px;
         border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
.status-pending  { color: #9a6700; font-weight: 600; }
.status-approved { color: var(--ok); font-weight: 600; }
.status-denied   { color: var(--bad); font-weight: 600; }
form.inline { display: inline; }
input, select, textarea {
  font: inherit; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; width: 100%; max-width: 340px; }
textarea { max-width: 480px; }
label { display: block; margin: 12px 0 4px; font-size: 14px;
        color: var(--muted); }
button, .btn {
  font-size: 14px; letter-spacing: 1px; text-transform: uppercase;
  padding: 8px 16px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  text-decoration: none; }
button.primary { background: var(--accent); color: #fff; border: none; }
button.primary:hover { background: var(--accent-dark); }
button.ok  { background: var(--ok);  color: #fff; border: none; }
button.bad { background: var(--bad); color: #fff; border: none; }
button.small { padding: 3px 10px; font-size: 12px; }
.sched { table-layout: fixed; }
.sched td { min-height: 52px; font-size: 13px; }
.sched .today { background: #f7f1ea; }
.shift { background: #f6ebed; border: 1px solid #dfc2c8; border-radius: 6px;
         padding: 3px 6px; margin: 2px 0; display: block; }
.offday { background: #fdecea; border: 1px solid #f5c6c3; color: var(--bad);
          border-radius: 6px; padding: 3px 6px; display: inline-block; }
.cellplus { display: block; width: 100%; padding: 6px 0; font-size: 15px;
            color: #cdc2b4; background: transparent; border: 1px dashed
            transparent; border-radius: 6px; cursor: pointer;
            text-transform: none; letter-spacing: 0; }
td:hover .cellplus { color: var(--accent); border-color: #dfc2c8;
                     background: #faf5f6; }
.weeknav { display: flex; gap: 10px; align-items: center; margin: 12px 0; }
.muted { color: var(--muted); font-size: 13px; }
.addshift { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.addshift label { margin: 0 0 4px; }
.addshift > div { display: flex; flex-direction: column; }
.addshift input, .addshift select { width: auto; }
.login-wrap { max-width: 380px; margin: 8vh auto; text-align: left; }
.login-logo { display: block; margin: 0 auto 10px; max-width: 240px;
              width: 100%; height: auto; }
.login-tagline { text-align: center; font-family: 'Oswald', Arial, sans-serif;
                 font-size: 11px; letter-spacing: 3px; text-transform:
                 uppercase; color: var(--muted); margin-bottom: 18px; }
.dayoff { color: #b3a998; font-size: 12px; font-style: italic; }
.draftbadge { background: #fff3cd; color: #9a6700; border: 1px solid #e6cf8a;
              font-size: 12px; padding: 2px 10px; border-radius: 4px;
              letter-spacing: 1px; margin-left: 10px; vertical-align: middle; }
.pubbadge { background: #e8f2e6; color: #4a7c3f; border: 1px solid #bcd8b5;
            font-size: 12px; padding: 2px 10px; border-radius: 4px;
            letter-spacing: 1px; margin-left: 10px; vertical-align: middle; }
.print-header { display: none; }
.navlinks { display: contents; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ------------------------------------------------ phones */
@media (max-width: 640px) {
  nav { gap: 12px; padding: 10px 14px; }
  nav .brand img { height: 28px; }
  nav .who { display: none; }
  .navlinks { display: flex; order: 10; width: 100%; overflow-x: auto;
              gap: 18px; white-space: nowrap; padding: 4px 0 2px;
              -webkit-overflow-scrolling: touch; }
  .navlinks a { flex: 0 0 auto; font-size: 14px; }
  main { margin: 14px auto; padding: 0 10px; }
  h1 { font-size: 19px; }
  .card { padding: 14px 14px; }
  .weeknav { flex-wrap: wrap; }
  .weeknav .btn, .weeknav button { font-size: 13px; padding: 7px 10px; }
  /* schedule stays readable; swipe sideways instead of squeezing */
  .table-scroll .sched { min-width: 720px; }
  .table-scroll table { min-width: 640px; }
  .addshift { gap: 8px; }
}

/* ------------------------------------------------ printing */
@media print {
  @page { size: landscape; margin: 10mm; }
  nav, .weeknav, .no-print, .flash { display: none !important; }
  body { background: #fff; }
  main { max-width: 100%; margin: 0; padding: 0; }
  h1 { display: none; }
  .print-header { display: block; text-align: center;
                  font-family: 'Oswald', Arial, sans-serif;
                  font-size: 18px; letter-spacing: 2px;
                  color: #811E2D; margin-bottom: 10px; }
  .card { border: 1px solid #bbb; box-shadow: none; border-radius: 0;
          padding: 10px 12px; margin-bottom: 10px;
          page-break-inside: avoid; }
  .table-scroll { overflow: visible; }
  .table-scroll .sched, .table-scroll table { min-width: 0; }
  .sched { font-size: 11px; }
  .sched th, .sched td { padding: 4px 5px; border: 1px solid #ccc; }
  .sched .today { background: #fff; }
  .shift { background: #fff; border: 1px solid #999; padding: 2px 4px; }
  .offday { background: #fff; border: 1px solid #999; color: #000;
            font-weight: 600; }
}


/* ---------------------------------------------- attendance grid */
.attgrid { font-size: 12px; table-layout: fixed; }
.attgrid th, .attgrid td { border: 1px solid #e5ddd2; text-align: center;
                           padding: 2px; }
.attgrid th { min-width: 22px; }
.attgrid .momlabel { font-family: 'Oswald', Arial, sans-serif;
                     text-transform: uppercase; font-size: 11px;
                     text-align: left; padding-left: 6px; white-space: nowrap; }
.attgrid td.att { padding: 0; }
.attgrid td.att select { width: 100%; border: none; background: transparent;
                         font: inherit; font-size: 12px; text-align: center;
                         text-align-last: center; -webkit-appearance: none;
                         appearance: none; padding: 4px 0; cursor: pointer;
                         color: #333; }
.att-none { background: #f3f0ea; }
.att-sched { background: #efe7db; }       /* scheduled, nothing marked */
.att-OFF { background: #b6d7a8; }          /* requested off  (green) */
.att-S   { background: #ffe599; }          /* sick           (yellow) */
.att-T   { background: #f9cb9c; }          /* tardy          (orange) */
.att-NC  { background: #ea9999; }          /* no-call        (red)   */
.attgrid td.att-OFF { font-family: 'Oswald', Arial, sans-serif;
                      font-size: 10px; color: #38571f; }
.attgrid .ct { font-weight: 600; background: #faf7f4; }
.att-key { display: inline-block; padding: 0 6px; border-radius: 3px;
           font-weight: 700; font-size: 12px; }

/* ---------------------------------------------- job application */
.applywrap { max-width: 640px; margin: 0 auto; }
.apply-head { text-align: center; padding: 8px 0 18px; }
.apply-title { font-family: 'Oswald', Arial, sans-serif; text-transform:
               uppercase; letter-spacing: 1px; font-size: 18px;
               color: var(--ink); margin-top: 6px; }
.appform .appsec { background: var(--accent); color: #fff; font-family:
                   'Oswald', Arial, sans-serif; text-transform: uppercase;
                   letter-spacing: 1px; font-size: 13px; padding: 7px 12px;
                   border-radius: 6px; margin: 22px 0 12px; }
.appform label { font-size: 13px; }
.appform input, .appform textarea { max-width: 100%; width: 100%;
                                     background: #faf3ec; }
.appform .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.appform .grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px 14px; }
.appform .grid4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr;
                  gap: 8px; }
.appform .edu { margin-bottom: 12px; }
.appform .edulbl, .appform .jobn { font-family: 'Oswald', Arial, sans-serif;
                                   text-transform: uppercase; font-size: 12px;
                                   color: var(--accent); margin: 6px 0 4px; }
.appform .job { border: 1px solid var(--line); border-radius: 8px;
                padding: 10px 12px; margin-bottom: 12px; }
.appform .chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 6px; }
.appform .chip { display: inline-flex; align-items: center; gap: 6px;
                 font-size: 14px; padding: 6px 12px; border: 1px solid
                 var(--line); border-radius: 20px; margin: 0; cursor: pointer; }
.appform .chip input { width: auto; }
.appform .certtext { font-size: 12.5px; color: #4a4a44; line-height: 1.55;
                     background: #faf7f4; border: 1px solid var(--line);
                     border-radius: 8px; padding: 10px 12px; }
.appform .certbox { display: flex; gap: 8px; align-items: flex-start;
                    font-size: 13px; }
.appform .certbox input { width: auto; margin-top: 2px; }
.appform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.appstatus { font-size: 12px; padding: 1px 8px; border-radius: 10px;
             text-transform: capitalize; }
.s-new { background: #fdecea; color: #b23c36; }
.s-reviewed { background: #fff3cd; color: #9a6700; }
.s-interviewed { background: #e7f0ff; color: #1f5fa5; }
.s-hired { background: #e8f2e6; color: #4a7c3f; }
.s-passed { background: #eee; color: #777; }
@media (max-width: 640px) {
  .appform .grid2, .appform .grid3, .appform .grid4 {
    grid-template-columns: 1fr; }
}

/* --------------------------- cash drawer */
.cashtop { display: flex; justify-content: space-between; align-items: center;
           gap: 16px; flex-wrap: wrap; }
.bignum { font-family: 'Oswald', Arial, sans-serif; font-size: 34px;
          color: var(--accent); line-height: 1.1; }
.cashcols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cashcols .card { margin-bottom: 0; }
.okpill { background: #e8f2e6; color: #3b6d11; border: 1px solid #bcd8b5;
          font-size: 12px; padding: 2px 10px; border-radius: 10px; }
.diffpill { background: #fdecea; color: #b23c36; border: 1px solid #f0b7b2;
            font-size: 12px; padding: 2px 10px; border-radius: 10px; }
.outpill { background: #fff3cd; color: #9a6700; font-size: 12px;
           padding: 2px 9px; border-radius: 10px; }
.pullpill { background: #eef3fb; color: #2c5d94; font-size: 12px;
            padding: 2px 9px; border-radius: 10px; }
@media (max-width: 640px) { .cashcols { grid-template-columns: 1fr; } }

/* --------------------------- closed days */
.sched th.closedcol, .sched td.closedcol { background: #f2efe9; }
.closedtag { font-family: 'Oswald', Arial, sans-serif; font-size: 9.5px;
             text-transform: uppercase; letter-spacing: .5px;
             color: var(--accent); margin-top: 2px; line-height: 1.2; }
.closedcell { display: block; font-size: 12px; font-style: italic;
              color: #9a8f80; }

/* --------------------------- shift picker in a schedule cell */
.cellpick { width: 100%; max-width: 100%; border: 1px dashed transparent;
            background: transparent; font: inherit; font-size: 13px;
            padding: 4px 2px; border-radius: 6px; cursor: pointer;
            color: #b3a998; text-align: center; text-align-last: center;
            -webkit-appearance: none; appearance: none; }
td:hover .cellpick { color: var(--accent); border-color: #dfc2c8;
                     background: #faf5f6; }

/* --------------------------- team contacts */
.teamlist { display: grid; gap: 0; }
.teamrow { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 12px;
           padding: 11px 4px; border-bottom: 1px solid var(--line);
           align-items: baseline; }
.teamrow .tname { font-weight: 600; }
.teamrow a { color: var(--accent); text-decoration: none; }
.teamrow a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .teamrow { grid-template-columns: 1fr; gap: 2px; padding: 12px 4px; }
  .teamrow .tcontact a { font-size: 16px; }
}

/* --------------------------- new hire packet docs */
.docrow { display: flex; align-items: center; gap: 10px; padding: 8px 4px;
          border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.docrow .docname { flex: 1; font-size: 15px; min-width: 160px; }
.docrow .docacts { display: flex; gap: 4px; align-items: center; }
.docrow button[disabled] { opacity: 0.35; cursor: default; }

/* --------------------------- schedule order */
.orderrow { display: flex; align-items: center; gap: 10px; padding: 7px 4px;
            border-bottom: 1px solid var(--line); max-width: 420px; }
.orderrow .ordn { color: var(--muted); font-size: 13px; width: 22px; }
.orderrow .ordname { flex: 1; font-size: 15px; }
.orderrow button[disabled] { opacity: 0.35; cursor: default; }

/* --------------------------- shop list */
.shopwrap { max-width: 560px; margin: 0 auto; }
.shopadd { display: flex; gap: 8px; margin: 12px 0 20px; }
.shopadd input { flex: 1; max-width: none; background: #faf3ec; }
.shopadd button { flex: 0 0 auto; }
.shopsec { font-family: 'Oswald', Arial, sans-serif; text-transform: uppercase;
           letter-spacing: 1px; font-size: 12px; color: var(--muted);
           margin: 18px 0 4px; }
.shoprow { display: flex; align-items: center; gap: 12px; width: 100%;
           text-align: left; background: #fff; border: 1px solid var(--line);
           border-radius: 8px; margin: 6px 0; padding: 13px 14px;
           cursor: pointer; text-transform: none; letter-spacing: 0;
           font-family: inherit; font-size: 16px; color: var(--ink); }
.shoprow:hover { border-color: var(--accent); }
.shoprow .box { width: 22px; height: 22px; border: 2px solid #b6a58f;
                border-radius: 6px; flex: 0 0 auto; display: flex;
                align-items: center; justify-content: center; }
.shoprow .txt { flex: 1; }
.shoprow .by { display: block; font-size: 12px; color: var(--muted);
               text-transform: none; letter-spacing: 0; margin-top: 2px; }
.shoprow.done { background: #f6f3ee; color: #9a9488; }
.shoprow.done .box { background: var(--ok); border-color: var(--ok);
                     color: #fff; }
.shoprow.done .chk { font-style: normal; font-size: 14px; }

/* --------------------------- application detail (admin, compact) */
.appname { margin: 0; }
.appmeta { margin: 2px 0 14px; }
.appcard { padding: 12px 16px; margin-bottom: 12px; }
.appcardh { margin: 0 0 8px; font-size: 14px; }
.appview { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.appview .fld { display: grid; grid-template-columns: 128px 1fr; gap: 10px;
                align-items: baseline; padding: 4px 0;
                border-bottom: 1px solid #efe9df; font-size: 13.5px; }
.appview .fld .k { color: var(--muted); font-size: 12.5px; }
.appview .fld.wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .appview { grid-template-columns: 1fr; } }

@media print {
  .appname { display: block !important; font-size: 15px; margin: 0 0 2px; }
  .appmeta { display: block !important; font-size: 10px; margin: 0 0 6px; }
  .appcard { padding: 6px 10px; margin-bottom: 6px; border: 1px solid #ccc;
             page-break-inside: avoid; }
  .appcardh { font-size: 11px; margin: 0 0 4px; }
  .appview { gap: 0 18px; }
  .appview .fld { font-size: 10px; padding: 1.5px 0;
                  border-bottom: 1px solid #eee; grid-template-columns: 92px 1fr; }
  .appview .fld .k { font-size: 9.5px; }
}
