/* ==========================================================================
   Zointy HRMS additions on top of the Zointy design system (zointy.css).
   ========================================================================== */
.flex { display: flex; } .gap-2 { gap: 8px; } .gap-3 { gap: 14px; } .wrap { flex-wrap: wrap; } .items-center { align-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.brand-accent { color: #0d9488; font-weight: 800; }

/* Shell */
.side-org { display: flex; align-items: center; gap: 10px; margin: 4px 12px 8px; padding: 8px; border: 1px solid var(--border); border-radius: 12px; }
.side-org .org-logo { background: var(--blue-bg); color: var(--blue); }
.topbar-search { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; width: min(360px, 100%); border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--muted); }
.topbar-search:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.topbar-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 13.5px; color: var(--text); outline: none; }
.topbar-search input:focus-visible { box-shadow: none; }
@media (max-width: 640px) { .topbar-search { display: none; } }

/* Forms */
.field-hint { font-size: 12px; color: var(--muted); }
.field-error { font-size: 12px; color: var(--red); font-weight: 550; }
.form-card { max-width: 760px; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; margin-bottom: 16px; }
.alert-red { background: var(--red-bg); color: var(--red); }
.alert-amber { background: var(--amber-bg); color: var(--amber); }
.alert-blue { background: var(--blue-bg); color: var(--blue); }
.alert-green { background: var(--green-bg); color: var(--green); }

/* Tables: whole-row links */
.row-link { color: var(--text); font-weight: 600; }
.row-link:hover { color: var(--brand); text-decoration: underline; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Contact page */
.contact-head { display: flex; align-items: center; gap: 14px; }
.contact-head h1 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.ai-panel { border: 1px solid color-mix(in srgb, var(--violet-c) 30%, var(--border)); background: color-mix(in srgb, var(--violet-c) 5%, var(--surface)); }
.ai-panel .card-head h3 { display: flex; align-items: center; gap: 8px; }
.ai-out { white-space: pre-wrap; font-size: 13.5px; line-height: 1.6; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-top: 12px; }
.ai-out[hidden] { display: none; }
.ai-busy { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border-strong); border-top-color: var(--violet-c); animation: app-spin .8s linear infinite; }
@keyframes app-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

.task-row { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.task-row:last-child { border-bottom: 0; }
.task-row.is-overdue .task-due { color: var(--red); font-weight: 600; }
.task-row.is-done .task-title { text-decoration: line-through; color: var(--muted); }
.task-check { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--border-strong); background: var(--surface); display: grid; place-items: center; color: transparent; cursor: pointer; flex-shrink: 0; }
.task-check:hover { border-color: var(--green); color: var(--green); }
.is-done .task-check { background: var(--green); border-color: var(--green); color: #fff; }
.task-title { font-weight: 600; font-size: 13.5px; }
.task-meta { font-size: 12px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }

/* Plan cards (billing + admin) */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.plan-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.plan-card.is-current { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.plan-card h3 { font-size: 16px; font-weight: 700; }
.plan-price { font-size: 24px; font-weight: 750; letter-spacing: -.02em; }
.plan-price small { font-size: 13px; font-weight: 500; color: var(--muted); }
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--text-2); }
.plan-list li { display: flex; gap: 8px; align-items: center; }
.plan-list svg { color: var(--green); flex-shrink: 0; }
.plan-card .btn { margin-top: auto; }

.usage-row { display: grid; gap: 6px; }
.usage-row .between { display: flex; font-size: 13px; }

/* Auth + error pages */
.auth-wrap { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 40px 16px 64px; }
.auth-card { width: 100%; max-width: 440px; padding: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 24px; font-weight: 750; letter-spacing: -.025em; margin-bottom: 6px; color: var(--text); }
.auth-card > p { color: var(--text-2); font-size: 14.5px; margin-bottom: 22px; }
.auth-card form { display: grid; gap: 14px; }
.auth-card .btn { width: 100%; height: 46px; }
.auth-alt { margin-top: 18px; text-align: center; font-size: 14px; color: var(--text-2); }
.err-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; }
.err-page .s-logo { margin-bottom: 24px; }
.err-code { font-size: 14px; font-weight: 700; color: var(--brand); letter-spacing: .08em; }
.err-page h1 { font-size: 28px; font-weight: 750; letter-spacing: -.02em; }
.err-page p { color: var(--text-2); max-width: 440px; }

/* Website pricing */
.pr-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
[data-billing="year"] .pr-month, body:not([data-billing="year"]) .pr-year { display: none; }
.pr-toggle { display: inline-flex; padding: 4px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); margin-top: 18px; }
.pr-toggle button { height: 34px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.pr-toggle button.active { background: var(--text); color: var(--surface); }

/* HRMS additions */
.text-center { text-align: center; }
.text-right { text-align: right; }
.chip.is-on { background: var(--text); color: var(--surface); border-color: var(--text); }
button.chip { border: 1px solid var(--border); background: var(--surface); cursor: pointer; font: inherit; font-size: 12.5px; }
button.chip:hover { border-color: var(--border-strong); }
.ai-q { align-self: flex-end; max-width: 80%; margin-left: auto; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: var(--brand); color: #fff; font-size: 13.5px; white-space: pre-wrap; }
.form-section-title { font-size: 13px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
