﻿/* =========================================================
   PODSTAWOWE
   ========================================================= */
html,
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
a,
.btn-link {
  color: #006bb7;
}
.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}
.content {
  padding-top: 1.1rem;
}
h1:focus {
  outline: none;
}
.valid.modified:not([type=checkbox]) {
  outline: 1px solid #26b050;
}
.invalid {
  outline: 1px solid #e50000;
}
.validation-message {
  color: #e50000;
}
/* =========================================================
   LOGOWANIE
   ========================================================= */
.logowanie-container {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 15px;
}
.logowanie-panel {
  width: 100%;
  max-width: 400px;
  padding: 35px;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}
.logowanie-naglowek {
  text-align: center;
  margin-bottom: 30px;
}
.logowanie-naglowek h1 {
  font-size: 28px;
  margin-bottom: 8px;
}
.logowanie-naglowek p {
  margin: 0;
  color: #6c757d;
}
.logowanie-linki {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 25px;
  font-size: 14px;
}
.logowanie-linki span {
  margin-top: 8px;
  color: #6c757d;
}
/* =========================================================
   GŁÓWNY UKŁAD APLIKACJI
   ========================================================= */
/*
    Desktop pozostawiamy zgodny z układem Blazora.

    Nie zmieniamy tutaj .page ani .sidebar.
    Zmiany dotyczące sidebara są wykonywane dopiero
    w sekcji MOBILE.
*/
.sidebar {
  height: 100vh;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #ffffff;
  border-right: 1px solid #e9ecef;
  overflow: hidden;
}
.sidebar > * {
  min-height: 0;
}
.menu-container {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.menu-header {
  height: 76px;
  min-height: 76px;
  flex-shrink: 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #e9ecef;
}
.nav-scrollable {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 12px;
}
.menu-footer {
  flex: 0 0 auto;
  min-height: 0;
  padding: 10px 12px 14px;
  background: #ffffff;
  border-top: 1px solid #e9ecef;
}
/* =========================================================
   MENU - NAGŁÓWEK
   ========================================================= */
.menu-header {
  height: 76px;
  flex-shrink: 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #e9ecef;
}
.menu-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  color: #212529;
  text-decoration: none;
}
.menu-logo-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 12px;
  background: #f1f5ff;
  color: #2563eb;
  font-size: 21px;
  transition: all 0.2s ease;
}
.menu-logo:hover .menu-logo-icon {
  transform: scale(1.05);
  background: #e5edff;
}
.menu-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.menu-logo-title {
  font-size: 16px;
  font-weight: 700;
  color: #212529;
}
.menu-logo-subtitle {
  margin-top: 4px;
  font-size: 10px;
  color: #9aa0a6;
}
/* =========================================================
   NAWIGACJA
   ========================================================= */
.nav-scrollable {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 12px;
}
.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.menu-section {
  margin-bottom: 17px;
}
.menu-section:not(:has(.menu-link)) {
  display: none;
}
.menu-section-title {
  padding: 7px 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #9aa0a6;
}
/* =========================================================
   POZYCJE MENU
   ========================================================= */
