*, *::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: 'Plus Jakarta Sans', 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: 'Plus Jakarta Sans', 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: 'Plus Jakarta Sans', 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: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: white;
  flex-shrink: 0;
}

.user-info h2 {
  font-family: 'Plus Jakarta Sans', 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: 'Plus Jakarta Sans', 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: 'Plus Jakarta Sans', 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: 'Plus Jakarta Sans', 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: 'Plus Jakarta Sans', 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.01em;
  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: 'Plus Jakarta Sans', 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: 'Plus Jakarta Sans', 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: 'Plus Jakarta Sans', 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: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
  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: 'Plus Jakarta Sans', 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: 'Plus Jakarta Sans', 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: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
  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: 'Plus Jakarta Sans', 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: 'Plus Jakarta Sans', 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: 'Plus Jakarta Sans', 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: 'Plus Jakarta Sans', 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: 'Plus Jakarta Sans', 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: 'Plus Jakarta Sans', 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; }

/* ══════════════════════════════════════════════
   USTAWIENIA — formularz danych osobowych
══════════════════════════════════════════════ */
.settings-form {
  padding: 8px 0 4px;
}

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

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

.settings-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.settings-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted, #6b7280);
  margin-bottom: 6px;
}

.settings-input {
  background: var(--bg, #f9fafb);
  border: 1.5px solid var(--border, #e5e7eb);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: .95rem;
  font-family: inherit;
  color: var(--text, #111827);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.settings-input:focus {
  border-color: var(--accent, #6366f1);
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}

.settings-input::placeholder {
  color: #b0b7c3;
}

.settings-save-btn {
  margin-top: 6px;
  background: var(--accent, #6366f1);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px 26px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .1s;
}

.settings-save-btn:hover  { background: #4f52d8; }
.settings-save-btn:active { transform: scale(.97); }

.settings-msg-ok,
.settings-msg-err {
  font-size: .88rem;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 10px;
  display: none;
}

.settings-msg-ok  { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; display: none; }
.settings-msg-err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; display: none; }

/* ══════════════════════════════════════════════
   OVERVIEW — karta danych osobowych
══════════════════════════════════════════════ */
.ov-profile-loading {
  color: var(--text-muted, #9ca3af);
  font-size: .9rem;
  padding: 6px 0;
}

.ov-profile-empty {
  color: var(--text-muted, #9ca3af);
  font-size: .9rem;
}

.ov-profile-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border, #f0f0f0);
}

.ov-profile-row:last-child {
  border-bottom: none;
}

.ov-profile-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.ov-profile-label {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted, #9ca3af);
  width: 130px;
  flex-shrink: 0;
}

.ov-profile-val {
  font-size: .95rem;
  color: var(--text, #111827);
  font-weight: 500;
}

/* ══════════════════════════════════════════════
   NAPRAWY KLIENTA — karty zleceń
══════════════════════════════════════════════ */
.repairs-new-btn {
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent, #6366f1);
  background: #eff6ff;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  padding: 7px 14px;
  text-decoration: none;
  transition: background .15s;
}
.repairs-new-btn:hover { background: #e0e7ff; }

.repair-card {
  background: white;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow .15s;
}
.repair-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.06); }

.repair-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--border, #f0f0f0);
  gap: 12px;
  flex-wrap: wrap;
}

.repair-nr {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  color: var(--text, #111827);
  letter-spacing: .03em;
}
.repair-sprzet {
  font-size: .78rem;
  color: var(--text-muted, #6b7280);
  margin-top: 2px;
}

.repair-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.repair-tag {
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.repair-card-body {
  padding: 12px 18px 14px;
}
.repair-info-row {
  display: flex;
  justify-content: space-between;
  font-size: .83rem;
  padding: 5px 0;
  border-bottom: 1px solid var(--border, #f5f5f5);
}
.repair-info-row:last-of-type { border-bottom: none; }
.repair-info-row span:first-child { color: var(--text-muted, #9ca3af); }
.repair-info-row span:last-child  { font-weight: 500; color: var(--text, #111827); }

.repair-opis {
  margin-top: 10px;
  font-size: .8rem;
  color: var(--text-muted, #6b7280);
  line-height: 1.5;
  background: #f8f9fc;
  border-radius: 6px;
  padding: 8px 10px;
}

/* ── Urządzenia klienta ─────────────────────────────────────────────── */
.devices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 4px;
}

.device-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  transition: box-shadow 0.2s, transform 0.15s;
}

.device-card:hover {
  box-shadow: 0 6px 24px rgba(43,62,245,0.10);
  transform: translateY(-2px);
}

.device-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.device-icon-wrap {
  font-size: 2rem;
  width: 52px;
  height: 52px;
  background: #eff2ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.device-head-info {
  flex: 1;
  min-width: 0;
}

.device-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.device-typ {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
  text-transform: capitalize;
}

.device-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.gwar-tak {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.gwar-nie {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.device-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.device-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 0.82rem;
}

.device-meta-row > span:first-child {
  color: var(--muted);
  flex-shrink: 0;
}

.device-meta-row > span:last-child {
  color: var(--text);
  text-align: right;
  word-break: break-all;
}

.device-meta-row.muted > span:last-child {
  color: var(--muted);
}

.device-sn {
  font-family: monospace;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

/* ── Wycena naprawy ─────────────────────────────────────────────────── */
.repair-cost-block {
  border-top: 1px solid var(--border);
  margin-top: 14px;
  padding-top: 14px;
}

.repair-cost-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 10px;
}

.repair-cost-grid {
  background: #f8f9fc;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.repair-cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  font-size: 0.83rem;
  border-bottom: 1px solid var(--border);
}

.repair-cost-row:last-child {
  border-bottom: none;
}

.repair-cost-row span:first-child {
  color: var(--muted);
}

.repair-cost-row span:last-child {
  font-weight: 600;
  color: var(--text);
}

.repair-cost-total {
  background: #eff2ff;
}

.repair-cost-total span:first-child {
  color: var(--blue);
  font-weight: 700;
}

.repair-cost-total span:last-child {
  font-size: 1rem;
  color: var(--blue);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── Blok decyzji klienta ───────────────────────────────────────────── */
.repair-decyzja-block {
  margin-top: 14px;
  border: 2px solid #fbbf24;
  border-radius: 12px;
  background: #fffbeb;
  padding: 16px 18px;
}

.repair-decyzja-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #92400e;
  margin-bottom: 6px;
}

.repair-decyzja-desc {
  font-size: 0.82rem;
  color: #78350f;
  margin-bottom: 14px;
  line-height: 1.5;
}

.repair-decyzja-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-decyzja {
  flex: 1;
  min-width: 140px;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}

.btn-decyzja:hover:not(:disabled) {
  opacity: 0.88;
  transform: translateY(-1px);
}

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

.btn-akceptuj {
  background: #16a34a;
  color: #fff;
}

.btn-odrzuc {
  background: #fff;
  color: #b91c1c;
  border: 2px solid #fca5a5;
}

.repair-decyzja-msg {
  margin-top: 10px;
  font-size: 0.82rem;
  color: #b91c1c;
  display: none;
}

/* ── Wynik decyzji (po podjęciu) ────────────────────────────────────── */
.repair-decyzja-result {
  margin-top: 14px;
  padding: 11px 16px;
  border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
}

.decyzja-accept {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.decyzja-reject {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* ── Tabela Naprawy — status badge + inline edit ────────────────────── */
.nap-status-wrap,
.nap-decyzja-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.nap-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
}

.nap-edit-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.78rem;
  padding: 2px 4px;
  border-radius: 4px;
  opacity: 0.55;
  transition: opacity 0.15s, background 0.15s;
  flex-shrink: 0;
}

.nap-edit-btn:hover {
  opacity: 1;
  background: #f1f5f9;
}

.nap-status-edit {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  margin-top: 2px;
}

.nap-save-btn,
.nap-cancel-btn {
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 8px;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.nap-save-btn   { background: #16a34a; color: #fff; }
.nap-cancel-btn { background: #f3f4f6; color: #6b7280; }
.nap-save-btn:hover   { opacity: 0.85; }
.nap-cancel-btn:hover { opacity: 0.75; }

.decyzja-select { min-width: 175px !important; }

/* ── Edytowalne komórki Opis / Koszt ────────────────────────────────── */
.nap-editable-cell {
  min-width: 160px;
  vertical-align: top;
}

.nap-field-wrap {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  flex-wrap: wrap;
}

.nap-field-val {
  word-break: break-word;
  max-width: 200px;
  line-height: 1.45;
  font-size: 0.83rem;
}

.nap-field-edit {
  width: 100%;
  margin-top: 6px;
}

.nap-textarea {
  width: 100%;
  min-width: 190px;
  padding: 7px 10px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
  line-height: 1.45;
  background: #fff;
}

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

.nap-input {
  width: 100%;
  min-width: 120px;
  padding: 7px 10px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.15s;
  background: #fff;
}

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

.nap-field-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  flex-wrap: wrap;
}

/* ── Części zamienne naprawy ─────────────────────────────────────────── */
.nap-czesci-cell { min-width: 200px; vertical-align: top; padding: 8px 10px !important; }
.nap-czesci-wrap { display: flex; flex-direction: column; gap: 6px; }
.nap-czesci-list { display: flex; flex-direction: column; gap: 4px; }
.czesci-empty { font-size: 0.75rem; color: #9ca3af; font-style: italic; }

.czesc-item {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 6px; padding: 5px 8px; background: #f8f9fc;
  border: 1px solid var(--border); border-radius: 7px;
  font-size: 0.78rem; transition: opacity 0.2s;
}
.czesc-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.czesc-nazwa { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.czesc-prod { font-size: 0.7rem; color: var(--muted); }
.czesc-ilosc { font-size: 0.72rem; color: var(--blue); font-weight: 700; }
.czesc-cena-wrap { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.czesc-cena { font-weight: 700; color: var(--text); white-space: nowrap; font-size: 0.78rem; }
.czesc-del-btn { background: none; border: none; cursor: pointer; color: #ef4444; font-size: 0.7rem; padding: 1px 4px; border-radius: 4px; opacity: 0.6; transition: opacity 0.15s; flex-shrink: 0; }
.czesc-del-btn:hover { opacity: 1; background: #fef2f2; }
.czesc-suma { display: flex; justify-content: space-between; padding: 5px 8px 3px; border-top: 1px dashed var(--border); font-size: 0.78rem; font-weight: 700; color: var(--blue); margin-top: 2px; }

.nap-add-czesc-btn { background: none; border: 1.5px dashed #cbd5e1; border-radius: 7px; color: var(--blue); font-size: 0.75rem; font-weight: 600; padding: 4px 8px; cursor: pointer; transition: background 0.15s, border-color 0.15s; text-align: left; }
.nap-add-czesc-btn:hover { background: #eff2ff; border-color: var(--blue); }

.nap-dodaj-czesc-form { background: #f8f9fc; border: 1px solid var(--border); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.nap-czesc-select { width: 100%; padding: 6px 8px; border: 1.5px solid var(--border); border-radius: 7px; font-family: 'DM Sans', sans-serif; font-size: 0.78rem; outline: none; background: #fff; transition: border-color 0.15s; }
.nap-czesc-select:focus { border-color: var(--blue); }
.nap-czesc-row { display: flex; align-items: center; gap: 6px; }
.nap-czesc-label { font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.nap-czesc-ilosc { padding: 5px 7px; border: 1.5px solid var(--border); border-radius: 7px; font-family: 'DM Sans', sans-serif; font-size: 0.78rem; outline: none; background: #fff; transition: border-color 0.15s; }
.nap-czesc-ilosc:focus { border-color: var(--blue); }

/* ── Edytowalne komórki Opis / Koszt ────────────────────────────────── */
.nap-editable-cell { min-width: 160px; vertical-align: top; }
.nap-field-wrap { display: flex; align-items: flex-start; gap: 4px; flex-wrap: wrap; }
.nap-field-val { word-break: break-word; max-width: 200px; line-height: 1.45; font-size: 0.83rem; }
.nap-field-edit { width: 100%; margin-top: 6px; }
.nap-textarea { width: 100%; min-width: 190px; padding: 7px 10px; border: 1.5px solid var(--border); border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 0.82rem; resize: vertical; outline: none; transition: border-color 0.15s; line-height: 1.45; background: #fff; }
.nap-textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(43,62,245,0.08); }
.nap-input { width: 100%; min-width: 120px; padding: 7px 10px; border: 1.5px solid var(--border); border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 0.82rem; outline: none; transition: border-color 0.15s; background: #fff; }
.nap-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(43,62,245,0.08); }
.nap-field-actions { display: flex; align-items: center; gap: 5px; margin-top: 5px; flex-wrap: wrap; }

/* ── Badge + inline edit (status / decyzja) ─────────────────────────── */
.nap-status-wrap, .nap-decyzja-wrap { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.nap-status-badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; border: 1.5px solid currentColor; font-size: 0.72rem; font-weight: 600; white-space: nowrap; font-family: 'DM Sans', sans-serif; }
.nap-edit-btn { background: none; border: none; cursor: pointer; font-size: 0.78rem; padding: 2px 4px; border-radius: 4px; opacity: 0.55; transition: opacity 0.15s, background 0.15s; flex-shrink: 0; }
.nap-edit-btn:hover { opacity: 1; background: #f1f5f9; }
.nap-status-edit { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; margin-top: 2px; }
.nap-save-btn, .nap-cancel-btn { border: none; border-radius: 6px; cursor: pointer; font-size: 0.78rem; font-weight: 700; padding: 4px 8px; transition: opacity 0.15s; flex-shrink: 0; }
.nap-save-btn { background: #16a34a; color: #fff; }
.nap-cancel-btn { background: #f3f4f6; color: #6b7280; }
.nap-save-btn:hover { opacity: 0.85; }
.nap-cancel-btn:hover { opacity: 0.75; }
.decyzja-select { min-width: 175px !important; }

/* ════════════════════════════════════════════════════════════════════
   MODAL NOWE ZGŁOSZENIE
   ════════════════════════════════════════════════════════════════════ */

.nz-modal-box {
  max-width: 680px !important;
  width: 95vw;
  max-height: 92vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* STEPPER */
.nz-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding: 20px 24px 0;
  background: #f8f9fc;
  border-bottom: 1px solid var(--border);
}
.nz-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.nz-step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem; font-weight: 800;
  background: var(--border);
  color: var(--muted);
  transition: all 0.25s;
}
.nz-step.active .nz-step-num {
  background: var(--blue); color: white;
  box-shadow: 0 0 0 4px rgba(43,62,245,0.15);
}
.nz-step.done .nz-step-num { background: var(--blue); color: white; }
.nz-step-label {
  font-size: 0.65rem; color: var(--muted); font-weight: 500;
  white-space: nowrap; padding-bottom: 12px;
}
.nz-step.active .nz-step-label,
.nz-step.done .nz-step-label { color: var(--blue); font-weight: 600; }
.nz-connector {
  width: 60px; height: 2px;
  background: var(--border);
  margin-top: 16px; flex-shrink: 0;
  transition: background 0.25s;
}
.nz-connector.done { background: var(--blue); }

/* BODY */
.nz-body { padding: 24px; }

.nz-panel { display: none; }
.nz-panel.active { display: block; }

.nz-panel-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem; font-weight: 700; color: var(--text);
  margin-bottom: 4px;
}
.nz-panel-sub { font-size: 0.78rem; color: var(--muted); margin-bottom: 20px; }

/* INPUTS */
.nz-field { margin-bottom: 12px; }
.nz-label { display: block; font-size: 0.76rem; font-weight: 500; color: var(--blue); margin-bottom: 4px; }
.nz-input {
  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; transition: border 0.2s; appearance: none;
  box-sizing: border-box;
}
.nz-input:focus {
  border-color: var(--blue); background: white;
  box-shadow: 0 0 0 3px rgba(43,62,245,0.07);
}
.nz-textarea { height: 100px; resize: none; }
.nz-form-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* PRIORITY */
.nz-priority-btns { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 4px; }
.nz-priority-btn {
  padding: 10px 8px; border: 1.5px solid var(--border); border-radius: 8px;
  background: white; font-family: 'DM Sans', sans-serif; font-size: 0.82rem;
  font-weight: 500; color: var(--text); cursor: pointer; text-align: center; transition: all 0.15s;
}
.nz-priority-btn:hover { border-color: var(--blue); color: var(--blue); }
.nz-priority-btn.sel-standard { background:#eff6ff; border-color:var(--blue); color:var(--blue); }
.nz-priority-btn.sel-pilny    { background:#fffbeb; border-color:#f59e0b; color:#b45309; }
.nz-priority-btn.sel-ekspres  { background:#fef2f2; border-color:#ef4444; color:#b91c1c; }

/* CARRIER */
.nz-carrier-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 4px; }
.nz-carrier-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 14px 8px; border: 1.5px solid var(--border); border-radius: 10px;
  background: white; cursor: pointer; transition: all 0.15s; font-family: 'DM Sans', sans-serif; text-align: center;
}
.nz-carrier-btn:hover { border-color: #c7d2fe; box-shadow: 0 2px 10px rgba(43,62,245,0.07); }
.nz-carrier-btn.sel { border-color: var(--blue); background: #eff6ff; box-shadow: 0 0 0 3px rgba(43,62,245,0.1); }
.nz-carrier-icon { font-size: 1.3rem; }
.nz-carrier-name { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.78rem; font-weight: 700; color: var(--text); }
.nz-carrier-desc { font-size: 0.65rem; color: var(--muted); }
.nz-carrier-btn.sel .nz-carrier-name { color: var(--blue); }

/* NAV */
.nz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; gap: 10px; }
.nz-nav > div { flex: 0; }
.nz-nav .btn-next {
  flex: 0 0 auto;
  padding: 12px 28px;
  background: linear-gradient(135deg, #2b3ef5 0%, #4f5ff7 100%);
  border: none; border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem; font-weight: 700;
  color: white; cursor: pointer;
  box-shadow: 0 4px 14px rgba(43,62,245,0.35);
  transition: all 0.18s;
  display: flex; align-items: center; gap: 8px;
}
.nz-nav .btn-next:hover {
  background: linear-gradient(135deg, #1a2bcc 0%, #3d52ff 100%);
  box-shadow: 0 6px 20px rgba(43,62,245,0.45);
  transform: translateY(-1px);
}
.nz-nav .btn-next:disabled {
  background: #9ca3af; box-shadow: none; transform: none; cursor: not-allowed;
}
.nz-nav .btn-prev {
  padding: 12px 20px;
  background: white; border: 1.5px solid var(--border);
  border-radius: 10px; font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem; font-weight: 500; color: var(--muted);
  cursor: pointer; transition: all 0.15s;
}
.nz-nav .btn-prev:hover { border-color: #9ca3af; color: var(--text); }

/* SUMMARY */
.nz-summary-block {
  background: #f8f9fc; border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 18px; margin-bottom: 12px;
}
.nz-summary-title {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 10px;
}
.nz-sum-row {
  display: flex; justify-content: space-between; font-size: 0.83rem;
  padding: 5px 0; border-bottom: 1px solid var(--border);
}
.nz-sum-row:last-child { border-bottom: none; }
.nz-sum-row span:first-child { color: var(--muted); }
.nz-sum-row span:last-child { font-weight: 500; color: var(--text); }

/* RODO */
.nz-rodo {
  display: flex; align-items: flex-start; gap: 10px; margin: 14px 0;
  font-size: 0.78rem; color: var(--muted); line-height: 1.5; cursor: pointer;
}
.nz-rodo input[type="checkbox"] { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; accent-color: var(--blue); }

/* ERROR */
.nz-err {
  display: none; background: #fef2f2; border: 1px solid #fca5a5;
  color: #b91c1c; padding: 8px 12px; border-radius: 8px;
  font-size: 0.8rem; margin-top: 8px;
}

/* BADGE nr */
.nz-nr-badge {
  display: inline-block; background: #eff6ff; border: 1px solid #c7d2fe;
  color: var(--blue); font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: 1.05rem; padding: 8px 20px;
  border-radius: 8px; letter-spacing: 0.05em;
}

@media (max-width: 520px) {
  .nz-form-row2 { grid-template-columns: 1fr; }
  .nz-carrier-grid { grid-template-columns: repeat(2,1fr); }
  .nz-priority-btns { grid-template-columns: 1fr; }
  .nz-connector { width: 28px; }
}

/* Przyciski w panelu sukces modalu nz */
#nz-panel-success .btn-next {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  box-shadow: 0 4px 14px rgba(22,163,74,0.35);
  border-radius: 10px; padding: 12px 28px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 0.9rem;
  color: white; border: none; cursor: pointer; transition: all 0.18s;
}
#nz-panel-success .btn-next:hover {
  background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
  box-shadow: 0 6px 20px rgba(22,163,74,0.45); transform: translateY(-1px);
}
#nz-panel-success .btn-prev {
  padding: 12px 20px; border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 0.875rem;
}

/* ── LIST PRZEWOZOWY ─────────────────────────────────────────────────── */
.repair-list-block {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: #f8faff;
}
.repair-list-label {
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); margin-bottom: 8px;
}
.repair-list-current {
  margin-bottom: 8px; min-height: 20px;
}
.list-nr-val {
  font-family: monospace; font-size: 0.88rem;
  color: var(--blue); font-weight: 600;
  background: #eff6ff; padding: 3px 10px;
  border-radius: 6px; border: 1px solid #c7d2fe;
  display: inline-block;
}
.list-nr-empty {
  font-size: 0.8rem; color: var(--muted); font-style: italic;
}
.repair-list-form {
  display: none;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.list-input {
  flex: 1; min-width: 180px;
  padding: 8px 12px;
  border: 1.5px solid var(--blue); border-radius: 8px;
  font-family: monospace; font-size: 0.85rem;
  color: var(--text); background: white; outline: none;
  transition: box-shadow 0.2s;
}
.list-input:focus { box-shadow: 0 0 0 3px rgba(43,62,245,0.1); }
.list-save-btn {
  padding: 8px 16px;
  background: linear-gradient(135deg, #2b3ef5, #4f5ff7);
  color: white; border: none; border-radius: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(43,62,245,0.3);
  transition: all 0.15s;
}
.list-save-btn:hover { background: linear-gradient(135deg, #1a2bcc, #3d52ff); transform: translateY(-1px); }
.list-save-btn:disabled { background: #9ca3af; box-shadow: none; transform: none; cursor: not-allowed; }
.list-cancel-btn {
  padding: 8px 12px;
  background: white; border: 1px solid var(--border);
  border-radius: 8px; color: var(--muted);
  font-size: 0.85rem; cursor: pointer; transition: all 0.15s;
}
.list-cancel-btn:hover { border-color: #9ca3af; color: var(--text); }
.list-edit-btn {
  font-size: 0.78rem; color: var(--blue); background: none;
  border: 1px solid #c7d2fe; border-radius: 6px;
  padding: 4px 10px; cursor: pointer;
  transition: all 0.15s; font-family: 'DM Sans', sans-serif;
}
.list-edit-btn:hover { background: #eff6ff; }
.list-msg {
  font-size: 0.78rem; margin-top: 6px;
  min-height: 18px;
}
.list-msg-ok  { color: #16a34a; }
.list-msg-err { color: #b91c1c; }

/* ── Przyciski w modalach (Edytuj opis / Anuluj / Dodaj część) ────────── */
.modal-edit-kurier-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 7px 14px;
  background: white;
  border: 1.5px solid #c7d2fe;
  border-radius: 8px;
  color: var(--blue);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.modal-edit-kurier-btn:hover {
  background: #eff6ff;
  border-color: var(--blue);
}

.btn-prev {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-prev:hover {
  border-color: #9ca3af;
  color: var(--text);
  background: #f9fafb;
}

/* ── BLOK PŁATNOŚCI W KARCIE NAPRAWY ─────────────────────────────────── */
.repair-platnosc-block {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  background: #fffbeb;
  border-radius: 0 0 14px 14px;
}

.repair-platnosc-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.repair-platnosc-desc {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

.btn-platnosc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: linear-gradient(135deg, #2b3ef5 0%, #4f5ff7 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(43,62,245,0.3);
  transition: all 0.18s;
}
.btn-platnosc:hover {
  background: linear-gradient(135deg, #1a2bcc 0%, #3d52ff 100%);
  box-shadow: 0 6px 20px rgba(43,62,245,0.4);
  transform: translateY(-1px);
}
.btn-platnosc:disabled { background: #9ca3af; box-shadow: none; transform: none; cursor: not-allowed; }

/* Formularz metod płatności */
.platnosc-formularz { margin-top: 16px; }

.platnosc-form-inner { }

.platnosc-form-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.platnosc-metody-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.platnosc-metoda-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 14px 10px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: white;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.platnosc-metoda-btn:hover {
  border-color: #c7d2fe;
  box-shadow: 0 2px 10px rgba(43,62,245,0.08);
}
.platnosc-metoda-btn.selected {
  border-color: var(--blue);
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(43,62,245,0.1);
}

.platnosc-metoda-icon { font-size: 1.4rem; }

.platnosc-metoda-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}
.platnosc-metoda-btn.selected .platnosc-metoda-label { color: var(--blue); font-weight: 600; }

.platnosc-form-actions { display: flex; flex-direction: column; gap: 8px; }

.btn-platnosc-zatwierdz {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(22,163,74,0.3);
  transition: all 0.18s;
}
.btn-platnosc-zatwierdz:hover {
  background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
  box-shadow: 0 6px 20px rgba(22,163,74,0.4);
  transform: translateY(-1px);
}
.btn-platnosc-zatwierdz:disabled { background: #9ca3af; box-shadow: none; transform: none; cursor: not-allowed; }

.platnosc-msg {
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: 6px;
  background: #fef2f2;
  color: #b91c1c;
}

/* Blok sukcesu płatności */
.repair-platnosc-sukces {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 16px 20px;
}

.platnosc-sukces-icon { font-size: 1.8rem; flex-shrink: 0; }

.platnosc-sukces-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #15803d;
  margin-bottom: 4px;
}

.platnosc-sukces-metoda {
  font-size: 0.8rem;
  color: #16a34a;
}
