/* ── 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; } }
