/* Time Tracking — light/dark card UI */
:root {
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
  --transition: 180ms ease;

  --bg: #f4f6fb;
  --bg-elevated: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: rgba(37, 99, 235, 0.1);
  --success: #059669;
  --success-bg: #ecfdf5;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --off-bg: #f1f5f9;
  --input-bg: #ffffff;
  --topbar-bg: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] {
  --bg: #090909;
  --bg-elevated: #121212;
  --text: #FFFFFF;
  --text-muted: #888888;
  --border: rgba(255, 255, 255, 0.06);
  --primary: #22C55E;
  --primary-hover: #16A34A;
  --primary-soft: rgba(34, 197, 94, 0.12);
  --success: #22C55E;
  --success-bg: rgba(34, 197, 94, 0.12);
  --warning: #F59E0B;
  --warning-bg: rgba(245, 158, 11, 0.12);
  --danger: #EF4444;
  --danger-bg: rgba(239, 68, 68, 0.12);
  --off-bg: #1A1A1A;
  --input-bg: #090909;
  --topbar-bg: rgba(9, 9, 9, 0.85);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.7);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  line-height: 1.5;
}

body.auth-checking #app {
  visibility: hidden;
}

.boot-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  z-index: 10000;
}

body:not(.auth-checking) .boot-loader {
  display: none;
}

.boot-loader .spinner {
  width: 32px;
  height: 32px;
  border-color: var(--border);
  border-top-color: var(--primary);
}

.hidden {
  display: none !important;
}

/* Views */
.view {
  min-height: 100dvh;
}

.login-view {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(37, 99, 235, 0.12), transparent),
    var(--bg);
}

.login-stack {
  width: min(100%, 420px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-card {
  width: 100%;
  padding: 36px 32px;
}

.demo-users {
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 38%, var(--border));
  border-radius: 14px;
  padding: 14px 16px 16px;
}

.demo-users-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  text-align: start;
}

.demo-users-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.demo-user-btn {
  width: auto;
  flex: 0 0 auto;
  margin-inline-start: auto;
  text-align: center;
  padding: 8px 14px;
  border-radius: 10px;
  border: none;
  background: var(--primary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  font-family: inherit;
  white-space: nowrap;
  transition: background var(--transition), transform 120ms ease;
}

.demo-user-btn:hover {
  background: var(--primary-hover);
}

.demo-user-creds {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  direction: ltr;
  unicode-bidi: isolate;
}

.login-footer {
  text-align: center;
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.brand {
  text-align: center;
  margin-bottom: 28px;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), #6366f1);
  color: #fff;
  margin-bottom: 16px;
}

.brand h1 {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Cards */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 0;
  flex-wrap: wrap;
}

.card-header h2 {
  margin: 0 0 4px;
  font-size: 1.125rem;
  font-weight: 600;
}

.card-desc {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Form */
.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.field input:not([type="checkbox"]):not([type="radio"]),
.field textarea,
.input-sm {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field input:not([type="checkbox"]):not([type="radio"]):focus,
.field textarea:focus,
.input-sm:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.hint {
  margin: 6px 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.error-msg {
  margin: 0 0 12px;
  padding: 10px 12px;
  font-size: 0.875rem;
  color: var(--danger);
  background: var(--danger-bg);
  border-radius: var(--radius-sm);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), opacity var(--transition);
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
}

.btn-success {
  background: var(--success);
  color: #fff;
}

.btn-success:hover:not(:disabled) {
  filter: brightness(1.08);
}

.btn-warning {
  background: var(--warning);
  color: #fff;
}

.btn-warning:hover:not(:disabled) {
  filter: brightness(1.08);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover:not(:disabled) {
  filter: brightness(1.08);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--off-bg);
  color: var(--text);
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.8125rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition);
}

.icon-btn:hover {
  background: var(--off-bg);
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.loading-state .spinner {
  border-color: var(--border);
  border-top-color: var(--primary);
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: var(--topbar-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--primary);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Socket badge */
.socket-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--off-bg);
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
}

.socket-badge.connected {
  background: var(--success-bg);
  color: var(--success);
}

.socket-badge.live-update {
  animation: pulse-badge 0.6s ease;
}

@keyframes pulse-badge {

  0%,
  100% {
    box-shadow: none;
  }

  50% {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25);
  }
}

.socket-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

.socket-badge.connected .socket-dot {
  opacity: 1;
  animation: blink 2s ease infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

[data-theme="dark"] .icon-sun {
  display: none;
}

[data-theme="dark"] .icon-moon {
  display: block !important;
}

[data-theme="light"] .icon-moon {
  display: none;
}

/* Main */
.main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.flash-banner,
.toast {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(5, 150, 105, 0.2);
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.35s ease;
}

.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(420px, calc(100% - 32px));
  pointer-events: none;
}

.toast-container .toast {
  width: 100%;
  pointer-events: auto;
}

.toast.info {
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
  border-color: rgba(37, 99, 235, 0.2);
}

.toast.error {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: rgba(220, 38, 38, 0.2);
}

.toast.hiding {
  animation: toast-out 0.3s ease forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
  }
}

