Files
team-presence/internal/app/static/style.css
T
2026-07-28 02:04:36 +03:30

401 lines
29 KiB
CSS

:root {
--ink: #18241f;
--muted: #6d7873;
--line: #e5e9e6;
--paper: #f5f7f4;
--white: #fff;
--green: #285b48;
--green-2: #34745c;
--mint: #dcece4;
--blue: #e3eaf4;
--sand: #f1e8d6;
--red: #b44a4a;
--shadow: 0 8px 26px rgba(24, 36, 31, .055);
}
html[data-theme="dark"] {
color-scheme: dark;
--ink: #ecf3ef;
--muted: #98a79f;
--line: #33423b;
--paper: #101713;
--white: #19231e;
--green: #76b99b;
--green-2: #8ec8ad;
--mint: #203b30;
--blue: #213447;
--sand: #3b3222;
--red: #f08b84;
--shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body { margin: 0; color: var(--ink); font-family: Vazirmatn, Tahoma, ui-sans-serif, system-ui, sans-serif; font-size: 15px; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 7px; font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -.055em; line-height: 1.1; }
h2 { margin-bottom: 8px; font-size: 1.25rem; letter-spacing: -.025em; }
.muted { color: var(--muted); line-height: 1.65; }
.eyebrow { margin-bottom: 8px; color: var(--green-2); font-size: .69rem; font-weight: 700; letter-spacing: .16em; }
.app-shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 28px 18px 18px; border-right: 1px solid var(--line); background: #f9faf8; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 9px; font-size: 1.12rem; font-weight: 700; letter-spacing: -.03em; }
.brand small { display: block; margin-top: 1px; color: var(--muted); font-size: .62rem; font-weight: 500; letter-spacing: .02em; }
.brand-mark { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 11px; background: var(--green); color: #fff; font-family: Vazirmatn, Tahoma, sans-serif; font-size: 1.25rem; }
.sidebar nav { margin-top: 48px; }
.sidebar nav a { display: flex; align-items: center; gap: 11px; min-height: 43px; margin: 4px 0; padding: 0 12px; border-radius: 10px; color: #53605a; font-size: .87rem; font-weight: 600; }
.sidebar nav a:hover { background: #eef2ef; color: var(--ink); }
.sidebar nav a.active { background: var(--mint); color: var(--green); }
.nav-icon { width: 20px; text-align: center; font-size: 1.08rem; }
.nav-count { display: grid; width: 21px; height: 21px; margin-left: auto; place-items: center; border-radius: 20px; background: var(--green); color: #fff; font-size: .65rem; }
.nav-label { margin: 28px 12px 8px; color: #9ba49f; font-size: .59rem; font-weight: 700; letter-spacing: .18em; }
.sidebar-user { display: grid; grid-template-columns: 36px 1fr auto; gap: 9px; align-items: center; margin-top: auto; padding: 13px 8px 0; border-top: 1px solid var(--line); }
.sidebar-user strong { display: block; overflow: hidden; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user small { color: var(--muted); font-size: .66rem; text-transform: capitalize; }
.avatar { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--sand); color: #725d37; font-weight: 700; text-transform: uppercase; }
.avatar.small { width: 40px; height: 40px; }
.icon-button { border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.main { min-width: 0; padding: 42px clamp(28px, 5vw, 68px) 70px; }
.page-head { display: flex; justify-content: space-between; align-items: end; margin: 0 auto 28px; max-width: 1180px; }
.page-head > div > p:last-child { margin-bottom: 0; color: var(--muted); }
.today-pill { min-width: 132px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); text-align: right; }
.today-pill span { display: block; color: var(--muted); font-size: .63rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.today-pill strong { font-family: Vazirmatn, Tahoma, sans-serif; font-size: .83rem; direction: ltr; }
.notice { max-width: 1180px; margin: 0 auto 18px; padding: 12px 15px; border-radius: 10px; font-size: .86rem; }
.notice.success { border: 1px solid #bfdbcb; background: #eaf5ef; color: #286047; }
.notice.error { border: 1px solid #edc6c2; background: #fff0ee; color: #9d3e38; }
.card { border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: var(--shadow); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.58fr) minmax(300px, .82fr); gap: 20px; max-width: 1180px; margin: 0 auto; }
.presence-card { padding: 24px; }
.presence-top, .section-head { display: flex; justify-content: space-between; align-items: start; }
.live-badge { display: flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 20px; background: #edf4f0; color: var(--green); font-size: .62rem; font-weight: 700; letter-spacing: .08em; }
.live-badge i { width: 6px; height: 6px; border-radius: 50%; background: #4d9c75; box-shadow: 0 0 0 3px #d7eadf; }
.time-line { display: grid; grid-template-columns: 1fr 42px 1fr 1fr; align-items: center; margin: 20px 0 22px; padding: 17px 18px; border-radius: 12px; background: var(--paper); }
.time-line span { width: 26px; height: 1px; background: #cbd2ce; }
.time-line small, .stat small { display: block; margin-bottom: 3px; color: var(--muted); font-size: .59rem; font-weight: 700; letter-spacing: .1em; }
.time-line strong { font-size: 1.08rem; }
.checkin-actions { display: flex; gap: 10px; margin-top: 20px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; padding: 0 17px; border: 1px solid transparent; border-radius: 9px; font-weight: 700; font-size: .81rem; cursor: pointer; }
.button.primary { background: var(--green); color: #fff; }
.button.primary:hover { background: #1e4939; }
.button.secondary { border-color: var(--line); background: var(--white); color: var(--ink); }
.button.dark { background: var(--ink); color: #fff; }
.button.full { width: 100%; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { min-width: 0; padding: 16px; box-shadow: none; }
.stat-icon { display: grid; width: 30px; height: 30px; margin-bottom: 18px; place-items: center; border-radius: 9px; font-size: .8rem; }
.stat-icon.mint { background: var(--mint); color: var(--green); }
.stat-icon.blue { background: var(--blue); color: #42658c; }
.stat-icon.sand { background: var(--sand); color: #806538; }
.stat strong { display: block; font-size: 1.65rem; letter-spacing: -.05em; }
.stat p { margin: 1px 0 0; color: var(--muted); font-size: .66rem; }
.calendar-card { padding: 24px; }
.calendar-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.calendar-head h2 { margin-bottom: 1px; font-size: 1.35rem; }
.calendar-head h2 span { color: var(--muted); font-weight: 500; }
.fa-month { margin: 0; color: var(--muted); font-family: Vazirmatn, Tahoma, sans-serif; font-size: .71rem; text-align: left; }
.calendar-nav { display: flex; gap: 5px; }
.calendar-nav a { display: grid; width: 33px; height: 33px; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: 1.2rem; cursor: pointer; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.weekdays span { padding-bottom: 9px; color: #949d98; font-size: .59rem; font-weight: 700; text-align: center; text-transform: uppercase; }
.days { overflow: hidden; border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 8px; }
.day { position: relative; min-height: 67px; padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.day:hover { z-index: 1; background: #f4f8f5; box-shadow: inset 0 0 0 1px #9bb9aa; }
.day.blank { background: #fafbfa; }
.day-number { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; font-size: .7rem; font-weight: 600; }
.day.today .day-number { background: var(--green); color: #fff; }
.day.friday { background: #fcfaf6; }
.day.holiday small { display: block; overflow: hidden; margin-top: 4px; color: #ae7562; font-size: .5rem; text-overflow: ellipsis; white-space: nowrap; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.day .status-dot { position: absolute; right: 8px; top: 16px; }
.status-dot.office { background: #51906f; }
.status-dot.remote { background: #6584ad; }
.status-dot.leave { background: #c39c5e; }
.calendar-legend { display: flex; gap: 18px; margin-top: 15px; color: var(--muted); font-size: .6rem; }
.calendar-legend span { display: flex; align-items: center; gap: 6px; }
.holiday-mark { width: 7px; height: 7px; border: 1.5px solid #bc7c65; border-radius: 2px; }
.recent-card { padding: 24px; }
.section-head { margin-bottom: 14px; }
.section-head a { color: var(--green); font-size: .72rem; font-weight: 700; }
.request-list { margin: 0 -24px; }
.request-row { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 14px 24px; border-top: 1px solid var(--line); }
.request-list.compact .request-row { padding-top: 11px; padding-bottom: 11px; }
.request-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; }
.request-icon.remote { background: var(--blue); color: #44688e; }
.request-icon.leave { background: var(--sand); color: #806538; }
.request-row strong { display: block; font-size: .78rem; }
.request-row small { display: block; margin-top: 3px; color: var(--muted); font-size: .66rem; }
.request-row p { margin: 6px 0 0; color: var(--muted); font-size: .75rem; }
.badge { display: inline-flex; padding: 5px 8px; border-radius: 20px; font-size: .56rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.badge.pending { background: #f6eddc; color: #87662c; }
.badge.approved { background: #e3f0e8; color: #337052; }
.badge.rejected, .badge.cancelled { background: #f5e6e4; color: #9d4a44; }
.badge.kind { background: #edf0ee; color: #68736e; }
.empty { padding: 22px; color: var(--muted); text-align: center; font-size: .76rem; }
.empty > span { color: #9ca9a2; font-size: 1.5rem; }
.empty a { color: var(--green); font-weight: 700; }
.two-column { display: grid; grid-template-columns: minmax(320px, .72fr) minmax(440px, 1.28fr); gap: 20px; max-width: 1180px; margin: auto; }
.form-card, .two-column > .card, .approval-card { padding: 26px; }
.stack-form { display: grid; gap: 18px; margin-top: 24px; }
label { color: #49564f; font-size: .72rem; font-weight: 700; }
label > small { float: right; color: #9aa39e; font-weight: 500; }
input, textarea, select { width: 100%; margin-top: 7px; padding: 11px 12px; border: 1px solid #dbe0dd; border-radius: 9px; outline: none; background: #fff; color: var(--ink); }
input:focus, textarea:focus, select:focus { border-color: #6d9b87; box-shadow: 0 0 0 3px #e2eee8; }
textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.jalali-field { position: relative; display: block; clear: both; }
.jalali-field input { padding-right: 43px; }
.jalali-trigger { position: absolute; z-index: 2; top: 14px; right: 7px; display: grid; width: 32px; height: 32px; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--green); font-size: 1.08rem; cursor: pointer; }
.jalali-trigger:hover, .jalali-field.picker-open .jalali-trigger { background: var(--mint); }
.jalali-picker { position: absolute; z-index: 50; top: calc(100% + 7px); left: 0; width: min(320px, calc(100vw - 42px)); padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); color: var(--ink); box-shadow: 0 18px 48px rgba(24, 36, 31, .2); font-weight: 500; }
.jalali-picker[hidden] { display: none; }
.jalali-picker-head { display: grid; grid-template-columns: 32px 1fr 32px; gap: 5px; align-items: center; margin-bottom: 10px; }
.jalali-picker-head strong { text-align: center; font-size: .85rem; }
.jalali-picker-head strong span { color: var(--muted); font-weight: 500; }
.jalali-picker-head button { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); font-size: 1rem; cursor: pointer; }
.jalali-picker-head button:hover { background: var(--paper); }
.jalali-weekdays, .jalali-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.jalali-weekdays span { padding: 4px 0 7px; color: var(--muted); font-size: .63rem; font-weight: 700; text-align: center; }
.jalali-days button, .jalali-blank { aspect-ratio: 1; }
.jalali-days button { display: grid; min-width: 0; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-size: .72rem; cursor: pointer; }
.jalali-days button:hover { background: var(--paper); }
.jalali-days button.friday { color: #b86d5a; }
.jalali-days button.today { box-shadow: inset 0 0 0 1px var(--green); }
.jalali-days button.selected { background: var(--green); color: #fff; box-shadow: none; font-weight: 700; }
.jalali-today { width: 100%; margin-top: 9px; padding: 8px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--green); font-size: .67rem; font-weight: 700; cursor: pointer; }
.choice-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 0; padding: 0; border: 0; }
.choice-cards label { position: relative; cursor: pointer; }
.choice-cards input { position: absolute; opacity: 0; }
.choice-cards span { display: grid; grid-template-columns: 32px 1fr; padding: 13px; border: 1px solid var(--line); border-radius: 11px; }
.choice-cards input:checked + span { border-color: #5c8d77; background: #f2f8f5; box-shadow: inset 0 0 0 1px #5c8d77; }
.choice-cards b { grid-row: span 2; font-size: 1rem; }
.choice-cards strong { font-size: .76rem; }
.choice-cards small { color: var(--muted); font-size: .6rem; font-weight: 500; }
.request-detail { align-items: start; }
.request-end { text-align: right; }
.text-button { margin-top: 7px; border: 0; background: none; color: var(--muted); font-size: .64rem; cursor: pointer; text-decoration: underline; }
.admin-note { padding: 6px 8px; border-radius: 6px; background: var(--paper); color: #46534d !important; }
.users-layout > .card { align-self: start; }
.user-list { margin: 0 -26px -10px; }
.user-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 14px 26px; border-top: 1px solid var(--line); }
.user-row strong { display: block; font-size: .8rem; }
.user-row small { display: block; margin-top: 3px; color: var(--muted); font-size: .66rem; }
.filter-tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.filter-tabs a { padding: 7px 11px; border-radius: 7px; color: var(--muted); font-size: .68rem; font-weight: 600; }
.filter-tabs a.active { background: var(--ink); color: #fff; }
.approval-card { max-width: 1180px; margin: auto; }
.approval-row { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 21px 0; border-bottom: 1px solid var(--line); }
.approval-row:last-child { border-bottom: 0; }
.approval-title { display: flex; gap: 7px; align-items: center; }
.approval-main > p { margin: 5px 0; color: var(--muted); font-size: .73rem; }
blockquote { margin: 10px 0; padding-left: 12px; border-left: 2px solid #d8dfdb; color: #53605a; font-size: .78rem; }
.review-form { display: grid; grid-template-columns: 1fr auto auto; gap: 7px; margin-top: 13px; }
.review-form input { margin: 0; }
.button.approve { background: var(--green); color: #fff; }
.button.reject { border-color: #e6c6c3; background: #fff; color: var(--red); }
.empty.roomy { padding: 70px; }
.empty.roomy h3 { margin: 8px 0 5px; color: var(--ink); }
.report-card { display: grid; grid-template-columns: 75px 1fr; gap: 20px; max-width: 850px; margin: auto; padding: 32px; }
.report-illustration { display: grid; width: 66px; height: 66px; place-items: center; border-radius: 18px; background: var(--mint); color: var(--green); font-size: 1.7rem; }
.report-form { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; padding-top: 20px; border-top: 1px solid var(--line); }
.day-page-head { align-items: center; }
.day-date-form { display: grid; grid-template-columns: 190px auto; gap: 9px; align-items: end; padding: 11px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); box-shadow: var(--shadow); }
.day-date-form input { margin-top: 4px; padding-top: 8px; padding-bottom: 8px; }
.day-date-form .jalali-trigger { top: 10px; }
.day-date-form .button { min-height: 39px; }
.day-layout { display: grid; gap: 20px; max-width: 1180px; margin: 0 auto; }
.day-summary-card { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(360px, 1.15fr); align-items: center; padding: 24px 28px; }
.day-date-nav { display: grid; grid-template-columns: 37px 1fr 37px; gap: 14px; align-items: center; }
.day-date-nav > a { display: grid; width: 37px; height: 37px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--white); color: var(--ink); font-size: 1.2rem; }
.day-date-nav > a:hover { background: var(--paper); }
.day-date-nav h2 { margin-bottom: 2px; font-size: 1.4rem; }
.day-date-nav div > span { color: var(--muted); font-size: .69rem; }
.day-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-left: 1px solid var(--line); }
.day-stats > div { display: grid; grid-template-columns: 13px 1fr; gap: 9px; align-items: center; padding: 8px 22px; border-right: 1px solid var(--line); }
.day-stats > div:last-child { border-right: 0; }
.day-stats strong { display: block; font-size: 1.5rem; line-height: 1; }
.day-stats small { color: var(--muted); font-size: .65rem; }
.presence-mark { display: inline-block; width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; }
.presence-mark.present { background: #4d9870; box-shadow: 0 0 0 3px #dcece4; }
.presence-mark.remote { background: #6689b2; box-shadow: 0 0 0 3px #e3eaf4; }
.presence-mark.absent { background: #c2655c; box-shadow: 0 0 0 3px #f3dfdc; }
.roster-card { padding: 25px 28px; }
.roster-card .section-head { align-items: center; margin-bottom: 8px; }
.roster-legend { display: flex; gap: 15px; color: var(--muted); font-size: .62rem; }
.roster-legend span { display: flex; gap: 6px; align-items: center; }
.roster-list { margin: 0 -28px -10px; }
.roster-row { display: grid; grid-template-columns: 42px minmax(150px, .8fr) minmax(200px, 1.2fr) 92px; gap: 14px; align-items: center; min-height: 72px; padding: 13px 28px; border-top: 1px solid var(--line); }
.roster-row:hover { background: #fafcfa; }
.roster-row img.avatar { display: block; object-fit: cover; }
.roster-person strong { display: block; font-size: .82rem; }
.roster-person small, .roster-detail small { display: block; margin-top: 3px; color: var(--muted); font-size: .64rem; }
.roster-detail > span { color: #53605a; font-size: .75rem; }
.presence-badge { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-width: 86px; padding: 7px 9px; border-radius: 20px; font-size: .62rem; font-weight: 700; }
.presence-badge.present { background: #e7f2eb; color: #347052; }
.presence-badge.remote { background: #e9eff7; color: #4c6e96; }
.presence-badge.absent { background: #f8e9e7; color: #a34d47; }
.login-page { display: grid; grid-template-columns: 1.06fr .94fr; min-height: 100vh; }
.login-story { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 46px clamp(38px, 6vw, 85px); background: var(--green); color: #fff; }
.login-story::before { position: absolute; right: -150px; bottom: -170px; width: 580px; height: 580px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 80px rgba(255,255,255,.025), 0 0 0 160px rgba(255,255,255,.018); content: ""; }
.brand.light { position: relative; padding: 0; }
.brand.light .brand-mark { background: #fff; color: var(--green); }
.brand.light small { color: #b7cec4; }
.story-copy { position: relative; max-width: 580px; margin: auto 0 12vh; }
.story-copy .eyebrow { color: #9fc4b4; }
.story-copy h1 { margin-bottom: 24px; font-size: clamp(3rem, 5.5vw, 5rem); letter-spacing: -.06em; line-height: .98; }
.story-copy > p:last-child { max-width: 520px; color: #c7d9d1; font-size: 1.05rem; line-height: 1.7; }
.story-calendar { position: absolute; right: 9%; bottom: 7%; display: flex; gap: 65px; align-items: end; min-width: 270px; padding: 20px; border: 1px solid rgba(255,255,255,.15); border-radius: 14px; background: rgba(255,255,255,.08); backdrop-filter: blur(6px); transform: rotate(-2deg); }
.story-calendar small, .story-calendar span { display: block; color: #afc9be; font-family: Vazirmatn, Tahoma, sans-serif; font-size: .66rem; }
.story-calendar strong { display: block; margin: 2px 0; font-family: Vazirmatn, Tahoma, sans-serif; font-size: 1.3rem; }
.people-dots { display: flex; align-items: center; }
.people-dots i, .people-dots b { display: grid; width: 28px; height: 28px; margin-left: -7px; place-items: center; border: 2px solid var(--green); border-radius: 50%; background: #d4a88b; }
.people-dots i:nth-child(2) { background: #9dc2ae; }
.people-dots i:nth-child(3) { background: #b6a6cf; }
.people-dots b { background: #fff; color: var(--green); font-size: .55rem; }
.login-form-wrap { display: grid; place-items: center; padding: 40px; background: #fbfcfa; }
.login-card { width: min(100%, 395px); }
.login-card h2 { margin-bottom: 5px; font-size: 1.75rem; letter-spacing: -.045em; }
.login-card label { display: block; margin-top: 18px; }
.login-card .button.primary { margin-top: 22px; }
.separator { display: flex; align-items: center; gap: 12px; margin: 23px 0 14px; color: #9aa29e; font-size: .64rem; }
.separator::before, .separator::after { flex: 1; height: 1px; background: var(--line); content: ""; }
.oauth-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.login-hint { margin-top: 25px; color: var(--muted); font-size: .68rem; text-align: center; }
.login-hint code { padding: 2px 4px; border-radius: 4px; background: #edf0ee; }
.auth-switch { margin: 22px 0 0; color: var(--muted); font-size: .75rem; text-align: center; }
.auth-switch a { color: var(--green); font-weight: 700; }
.register-wrap { padding-top: 25px; padding-bottom: 25px; }
.register-card { width: min(100%, 500px); }
.register-card .form-row { margin-top: 17px; }
.register-card .form-row label { margin-top: 0; }
.register-card > label { display: block; margin-top: 17px; }
.register-card .button.primary { margin-top: 20px; }
.field-help { margin: 6px 0 0; color: #929b96; font-size: .64rem; }
.mobile-brand { display: none; }
.sidebar-theme { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 10px 9px; color: var(--muted); font-size: .7rem; font-weight: 600; }
.sidebar-user { margin-top: 0; }
.theme-toggle { position: relative; display: grid; width: 35px; height: 35px; flex: 0 0 35px; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); cursor: pointer; box-shadow: var(--shadow); }
.theme-toggle span { position: absolute; transition: opacity .18s ease, transform .22s ease; }
.theme-sun { opacity: 0; transform: translateY(18px) rotate(30deg); }
.theme-moon { opacity: 1; transform: translateY(0); }
html[data-theme="dark"] .theme-sun { opacity: 1; transform: translateY(0) rotate(0); }
html[data-theme="dark"] .theme-moon { opacity: 0; transform: translateY(-18px); }
.auth-theme { position: fixed; z-index: 10; top: 24px; right: 24px; }
html[data-theme="dark"] .sidebar { background: #141d18; }
html[data-theme="dark"] .sidebar nav a:hover { background: #202c26; }
html[data-theme="dark"] .day,
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html[data-theme="dark"] .button.secondary,
html[data-theme="dark"] .calendar-nav a,
html[data-theme="dark"] .today-pill,
html[data-theme="dark"] .filter-tabs { background: var(--white); color: var(--ink); }
html[data-theme="dark"] .day.blank { background: #131b17; }
html[data-theme="dark"] .day.friday { background: #201f19; }
html[data-theme="dark"] .login-form-wrap { background: var(--paper); }
html[data-theme="dark"] .login-story { background: #173a2d; }
html[data-theme="dark"] .time-line,
html[data-theme="dark"] .admin-note { background: #121a16; }
html[data-theme="dark"] .login-hint code { background: #26322c; }
html[data-theme="dark"] .jalali-picker { box-shadow: 0 18px 52px rgba(0, 0, 0, .48); }
html[data-theme="dark"] .jalali-picker-head button { background: var(--white); color: var(--ink); }
html[data-theme="dark"] .jalali-days button:hover,
html[data-theme="dark"] .jalali-picker-head button:hover { background: #26342d; }
html[data-theme="dark"] .day:hover,
html[data-theme="dark"] .roster-row:hover { background: #202c26; }
html[data-theme="dark"] .roster-detail > span { color: #b4c0ba; }
html[data-theme="dark"] .presence-mark.present { box-shadow: 0 0 0 3px #274535; }
html[data-theme="dark"] .presence-mark.remote { box-shadow: 0 0 0 3px #293b50; }
html[data-theme="dark"] .presence-mark.absent { box-shadow: 0 0 0 3px #4a2c2a; }
html[data-theme="dark"] .presence-badge.present { background: #1d3b2c; color: #8fd0ae; }
html[data-theme="dark"] .presence-badge.remote { background: #26394d; color: #9ab8dc; }
html[data-theme="dark"] .presence-badge.absent { background: #432725; color: #efa09a; }
html[data-theme="dark"] .notice.success { border-color: #315c47; background: #183426; color: #91d1af; }
html[data-theme="dark"] .notice.error { border-color: #67403d; background: #35201f; color: #f1a09a; }
html[data-theme="dark"] .badge.pending { background: #453820; color: #e3bd72; }
html[data-theme="dark"] .badge.approved { background: #1d3b2c; color: #8fd0ae; }
html[data-theme="dark"] .badge.rejected,
html[data-theme="dark"] .badge.cancelled { background: #432725; color: #efa09a; }
html[data-theme="dark"] .badge.kind { background: #28332e; color: #b2bdb7; }
@media (max-width: 980px) {
.app-shell { grid-template-columns: 74px 1fr; }
.sidebar { padding: 25px 11px 16px; }
.brand > span:last-child, .sidebar nav a:not(.active) { font-size: 0; }
.brand { padding: 0 8px; }
.sidebar nav a { justify-content: center; padding: 0; }
.nav-icon { font-size: 1.05rem; }
.nav-label, .sidebar-user > span:nth-child(2), .sidebar-user form { display: none; }
.sidebar-user { display: flex; justify-content: center; padding-left: 0; padding-right: 0; }
.sidebar-theme { justify-content: center; padding-left: 0; padding-right: 0; }
.sidebar-theme span { display: none; }
.dashboard-grid { grid-template-columns: 1fr; }
.stats-grid { grid-row: 2; }
.login-page { grid-template-columns: 1fr 1fr; }
.story-calendar { display: none; }
.two-column { grid-template-columns: 1fr; }
.day-summary-card { grid-template-columns: 1fr; gap: 20px; }
.day-stats { padding-top: 18px; border-top: 1px solid var(--line); border-left: 0; }
}
@media (max-width: 700px) {
.app-shell { display: block; }
.sidebar { position: fixed; z-index: 20; top: auto; right: 0; bottom: 0; left: 0; width: auto; height: 64px; padding: 7px; border-top: 1px solid var(--line); border-right: 0; }
.sidebar .brand, .sidebar-user, .nav-label { display: none; }
.sidebar-theme { position: fixed; z-index: 22; top: 15px; right: 15px; margin: 0; padding: 0; }
.sidebar nav { display: flex; justify-content: center; margin: 0; }
.sidebar nav a, .sidebar nav a:not(.active) { display: flex; width: 58px; margin: 0 3px; font-size: 0; }
.nav-count { position: absolute; width: 16px; height: 16px; margin: -20px 0 0 17px; }
.main { padding: 26px 15px 90px; }
.page-head { align-items: start; }
.day-page-head { display: block; }
.day-date-form { grid-template-columns: 1fr auto; margin-top: 20px; }
.today-pill { display: none; }
.stats-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.stat { padding: 12px; }
.stat-icon { margin-bottom: 12px; }
.time-line { grid-template-columns: 1fr 25px 1fr; }
.time-line > div:last-child { display: none; }
.checkin-actions { flex-direction: column; }
.checkin-actions form, .checkin-actions button { width: 100%; }
.calendar-card { padding: 16px; }
.day { min-height: 49px; padding: 5px; }
.day .status-dot { right: 5px; top: 10px; }
.day.holiday small { display: none; }
.calendar-legend { flex-wrap: wrap; }
.login-page { display: block; }
.login-story { display: none; }
.login-form-wrap { min-height: 100vh; padding: 28px; }
.mobile-brand { display: flex; gap: 10px; align-items: center; margin-bottom: 70px; font-size: 1.1rem; font-weight: 700; }
.form-row, .choice-cards { grid-template-columns: 1fr; }
.review-form, .report-form { grid-template-columns: 1fr; }
.report-card { grid-template-columns: 1fr; }
.report-form { grid-column: auto; }
.filter-tabs { display: none; }
.day-summary-card, .roster-card { padding: 18px; }
.day-date-nav { grid-template-columns: 33px 1fr 33px; gap: 9px; }
.day-date-nav > a { width: 33px; height: 33px; }
.day-stats > div { padding: 7px 10px; }
.roster-card .section-head { display: block; }
.roster-legend { margin-top: 12px; }
.roster-list { margin-right: -18px; margin-left: -18px; }
.roster-row { grid-template-columns: 38px 1fr auto; gap: 10px; padding: 13px 18px; }
.roster-row .avatar { width: 38px; height: 38px; }
.roster-detail { grid-column: 2 / -1; grid-row: 2; margin-top: -9px; }
.presence-badge { grid-column: 3; grid-row: 1; min-width: 76px; }
}