.menu-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 9px;
  color: #59636e;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.menu-link:hover {
  color: #212529;
  background: #f5f7fa;
}
.menu-link.active {
  color: #2563eb;
  background: #eef4ff;
  font-weight: 600;
}
.menu-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: #2563eb;
}
.menu-link-icon {
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}
.menu-link-text {
  margin-left: 6px;
}
.menu-notification-icon {
  position: relative;
}
.menu-notification-icon-unread {
  color: #dc3545;
}
.menu-notification-count {
  position: absolute;
  top: -8px;
  right: -9px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #dc3545;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}
.menu-link.active .menu-notification-count {
  border-color: #eef4ff;
}
.order-board {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 540px;
  overflow-x: auto;
  box-sizing: border-box;
  padding-bottom: 8px;
}
.order-board-column {
  display: flex;
  flex: 0 0 280px;
  flex-direction: column;
  min-height: 520px;
  border: 1px solid #e5e7eb;
  border-top-width: 3px;
  border-radius: 10px;
  background: #f8fafc;
}
.order-board-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}
.order-board-column-header .badge {
  min-width: 22px;
  color: #475569;
}
.order-board-column-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  padding: 0 9px 9px;
}
.order-board-card {
  padding: 11px;
  border: 1px solid #e4e8ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
  transition: box-shadow .15s ease, opacity .15s ease, transform .15s ease;
}
.order-board-card:hover {
  box-shadow: 0 5px 12px rgba(15, 23, 42, .1);
  transform: translateY(-1px);
}
.order-board-actions {
  display: flex;
  gap: 6px;
  margin: 0 0 8px;
}
.order-board-actions .btn {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-height: 30px;
}
.order-board-number {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2px;
}
.order-board-card-title {
  margin: 0 0 8px;
  color: #1e293b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
.order-board-card-meta,
.order-board-card-date {
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
}
.order-board-card-date {
  color: #94a3b8;
}
.order-board-empty {
  margin: 18px 0;
  color: #94a3b8;
  font-size: 12px;
  text-align: center;
}
.order-board-status-accepted { border-top-color: #2563eb; }
.order-board-status-in-progress { border-top-color: #d97706; }
.order-board-status-waiting { border-top-color: #64748b; }
.order-board-status-ready { border-top-color: #16a34a; }
.order-board-status-released { border-top-color: #334155; }
.order-board-status-cancelled { border-top-color: #dc2626; }
@media (max-width: 767.98px) {
  .order-board {
    margin: 0 -4px;
    padding: 0 4px 8px;
  }
  .order-board-column {
    flex-basis: 250px;
  }
  .order-board-actions .btn {
    min-height: 36px;
  }
}
/* =========================================================
   STOPKA MENU
   ========================================================= */
.menu-footer {
  flex-shrink: 0;
  padding: 10px 12px 14px;
  background: #ffffff;
  border-top: 1px solid #e9ecef;
}
/* =========================================================
   UŻYTKOWNIK
   ========================================================= */
.menu-user {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 7px 8px;
  border-radius: 10px;
  color: #212529;
  text-decoration: none;
  transition: background 0.15s ease;
}
.menu-user:hover {
  background: #f5f7fa;
}
.menu-user-avatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 15px;
}
.menu-user-info {
  min-width: 0;
  flex: 1;
  margin-left: 10px;
}
.menu-user-name {
  overflow: hidden;
  color: #343a40;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.menu-user-label {
  margin-top: 2px;
  color: #9aa0a6;
  font-size: 11px;
}
.menu-user-arrow {
  margin-left: 8px;
  color: #adb5bd;
  font-size: 11px;
}
/* =========================================================
   WYLOGOWANIE
   ========================================================= */
.menu-logout-form {
  margin-top: 4px;
}
.menu-logout {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #6c757d;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.menu-logout:hover {
  background: #fff1f1;
  color: #dc3545;
}
.menu-logout i {
  width: 30px;
  text-align: center;
  font-size: 16px;
}
/* =========================================================
   LOGOWANIE / REJESTRACJA W MENU
   ========================================================= */
.menu-auth {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}
.menu-login-button,
.menu-register-button {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.menu-login-button {
  background: #2563eb;
  color: #ffffff;
}
.menu-login-button:hover {
  background: #1d4ed8;
  color: #ffffff;
  transform: translateY(-1px);
}
.menu-register-button {
  background: #f1f5f9;
  color: #475569;
}
.menu-register-button:hover {
  background: #e2e8f0;
  color: #1e293b;
  transform: translateY(-1px);
}
/* =========================================================
   WERSJA APLIKACJI
   ========================================================= */
.menu-version {
  margin-top: 12px;
  color: #adb5bd;
  font-size: 10px;
  text-align: center;
}
.menu-version span {
  margin-left: 4px;
}
/* =========================================================
   MOBILE - ELEMENTY DOMYŚLNIE UKRYTE
   ========================================================= */
.mobile-topbar,
.mobile-menu-toggle,
.mobile-menu-overlay {
  display: none;
}
/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 767.98px) {
  /* -----------------------------------------------------
       GŁÓWNY UKŁAD
       ----------------------------------------------------- */
  .page {
    min-height: 100vh;
    display: block !important;
  }
  main {
    width: 100%;
    min-width: 0;
  }
  .content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  /* -----------------------------------------------------
       GÓRNY PASEK
       ----------------------------------------------------- */
  .mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 1500;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
  }
  /* -----------------------------------------------------
       LOGO MOBILE
       ----------------------------------------------------- */
  .mobile-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #212529;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
  }
  .mobile-logo-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 9px;
    background: #eef4ff;
    color: #2563eb;
    font-size: 18px;
  }
  .mobile-logo-text {
    white-space: nowrap;
  }
  /* -----------------------------------------------------
       PRZYCISK HAMBURGERA
       ----------------------------------------------------- */
  .mobile-menu-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0;
    border-radius: 9px;
    background: #f5f7fa;
    color: #343a40;
    font-size: 23px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
  }
  .mobile-menu-button:hover {
    background: #e9ecef;
  }
  .mobile-menu-button:active {
    transform: scale(0.94);
  }
  /* -----------------------------------------------------
       CHECKBOX STERUJĄCY
       ----------------------------------------------------- */
  .mobile-menu-toggle {
    display: none;
  }
  /* -----------------------------------------------------
       SIDEBAR MOBILE
       ----------------------------------------------------- */
  .sidebar {
    position: fixed !important;
    top: 0;
    left: 0;
    z-index: 2000;
    width: 285px !important;
    height: 100vh !important;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }
  /* -----------------------------------------------------
       OTWARCIE SIDEBARA
       ----------------------------------------------------- */
  .mobile-menu-toggle:checked ~ .sidebar {
    transform: translateX(0);
  }
  /* -----------------------------------------------------
       OVERLAY
       ----------------------------------------------------- */
  .mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1900;
    display: block;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }
  .mobile-menu-toggle:checked ~ .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
  }
  /* -----------------------------------------------------
       ELEMENTY SIDEBARA
       ----------------------------------------------------- */
  .sidebar .menu-header {
    flex-shrink: 0;
  }
  .sidebar .nav-scrollable {
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: block;
  }
  .sidebar .menu-footer {
    flex-shrink: 0;
  }
  /* -----------------------------------------------------
       WIĘKSZE ELEMENTY DOTYKOWE
       ----------------------------------------------------- */
  .sidebar .menu-link {
    min-height: 48px;
  }
  .sidebar .menu-user {
    min-height: 56px;
  }
  .sidebar .menu-login-button,
  .sidebar .menu-register-button {
    min-height: 46px;
  }
  /* -----------------------------------------------------
       LOGOWANIE / REJESTRACJA
       ----------------------------------------------------- */
  .logowanie-container {
    min-height: calc(100vh - 60px);
    padding: 20px 12px;
    align-items: center;
  }
  .logowanie-panel {
    max-width: 100%;
    padding: 25px 20px;
    border-radius: 10px;
  }
  .logowanie-naglowek {
    margin-bottom: 22px;
  }
  .logowanie-naglowek h1 {
    font-size: 24px;
  }
}
/* =========================================================
   BARDZO MAŁE TELEFONY
   ========================================================= */
