/* ============================================================
   Praça — modern admin/merchant dashboard skin
   Loaded AFTER AdminLTE.css so these rules win.
   Brand accent: #EC8D2A
   ============================================================ */

:root {
  --praca-accent: #EC8D2A;
  --praca-accent-dark: #d97b1a;
  --praca-accent-soft: #fff4e8;
  --praca-ink: #2d3436;
  --praca-muted: #7b8794;
  --praca-bg: #f4f6f9;
  --praca-card-radius: 14px;
  --praca-shadow: 0 2px 10px rgba(38, 50, 56, .06);
  --praca-shadow-hover: 0 8px 24px rgba(38, 50, 56, .12);
}

body {
  background: var(--praca-bg) !important;
  color: var(--praca-ink);
  font-size: 15px;
  font-family: "Source Sans Pro", "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Top navbar ---------- */
.main-header.navbar {
  background: #ffffff !important;
  box-shadow: 0 1px 6px rgba(38, 50, 56, .06);
  border-bottom: 0 !important;
  min-height: 60px;
}
.main-header .brand-text {
  font-weight: 700;
  font-size: 18px;
  color: var(--praca-ink);
  padding-left: 6px;
}
.main-header .nav-link .fa-bars { color: var(--praca-ink); }
.main-header .user-image {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--praca-accent-soft); object-fit: cover;
}
.main-header .hidden-xs { font-weight: 600; margin-left: 6px; color: var(--praca-ink); }

/* ---------- Cards ---------- */
.card {
  border: 0 !important;
  border-radius: var(--praca-card-radius) !important;
  box-shadow: var(--praca-shadow) !important;
  transition: box-shadow .18s ease, transform .18s ease;
  margin-bottom: 22px;
  background: #fff;
}
.card:hover { box-shadow: var(--praca-shadow-hover) !important; }
.card .card-body { padding: 20px; }
.card-title, .card .card-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--praca-ink);
  margin-bottom: 6px;
}
.card-text.text-muted, .text-muted { color: var(--praca-muted) !important; }

