/* ── LAYOUT ── */
.wh-main   { max-width: 1060px; margin: 0 auto; padding: 24px 24px 60px; }
.wh-layout { display: grid; grid-template-columns: 1fr 280px; gap: 20px; align-items: start; }
.wh-right  { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 20px; }

/* ── WORKHOURS FORM CARD ── */
.wh-card { padding: 20px; display: flex; flex-direction: column; width: 100%; margin-bottom: 20px; }
.wh-form { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.wh-form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.wh-form-group { display: flex; flex-direction: column; gap: 6px; }
.wh-form-group.span-2 { grid-column: span 2; }
.wh-form-group .label { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.05em; }
.wh-input { width: 100%; height: 38px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-card); color: var(--text); padding: 0 10px; outline: none; font-size: 13px; font-weight: 500; font-family: inherit; }
.wh-input:focus { border-color: var(--text); }

.wh-btn-row { display: flex; gap: 12px; justify-content: flex-end; margin-top: 6px; }
.wh-btn-row .btn { height: 38px; min-width: 120px; font-weight: 600; display: flex; align-items: center; justify-content: center; }

/* ── LOGS TABLE ── */
.wh-table-card { padding: 20px; width: 100%; display: flex; flex-direction: column; }
.wh-table-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.wh-table-title { font-size: 16px; font-weight: 700; color: var(--text); }
.wh-table-actions { display: flex; gap: 8px; }
.wh-table-actions .btn { height: 32px; font-size: 12px; font-weight: 600; padding: 0 12px; }

.wh-table-wrap { width: 100%; overflow-x: auto; margin-bottom: 10px; }
.wh-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.wh-table th { padding: 10px 8px; font-weight: 600; color: var(--text-muted); border-bottom: 2px solid var(--border); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }
.wh-table td { padding: 12px 8px; border-bottom: 1px solid var(--border); color: var(--text); }
.wh-table tr:hover td { background: var(--bg-muted); }
.wh-col-date { font-weight: 600; min-width: 90px; }
.wh-col-hours { font-family: var(--font-mono); font-weight: 600; }
.wh-col-pay { font-family: var(--font-mono); font-weight: 600; }
.wh-col-notes { color: var(--text-muted); max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wh-col-del { text-align: right; width: 44px; }
.wh-btn-del { background: none; border: none; padding: 4px; color: var(--text-muted); cursor: pointer; border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center; }
.wh-btn-del:hover { color: #b91c1c; background: rgba(185, 28, 28, 0.08); }

.wh-empty-state { text-align: center; color: var(--text-muted); font-size: 13px; padding: 32px 0; }

/* ── SUMMARY SIDEBAR CARD ── */
.wh-sum-card { display: flex; flex-direction: column; gap: 14px; }
.wh-sum-row { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.wh-sum-row:last-child { border-bottom: none; padding-bottom: 0; }
.wh-sum-lbl { font-size: 12px; color: var(--text-muted); }
.wh-sum-val { font-family: var(--font-mono); font-size: 20px; font-weight: 600; color: var(--text); }

/* ── PRINT (PDF) STYLES ── */
@media print {
  body { background: #fff !important; color: #000 !important; font-size: 12px !important; }
  .site-nav, .site-footer, .page-header, .wh-card, .wh-right, .wh-table-actions, .wh-col-del, .wh-btn-del { display: none !important; }
  .wh-main { padding: 0 !important; max-width: 100% !important; margin: 0 !important; }
  .wh-layout { grid-template-columns: 1fr !important; gap: 0 !important; }
  .wh-table-card { border: none !important; box-shadow: none !important; background: transparent !important; padding: 0 !important; }
  
  /* Print Invoice Header */
  .wh-print-header { display: block !important; margin-bottom: 30px; border-bottom: 2px solid #000; padding-bottom: 15px; }
  .wh-print-title { font-size: 24px; font-weight: 700; color: #000; text-transform: uppercase; }
  .wh-print-subtitle { font-size: 12px; color: #666; margin-top: 5px; }
  
  /* Print Summary Block */
  .wh-print-summary { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 20px !important; margin-bottom: 30px; background: #f9f9f9; padding: 15px; border: 1px solid #ddd; border-radius: 4px; }
  .wh-print-sum-item { display: flex; flex-direction: column; gap: 4px; }
  .wh-print-sum-lbl { font-size: 10px; text-transform: uppercase; color: #666; font-weight: 600; }
  .wh-print-sum-val { font-size: 18px; font-weight: 700; color: #000; font-family: monospace; }

  .wh-table { font-size: 12px !important; }
  .wh-table th { border-bottom: 2px solid #000 !important; color: #000 !important; }
  .wh-table td { border-bottom: 1px solid #ddd !important; }
  .wh-col-notes { max-width: none !important; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
}

/* Hidden by default in screen view */
.wh-print-header, .wh-print-summary { display: none; }

/* ── RESPONSIVE ── */
@media (max-width: 800px) {
  .wh-layout { grid-template-columns: 1fr; }
  .wh-right { position: static; }
}
@media (max-width: 640px) {
  .wh-form-grid { grid-template-columns: 1fr 1fr; }
  .wh-form-group.span-2 { grid-column: span 2; }
}
@media (max-width: 480px) {
  .wh-main { padding: 16px 14px 40px; }
  .wh-form-grid { grid-template-columns: 1fr; }
  .wh-form-group.span-2 { grid-column: span 1; }
}

/* ── LANG SWITCHER ── */
.lang-switcher { position: relative; }
.lang-current { display:flex;align-items:center;gap:5px;padding:5px 10px;border:1px solid var(--border);border-radius:var(--radius);background:var(--bg);font-size:12px;font-weight:500;color:var(--text);cursor:pointer;font-family:var(--font-sans); }
.lang-code { font-family:var(--font-mono);font-size:11px;color:var(--text-muted); }
.lang-menu { display:none;position:absolute;top:calc(100% + 6px);right:0;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:0 8px 24px rgba(0,0,0,.10);z-index:200;padding:6px;width:210px;max-height:340px;overflow-y:auto; }
.lang-menu.open { display:flex;flex-direction:column; }
.lang-option { display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:var(--radius);font-size:13px;color:var(--text);text-decoration:none;transition:background .12s; }
.lang-option:hover { background:var(--bg-muted); }
.lang-option.active { background:var(--accent);font-weight:500; }
