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

:root {
  --blue: #2b3ef5;
  --blue-dark: #1a2bcc;
  --blue-light: #3d52ff;
  --dark: #0f1117;
  --dark2: #181c2a;
  --text: #1a1d2e;
  --muted: #6b7280;
  --white: #ffffff;
  --border: #e5e7eb;
  --red: #ef4444;
  --green: #16a34a;
  --green-bg: #f0fdf4;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: #f8f9fc;
  overflow-x: hidden;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 58px;
  background: var(--dark2);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  text-decoration: none;
}

.logo-icon {
  width: 28px;
  height: 28px;
  background: var(--blue);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-links a.active { color: #fff; }

.nav-cart {
  background: var(--blue);
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  transition: background 0.2s;
}

.nav-cart:hover { background: var(--blue-light); }

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--red);
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* AUTH WRAPPER */
.auth-page {
  min-height: calc(100vh - 58px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  background: white;
  border-radius: 18px;
  border: 1px solid var(--border);
  width: 100%;
  max-width: 560px;
  box-shadow: 0 4px 40px rgba(0,0,0,0.07);
  overflow: hidden;
}

/* TABS */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.tab-btn {
  padding: 16px;
  background: #f8f9fc;
  border: none;
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: -0.01em;
}

.tab-btn.active {
  background: white;
  color: var(--text);
  border-bottom: 2px solid var(--blue);
  margin-bottom: -1px;
}

.tab-btn:hover:not(.active) { color: var(--text); }

.auth-body { padding: 32px 32px 28px; }

/* PANELS */
.panel { display: none; }
.panel.active { display: block; }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border 0.2s;
  background: white;
}

.form-group input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(43,62,245,0.08);
}

.form-group input::placeholder { color: #adb5bd; }

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

.forgot { text-align: right; margin-top: -10px; margin-bottom: 18px; }
.forgot a { font-size: 0.78rem; color: var(--blue); text-decoration: none; }
.forgot a:hover { text-decoration: underline; }

.btn-submit {
  width: 100%;
  padding: 12px;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: -0.01em;
}

.btn-submit:hover { background: var(--blue-light); transform: translateY(-1px); }
.btn-submit:active { transform: translateY(0); }

.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider span { font-size: 0.78rem; color: var(--muted); }

.social-btn {
  width: 100%;
  padding: 10px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text);
  margin-bottom: 10px;
}

.social-btn:hover { border-color: #adb5bd; background: #f8f9fc; }

.terms {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  margin-top: 18px;
  line-height: 1.5;
}

.terms a { color: var(--blue); text-decoration: none; }

/* PASSWORD STRENGTH */
.strength-bar {
  height: 4px;
  border-radius: 4px;
  background: var(--border);
  margin-top: 8px;
  overflow: hidden;
}

.strength-fill { height: 100%; border-radius: 4px; transition: all 0.3s; width: 0%; }
.strength-label { font-size: 0.72rem; color: var(--muted); margin-top: 4px; }

/* LOGGED IN STATE */
#loggedPanel { display: none; }

.user-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: white;
  flex-shrink: 0;
}

.user-info h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.user-info p { font-size: 0.82rem; color: var(--muted); }

.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid #bbf7d0;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 500;
  margin-top: 4px;
}

.account-layout {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  min-height: 220px;
}

.account-nav {
  background: #f8f9fc;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 8px;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
}

.nav-item:hover { background: white; color: var(--text); }

.nav-item.active {
  background: white;
  color: var(--blue);
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.nav-icon { font-size: 16px; flex-shrink: 0; }

.account-content { background: white; padding: 20px; }

.section { display: none; }
.section.active { display: block; }

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  text-align: center;
  gap: 6px;
}

.empty-icon { font-size: 28px; margin-bottom: 4px; }

.empty-state p {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin: 0;
}

.empty-state span {
  font-size: 0.78rem;
  color: var(--muted);
}

.btn-logout {
  width: 100%;
  padding: 10px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  color: var(--red);
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.btn-logout:hover { background: #fef2f2; border-color: #fca5a5; }

.error-msg {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  margin-bottom: 16px;
  display: none;
}

.success-msg {
  background: var(--green-bg);
  border: 1px solid #bbf7d0;
  color: var(--green);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  margin-bottom: 16px;
  display: none;
}

footer { background: var(--dark); padding: 48px 40px 28px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto 40px;
}

.footer-brand h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.4);
}

.footer-col h4 {
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  margin-bottom: 14px;
}

.footer-col p, .footer-col a {
  font-size: 0.82rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.45);
  display: block;
  text-decoration: none;
}