[dir="rtl"] .toast-container {
  left: 50%;
  right: auto;
}

.flash-banner.info {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Shift card */
.shift-card {
  overflow: hidden;
}

.shift-body {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.live-clock-wrap {
  text-align: left;
}

.clock-label {
  margin: 0 0 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.live-clock {
  font-size: clamp(2.5rem, 8vw, 3.75rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  transition: color 0.3s ease;
}

.live-clock.ticking {
  color: var(--success);
}

.live-clock.break {
  color: var(--warning);
}

.clock-meta {
  margin: 8px 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.shift-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 180px;
}

.shift-actions .btn {
  width: 100%;
}

/* Status pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.status-off {
  background: var(--off-bg);
  color: var(--text-muted);
}

.status-active {
  background: var(--success-bg);
  color: var(--success);
}

.status-active .status-dot {
  animation: blink 1.5s ease infinite;
}

.status-break {
  background: var(--warning-bg);
  color: var(--warning);
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card {
  padding: 20px 22px;
}

.stat-label {
  margin: 0 0 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-value {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stat-sub {
  margin: 4px 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* History */
.history-card {
  padding-bottom: 8px;
}

.history-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.month-picker-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.month-select {
  min-width: 160px;
  cursor: pointer;
}

.month-showing-label {
  margin: 0;
  padding: 0 24px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.input-sm {
  width: auto;
  padding: 7px 10px;
  font-size: 0.8125rem;
}

.table-wrap {
  overflow-x: auto;
  padding: 0 8px 16px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--off-bg);
}

.data-table tbody tr:hover {
  background: var(--off-bg);
}

.data-table tbody tr.socket-highlight {
  animation: row-flash 1.2s ease;
}

@keyframes row-flash {
  0% {
    background: rgba(37, 99, 235, 0.18);
  }

  100% {
    background: transparent;
  }
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-running {
  background: var(--success-bg);
  color: var(--success);
}

.badge-stopped {
  background: var(--off-bg);
  color: var(--text-muted);
}

.badge-break {
  background: rgba(251, 191, 36, 0.2);
  color: #b45309;
}

.badge-sick {
  background: var(--warning-bg);
  color: var(--warning);
}

.badge-vacation {
  background: #ede9fe;
  color: #7c3aed;
}

[data-theme="dark"] .badge-vacation {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
}

.empty-state,
.loading-state {
  padding: 32px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Mobile session cards */
.mobile-cards {
  display: none;
}

.session-card {
  margin: 0 8px 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
}

.session-card h4 {
  margin: 0 0 10px;
  font-size: 0.9375rem;
}

.session-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  padding: 4px 0;
  color: var(--text-muted);
}

.session-row strong {
  color: var(--text);
}

/* Modal */
.modal {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  max-width: 420px;
  width: min(420px, calc(100% - 32px));
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  margin: auto;
  position: fixed;
  inset: 0;
  height: fit-content;
  max-height: calc(100dvh - 32px);
  overflow: auto;
}

.modal::backdrop {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal form {
  padding: 24px;
}

.modal h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
}

.modal-summary {
  margin: 0 0 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

/* Preferences bar (login) */
.prefs-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.prefs-bar-login {
  position: fixed;
  top: 16px;
  inset-inline-end: 16px;
  z-index: 10;
}

/* Language switcher */
.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-sm);
  background: var(--off-bg);
  border: 1px solid var(--border);
}

.lang-switch-sm .lang-btn {
  padding: 5px 10px;
  font-size: 0.75rem;
}

.lang-btn {
  padding: 6px 12px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.active {
  background: var(--bg-elevated);
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] .lang-btn.active {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* RTL layout */
[dir="rtl"] body {
  font-family: var(--font);
}

[dir="rtl"] .data-table th,
[dir="rtl"] .data-table td {
  text-align: right;
}

[dir="rtl"] .live-clock-wrap {
  text-align: right;
}

[dir="rtl"] .card-header {
  flex-direction: row-reverse;
}

[dir="rtl"] .topbar-left,
[dir="rtl"] .topbar-right,
[dir="rtl"] .brand-mini,
[dir="rtl"] .user-chip,
[dir="rtl"] .history-filters,
[dir="rtl"] .modal-actions,
[dir="rtl"] .session-row {
  flex-direction: row-reverse;
}

[dir="rtl"] .shift-actions .btn svg {
  order: 1;
}

@media (max-width: 768px) {
  [dir="rtl"] .live-clock-wrap {
    text-align: center;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .shift-body {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .live-clock-wrap {
    text-align: center;
  }

  .shift-actions {
    flex-direction: row;
    flex-wrap: wrap;
    min-width: unset;
  }

  .shift-actions .btn {
    flex: 1 1 calc(50% - 5px);
    min-width: 140px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .data-table {
    display: none;
  }

  .mobile-cards {
    display: block;
  }

  .topbar {
    padding: 10px 12px;
  }

  .user-chip span:first-child {
    display: none;
  }

  .card-header {
    flex-direction: column;
    align-items: stretch;
  }

  .history-filters {
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 28px 20px;
  }

  .shift-actions .btn {
    flex: 1 1 100%;
  }
}

/* Page navigation */
.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.page-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-nav-link {
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}

.page-nav-link:hover {
  color: var(--text);
  background: var(--off-bg);
}

.page-nav-link.active {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
}

/* Calendar page */
.calendar-card {
  padding-bottom: 16px;
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 0 24px 16px;
}

.cal-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.cal-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  padding: 0 16px 8px;
}

.cal-weekday {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  padding: 0 16px 16px;
}

.cal-cell-empty {
  visibility: hidden;
  pointer-events: none;
}

.cal-day {
  aspect-ratio: 1;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end; /* Keep labels at the bottom */
  gap: 4px;
  font: inherit;
  color: var(--text);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  padding: 8px;
}

.cal-day-num {
  position: absolute;
  top: 8px;
  left: 8px;
  font-weight: 600;
  line-height: 1;
}

.cal-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cal-status-dot.cal-day-worked {
  background: var(--success);
}

.cal-status-dot.cal-day-sick {
  background: var(--warning);
}

.cal-status-dot.cal-day-vacation {
  background: #8b5cf6;
}

.cal-status-dot.cal-day-break {
  background: #f59e0b;
}

.cal-status-dot.cal-day-holiday {
  background: #8b5cf6;
}

.cal-status-dot.cal-day-off {
  background: #64748b;
}

.cal-status-dot.cal-day-today {
  background: var(--primary);
}

.cal-day-is-today {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.cal-day-future .cal-day-num {
  opacity: 0.45;
}

/* Removed transparent color backgrounds */
.cal-day-worked {
}

.cal-day-sick {
}

.cal-day-vacation {
}

.cal-day-break {
}

.cal-day-holiday {
}

.cal-day-off {
}

.cal-day-missing {
}

.cal-day:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.cal-day-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

.cal-day-num {
  font-size: 0.9375rem;
  font-weight: 700;
}

.cal-day-mark {
  font-size: 0.5625rem;
  line-height: 1;
}

.cal-mark-sick {
  color: var(--warning);
}

.cal-mark-break {
  color: #d97706;
}

.cal-mark-sessions {
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.12);
  border-radius: 999px;
  padding: 1px 5px;
}

.cal-legend-dot.cal-day-worked {
  background: var(--success);
}

.cal-legend-dot.cal-day-sick {
  background: var(--warning);
}

.cal-legend-dot.cal-day-vacation {
  background: #8b5cf6;
}

.cal-legend-dot.cal-day-break {
  background: #f59e0b;
}

.cal-legend-dot.cal-day-missing {
  background: var(--text-muted);
}

.cal-legend-dot.cal-day-holiday {
  background: #8b5cf6;
}

.cal-legend-dot.cal-day-off {
  background: #64748b;
}

.cal-legend-dot.cal-day-today {
  background: var(--primary);
}

.calendar-panels {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 24px;
}

.day-panel,
.notes-panel {
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--bg-elevated), var(--bg));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.16);
}

.day-panel {
  position: relative;
  padding: 20px 24px;
}

.day-panel::before,
.notes-panel::before {
  display: none;
}

.day-panel h3 {
  margin: 0 0 7px;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: normal;
}

.day-panel>.card-desc {
  margin-bottom: 16px;
  line-height: 1.5;
}

.day-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.day-panel #day-form {
  width: 100%;
  min-width: 0;
}

.day-selected-label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0 0 16px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--off-bg);
  font-weight: 500;
  color: var(--text);
}

.day-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.day-panel .field {
  width: 100%;
  min-width: 0;
  margin-bottom: 16px;
}

.day-panel .field label {
  margin-bottom: 6px;
  font-size: 0.84rem;
}

.time-entry-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 8px;
  align-items: stretch;
}

.time-entry-control input[type="time"] {
  min-width: 0;
  min-height: 48px;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  color-scheme: light;
}

[data-theme="dark"] .time-entry-control input[type="time"] {
  color-scheme: dark;
}

.time-entry-control input[type="time"]:focus {
  outline: 2px solid var(--border);
  outline-offset: 1px;
  border-color: var(--text-muted);
  box-shadow: none;
}

.time-period-badge {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--off-bg);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.time-period-badge.is-disabled {
  opacity: 0.55;
}

.time-entry-control input[type="time"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.day-panel textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 100px;
  min-height: 100px;
  max-height: 110px;
  resize: vertical;
  line-height: 1.5;
}

.day-panel .input-sm {
  min-height: 46px;
}

.day-panel .btn {
  min-height: 46px;
  padding-inline: 20px;
}

.day-panel .btn-primary {
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.24);
}

