/*
 * ASEEM Connect — odświeżona warstwa interfejsu 2026
 * UI-only: bez zmian w logice biznesowej aplikacji.
 */

:root {
  --aseem-primary: #2563eb;
  --aseem-primary-hover: #1d4ed8;
  --aseem-primary-soft: #eff6ff;
  --aseem-primary-border: #bfdbfe;
  --aseem-bg: #f6f8fc;
  --aseem-surface: #ffffff;
  --aseem-surface-soft: #f8fafc;
  --aseem-border: #e5eaf1;
  --aseem-border-strong: #d5dce7;
  --aseem-text: #172033;
  --aseem-muted: #718096;
  --aseem-sidebar: #111827;
  --aseem-sidebar-soft: #182235;
  --aseem-sidebar-text: #cbd5e1;
  --aseem-success: #138a63;
  --aseem-success-soft: #ecfdf5;
  --aseem-warning: #b7791f;
  --aseem-warning-soft: #fff8e7;
  --aseem-danger: #dc3545;
  --aseem-danger-soft: #fff1f2;
  --aseem-info: #1677b8;
  --aseem-info-soft: #eef8ff;
  --aseem-radius: 14px;
  --aseem-radius-sm: 10px;
  --aseem-shadow: 0 5px 22px rgba(28, 39, 60, .055);
  --aseem-shadow-hover: 0 10px 28px rgba(28, 39, 60, .09);
  --aseem-sidebar-width: 252px;
  --aseem-sidebar-collapsed: 72px;
  --aseem-topbar-height: 68px;
}

html {
  background: var(--aseem-bg);
  scroll-behavior: smooth;
}

body.aseem-app {
  padding-top: var(--aseem-topbar-height);
  background: var(--aseem-bg);
  color: var(--aseem-text);
  font-size: 13px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.aseem-app * {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

body.aseem-app *::-webkit-scrollbar { width: 8px; height: 8px; }
body.aseem-app *::-webkit-scrollbar-track { background: transparent; }
body.aseem-app *::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
body.aseem-app *::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

body.aseem-app a { color: var(--aseem-primary); }
body.aseem-app a:hover { color: var(--aseem-primary-hover); }
body.aseem-app strong,
body.aseem-app b { font-weight: 650 !important; }

/* ---------- Górny pasek ---------- */
body.aseem-app .top-bar {
  height: var(--aseem-topbar-height);
  background: rgba(255, 255, 255, .97) !important;
  border-bottom: 1px solid var(--aseem-border);
  box-shadow: 0 2px 12px rgba(26, 39, 60, .04) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow .2s ease;
}

body.aseem-app.aseem-scrolled .top-bar {
  box-shadow: 0 5px 18px rgba(26, 39, 60, .09) !important;
}

body.aseem-app .top-bar > .container-fluid,
body.aseem-app .top-bar > .container-fluid > .row,
body.aseem-app .top-bar > .container-fluid > .row > .col {
  height: 100%;
}

body.aseem-app .admin-logo {
  width: var(--aseem-sidebar-width);
  height: var(--aseem-topbar-height);
  margin-left: -15px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: normal;
  background: var(--aseem-sidebar) !important;
  border: 0 !important;
  border-right: 1px solid rgba(255,255,255,.06) !important;
  transition: width .22s ease;
}

body.aseem-app .admin-logo h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: normal;
}

body.aseem-app .admin-logo .aseem-logo {
  display: block;
  width: 158px;
  max-width: 100%;
  max-height: 42px;
  object-fit: contain;
  margin: 0 !important;
}

body.aseem-app .left-nav-toggle,
body.aseem-app .left-nav-collapsed {
  height: var(--aseem-topbar-height);
  line-height: var(--aseem-topbar-height);
}

body.aseem-app .left-nav-toggle a,
body.aseem-app .left-nav-collapsed a {
  width: 52px;
  height: var(--aseem-topbar-height);
  line-height: var(--aseem-topbar-height);
  color: #64748b !important;
  border-radius: 10px;
}

body.aseem-app .left-nav-toggle a:hover,
body.aseem-app .left-nav-collapsed a:hover {
  color: var(--aseem-primary) !important;
  background: var(--aseem-primary-soft);
}

body.aseem-app #offerDiv.aseem-offer-ticker {
  float: left;
  width: calc(100% - 630px);
  max-width: 780px;
  height: var(--aseem-topbar-height);
  margin: 0 0 0 8px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  color: #5f6b7b;
  font-size: 11px;
  white-space: nowrap;
}

body.aseem-app #offerDiv.aseem-offer-ticker::before,
body.aseem-app #offerDiv.aseem-offer-ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 36px;
  z-index: 2;
  pointer-events: none;
}
body.aseem-app #offerDiv.aseem-offer-ticker::before {
  left: 0;
  background: linear-gradient(90deg, #fff, rgba(255,255,255,0));
}
body.aseem-app #offerDiv.aseem-offer-ticker::after {
  right: 0;
  background: linear-gradient(270deg, #fff, rgba(255,255,255,0));
}

body.aseem-app .aseem-ticker-track {
  display: inline-block;
  padding-left: 100%;
  animation: aseemTicker 55s linear infinite;
  will-change: transform;
}
body.aseem-app #offerDiv:hover .aseem-ticker-track { animation-play-state: paused; }

@keyframes aseemTicker {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

body.aseem-app .top-right-nav > li > a {
  height: var(--aseem-topbar-height);
  line-height: var(--aseem-topbar-height);
  padding: 0 13px;
  color: #536174 !important;
  font-weight: 500;
}
body.aseem-app .top-right-nav > li > a:hover { background: #f8fafc; color: var(--aseem-text) !important; }
body.aseem-app .top-right-nav > li > a img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  margin-right: 8px !important;
  border: 2px solid #e8eef6 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
}
body.aseem-app .top-right-nav .dropdown-menu {
  margin-top: 7px;
  border: 1px solid var(--aseem-border);
  border-radius: 12px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, .13);
  overflow: hidden;
}
body.aseem-app .top-right-nav .dropdown-item {
  padding: 10px 16px;
  font-size: 13px;
}

/* ---------- Sidebar ---------- */
body.aseem-app .main-sidebar-nav {
  top: 0;
  width: var(--aseem-sidebar-width);
  background: var(--aseem-sidebar) !important;
  box-shadow: 8px 0 26px rgba(15, 23, 42, .05) !important;
  transition: width .22s ease, margin-left .22s ease;
  z-index: 990;
}

body.aseem-app .sidebar-nav { padding-top: var(--aseem-topbar-height); }

body.aseem-app .nav-profile {
  padding: 22px 18px 18px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  border-bottom: 1px solid rgba(255,255,255,.065) !important;
}
body.aseem-app .nav-profile img {
  width: 58px !important;
  height: 58px;
  object-fit: cover;
  margin-bottom: 9px !important;
  border: 3px solid rgba(255,255,255,.11);
  box-shadow: none !important;
}
body.aseem-app .nav-profile .lead {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
  color: #f8fafc !important;
}
body.aseem-app .nav-profile .text-muted {
  margin-top: 2px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #718096 !important;
}
body.aseem-app .nav-profile .notify { right: calc(50% - 35px) !important; top: 20px !important; transform: scale(.72); }

