/* CHOOBAHAR HR PRO • بهبود ظاهر، بدون تغییر در شناسه‌های HTML و منطق پنل */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800;900&display=swap');
:root {
  --primary:#88b523;--primary-hover:#6d9617;--primary-light:#f2f8e5;
  --slate-900:#18272b;--slate-800:#23353a;--slate-700:#3d5259;
  --slate-600:#6e8087;--slate-200:#dde7e7;--slate-100:#f3f7f7;
  --slate-50:#f6f8fa;--card-bg:#ffffff;--info:#287e9b;--info-light:#e9f4f8;
  --danger:#c74d52;--danger-light:#fff0f0;--warning:#ad7516;--warning-light:#fff6e3;
  --radius-lg:20px;--radius-md:12px;
  --shadow-sm:0 6px 26px rgba(22,43,48,.035);
  --shadow-md:0 12px 40px rgba(22,43,48,.085);
  --shadow-lg:0 24px 75px rgba(22,43,48,.17);
}
* {font-family:'Vazirmatn',Tahoma,sans-serif!important}
body {background:#f5f7f8;color:var(--slate-900);font-size:13px;line-height:1.85}
button,input,textarea,select {font-family:inherit!important}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {outline:3px solid #b3d469!important;outline-offset:2px}
button:disabled {opacity:.48;cursor:not-allowed;filter:grayscale(.32)}
.btn {border-radius:12px;padding:10px 18px;box-shadow:none;font-weight:800;min-height:42px;transition:transform .18s, background .18s, box-shadow .18s}
.btn:not(:disabled):hover {transform:translateY(-1px);box-shadow:0 8px 19px rgba(26,49,37,.09)}
.btn.primary,.primary {background:#91bc36;color:#14231d}
.primary:hover {background:#a7cb56}
.btn.secondary {background:#f7faf8;color:#263c42;border:1px solid #dde7e2}
.btn.danger {background:#fff0f0;color:#bd454c}
.btn.small {min-height:32px;padding:6px 12px}
.card {border:1px solid #e6eded;border-radius:19px;box-shadow:var(--shadow-sm);padding:23px 25px;margin-bottom:17px}
.card h2 {font-size:19px}
.card h3 {font-size:16px}
.card h2,.card h3 {letter-spacing:-.4px;color:#203238}
.muted {color:#7b8b91}
.card input:not([type=range]):not([type=checkbox]):focus,.card select:focus,textarea:focus {border-color:#97be43!important;background:#fff!important;box-shadow:0 0 0 4px rgba(136,181,35,.10)}
.auth-inputs input,.auth-inputs select,.card input:not([type=range]),.card select,textarea {border-radius:11px!important;border-color:#dfe7e7!important;background:#f8faf9!important;min-height:43px}
input[type=range] {accent-color:#8db52f}
label {color:#43595e;font-weight:700;font-size:12px}
.tag {border-radius:8px;padding:5px 11px;font-size:11px}
.tag-green {background:#ecf8d9;color:#587d18}
.tag-yellow {background:#fff5de;color:#9b6c12}
.tag-blue {background:#e8f2f6;color:#317891}
.tag-red {background:#fff0f0;color:#aa383f}
#authSection {background:radial-gradient(circle at 80% 15%,rgba(141,185,52,.11),transparent 30%),radial-gradient(circle at 5% 75%,rgba(39,83,75,.17),transparent 40%),#eef3f0;min-height:100svh}
.auth-container {max-width:475px;border:1px solid #dae5e0;border-radius:26px;box-shadow:0 25px 100px rgba(29,52,43,.13)}
.brand-header {background:linear-gradient(125deg,#111d1c,#21342d);padding:33px 24px}
.brand-header img {width:250px!important;height:117px!important;border-radius:15px!important}
.brand-header h2 {font-size:20px!important}
.brand-header::after {height:5px;background:linear-gradient(90deg,#b1d766,#86af21)}
.auth-body {padding:30px}
#mainApp {min-height:100svh;background:linear-gradient(145deg,#f5f7f8 35%,#eff4f2)}
#mainApp .wrap {
  max-width:1680px;margin:0 auto;padding:24px;display:grid;
  grid-template-columns:260px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);
  align-items:start;column-gap:24px;row-gap:20px;
}
#mainApp .tabs {
  grid-column:1;grid-row:1 / span 2;display:flex;flex-direction:column;align-items:stretch;
  gap:5px;padding:20px 14px;overflow-x:hidden;overflow-y:auto;margin:0;
  background:linear-gradient(167deg,#1a302d 2%,#172625 62%,#122321 100%);
  border:1px solid #2c4440;border-radius:23px;height:calc(100svh - 48px);
  position:sticky;top:24px;box-shadow:0 14px 35px rgba(17,45,37,.13);
  scrollbar-width:thin;scrollbar-color:#476453 transparent;
}
#mainApp .side-brand {padding:11px 11px 20px;margin-bottom:11px;border-bottom:1px solid #3d554c;display:flex;align-items:center;gap:12px;color:#fff}
.side-logo {height:49px;width:49px;background:#091510;border:1px solid #425643;border-radius:13px;object-fit:contain;padding:5px}
.side-brand b {font-size:17px;display:block;line-height:1.5;color:#e7f2e5}
.side-brand small {font-size:10px;display:block;color:#a3b8ac;white-space:nowrap}
#mainApp .nav-side-title {font-size:10px;color:#91a99b;letter-spacing:1px;padding:12px 13px 6px;font-weight:800}
#mainApp .tab {display:flex;align-items:center;text-align:right;white-space:normal;line-height:1.65;min-height:46px;padding:10px 13px;background:transparent;color:#cbdad1;border:1px solid transparent;border-radius:11px;font-size:12px;font-weight:700;box-shadow:none}
#mainApp .tab:hover {background:rgba(255,255,255,.07);color:white}
#mainApp .tab.active {background:linear-gradient(100deg,rgba(168,213,83,.23),rgba(168,213,83,.10));border-color:rgba(175,218,111,.27);color:#d9f9aa;box-shadow:inset -3px 0 0 #aed560}
#mainApp .sidebar-foot {margin-top:auto;border-top:1px solid #3e5249;padding:17px 12px 6px;color:#aabbb0;font-size:11px;line-height:2}
.sidebar-foot strong {color:#dce8da}
#mainApp .hero {
  grid-column:2;grid-row:1;background:rgba(255,255,255,.95);color:#203638;
  border:1px solid #e3ece9;box-shadow:var(--shadow-sm);padding:21px 26px;
  margin:0;min-height:104px;border-radius:20px;gap:20px;
}
#mainApp .hero h1 {font-size:19px;font-weight:900;color:#20383a}
#mainApp .hero .sub {color:#748589;opacity:1;font-size:11px;margin-top:4px;line-height:2}
#mainApp .hero .sub #userBadgeName {color:#20383a!important}
#mainApp .hero .tag {font-size:10px}
#mainApp .profile-avatar {border:2px solid #c4dd93;background:#14251e;border-radius:16px;width:55px;height:55px}
#mainApp .profile-avatar-wrap {width:55px;height:55px;flex-basis:55px}
#mainApp .profile-avatar-edit {background:#91bc36;color:#203325}
#mainApp .live-clock {font-family:'Vazirmatn',Tahoma,sans-serif;color:#385943;border:1px solid #e0ebdf;background:#f5f9f2;letter-spacing:.4px;font-weight:900;font-size:19px;padding:8px 13px}
#mainApp .tabpage {grid-column:2;grid-row:2;min-width:0;max-width:100%}
#mainApp .tabpage > .card {animation:cardReveal .35s ease both}
@keyframes cardReveal {from{transform:translateY(7px);opacity:.7}to{transform:translateY(0);opacity:1}}
.daily-welcome {background:#1a302d;color:white;position:relative;overflow:hidden;padding:24px 30px;margin-bottom:17px;border-radius:22px;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:146px;border:1px solid #335249}
.daily-welcome:after {content:'';position:absolute;left:-65px;top:-120px;width:260px;height:260px;border-radius:50%;border:48px solid rgba(170,222,87,.12);pointer-events:none}
.daily-welcome small {display:block;color:#c0d0c2;font-size:11px;margin-bottom:8px}
.daily-welcome h2 {font-size:23px;color:#f8fff4;margin-bottom:4px;font-weight:900}
.daily-welcome p {color:#bad0c4;font-size:12px}
.daily-welcome .welcome-mark {font-size:36px;line-height:1.1;background:#29463a;padding:15px;border:1px solid #3b5a44;border-radius:18px}
.attendance-overview {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:17px}
.metric-tile {padding:19px 22px;border-radius:17px;border:1px solid #e3eae9;background:white;box-shadow:var(--shadow-sm);min-height:105px}
.metric-tile .metric-label {display:block;color:#8a999b;font-size:11px;margin-bottom:5px;font-weight:600}
.metric-tile strong {color:#24393a;font-size:23px;font-weight:900;direction:ltr;display:inline-block}
.metric-tile .metric-foot {display:block;font-size:10px;color:#9aaba6;margin-top:2px}
.metric-tile.highlight {background:#edf7e6;border-color:#dbecc6}
.metric-tile.highlight strong {color:#5a821e}
#shiftStatusBadge {font-size:12px;display:inline-flex;align-items:center;gap:5px}
#btnClockIn,#btnClockOut {font-size:14px;padding:16px 20px;min-height:56px;border-radius:14px}
#btnClockIn {background:#8ebb31}
#btnClockOut {background:#fff1ef!important;border:1px solid #f4dbd8;color:#b64442!important}
#btnClockOut:disabled {background:#f6f7f7!important;color:#8c9496!important;border-color:#e0e8e8}
.date-panel {border:1px solid #e4eae8;background:#f9fbfa;border-radius:15px;padding:18px}
.day-cell {min-height:47px;border:1px solid #e7eceb;border-radius:11px;font-size:12px}
.day-cell.today-cell {border:1.5px dashed #80ad32}
.day-cell.has-data {background:#edf3e7;border-color:#c7daa9;box-shadow:inset 0 -3px 0 #7ba924}
.day-cell.selected,.day-cell.selected.has-data {background:#284c37;border-color:#284c37;box-shadow:inset 0 -3px 0 #bbdd70;color:#fff}
.nav-btn {border-radius:10px;background:#264b3a}
th {background:#f6f9f8;color:#708184;font-size:11px;padding:13px 12px;border-bottom:1px solid #e4eae9}
td {padding:14px 12px;border-color:#edf1ef;font-size:12px;line-height:1.9}
tr:hover td {background:#fbfdfa}
.report-toolbar>div {min-width:170px}
.summary-card {background:#f8fbf6;border-color:#e4ede0;border-radius:15px;padding:18px}
.summary-card b {color:#668d22}
.bar {background:linear-gradient(0deg,#75a52d,#b9d978)}
.modal-overlay {z-index:10000;background:rgba(9,25,24,.75);backdrop-filter:blur(8px)}
.modal-content {border:1px solid #cfdcd7;border-radius:22px}
.modal-head {border-bottom:0;background:#1d352d;padding:19px 24px}
.modal-head h3 {font-size:17px;color:#fff}
.modal-body {padding:24px}
#clockOutModal .modal-content {max-width:985px;width:100%;max-height:94svh;display:flex;flex-direction:column}
#clockOutModal .modal-body {overflow-y:auto;background:#f7faf8;padding:20px 24px 5px}
#clockOutReportHost .card {padding:21px;margin-bottom:13px}
#clockOutReportHost .card h3 {font-size:15px}
.clockout-hint {background:#eaf5df;color:#426424;border:1px solid #d5e9b9;padding:13px 17px;border-radius:12px;margin-bottom:14px;font-weight:700;font-size:12px;line-height:2}
.clockout-actions {background:white;padding:16px 23px;display:flex;justify-content:flex-end;gap:12px;border-top:1px solid #e0e9e5}
.clockout-actions .btn {min-width:162px}
#draftIndicator {font-size:11px;color:#688345;line-height:2;display:block;margin-top:9px}
.toast {border-radius:15px;background:#203732;font-weight:700;padding:14px 22px;bottom:25px;max-width:min(90vw,650px);text-align:center}
@media(max-width:1100px) {
  #mainApp .wrap {grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto 1fr;gap:13px;padding:15px}
  #mainApp .tabs {grid-row:2;grid-column:1;flex-direction:row;height:auto;position:relative;top:auto;width:100%;padding:9px;gap:6px;border-radius:15px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
  #mainApp .tab {white-space:nowrap;min-height:39px;padding:8px 13px;flex:0 0 auto}
  #mainApp .side-brand,#mainApp .nav-side-title,#mainApp .sidebar-foot {display:none}
  #mainApp .hero {grid-column:1;grid-row:1}
  #mainApp .tabpage {grid-column:1;grid-row:3}
}
@media(max-width:700px) {
  #mainApp .wrap {padding:10px;gap:10px}
  #mainApp .hero {padding:14px 16px;gap:10px;border-radius:15px}
  #mainApp .hero h1 {font-size:14px;line-height:1.75}
  #mainApp .hero .sub {font-size:10px}
  #mainApp .hero > div:last-child {width:100%;justify-content:space-between}
  #mainApp .live-clock {font-size:15px}
  #mainApp .card {padding:16px;margin-bottom:12px;border-radius:16px}
  .daily-welcome {min-height:113px;padding:16px 18px;border-radius:16px}
  .daily-welcome h2 {font-size:17px}
  .daily-welcome p {font-size:10px}
  .daily-welcome .welcome-mark {font-size:21px;padding:10px}
  .attendance-overview {grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .metric-tile {padding:12px 9px;border-radius:12px;min-height:86px;text-align:center}
  .metric-tile strong {font-size:16px}
  .metric-tile .metric-label {font-size:9px}
  .metric-tile .metric-foot {font-size:9px}
  #btnClockIn,#btnClockOut {min-width:115px!important;padding:12px 9px;min-height:48px;font-size:12px}
  .field-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .report-grid,.summary-cards,.project-grid {grid-template-columns:1fr}
  .project-grid {gap:7px}
  .modal-overlay {padding:7px}
  #clockOutModal .modal-content {max-height:96svh;border-radius:15px}
  #clockOutModal .modal-body {padding:10px}
  #clockOutReportHost .card {padding:13px}
  .clockout-actions {padding:10px;gap:7px}
  .clockout-actions .btn {flex:1;min-width:0;padding:10px 7px;font-size:11px}
  .day-cell {min-height:39px}
}
@media(prefers-reduced-motion:reduce) {*,*:before,*:after {animation:none!important;transition:none!important}}

.field-grid > div {min-width:0}
.field-grid .time-input {display:block;width:100%;min-width:0;max-width:100%}
#mainApp .tabs {max-width:100%}
