/* ============================================================
   Fusion Time Clock — black/gold skin
   Targets the AIO Time Clock Lite front end + [fusion_employee_profile]
   Brand: #111 black, #e8b84b gold, Barlow Condensed / Open Sans
   ============================================================ */

:root {
  --ftc-black: #111111;
  --ftc-panel: #1a1a1a;
  --ftc-line:  #2c2c2c;
  --ftc-gold:  #e8b84b;
  --ftc-gold-dark: #c99a2e;
  --ftc-text:  #f2f2f2;
  --ftc-muted: #9a9a9a;
  --ftc-red:   #d64545;
  --ftc-green: #3fbf6f;
}

/* ---------- AIO time clock card ---------- */

#aio_time_clock {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 28px 16px;
  box-sizing: border-box;
}

#aio_time_clock .aio_form {
  background: var(--ftc-panel);
  border: 1px solid var(--ftc-line);
  border-top: 4px solid var(--ftc-gold);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  max-width: 440px;
  margin: 0 auto;
  padding: 34px 30px 30px;
  box-sizing: border-box;
}

#aio_time_clock .aio_form h2 {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ftc-text);
  margin: 0 0 4px;
}

/* Collapse the Lite template's empty spacer divs (JS-tagged) */
#aio_time_clock .ftc-collapse-spacer { height: 0 !important; }

#aio_time_clock .aio_form p,
#aio_time_clock .aio_form #clockMessage,
#aio_time_clock .aio_form #jsTimer {
  font-family: 'Open Sans', sans-serif;
  color: var(--ftc-muted);
  font-size: 14px;
  margin: 4px 0;
}

#aio_time_clock .aio_form #jsTimer strong,
#aio_time_clock .aio_form #clockMessage strong {
  color: var(--ftc-text);
}

#aio_time_clock .aio_form #jsTimer {
  font-size: 15px;
  color: var(--ftc-gold);
  margin-top: 10px;
}

/* Main clock button — gold when clocking in, red when clocking out */
#aio_time_clock .aio_form button#aio_clock_button {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--ftc-gold);
  color: #111;
  border: 0;
  border-radius: 8px;
  padding: 18px;
  width: 100%;
  margin: 6px 0 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}
#aio_time_clock .aio_form button#aio_clock_button:hover {
  background: var(--ftc-gold-dark);
}
#aio_time_clock .aio_form button#aio_clock_button:active {
  transform: scale(0.98);
}
#aio_time_clock .aio_form button#aio_clock_button.ftc-out {
  background: var(--ftc-red);
  color: #fff;
}
#aio_time_clock .aio_form button#aio_clock_button.ftc-out:hover {
  background: #b73737;
}

/* Injected Timecard / Jobs nav */
#aio_time_clock .ftc-clock-nav {
  display: grid;
  gap: 10px;
  margin: 14px 0 4px;
}
#aio_time_clock .ftc-clock-nav.ftc-two { grid-template-columns: 1fr 1fr; }
#aio_time_clock .ftc-clock-nav.ftc-one { grid-template-columns: 1fr; }

#aio_time_clock .ftc-clock-link {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  background: transparent;
  color: var(--ftc-gold);
  border: 1px solid var(--ftc-gold);
  border-radius: 8px;
  padding: 13px 10px;
  transition: all 0.2s ease;
}
#aio_time_clock .ftc-clock-link:hover {
  background: var(--ftc-gold);
  color: #111;
}

/* Secondary buttons (logout / new shift) */
#aio_time_clock .aio_form .aioUserButton,
#aio_time_clock .aio_form #newShift {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  color: var(--ftc-muted);
  border: 1px solid var(--ftc-line);
  border-radius: 8px;
  padding: 11px;
  width: 100%;
  margin: 14px 0 0;
  cursor: pointer;
  transition: all 0.2s ease;
}
#aio_time_clock .aio_form .aioUserButton:hover,
#aio_time_clock .aio_form #newShift:hover {
  border-color: var(--ftc-gold);
  color: var(--ftc-gold);
}

#aio_time_clock .aio-spinner {
  border-left-color: #111;
}

/* ---------- Fusion employee profile ---------- */

.ftc-card {
  background: var(--ftc-panel);
  border: 1px solid var(--ftc-line);
  border-top: 4px solid var(--ftc-gold);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  padding: 32px;
  max-width: 860px;
  margin: 24px auto;
  font-family: 'Open Sans', sans-serif;
  color: var(--ftc-text);
}

.ftc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.ftc-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ftc-text);
  margin: 0;
}