body.aseem-app .metisMenu { padding: 9px 10px 34px; }
body.aseem-app .metisMenu li { border-left: 0 !important; }
body.aseem-app .metisMenu > li.nav-heading {
  padding: 15px 11px 7px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #64748b !important;
}
body.aseem-app .metisMenu.nav > li { margin: 2px 0; border-radius: 10px; }
body.aseem-app .metisMenu.nav > li > a {
  min-height: 42px;
  padding: 10px 11px;
  display: flex;
  align-items: center;
  border-radius: 10px;
  color: var(--aseem-sidebar-text) !important;
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
body.aseem-app .metisMenu.nav > li > a:hover {
  color: #fff !important;
  background: rgba(255,255,255,.06) !important;
}
body.aseem-app .metisMenu.nav > li.active {
  width: auto !important;
  background: transparent !important;
}
body.aseem-app .metisMenu.nav > li.active > a {
  color: #fff !important;
  background: linear-gradient(135deg, rgba(37,99,235,.92), rgba(59,130,246,.82)) !important;
  box-shadow: 0 6px 16px rgba(37,99,235,.2);
}
body.aseem-app .metisMenu.nav > li > a i {
  width: 27px;
  margin: 0 8px 0 0;
  text-align: center;
  font-size: 13px;
  opacity: .92;
}
body.aseem-app .metisMenu.nav > li > ul {
  margin: 3px 0 6px 17px !important;
  padding: 4px 0 4px 9px !important;
  list-style: none;
  border-left: 1px solid rgba(148,163,184,.18);
  background: transparent !important;
}
body.aseem-app .metisMenu.nav > li > ul > li { margin: 1px 0; }
body.aseem-app .metisMenu.nav > li > ul > li > a {
  display: block;
  padding: 7px 9px !important;
  border-radius: 8px;
  color: #8896aa !important;
  font-size: 10.5px;
  line-height: 1.35;
  background: transparent !important;
  white-space: normal;
}
body.aseem-app .metisMenu.nav > li > ul > li > a:hover {
  color: #dbeafe !important;
  background: rgba(255,255,255,.04) !important;
}
body.aseem-app .metisMenu.nav > li > ul > li > a.activelink {
  color: #fff !important;
  background: rgba(37,99,235,.16) !important;
  font-weight: 650 !important;
}

/* Stan zwinięty */
body.aseem-app.nav-collapsed .main-sidebar-nav.dark-navigation {
  position: fixed;
  width: var(--aseem-sidebar-collapsed);
  height: 100%;
  background: var(--aseem-sidebar) !important;
}
body.aseem-app.nav-collapsed .admin-logo { width: var(--aseem-sidebar-collapsed); padding: 0; }
body.aseem-app.nav-collapsed .admin-logo .aseem-logo { display: none; }
body.aseem-app.nav-collapsed .admin-logo::after {
  content: "";
  width: 34px;
  height: 34px;
  background: url('../img/icon.png') center/contain no-repeat;
}
body.aseem-app.nav-collapsed .main-content,
body.aseem-app.nav-collapsed .page-header { margin-left: var(--aseem-sidebar-collapsed); }
body.aseem-app.nav-collapsed .metisMenu { padding-left: 8px; padding-right: 8px; }
body.aseem-app.nav-collapsed .metisMenu.nav > li,
body.aseem-app.nav-collapsed .metisMenu.nav > li.active,
body.aseem-app.nav-collapsed .metisMenu.nav > li:hover { width: 56px !important; }
body.aseem-app.nav-collapsed .metisMenu.nav > li > a {
  width: 56px;
  height: 46px;
  justify-content: center;
  padding: 0;
}
body.aseem-app.nav-collapsed .metisMenu.nav > li > a i { margin: 0; font-size: 16px; }
body.aseem-app.nav-collapsed .nav-profile { padding: 16px 8px !important; }
body.aseem-app.nav-collapsed .nav-profile img { width: 40px !important; height: 40px; }

/* ---------- Nagłówek i treść ---------- */
body.aseem-app .page-header {
  margin: 0 0 4px var(--aseem-sidebar-width);
  padding: 24px 32px 16px;
  background: transparent;
  box-shadow: none;
  transition: margin-left .22s ease;
}
body.aseem-app .page-header h2 {
  margin: 0 0 3px;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--aseem-text);
}
body.aseem-app .page-header .breadcrumb {
  font-size: 10.5px;
  font-weight: 500;
  text-transform: none;
}
body.aseem-app .page-header .breadcrumb > li > a { color: #64748b; }
body.aseem-app .page-header .breadcrumb > .active { color: #94a3b8; }
body.aseem-app .page-header .breadcrumb-item + .breadcrumb-item::before { color: #c1c9d4; }

body.aseem-app .main-content {
  margin-left: var(--aseem-sidebar-width);
  padding: 0 32px 42px;
  transition: margin-left .22s ease;
}
body.aseem-app .main-content > .row { margin-left: -8px; margin-right: -8px; }
body.aseem-app .main-content > .row > [class*="col-"] { padding-left: 8px; padding-right: 8px; }

/* ---------- Karty ---------- */
body.aseem-app .card {
  margin-bottom: 18px;
  background: var(--aseem-surface);
  border: 1px solid var(--aseem-border);
  border-radius: var(--aseem-radius);
  box-shadow: var(--aseem-shadow);
  overflow: visible;
  transition: box-shadow .18s ease, border-color .18s ease;
}
body.aseem-app .card:hover { border-color: #dfe5ed; }
body.aseem-app .card-header {
  display: block;
  padding: 15px 20px !important;
  min-height: 48px;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #edf0f4;
  border-radius: var(--aseem-radius) var(--aseem-radius) 0 0 !important;
  color: #263247;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
  text-transform: none;
}
body.aseem-app .card-header.card-default { background: linear-gradient(180deg, #fff, #fbfcfe); }
body.aseem-app .card-header.card-primary {
  color: #1d4ed8;
  background: #eff6ff;
  border-bottom-color: #dbeafe;
  box-shadow: inset 4px 0 0 #3b82f6;
}
body.aseem-app .card-header.card-success {
  color: #0f7658;
  background: #ecfdf5;
  border-bottom-color: #d1fae5;
  box-shadow: inset 4px 0 0 #10b981;
}
body.aseem-app .card-header.card-info {
  color: #126a9d;
  background: #eff9ff;
  border-bottom-color: #d9f0ff;
  box-shadow: inset 4px 0 0 #38bdf8;
}
body.aseem-app .card-header.card-warning {
  color: #9a6415;
  background: #fff8e8;
  border-bottom-color: #fdeac1;
  box-shadow: inset 4px 0 0 #f59e0b;
}
body.aseem-app .card-header.card-danger {
  color: #b42336;
  background: #fff1f2;
  border-bottom-color: #ffe0e4;
  box-shadow: inset 4px 0 0 #ef4444;
}
body.aseem-app .card-header.card-indigo,
body.aseem-app .card-header.card-teal { box-shadow: inset 4px 0 0 currentColor; }
body.aseem-app .card-header a { font-weight: 650; }
body.aseem-app .card-body { padding: 20px; }
body.aseem-app .card-footer {
  padding: 13px 20px;
  background: #fbfcfe;
  border-top: 1px solid var(--aseem-border);
  border-radius: 0 0 var(--aseem-radius) var(--aseem-radius);
}
body.aseem-app .box {
  border: 1px solid var(--aseem-border);
  border-radius: var(--aseem-radius);
  box-shadow: var(--aseem-shadow);
}

/* ---------- Typografia i pomocnicze ---------- */
body.aseem-app h1,
body.aseem-app h2,
body.aseem-app h3,
body.aseem-app h4,
body.aseem-app h5,
body.aseem-app h6 { color: var(--aseem-text); letter-spacing: -.015em; }
body.aseem-app .text-muted { color: var(--aseem-muted) !important; }
body.aseem-app hr { border-color: var(--aseem-border); }
body.aseem-app code {
  padding: 2px 6px;
  border-radius: 6px;
  color: #b42336;
  background: #fff1f2;
}

/* ---------- Przyciski ---------- */
body.aseem-app .btn {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
  box-shadow: none;
  transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease, border-color .14s ease;
}
body.aseem-app .btn:hover { transform: translateY(-1px); }
body.aseem-app .btn:active { transform: translateY(0); }
body.aseem-app .btn.btn-sm { min-height: 32px; padding: 5px 10px; font-size: 11px; border-radius: 8px; }
body.aseem-app .btn.btn-xs { min-height: 27px; padding: 3px 8px; border-radius: 7px; }
body.aseem-app .btn.btn-lg { min-height: 44px; padding: 10px 18px; border-radius: 11px; }
body.aseem-app .btn.btn-rounded { border-radius: 10px; }
body.aseem-app .btn.box-shadow { border-width: 1px !important; box-shadow: 0 5px 14px rgba(37,99,235,.18) !important; }
body.aseem-app .btn-primary {
  color: #fff !important;
  background: var(--aseem-primary) !important;
  border-color: var(--aseem-primary) !important;
  box-shadow: 0 4px 11px rgba(37,99,235,.16);
}
body.aseem-app .btn-primary:hover,
body.aseem-app .btn-primary:focus {
  background: var(--aseem-primary-hover) !important;
  border-color: var(--aseem-primary-hover) !important;
  box-shadow: 0 6px 15px rgba(37,99,235,.22);
}
body.aseem-app .btn-success { background: #16845f !important; border-color: #16845f !important; color: #fff !important; }
body.aseem-app .btn-danger { background: #dc3545 !important; border-color: #dc3545 !important; color: #fff !important; }
body.aseem-app .btn-warning { background: #e5a11a !important; border-color: #e5a11a !important; color: #fff !important; }
body.aseem-app .btn-info { background: #2387bd !important; border-color: #2387bd !important; color: #fff !important; }
body.aseem-app .btn-default {
  color: #455468 !important;
  background: #fff !important;
  border: 1px solid var(--aseem-border-strong) !important;
}
body.aseem-app .btn-default:hover { background: #f8fafc !important; border-color: #c8d1df !important; }
body.aseem-app .btn-outline-primary {
  color: var(--aseem-primary) !important;
  background: #fff !important;
  border-color: var(--aseem-primary-border) !important;
}
body.aseem-app .btn-outline-primary:hover { color: #fff !important; background: var(--aseem-primary) !important; border-color: var(--aseem-primary) !important; }
body.aseem-app .btn-icon { padding-left: 44px; }
body.aseem-app .btn.btn-icon i { width: 35px; line-height: 37px; background: rgba(255,255,255,.1); }

/* ---------- Formularze ---------- */
body.aseem-app label {
  margin-bottom: 5px;
  color: #4b586b;
  font-size: 11px;
  font-weight: 600;
}
body.aseem-app .form-group { margin-bottom: 16px; }
body.aseem-app .form-control,
body.aseem-app input[type="text"],
body.aseem-app input[type="email"],
body.aseem-app input[type="password"],
body.aseem-app input[type="number"],
body.aseem-app input[type="date"],
body.aseem-app textarea,
body.aseem-app select.form-control {
  min-height: 41px;
  height: 41px;
  padding: 8px 11px;
  color: #243044;
  background: #fff;
  border: 1px solid var(--aseem-border-strong);
  border-radius: 9px;
  box-shadow: 0 1px 2px rgba(15,23,42,.02);
  font-size: 12px;
  transition: border-color .14s ease, box-shadow .14s ease, background-color .14s ease;
}
body.aseem-app textarea { height: auto; min-height: 96px; }
body.aseem-app .form-control:focus,
body.aseem-app input[type="text"]:focus,
body.aseem-app input[type="email"]:focus,
body.aseem-app input[type="password"]:focus,
body.aseem-app input[type="number"]:focus,
body.aseem-app input[type="date"]:focus,
body.aseem-app textarea:focus,
body.aseem-app select.form-control:focus {
  border-color: #7ca8ff;
  box-shadow: 0 0 0 3px rgba(37,99,235,.10);
  outline: none !important;
}
body.aseem-app .form-control::placeholder,
body.aseem-app input::placeholder,
body.aseem-app textarea::placeholder { color: #a4adba; }
body.aseem-app .input-group-text,
body.aseem-app .input-group-addon {
  min-height: 41px;
  color: #66758b;
  background: #f8fafc;
  border-color: var(--aseem-border-strong);
}
body.aseem-app .custom-select { border-radius: 9px; border-color: var(--aseem-border-strong); }
body.aseem-app .select2-container { max-width: 100%; }
body.aseem-app .select2-container .select2-selection--single {
  height: 41px;
  border: 1px solid var(--aseem-border-strong);
  border-radius: 9px;
}
body.aseem-app .select2-container--default .select2-selection--single .select2-selection__rendered {
  height: 39px;
  line-height: 39px;
  padding-left: 11px;
  color: #243044;
  font-size: 12px;
}
body.aseem-app .select2-container--default .select2-selection--single .select2-selection__arrow { height: 39px; }
body.aseem-app .select2-dropdown {
  border-color: var(--aseem-border-strong);
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(15,23,42,.12);
  overflow: hidden;
}
body.aseem-app .select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--aseem-primary); }

body.aseem-app input[type="checkbox"],
body.aseem-app input[type="radio"] { accent-color: var(--aseem-primary); }

/* ---------- Tabele i DataTables ---------- */
body.aseem-app .aseem-table-scroll,
body.aseem-app .table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
body.aseem-app .table {
  margin-bottom: 0;
  color: #344054;
  font-size: 11.5px;
  background: #fff;
}
body.aseem-app .table > thead > tr > th,
body.aseem-app .table > thead:first-child > tr:first-child > th {
  padding: 11px 12px;
  color: #667085;
  background: #f8fafc;
  border: 0;
  border-top: 0;
  border-bottom: 1px solid var(--aseem-border);
  vertical-align: middle;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
}
body.aseem-app .table > tbody > tr > td,
body.aseem-app .table > tbody > tr > th,
body.aseem-app .table > tfoot > tr > td,
body.aseem-app .table > tfoot > tr > th {
  padding: 11px 12px;
  border: 0;
  border-bottom: 1px solid #edf0f4;
  vertical-align: middle;
  background: transparent;
}
body.aseem-app .table > tbody > tr:nth-of-type(odd) { background: #fcfdff; }
body.aseem-app .table > tbody > tr:hover { background: #f6f9ff; }
body.aseem-app .table > tbody > tr:last-child > td { border-bottom: 0; }
body.aseem-app .table-bordered { border: 1px solid var(--aseem-border); border-radius: 10px; }

body.aseem-app div.dataTables_wrapper { color: #667085; }
body.aseem-app div.dataTables_wrapper div.dataTables_filter { margin: 0 0 12px; text-align: left; }
body.aseem-app div.dataTables_wrapper div.dataTables_filter label,
body.aseem-app div.dataTables_wrapper div.dataTables_length label { font-size: 10.5px; color: #667085; }
body.aseem-app div.dataTables_filter input,
body.aseem-app div.dataTables_length select {
  height: 38px;
  margin-left: 6px;
  padding: 6px 10px;
  border: 1px solid var(--aseem-border-strong);
  border-radius: 9px;
  background: #fff;
  color: #344054;
  font-size: 11.5px;
  outline: 0;
}
body.aseem-app div.dataTables_filter input:focus,
body.aseem-app div.dataTables_length select:focus { border-color: #7ca8ff; box-shadow: 0 0 0 3px rgba(37,99,235,.10); }
body.aseem-app .dataTables_info { padding-top: 12px !important; font-size: 10.5px; color: #8a94a6; }
body.aseem-app div.dataTables_paginate { margin-top: 8px; }
body.aseem-app div.dataTables_paginate a,
body.aseem-app .dataTables_wrapper .dataTables_paginate .paginate_button {
  min-width: 34px;
  height: 34px;
  margin: 2px !important;
  padding: 7px 9px !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  color: #667085 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 11px;
}
body.aseem-app div.dataTables_paginate a:hover,
body.aseem-app div.dataTables_paginate a.current,
body.aseem-app .dataTables_wrapper .dataTables_paginate .paginate_button:hover,
body.aseem-app .dataTables_wrapper .dataTables_paginate .paginate_button.current {
  color: #fff !important;
  background: var(--aseem-primary) !important;
  border-color: var(--aseem-primary) !important;
}
body.aseem-app table.dataTable.no-footer { border-bottom: 1px solid var(--aseem-border); }

/* ---------- Badges, alerty, paski ---------- */
body.aseem-app .badge {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .015em;
}
body.aseem-app .badge-primary { background: var(--aseem-primary); }
body.aseem-app .badge-success { background: #16845f; }
body.aseem-app .badge-danger { background: #dc3545; }
body.aseem-app .badge-warning { background: #e9a51a; color: #fff; }
body.aseem-app .alert {
  padding: 12px 15px;
  border-radius: 11px;
  border-width: 1px;
  font-size: 11.5px;
  box-shadow: none;
}
body.aseem-app .alert-primary,
body.aseem-app .alert-info { color: #155f91; background: var(--aseem-info-soft); border-color: #cfeafe; }
body.aseem-app .alert-success { color: #126c50; background: var(--aseem-success-soft); border-color: #ccefe2; }
body.aseem-app .alert-warning { color: #8b611e; background: var(--aseem-warning-soft); border-color: #f6dfad; }
body.aseem-app .alert-danger { color: #a72f41; background: var(--aseem-danger-soft); border-color: #ffd8de; }
body.aseem-app .progress {
  height: 8px;
  border-radius: 999px;
  background: #edf1f6;
  box-shadow: none;
  overflow: hidden;
}
body.aseem-app .progress-bar { border-radius: 999px; background: var(--aseem-primary); }

/* ---------- Nawigacja, zakładki, modale ---------- */
body.aseem-app .nav-tabs { border-bottom: 1px solid var(--aseem-border); }
body.aseem-app .nav-tabs .nav-link {
  padding: 10px 13px;
  color: #667085;
  border: 0;
  border-bottom: 2px solid transparent;
  font-size: 11.5px;
  font-weight: 600;
}
body.aseem-app .nav-tabs .nav-link.active,
body.aseem-app .nav-tabs .nav-item.show .nav-link {
  color: var(--aseem-primary);
  background: transparent;
  border-bottom-color: var(--aseem-primary);
}
body.aseem-app .dropdown-menu {
  border: 1px solid var(--aseem-border);
  border-radius: 11px;
  box-shadow: 0 14px 36px rgba(15,23,42,.12);
}
body.aseem-app .dropdown-item { font-size: 11.5px; }
body.aseem-app .modal-content {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(15,23,42,.2);
  overflow: hidden;
}
body.aseem-app .modal-header,
body.aseem-app .modal-footer { border-color: var(--aseem-border); }
body.aseem-app .modal-title { font-weight: 700; }
body.aseem-app .ui-dialog {
  border: 0 !important;
  border-radius: 14px !important;
  box-shadow: 0 24px 70px rgba(15,23,42,.2) !important;
  overflow: hidden;
}

/* ---------- Nowy system prowizyjny ---------- */
body.aseem-app .aseem-p26-wrap { margin-bottom: 18px; }
body.aseem-app .aseem-p26-head { margin-bottom: 14px; }
body.aseem-app .aseem-p26-title {
  font-size: 20px;
  line-height: 1.25;
  color: var(--aseem-text);
  letter-spacing: -.025em;
}
body.aseem-app .aseem-p26-sub { color: var(--aseem-muted); font-size: 10.5px; }
body.aseem-app .aseem-p26-pill {
  padding: 6px 10px;
  background: var(--aseem-primary-soft);
  border: 1px solid var(--aseem-primary-border);
  color: #1d4ed8;
  font-size: 9.5px;
}
body.aseem-app .aseem-p26-grid { gap: 12px; }
body.aseem-app .aseem-p26-box {
  padding: 16px;
  border: 1px solid var(--aseem-border);
  border-radius: 13px;
  box-shadow: 0 3px 14px rgba(28,39,60,.04);
}
body.aseem-app .aseem-p26-box:hover { border-color: #d7e1ef; box-shadow: 0 7px 20px rgba(28,39,60,.065); }
body.aseem-app .aseem-p26-label { color: #7a8698; font-size: 9px; letter-spacing: .06em; }
body.aseem-app .aseem-p26-value { margin: 6px 0; font-size: 25px; letter-spacing: -.035em; color: #172033; }
body.aseem-app .aseem-p26-blue { color: #1d5fcc; }
body.aseem-app .aseem-p26-good { color: #138a63; }
body.aseem-app .aseem-p26-warn { color: #c17a0b; }
body.aseem-app .aseem-p26-help { color: #7b8799; font-size: 9.5px; line-height: 1.5; }
body.aseem-app .aseem-p26-progress { height: 7px; background: #edf1f6; }
body.aseem-app .aseem-p26-progress > span { background: linear-gradient(90deg, #3b82f6, #1d4ed8); }
body.aseem-app .aseem-p26-level {
  padding: 11px;
  background: #f9fbfd;
  border-color: var(--aseem-border);
  border-radius: 10px;
}
body.aseem-app .aseem-p26-level.active { background: #f1f6ff; border-color: #a8c7fa; box-shadow: inset 0 0 0 1px rgba(37,99,235,.04); }
body.aseem-app .aseem-p26-level strong { color: #1d5fcc; font-size: 13px; }
body.aseem-app .aseem-p26-level small { font-size: 9px; }
body.aseem-app .aseem-p26-section-title { font-size: 13px; color: #263247; }
body.aseem-app .aseem-p26-chart { min-height: 260px; }
body.aseem-app .aseem-p26-league th,
body.aseem-app .aseem-p26-league td { padding: 8px 7px; border-bottom-color: #edf0f4; font-size: 10px; }
body.aseem-app .aseem-p26-league th { color: #7a8698; font-size: 8.5px; text-transform: uppercase; letter-spacing: .035em; }
body.aseem-app .aseem-p26-rank { width: 24px; height: 24px; font-size: 9px; }
body.aseem-app .aseem-p26-rank.top { background: var(--aseem-primary); }
body.aseem-app .aseem-p26-alert {
  border-radius: 10px;
  padding: 10px 13px;
  background: var(--aseem-warning-soft);
  border-color: #f1d9a4;
  color: #805a11;
  font-size: 10.5px;
}
body.aseem-app .aseem-p26-filter .card-body { padding-top: 15px; padding-bottom: 15px; }

/* ---------- Drobne usprawnienia komponentów ---------- */
body.aseem-app .name { max-width: 440px; }
body.aseem-app .client {
  margin: 3px 5px 3px 0;
  padding: 5px 9px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 10px;
}
body.aseem-app .client:hover { transform: none; background: #eaf2ff; border-color: #cfe0ff; }
body.aseem-app .toast { border-radius: 12px; box-shadow: 0 14px 36px rgba(15,23,42,.14); }
body.aseem-app .daterangepicker { border-color: var(--aseem-border); border-radius: 12px; box-shadow: 0 16px 42px rgba(15,23,42,.14); }
body.aseem-app .daterangepicker td.active,
body.aseem-app .daterangepicker td.active:hover { background-color: var(--aseem-primary); }

/* ---------- Fokus / dostępność ---------- */
body.aseem-app a:focus-visible,
body.aseem-app button:focus-visible,
body.aseem-app .btn:focus-visible,
body.aseem-app input:focus-visible,
body.aseem-app select:focus-visible,
body.aseem-app textarea:focus-visible {
  outline: 3px solid rgba(37,99,235,.24) !important;
  outline-offset: 2px;
}

/* ---------- Login ---------- */
body.aseem-login {
  min-height: 100%;
  background:
    radial-gradient(circle at 15% 15%, rgba(37,99,235,.10), transparent 36%),
    radial-gradient(circle at 85% 85%, rgba(14,165,233,.08), transparent 34%),
    #f5f8fc !important;
  color: var(--aseem-text);
}
body.aseem-login .misc-wrapper { padding: 32px 0; }
body.aseem-login .misc-header { margin-bottom: 20px; }
body.aseem-login .misc-header img { width: 205px; max-width: 82% !important; }
body.aseem-login .misc-box {
  padding: 28px;
  border: 1px solid var(--aseem-border);
  border-radius: 16px;
  box-shadow: 0 18px 55px rgba(30,41,59,.10);
}
body.aseem-login .misc-box label { color: #4b586b; font-size: 11px; font-weight: 600; }
body.aseem-login .form-control {
  height: 44px;
  border: 1px solid var(--aseem-border-strong);
  border-radius: 10px;
  font-size: 12px;
}
body.aseem-login .form-control:focus { border-color: #7ca8ff; box-shadow: 0 0 0 3px rgba(37,99,235,.10); }
body.aseem-login .btn { min-height: 42px; border-radius: 10px !important; font-weight: 650; }
body.aseem-login .btn-primary { background: var(--aseem-primary) !important; border-color: var(--aseem-primary) !important; }
body.aseem-login .misc-footer p { color: #94a3b8; font-size: 10px; }
body.aseem-login hr { border-color: var(--aseem-border); }

/* ---------- Mobile ---------- */
.aseem-sidebar-backdrop { display: none; }

@media (max-width: 1199px) {
  body.aseem-app #offerDiv.aseem-offer-ticker { width: calc(100% - 590px); }
  body.aseem-app .main-content { padding-left: 24px; padding-right: 24px; }
  body.aseem-app .page-header { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 991px) {
  :root { --aseem-topbar-height: 64px; }

  body.aseem-app .main-content,
  body.aseem-app.nav-collapsed .main-content {
    margin-left: 0;
    padding: 0 18px 36px;
  }
  body.aseem-app .page-header,
  body.aseem-app.nav-collapsed .page-header {
    margin-left: 0;
    padding: 19px 18px 13px;
  }
  body.aseem-app .main-sidebar-nav,
  body.aseem-app.nav-collapsed .main-sidebar-nav.dark-navigation {
    width: 268px;
    margin-left: -268px;
    z-index: 990;
    box-shadow: 18px 0 42px rgba(15,23,42,.18) !important;
  }
  body.aseem-app.nav-toggle .main-sidebar-nav { margin-left: 0; }
  body.aseem-app .sidebar-nav { padding-top: var(--aseem-topbar-height); }

  body.aseem-app .admin-logo.dark-logo {
    display: flex !important;
    width: 165px;
    height: var(--aseem-topbar-height);
    margin-left: -15px;
    padding: 0 10px 0 14px;
    justify-content: flex-start;
    background: #fff !important;
    border-right: 1px solid var(--aseem-border) !important;
  }
  body.aseem-app .admin-logo .aseem-logo { width: 132px; }
  body.aseem-app.nav-collapsed .admin-logo::after { display: none; }
  body.aseem-app.nav-collapsed .admin-logo .aseem-logo { display: block; }
  body.aseem-app .left-nav-toggle { display: block; }
  body.aseem-app .left-nav-collapsed { display: none; }
  body.aseem-app #offerDiv.aseem-offer-ticker { display: none; }
  body.aseem-app .top-right-nav > li > a { padding: 0 10px; }
  body.aseem-app .top-right-nav .avtar-dropdown > a { font-size: 0; }
  body.aseem-app .top-right-nav .avtar-dropdown > a img { margin-right: 0 !important; }

  .aseem-sidebar-backdrop {
    position: fixed;
    inset: var(--aseem-topbar-height) 0 0 0;
    z-index: 980;
    background: rgba(15,23,42,.38);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
  }
  body.aseem-app.nav-toggle { overflow: hidden; }
  body.nav-toggle .aseem-sidebar-backdrop { display: block; }
}

@media (max-width: 767px) {
  body.aseem-app .page-header h2 { font-size: 20px; }
  body.aseem-app .page-header .breadcrumb { font-size: 9.5px; }
  body.aseem-app .main-content { padding-left: 12px; padding-right: 12px; }
  body.aseem-app .page-header { padding-left: 12px; padding-right: 12px; }
  body.aseem-app .card { margin-bottom: 13px; border-radius: 12px; }
  body.aseem-app .card-header { padding: 13px 15px !important; border-radius: 12px 12px 0 0 !important; }
  body.aseem-app .card-body { padding: 15px; }
  body.aseem-app .card-footer { padding: 11px 15px; }
  body.aseem-app .btn { min-height: 40px; }
  body.aseem-app .row > [class*="col-"] > .form-control,
  body.aseem-app .row > [class*="col-"] > .btn { margin-bottom: 7px; }
  body.aseem-app .page-header .text-right,
  body.aseem-app .aseem-p26-filter .text-right { text-align: left !important; }
  body.aseem-app .top-right-nav .right-sidebar-toggle { display: none; }
  body.aseem-app .aseem-p26-title { font-size: 18px; }
  body.aseem-app .aseem-p26-value { font-size: 22px; }
  body.aseem-app .aseem-p26-box { padding: 14px; }
  body.aseem-app .dataTables_wrapper .dataTables_filter,
  body.aseem-app .dataTables_wrapper .dataTables_length { width: 100%; float: none; }
  body.aseem-app div.dataTables_filter input { width: calc(100% - 58px); max-width: 280px; }
  body.aseem-app .table { font-size: 10.5px; }
  body.aseem-app .table > tbody > tr > td,
  body.aseem-app .table > thead > tr > th { padding: 9px 10px; }
}

@media (max-width: 480px) {
  body.aseem-app .admin-logo.dark-logo { width: 132px; }
  body.aseem-app .admin-logo .aseem-logo { width: 108px; }
  body.aseem-app .left-nav-toggle a { width: 44px; }
  body.aseem-app .top-right-nav > li > a { padding: 0 7px; }
  body.aseem-app .top-right-nav > li > a img { width: 34px; height: 34px; }
  body.aseem-login .misc-box { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.aseem-app *, body.aseem-app *::before, body.aseem-app *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ========================================================================== */
/* ASEEM Connect 2026 - dashboard handlowca                                  */
/* ========================================================================== */
body.aseem-app .aseem-dashboard-header { padding-top: 24px; padding-bottom: 18px; }
body.aseem-app .aseem-dashboard-header h2 { margin: 2px 0 5px; font-size: 28px; letter-spacing: -.5px; }
body.aseem-app .aseem-dashboard-eyebrow { color: var(--aseem-primary); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.1px; }
body.aseem-app .aseem-dashboard-date { color: var(--aseem-muted); font-size: 11px; }
body.aseem-app .aseem-dashboard-date i { margin-right: 5px; }
body.aseem-app .aseem-dashboard-actions .btn { margin: 3px 0 3px 5px; }

body.aseem-app .aseem-section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin: 2px 0 13px; }
body.aseem-app .aseem-section-head-space { margin-top: 27px; }
body.aseem-app .aseem-section-head h3 { margin:0 0 3px; color:#172033; font-size:17px; font-weight:750; letter-spacing:-.15px; }
body.aseem-app .aseem-section-head p { margin:0; color:var(--aseem-muted); font-size:10.5px; }

body.aseem-app .aseem-dashboard-kpis { margin-bottom: 5px; }
body.aseem-app .aseem-kpi-card { position:relative; min-height:108px; display:flex; align-items:center; gap:13px; margin-bottom:14px; padding:17px; border:1px solid var(--aseem-border); border-radius:14px; background:#fff; box-shadow:0 5px 18px rgba(15,23,42,.035); color:inherit; transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
body.aseem-app .aseem-kpi-card:hover { transform:translateY(-2px); box-shadow:0 10px 28px rgba(15,23,42,.08); border-color:#cbd7ea; color:inherit; }
body.aseem-app .aseem-kpi-card.attention { border-color:#fecaca; background:linear-gradient(135deg,#fff 0%,#fff8f8 100%); }
body.aseem-app .aseem-kpi-card.attention-warning { border-color:#fde2a7; background:linear-gradient(135deg,#fff 0%,#fffbef 100%); }
body.aseem-app .aseem-kpi-icon { flex:0 0 43px; width:43px; height:43px; display:flex; align-items:center; justify-content:center; border-radius:12px; background:#eef5ff; color:var(--aseem-primary); font-size:18px; }
body.aseem-app .aseem-kpi-icon.danger { background:#fff0f0; color:#dc3545; }
body.aseem-app .aseem-kpi-icon.warning { background:#fff7e3; color:#d78b00; }
body.aseem-app .aseem-kpi-icon.success { background:#eaf9f1; color:#169b62; }
body.aseem-app .aseem-kpi-content { min-width:0; display:block; }
body.aseem-app .aseem-kpi-content small { display:block; color:#69778d; font-size:9.5px; text-transform:uppercase; font-weight:750; letter-spacing:.45px; }
body.aseem-app .aseem-kpi-content strong { display:block; margin:1px 0; color:#172033; font-size:25px; line-height:1.05; font-weight:780; }
body.aseem-app .aseem-kpi-content em { display:block; overflow:hidden; color:#7c899c; font-size:9.5px; font-style:normal; text-overflow:ellipsis; white-space:nowrap; }
body.aseem-app .aseem-kpi-arrow { position:absolute; right:14px; top:50%; transform:translateY(-50%); color:#b7c2d0; }

body.aseem-app .aseem-dashboard-card { overflow:hidden; border-radius:14px; }
body.aseem-app .aseem-dashboard-card-head { min-height:69px; display:flex; align-items:center; justify-content:space-between; gap:15px; padding:14px 17px !important; background:#fff !important; }
body.aseem-app .aseem-dashboard-card-head > div:first-child { min-width:0; display:flex; align-items:center; gap:11px; }
body.aseem-app .aseem-dashboard-card-head h4 { margin:0 0 2px; color:#172033; font-size:13px; font-weight:750; }
body.aseem-app .aseem-dashboard-card-head p { margin:0; color:#8591a2; font-size:9.5px; line-height:1.4; }
body.aseem-app .aseem-dashboard-card-head.compact { min-height:64px; }
body.aseem-app .aseem-card-icon { flex:0 0 34px; width:34px; height:34px; display:flex; align-items:center; justify-content:center; border-radius:10px; color:var(--aseem-primary); background:#eef5ff; }
body.aseem-app .aseem-card-icon.danger { color:#dc3545; background:#fff0f0; }
body.aseem-app .aseem-card-icon.warning { color:#d78b00; background:#fff7e3; }
body.aseem-app .aseem-card-icon.success { color:#169b62; background:#eaf9f1; }
body.aseem-app .aseem-text-link { flex:0 0 auto; color:var(--aseem-primary); font-size:9.5px; font-weight:700; }
body.aseem-app .aseem-text-link i { margin-left:4px; }

body.aseem-app .aseem-followup-list { display:block; }
body.aseem-app .aseem-followup-item { display:flex; align-items:center; gap:12px; min-height:76px; padding:12px 16px; border-bottom:1px solid #edf1f6; }
body.aseem-app .aseem-followup-item:last-child { border-bottom:0; }
body.aseem-app .aseem-followup-item:hover { background:#fafcff; }
body.aseem-app .aseem-followup-mark { flex:0 0 38px; width:38px; height:38px; display:flex; align-items:center; justify-content:center; border-radius:11px; background:#eef5ff; color:var(--aseem-primary); }
body.aseem-app .aseem-followup-mark.danger { background:#fff0f0; color:#dc3545; }
body.aseem-app .aseem-followup-mark.warning { background:#fff7e3; color:#d78b00; }
body.aseem-app .aseem-followup-mark.success { background:#eaf9f1; color:#169b62; }
body.aseem-app .aseem-followup-mark.muted { background:#f1f4f8; color:#64748b; }
body.aseem-app .aseem-followup-main { min-width:0; flex:1; }
body.aseem-app .aseem-followup-top { display:flex; align-items:center; flex-wrap:wrap; gap:7px; }
body.aseem-app .aseem-followup-company { color:#1d2a3f; font-size:11.5px; font-weight:750; }
body.aseem-app .aseem-followup-desc { margin-top:2px; color:#59677a; font-size:10px; }
body.aseem-app .aseem-followup-meta { margin-top:2px; color:#98a2b1; font-size:9px; }
body.aseem-app .aseem-mini-badge { display:inline-flex; align-items:center; min-height:19px; padding:2px 7px; border-radius:999px; background:#edf4ff; color:#3768b5; font-size:8px; font-weight:750; }
body.aseem-app .aseem-mini-badge.danger { background:#fff0f0; color:#c83f4b; }
body.aseem-app .aseem-mini-badge.warning { background:#fff6dd; color:#b87800; }
body.aseem-app .aseem-mini-badge.success { background:#e9f9f1; color:#178658; }
body.aseem-app .aseem-mini-badge.muted { background:#f0f2f5; color:#707c8d; }
body.aseem-app .aseem-followup-actions { flex:0 0 auto; display:flex; gap:5px; }
body.aseem-app .aseem-followup-actions a { width:30px; height:30px; display:flex; align-items:center; justify-content:center; border:1px solid #e5eaf1; border-radius:9px; background:#fff; color:#637189; }
body.aseem-app .aseem-followup-actions a:hover { color:var(--aseem-primary); border-color:#c9d8ef; background:#f6f9fe; }

body.aseem-app .aseem-debt-item, body.aseem-app .aseem-prepayment-item { min-height:58px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 15px; border-bottom:1px solid #edf1f6; color:inherit; }
body.aseem-app .aseem-debt-item:hover, body.aseem-app .aseem-prepayment-item:hover { background:#fafcff; color:inherit; }
body.aseem-app .aseem-debt-item > div, body.aseem-app .aseem-prepayment-item > div { min-width:0; }
body.aseem-app .aseem-debt-item strong, body.aseem-app .aseem-prepayment-item strong { display:block; max-width:220px; overflow:hidden; color:#273449; font-size:10.5px; text-overflow:ellipsis; white-space:nowrap; }
body.aseem-app .aseem-debt-item span, body.aseem-app .aseem-prepayment-item span { display:block; margin-top:2px; color:#98a2b1; font-size:8.5px; }
body.aseem-app .aseem-debt-item > b { flex:0 0 auto; color:#c73d49; font-size:10.5px; }
body.aseem-app .aseem-prepayment-item .text-right b { display:block; color:#bd7d00; font-size:14px; }
body.aseem-app .aseem-card-summary { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:11px 15px; font-size:9.5px; }
body.aseem-app .aseem-card-summary strong { font-size:12px; }
body.aseem-app .danger-soft { background:#fff6f6; color:#bd3541; }
body.aseem-app .aseem-prepayment-card { margin-top:14px; }

body.aseem-app .aseem-empty-state { min-height:180px; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:25px; text-align:center; color:#93a0b0; }
body.aseem-app .aseem-empty-state i { margin-bottom:9px; color:#2aae72; font-size:26px; }
body.aseem-app .aseem-empty-state strong { color:#526176; font-size:11px; }
body.aseem-app .aseem-empty-state span { margin-top:4px; max-width:360px; font-size:9.5px; }
body.aseem-app .aseem-empty-state.small { min-height:110px; }
body.aseem-app .aseem-empty-state.small i { font-size:20px; }

body.aseem-app .aseem-period-inline { display:flex; align-items:center; gap:7px; }
body.aseem-app .aseem-period-inline .form-control { width:auto; min-width:115px; height:37px; }
body.aseem-app .aseem-period-inline .btn { min-height:37px; }
body.aseem-app .aseem-dashboard-provision .aseem-p26-head { margin-top:0; }
body.aseem-app .aseem-dashboard-provision .aseem-p26-wrap { margin-top:0; }

body.aseem-app .aseem-task-item { min-height:62px; display:flex; align-items:center; gap:10px; padding:10px 15px; border-bottom:1px solid #edf1f6; color:inherit; }
body.aseem-app .aseem-task-item:hover { background:#fafcff; color:inherit; }
body.aseem-app .aseem-task-state { flex:0 0 8px; width:8px; height:8px; border-radius:50%; background:#e44c59; box-shadow:0 0 0 4px #fff0f1; }
body.aseem-app .aseem-task-state.working { background:#3f7ce5; box-shadow:0 0 0 4px #eef5ff; }
body.aseem-app .aseem-task-item > div { min-width:0; flex:1; }
body.aseem-app .aseem-task-item strong { display:block; color:#344156; font-size:9.5px; }
body.aseem-app .aseem-task-item span { display:block; margin-top:2px; overflow:hidden; color:#7f8b9c; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
body.aseem-app .aseem-task-item > i { color:#b8c2ce; }

body.aseem-app .aseem-note-snippet { position:relative; padding:0 26px 12px 0; margin-bottom:12px; border-bottom:1px solid #edf1f6; }
body.aseem-app .aseem-note-snippet:last-child { margin-bottom:0; border-bottom:0; }
body.aseem-app .aseem-note-snippet > div { display:flex; align-items:center; justify-content:space-between; gap:8px; }
body.aseem-app .aseem-note-snippet span { color:#617189; font-size:8px; font-weight:750; text-transform:uppercase; }
body.aseem-app .aseem-note-snippet small { color:#9ba6b4; font-size:8px; }
body.aseem-app .aseem-note-snippet p { margin:5px 0 0; color:#465469; font-size:9.5px; line-height:1.55; }
body.aseem-app .aseem-note-snippet > a { position:absolute; right:0; top:0; color:#a8b2bf; }
body.aseem-app .aseem-note-snippet > a:hover { color:var(--aseem-primary); }
body.aseem-app .aseem-dashboard-notepad { width:100%; min-height:250px; resize:vertical; padding:13px; border:1px solid #e5eaf1; border-radius:10px; background:#fbfcfe; color:#3d4a5f; font-size:10.5px; line-height:1.65; outline:none; }
body.aseem-app .aseem-dashboard-notepad:focus { border-color:#aac7f2; background:#fff; box-shadow:0 0 0 3px rgba(37,99,235,.07); }
body.aseem-app .h-100 { height:calc(100% - 14px); }

@media (max-width: 1199px) {
  body.aseem-app .aseem-dashboard-actions { margin-top:10px; text-align:left !important; }
}
@media (max-width: 991px) {
  body.aseem-app .aseem-section-head { align-items:flex-start; flex-direction:column; }
  body.aseem-app .aseem-period-inline { width:100%; flex-wrap:wrap; }
  body.aseem-app .aseem-period-inline .form-control { flex:1; min-width:130px; }
  body.aseem-app .aseem-followup-actions { display:none; }
  body.aseem-app .h-100 { height:auto; }
}
@media (max-width: 767px) {
  body.aseem-app .aseem-dashboard-header h2 { font-size:23px; }
  body.aseem-app .aseem-dashboard-actions .btn { margin-left:0; margin-right:5px; }
  body.aseem-app .aseem-kpi-card { min-height:94px; }
  body.aseem-app .aseem-followup-item { align-items:flex-start; padding:12px; }
  body.aseem-app .aseem-followup-top { align-items:flex-start; flex-direction:column; gap:4px; }
  body.aseem-app .aseem-dashboard-card-head { align-items:flex-start; }
  body.aseem-app .aseem-dashboard-card-head > .aseem-text-link { display:none; }
  body.aseem-app .aseem-period-inline .btn { flex:0 0 auto; }
}

/* =========================================================
   ASEEM Connect - Monitor wydajnosci 2026
   ========================================================= */
body.aseem-app .aseem-perf-widget { position:fixed; right:18px; bottom:18px; z-index:1200; font-family:inherit; }
body.aseem-app .aseem-perf-pill { display:flex; align-items:center; gap:8px; min-height:38px; padding:8px 12px; border:1px solid rgba(15,23,42,.08); border-radius:999px; background:#fff; box-shadow:0 10px 30px rgba(15,23,42,.14); color:#334155; cursor:pointer; font-size:10px; }
body.aseem-app .aseem-perf-pill i { width:20px; height:20px; display:flex; align-items:center; justify-content:center; border-radius:50%; background:#ecfdf5; color:#16a36a; }
body.aseem-app .aseem-perf-pill strong { font-size:11px; }
body.aseem-app .aseem-perf-pill span { padding-left:8px; border-left:1px solid #e8edf3; color:#7b8798; }
body.aseem-app .aseem-perf-warning .aseem-perf-pill i { background:#fff7e7; color:#d08b0d; }
body.aseem-app .aseem-perf-danger .aseem-perf-pill i { background:#fff0f1; color:#d33f4f; }
body.aseem-app .aseem-perf-popover { position:absolute; right:0; bottom:48px; display:none; width:330px; padding:14px; border:1px solid #e3e9f0; border-radius:14px; background:#fff; box-shadow:0 20px 45px rgba(15,23,42,.16); }
body.aseem-app .aseem-perf-popover.is-open { display:block; }
body.aseem-app .aseem-perf-popover-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
body.aseem-app .aseem-perf-popover-head strong { color:#2f3a4d; font-size:11px; }
body.aseem-app .aseem-perf-popover-head button { border:0; background:transparent; color:#94a0af; font-size:20px; line-height:1; cursor:pointer; }
body.aseem-app .aseem-perf-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:7px; }
body.aseem-app .aseem-perf-grid > div { padding:9px 10px; border-radius:9px; background:#f7f9fc; }
body.aseem-app .aseem-perf-grid span { display:block; color:#929dac; font-size:8px; text-transform:uppercase; font-weight:700; }
body.aseem-app .aseem-perf-grid b { display:block; margin-top:2px; color:#3c485c; font-size:11px; }
body.aseem-app .aseem-perf-link { display:block; margin-top:10px; padding:9px 11px; border-radius:9px; background:#eef5ff; color:#2563a9; font-size:9.5px; font-weight:700; text-align:center; }
body.aseem-app .aseem-perf-link:hover { background:#e3efff; color:#164f8d; }

body.aseem-app .aseem-perf-page-head h2 { margin-bottom:3px; }
body.aseem-app .aseem-perf-periods { display:flex; align-items:center; justify-content:flex-end; gap:5px; }
body.aseem-app .aseem-perf-periods > span { margin-right:4px; color:#8c98a8; font-size:9px; font-weight:700; text-transform:uppercase; }
body.aseem-app .aseem-perf-page .card { border:1px solid #e8edf3; box-shadow:0 6px 20px rgba(30,45,70,.035); }
body.aseem-app .aseem-perf-kpi .card-body { min-height:102px; display:flex; align-items:center; gap:13px; }
body.aseem-app .aseem-perf-kpi-icon { flex:0 0 42px; width:42px; height:42px; display:flex; align-items:center; justify-content:center; border-radius:12px; background:#eef5ff; color:#3676c8; font-size:16px; }
body.aseem-app .aseem-perf-kpi small, body.aseem-app .aseem-perf-kpi em { display:block; color:#8b97a7; font-size:8.5px; font-style:normal; }
body.aseem-app .aseem-perf-kpi strong { display:block; margin:2px 0; color:#303d52; font-size:19px; line-height:1.1; }
body.aseem-app .aseem-perf-kpi.has-warning .aseem-perf-kpi-icon { background:#fff8ea; color:#c88710; }
body.aseem-app .aseem-perf-kpi.has-danger .aseem-perf-kpi-icon { background:#fff0f1; color:#d44755; }
body.aseem-app .aseem-perf-card .card-header { min-height:62px; display:flex; align-items:center; justify-content:space-between; gap:10px; background:#fff; border-bottom:1px solid #edf1f5; }
body.aseem-app .aseem-perf-card .card-header strong { display:block; color:#354258; font-size:11px; }
body.aseem-app .aseem-perf-card .card-header span { display:block; margin-top:2px; color:#96a1af; font-size:8.5px; }
body.aseem-app .aseem-perf-table { font-size:9px; }
body.aseem-app .aseem-perf-table thead th { padding:10px 11px; background:#f9fbfd; border-top:0; border-bottom:1px solid #e8edf3; color:#7e8b9c; font-size:7.8px; text-transform:uppercase; letter-spacing:.02em; white-space:nowrap; }
body.aseem-app .aseem-perf-table tbody td { padding:10px 11px; vertical-align:middle; border-top:1px solid #f0f3f7; color:#5a687c; white-space:nowrap; }
body.aseem-app .aseem-perf-table tbody td:first-child { white-space:normal; min-width:160px; }
body.aseem-app .aseem-perf-table tbody strong { color:#3d4a5e; font-size:9px; }
body.aseem-app .aseem-perf-type { display:inline-block; padding:3px 6px; border-radius:6px; background:#f1f4f8; color:#748196; font-size:7.5px; font-weight:750; text-transform:uppercase; }
body.aseem-app .aseem-perf-time { display:inline-block; min-width:62px; padding:4px 6px; border-radius:7px; font-weight:750; text-align:center; }
body.aseem-app .aseem-perf-time.good { background:#edf9f3; color:#188f5b; }
body.aseem-app .aseem-perf-time.warning { background:#fff7e7; color:#bd7d00; }
body.aseem-app .aseem-perf-time.danger { background:#fff0f1; color:#c83d4b; }
body.aseem-app .aseem-perf-rec { display:flex; gap:10px; padding:10px 0; border-bottom:1px solid #eef2f6; }
body.aseem-app .aseem-perf-rec:last-child { border-bottom:0; }
body.aseem-app .aseem-perf-rec-dot { flex:0 0 8px; width:8px; height:8px; margin-top:4px; border-radius:50%; background:#e14a58; box-shadow:0 0 0 4px #fff0f1; }
body.aseem-app .aseem-perf-rec strong { display:block; color:#3a475b; font-size:9.5px; }
body.aseem-app .aseem-perf-rec p { margin:2px 0 0; color:#8a96a6; font-size:8.5px; line-height:1.45; }
body.aseem-app .aseem-perf-ok { min-height:160px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; color:#8390a0; }
body.aseem-app .aseem-perf-ok i { margin-bottom:8px; color:#22a86f; font-size:27px; }
body.aseem-app .aseem-perf-ok strong { color:#455268; font-size:10px; }
body.aseem-app .aseem-perf-ok span { max-width:270px; margin-top:4px; font-size:8.5px; }
body.aseem-app .aseem-perf-legend > div { display:grid; grid-template-columns:12px 90px 1fr; align-items:center; gap:6px; padding:7px 0; border-bottom:1px solid #f0f3f6; }
body.aseem-app .aseem-perf-legend .dot { width:8px; height:8px; border-radius:50%; }
body.aseem-app .aseem-perf-legend .dot.good { background:#25a96f; }
body.aseem-app .aseem-perf-legend .dot.warning { background:#dfa21e; }
body.aseem-app .aseem-perf-legend .dot.danger { background:#dd4a57; }
body.aseem-app .aseem-perf-legend b { color:#4c596c; font-size:9px; }
body.aseem-app .aseem-perf-legend small { color:#8995a5; font-size:8px; }
body.aseem-app .aseem-perf-legend p { margin:12px 0 0; color:#8290a0; font-size:8.5px; line-height:1.6; }
body.aseem-app .aseem-perf-footnote { margin:4px 0 18px; padding:10px 13px; border-radius:9px; background:#f7f9fc; color:#7f8c9d; font-size:8.5px; line-height:1.5; }
body.aseem-app .aseem-perf-footnote i { margin-right:5px; color:#4c82c5; }

@media (max-width: 991px) {
  body.aseem-app .aseem-perf-periods { margin-top:8px; justify-content:flex-start; flex-wrap:wrap; }
  body.aseem-app .aseem-perf-widget { right:10px; bottom:10px; }
}
@media (max-width: 480px) {
  body.aseem-app .aseem-perf-popover { width:300px; max-width:calc(100vw - 20px); }
  body.aseem-app .aseem-perf-pill span { display:none; }
}

/* ===== ASEEM Connect: Finanse firmy 2026 ===== */
.aseem-finanse-page{padding-bottom:28px}.aseem-fin-head h2{font-weight:800}.aseem-fin-period{display:inline-flex;align-items:center;gap:7px;background:#fff;border:1px solid #e5eaf2;border-radius:999px;padding:9px 14px;font-weight:700;color:#44506a;box-shadow:0 4px 14px rgba(24,42,75,.05)}
.aseem-fin-filter-card{border:1px solid #e6ebf3}.aseem-fin-filter-card label{font-size:12px;font-weight:700;color:#68738a;text-transform:uppercase;letter-spacing:.03em}.aseem-fin-filter-help{font-size:12px;color:#7b8598;margin-top:12px;line-height:1.5}.aseem-fin-quick{display:flex;gap:6px;flex-wrap:wrap;align-items:center;padding-top:23px}.aseem-fin-quick a{display:inline-block;padding:7px 9px;border-radius:8px;background:#f2f6fb;color:#275ea8;font-size:12px;font-weight:700}.aseem-fin-quick a:hover{background:#e7f0fc;text-decoration:none}
.aseem-fin-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:15px 0}.aseem-fin-kpi{background:#fff;border:1px solid #e7ecf3;border-radius:14px;padding:17px 18px;box-shadow:0 5px 18px rgba(23,39,72,.05);min-height:118px}.aseem-fin-kpi span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.045em;color:#7a8497;font-weight:800}.aseem-fin-kpi strong{display:block;font-size:25px;line-height:1.2;color:#1e293b;margin:8px 0 5px}.aseem-fin-kpi small{color:#8b95a8}.aseem-fin-kpi.primary{border-color:#bfd4f5;background:linear-gradient(180deg,#f9fbff,#fff)}.aseem-fin-kpi.primary strong{color:#1557b0}.aseem-fin-kpi.success{border-color:#bce5d3}.aseem-fin-kpi.success strong{color:#15815b}.aseem-fin-kpi.danger{border-color:#f0c4c4}.aseem-fin-kpi.danger strong{color:#b83d3d}.aseem-fin-kpi.info strong{color:#14778d}
.aseem-fin-debt-main{padding:4px 0 15px;border-bottom:1px solid #edf0f5}.aseem-fin-debt-main span,.aseem-fin-debt-main small{display:block;color:#7d8799}.aseem-fin-debt-main strong{display:block;font-size:29px;color:#b53d3d;margin:6px 0}.aseem-fin-debt-row{display:flex;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid #edf0f5}.aseem-fin-debt-row span{color:#6f7a8e}.aseem-fin-debt-row strong{white-space:nowrap}.aseem-fin-note{padding:11px 13px;border-radius:10px;background:#f7f9fc;border:1px solid #e9edf4;color:#6d788c;font-size:12px;line-height:1.5}
.aseem-fin-table th{font-size:11px;text-transform:uppercase;letter-spacing:.03em;color:#758096;background:#fafbfd;border-top:0!important;white-space:nowrap}.aseem-fin-table td{vertical-align:middle!important}.aseem-fin-rank{display:inline-flex;width:27px;height:27px;align-items:center;justify-content:center;border-radius:50%;background:#edf1f6;font-weight:800;font-size:12px}.aseem-fin-rank.top{background:#185db8;color:#fff}.aseem-fin-scroll{max-height:520px;overflow:auto}.aseem-fin-cost-form{padding:12px;border-radius:12px;background:#fafbfd;border:1px solid #e8edf4}.aseem-fin-cost-form label{font-size:12px;font-weight:700;color:#68738a}.aseem-fin-disclaimer{margin-top:15px;color:#8a94a6;font-size:11px;text-align:center}
@media(max-width:1199px){.aseem-fin-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:767px){.aseem-fin-kpis{grid-template-columns:1fr}.aseem-fin-kpi{min-height:0}.aseem-fin-quick{padding-top:10px}.aseem-fin-period{margin-top:8px}.aseem-fin-head .text-right{text-align:left!important}.aseem-fin-table{min-width:720px}.aseem-fin-cost-form>div{margin-bottom:10px}}


/* ---------- Czytelność interfejsu 2026-08-26 ---------- */
/* Delikatne zwiększenie tekstu bez zmiany układu i wymiarów głównych komponentów. */
body.aseem-app { font-size: 14px; }
body.aseem-app .metisMenu.nav > li > a { font-size: 13px; }
body.aseem-app .metisMenu.nav > li > ul > li > a { font-size: 11.5px; }
body.aseem-app .metisMenu > li.nav-heading { font-size: 10px; }
body.aseem-app .btn { font-size: 13px; }
body.aseem-app .btn.btn-sm { font-size: 12px; }
body.aseem-app .form-control,
body.aseem-app select.form-control,
body.aseem-app textarea.form-control { font-size: 13px; }
body.aseem-app .table { font-size: 12px; }
body.aseem-app .table > thead > tr > th { font-size: 11.5px; }
body.aseem-app small,
body.aseem-app .small { font-size: 11px; }
body.aseem-app .card-header { font-size: 13px; }
body.aseem-app .breadcrumb { font-size: 11px; }
body.aseem-app .aseem-p26-sub { font-size: 12px; }
body.aseem-app .aseem-p26-label { font-size: 10.5px; }
body.aseem-app .aseem-p26-help { font-size: 11px; }
body.aseem-app .aseem-p26-level small { font-size: 10.5px; }
body.aseem-app .aseem-p26-league td { font-size: 11px; }
body.aseem-app .aseem-p26-league th { font-size: 10px; }
body.aseem-app .aseem-dashboard-eyebrow { font-size: 11px; }
body.aseem-app .aseem-dashboard-date { font-size: 12px; }
body.aseem-app .aseem-section-head p { font-size: 11.5px; }
body.aseem-app .aseem-kpi-content small,
body.aseem-app .aseem-kpi-content em { font-size: 10.5px; }
body.aseem-app .aseem-dashboard-card-head p { font-size: 10.5px; }
body.aseem-app .aseem-followup-desc { font-size: 11px; }
body.aseem-app .aseem-followup-meta { font-size: 10px; }
body.aseem-app .aseem-mini-badge { font-size: 9.5px; }
@media (max-width: 767px) {
  body.aseem-app { font-size: 13.5px; }
  body.aseem-app .table { font-size: 11.5px; }
}


/* ---------- Czytelność progów prowizji 2026-08-26 ---------- */
/* Drobne informacje typu "Próg firmy" / "Brakuje" są celowo nieco większe. */
body.aseem-app .aseem-p26-level small {
  font-size: 12px;
  line-height: 1.45;
}
body.aseem-app .aseem-p26-help {
  font-size: 12px;
  line-height: 1.45;
}
@media (max-width: 767px) {
  body.aseem-app .aseem-p26-level small,
  body.aseem-app .aseem-p26-help {
    font-size: 12px;
  }
}

/* ---------- Handlowcy: formularz dodawania do systemu 2026-08-26 ---------- */
body.aseem-app .aseem-p26-add-section {
  margin-top: 22px;
  padding: 20px 4px 4px;
  border-top: 1px solid #e7ecf3;
}
body.aseem-app .aseem-p26-add-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 14px;
}
body.aseem-app .aseem-p26-add-head h5 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #26354d;
}
body.aseem-app .aseem-p26-add-head span {
  font-size: 11px;
  color: #8a95a7;
}
body.aseem-app .aseem-p26-add-user {
  display: grid;
  grid-template-columns: minmax(210px,1.25fr) minmax(210px,1.25fr) minmax(150px,.8fr) minmax(140px,.75fr);
  gap: 14px 16px;
  align-items: end;
  padding: 16px;
  border: 1px solid #e8edf4;
  border-radius: 12px;
  background: #fafbfd;
}
body.aseem-app .aseem-p26-add-field {
  min-width: 0;
}
body.aseem-app .aseem-p26-add-field label {
  display: block;
  margin: 0 0 6px;
  color: #66738a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}
body.aseem-app .aseem-p26-add-field .form-control {
  width: 100%;
  margin: 0;
}
body.aseem-app .aseem-p26-add-active,
body.aseem-app .aseem-p26-add-action {
  min-height: 34px;
  display: flex;
  align-items: center;
}
body.aseem-app .aseem-p26-add-active {
  justify-content: flex-start;
}
body.aseem-app .aseem-p26-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 7px 10px;
  min-height: 34px;
  border: 1px solid #e3e9f1;
  border-radius: 8px;
  background: #fff;
  color: #4d5a70;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
body.aseem-app .aseem-p26-check input {
  margin: 0;
}
body.aseem-app .aseem-p26-add-action {
  justify-content: flex-start;
}
body.aseem-app .aseem-p26-add-action .btn {
  min-height: 34px;
  margin: 0;
  white-space: nowrap;
}
body.aseem-app #p26-settings-body > .card + .card {
  margin-top: 16px;
}

@media (max-width: 1399px) {
  body.aseem-app .aseem-p26-add-user {
    grid-template-columns: repeat(3, minmax(180px,1fr));
  }
}
@media (max-width: 991px) {
  body.aseem-app .aseem-p26-add-user {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
  }
  body.aseem-app .aseem-p26-add-head {
    display: block;
  }
  body.aseem-app .aseem-p26-add-head span {
    display: block;
    margin-top: 4px;
  }
}
@media (max-width: 575px) {
  body.aseem-app .aseem-p26-add-section {
    margin-top: 18px;
    padding-top: 16px;
  }
  body.aseem-app .aseem-p26-add-user {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  body.aseem-app .aseem-p26-add-action .btn {
    width: 100%;
  }
}

/* ---------- Globalne powiększenie typografii 2026-08-27 ---------- */
/* Większa czytelność w całym ASEEM Connect bez skalowania całego interfejsu. */
body.aseem-app { font-size: 15px; line-height: 1.55; }

/* Nawigacja */
body.aseem-app .metisMenu.nav > li > a { font-size: 14px; }
body.aseem-app .metisMenu.nav > li > ul > li > a { font-size: 12.5px; }
body.aseem-app .metisMenu > li.nav-heading { font-size: 11px; }
body.aseem-app .nav-profile .lead { font-size: 14px; }
body.aseem-app .nav-profile .text-muted { font-size: 11.5px; }
body.aseem-app .top-right-nav .dropdown-item { font-size: 14px; }
body.aseem-app #offerDiv.aseem-offer-ticker { font-size: 12px; }

/* Nagłówki i karty */
body.aseem-app .page-header h2 { font-size: 25px; }
body.aseem-app .page-header .breadcrumb,
body.aseem-app .breadcrumb { font-size: 12px; }
body.aseem-app .card-header { font-size: 14px; line-height: 1.45; }
body.aseem-app .card-body { font-size: 15px; }

/* Formularze */
body.aseem-app label { font-size: 12px; }
body.aseem-app .form-control,
body.aseem-app input[type="text"],
body.aseem-app input[type="email"],
body.aseem-app input[type="password"],
body.aseem-app input[type="number"],
body.aseem-app input[type="date"],
body.aseem-app textarea,
body.aseem-app select.form-control { font-size: 14px; }
body.aseem-app .select2-container--default .select2-selection--single .select2-selection__rendered { font-size: 14px; }
body.aseem-app .select2-results__option { font-size: 13px; }
body.aseem-app .input-group-text,
body.aseem-app .input-group-addon { font-size: 13px; }

/* Przyciski */
body.aseem-app .btn { font-size: 14px; }
body.aseem-app .btn.btn-sm { font-size: 13px; }
body.aseem-app .btn.btn-xs { font-size: 12px; }

/* Tabele */
body.aseem-app .table { font-size: 13px; line-height: 1.5; }
body.aseem-app .table > thead > tr > th,
body.aseem-app .table > thead:first-child > tr:first-child > th { font-size: 12px; }
body.aseem-app div.dataTables_wrapper div.dataTables_filter label,
body.aseem-app div.dataTables_wrapper div.dataTables_length label { font-size: 12px; }
body.aseem-app div.dataTables_filter input,
body.aseem-app div.dataTables_length select { font-size: 13px; }
body.aseem-app .dataTables_info { font-size: 11.5px; }
body.aseem-app div.dataTables_paginate a,
body.aseem-app .dataTables_wrapper .dataTables_paginate .paginate_button { font-size: 12px; }

/* Drobny tekst, statusy, alerty */
body.aseem-app small,
body.aseem-app .small { font-size: 12px; }
body.aseem-app .badge { font-size: 10.5px; }
body.aseem-app .alert { font-size: 13px; }
body.aseem-app .label { font-size: 12px; line-height: 1.35; }
body.aseem-app .text-muted { line-height: 1.5; }

/* Dashboard / prowizje */
body.aseem-app .aseem-p26-sub { font-size: 13px; }
body.aseem-app .aseem-p26-label { font-size: 11.5px; }
body.aseem-app .aseem-p26-help,
body.aseem-app .aseem-p26-level small { font-size: 13px; line-height: 1.5; }
body.aseem-app .aseem-p26-league td { font-size: 12px; }
body.aseem-app .aseem-p26-league th { font-size: 11px; }
body.aseem-app .aseem-dashboard-eyebrow { font-size: 12px; }
body.aseem-app .aseem-dashboard-date { font-size: 13px; }
body.aseem-app .aseem-section-head p { font-size: 12.5px; }
body.aseem-app .aseem-kpi-content small,
body.aseem-app .aseem-kpi-content em { font-size: 11.5px; }
body.aseem-app .aseem-dashboard-card-head p { font-size: 11.5px; }
body.aseem-app .aseem-followup-desc { font-size: 12px; }
body.aseem-app .aseem-followup-meta { font-size: 11px; }
body.aseem-app .aseem-mini-badge { font-size: 10.5px; }
body.aseem-app .aseem-card-summary strong { font-size: 13px; }
body.aseem-app .aseem-perf-pill { font-size: 11.5px; }
body.aseem-app .aseem-perf-legend p { font-size: 10px; }

/* Finanse */
body.aseem-app .aseem-fin-filter-card label,
body.aseem-app .aseem-fin-cost-form label { font-size: 13px; }
body.aseem-app .aseem-fin-filter-help,
body.aseem-app .aseem-fin-note { font-size: 13px; }
body.aseem-app .aseem-fin-quick a { font-size: 13px; }
body.aseem-app .aseem-fin-table th { font-size: 12px; }
body.aseem-app .aseem-fin-rank { font-size: 13px; }
body.aseem-app .aseem-fin-disclaimer { font-size: 12px; }

/* Formularz handlowców */
body.aseem-app .aseem-p26-add-head h5 { font-size: 15px; }
body.aseem-app .aseem-p26-add-head span { font-size: 12px; }
body.aseem-app .aseem-p26-add-field label { font-size: 12px; }
body.aseem-app .aseem-p26-check { font-size: 13px; }

@media (max-width: 767px) {
  body.aseem-app { font-size: 14.5px; }
  body.aseem-app .table { font-size: 12.5px; }
  body.aseem-app .table > thead > tr > th,
  body.aseem-app .table > thead:first-child > tr:first-child > th { font-size: 11.5px; }
  body.aseem-app small,
  body.aseem-app .small { font-size: 11.5px; }
}

/* ============================================================
 * ASEEM Connect 2026 - CRM v1
 * ============================================================ */
.aseem-crm-client-card,
.aseem-crm-module .card {
    border-radius: 12px;
}
.aseem-crm-client-card {
    margin: 18px 0 22px;
    border: 1px solid #e8edf3;
    box-shadow: 0 4px 16px rgba(31,45,61,.05);
}
.aseem-crm-head,
.aseem-crm-client-card > .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid #edf1f5;
}
.aseem-crm-head > div:first-child {
    display: flex;
    align-items: center;
    gap: 12px;
}
.aseem-crm-head h4 { margin: 0 0 2px; }
.aseem-crm-head p { margin: 0; opacity: .65; }
.aseem-crm-client-card > .card-body { padding: 18px 20px 20px; }
.aseem-crm-summary-row > [class*="col-"] { margin-bottom: 12px; }
.aseem-crm-summary {
    min-height: 102px;
    height: 100%;
    padding: 14px 16px;
    border: 1px solid #e8edf3;
    border-radius: 10px;
    background: #fbfcfe;
}
.aseem-crm-summary small,
.aseem-crm-summary strong,
.aseem-crm-summary span { display: block; }
.aseem-crm-summary small { margin-bottom: 6px; opacity: .65; font-weight: 700; }
.aseem-crm-summary strong { font-size: 1.12em; line-height: 1.25; }
.aseem-crm-summary span { margin-top: 6px; opacity: .7; line-height: 1.35; }
.aseem-crm-summary.danger { border-color: #f2c8c8; background: #fff8f8; }
.aseem-crm-summary.danger strong { color: #c93d3d; }
.aseem-crm-current-note {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin: 2px 0 16px;
    padding: 12px 14px;
    border-radius: 9px;
    background: #f7f9fc;
    border: 1px solid #e8edf3;
}
.aseem-crm-current-note i { margin-right: 6px; }
.aseem-crm-leave-note { color: #8a5b00; }
.aseem-crm-status-form {
    margin: 0 0 18px;
    padding: 14px;
    border: 1px solid #e8edf3;
    border-radius: 10px;
    background: #fff;
}
.aseem-crm-status-form label,
.aseem-crm-form label { display: block; margin-bottom: 5px; font-weight: 600; }
.aseem-crm-save-col { display: flex; align-items: flex-end; }
.aseem-crm-save-col .btn { min-height: 38px; }
.aseem-crm-forms > [class*="col-"] { margin-bottom: 14px; }
.aseem-crm-form {
    height: 100%;
    padding: 14px;
    border: 1px solid #e8edf3;
    border-radius: 10px;
    background: #fbfcfe;
}
.aseem-crm-form h5 { margin: 0 0 12px; font-weight: 700; }
.aseem-crm-form h5 i { margin-right: 6px; }
.aseem-crm-form .form-control { margin-bottom: 8px; }
.aseem-crm-form .row .form-control { margin-bottom: 8px; }
.aseem-crm-form textarea { resize: vertical; }
.aseem-crm-lists { margin-top: 8px; }
.aseem-crm-lists h5 { margin: 8px 0 12px; font-weight: 700; }
.aseem-crm-timeline { position: relative; }
.aseem-crm-timeline-item {
    position: relative;
    display: flex;
    gap: 10px;
    padding: 0 0 14px 4px;
}
.aseem-crm-timeline-item:before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: -2px;
    left: 8px;
    width: 1px;
    background: #e3e8ef;
}
.aseem-crm-timeline-item:last-child:before { display: none; }
.aseem-crm-dot {
    position: relative;
    z-index: 1;
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    margin-top: 5px;
    border-radius: 50%;
    background: #4764cd;
    box-shadow: 0 0 0 3px #eef2ff;
}
.aseem-crm-timeline-item p,
.aseem-crm-row p { margin: 4px 0; line-height: 1.4; }
.aseem-crm-timeline-item small,
.aseem-crm-row small { opacity: .6; }
.aseem-crm-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #edf1f5;
}
.aseem-crm-row:last-child { border-bottom: 0; }
.aseem-crm-row.overdue { color: #b83232; }
.aseem-crm-row form { margin: 0; }
.aseem-crm-inline-actions { display: inline-flex; gap: 3px; }
.aseem-crm-dashboard { margin-bottom: 4px; }
.aseem-crm-dash-list,
.aseem-crm-work-list { display: block; }
.aseem-crm-dash-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid #edf1f5;
    color: inherit;
}
.aseem-crm-dash-item:hover { background: #fafbfe; text-decoration: none; }
.aseem-crm-dash-item:last-child { border-bottom: 0; }
.aseem-crm-dash-item > div > * { display: block; }
.aseem-crm-dash-item span { margin: 2px 0; }
.aseem-crm-dash-item small { opacity: .62; }
.aseem-crm-dash-item.overdue { border-left: 3px solid #d94b4b; }
.aseem-crm-leave-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 8px 0 4px;
    padding: 11px 14px;
    border: 1px solid #f0dfb1;
    border-radius: 9px;
    background: #fffbef;
}
.aseem-crm-leave-strip > span {
    padding-left: 14px;
    border-left: 1px solid #ead9aa;
}
.aseem-crm-work-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #edf1f5;
}
.aseem-crm-work-item:last-child { border-bottom: 0; }
.aseem-crm-work-item.overdue { background: #fffafa; border-left: 3px solid #d94b4b; }
.aseem-crm-work-main { min-width: 0; }
.aseem-crm-work-main > * { display: block; }
.aseem-crm-work-main span { margin: 3px 0; }
.aseem-crm-work-main small { opacity: .62; }
.aseem-crm-work-actions { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.aseem-crm-work-actions form { margin: 0; }
.aseem-crm-leaves { display: block; }
.aseem-crm-leave-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #edf1f5;
}
.aseem-crm-leave-row:last-child { border-bottom: 0; }
.aseem-crm-leave-row > div > * { display: block; }
.aseem-crm-leave-row small { margin-top: 3px; opacity: .7; }
.aseem-crm-module .aseem-crm-form button { margin-top: 4px; }
.aseem-crm-permissions table td { vertical-align: middle; }

@media (max-width: 991px) {
    .aseem-crm-head { align-items: flex-start; }
    .aseem-crm-status-form .row > [class*="col-"] { margin-bottom: 10px; }
    .aseem-crm-save-col { align-items: stretch; }
}
@media (max-width: 575px) {
    .aseem-crm-head { flex-direction: column; }
    .aseem-crm-client-card > .card-body { padding: 14px; }
    .aseem-crm-current-note { display: block; }
    .aseem-crm-current-note > div + div { margin-top: 8px; }
    .aseem-crm-work-item { align-items: flex-start; }
    .aseem-crm-work-actions { flex-direction: column; }
    .aseem-crm-leave-strip > span { width: 100%; border-left: 0; padding-left: 0; }
}