.notes-panel .card-header {
  align-items: center;
  padding: 22px 24px 17px;
}

.notes-panel .card-header h2 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: normal;
}

.notes-panel .card-desc {
  margin-top: 4px;
  line-height: 1.45;
}

.notes-panel #notes-filter {
  min-width: 116px;
  min-height: 42px;
}

.notes-panel .table-wrap {
  padding: 0 18px 20px;
}

.notes-panel .data-table {
  min-width: 560px;
}

.notes-panel .data-table th {
  padding-top: 13px;
  padding-bottom: 13px;
}

.notes-panel .data-table td {
  padding-top: 15px;
  padding-bottom: 15px;
}

.notes-panel .data-table tbody tr {
  transition: background-color 150ms ease;
}

.notes-panel .data-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.08);
}

.notes-panel .empty-state {
  margin: 12px 20px 20px;
}

@media (max-width: 560px) {
  .day-panel {
    padding: 20px 18px;
  }

  .notes-panel .card-header {
    padding: 20px 18px 15px;
  }

  .notes-panel .table-wrap {
    padding-inline: 10px;
  }
}

.field-checkbox {
  margin-bottom: 14px;
}

.field-checkbox .checkbox-label,
.checkbox-label {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--warning-bg);
  border: 1px solid rgba(217, 119, 6, 0.28);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.field-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--warning);
  cursor: pointer;
}

