/* J & C shared theme — loaded LAST on every page so it can polish without
   rewriting page styles. Safe to extend: change a value here and every page
   follows. Colours below are your existing brand colours. */
:root{
  --jc-ink:#151606;
  --jc-lime:#dbe72e;
  --jc-blue:#70cae1;
  --jc-bg:#f4f5f0;
  --jc-line:#e1e2dc;
  --jc-muted:#66747b;
  --jc-danger:#a00000;
  --jc-ok:#08763e;
  --jc-radius:12px;
}

html{-webkit-text-size-adjust:100%;text-size-adjust:100%}

/* One modern font stack instead of plain Arial. Uses the font already
   installed on each device (Segoe UI on Windows, SF on iPhone/Mac, Roboto on
   Android), so there is nothing to download and nothing to break offline. */
body,button,input,select,textarea{
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}

/* Clear keyboard focus ring (accessibility). */
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,
textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible{
  outline:3px solid var(--jc-blue);
  outline-offset:2px;
}

/* Faster, cleaner taps on phones. */
a,button,select,summary,[role="button"]{touch-action:manipulation;-webkit-tap-highlight-color:transparent}

/* Stops iPhones from zooming the page when a field is tapped. */
@media (max-width:700px){
  input,select,textarea{font-size:16px}
}

/* Respect "reduce motion" device setting. */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}

/* ---- Round 2: readability on phones (safe, only affects small screens) ---- */
@media (max-width:700px){
  td,th{font-size:14px;line-height:1.35}
  label{font-size:14px}
  /* wide admin tables scroll sideways instead of squashing */
  .table-wrap,.tableWrap,.table-container,.panel-body{overflow-x:auto;-webkit-overflow-scrolling:touch}
}

/* Ready-to-use helpers for loading and empty states (used as pages adopt them) */
.jc-skeleton{background:linear-gradient(90deg,#ececE6 25%,#f6f6f1 37%,#ececE6 63%);background-size:400% 100%;animation:jcSkel 1.4s ease infinite;border-radius:8px;min-height:1em}
@keyframes jcSkel{0%{background-position:100% 50%}100%{background-position:0 50%}}
.jc-empty{padding:24px 16px;text-align:center;color:var(--jc-muted);font-size:15px}

/* ---- Round 3: admin look (from your dashboard + employees screenshots) ---- */
/* Dashboard "Supplies & Issues": date no longer runs into "View supplies" */
.attention-item>div:last-child{display:flex;flex-direction:column;align-items:flex-end;gap:3px;text-align:right}
.attention-time{font-size:12px;color:var(--jc-muted);white-space:nowrap}
.attention-item b{font-size:14px;line-height:1.35}
.attention-item small{font-size:13px;line-height:1.4}

/* Schedule table: calmer status pills and quieter buttons (less shouting) */
.status{border-radius:999px;padding:5px 11px;font-size:12px;letter-spacing:.02em;white-space:nowrap}
.status.missed{background:#fdecee;color:#b3203a;font-weight:800}
.admin-action,.leave-btn{min-height:34px;border-radius:8px;font-size:13px;font-weight:700;text-transform:lowercase;letter-spacing:0;transition:background .15s,border-color .15s,opacity .15s}
.admin-action::first-letter,.leave-btn::first-letter{text-transform:uppercase}
.leave-btn{background:#fff;border:1px solid var(--jc-line);color:var(--jc-ink)}
.leave-btn:hover{background:#f7fad0;border-color:var(--jc-lime)}
table tbody tr{transition:background .12s}
table tbody tr:hover{background:#fafbf4}

/* All buttons: gentle press feedback, clear disabled look */
button:not(:disabled):active{transform:scale(.98)}
button:disabled{cursor:not-allowed}

/* Cleaner check-in: bigger, easier to hit with a thumb */
.check-in-button{min-height:60px;font-size:19px;font-weight:800}

/* Employees cards: tidier action buttons */
.employee-card button,.employee-card .btn{border-radius:8px}
/* keep "Check in" and "Sick / vac" side by side */
td:has(>.admin-action),td:has(>.leave-btn){white-space:nowrap}
.admin-action,.leave-btn{padding:7px 11px}