@media (max-width: 380px) {
  .mobile-topbar {
    padding: 0 10px;
  }
  .mobile-logo {
    font-size: 14px;
  }
  .mobile-menu-button {
    width: 38px;
    height: 38px;
  }
  .sidebar {
    width: min(285px, 85vw) !important;
  }
  .logowanie-panel {
    padding: 22px 16px;
  }
}
/* =========================================================
   BLAZOR ERROR
   ========================================================= */
.blazor-error-boundary {
  background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvaGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjwv c3ZnPg==) no-repeat 1rem/1.8rem, #b32121;
  padding: 1rem 1rem 1rem 3.7rem;
  color: white;
}
.blazor-error-boundary::after {
  content: "An error has occurred.";
}
.darker-border-checkbox.form-check-input {
  border-color: #929292;
}
.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}
.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}
.menu-icon-close {
  display: none;
}
@media (max-width: 767.98px) {
  .mobile-menu-toggle:checked ~ .mobile-menu-button .menu-icon-open {
    display: none;
  }
  .mobile-menu-toggle:checked ~ .mobile-menu-button .menu-icon-close {
    display: block;
  }
}
/* =========================================================
ZARZĄDZANIE KONTEM
========================================================= */
.account-page {
  width: 100%;
  max-width: 2000px;
  margin: 0 auto;
  padding: 10px 0 30px;
}
/* ---------------------------------------------------------
NAGŁÓWEK
--------------------------------------------------------- */
.account-page-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}
.account-page-header-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 21px;
}
.account-page-header h1 {
  margin: 0;
  color: #212529;
  font-size: 24px;
  font-weight: 700;
}
.account-page-header p {
  margin: 4px 0 0;
  color: #8a929a;
  font-size: 13px;
}
/* ---------------------------------------------------------
UKŁAD
--------------------------------------------------------- */
.account-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
/* ---------------------------------------------------------
LEWE MENU
--------------------------------------------------------- */
.account-sidebar {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.035);
}
/* ---------------------------------------------------------
MENU
--------------------------------------------------------- */
.account-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.account-nav-section {
  margin-bottom: 12px;
}
.account-nav-section {
  margin-bottom: 0;
}
.account-nav-title {
  padding: 8px 11px 6px;
  color: #9aa0a6;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
/* ---------------------------------------------------------
ELEMENT MENU
--------------------------------------------------------- */
.account-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 8px;
  color: #59636e;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}
.account-nav-link {
  color: #212529;
  background: #f5f7fa;
}
.account-nav-link.active {
  color: #2563eb;
  background: #eef4ff;
  font-weight: 600;
}
.account-nav-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: #2563eb;
}
/* ---------------------------------------------------------
IKONA
--------------------------------------------------------- */
.account-nav-icon {
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
}
.account-nav-text {
  margin-left: 6px;
}
/* ---------------------------------------------------------
PRAWA CZĘŚĆ
--------------------------------------------------------- */
.account-content {
  min-width: 0;
  padding: 25px;
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.035);
}
.account-content h3 {
  margin-top: 0;
  margin-bottom: 6px;
  color: #212529;
  font-size: 20px;
  font-weight: 700;
}
.account-content > p {
  color: #6c757d;
  font-size: 13px;
}
/* ---------------------------------------------------------
FORMULARZE
--------------------------------------------------------- */
.account-content .form-control {
  border-radius: 8px;
  border-color: #dee2e6;
}
.account-content .form-control {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.15rem rgba(37, 99, 235, 0.12);
}
.account-content .btn-primary {
  background: #2563eb;
  border-color: #2563eb;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}
.account-content .btn-primary {
  background: #1d4ed8;
  border-color: #1d4ed8;
}
/* ---------------------------------------------------------
STATUS MESSAGE
--------------------------------------------------------- */
.account-content .alert {
  border-radius: 9px;
  border: 0;
  font-size: 13px;
}
/* ---------------------------------------------------------
MOBILE
--------------------------------------------------------- */
@media (max-width: 767.98px) {
  .account-page {
    padding: 5px 0 25px;
  }
  .account-page-header {
    margin-bottom: 18px;
  }
  .account-page-header-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 18px;
  }
  .account-page-header h1 {
    font-size: 20px;
  }
  .account-page-header p {
    font-size: 12px;
  }
  .account-layout {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .account-sidebar {
    width: 100%;
    padding: 8px;
  }
  .account-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
  }
  .account-nav-section {
    display: contents;
  }
  .account-nav-title {
    display: none;
  }
  .account-nav-link {
    min-height: 44px;
  }
  .account-content {
    width: 100%;
    padding: 20px 16px;
  }
  .account-content h3 {
    font-size: 18px;
  }
}
@media (max-width: 380px) {
  .account-nav {
    grid-template-columns: 1fr;
  }
}
/* =========================================================
STATUS MESSAGE
========================================================= */
.account-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
}
.account-status-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}
.account-status-success {
  background: #ecfdf3;
  color: #15803d;
}
.account-status-error {
  background: #fff1f2;
  color: #dc2626;
}
.account-status-text {
  min-width: 0;
}
/* =========================================================
   SEKCJE ZARZĄDZANIA KONTEM
   ========================================================= */