.day-hours-meta {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.notes-panel .card-header {
  padding-top: 16px;
}

.cal-day-hours {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1;
}

.cal-day-icons {
  display: flex;
  gap: 3px;
  font-size: 0.5625rem;
  font-weight: 700;
  color: var(--primary);
}

.day-extras {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.day-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--off-bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.day-chip.warn {
  background: var(--warning-bg);
  color: var(--warning);
  border-color: rgba(217, 119, 6, 0.3);
}

.day-chip.ok {
  background: var(--success-bg);
  color: var(--success);
  border-color: rgba(5, 150, 105, 0.3);
}

.day-chip.info {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  border-color: rgba(37, 99, 235, 0.2);
}

.day-chip a {
  color: inherit;
}

.month-overview-card {
  padding-bottom: 20px;
}

.target-progress {
  margin: 0 0 18px;
}

.target-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.target-pct {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--off-bg);
  color: var(--text);
}

.target-pct.is-low {
  background: var(--danger-bg);
  color: var(--danger);
}

.target-pct.is-mid {
  background: var(--warning-bg);
  color: var(--warning);
}

.target-pct.is-high {
  background: var(--success-bg);
  color: var(--success);
}

.progress-track {
  height: 12px;
  border-radius: 999px;
  background: var(--off-bg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: var(--danger);
  transition: width 0.3s ease, background 0.3s ease;
}

.progress-fill.is-low {
  background: var(--danger);
}

.progress-fill.is-mid {
  background: var(--warning);
}

.progress-fill.is-high {
  background: var(--success);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 5px 16px 16px;
}

.kpi-item {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border-inline-start: 4px solid var(--border);
}

.kpi-item.kpi-days {
  border-inline-start-color: var(--success);
}

.kpi-item.kpi-sick {
  border-inline-start-color: #ef4444;
}

.kpi-item.kpi-vacation {
  border-inline-start-color: #8b5cf6;
}

.kpi-item.kpi-total-hours {
  border-inline-start-color: #0d9488;
}

.kpi-item.kpi-extra {
  border-inline-start-color: var(--warning);
}

.kpi-item.kpi-missions {
  border-inline-start-color: var(--primary);
}

.kpi-item.kpi-sales {
  border-inline-start-color: #0d9488;
}

.kpi-item.kpi-calls {
  border-inline-start-color: #7c3aed;
}

.kpi-item.kpi-salary {
  border-inline-start-color: #64748b;
}

.kpi-label {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.kpi-value {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.end-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 16px;
}

.end-kpis div {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--off-bg);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.end-kpis strong {
  color: var(--text);
  font-size: 1rem;
}

@media (max-width: 900px) {
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .calendar-panels {
    grid-template-columns: 1fr;
  }

/* ============================================================
   Premium Calendar UI Enhancements
   ============================================================ */

.cal-weekdays {
  margin-bottom: 8px !important;
}

.cal-weekday {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: var(--text-muted) !important;
  opacity: 0.8 !important;
}

.cal-grid {
  gap: 12px !important;
  padding: 12px !important;
  background: var(--bg-surface) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.cal-day {
  border-radius: 12px !important;
  background: var(--bg-elevated) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), 0 2px 4px rgba(0,0,0,0.05) !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  padding: 12px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Premium Hover Effect */
.cal-day:not(.cal-cell-empty):hover {
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  z-index: 10 !important;
}

/* Hide the legend */
#cal-legend {
  display: none !important;
}

/* Day Number Typography */
.cal-day-num {
  align-self: flex-start !important;
  margin-top: 0 !important;
  margin-left: 0 !important;
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  letter-spacing: -0.02em !important;
  opacity: 0.9 !important;
}

.cal-day.is-today .cal-day-num, .cal-day-is-today .cal-day-num {
  color: var(--primary) !important;
  font-weight: 700 !important;
}

.cal-day-is-today {
  border: 1px solid var(--primary) !important;
  box-shadow: 0 0 0 1px var(--primary), inset 0 1px 0 rgba(255, 255, 255, 0.02) !important;
}

/* Remove solid backgrounds entirely */
.cal-day-worked { background: var(--bg-elevated) !important; border-color: var(--border) !important; }
.cal-day-sick { background: var(--bg-elevated) !important; border-color: var(--border) !important; }
.cal-day-vacation { background: var(--bg-elevated) !important; border-color: var(--border) !important; }
.cal-day-break { background: var(--bg-elevated) !important; border-color: var(--border) !important; }
.cal-day-holiday { background: var(--bg-elevated) !important; border-color: var(--border) !important; }
.cal-day-off { background: var(--bg-elevated) !important; border-color: var(--border) !important; }

/* Apply colors to the text label instead */
.cal-status-label {
  display: inline-flex !important;
  align-items: center !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  background: rgba(255, 255, 255, 0.03) !important; /* subtle pill background */
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(4px) !important;
}

.cal-day-worked .cal-status-label { color: var(--success) !important; background: rgba(16, 185, 129, 0.08) !important; border-color: rgba(16, 185, 129, 0.2) !important; }
.cal-day-sick .cal-status-label { color: var(--warning) !important; background: rgba(245, 158, 11, 0.08) !important; border-color: rgba(245, 158, 11, 0.2) !important; }
.cal-day-vacation .cal-status-label { color: #a78bfa !important; background: rgba(139, 92, 246, 0.08) !important; border-color: rgba(139, 92, 246, 0.2) !important; }
.cal-day-break .cal-status-label { color: #fcd34d !important; background: rgba(252, 211, 77, 0.08) !important; border-color: rgba(252, 211, 77, 0.2) !important; }
.cal-day-holiday .cal-status-label { color: #a78bfa !important; background: rgba(139, 92, 246, 0.08) !important; border-color: rgba(139, 92, 246, 0.2) !important; }
.cal-day-off .cal-status-label { color: #9ca3af !important; background: rgba(156, 163, 175, 0.08) !important; border-color: rgba(156, 163, 175, 0.2) !important; }

/* Striped background for empty cells, holidays, and sick days */
.cal-cell-empty,
.cal-day-holiday,
.cal-day-sick {
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.02) 8px,
    var(--bg-elevated) 8px,
    var(--bg-elevated) 16px
  ) !important;
  opacity: 0.8 !important;
}

.cal-cell-empty {
  border: 1px dashed rgba(255, 255, 255, 0.05) !important;
  box-shadow: none !important;
  background: transparent !important; /* Empty cells just dashed transparent */
}

/* ============================================================
   FULL PAGE PREMIUM REDESIGN - demo-calendar
   ============================================================ */

/* ---- PAGE LAYOUT ---- */
.main-content {
  padding: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
}

/* ---- CALENDAR CARD ---- */
.calendar-card {
  border-radius: 20px !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  overflow: hidden !important;
  padding: 0 !important;
  background: var(--bg-surface, #1a1d2e) !important;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2), 0 2px 8px rgba(0,0,0,0.1) !important;
}

.calendar-card .card-header {
  padding: 20px 24px 16px !important;
  border-bottom: 1px solid rgba(255,255,255,0.05) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: rgba(255,255,255,0.01) !important;
}

.calendar-card .card-header h2 {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  margin: 0 !important;
}

.calendar-card .card-desc {
  font-size: 0.8rem !important;
  opacity: 0.5 !important;
  margin: 2px 0 0 !important;
}

/* Month Picker Styling */
.month-select {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 8px !important;
  padding: 6px 12px !important;
  font-size: 0.875rem !important;
  color: var(--text) !important;
  cursor: pointer !important;
  transition: border-color 0.2s !important;
}
.month-select:hover {
  border-color: rgba(255,255,255,0.16) !important;
}

/* Weekday headers */
#cal-weekdays {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  padding: 12px 16px 4px !important;
  gap: 8px !important;
}

.cal-weekday {
  text-align: center !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: var(--text) !important;
  opacity: 0.35 !important;
  padding: 4px 0 !important;
}

/* Calendar grid */
#cal-grid {
  gap: 8px !important;
  padding: 8px 16px 16px !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
}

/* Day cards */
.cal-day {
  border-radius: 14px !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  background: rgba(255,255,255,0.03) !important;
  box-shadow: none !important;
  min-height: 90px !important;
  padding: 10px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
  position: relative !important;
  overflow: hidden !important;
}

.cal-day::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.25s ease;
  border-radius: 14px 14px 0 0;
}

.cal-day:not(.cal-cell-empty):hover {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.12) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
  z-index: 5 !important;
}

/* Selected day */
.cal-day-selected {
  background: rgba(37, 99, 235, 0.12) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 1px var(--primary) !important;
}

/* Today */
.cal-day-is-today {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 1.5px var(--primary), 0 4px 16px rgba(37,99,235,0.15) !important;
}
.cal-day-is-today::before {
  background: var(--primary) !important;
}

/* Day number */
.cal-day-num {
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  opacity: 0.85 !important;
  line-height: 1 !important;
  position: static !important;
}

.cal-day-is-today .cal-day-num {
  color: var(--primary) !important;
  opacity: 1 !important;
  font-weight: 700 !important;
}

.cal-day-future .cal-day-num {
  opacity: 0.3 !important;
}

/* Status label pill */
.cal-status-label {
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  padding: 3px 7px !important;
  border-radius: 5px !important;
  display: inline-block !important;
  text-transform: uppercase !important;
  line-height: 1.4 !important;
}

/* Worked - top accent line green */
.cal-day-worked::before { background: #10b981 !important; }
.cal-day-worked .cal-status-label { color: #10b981 !important; background: rgba(16,185,129,0.1) !important; border: 1px solid rgba(16,185,129,0.2) !important; }

/* Sick - amber */
.cal-day-sick::before { background: #f59e0b !important; }
.cal-day-sick .cal-status-label { color: #f59e0b !important; background: rgba(245,158,11,0.1) !important; border: 1px solid rgba(245,158,11,0.2) !important; }

/* Vacation - violet */
.cal-day-vacation::before { background: #8b5cf6 !important; }
.cal-day-vacation .cal-status-label { color: #a78bfa !important; background: rgba(139,92,246,0.1) !important; border: 1px solid rgba(139,92,246,0.2) !important; }

/* Break - yellow */
.cal-day-break::before { background: #fbbf24 !important; }
.cal-day-break .cal-status-label { color: #fbbf24 !important; background: rgba(251,191,36,0.1) !important; border: 1px solid rgba(251,191,36,0.2) !important; }

/* Holiday - purple */
.cal-day-holiday::before { background: #a855f7 !important; }
.cal-day-holiday .cal-status-label { color: #c084fc !important; background: rgba(168,85,247,0.1) !important; border: 1px solid rgba(168,85,247,0.2) !important; }

/* Day off - gray */
.cal-day-off::before { background: #6b7280 !important; }
.cal-day-off .cal-status-label { color: #9ca3af !important; background: rgba(107,114,128,0.1) !important; border: 1px solid rgba(107,114,128,0.2) !important; }

/* Striped sick/holiday */
.cal-day-sick, .cal-day-holiday {
  background: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0.015),
    rgba(255,255,255,0.015) 6px,
    rgba(255,255,255,0.03) 6px,
    rgba(255,255,255,0.03) 12px
  ) !important;
}

/* Empty padding cells */
.cal-cell-empty {
  border: 1px dashed rgba(255,255,255,0.04) !important;
  background: transparent !important;
  box-shadow: none !important;
  pointer-events: none !important;
}
.cal-cell-empty:hover {
  transform: none !important;
}

/* ---- BOTTOM PANELS ---- */
.calendar-panels {
  display: grid !important;
  grid-template-columns: 340px 1fr !important;
  gap: 20px !important;
  align-items: start !important;
}

/* ---- DAY PANEL ---- */
.day-panel {
  border-radius: 20px !important;
  padding: 20px !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  background: var(--bg-surface) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
}

.day-panel h3 {
  font-size: 1rem !important;
  font-weight: 700 !important;
  margin: 0 0 4px !important;
}

.day-selected-label {
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: var(--primary) !important;
  margin-bottom: 16px !important;
  background: rgba(37,99,235,0.08) !important;
  border-radius: 8px !important;
  padding: 6px 10px !important;
  border: 1px solid rgba(37,99,235,0.15) !important;
}

.day-form-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

.day-panel .field label {
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  opacity: 0.5 !important;
  display: block !important;
  margin-bottom: 6px !important;
}

.day-panel input[type=time],
.day-panel select,
.day-panel textarea {
  width: 100% !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  background: rgba(255,255,255,0.04) !important;
  color: var(--text) !important;
  font-size: 0.875rem !important;
  padding: 8px 12px !important;
  transition: border-color 0.2s !important;
}
.day-panel input[type=time]:focus,
.day-panel select:focus,
.day-panel textarea:focus {
  outline: none !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12) !important;
}

.day-form-actions {
  display: flex !important;
  gap: 10px !important;
  margin-top: 16px !important;
}

/* ---- NOTES PANEL ---- */
.notes-panel {
  border-radius: 20px !important;
  padding: 20px !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  background: var(--bg-surface) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
}

.notes-panel .card-header {
  padding: 0 0 16px !important;
  border-bottom: 1px solid rgba(255,255,255,0.05) !important;
  margin-bottom: 16px !important;
}

/* ---- DATA TABLE ---- */
.data-table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 6px !important;
  font-size: 0.85rem !important;
}

.data-table thead th {
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  opacity: 0.4 !important;
  padding: 4px 12px 8px !important;
  background: transparent !important;
  backdrop-filter: none !important;
  text-align: left !important;
  border: none !important;
}

.data-table tbody tr {
  background: rgba(255,255,255,0.03) !important;
  border-radius: 10px !important;
  transition: background 0.2s !important;
}

.data-table tbody tr:hover {
  background: rgba(255,255,255,0.06) !important;
}

.data-table tbody td {
  padding: 10px 12px !important;
  border: none !important;
  color: var(--text) !important;
}

.data-table tbody td:first-child {
  border-radius: 10px 0 0 10px !important;
}

.data-table tbody td:last-child {
  border-radius: 0 10px 10px 0 !important;
}
/* Custom Time Picker */
.custom-time-picker {
  display: flex;
  align-items: center;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  width: fit-content;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.custom-time-picker:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.custom-time-picker .time-part {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  padding: 4px 8px;
  outline: none;
  cursor: pointer;
  text-align: center;
}
.custom-time-picker .time-part:hover {
  background: var(--bg);
  border-radius: 6px;
}
.custom-time-picker .time-sep {
  color: var(--text-muted);
  font-weight: 700;
  margin: 0 2px;
}


.data-table .note-col { max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