.footer-col a:hover { color: rgba(255,255,255,0.7); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .auth-body { padding: 24px 20px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
  .account-nav { flex-direction: row; border-right: none; border-bottom: 1px solid var(--border); overflow-x: auto; }
  .nav-item { white-space: nowrap; }
  nav { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
/* ── DASHBOARD ── */
.dashboard {
  display: none;
  min-height: calc(100vh - 58px);
  background: #f0f2f8;
}

.dashboard-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 58px);
}

/* SIDEBAR */
.sidebar {
  background: var(--dark2);
  padding: 32px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-greeting { display: none; }

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.48);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  width: 100%;
}

.sidebar-nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.88);
}

.sidebar-nav-item.active {
  background: var(--blue);
  color: white;
  font-weight: 500;
}

.sidebar-nav-item .s-icon {
  font-size: 15px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 6px 10px;
}

.sidebar-logout {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.sidebar-logout button {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: rgba(239,68,68,0.6);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.15s;
  width: 100%;
}

.sidebar-logout button:hover {
  background: rgba(239,68,68,0.09);
  color: #f87171;
}

/* MAIN */
.dash-main {
  padding: 36px 40px 52px;
  overflow-y: auto;
}

.dash-section { display: none; }
.dash-section.active { display: block; }

.dash-section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.dash-section-sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 22px;
}

.dash-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.dash-section-header a {
  font-size: 0.8rem;
  color: var(--blue);
  text-decoration: none;
  margin-top: 6px;
}

.dash-section-header a:hover { text-decoration: underline; }

/* OVERVIEW CARDS */
.dash-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.overview-card {
  background: white;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.ov-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}

.ov-blue  { background: #eff6ff; }
.ov-amber { background: #fffbeb; }
.ov-green { background: #f0fdf4; }

.overview-card h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 1px;
}

.overview-card p {
  font-size: 0.76rem;
  color: var(--muted);
}

/* EMPTY */
.dash-empty {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 50px 24px;
  text-align: center;
}

.dash-empty-icon { font-size: 38px; margin-bottom: 12px; }

.dash-empty h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}

.dash-empty p { font-size: 0.82rem; color: var(--muted); }

/* SETTINGS CARD */
.info-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 24px 28px;
  margin-bottom: 16px;
}

.info-card-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 14px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.info-row:last-child { border-bottom: none; padding-bottom: 0; }
.info-row .label { color: var(--muted); }
.info-row .value { color: var(--text); font-weight: 500; }

@media (max-width: 820px) {
  .dashboard-inner { grid-template-columns: 1fr; }
  .sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 12px;
    gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .sidebar-divider { display: none; }
  .sidebar-logout { margin-top: 0; padding-top: 0; border-top: none; }
  .dash-main { padding: 20px 16px; }
  .dash-overview { grid-template-columns: 1fr 1fr; }
}

/* ════════════════════════════════════════════════════════════════════
   PANEL PRACOWNIKA
   ════════════════════════════════════════════════════════════════════ */

.emp-panel {
  display: none;
  min-height: calc(100vh - 58px);
  background: #f0f2f8;
}

.emp-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 58px);
}

/* ── SIDEBAR ── */
.emp-sidebar {
  background: var(--dark2);
  padding: 28px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 58px;
  height: calc(100vh - 58px);
  overflow-y: auto;
}

.emp-sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 12px;
}

.emp-avatar {
  width: 42px; height: 42px;
  background: var(--blue);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.emp-sidebar-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: white;
  line-height: 1.2;
}

.emp-sidebar-role {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}

.emp-sidebar-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 8px 6px;
}

.emp-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.5);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  width: 100%;
}

.emp-nav-item:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.9); }
.emp-nav-item.active { background: var(--blue); color: white; }
.emp-nav-icon { font-size: 15px; width: 18px; text-align: center; flex-shrink: 0; }

.emp-sidebar-meta {
  padding: 10px 4px 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.emp-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  gap: 8px;
}

.emp-meta-row span:first-child { color: rgba(255,255,255,0.35); }
.emp-meta-row span:last-child  { color: rgba(255,255,255,0.65); text-align: right; word-break: break-all; }

.emp-logout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: rgba(239,68,68,0.6);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.15s;
  width: 100%;
}

.emp-logout-btn:hover { background: rgba(239,68,68,0.1); color: #f87171; }

/* ── MAIN ── */
.emp-main {
  padding: 32px 36px 60px;
  overflow-y: auto;
}

.emp-section { display: none; }
.emp-section.active { display: block; }

.emp-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 16px;
  flex-wrap: wrap;
}

.emp-section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 3px;
}

.emp-section-sub { font-size: 0.82rem; color: var(--muted); }