.account-section-header {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 25px;
}
.account-section-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 18px;
}
.account-section-header h2 {
  margin: 0;
  color: #212529;
  font-size: 20px;
  font-weight: 700;
}
.account-section-header p {
  margin: 4px 0 0;
  color: #8a929a;
  font-size: 12px;
}
/* =========================================================
   FORMULARZ
   ========================================================= */
.account-form {
  max-width: 600px;
}
.account-field {
  margin-bottom: 20px;
}
.account-field label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: #495057;
  font-size: 12px;
  font-weight: 600;
}
.account-field label i {
  color: #2563eb;
  font-size: 13px;
}
.account-field .form-control {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  font-size: 13px;
}
.account-field .form-control:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.15rem rgba(37, 99, 235, 0.12);
}
.account-field-hint {
  margin-top: 5px;
  color: #9aa0a6;
  font-size: 11px;
}
.account-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 25px;
}
/* =========================================================
   PRZYCISKI
   ========================================================= */
.account-primary-button,
.account-secondary-button,
.account-danger-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.account-primary-button {
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #ffffff;
}
.account-primary-button:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
  transform: translateY(-1px);
}
.account-secondary-button {
  border: 1px solid #dee2e6;
  background: #ffffff;
  color: #495057;
}
.account-secondary-button:hover {
  background: #f8f9fa;
  color: #212529;
}
.account-danger-button {
  border: 1px solid #dc3545;
  background: #fff;
  color: #dc3545;
}
.account-danger-button:hover {
  background: #dc3545;
  color: #ffffff;
}
/* =========================================================
   INFO
   ========================================================= */
.account-info-box,
.account-warning-box,
.account-danger-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
  padding: 14px;
  border-radius: 9px;
  font-size: 12px;
}
.account-info-box {
  background: #eef4ff;
  color: #315b9e;
}
.account-warning-box {
  background: #fff8e6;
  color: #856404;
}
.account-danger-box {
  background: #fff1f2;
  color: #a61b29;
}
.account-info-box > i,
.account-warning-icon,
.account-danger-box-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: 14px;
}
.account-info-box > i {
  background: #dce8ff;
  color: #2563eb;
}
.account-warning-icon {
  background: #ffefbd;
  color: #b77900;
}
.account-danger-box-icon {
  background: #ffe0e3;
  color: #dc3545;
}
.account-info-box strong,
.account-warning-box strong,
.account-danger-box strong {
  display: block;
  margin-bottom: 3px;
}
.account-info-box span,
.account-warning-box span,
.account-danger-box span {
  display: block;
  line-height: 1.5;
}
/* =========================================================
   WALIDACJA
   ========================================================= */
