:root {
    color-scheme: light;
    font-family: Arial, sans-serif;
    color: #222;
    background: #f3f6f8;
}

* { box-sizing: border-box; }
body { margin: 0; background: #f3f6f8; }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(100%, 480px); background: #fff; padding: 28px; border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.1); }
h1 { margin-top: 0; }
label { display: block; margin: 14px 0; font-weight: 700; }
input, select, textarea { width: 100%; margin-top: 6px; padding: 11px; border: 1px solid #ccd4da; border-radius: 5px; background: #fff; font: inherit; }
button { width: 100%; border: 0; border-radius: 5px; padding: 12px; background: #229ac8; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
hr { border: 0; border-top: 1px solid #e3e8eb; margin: 24px 0; }
.alert { padding: 12px; border-radius: 5px; background: #fee; color: #8b1e1e; }
.topbar { display: flex; justify-content: space-between; gap: 20px; padding: 18px 28px; background: #fff; border-bottom: 1px solid #dce3e7; }
.topbar a { color: #229ac8; }
.dashboard { max-width: 1000px; margin: 40px auto; padding: 0 24px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.cards article { display: grid; gap: 8px; padding: 24px; background: #fff; border-radius: 8px; border-left: 5px solid #229ac8; }
.cards strong { color: #229ac8; font-size: 36px; }
.notice { margin-top: 22px; padding: 18px; background: #fff; border-radius: 8px; }
.topbar strong a { color: inherit; text-decoration: none; }
.card-link { color: inherit; text-decoration: none; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.page-heading h1 { margin-top: 8px; }
.button { display: inline-block; padding: 11px 18px; border-radius: 5px; background: #229ac8; color: #fff; text-decoration: none; font-weight: 700; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid #e3e8eb; }
th { background: #f8fafb; }
.actions { text-align: right; }
.actions a, .dashboard > a { color: #167fa7; }
.status { display: inline-block; padding: 5px 9px; border-radius: 20px; font-size: 13px; }
.status.active { color: #176b38; background: #e8f7ee; }
.status.inactive { color: #666; background: #eceff1; }
.narrow { max-width: 720px; }
.panel-form { padding: 24px; background: #fff; border-radius: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkbox { display: flex; align-items: center; gap: 9px; }
.checkbox input { width: auto; margin: 0; }
.product-preview { display: block; max-width: 260px; max-height: 260px; margin: 12px 0 20px; border: 1px solid #dce3e7; }
.module-row { display: grid; grid-template-columns: 1fr 190px; align-items: end; gap: 16px; padding: 10px 0; border-bottom: 1px solid #e3e8eb; }
.shops-page,
.shop-edit-page { color: #182734; font-size: 14px; }
.shops-page .page-heading,
.shop-edit-page > h1 { margin-bottom: 18px; }
.shops-page h1,
.shop-edit-page h1 { margin: 8px 0 0; font-size: 28px; font-weight: 600; line-height: 1.2; }
.shops-page .table-wrap { border: 1px solid #dfe7ea; border-radius: 10px; }
.shops-page th,
.shops-page td { padding: 12px 14px; font-size: 14px; line-height: 1.4; }
.shops-page th { font-weight: 600; }
.shops-page tbody tr:last-child td { border-bottom: 0; }
.shops-page .actions { white-space: nowrap; }
.shops-page .small-button { padding: 8px 12px; font-size: 14px; font-weight: 600; }
.shop-edit-page .panel-form { padding: 22px; border: 1px solid #dfe7ea; border-radius: 10px; }
.shop-edit-page .panel-form > label { margin: 0 0 18px; font-weight: 600; }
.shop-edit-page .panel-form > h2 { margin: 22px 0 12px; font-size: 18px; font-weight: 600; }
.shop-edit-page .panel-form input:not([type="checkbox"]) { padding: 9px 11px; font-size: 14px; font-weight: 400; }
.shop-edit-page .module-row { grid-template-columns: minmax(0, 1fr) 220px; align-items: center; gap: 20px; padding: 9px 0; }
.shop-edit-page .module-row label { margin: 0; font-size: 14px; font-weight: 400; }
.shop-edit-page .module-row .checkbox { gap: 10px; }
.shop-edit-page .module-row .module-expiry { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.shop-edit-page .module-row .module-expiry input { width: 150px; margin: 0; }
.shop-edit-page .panel-form > button { width: auto; margin-top: 18px; padding: 10px 18px; font-size: 14px; }
.inline-form { display:grid; grid-template-columns:2fr 2fr 1fr auto; gap:12px; align-items:end; padding:16px; background:#fff; border-radius:8px; margin-bottom:18px; }
.inline-form label { margin:0; }
.inline-form button { width:auto; }
.thumb { width:64px; height:64px; object-fit:contain; background:#fff; border:1px solid #dce3e7; }
.small-button { width:auto; padding:8px 12px; }
.action-form { display:inline-block; margin:0 8px 0 0; }
.action-form .small-button { background:#229ac8; }
@media (max-width: 640px) {
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .page-heading { align-items: flex-start; }
    .module-row { grid-template-columns: 1fr; }
    .shop-edit-page .module-row { grid-template-columns: 1fr; gap: 8px; }
    .inline-form { grid-template-columns:1fr; }
}

/* Panel zgodny z interfejsem administracyjnym Evia / OpenCart. */
#container { min-height:100vh; }
#header { min-height:50px; margin:0; border:0; border-bottom:1px solid #d8d8d8; border-radius:0; background:#fff; }
#header .container-fluid { padding:0; }
#header-logo { width:235px; height:50px; border-right:1px solid #eee; }
#header .navbar-brand { width:100%; height:50px; padding:15px 20px; color:#333; }
.evia-logo { font-size:15px; font-weight:700; letter-spacing:.3px; }
#header .navbar-right { margin-right:0; }
#header .navbar-right > li > a { padding:15px; color:#6d6d6d; }
#column-left { position:absolute; top:50px; bottom:0; width:235px; min-height:calc(100vh - 50px); background:#242d37; color:#c4d5e5; }
#navigation { padding:15px 20px; background:#19222b; font-size:11px; }
#menu { padding:0; margin:0; list-style:none; }
#menu li { border-bottom:1px solid #2d3640; }
#menu li a { display:block; padding:14px 18px; color:#b9d4ec; text-decoration:none; font-size:14px; }
#menu li a .fa { width:24px; font-size:16px; }
#menu li.active > a, #menu li a:hover { background:#1f2831; color:#fff; }
#content { min-height:calc(100vh - 50px); margin-left:235px; background:#f5f5f5; }
#content .page-header { margin:0 0 20px; padding:18px 0 12px; background:#fff; border-bottom:1px solid #e5e5e5; }
#content .page-header h1 { margin:0 0 8px; color:#4c4d5a; font-size:30px; font-weight:300; }
#content .breadcrumb { margin:0; padding:0; background:transparent; }
#content .breadcrumb > li + li:before { content:'>'; color:#ccc; }
#content .panel { border:1px solid #ddd; border-radius:0; box-shadow:none; }
#content .panel-heading { padding:13px 15px; background:#fafafa; border-bottom:1px solid #ddd; }
#content .panel-title { color:#4c4d5a; font-size:16px; }
#content .panel-body { padding:20px; }
.evproduct_designer.nav-tabs { margin-bottom:20px; }
.evproduct_designer.nav-tabs > li > a { color:#229ac8; border-radius:0; }
.evproduct_designer.nav-tabs > li.active > a { color:#333; }
#content .form-horizontal .control-label { padding-top:10px; color:#333; }
#content .form-control { height:36px; padding:8px 13px; border:1px solid #ccc; border-radius:2px; box-shadow:inset 0 1px 1px rgba(0,0,0,.075); }
#content .form-group { margin-bottom:0; padding:20px 0; border-bottom:1px solid #ededed; }
#content .btn-primary { background:#229ac8; border-color:#1f90bb; }
#content .table { background:#fff; }
#content .table > thead > tr > th, #content .table > tbody > tr > td { padding:12px; vertical-align:middle; border-color:#ddd; }
#content .table > tbody > tr:nth-child(odd) { background:#f9f9f9; }
.ev-color-swatch { width:145px; height:38px; padding:2px; border:1px solid #333; box-shadow:inset 0 0 0 3px #eee; }
.assignment-toggle { font-size:19px; text-decoration:none!important; }
.assignment-toggle.on,.assignment-state.on { color:green; }
.assignment-toggle.off,.assignment-state.off { color:red; }
.assignment-state { font-size:19px; }
#footer { margin-left:235px; padding:20px; color:#777; text-align:center; background:#fff; border-top:1px solid #ddd; }
@media(max-width:767px){#column-left{width:52px}#column-left a{font-size:0!important}#content,#footer{margin-left:52px}#header-logo{width:180px}}

/* Samodzielny panel klienta: zawartość modułu bez otoczki OpenCart. */
.client-admin-header { display:flex; align-items:center; justify-content:space-between; min-height:64px; padding:0 34px; background:#fff; border-bottom:1px solid #ddd; }
.client-admin-brand { color:#222; font-size:20px; font-weight:700; text-decoration:none; }
.client-admin-navigation { display:flex; align-items:center; gap:8px; margin-right:auto; margin-left:34px; }
.client-admin-navigation a { padding:10px 14px; color:#229ac8; border-radius:3px; text-decoration:none; font-weight:600; }
.client-admin-navigation a:hover,.client-admin-navigation a.active { color:#fff; background:#229ac8; }
.client-admin-user { color:#333; font-size:15px; }
.client-admin-user a { color:#229ac8; }
#content.client-admin-content { min-height:calc(100vh - 64px); margin-left:0; padding-bottom:40px; background:#f5f5f5; }
#content.client-admin-content .page-header { padding:24px 0 16px; }
#content.client-admin-content .page-header h1 { font-size:30px; }
#content.client-admin-content > .container-fluid { max-width:1460px; margin:0 auto; padding:0 26px; }
#content.client-admin-content .panel { box-shadow:0 1px 1px rgba(0,0,0,.05); }
#content.client-admin-content .panel-body { padding:22px; }
#content.client-admin-content .well { min-height:194px; margin:38px 0 30px; padding:28px; background:#f5f5f5; border:1px solid #ddd; border-radius:3px; box-shadow:inset 0 1px 1px rgba(0,0,0,.05); }
#content.client-admin-content .well .form-group { padding:0; border:0; }
#content.client-admin-content .evproduct_designer.nav-tabs { margin-bottom:36px; }
#content.client-admin-content .table > thead > tr > th,
#content.client-admin-content .table > thead > tr > td { color:#229ac8; font-weight:700; background:#fff; }
#content.client-admin-content .table > tbody > tr > td { height:86px; }
#content.client-admin-content .btn { border-radius:3px; }
.ev_td_color_block { width:70px; padding:2px; border:1px solid #cecece; }
.ev_td_color { height:28px; }
.evia-image-picker { display:flex; align-items:flex-start; gap:12px; }
.evia-image-thumb { display:flex; align-items:center; justify-content:center; width:165px; height:165px; margin:0; overflow:hidden; background:#fff; }
.evia-image-thumb img { max-width:100%; max-height:100%; object-fit:contain; }
.evia-image-placeholder { color:#bbb; font-size:48px; }
.evia-image-actions { display:flex; gap:6px; }
.evia-image-actions .btn { width:auto; }
.client-dashboard { max-width:1460px; margin:0 auto; padding:62px 26px; }
.client-dashboard h1 { margin-bottom:30px; color:#222; font-size:38px; }
.client-dashboard-cards { display:grid; grid-template-columns:repeat(4,minmax(210px,1fr)); gap:26px; }
.client-dashboard-card { min-height:174px; padding:36px; color:#222; background:#fff; border-left:5px solid #229ac8; border-radius:8px; box-shadow:0 1px 1px rgba(0,0,0,.05); text-decoration:none; }
.client-dashboard-card:hover { color:#222; box-shadow:0 4px 14px rgba(0,0,0,.10); text-decoration:none; }
.client-dashboard-card strong,.client-dashboard-card b,.client-dashboard-card > i { display:block; margin-bottom:14px; color:#229ac8; font-size:42px; line-height:1; }
.client-dashboard-card span { display:block; font-size:20px; }
@media(max-width:767px){
    .client-admin-header{flex-wrap:wrap;padding:10px 16px}.client-admin-navigation{order:3;width:100%;margin:8px 0 0}.client-admin-user{font-size:13px}
    #content.client-admin-content{margin-left:0}
    #content.client-admin-content > .container-fluid{padding:0 12px}
    .client-dashboard{padding:32px 16px}.client-dashboard-cards{grid-template-columns:1fr}
}

/* Odświeżona, kompaktowa szata panelu sprzedawcy. */
:root {
    font-family: "Segoe UI", Arial, sans-serif;
    color: #182734;
    background: #f5f7f8;
}
body { background: #f5f7f8; color: #182734; }

.client-admin-header {
    min-height: 72px;
    padding: 0 max(28px, calc((100vw - 1180px) / 2));
    gap: 22px;
    border-bottom: 1px solid #e2e8ec;
    box-shadow: 0 1px 0 rgba(25, 48, 62, .02);
}
.client-admin-brand { color: #172934; font-size: 22px; letter-spacing: -.35px; }
.client-admin-navigation { gap: 5px; margin-left: 18px; }
.client-admin-navigation a {
    padding: 10px 13px;
    color: #52636d;
    border-radius: 9px;
    font-weight: 600;
}
.client-admin-navigation a:hover,
.client-admin-navigation a.active { color: #fff; background: #229ac8; }
.client-admin-user { margin-left: auto; color: #53636c; font-size: 14px; white-space: nowrap; }
.client-admin-user strong { color: #182734; }
.client-admin-user a { color: #229ac8; text-decoration: none; }

#content.client-admin-content { background: #f5f7f8; }
#content.client-admin-content > .container-fluid {
    max-width: 1180px;
    padding: 0 24px;
}
#content.client-admin-content .page-header {
    margin: 0;
    padding: 36px 0 22px;
    background: transparent;
    border: 0;
}
#content.client-admin-content .page-header h1 {
    color: #182734;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -.6px;
}
#content.client-admin-content .breadcrumb { color: #73828a; font-size: 13px; }
#content.client-admin-content .panel {
    overflow: hidden;
    border: 1px solid #e0e7ea;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(28, 55, 70, .055);
}
#content.client-admin-content .panel-heading {
    padding: 17px 21px;
    color: #182734;
    background: #fff;
    border-bottom: 1px solid #e7edef;
}
#content.client-admin-content .panel-title { color: #182734; font-size: 17px; font-weight: 700; }
#content.client-admin-content .panel-body { padding: 22px; background: #fff; }
#content.client-admin-content .btn,
.button,
button {
    width: auto;
    min-height: 38px;
    padding: 9px 15px;
    border-radius: 9px;
    font-weight: 700;
    box-shadow: none;
}
#content.client-admin-content .btn-primary,
.button,
button { background: #229ac8; border-color: #229ac8; }
#content.client-admin-content .btn-primary:hover,
.button:hover,
button:hover { background: #1788b6; border-color: #1788b6; }
#content.client-admin-content .btn-default {
    color: #344751;
    background: #fff;
    border-color: #d9e3e7;
}
#content.client-admin-content .btn-default:hover { background: #f3f7f8; border-color: #cbd9de; }
#content.client-admin-content .evproduct_designer.nav-tabs {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin: 0 0 22px;
    padding-bottom: 13px;
    border-bottom: 1px solid #e5ecef;
}
#content.client-admin-content .evproduct_designer.nav-tabs > li { margin: 0; }
#content.client-admin-content .evproduct_designer.nav-tabs > li > a {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 9px 12px;
    color: #52636d;
    border: 0;
    border-radius: 8px;
    font-weight: 600;
}
#content.client-admin-content .evproduct_designer.nav-tabs > li.active > a,
#content.client-admin-content .evproduct_designer.nav-tabs > li > a:hover {
    color: #168bb9;
    background: #eaf7fb;
    border: 0;
}
.personalizer-nav-icon {
    position: relative;
    display: inline-block;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    color: currentColor;
}
.personalizer-nav-icon::before,
.personalizer-nav-icon::after {
    position: absolute;
    box-sizing: border-box;
    content: '';
}
.personalizer-nav-icon-settings::before {
    inset: 3px;
    border: 1.4px solid currentColor;
    border-radius: 50%;
    box-shadow: 0 -5px 0 -3.7px currentColor, 0 5px 0 -3.7px currentColor, 5px 0 0 -3.7px currentColor, -5px 0 0 -3.7px currentColor;
}
.personalizer-nav-icon-settings::after {
    top: 6px;
    left: 6px;
    width: 5px;
    height: 5px;
    border: 1.3px solid currentColor;
    border-radius: 50%;
}
.personalizer-nav-icon-fonts::before {
    top: 1px;
    left: 2px;
    width: 13px;
    height: 15px;
    border-top: 1.5px solid currentColor;
    border-left: 1.5px solid currentColor;
    transform: skewX(-18deg);
}
.personalizer-nav-icon-fonts::after {
    top: 8px;
    left: 4px;
    width: 10px;
    border-top: 1.5px solid currentColor;
}
.personalizer-nav-icon-colors::before {
    top: 2px;
    left: 3px;
    width: 10px;
    height: 6px;
    border: 1.4px solid currentColor;
    border-radius: 7px 7px 4px 4px;
    transform: rotate(-45deg);
}
.personalizer-nav-icon-colors::after {
    bottom: 1px;
    left: 2px;
    width: 8px;
    height: 5px;
    border: 1.4px solid currentColor;
    border-top: 0;
    border-radius: 0 0 2px 2px;
    transform: rotate(-45deg);
}
.personalizer-nav-icon-graphics {
    border: 1.4px solid currentColor;
    border-radius: 2px;
}
.personalizer-nav-icon-graphics::before {
    top: 3px;
    right: 3px;
    width: 3px;
    height: 3px;
    border: 1.2px solid currentColor;
    border-radius: 50%;
}
.personalizer-nav-icon-graphics::after {
    right: 2px;
    bottom: 3px;
    width: 10px;
    height: 7px;
    border-left: 1.4px solid currentColor;
    border-top: 1.4px solid currentColor;
    transform: skewY(-38deg) rotate(-36deg);
}
.product-list-actions {
    position: relative;
    min-height: 39px;
    margin: 0 0 22px;
}
.product-list-back { text-align: center; }
.product-list-create { position: absolute; top: 0; right: 0; }
#content.client-admin-content .form-control,
input, select, textarea {
    border-color: #d7e1e5;
    border-radius: 8px;
    box-shadow: none;
}
#content.client-admin-content .form-control:focus,
input:focus, select:focus, textarea:focus {
    border-color: #229ac8;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(34, 154, 200, .12);
}

/* Tabele zachowują szerokość treści zamiast rozciągać się na cały panel. */
#content.client-admin-content .table-responsive {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    overflow-x: auto;
    border: 1px solid #e0e7ea;
    border-radius: 11px;
}
#content.client-admin-content .table-responsive > .table {
    width: auto;
    min-width: 760px;
    margin: 0;
    background: #fff;
}
#content.client-admin-content .table > thead > tr > th {
    padding: 14px 18px;
    color: #168bb9;
    background: #f8fbfc;
    border-bottom: 1px solid #dce7eb;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}
#content.client-admin-content .table > tbody > tr > td {
    height: auto;
    padding: 15px 18px;
    color: #283b45;
    border-color: #e7edef;
    vertical-align: middle;
}
#content.client-admin-content .table > tbody > tr:nth-child(odd) { background: #fff; }
#content.client-admin-content .table > tbody > tr:hover { background: #f7fbfc; }

.client-dashboard { max-width: 1180px; padding: 44px 24px 60px; }
.client-dashboard h1 { margin-bottom: 26px; color: #182734; font-size: 32px; font-weight: 700; letter-spacing: -.6px; }
.client-dashboard-cards { gap: 18px; }
.client-dashboard-card {
    min-height: 148px;
    padding: 28px;
    border: 1px solid #e0e7ea;
    border-left: 4px solid #229ac8;
    border-radius: 14px;
    box-shadow: 0 7px 20px rgba(28, 55, 70, .045);
}
.client-dashboard-card strong,
.client-dashboard-card b,
.client-dashboard-card > i { margin-bottom: 12px; font-size: 36px; }
.client-dashboard-card span { font-size: 17px; font-weight: 600; }

@media(max-width:767px){
    .client-admin-header { padding: 12px 16px; }
    .client-admin-navigation { margin-left: 0; }
    #content.client-admin-content > .container-fluid,
    .client-dashboard { padding-left: 16px; padding-right: 16px; }
    #content.client-admin-content .panel-body { padding: 16px; }
    #content.client-admin-content .table-responsive { margin: 0; }
}

/* Stały układ panelu sprzedawcy. */
.client-admin-header { padding: 0 32px; }
.client-sidebar {
    position: fixed;
    top: 64px;
    bottom: 0;
    left: 0;
    z-index: 10;
    width: 235px;
    padding: 10px 12px;
    overflow: visible;
    background: #fff;
    border-right: 1px solid #e0e6e9;
}
.client-sidebar nav { display: grid; }
.client-sidebar a,
.client-sidebar button {
    display: block;
    width: 100%;
    margin: 0;
    padding: 8px 12px;
    color: #343a40;
    background: transparent;
    border: 0;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 400;
    text-align: left;
    text-decoration: none;
}
.client-sidebar a:hover,
.client-sidebar a.active {
    color: #243746;
    background: #f1f1f1;
    text-decoration: none;
}
.client-sidebar a.active { font-weight: 500; }
.client-sidebar .client-sidebar-heading {
    display: block;
    margin: 9px 4px 3px;
    padding: 6px 8px 3px;
    color: #172d3b;
    font-size: 14px;
    font-weight: 700;
}
.client-sidebar .client-sidebar-heading-link { margin-left: 0; padding: 8px 12px; }
.product-type-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 0 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e0e6e9;
}
.product-type-nav a,
.product-type-nav button {
    display: inline-block;
    width: auto;
    margin: 0;
    padding: 9px 14px;
    color: #243746;
    background: #fff;
    border: 1px solid #dce5e8;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
}
.product-type-nav a:hover,
.product-type-nav a.active {
    color: #243746;
    background: #f1f1f1;
    border-color: #f1f1f1;
    text-decoration: none;
}
.product-type-nav a.active { font-weight: 600; }
.product-type-nav button.locked { color: #8d9ba3; cursor: not-allowed; }
.client-subscription-dialog {
    max-width: 420px;
    padding: 26px;
    border: 1px solid #dfe7ea;
    border-radius: 12px;
    color: #172d3b;
    box-shadow: 0 15px 45px rgba(20, 40, 50, .15);
}
.client-subscription-dialog::backdrop { background: rgba(20, 40, 50, .25); }
.client-subscription-dialog button { width: auto; margin-left: auto; padding: 9px 18px; }
.client-subscription-dialog p { margin: 0 0 18px; }
#content.client-admin-content .table thead a { color: #229ac8; text-decoration: none; }
#content.client-admin-content .table thead a:hover { text-decoration: underline; }
#content.client-admin-content {
    min-height: calc(100vh - 64px);
    margin-left: 235px;
}
#content.client-admin-content:not(.client-start):not(.client-section-home) > .container-fluid { padding-top: 28px; }
#content.client-admin-content .panel { border-radius: 9px; }
#content.client-admin-content .table-responsive { border-radius: 8px; }
#content.client-admin-content .table { border-radius: 8px; overflow: hidden; clip-path: inset(0 round 8px); }
#content.client-admin-content .client-section-card,
#content.client-admin-content .client-start-stat,
#content.client-admin-content .client-start-preview { border-radius: 9px; }
#content.client-admin-content > .container-fluid { max-width: 1260px; }
#content.client-admin-content .page-header > .container-fluid { max-width: 1260px; margin: 0 auto; padding: 0 24px; }
#content.client-admin-content .panel-body > [style*="margin-top:-86px"] {
    margin-top: 0 !important;
    margin-bottom: 24px !important;
}
#content.client-admin-content .alert-info { color: #356073; background: #edf7fa; border-color: #d0e7f0; }

#content.client-start,
#content.client-section-home { padding: 40px 0 64px; }
#content.client-start h1,
#content.client-section-home h1 {
    margin: 0 0 28px;
    color: #182734;
    font-size: 32px;
    font-weight: 700;
}
.client-start-stats { display: grid; grid-template-columns: repeat(3, minmax(190px, 1fr)); gap: 20px; margin-bottom: 26px; }
.client-start-stat {
    display: grid;
    gap: 8px;
    min-height: 125px;
    padding: 22px 26px;
    color: #182734;
    background: #fff;
    border: 1px solid #dfe7ea;
    border-radius: 13px;
    box-shadow: 0 6px 18px rgba(28, 55, 70, .04);
    text-decoration: none;
}
.client-start-stat:hover { color: #182734; text-decoration: none; }
.client-start-stat span { font-size: 16px; font-weight: 600; }
.client-start-stat strong { color: #229ac8; font-size: 38px; line-height: 1; }
.client-start-preview {
    padding: 22px;
    background: #fff;
    border: 1px solid #dfe7ea;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(28, 55, 70, .04);
}
.client-start-preview h2 { margin: 0 0 20px; font-size: 20px; font-weight: 700; }
.client-preview-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; min-height: 300px; }
.client-preview-tools { display: grid; align-content: start; gap: 9px; }
.client-preview-tools span { padding: 12px 14px; border: 1px solid #dce5e8; border-radius: 7px; background: #fafcfc; font-size: 14px; }
.client-preview-image { overflow: hidden; background: #fff; border: 1px solid #dce5e8; border-radius: 8px; }
.client-preview-image img { display: block; width: 100%; height: 300px; object-fit: contain; object-position: center; }
.client-section-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 18px; }
.client-page-back { margin: 0 0 20px; }
.client-section-card { display: flex; align-items: center; gap: 16px; min-height: 92px; padding: 22px; color: #182734; background: #fff; border: 1px solid #dfe7ea; border-radius: 12px; font-size: 17px; font-weight: 600; text-decoration: none; }
.client-section-card:hover { color: #229ac8; border-color: #229ac8; text-decoration: none; }
.client-section-card i { color: #229ac8; font-size: 25px; }

@media (max-width: 767px) {
    .client-admin-header { min-height: 64px; padding: 12px 16px; }
    .client-sidebar { position: static; width: 100%; max-height: none; padding: 10px; border-right: 0; border-bottom: 1px solid #e0e6e9; }
    .client-sidebar nav { grid-template-columns: 1fr; }
    .client-sidebar a, .client-sidebar button { padding: 10px 12px; font-size: 13px; }
    #content.client-admin-content { min-height: 0; margin-left: 0; }
    #content.client-start,
    #content.client-section-home { padding-top: 28px; }
    .client-start-stats { grid-template-columns: 1fr; }
    .client-preview-layout { grid-template-columns: 1fr; }
    .client-preview-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Wspólna skala i kształty dla wszystkich ekranów zaplecza. */
.client-admin-header,
.client-sidebar,
#content.client-admin-content { font-family: "Segoe UI", Arial, sans-serif; font-size: 14px; }
.client-admin-header { min-height: 64px; }
#content.client-admin-content .panel,
#content.client-admin-content .table-responsive,
#content.client-admin-content .table,
#content.client-admin-content .well,
.shops-page .table-wrap,
.shop-edit-page .panel-form { border-radius: 9px; }
#content.client-admin-content .panel-title { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.35; }
#content.client-admin-content .panel-body { padding: 20px; }
#content.client-admin-content .table > thead > tr > th,
#content.client-admin-content .table > tbody > tr > td { padding: 11px 14px; font-size: 14px; line-height: 1.4; }
#content.client-admin-content .table > thead > tr > th { color: #182734; font-weight: 600; }
#content.client-admin-content .table > tbody > tr > td { color: #182734; }
#content.client-admin-content .well { min-height: 0; margin: 0 0 20px; padding: 18px; background: #fff; box-shadow: none; }
#content.client-admin-content .form-group { padding: 13px 0; }
#content.client-admin-content .form-horizontal .control-label { font-weight: 600; }
#content.client-admin-content .btn,
.button,
button { font-size: 14px; font-weight: 600; border-radius: 8px; }
#content.client-admin-content .btn-primary,
.button,
button { background: #229ac8; border-color: #229ac8; }
#content.client-admin-content .btn-primary:hover,
.button:hover,
button:hover { background: #229ac8; border-color: #229ac8; filter: brightness(.95); }
.product-bank-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 0 0 18px; float: none !important; }
.product-bank-actions .btn { margin: 0; }
.product-bank-actions span { align-self: center; font-weight: 600; }
.image-filters-list { height: 170px !important; min-height: 170px; }
.bank-image-preview { display: block; width: 96px; height: 96px; object-fit: contain; background: #fff; border: 1px solid #d4dce0; border-radius: 8px; }
#content.client-admin-content i.fa { display: none; }
#content.client-admin-content a.btn[href*="?edit=-1"]:has(> i.fa:only-child)::after { content: "Dodaj"; }
#content.client-admin-content a.btn[href*="?edit="]:has(> i.fa-pencil:only-child)::after { content: "Edytuj"; }
#content.client-admin-content a.btn[href*="images.php?group_id="]:has(> i.fa-eye:only-child)::after { content: "Otwórz"; }
#content.client-admin-content button:has(> i.fa-trash:only-child)::after { content: "Usuń"; }
#content.client-admin-content button:has(> i.fa-plus:only-child)::after,
#content.client-admin-content button:has(> i.fa-plus-circle:only-child)::after { content: "Dodaj"; }
#content.client-admin-content button.assignment-toggle.on::after { content: "Wyłącz"; }
#content.client-admin-content button.assignment-toggle.off::after { content: "Włącz"; }
#content.client-admin-content .assignment-state.on::after { content: "Aktywny"; }
#content.client-admin-content .assignment-state.off::after { content: "Nieaktywny"; }
#content.client-admin-content .evia-image-thumb { display: flex; }
#content.client-admin-content .evia-image-actions [data-image-clear] { background: #fff; border-color: #d4dce0; color: #183047; }
#content.client-admin-content .evia-image-actions [data-image-clear][hidden] { display: none !important; }
#content.client-admin-content .list-action { margin: 0 0 18px; }
#content.client-admin-content .btn-success,
#content.client-admin-content .btn-info { color: #fff; background: #229ac8; border-color: #229ac8; }
#content.client-admin-content .btn-success:hover,
#content.client-admin-content .btn-info:hover { color: #fff; background: #229ac8; border-color: #229ac8; filter: brightness(.95); }
#content.client-admin-content button:has(> i.fa-eye:only-child)::after { content: "Zmień"; }
#content.client-admin-content button:has(> i.fa-minus-circle:only-child)::after { content: "Usuń"; }
.color-sample { display: inline-block; width: 24px; height: 24px; margin-right: 9px; border: 1px solid #d7e1e5; border-radius: 5px; vertical-align: middle; }
#content.client-admin-content .bank-image-preview { display: block; }
#content.client-admin-content .evia-image-thumb img:not([hidden]) { display: block; }
#content.client-admin-content .evia-image-thumb img[hidden] { display: none; }

/* Krótsza droga od nagłówka do formularza i tabeli w widokach banków. */
#content.client-admin-content:not(.client-start):not(.client-section-home) > .container-fluid { padding-top: 16px; }
#content.client-start,
#content.client-section-home { padding-top: 26px; }
.client-dashboard { padding-top: 26px; }
#content.client-admin-content .panel-heading { padding: 14px 20px; }
#content.client-admin-content .panel-body { padding: 16px 20px 20px; }
#content.client-admin-content .client-page-back { display: inline-block; margin: 0 0 12px; vertical-align: top; }
#content.client-admin-content .list-action { float: right; margin: 0 0 12px; }
#content.client-admin-content .panel-body > .well,
#content.client-admin-content .panel-body > .table-responsive { clear: both; }
#content.client-admin-content .panel-body > .well { margin-bottom: 16px; }
#content.client-admin-content .bank-add-form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
#content.client-admin-content .bank-add-form label { width: 100%; margin: 0; }
#content.client-admin-content .bank-add-form .form-control { flex: 1 1 260px; width: auto; margin: 0; }
#content.client-admin-content .bank-add-form .btn { margin: 0; }
#content.client-admin-content .bank-row-actions { white-space: nowrap; }
#content.client-admin-content .bank-row-actions .action-form { display: inline-block; margin: 0 0 0 6px; }

.bank-image-add-fields { display: grid; grid-template-columns: minmax(150px, 1.3fr) minmax(200px, 1.7fr) 84px minmax(90px, .65fr) minmax(120px, .8fr) auto; gap: 12px; align-items: end; }
.bank-image-add-fields > div { min-width: 0; }
.bank-image-add-fields label { display: block; margin: 0 0 6px; }
.bank-image-add-fields .form-control { width: 100%; margin: 0; }
.bank-image-add-fields > .btn { width: auto; white-space: nowrap; }
.bank-image-upload-preview { display: flex; align-items: center; justify-content: center; width: 84px; height: 72px; overflow: hidden; border: 1px solid #d7e1e5; border-radius: 8px; color: #73828a; background: #fff; font-size: 11px; text-align: center; }
.bank-image-upload-preview img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.bank-image-upload-preview img[hidden],
.bank-image-upload-preview span[hidden] { display: none; }
.font-name-preview { display: inline-block; font-size: 20px; font-weight: 400; line-height: 1.4; }
.font-add-action { padding-top: 26px; }
@media (max-width: 1100px) {
    .bank-image-add-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    #content.client-admin-content .list-action { float: none; display: block; text-align: left; }
    .bank-image-add-fields { grid-template-columns: 1fr; }
    .bank-image-upload-preview { width: 100%; }
    .font-add-action { padding-top: 12px; }
}