.emp-refresh-btn {
  padding: 9px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.emp-refresh-btn:hover { border-color: var(--blue); color: var(--blue); }

/* ── FILTRY ── */
.emp-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.emp-filter-input {
  flex: 1;
  min-width: 220px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  color: var(--text);
  background: #f8f9fc;
  outline: none;
  transition: border 0.2s;
}

.emp-filter-input:focus { border-color: var(--blue); background: white; box-shadow: 0 0 0 3px rgba(43,62,245,0.07); }

.emp-filter-select {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  color: var(--text);
  background: #f8f9fc;
  outline: none;
  cursor: pointer;
  min-width: 170px;
  appearance: none;
  transition: border 0.2s;
}

.emp-filter-select:focus { border-color: var(--blue); background: white; }

.emp-filter-btn {
  padding: 9px 18px;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'Syne', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.emp-filter-btn:hover { background: var(--blue-light); }

.emp-filter-clear {
  padding: 9px 14px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}

.emp-filter-clear:hover { border-color: #9ca3af; color: var(--text); }

/* ── TABELA ── */
.emp-table-wrap {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  overflow-x: auto;
}

.emp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  min-width: 860px;
}

.emp-table thead th {
  background: #f8f9fc;
  padding: 13px 14px;
  text-align: left;
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.emp-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.emp-table tbody tr:last-child td { border-bottom: none; }
.emp-table tbody tr:hover td { background: #f8f9fc; }

.tbl-nr {
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
}

.tbl-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.tbl-loading {
  text-align: center;
  padding: 40px 16px !important;
  color: var(--muted);
  font-size: 0.875rem;
}

.tbl-err { color: #b91c1c !important; }

/* ── PAGINACJA ── */
.emp-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.pag-info {
  font-size: 0.78rem;
  color: var(--muted);
  margin-right: 8px;
}

.pag-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
}

.pag-btn:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.pag-btn.active { background: var(--blue); color: white; border-color: var(--blue); }
.pag-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.pag-dots { font-size: 0.82rem; color: var(--muted); padding: 0 4px; }

/* ── KPI CARDS ── */
.emp-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.emp-kpi-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.emp-kpi-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

.emp-kpi-val {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
}

.emp-kpi-label { font-size: 0.78rem; color: var(--muted); }

/* ── STATS CARDS ── */
.emp-stats-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 16px;
}

.emp-stats-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
}

/* STATUS BARS */
.stat-bars { display: flex; flex-direction: column; gap: 10px; }

.stat-bar-row { display: flex; align-items: center; gap: 12px; }

.stat-bar-label {
  width: 160px;
  font-size: 0.8rem;
  color: var(--text);
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-bar-track {
  flex: 1;
  height: 10px;
  background: #f0f2f8;
  border-radius: 999px;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease;
}

.stat-bar-val {
  width: 32px;
  text-align: right;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
}

/* PRIORITY TAGS */
.priority-tags { display: flex; flex-wrap: wrap; gap: 10px; }

.pri-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid;
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: capitalize;
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .emp-inner { grid-template-columns: 1fr; }
  .emp-sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 10px;
    gap: 4px;
  }
  .emp-sidebar-user { display: none; }
  .emp-sidebar-divider { display: none; }
  .emp-sidebar-meta { display: none; }
  .emp-nav-item { flex: 0 0 auto; }
  .emp-main { padding: 16px; }
  .emp-kpi-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .emp-kpi-grid { grid-template-columns: 1fr; }
  .emp-filters { flex-direction: column; }
  .emp-filter-input, .emp-filter-select { min-width: 100%; }
}

/* ════════════════════════════════════════════════════════════════════
   MODAL SZCZEGÓŁÓW ZLECENIA
   ════════════════════════════════════════════════════════════════════ */

/* Klikalne nr zlecenia w tabeli */
.tbl-nr-btn {
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  transition: color 0.15s;
}
.tbl-nr-btn:hover { color: var(--blue-light); }

/* Overlay */
.repair-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,17,23,0.55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
}
.repair-modal-overlay.open {
  display: flex;
}

/* Box */
.repair-modal-box {
  background: #f0f2f8;
  border-radius: 20px;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from { opacity:0; transform: translateY(16px) scale(0.98); }
  to   { opacity:1; transform: none; }
}

.modal-loading, .modal-err {
  padding: 52px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.modal-err { color: #b91c1c; }

/* Header */
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  background: white;
  border-radius: 20px 20px 0 0;
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--border);
}

.modal-nr {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.modal-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1.5px solid;
  font-size: 0.75rem;
  font-weight: 600;
}