.account-validation {
  margin-bottom: 18px;
  padding: 10px 13px;
  border-radius: 8px;
  background: #fff1f2;
  color: #dc3545;
  font-size: 12px;
}
.account-validation-message {
  display: block;
  margin-top: 5px;
  color: #dc3545;
  font-size: 11px;
}
/* =========================================================
   E-MAIL
   ========================================================= */
.account-email-wrapper {
  position: relative;
}
.account-confirmed {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  color: #198754;
  font-size: 11px;
  font-weight: 600;
}
.account-field-action {
  margin-top: 6px;
}
.account-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.account-link-button:hover {
  color: #1d4ed8;
  text-decoration: underline;
}
/* =========================================================
   DANE OSOBOWE
   ========================================================= */
.personal-data-card {
  display: flex;
  gap: 18px;
  padding: 20px;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  background: #fafbfc;
}
.personal-data-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 19px;
}
.personal-data-content {
  min-width: 0;
}
.personal-data-content h4 {
  margin: 0 0 8px;
  color: #212529;
  font-size: 15px;
}
.personal-data-content p {
  margin: 0 0 8px;
  color: #6c757d;
  font-size: 12px;
  line-height: 1.6;
}
.personal-data-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
/* =========================================================
   KARTA AKCJI
   ========================================================= */
.account-action-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  border: 1px solid #e9ecef;
  border-radius: 10px;
}
.account-action-card h4 {
  margin: 0 0 5px;
  color: #212529;
  font-size: 14px;
}
.account-action-card p {
  margin: 0;
  color: #6c757d;
  font-size: 12px;
}
/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 767.98px) {
  .account-section-header {
    margin-bottom: 20px;
  }
  .account-section-header h2 {
    font-size: 18px;
  }
  .account-section-header p {
    font-size: 11px;
  }
  .account-form {
    max-width: none;
  }
  .account-form-actions {
    justify-content: stretch;
  }
  .account-primary-button {
    width: 100%;
  }
  .personal-data-card {
    padding: 15px;
  }
  .personal-data-actions {
    flex-direction: column;
  }
  .personal-data-actions form,
  .personal-data-actions button,
  .personal-data-actions a {
    width: 100%;
  }
  .account-action-card {
    align-items: stretch;
    flex-direction: column;
  }
  .account-action-card form {
    width: 100%;
  }
  .account-action-card .account-danger-button {
    width: 100%;
  }
}
/* =========================================================
   ACCOUNT / ZARZĄDZANIE KONTEM
   ========================================================= */
.account-page {
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 40px;
}
.account-page-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}
.account-page-header-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 23px;
}
.account-page-header h1 {
  margin: 0;
  font-size: 25px;
  font-weight: 700;
  color: #212529;
}
.account-page-header p {
  margin: 5px 0 0;
  color: #8a929b;
  font-size: 13px;
}
/* =========================================================
   ACCOUNT CARD
   ========================================================= */
.account-card {
  margin-bottom: 20px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.04);
}
.account-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}
.account-card-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 18px;
}
.account-card-icon.success {
  background: #eaf8f0;
  color: #198754;
}
.account-card-header h3 {
  margin: 2px 0 5px;
  color: #212529;
  font-size: 17px;
  font-weight: 700;
}
.account-card-header p {
  margin: 0;
  color: #8a929b;
  font-size: 13px;
  line-height: 1.5;
}
/* =========================================================
   SEKCJE
   ========================================================= */
.account-section {
  padding: 20px 0;
  border-top: 1px solid #edf0f2;
}
.account-section:first-child {
  border-top: 0;
}
.account-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  color: #343a40;
  font-size: 14px;
  font-weight: 700;
}
.account-section-title i {
  color: #2563eb;
}
.account-section p {
  margin: 0 0 15px;
  color: #7b838c;
  font-size: 13px;
  line-height: 1.5;
}
/* =========================================================
   ALERT
   ========================================================= */
.account-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 10px;
  font-size: 13px;
}
.account-alert > i {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 17px;
}
.account-alert strong {
  color: #343a40;
}
.account-alert p {
  margin: 5px 0 8px;
  color: #6c757d;
  line-height: 1.5;
}
.account-alert.danger {
  background: #fff4f4;
  border: 1px solid #ffd8d8;
  color: #dc3545;
}
.account-alert.warning {
  background: #fff9e8;
  border: 1px solid #ffe6a8;
  color: #b58105;
}
.account-alert-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.account-alert-link:hover {
  text-decoration: underline;
}
/* =========================================================
   INFO
   ========================================================= */
.account-info-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  background: #f5f8ff;
  border-radius: 10px;
  color: #2563eb;
}
.account-info-box > i {
  margin-top: 2px;
}
.account-info-box strong {
  color: #343a40;
  font-size: 13px;
}
.account-info-box p {
  margin: 5px 0 0;
  color: #6c757d;
  font-size: 12px;
  line-height: 1.5;
}
/* =========================================================
   BUTTONS
   ========================================================= */