.ftc-sub {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--ftc-muted);
}

.ftc-muted { color: var(--ftc-muted); }

.ftc-nav { display: flex; gap: 8px; }

.ftc-btn {
  display: inline-block;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border-radius: 6px;
  padding: 8px 14px;
  transition: all 0.2s ease;
}
.ftc-btn-ghost {
  color: var(--ftc-gold);
  border: 1px solid var(--ftc-gold);
  background: transparent;
}
.ftc-btn-ghost:hover { background: var(--ftc-gold); color: #111; }
.ftc-disabled { opacity: 0.3; pointer-events: none; }

/* Stat strip */
.ftc-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.ftc-stat {
  background: var(--ftc-black);
  border: 1px solid var(--ftc-line);
  border-radius: 8px;
  padding: 14px 16px;
}

.ftc-stat-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ftc-muted);
  margin-bottom: 4px;
}

.ftc-stat-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 30px;
  color: var(--ftc-gold);
  line-height: 1;
}

.ftc-live-dot {
  display: inline-block;
  width: 9px; height: 9px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--ftc-green);
  vertical-align: 6px;
  animation: ftc-pulse 1.6s infinite;
}
@keyframes ftc-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
  .ftc-live-dot { animation: none; }
}

/* Badges */
.ftc-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 20px;
  padding: 3px 10px;
  margin-left: 8px;
  vertical-align: 1px;
}
.ftc-badge-open   { background: rgba(232, 184, 75, 0.15); color: var(--ftc-gold); border: 1px solid var(--ftc-gold); }
.ftc-badge-closed { background: rgba(63, 191, 111, 0.15); color: var(--ftc-green); border: 1px solid var(--ftc-green); }
.ftc-badge-live   { background: rgba(63, 191, 111, 0.15); color: var(--ftc-green); border: 1px solid var(--ftc-green); margin-left: 0; }

/* Shift table */
.ftc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

/* Beat theme (Divi) table styles that force white cell backgrounds */
.ftc-card .ftc-table,
.ftc-card .ftc-table thead,
.ftc-card .ftc-table tbody,
.ftc-card .ftc-table tfoot,
.ftc-card .ftc-table tr,
.ftc-card .ftc-table th,
.ftc-card .ftc-table td {
  background: transparent !important;
  background-color: transparent !important;
}

.ftc-table th {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ftc-gold) !important;
  border-bottom: 2px solid var(--ftc-gold);
  padding: 10px 12px;
}

.ftc-table td {
  padding: 12px;
  border-bottom: 1px solid var(--ftc-line);
  color: var(--ftc-text) !important;
}

.ftc-card .ftc-table tbody tr:hover,
.ftc-card .ftc-table tbody tr:hover td { background: rgba(232, 184, 75, 0.06) !important; }

/* FFO job label under the shift date */
.ftc-jobline {
  font-size: 12px;
  color: var(--ftc-gold);
  margin-top: 3px;
  line-height: 1.4;
}

.ftc-num { text-align: right; font-variant-numeric: tabular-nums; }
.ftc-table th.ftc-num { text-align: right; }

/* Mobile: stack table rows into cards */
@media (max-width: 600px) {
  #aio_time_clock { padding: 18px 14px; }
  #aio_time_clock .aio_form { padding: 26px 20px 22px; }
  #aio_time_clock .aio_form h2 { font-size: 28px; }
  #aio_time_clock .aio_form button#aio_clock_button { font-size: 20px; padding: 16px; }

  .ftc-card { padding: 20px; }
  .ftc-head { flex-direction: column; }
  .ftc-table thead { display: none; }
  .ftc-card .ftc-table tr {
    display: block;
    background: var(--ftc-black) !important;
    background-color: var(--ftc-black) !important;
    border: 1px solid var(--ftc-line);
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 6px 0;
  }
  .ftc-card .ftc-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 0;
    padding: 7px 14px;
    color: var(--ftc-text) !important;
  }
  .ftc-table td::before {
    content: attr(data-th);
    font-weight: 600;
    color: var(--ftc-muted);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.08em;
    padding-right: 12px;
    align-self: center;
  }
  .ftc-num { text-align: left; }
}

/* Admin badges (payroll page) */
.ftc-admin-badge {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 20px;
  padding: 4px 12px;
}
.ftc-admin-badge-open   { background: #fdf3dc; color: #8a6210; border: 1px solid #e8b84b; }
.ftc-admin-badge-closed { background: #e2f6ea; color: #1e7a44; border: 1px solid #3fbf6f; }