/* ---------- Buttons ---------- */
.btn {
  border-radius: 9px;
  font-weight: 600;
  padding: 8px 16px;
  transition: filter .15s ease, transform .05s ease, box-shadow .15s ease;
  border: 0;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--praca-accent), var(--praca-accent-dark)) !important;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(236, 141, 42, .30);
}
.btn-primary:hover { filter: brightness(1.05); box-shadow: 0 5px 16px rgba(236, 141, 42, .38); }
.btn-success { background: linear-gradient(135deg, #2fb96b, #24974f) !important; color: #fff !important; }
.btn-danger  { background: linear-gradient(135deg, #f0555f, #d63a45) !important; color: #fff !important; }
.btn-warning { background: linear-gradient(135deg, #ffc043, #f0a500) !important; color: #5d4200 !important; }
.btn-outline-danger { border: 1px solid #f0555f; color: #d63a45; background: transparent; }
.btn-outline-danger:hover { background: #f0555f; color: #fff; }
.btn-sm { padding: 5px 11px; font-size: 13px; }

/* ---------- Forms ---------- */
.form-control {
  border-radius: 9px;
  border: 1px solid #e3e8ee;
  padding: 9px 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus {
  border-color: var(--praca-accent);
  box-shadow: 0 0 0 3px rgba(236, 141, 42, .15);
}
label { font-weight: 600; color: var(--praca-ink); }

/* ---------- Badges ---------- */
.badge { border-radius: 20px; padding: 5px 10px; font-weight: 600; }
.badge-success { background: #2fb96b; }
.badge-danger  { background: #f0555f; }
.badge-info    { background: #3aa0e0; }
.badge-primary { background: var(--praca-accent); }

/* ---------- Tables ---------- */
.table { color: var(--praca-ink); }
.table thead th { border-top: 0; border-bottom: 2px solid #eef1f5; font-weight: 700; color: var(--praca-muted); text-transform: uppercase; font-size: 12px; letter-spacing: .3px; }
.table-striped tbody tr:nth-of-type(odd) { background: #fafbfc; }
.table td, .table th { padding: 12px 14px; vertical-align: middle; }

/* ---------- Sidebar (merchant/admin) ---------- */
.main-sidebar {
  background: linear-gradient(180deg, #2b3542, #222a34) !important;
  border-radius: 0 18px 18px 0;
}
.main-sidebar .brand-text { color: #fff; font-weight: 700; }
.main-sidebar .nav-sidebar .nav-link {
  border-radius: 10px;
  margin: 3px 10px;
  color: #cdd6df !important;
  transition: background .15s ease, color .15s ease;
}
.main-sidebar .nav-sidebar .nav-link:hover {
  background: rgba(236, 141, 42, .16) !important;
  color: #fff !important;
}
.main-sidebar .nav-sidebar .nav-link.active,
.main-sidebar .nav-sidebar .nav-item .nav-link.active {
  background: linear-gradient(135deg, var(--praca-accent), var(--praca-accent-dark)) !important;
  color: #fff !important;
}
.main-sidebar .nav-icon { color: var(--praca-accent); }
.main-sidebar .nav-link.active .nav-icon,
.main-sidebar .nav-link:hover .nav-icon { color: #fff; }
.main-sidebar .btn-warning { border-radius: 8px; }

.dashboard-language-switch {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 8px 12px 12px;
	padding: 8px;
	border: 1px solid rgba(255,255,255,.12);
	border-radius: 10px;
	background: rgba(255,255,255,.08);
	color: #fff;
}
.dashboard-language-switch select.form-control {
	flex: 1;
	min-width: 0;
	height: 36px;
	min-height: 36px;
	padding: 3px 24px 3px 8px;
	background: #fff !important;
}
.dashboard-language-switch .btn { height: 36px; padding: 5px 9px; flex: 0 0 auto; }
.praca-admin-brand .dashboard-language-switch { width: 100%; margin: 6px 0 0; }

/* ---------- Content header ---------- */
.content-header h1, .content-header .m-0 {
  font-weight: 800;
  color: var(--praca-ink);
}

/* ============================================================
   Merchant dashboard — hero, stats, guide
   ============================================================ */
.praca-hero {
  background: linear-gradient(120deg, var(--praca-accent), var(--praca-accent-dark));
  border-radius: 18px;
  color: #fff;
  padding: 26px 28px;
  margin: 8px 0 22px;
  box-shadow: 0 10px 26px rgba(236, 141, 42, .28);
  position: relative;
  overflow: hidden;
}
.praca-hero::after {
  content: "";
  position: absolute; right: -40px; top: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255, 255, 255, .10);
}
.praca-hero h1 { font-size: 26px; font-weight: 800; margin: 0 0 4px; color: #fff; }
.praca-hero p { margin: 0; opacity: .92; font-size: 15px; }
.praca-hero .praca-hero-actions { margin-top: 16px; position: relative; z-index: 1; }
.praca-hero .praca-hero-actions a {
  display: inline-block;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff; text-decoration: none;
  padding: 8px 15px; border-radius: 10px; font-weight: 600;
  margin: 0 8px 8px 0; font-size: 14px;
  transition: background .15s ease;
}
.praca-hero .praca-hero-actions a:hover { background: rgba(255, 255, 255, .30); }

.praca-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 8px; }
.praca-stat {
  background: #fff; border-radius: var(--praca-card-radius);
  box-shadow: var(--praca-shadow); padding: 18px 20px;
  display: flex; align-items: center; gap: 14px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.praca-stat:hover { transform: translateY(-2px); box-shadow: var(--praca-shadow-hover); }
.praca-stat .praca-stat-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; flex: 0 0 auto;
}
.praca-stat .praca-stat-num { font-size: 24px; font-weight: 800; line-height: 1; color: var(--praca-ink); }
.praca-stat .praca-stat-label { font-size: 13px; color: var(--praca-muted); margin-top: 3px; }

.praca-section-title {
  font-size: 20px; font-weight: 800; color: var(--praca-ink);
  margin: 26px 0 6px; display: flex; align-items: center; gap: 10px;
}
.praca-section-sub { color: var(--praca-muted); margin-bottom: 16px; }

/* Guide accordion */
.praca-guide .praca-guide-item {
  background: #fff; border-radius: 12px; box-shadow: var(--praca-shadow);
  margin-bottom: 12px; overflow: hidden;
}
.praca-guide .praca-guide-head {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; cursor: pointer; user-select: none;
}
.praca-guide .praca-guide-head:hover { background: var(--praca-accent-soft); }
.praca-guide .praca-guide-ico {
  width: 42px; height: 42px; border-radius: 11px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff;
  background: linear-gradient(135deg, var(--praca-accent), var(--praca-accent-dark));
}
.praca-guide .praca-guide-title { font-weight: 700; font-size: 16px; color: var(--praca-ink); flex: 1; }
.praca-guide .praca-guide-title small { display: block; font-weight: 500; color: var(--praca-muted); font-size: 13px; margin-top: 2px; }
.praca-guide .praca-guide-chev { color: var(--praca-muted); transition: transform .2s ease; }
.praca-guide .praca-guide-item.open .praca-guide-chev { transform: rotate(180deg); }
.praca-guide .praca-guide-body {
  display: none; padding: 4px 18px 20px 74px; color: #47535e; font-size: 14.5px; line-height: 1.65;
}
.praca-guide .praca-guide-item.open .praca-guide-body { display: block; }
.praca-guide .praca-guide-body ol,
.praca-guide .praca-guide-body ul { padding-left: 18px; margin: 8px 0; }
.praca-guide .praca-guide-body li { margin-bottom: 5px; }
.praca-guide .praca-guide-body a { color: var(--praca-accent-dark); font-weight: 600; }
.praca-guide .praca-tip {
  background: var(--praca-accent-soft); border-left: 3px solid var(--praca-accent);
  border-radius: 8px; padding: 9px 12px; margin-top: 10px; font-size: 13.5px; color: #6b4a1f;
}
.praca-kbd {
  background: #eef1f5; border-radius: 6px; padding: 1px 7px; font-weight: 700;
  font-size: 13px; color: var(--praca-ink); white-space: nowrap;
}

/* Alerts */
.alert { border: 0; border-radius: 12px; }
.alert-info { background: #eaf4fb; color: #1c5d86; }
.alert-warning { background: #fff6e5; color: #8a5a00; }
.alert-success { background: #e8f8ef; color: #1c7a45; }

@media (max-width: 767px) {
  .praca-hero { padding: 20px; }
  .praca-hero h1 { font-size: 22px; }
  .praca-guide .praca-guide-body { padding-left: 18px; }
}

/* ============================================================
   Global admin polish
   Applies the merchant dashboard style to legacy lists/forms too.
   ============================================================ */

html,
body,
.wrapper {
  font-size: 15px !important;
}

.content-wrapper {
  background: var(--praca-bg) !important;
  padding: 18px 20px 26px !important;
}

.content-wrapper > .row {
  display: block;
  margin-left: 0;
  margin-right: 0;
}

section.content,
.content,
.container-fluid > .content-wrapper {
  background: transparent !important;
}

.main,
.content-wrapper .main {
  color: var(--praca-ink);
  float: none;
  width: 100%;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.content-wrapper .card,
.content-wrapper .table-responsive {
  max-width: 100%;
}

.content-wrapper .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* A few newer screens are rendered inside the legacy structure, which already
   owns a content-wrapper. Neutralize the nested wrapper so the 222px sidebar
   offset is never applied twice and the right side remains visible. */
.content-wrapper .content-wrapper {
  margin-left: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow-x: visible !important;
}

p,
td,
th,
label,
.form-control,
.btn,
.dropdown-item,
.list-group-item,
.card-text,
.box-body,
.modal-body {
  font-size: 15px;
}

small,
.text-muted,
.help-block,
.form-text,
.card-text.text-muted {
  font-size: 13.5px;
  line-height: 1.5;
}

h1,
.h1,
.content-header h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
}

h2,
.h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
}

h3,
.h3,
.card-header .card-title,
.box-title {
  font-size: 19px !important;
  font-weight: 800 !important;
  letter-spacing: 0;
}

h4,
.h4 {
  font-size: 17px;
  font-weight: 800;
}

/* Legacy AdminLTE boxes should look like the new cards */
.box,
.small-box,
.info-box,
.card,
.modal-content,
.table-responsive {
  border: 0 !important;
  border-radius: var(--praca-card-radius) !important;
  background: #fff !important;
  box-shadow: var(--praca-shadow) !important;
}

.table-responsive {
  overflow: auto;
}

.box-header,
.card-header,
.modal-header {
  border: 0 !important;
  background: #fff !important;
  color: var(--praca-ink) !important;
  padding: 18px 20px 10px !important;
}

.box-body,
.card-body,
.modal-body {
  padding: 20px !important;
}

.box-footer,
.card-footer,
.modal-footer {
  border-top: 1px solid #edf1f5 !important;
  background: #fbfcfd !important;
  padding: 16px 20px !important;
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}

label,
.form-check-label {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--praca-ink);
  margin-bottom: 7px;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
select,
textarea {
  min-height: 42px;
  border: 1px solid #dce4ec !important;
  border-radius: 10px !important;
  background: #fbfcfd !important;
  color: #1f2933 !important;
  font-size: 15px !important;
  box-shadow: none !important;
}

textarea.form-control,
textarea {
  min-height: 110px;
  line-height: 1.55;
}

.form-control-sm,
.input-sm,
.btn-sm {
  font-size: 13.5px !important;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--praca-accent) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(236, 141, 42, .15) !important;
  outline: 0 !important;
}

.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
  min-height: 42px;
  border: 1px solid #dce4ec !important;
  border-radius: 10px !important;
  background: #fbfcfd !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 40px;
  color: #1f2933;
  font-size: 15px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  border: 0;
  border-radius: 18px;
  background: var(--praca-accent-soft);
  color: #8a510f;
  font-size: 13.5px;
  font-weight: 700;
}

/* Buttons and links */
.btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px !important;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.2;
}

.btn-block {
  display: flex !important;
  width: 100%;
}

.btn-default,
.btn-outline-primary {
  border: 1px solid #dce4ec !important;
  background: #fff !important;
  color: var(--praca-ink) !important;
}

.btn-default:hover,
.btn-outline-primary:hover {
  border-color: var(--praca-accent) !important;
  color: var(--praca-accent-dark) !important;
  background: var(--praca-accent-soft) !important;
}

a {
  color: #0d6efd;
  font-weight: 700;
}

a:hover {
  color: var(--praca-accent-dark);
}

/* Tables and list pages */
.table {
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.table thead th,
.table tbody th {
  background: #fff;
  border-top: 0 !important;
  border-bottom: 1px solid #dde4ec !important;
  color: #26313d;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.table td,
.table th {
  padding: 13px 14px;
  border-color: #edf1f5 !important;
  vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
  background: #fff;
}

.table-striped tbody tr:nth-of-type(even) {
  background: #fafbfc;
}

.table-hover tbody tr:hover,
.table tbody tr:hover {
  background: #fffaf4;
}

.table .fa {
  font-size: 16px;
}

/* Tabs */
.nav-tabs {
  border-bottom: 1px solid #edf1f5;
  padding: 0 16px;
  gap: 6px;
}

.nav-tabs .nav-link {
  border: 0 !important;
  border-radius: 10px 10px 0 0 !important;
  color: #52606d;
  font-size: 14.5px;
  font-weight: 800;
  padding: 12px 16px;
}

.nav-tabs .nav-link:hover {
  color: var(--praca-accent-dark);
  background: var(--praca-accent-soft);
}

.nav-tabs .nav-link.active {
  background: linear-gradient(135deg, var(--praca-accent), var(--praca-accent-dark)) !important;
  color: #fff !important;
}

/* Sidebar and nav typography */
.main-header .brand-text {
  font-size: 19px;
}

.navbar-nav .nav-item .nav-link,
.main-sidebar .nav-sidebar .nav-link,
.main-sidebar .nav-sidebar .nav-link p {
  font-size: 14.5px;
}

.main-sidebar .sidebar .info,
.main-sidebar .brand-text {
  font-size: 17px;
}

.main-sidebar .nav-treeview .nav-link,
.main-sidebar .nav-treeview .nav-link p {
  font-size: 14px;
}

/* Admin sidebar used by the global admin pages */
.praca-admin-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 222px;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #2f3843 0%, #242c36 100%);
  color: #d8e0e7;
  box-shadow: 8px 0 24px rgba(15, 23, 32, .16);
  border-radius: 0 16px 16px 0;
  overflow: hidden;
	transition: transform .28s ease, box-shadow .28s ease;
}

.praca-admin-sidebar-toggle {
	position: fixed;
	top: 12px;
	left: 232px;
	z-index: 1050;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 11px;
	background: #fff;
	color: #2f3843;
	box-shadow: 0 4px 16px rgba(15, 23, 32, .16);
	cursor: pointer;
	transition: left .28s ease, background .15s ease, color .15s ease;
}

.praca-admin-sidebar-toggle:hover {
	background: var(--praca-accent);
	color: #fff;
}

body.sidebar-collapse .praca-admin-sidebar {
	transform: translateX(-105%);
	box-shadow: none;
}

body.sidebar-collapse .praca-admin-sidebar-toggle {
	left: 12px;
}

.praca-admin-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 14px 14px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.praca-admin-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffe000;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .20);
}

.praca-admin-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.praca-admin-brand strong {
  display: block;
  color: #fff;
  font-size: 17px;
  line-height: 1.15;
}

.praca-admin-brand span {
  display: block;
  color: #aeb9c4;
  font-size: 12px;
  font-weight: 800;
  margin-top: 2px;
}

.praca-admin-menu {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 12px 10px;
}

.praca-admin-menu-section {
  margin-bottom: 12px;
}

.praca-admin-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  color: #eef3f7;
  font-size: 13px;
  font-weight: 900;
}

.praca-admin-section-title .fa {
  width: 18px;
  color: var(--praca-accent);
  text-align: center;
}

.praca-admin-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  margin: 3px 0;
  padding: 9px 10px;
  border-radius: 9px;
  color: #c8d1da !important;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
  transition: background .15s ease, color .15s ease, transform .08s ease;
}

.praca-admin-menu-link .fa {
  width: 18px;
  color: var(--praca-accent);
  text-align: center;
}

.praca-admin-menu-link:hover {
  background: rgba(236, 141, 42, .14);
  color: #fff !important;
}

.praca-admin-menu-link.active {
  background: rgba(255, 255, 255, .08);
  color: #fff !important;
}

.praca-admin-menu-link.active .fa,
.praca-admin-menu-link:hover .fa {
  color: #fff;
}

.praca-admin-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 14px;
  background: rgba(20, 27, 35, .55);
}

.praca-admin-user-main {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 13.5px;
  font-weight: 900;
}

.praca-admin-user-main img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.praca-admin-user-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.praca-admin-logout {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  background: rgba(255, 255, 255, .08);
  text-decoration: none !important;
}

.praca-admin-logout:hover {
  background: rgba(236, 141, 42, .28);
}

.praca-admin-content {
  margin-left: 222px;
  padding: 16px 18px 26px;
  min-height: 100vh;
}

body.sidebar-collapse .praca-admin-content {
	margin-left: 0;
}

.praca-admin-content > .container-fluid,
.praca-admin-content.container-fluid {
  padding-left: 0;
  padding-right: 0;
}

.praca-admin-content .container-fluid {
  max-width: none;
}

/* Dashboard components slightly larger */
.praca-hero h1 {
  font-size: 29px;
}

.praca-hero p,
.praca-hero .praca-hero-actions a {
  font-size: 15.5px;
}

.praca-stat .praca-stat-num {
  font-size: 27px;
}

.praca-stat .praca-stat-label,
.praca-section-sub {
  font-size: 14.5px;
}

.praca-section-title {
  font-size: 22px;
}

.praca-guide .praca-guide-title {
  font-size: 17px;
}

.praca-guide .praca-guide-title small,
.praca-guide .praca-guide-body {
  font-size: 14.5px;
}

@media (max-width: 767px) {
  html,
  body,
  .wrapper {
    font-size: 14.5px !important;
  }

  .content-wrapper {
    padding: 14px 12px 22px !important;
  }

  .box-body,
  .card-body,
  .modal-body {
    padding: 16px !important;
  }

  .praca-hero h1 {
    font-size: 24px;
  }

  .praca-admin-sidebar {
	position: fixed;
	top: 0;
	bottom: 0;
	width: min(86vw, 300px);
	min-height: 100vh;
	border-radius: 0 16px 16px 0;
  }

	.praca-admin-sidebar-toggle {
		top: calc(10px + env(safe-area-inset-top));
		left: min(calc(86vw + 8px), 308px);
	}

	body.sidebar-collapse .praca-admin-sidebar-toggle {
		left: 10px;
	}

  .praca-admin-menu {
    display: grid;
    grid-template-columns: 1fr;
    max-height: none;
  }

  .praca-admin-content {
    margin-left: 0;
    padding: 14px 12px 22px;
  }
}

/* Desktop admin layout guard.
   AdminLTE gives the content a sidebar margin, while some legacy views still
   render a full-width Bootstrap column inside it. Keep the content inside the
   visible viewport so action columns do not disappear off the right edge. */
@media (min-width: 768px) {
  .praca-admin-content {
    width: calc(100vw - 222px) !important;
    max-width: calc(100vw - 222px) !important;
    box-sizing: border-box;
    overflow-x: hidden;
  }

	body.sidebar-collapse .praca-admin-content {
		width: 100vw !important;
		max-width: 100vw !important;
	}

  .praca-admin-content > .row {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body:not(.sidebar-collapse) .content-wrapper {
    margin-left: 222px !important;
    width: calc(100vw - 222px) !important;
    max-width: calc(100vw - 222px) !important;
    overflow-x: hidden !important;
    box-sizing: border-box;
  }

  body.sidebar-collapse .content-wrapper {
    width: 100vw !important;
    max-width: 100vw !important;
  }

  .content-wrapper > .row,
  .content-wrapper .main,
  .content-wrapper .card,
  .content-wrapper .table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }
}

body#system_users .table-responsive,
body#registered_users .table-responsive,
body#shopusers .table-responsive,
.system-users-table,
.registered-users-table {
  padding-left: 18px !important;
  padding-right: 18px !important;
}

body#system_users .table,
body#registered_users .table,
body#shopusers .table,
.system-users-table .table,
.registered-users-table .table {
  table-layout: fixed !important;
  width: 100% !important;
  max-width: 100% !important;
}

body#system_users .table th:last-child,
body#system_users .table td:last-child,
body#registered_users .table th:last-child,
body#registered_users .table td:last-child,
body#shopusers .table th:last-child,
body#shopusers .table td:last-child,
.system-users-table .table th:last-child,
.system-users-table .table td:last-child,
.registered-users-table .table th:last-child,
.registered-users-table .table td:last-child {
  white-space: nowrap;
  width: 1%;
  text-align: center;
}

/* Keep every user action inside the viewport. The legacy automatic table
   layout lets long columns consume the row and pushes actions off-screen. */
@media (min-width: 768px) {
  .system-users-table .table th:nth-child(1),
  .system-users-table .table td:nth-child(1),
  body#system_users .table th:nth-child(1),
  body#system_users .table td:nth-child(1) { width: 8% !important; }
  .system-users-table .table th:nth-child(2),
  .system-users-table .table td:nth-child(2),
  body#system_users .table th:nth-child(2),
  body#system_users .table td:nth-child(2) { width: 24% !important; }
  .system-users-table .table th:nth-child(3),
  .system-users-table .table td:nth-child(3),
  body#system_users .table th:nth-child(3),
  body#system_users .table td:nth-child(3) { width: 38% !important; }
  .system-users-table .table th:nth-child(4),
  .system-users-table .table td:nth-child(4),
  body#system_users .table th:nth-child(4),
  body#system_users .table td:nth-child(4) { width: 20% !important; }
  .system-users-table .table th:nth-child(5),
  .system-users-table .table td:nth-child(5),
  body#system_users .table th:nth-child(5),
  body#system_users .table td:nth-child(5) { width: 10% !important; }

  .registered-users-table .table th:nth-child(1),
  .registered-users-table .table td:nth-child(1),
  body#registered_users .table th:nth-child(1),
  body#registered_users .table td:nth-child(1) { width: 6% !important; }
  .registered-users-table .table th:nth-child(2),
  .registered-users-table .table td:nth-child(2),
  body#registered_users .table th:nth-child(2),
  body#registered_users .table td:nth-child(2) { width: 20% !important; }
  .registered-users-table .table th:nth-child(3),
  .registered-users-table .table td:nth-child(3),
  body#registered_users .table th:nth-child(3),
  body#registered_users .table td:nth-child(3) { width: 27% !important; }
  .registered-users-table .table th:nth-child(4),
  .registered-users-table .table td:nth-child(4),
  body#registered_users .table th:nth-child(4),
  body#registered_users .table td:nth-child(4) { width: 15% !important; }
  .registered-users-table .table th:nth-child(5),
  .registered-users-table .table td:nth-child(5),
  body#registered_users .table th:nth-child(5),
  body#registered_users .table td:nth-child(5) { width: 22% !important; }
  .registered-users-table .table th:nth-child(6),
  .registered-users-table .table td:nth-child(6),
  body#registered_users .table th:nth-child(6),
  body#registered_users .table td:nth-child(6) { width: 10% !important; }

  .system-users-table .table th,
  .system-users-table .table td,
  .registered-users-table .table th,
  .registered-users-table .table td,
  body#system_users .table th,
  body#system_users .table td,
  body#registered_users .table th,
  body#registered_users .table td {
    box-sizing: border-box;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 767px) {
  .system-users-table .table,
  body#system_users .table { min-width: 680px; }
  .registered-users-table .table,
  body#registered_users .table { min-width: 860px; }
}