.account-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.account-button.primary {
  background: #2563eb;
  color: #ffffff;
}
.account-button.primary:hover {
  background: #1d4ed8;
  color: #ffffff;
  transform: translateY(-1px);
}
.account-button.secondary {
  background: #f1f5f9;
  color: #475569;
}
.account-button.secondary:hover {
  background: #e2e8f0;
  color: #1e293b;
}
.account-button.danger {
  background: #fff1f1;
  color: #dc3545;
}
.account-button.danger:hover {
  background: #ffe1e1;
  color: #c82333;
}
.account-card-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 20px;
  border-top: 1px solid #edf0f2;
}
/* =========================================================
   EMPTY STATE
   ========================================================= */
.account-empty-state {
  padding: 20px 10px 10px;
  text-align: center;
}
.account-empty-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: #f1f5f9;
  color: #94a3b8;
  font-size: 25px;
}
.account-empty-state h4 {
  margin: 0 0 7px;
  color: #343a40;
  font-size: 15px;
}
.account-empty-state p {
  max-width: 500px;
  margin: 0 auto 18px;
  color: #8a929b;
  font-size: 13px;
  line-height: 1.5;
}
/* =========================================================
   LISTA AKCJI
   ========================================================= */
.account-actions-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.account-action {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 8px 12px;
  border-radius: 10px;
  color: #212529;
  text-decoration: none;
  transition: background 0.15s ease;
}
.account-action:hover {
  background: #f5f7fa;
}
.account-action-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 9px;
  background: #eef4ff;
  color: #2563eb;
}
.account-action-content {
  flex: 1;
  min-width: 0;
  margin-left: 12px;
}
.account-action-content strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.account-action-content span {
  display: block;
  margin-top: 3px;
  color: #8a929b;
  font-size: 11px;
}
.account-action-arrow {
  margin-left: 10px;
  color: #adb5bd;
  font-size: 11px;
}
/* =========================================================
   PASSKEYS
   ========================================================= */
.passkeys-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.passkey-item {
  display: flex;
  align-items: center;
  min-height: 68px;
  padding: 10px 12px;
  border: 1px solid #edf0f2;
  border-radius: 10px;
  background: #fafbfc;
}
.passkey-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #eef4ff;
  color: #2563eb;
}
.passkey-info {
  flex: 1;
  min-width: 0;
  margin-left: 12px;
}
.passkey-name {
  overflow: hidden;
  color: #343a40;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.passkey-description {
  margin-top: 3px;
  color: #9aa0a6;
  font-size: 11px;
}
.passkey-actions form {
  display: flex;
  gap: 5px;
}
.account-icon-button {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}
.account-icon-button:hover {
  background: #e2e8f0;
  color: #334155;
}
.account-icon-button.danger:hover {
  background: #fff1f1;
  color: #dc3545;
}
/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 767.98px) {
  .account-page {
    padding-bottom: 25px;
  }
  .account-page-header {
    gap: 11px;
    margin-bottom: 18px;
  }
  .account-page-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    font-size: 19px;
  }
  .account-page-header h1 {
    font-size: 20px;
  }
  .account-page-header p {
    font-size: 11px;
  }
  .account-card {
    padding: 17px;
    margin-bottom: 14px;
    border-radius: 11px;
  }
  .account-card-header {
    gap: 10px;
    margin-bottom: 17px;
  }
  .account-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    font-size: 15px;
  }
  .account-card-header h3 {
    font-size: 15px;
  }
  .account-card-header p {
    font-size: 12px;
  }
  .account-alert {
    padding: 12px;
  }
  .account-button {
    width: 100%;
  }
  .account-card-actions {
    justify-content: stretch;
  }
  .passkey-item {
    align-items: flex-start;
  }
  .passkey-actions {
    margin-left: 5px;
  }
  .passkey-description {
    padding-right: 5px;
  }
  .account-action {
    min-height: 58px;
  }
}
/* =========================================================
   KONFIGURACJA AUTHENTICATORA / 2FA
   ========================================================= */