.modal-date { font-size: 0.78rem; color: var(--muted); }

.modal-close-btn {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #f8f9fc;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.modal-close-btn:hover { background: #fef2f2; color: var(--red); border-color: #fca5a5; }

/* Body */
.modal-body { padding: 20px 20px 24px; }

.modal-cols {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 16px;
  align-items: start;
}

/* LEFT */
.modal-left {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
}

.modal-section-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 12px;
}

.modal-info-grid { display: flex; flex-direction: column; }

.mig-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.84rem;
}
.mig-row:last-child { border-bottom: none; }
.mig-row span:first-child { color: var(--muted); flex-shrink: 0; }
.mig-row span:last-child  { font-weight: 500; color: var(--text); text-align: right; word-break: break-word; }

.modal-desc-box {
  margin-top: 12px;
  background: #f8f9fc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.84rem;
  color: var(--text);
  line-height: 1.6;
  white-space: pre-wrap;
}

.modal-uwagi-box { background: #fffbeb; border-color: #fde68a; }

.modal-desc-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 6px;
}

/* RIGHT */
.modal-right { display: flex; flex-direction: column; gap: 14px; }

.modal-action-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.modal-action-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 10px;
}

.modal-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  color: var(--text);
  background: #f8f9fc;
  outline: none;
  cursor: pointer;
  appearance: none;
  transition: border 0.2s;
}
.modal-select:focus { border-color: var(--blue); background: white; box-shadow: 0 0 0 3px rgba(43,62,245,0.07); }

.modal-save-btn {
  width: 100%;
  margin-top: 16px;
  padding: 11px;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.modal-save-btn:hover { background: var(--blue-light); }
.modal-save-btn:disabled { background: #9ca3af; cursor: not-allowed; }

.modal-save-err {
  margin-top: 10px;
  font-size: 0.78rem;
  color: #b91c1c;
  min-height: 18px;
}
.modal-save-ok {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--green);
  font-weight: 500;
  min-height: 18px;
}

.modal-assigned-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  padding: 16px 20px;
}

.modal-assigned-name {
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green);
  margin-top: 4px;
}

.modal-no-prac {
  font-size: 0.78rem;
  color: var(--muted);
  background: #f8f9fc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  line-height: 1.5;
}
.modal-no-prac small { opacity: 0.7; }

/* Responsive modal */
@media (max-width: 680px) {
  .modal-cols { grid-template-columns: 1fr; }
  .repair-modal-box { border-radius: 16px; }
  .modal-header { border-radius: 16px 16px 0 0; }
}

/* ── DODAJ NAPRAWĘ ── */
.emp-add-btn {
  padding: 9px 18px;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'Syne', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.emp-add-btn:hover { background: var(--blue-light); }

/* Formularz w modalu */
.dn-form { display: flex; flex-direction: column; gap: 16px; }

.dn-field { display: flex; flex-direction: column; gap: 6px; }

.dn-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}

.dn-hint {
  font-size: 0.71rem;
  color: var(--muted);
  margin-top: -2px;
}

.dn-input {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  color: var(--text);
  background: #f8f9fc;
  outline: none;
  transition: border 0.2s;
  width: 100%;
}
.dn-input:focus {
  border-color: var(--blue);
  background: white;
  box-shadow: 0 0 0 3px rgba(43,62,245,0.07);
}

.dn-textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  color: var(--text);
  background: #f8f9fc;
  outline: none;
  transition: border 0.2s;
  width: 100%;
  height: 100px;
  resize: vertical;
}
.dn-textarea:focus {
  border-color: var(--blue);
  background: white;
  box-shadow: 0 0 0 3px rgba(43,62,245,0.07);
}

.dn-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 480px) {
  .dn-row-2 { grid-template-columns: 1fr; }
}

/* ── INLINE STATUS SELECT ── */
.status-select-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-inline-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1.5px solid #9ca3af;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.15s;
  background: #f0f0f0;
  color: #6b7280;
  min-width: 150px;
  text-align: center;
}

.status-inline-select:hover  { filter: brightness(0.96); }
.status-inline-select:focus  { box-shadow: 0 0 0 3px rgba(43,62,245,0.10); }
.status-inline-select:disabled { opacity: 0.6; cursor: not-allowed; }

/* Option tekst (ograniczone wsparcie przeglądarek) */
.status-inline-select option { background: white; color: var(--text); font-weight: 500; }

.status-saving {
  font-size: 0.8rem;
  flex-shrink: 0;
  min-width: 16px;
  transition: all 0.15s;
}
.status-saving.ok  { color: #16a34a; }
.status-saving.err { color: #ef4444; }
