/* Mobile-first, colors matching the desktop app's team palette. */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: Arial, Helvetica, sans-serif; }
body { background: #f2f4f8; color: #16181d; }
.hidden { display: none !important; }
.muted { color: #667085; font-size: 14px; }
.center { text-align: center; padding: 24px; }
.error { color: #b42318; font-size: 14px; margin-top: 8px; }

/* Login */
#login-view { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login-card { background: #fff; border-radius: 12px; padding: 28px 24px; width: 100%; max-width: 360px;
              box-shadow: 0 4px 16px rgba(16, 24, 40, .08); }
.login-card h1 { font-size: 22px; margin-bottom: 4px; }
.login-card p { margin-bottom: 16px; }
label { display: block; font-size: 14px; font-weight: bold; margin-bottom: 12px; }
input, select { width: 100%; padding: 10px; margin-top: 4px; border: 1px solid #d0d5dd; border-radius: 8px; font-size: 16px; }
button[type="submit"] { width: 100%; padding: 12px; background: #1f2a44; color: #fff; border: 0; border-radius: 8px;
                        font-size: 16px; font-weight: bold; cursor: pointer; }

/* Header / tabs */
header { background: #1f2a44; color: #fff; padding: 12px 14px 0; position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
header h1 { font-size: 18px; }
header .muted { color: #b7c0d8; }
header select { width: auto; padding: 6px 8px; font-size: 14px; margin: 0; }
.link-button { background: none; border: 0; color: #b7c0d8; font-size: 14px; cursor: pointer; text-decoration: underline; }
#tabs { display: flex; gap: 2px; }
.tab { flex: 1; padding: 10px 4px; background: #2a3757; color: #cdd5e8; border: 0; font-size: 13px; font-weight: bold;
       border-radius: 8px 8px 0 0; cursor: pointer; }
.tab.active { background: #f2f4f8; color: #16181d; }

main { padding: 14px; max-width: 720px; margin: 0 auto; }

/* Schedule cards */
.shift-card { background: #fff; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; display: flex;
              align-items: center; gap: 10px; box-shadow: 0 1px 3px rgba(16, 24, 40, .07); border-left: 6px solid #ccc; }
.shift-date { min-width: 84px; }
.shift-date .day-number { font-size: 18px; font-weight: bold; }
.shift-date .weekday { font-size: 12px; color: #667085; }
.chip { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: bold; }
.chip.day { background: #fff3b0; }
.chip.night { background: #2a3757; color: #fff; }
.shift-status { margin-left: auto; text-align: right; font-size: 13px; font-weight: bold; }
.status-worked { color: #067647; }
.status-leave { color: #b54708; }
.status-rest { color: #175cd3; }
.status-holiday { color: #b42318; }
.badge { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 6px; background: #eef1f6;
         color: #475467; margin-left: 4px; }

/* Payroll */
.payroll-group { background: #fff; border-radius: 10px; margin-bottom: 12px; overflow: hidden;
                 box-shadow: 0 1px 3px rgba(16, 24, 40, .07); }
.payroll-group h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .4px; color: #667085;
                    padding: 10px 12px 4px; }
.payroll-row { display: flex; justify-content: space-between; padding: 8px 12px; font-size: 14px; }
.payroll-row:nth-child(even) { background: #f8fafc; }
.payroll-row .value { font-weight: bold; }
.payroll-row.total { background: #1f2a44; color: #fff; font-size: 16px; }

/* Team view */
.team-day { background: #fff; border-radius: 10px; margin-bottom: 8px; padding: 8px 12px;
            box-shadow: 0 1px 3px rgba(16, 24, 40, .07); }
.team-day .team-date { font-weight: bold; font-size: 13px; margin-bottom: 6px; }
.team-slot { border-radius: 8px; padding: 6px 8px; font-size: 13px; margin-bottom: 4px; word-break: break-word; }
.team-slot .slot-kind { font-size: 11px; color: #475467; font-weight: bold; margin-right: 6px; }

/* Worked-hours submissions (Overtime section) and Leave requests -- both
   open to any active employee, both stacked in the Requests tab, same
   card/status/form shapes, reused as-is. */
#hours-form, #leave-form { background: #fff; border-radius: 10px; padding: 14px 12px; margin-bottom: 20px;
              box-shadow: 0 1px 3px rgba(16, 24, 40, .07); }
#hours-form .muted, #leave-form .muted { margin: 0 0 12px; }
.hours-times { display: flex; gap: 10px; }
.hours-times label { flex: 1; }
.hours-card { background: #fff; border-radius: 10px; margin-bottom: 8px; padding: 10px 12px;
              box-shadow: 0 1px 3px rgba(16, 24, 40, .07); font-size: 14px; }
.hours-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: bold; }
.hours-status { font-size: 12px; padding: 2px 10px; border-radius: 999px; font-weight: bold; white-space: nowrap; }
.hours-status.pending { background: #fef0c7; color: #b54708; }
.hours-status.approved { background: #d1fadf; color: #067647; }
.hours-status.rejected { background: #fee4e2; color: #b42318; }
.hours-note { color: #667085; margin-top: 4px; }
.withdraw-button { background: none; border: 0; color: #b42318; font-size: 13px; cursor: pointer;
                   text-decoration: underline; padding: 0; margin-top: 6px; }

h2 { font-size: 17px; margin: 4px 0 12px; }
.published-note { font-size: 12px; color: #98a2b3; text-align: center; margin: 10px 0 20px; }

/* Requests tab: Leave/Overtime section dividers, stacked one under the other. */
.request-heading { font-size: 20px; font-weight: bold; margin: 4px 0 12px; }
.request-heading.divider { margin-top: 28px; padding-top: 20px; border-top: 1px solid #e4e7ec; }