.account-page {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}
.account-card {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}
.account-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  border-bottom: 1px solid #e9ecef;
}
.account-card-header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #212529;
}
.account-card-header p {
  margin: 5px 0 0;
  color: #6c757d;
  font-size: 13px;
}
.account-card-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 21px;
}
.authenticator-intro {
  display: flex;
  gap: 12px;
  margin: 24px 28px 8px;
  padding: 15px 17px;
  border-radius: 10px;
  background: #f8faff;
  border: 1px solid #e4ebff;
}
.authenticator-intro-icon {
  color: #2563eb;
  font-size: 17px;
  padding-top: 1px;
}
.authenticator-intro strong {
  display: block;
  color: #343a40;
  font-size: 13px;
}
.authenticator-intro p {
  margin: 3px 0 0;
  color: #6c757d;
  font-size: 12px;
}
.authenticator-steps {
  padding: 16px 28px 10px;
}
.authenticator-step {
  display: flex;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid #f0f1f3;
}
.authenticator-step:last-child {
  border-bottom: 0;
}
.authenticator-step-number {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}
.authenticator-step-content {
  flex: 1;
  min-width: 0;
}
.authenticator-step-content h2 {
  margin: 3px 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #212529;
}
.authenticator-step-content > p {
  margin: 0 0 16px;
  color: #6c757d;
  font-size: 13px;
  line-height: 1.6;
}
.authenticator-apps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.authenticator-app {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  color: #343a40;
  text-decoration: none;
  background: #ffffff;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.authenticator-app:hover {
  color: #212529;
  background: #f8faff;
  border-color: #cddaff;
  transform: translateY(-1px);
}
.authenticator-app > i {
  font-size: 19px;
  color: #2563eb;
}
.authenticator-app span {
  display: flex;
  flex-direction: column;
}
.authenticator-app strong {
  font-size: 12px;
}
.authenticator-app small {
  margin-top: 2px;
  color: #9aa0a6;
  font-size: 10px;
}
.authenticator-key-box {
  margin-top: 16px;
  padding: 17px;
  border: 1px solid #dbe4ff;
  border-radius: 10px;
  background: #f8faff;
}
.authenticator-key-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  color: #59636e;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.authenticator-key-label i {
  color: #2563eb;
}
.authenticator-key-box code {
  display: block;
  padding: 11px 13px;
  border-radius: 7px;
  background: #ffffff;
  border: 1px solid #e3e7ef;
  color: #2563eb;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.5px;
  word-break: break-all;
}
.authenticator-key-info {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  color: #8a929c;
  font-size: 11px;
}
.authenticator-help {
  display: flex;
  gap: 11px;
  margin-top: 14px;
  margin-bottom: 18px;
}
.authenticator-help > i {
  flex-shrink: 0;
  font-size: 16px;
}
.authenticator-help strong {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
}
.authenticator-help p {
  margin: 0;
  font-size: 11px;
}
.authenticator-help a {
  font-weight: 600;
}
.authenticator-qr {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px auto 0;
}
.authenticator-qr-placeholder {
  width: 160px;
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px dashed #d9dee7;
  border-radius: 10px;
  color: #adb5bd;
}
.authenticator-qr-placeholder i {
  font-size: 48px;
}
.authenticator-qr-placeholder span {
  font-size: 11px;
}
.authenticator-form {
  max-width: 430px;
  margin-top: 18px;
}
.authenticator-code-input {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 6px;
}
.authenticator-submit {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
}
.authenticator-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 28px 24px;
  padding: 13px 15px;
  border-radius: 9px;
  background: #f8f9fa;
  color: #8a929c;
  font-size: 11px;
}
.authenticator-footer i {
  flex-shrink: 0;
  color: #28a745;
  font-size: 15px;
}
/* =========================================================
   AUTHENTICATOR - MOBILE
   ========================================================= */
