/* ── Right On Concrete Employee Portal ───────────────────────────────────── */
:root {
  --orange:      #E8500A;
  --orange-dark: #C0400A;
  --charcoal:    #1C1C1C;
  --gray-dark:   #2E2E2E;
  --gray-mid:    #5A5A5A;
  --gray-light:  #E8E8E8;
  --bg:          #F4F4F2;
  --white:       #FFFFFF;
  --green:       #2E7D32;
  --red:         #C62828;
  --radius:      8px;
  --shadow:      0 2px 12px rgba(0,0,0,0.10);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DM Sans', 'Helvetica Neue', sans-serif; background: var(--bg); color: var(--charcoal); font-size: 16px; line-height: 1.5; min-height: 100vh; }
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');
.topnav { background: var(--charcoal); padding: 0 1.25rem; display: flex; align-items: center; justify-content: space-between; height: 52px; position: sticky; top: 0; z-index: 100; }
.topnav .brand { color: var(--orange); font-weight: 700; font-size: 1rem; letter-spacing: 0.02em; text-decoration: none; }
.topnav .nav-right { display: flex; align-items: center; gap: 1rem; }
.topnav a { color: var(--gray-light); text-decoration: none; font-size: 0.875rem; font-weight: 500; }
.topnav a:hover { color: var(--white); }
.lang-btn { background: var(--gray-dark); color: var(--gray-light) !important; padding: 4px 10px; border-radius: 4px; font-size: 0.8rem !important; }
.page { max-width: 680px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.page-title { font-size: 1.4rem; font-weight: 700; color: var(--charcoal); margin-bottom: 1.25rem; }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; margin-bottom: 1rem; }
.login-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--charcoal); padding: 2rem 1.25rem; }
.login-logo { width: 64px; height: 64px; background: var(--orange); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.login-logo span { color: var(--white); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.04em; }
.login-box { background: var(--white); border-radius: 12px; padding: 2rem 1.75rem; width: 100%; max-width: 380px; box-shadow: 0 8px 40px rgba(0,0,0,0.35); }
.login-box h1 { font-size: 1.3rem; font-weight: 700; color: var(--charcoal); margin-bottom: 0.25rem; }
.login-box .subtitle { font-size: 0.875rem; color: var(--gray-mid); margin-bottom: 1.75rem; }
.login-lang { display: flex; justify-content: flex-end; margin-bottom: 1.5rem; }
.login-lang a { font-size: 0.8rem; color: var(--gray-mid); text-decoration: none; border: 1px solid var(--gray-light); padding: 3px 10px; border-radius: 4px; }
.form-group { margin-bottom: 1.1rem; }
label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--gray-mid); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.4rem; }
input[type="text"], input[type="password"], input[type="tel"], input[type="number"], input[type="url"] { width: 100%; padding: 0.65rem 0.85rem; border: 1.5px solid var(--gray-light); border-radius: var(--radius); font-size: 1rem; font-family: inherit; color: var(--charcoal); background: var(--white); transition: border-color 0.15s; }
input:focus { outline: none; border-color: var(--orange); }
.btn { display: inline-block; padding: 0.7rem 1.4rem; border-radius: var(--radius); font-size: 0.95rem; font-weight: 600; font-family: inherit; cursor: pointer; border: none; text-decoration: none; text-align: center; transition: background 0.15s, transform 0.1s; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--orange); color: var(--white); width: 100%; padding: 0.8rem; font-size: 1rem; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-secondary { background: var(--gray-light); color: var(--charcoal); }
.btn-secondary:hover { background: #d8d8d6; }
.btn-danger { background: var(--red); color: var(--white); }
.btn-danger:hover { background: #a31515; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.82rem; }
.nav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.nav-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem 1rem; text-align: center; text-decoration: none; color: var(--charcoal); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; transition: box-shadow 0.15s, transform 0.1s; border-top: 3px solid var(--orange); }
.nav-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.14); transform: translateY(-2px); }
.nav-card .icon { font-size: 2rem; line-height: 1; }
.nav-card .label { font-size: 0.9rem; font-weight: 600; color: var(--charcoal); }
.table-wrap { overflow-x: auto; margin-top: 0.5rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th { text-align: left; padding: 0.6rem 0.75rem; background: var(--gray-light); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-mid); white-space: nowrap; }
td { padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--gray-light); color: var(--charcoal); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fafaf9; }
.doc-list { list-style: none; }
.doc-list li { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 0; border-bottom: 1px solid var(--gray-light); gap: 1rem; }
.doc-list li:last-child { border-bottom: none; }
.doc-label { font-weight: 500; font-size: 0.95rem; }
.info-row { display: flex; flex-direction: column; padding: 0.85rem 0; border-bottom: 1px solid var(--gray-light); }
.info-row:last-child { border-bottom: none; }
.info-row .info-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-mid); margin-bottom: 0.2rem; }
.info-row .info-value { font-size: 1rem; font-weight: 500; color: var(--charcoal); }
.flash { padding: 0.75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.9rem; font-weight: 500; }
.flash-success { background: #E8F5E9; color: var(--green); border: 1px solid #A5D6A7; }
.flash-error { background: #FFEBEE; color: var(--red); border: 1px solid #EF9A9A; }
.error-msg { color: var(--red); font-size: 0.875rem; margin-top: 0.75rem; text-align: center; font-weight: 500; }
.admin-topnav { background: var(--gray-dark); padding: 0 1.25rem; display: flex; align-items: center; justify-content: space-between; height: 48px; }
.admin-topnav .brand { color: var(--orange); font-weight: 700; font-size: 0.95rem; }
.admin-topnav .nav-right { display: flex; gap: 1rem; }
.admin-topnav a { color: var(--gray-light); text-decoration: none; font-size: 0.85rem; }
.admin-topnav a:hover { color: var(--white); }
.admin-badge { background: var(--orange); color: var(--white); font-size: 0.65rem; font-weight: 700; padding: 2px 6px; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.06em; vertical-align: middle; }
.emp-row { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 0; border-bottom: 1px solid var(--gray-light); gap: 1rem; flex-wrap: wrap; }
.emp-row:last-child { border-bottom: none; }
.emp-name { font-weight: 600; font-size: 0.95rem; }
.emp-phone { font-size: 0.82rem; color: var(--gray-mid); }
.emp-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.doc-builder-row { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; align-items: center; }
.doc-builder-row input { flex: 1; }
.remove-doc-btn { background: none; border: none; color: var(--red); font-size: 1.2rem; cursor: pointer; padding: 0 4px; line-height: 1; }
.section-divider { border: none; border-top: 1px solid var(--gray-light); margin: 1.5rem 0; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.text-muted { color: var(--gray-mid); font-size: 0.875rem; }
.text-center { text-align: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
@media (max-width: 420px) { .nav-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; } .nav-card { padding: 1.1rem 0.75rem; } .nav-card .icon { font-size: 1.6rem; } }
/* ── Timesheet Submission ─────────────────────────────────────────────────── */
.ts-hidden { display: none !important; }
.ts-header { margin-bottom: 1rem; }
.ts-employee-name { font-weight: 600; font-size: 1rem; color: var(--charcoal); margin-bottom: 0.1rem; }
.ts-week-label { font-size: 0.85rem; color: var(--gray-mid); }
.ts-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 0.75rem; overflow: hidden; }
.ts-day-card {}
.ts-day-header { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 1rem; cursor: pointer; user-select: none; }
.ts-day-header:active { background: #fafaf9; }
.ts-day-header-left { display: flex; flex-direction: column; gap: 1px; }
.ts-day-name { font-weight: 600; font-size: 0.95rem; color: var(--charcoal); }
.ts-day-date { font-size: 0.78rem; color: var(--gray-mid); }
.ts-day-header-right { display: flex; align-items: center; gap: 0.5rem; }
.ts-day-hrs { font-size: 0.875rem; font-weight: 600; color: var(--charcoal); }
.ts-ot-badge { background: #FFF3E0; color: #B85A00; font-size: 0.72rem; font-weight: 700; padding: 2px 7px; border-radius: 99px; }
.ts-off-badge { font-size: 0.75rem; color: var(--gray-mid); font-style: italic; }
.ts-chevron { color: var(--gray-mid); font-size: 1rem; }
.ts-day-body { border-top: 1px solid var(--gray-light); padding: 0.85rem 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.ts-toggle-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--gray-mid); cursor: pointer; }
.ts-toggle-row input { width: 16px; height: 16px; accent-color: var(--charcoal); flex-shrink: 0; }
.ts-time-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.ts-time-field label { display: block; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-mid); margin-bottom: 0.3rem; }
.ts-time-field select { width: 100%; padding: 0.55rem 0.75rem; border: 1.5px solid var(--gray-light); border-radius: var(--radius); font-size: 0.9rem; font-family: inherit; color: var(--charcoal); background: var(--white); appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235A5A5A' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.6rem center; }
.ts-time-field select:focus { outline: none; border-color: var(--orange); }
.ts-lunch-row { display: flex; align-items: center; }
.ts-lunch-btn { padding: 0.5rem 1rem; border-radius: 99px; font-size: 0.82rem; font-weight: 600; font-family: inherit; cursor: pointer; border: 1.5px solid; transition: all 0.15s; }
.ts-lunch-yes { background: #E8F5E9; color: var(--green); border-color: #A5D6A7; }
.ts-lunch-no  { background: var(--gray-light); color: var(--gray-mid); border-color: #ccc; }
.ts-day-pills { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem; }
.ts-pill { background: var(--bg); border-radius: 8px; padding: 0.6rem 0.4rem; text-align: center; }
.ts-pill-val { font-size: 1.1rem; font-weight: 700; color: var(--charcoal); }
.ts-pill-lbl { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-mid); margin-top: 2px; }
.ts-ot { color: #B85A00 !important; }
.ts-copy-btn { background: none; border: 1px dashed var(--gray-light); border-radius: var(--radius); padding: 0.45rem 0.85rem; font-size: 0.8rem; color: var(--gray-mid); cursor: pointer; font-family: inherit; text-align: left; }
.ts-copy-btn:hover { background: var(--bg); border-color: var(--gray-mid); }
.ts-jobs-section { display: flex; flex-direction: column; gap: 0.4rem; }
.ts-jobs-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-mid); }
.ts-job-tag { display: flex; align-items: center; gap: 0.5rem; background: var(--bg); border-radius: 8px; padding: 0.4rem 0.7rem; }
.ts-jt-num { font-size: 0.82rem; font-weight: 700; color: var(--charcoal); flex-shrink: 0; }
.ts-jt-addr { font-size: 0.78rem; color: var(--gray-mid); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-jt-remove { background: none; border: none; color: var(--gray-mid); cursor: pointer; font-size: 0.9rem; padding: 0 2px; flex-shrink: 0; }
.ts-add-job-btn { background: none; border: 1px dashed var(--gray-light); border-radius: 8px; padding: 0.5rem 0.85rem; font-size: 0.82rem; color: var(--gray-mid); cursor: pointer; font-family: inherit; text-align: left; }
.ts-add-job-btn:hover { background: var(--bg); }
.ts-week-totals { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.75rem; margin-bottom: 0.75rem; }
.ts-wt-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0.85rem 0.5rem; text-align: center; }
.ts-wv { font-size: 1.4rem; font-weight: 700; color: var(--charcoal); }
.ts-wl { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-mid); margin-top: 3px; }
.ts-cert-box { padding: 1.1rem; }
.ts-cert-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--charcoal); margin-bottom: 0.5rem; }
.ts-cert-intro { font-size: 0.85rem; color: var(--gray-mid); margin-bottom: 0.6rem; }
.ts-cert-list { padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.75rem; }
.ts-cert-list li { font-size: 0.82rem; color: var(--gray-mid); line-height: 1.55; }
.ts-cert-list li strong { color: var(--charcoal); }
.ts-cert-warning { background: #FFFBEB; border: 1px solid #FCD34D; border-radius: 8px; padding: 0.6rem 0.85rem; font-size: 0.78rem; color: #92400E; line-height: 1.55; margin-bottom: 0.75rem; }
.ts-notes-label { font-size: 0.78rem; font-weight: 600; color: var(--gray-mid); text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 0.3rem; }
.ts-notes-area { width: 100%; border: 1.5px solid var(--gray-light); border-radius: var(--radius); padding: 0.6rem 0.75rem; font-size: 0.875rem; font-family: inherit; background: var(--white); color: var(--charcoal); resize: vertical; min-height: 70px; }
.ts-notes-area:focus { outline: none; border-color: var(--orange); }
.ts-cb-row { display: flex; align-items: flex-start; gap: 0.6rem; margin-top: 0.6rem; }
.ts-cb-row input { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; accent-color: var(--charcoal); }
.ts-cb-row label { font-size: 0.82rem; color: var(--gray-mid); line-height: 1.55; cursor: pointer; }
.ts-submit-btn { width: 100%; margin-top: 0.5rem; }
.ts-success-wrap { text-align: center; padding: 2.5rem 1rem; }
.ts-success-icon { width: 56px; height: 56px; border-radius: 50%; background: #E8F5E9; border: 2px solid #A5D6A7; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 1.6rem; color: var(--green); }
.ts-success-wrap h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.25rem; }
.ts-sum-table { background: var(--bg); border-radius: var(--radius); padding: 0.85rem 1rem; margin: 1rem 0; text-align: left; }
.ts-sum-row { display: flex; justify-content: space-between; padding: 0.35rem 0; font-size: 0.875rem; border-bottom: 1px solid var(--gray-light); }
.ts-sum-row:last-child { border-bottom: none; }
.ts-sum-row span:first-child { color: var(--gray-mid); }
.ts-sum-row span:last-child { font-weight: 600; color: var(--charcoal); }
.ts-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200; align-items: flex-end; justify-content: center; }
.ts-modal-sheet { background: var(--white); border-radius: 20px 20px 0 0; width: 100%; max-width: 480px; padding: 1rem; max-height: 75vh; display: flex; flex-direction: column; gap: 0.6rem; }
.ts-modal-handle { width: 36px; height: 4px; background: var(--gray-light); border-radius: 99px; margin: 0 auto 0.25rem; }
.ts-modal-title { font-size: 1rem; font-weight: 700; text-align: center; }
.ts-job-search { width: 100%; padding: 0.65rem 0.85rem; border: 1.5px solid var(--gray-light); border-radius: var(--radius); font-size: 0.9rem; font-family: inherit; }
.ts-job-search:focus { outline: none; border-color: var(--orange); }
.ts-job-results { overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 0.4rem; min-height: 120px; }
.ts-job-result { padding: 0.7rem 0.85rem; border: 1px solid var(--gray-light); border-radius: var(--radius); cursor: pointer; }
.ts-job-result:hover { background: var(--bg); }
.ts-jr-num { font-size: 0.875rem; font-weight: 700; color: var(--charcoal); }
.ts-jr-addr { font-size: 0.78rem; color: var(--gray-mid); margin-top: 2px; }
.ts-results-loading { text-align: center; padding: 1.5rem; color: var(--gray-mid); font-size: 0.875rem; }
.ts-submitting-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 300; align-items: center; justify-content: center; }
.ts-submitting-box { background: var(--white); border-radius: 16px; padding: 2rem 2.5rem; text-align: center; }
.ts-s-title { font-size: 1rem; font-weight: 600; margin-top: 0.75rem; }
.ts-spinner { width: 32px; height: 32px; border: 3px solid var(--gray-light); border-top-color: var(--orange); border-radius: 50%; animation: ts-spin 0.75s linear infinite; margin: 0 auto; }
@keyframes ts-spin { to { transform: rotate(360deg); } }
/* ── Confirm Hours button ─────────────────────────────────────────────────── */
.ts-confirm-btn { width:100%; padding:0.55rem 1rem; border-radius:99px; font-size:0.85rem; font-weight:600; font-family:inherit; cursor:pointer; border:1.5px solid; transition:all 0.15s; text-align:center; }
.ts-confirm-pending { background:var(--bg); color:var(--gray-mid); border-color:var(--gray-light); }
.ts-confirm-ok { background:#E8F5E9; color:var(--green); border-color:#A5D6A7; }

/* ── +Add Day card ────────────────────────────────────────────────────────── */
.ts-add-day-card {}
.ts-add-day-row { display:flex; align-items:center; justify-content:space-between; padding:0.85rem 1rem; cursor:pointer; }
.ts-add-day-row:hover { background:#fafaf9; }
.ts-add-day-btn { font-size:0.82rem; font-weight:600; color:var(--orange); border:1.5px solid var(--orange); border-radius:99px; padding:4px 14px; white-space:nowrap; }

/* ── Weekly Review page ───────────────────────────────────────────────────── */
.wr-row { display:flex; align-items:center; justify-content:space-between; padding:0.9rem 1.25rem; border-bottom:1px solid var(--gray-light); gap:1rem; transition:background 0.15s; }
.wr-row:last-child { border-bottom:none; }
.wr-approved { background:#F1F8F1; }
.wr-left { flex:1; min-width:0; }
.wr-name { font-weight:600; font-size:0.95rem; color:var(--charcoal); margin-bottom:0.2rem; }
.wr-hours { font-size:0.82rem; color:var(--gray-mid); margin-bottom:0.35rem; display:flex; gap:0.6rem; flex-wrap:wrap; }
.wr-ot-hrs { color:#B85A00; font-weight:600; }
.wr-flags { display:flex; gap:0.4rem; flex-wrap:wrap; }
.wr-flag { font-size:0.75rem; font-weight:600; padding:2px 8px; border-radius:99px; white-space:nowrap; cursor:default; }
.wr-flag-red    { background:#FEECEC; color:#B91C1C; border:1px solid #FECACA; }
.wr-flag-yellow { background:#FFFBEB; color:#92400E; border:1px solid #FCD34D; }
.wr-flag-blue   { background:#EFF6FF; color:#1D4ED8; border:1px solid #BFDBFE; }
.wr-right { flex-shrink:0; }
.wr-approved-badge { font-size:0.82rem; font-weight:600; color:var(--green); }

/* ── Approval confirmation modal ─────────────────────────────────────────── */
.wr-modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.45); z-index:200; align-items:center; justify-content:center; }
.wr-modal { background:var(--white); border-radius:12px; padding:1.75rem; max-width:400px; width:calc(100% - 2rem); box-shadow:0 8px 40px rgba(0,0,0,0.25); }
.wr-modal-title { font-size:1.1rem; font-weight:700; margin-bottom:0.25rem; }
.wr-modal-sub { font-size:0.85rem; color:var(--gray-mid); margin-bottom:1rem; }
.wr-modal-flag { display:flex; flex-direction:column; gap:0.2rem; background:var(--bg); border-radius:8px; padding:0.65rem 0.85rem; margin-bottom:0.5rem; font-size:0.875rem; }
.wr-flag-note { font-size:0.78rem; color:var(--gray-mid); margin-top:0.2rem; font-style:italic; padding-left:1.2rem; }
.wr-modal-actions { display:flex; gap:0.75rem; margin-top:1.25rem; }
.wr-modal-actions .btn { flex:1; }