@media (max-width: 767.98px) {
  .account-page {
    max-width: 100%;
  }
  .account-card {
    border-radius: 10px;
  }
  .account-card-header {
    padding: 20px;
  }
  .account-card-header h1 {
    font-size: 19px;
  }
  .account-card-header p {
    font-size: 12px;
  }
  .account-card-icon {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
  .authenticator-intro {
    margin: 18px 20px 4px;
  }
  .authenticator-steps {
    padding: 10px 20px;
  }
  .authenticator-step {
    gap: 12px;
    padding: 20px 0;
  }
  .authenticator-step-number {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .authenticator-step-content h2 {
    font-size: 15px;
  }
  .authenticator-apps {
    grid-template-columns: 1fr;
  }
  .authenticator-key-box code {
    font-size: 13px;
    letter-spacing: 1px;
  }
  .authenticator-form {
    max-width: 100%;
  }
  .authenticator-footer {
    margin: 0 20px 20px;
  }
}

/* =========================================================
   COMPACT DENSITY
   ========================================================= */
:root {
  font-size: 14px;
}

body {
  font-size: 1rem;
}

.content.px-4 {
  padding-top: 0.8rem;
  padding-right: 1rem !important;
  padding-left: 1rem !important;
}

main h1 {
  font-size: 1.65rem;
}

main h2,
main .h2 {
  font-size: 1.35rem;
}

main h3,
main .h3 {
  font-size: 1.15rem;
}

main .g-4 {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

main .mb-4 {
  margin-bottom: 1rem !important;
}

main .mb-3 {
  margin-bottom: 0.7rem !important;
}

main .card {
  border-radius: 0.5rem;
}

main .card-body {
  padding: 0.85rem;
}

main .card-header,
main .card-footer {
  padding: 0.6rem 0.85rem;
}

main .table {
  margin-bottom: 0;
  font-size: 0.9rem;
}

main .table > :not(caption) > * > * {
  padding: 0.45rem 0.6rem;
}

main .form-label {
  margin-bottom: 0.25rem;
  font-size: 0.86rem;
}

main .form-control,
main .form-select {
  min-height: 2.25rem;
  padding: 0.3rem 0.55rem;
  font-size: 0.9rem;
}

main textarea.form-control {
  min-height: auto;
}

main .form-check-input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.18rem;
}

main .form-text,
main .validation-message,
main .small,
main small {
  font-size: 0.8rem;
}

main .btn {
  padding: 0.3rem 0.65rem;
  font-size: 0.88rem;
}

main .btn-sm {
  padding: 0.2rem 0.45rem;
  font-size: 0.8rem;
}

main .alert {
  margin-bottom: 0.8rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
}

main .badge {
  padding: 0.35em 0.55em;
  font-size: 0.75em;
}

.menu-header {
  height: 64px;
  min-height: 64px;
  padding: 0 16px;
}

.menu-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 18px;
}

.menu-logo {
  gap: 10px;
}

.menu-logo-title {
  font-size: 14px;
}

.nav-scrollable {
  padding: 9px 8px;
}

.menu-section {
  margin-bottom: 10px;
}

.menu-section-title {
  padding: 5px 9px;
}

.menu-link {
  min-height: 36px;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 13px;
}

.menu-link.active::before {
  top: 6px;
  bottom: 6px;
}

.menu-link-icon {
  width: 26px;
  font-size: 14px;
}

.menu-footer {
  padding: 8px 8px 10px;
}

.menu-user {
  min-height: 46px;
  padding: 5px 6px;
}

.menu-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.menu-logout,
.menu-login-button,
.menu-register-button {
  min-height: 36px;
  font-size: 12px;
}

.menu-version {
  margin-top: 8px;
}

@media (min-width: 641px) {
  .page > .sidebar {
    width: 230px;
  }
}

@media (max-width: 767.98px) {
  .content.px-4 {
    padding-top: 0.65rem;
    padding-right: 0.75rem !important;
    padding-left: 0.75rem !important;
  }

  .mobile-topbar {
    height: 52px;
    padding: 0 12px;
  }

  .mobile-logo-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .mobile-menu-button {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .sidebar .menu-link {
    min-height: 40px;
  }
}

/* Gęstość elementów specyficznych dla obszaru konta i logowania. */
main .form-control,
main .form-select {
  min-height: 2.25rem !important;
}

main textarea.form-control {
  min-height: auto !important;
}

main .account-page {
  padding-bottom: 1.5rem;
}

main .account-page-header {
  gap: 10px;
  margin-bottom: 1rem;
}

main .account-page-header-icon,
main .account-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  font-size: 16px;
}

main .account-page-header h1,
main .account-card-header h1 {
  font-size: 1.45rem;
}

main .account-layout {
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 1rem;
}

main .account-sidebar {
  padding: 6px;
  border-radius: 9px;
}

main .account-nav-link {
  min-height: 34px;
  padding: 0 8px;
  font-size: 12px;
}

main .account-content {
  padding: 1rem;
  border-radius: 9px;
}

main .account-card {
  margin-bottom: 0.85rem;
  padding: 1rem;
  border-radius: 9px;
}

main .account-card-header {
  padding: 1rem;
}

main .account-field {
  margin-bottom: 0.85rem;
}

main .account-field .form-control {
  min-height: 2.25rem !important;
  padding: 0.3rem 0.55rem;
}

main .account-form-actions {
  margin-top: 1rem;
}

main .account-primary-button,
main .account-secondary-button,
main .account-danger-button,
main .account-button {
  min-height: 2.25rem;
  padding: 0 0.75rem;
  font-size: 12px;
}

main .account-status,
main .account-info-box,
main .account-warning-box,
main .account-danger-box,
main .account-alert,
main .account-validation {
  margin-bottom: 0.85rem;
  padding: 0.7rem;
}

main .personal-data-card,
main .account-action-card,
main .account-action {
  gap: 0.75rem;
  padding: 0.85rem;
}

.logowanie-container {
  min-height: calc(100vh - 96px);
  padding: 20px 12px;
}

.logowanie-panel {
  max-width: 360px;
  padding: 24px;
  border-radius: 10px;
}

.logowanie-naglowek {
  margin-bottom: 20px;
}

.logowanie-naglowek h1 {
  font-size: 23px;
}

.logowanie-linki {
  margin-top: 18px;
}
