/* Abacus ERP — UI minimalist, construit peste Bootstrap 5 */

.abacus-app {
    --ab-font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
    --ab-radius: 12px;
    --ab-radius-sm: 8px;
    --ab-line: rgba(15, 23, 42, 0.08);
    --ab-line-strong: rgba(15, 23, 42, 0.12);
    --ab-surface: #ffffff;
    --ab-canvas: #f4f4f5;
    --ab-muted: #71717a;
    --ab-heading: #18181b;
    --ab-accent: #a84444;
    --ab-accent-rgb: 168, 68, 68;
    --ab-accent-soft: rgba(168, 68, 68, 0.12);
    --ab-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 32px rgba(15, 23, 42, 0.06);
    --ab-shadow-lg: 0 4px 24px rgba(15, 23, 42, 0.08);

    --bs-font-sans-serif: var(--ab-font);
    --bs-body-font-family: var(--ab-font);
    --bs-body-color: #3f3f46;
    --bs-heading-color: var(--ab-heading);
    --bs-primary: var(--ab-accent);
    --bs-primary-rgb: var(--ab-accent-rgb);
    --bs-link-color: #8f3838;
    --bs-link-hover-color: #6e2a2a;
    --bs-border-color: var(--ab-line);
    --bs-border-radius: var(--ab-radius-sm);
    --bs-border-radius-lg: var(--ab-radius);
    --bs-focus-ring-color: rgba(168, 68, 68, 0.35);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ——— Login ——— */
.abacus-login {
    min-height: 100vh;
    font-family: var(--ab-font);
    background-color: #faf6f6;
    background-image:
        radial-gradient(ellipse 80% 55% at 50% -20%, rgba(168, 68, 68, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(120, 60, 60, 0.07), transparent),
        radial-gradient(ellipse 50% 50% at 0% 100%, rgba(168, 68, 68, 0.1), transparent);
}

.login-backdrop {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle at 1px 1px, rgba(15, 23, 42, 0.06) 1px, transparent 0);
    background-size: 24px 24px;
    opacity: 0.55;
}

.login-wrap {
    position: relative;
    z-index: 1;
}

.login-card {
    border: 1px solid var(--ab-line-strong);
    border-radius: var(--ab-radius);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--ab-shadow-lg);
}

.login-card .card-body {
    padding: 2.25rem 2rem;
}

@media (min-width: 576px) {
    .login-card .card-body {
        padding: 2.75rem 2.5rem;
    }
}

.login-brand {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ab-heading);
    font-size: 1.35rem;
}

.login-tagline {
    font-size: 0.875rem;
    color: var(--ab-muted);
    font-weight: 500;
}

.login-logo {
    max-height: 72px;
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(15, 23, 42, 0.08));
}

.login-card .form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #52525b;
    margin-bottom: 0.375rem;
}

.login-card .form-control,
.login-card .input-group-text {
    border-color: var(--ab-line-strong);
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.login-card .form-control {
    border-radius: var(--ab-radius-sm);
}

.login-card .form-control:focus {
    border-color: rgba(168, 68, 68, 0.45);
    box-shadow: 0 0 0 3px rgba(168, 68, 68, 0.12);
}

.login-card .input-group-text {
    background: #fafafa;
    color: #71717a;
    border-radius: var(--ab-radius-sm) 0 0 var(--ab-radius-sm);
}

.login-card .input-group .form-control {
    border-radius: 0 var(--ab-radius-sm) var(--ab-radius-sm) 0;
}

.login-card .btn-primary {
    font-weight: 600;
    letter-spacing: 0.01em;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-radius: var(--ab-radius-sm);
    border: none;
    background: linear-gradient(180deg, #b85a5a 0%, #9a3f3f 100%);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.login-card .btn-primary:hover {
    background: linear-gradient(180deg, #a84848 0%, #7d2e2e 100%);
}

.login-foot {
    font-size: 0.8125rem;
    color: #a1a1aa;
    font-weight: 500;
}

.login-developer-credit {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 2;
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #a1a1aa;
    text-align: right;
    max-width: calc(100vw - 2rem);
}

.login-developer-credit a {
    color: #71717a;
    font-weight: 600;
    text-decoration: none;
}

.login-developer-credit a:hover {
    color: #8f3838;
    text-decoration: underline;
}

.login-card .alert {
    border-radius: var(--ab-radius-sm);
    border: 1px solid transparent;
    font-size: 0.875rem;
}

/* ——— Admin shell ——— */
/* Bază mai mică doar în admin — scală Bootstrap (rem), tabele, titluri */
html:has(body.abacus-admin) {
    font-size: 14px;
}

.abacus-admin {
    font-family: var(--ab-font);
    background: var(--ab-canvas);
    color: #3f3f46;
    min-height: 100vh;
    overflow-x: hidden;
}

.admin-shell {
    min-height: 100vh;
}

.admin-sidebar {
    width: 200px;
    min-height: 100vh;
    flex-shrink: 0;
    background: var(--ab-surface);
    border-right: 1px solid var(--ab-line);
    padding: 0.85rem 0.65rem 1.1rem;
    display: flex;
    flex-direction: column;
}

.admin-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0.6rem 1.1rem;
    margin-bottom: 0.35rem;
    text-decoration: none;
    color: var(--ab-heading) !important;
    border-radius: var(--ab-radius-sm);
    transition: background 0.15s ease;
}

.admin-sidebar__brand:hover {
    background: #fafafa;
}

.admin-sidebar__mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--ab-accent-soft);
    color: var(--ab-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.admin-sidebar__brand--logo-only {
    justify-content: flex-start;
}

.admin-sidebar__brand--logo-only .admin-sidebar__logo {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 40px;
    width: auto;
    object-fit: contain;
    object-position: left center;
}

.admin-sidebar__title {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.admin-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-sidebar__link {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.6rem;
    border-radius: var(--ab-radius-sm);
    color: #52525b;
    font-weight: 500;
    font-size: 0.8125rem;
    text-decoration: none;
    transition: background 0.12s ease, color 0.12s ease;
}

.admin-sidebar__link i {
    font-size: 0.95rem;
    opacity: 0.85;
}

.admin-sidebar__link:hover {
    background: #f4f4f5;
    color: var(--ab-heading);
}

.admin-sidebar__link--active {
    background: var(--ab-accent-soft);
    color: #7a2c2c;
    font-weight: 600;
}

.admin-sidebar__link--active i {
    color: var(--ab-accent);
}

.admin-sidebar__sep {
    height: 1px;
    margin: 0.45rem 0.6rem;
    background: var(--ab-line);
}

.admin-sidebar__sep-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.85rem 0.6rem 0.4rem;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #b4b4bb;
    white-space: nowrap;
}

.admin-sidebar__sep-label::before,
.admin-sidebar__sep-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--ab-line);
}

.admin-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.55rem 0.85rem;
    padding: 0.4rem 1rem;
    min-height: 2.85rem;
    box-sizing: border-box;
    background: var(--ab-surface);
    border-bottom: 1px solid var(--ab-line);
    flex-shrink: 0;
}

@media (min-width: 992px) {
    .admin-header {
        padding: 0.4rem 1.25rem;
        min-height: 2.95rem;
    }
}

.admin-header__nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.2rem;
}

.admin-header__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    border-radius: var(--ab-radius-sm);
    color: #52525b;
    font-weight: 500;
    font-size: 0.8125rem;
    text-decoration: none;
    transition: background 0.12s ease, color 0.12s ease;
}

.admin-header__link i {
    font-size: 0.9rem;
    opacity: 0.88;
}

.admin-header__link:hover {
    background: #f4f4f5;
    color: var(--ab-heading);
}

.admin-header__link--active {
    background: var(--ab-accent-soft);
    color: #7a2c2c;
    font-weight: 600;
}

.admin-header__link--active i {
    color: var(--ab-accent);
}

.admin-header__actions {
    display: flex;
    align-items: center;
    gap: 0.85rem 1rem;
    flex-wrap: wrap;
    min-height: 2.25rem;
}

.admin-header__name {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: min(280px, 42vw);
    min-width: 0;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--ab-heading);
}

.admin-header__name-icon {
    flex-shrink: 0;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--ab-muted);
}

.admin-header__name-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-header__logout {
    margin: 0;
    display: flex;
    align-items: center;
}

.admin-header__logout .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ab-radius-sm);
    font-weight: 600;
    font-size: 0.75rem;
    line-height: 1.25;
    padding: 0.35rem 0.55rem;
    border-color: var(--ab-line-strong);
    color: #52525b;
}

.admin-header__logout .btn:hover {
    background: #fafafa;
    border-color: #d4d4d8;
    color: var(--ab-heading);
}

.admin-main {
    flex: 1;
    min-width: 0;
    padding: 1.1rem 1rem 1.5rem;
}

@media (min-width: 992px) {
    .admin-main {
        padding: 1.2rem 1.2rem 1.65rem;
    }
}

/* Spațiere rânduri Bootstrap în conținutul admin */
.admin-main .row.g-3,
.admin-main .row.g-4 {
    --bs-gutter-x: 0.9rem;
    --bs-gutter-y: 0.9rem;
}

/* ——— Page content ——— */
.ab-page-head {
    margin-bottom: 1rem;
}

.ab-page-head h1 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ab-heading);
    margin: 0;
}

.ab-products-toolbar__card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    padding: 0.45rem 0.65rem;
    background: var(--ab-surface);
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-radius);
    box-shadow: var(--ab-shadow);
}

.ab-products-toolbar__attrs {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    white-space: nowrap;
}

.ab-import-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
}

.ab-import-file-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.5rem;
}

.ab-import-file-label {
    display: inline-flex;
    align-items: stretch;
    min-height: 2.375rem;
    padding: 0;
    margin: 0;
    border: 1px solid var(--ab-line-strong);
    border-radius: var(--ab-radius-sm);
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ab-import-file-label:hover {
    border-color: #c4c4c9;
}

.ab-import-file-label:focus-within {
    border-color: rgba(168, 68, 68, 0.45);
    box-shadow: 0 0 0 3px rgba(168, 68, 68, 0.12);
}

.ab-import-pick {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.8rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #52525b;
    background: linear-gradient(180deg, #fafafa 0%, #f0f0f1 100%);
    border-right: 1px solid var(--ab-line);
    white-space: nowrap;
}

.ab-import-name {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    font-size: 0.8125rem;
    color: var(--ab-muted);
    max-width: min(240px, 38vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ab-import-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
}

.ab-import-progress {
    height: 1.35rem;
    border-radius: 999px;
    background: #f0f0f1;
}

.ab-import-progress .progress-bar {
    font-size: 0.75rem;
    font-weight: 700;
}

.ab-card {
    background: var(--ab-surface);
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-radius);
    box-shadow: var(--ab-shadow);
}

.ab-card .card-body {
    padding: 0.9rem 1.1rem;
}

.ab-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--ab-radius-sm);
    background: var(--ab-accent-soft);
    color: #8f3838;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

body.abacus-admin .ab-card .fs-3 {
    font-size: 1.45rem !important;
}

.ab-card h2,
.ab-card .h5,
.ab-card .h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ab-heading);
}

.ab-card .text-muted {
    color: var(--ab-muted) !important;
}

.ab-table-wrap {
    border-radius: var(--ab-radius);
    overflow: hidden;
    border: 1px solid var(--ab-line);
    background: var(--ab-surface);
    box-shadow: var(--ab-shadow);
}

.ab-table-wrap .table {
    margin-bottom: 0;
    font-size: 0.8125rem;
}

.ab-table-wrap thead th {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    color: var(--ab-muted);
    background: #fafafa;
    border-bottom-color: var(--ab-line);
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.ab-table-wrap tbody td {
    border-color: var(--ab-line);
    vertical-align: middle;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.ab-table-wrap tbody tr:hover {
    background: #fafafa;
}

.ab-table-wrap .badge {
    font-weight: 600;
    padding: 0.25em 0.5em;
    border-radius: 5px;
    font-size: 0.68rem;
}

/* Simple DataTables — utilizatori, feed-uri & produse */
.ab-users-table-host .datatable-wrapper,
.ab-feeds-table-host .datatable-wrapper,
.ab-products-table-host .datatable-wrapper {
    border-radius: var(--ab-radius);
    overflow: hidden;
    border: 1px solid var(--ab-line);
    background: var(--ab-surface);
    box-shadow: var(--ab-shadow);
    font-size: 0.8125rem;
}

/* Produse: scroll orizontal doar pe zona tabelului (search + paginare rămân fixe) */
.ab-products-table-host .datatable-wrapper {
    overflow-x: hidden;
}

.ab-products-table-host .datatable-container {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.ab-feeds-table-host .datatable-wrapper {
    overflow-x: hidden;
}

.ab-feeds-table-host .datatable-container {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.ab-feeds-table-host .ab-feed-url-cell .ab-feed-url-row {
    align-items: flex-start;
}

.ab-feeds-table-host .ab-feed-url-cell .ab-feed-url-text {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.ab-feeds-table-host .ab-feed-dup-col {
    width: 2.35rem;
    max-width: 2.35rem;
    padding-left: 0.3rem;
    padding-right: 0.3rem;
    vertical-align: middle;
}

.ab-users-table-host .datatable-top,
.ab-feeds-table-host .datatable-top,
.ab-users-table-host .datatable-bottom,
.ab-feeds-table-host .datatable-bottom,
.ab-products-table-host .datatable-top,
.ab-products-table-host .datatable-bottom {
    padding: 0.45rem 0.75rem;
    background: #fafafa;
}

.ab-users-table-host .datatable-top::after,
.ab-feeds-table-host .datatable-top::after,
.ab-users-table-host .datatable-bottom::after,
.ab-feeds-table-host .datatable-bottom::after,
.ab-products-table-host .datatable-top::after,
.ab-products-table-host .datatable-bottom::after {
    content: "";
    display: table;
    clear: both;
}

.ab-users-table-host .datatable-input,
.ab-feeds-table-host .datatable-input,
.ab-products-table-host .datatable-input {
    border-radius: var(--ab-radius-sm);
    border: 1px solid var(--ab-line-strong);
    font-size: 0.8125rem;
    padding: 0.25rem 0.5rem;
}

.ab-users-table-host .datatable-input:focus,
.ab-feeds-table-host .datatable-input:focus,
.ab-products-table-host .datatable-input:focus {
    border-color: rgba(168, 68, 68, 0.45);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(168, 68, 68, 0.1);
}

.ab-users-table-host .datatable-selector,
.ab-feeds-table-host .datatable-selector,
.ab-products-table-host .datatable-selector {
    border-radius: var(--ab-radius-sm);
    border: 1px solid var(--ab-line-strong);
    font-size: 0.8125rem;
    padding: 0.2rem 0.35rem;
}

.ab-users-table-host .datatable-info,
.ab-feeds-table-host .datatable-info,
.ab-products-table-host .datatable-info {
    font-size: 0.75rem;
    color: var(--ab-muted);
}

.ab-users-table-host .datatable-table > thead > tr > th,
.ab-feeds-table-host .datatable-table > thead > tr > th {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    color: var(--ab-muted);
    background: #fafafa;
    border-bottom: 1px solid var(--ab-line) !important;
    padding: 0.55rem 0.55rem;
    vertical-align: middle;
}

.ab-products-table-host .datatable-table > thead > tr > th {
    font-weight: 600;
    color: var(--ab-muted);
    background: #fafafa;
    border-bottom: 1px solid var(--ab-line) !important;
    padding: 0.55rem 2.35rem 0.55rem 0.55rem;
    vertical-align: middle;
    max-width: none;
    min-width: min-content;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 0.75rem;
    line-height: 1.3;
}

/* Săgeți sortare Simple-DataTables — spațiu explicit la dreapta sorterului */
.ab-products-table-host .datatable-table > thead > tr > th .datatable-sorter {
    padding-right: 1.15rem;
    box-sizing: border-box;
}

.ab-users-table-host .datatable-table > tbody > tr > td,
.ab-feeds-table-host .datatable-table > tbody > tr > td,
.ab-products-table-host .datatable-table > tbody > tr > td {
    padding: 0.5rem 0.55rem;
    border-color: var(--ab-line);
    vertical-align: middle;
}

.ab-users-table-host .datatable-table > tbody > tr:hover > td,
.ab-feeds-table-host .datatable-table > tbody > tr:hover > td,
.ab-products-table-host .datatable-table > tbody > tr:hover > td {
    background: #fafafa;
}

.ab-users-table-host .datatable-pagination a,
.ab-feeds-table-host .datatable-pagination a,
.ab-users-table-host .datatable-pagination button,
.ab-feeds-table-host .datatable-pagination button,
.ab-products-table-host .datatable-pagination a,
.ab-products-table-host .datatable-pagination button {
    border-radius: var(--ab-radius-sm);
    border: 1px solid var(--ab-line-strong);
    font-size: 0.75rem;
    padding: 0.2rem 0.45rem;
}

.ab-users-table-host .datatable-pagination a:hover,
.ab-feeds-table-host .datatable-pagination a:hover,
.ab-users-table-host .datatable-pagination button:hover,
.ab-feeds-table-host .datatable-pagination button:hover,
.ab-products-table-host .datatable-pagination a:hover,
.ab-products-table-host .datatable-pagination button:hover {
    background: #f4f4f5;
    border-color: #d4d4d8;
}

.ab-users-table-host .datatable-pagination .datatable-active a,
.ab-feeds-table-host .datatable-pagination .datatable-active a,
.ab-users-table-host .datatable-pagination .datatable-active button,
.ab-feeds-table-host .datatable-pagination .datatable-active button,
.ab-users-table-host .datatable-pagination .datatable-active a:hover,
.ab-feeds-table-host .datatable-pagination .datatable-active a:hover,
.ab-users-table-host .datatable-pagination .datatable-active button:hover,
.ab-feeds-table-host .datatable-pagination .datatable-active button:hover,
.ab-products-table-host .datatable-pagination .datatable-active a,
.ab-products-table-host .datatable-pagination .datatable-active button,
.ab-products-table-host .datatable-pagination .datatable-active a:hover,
.ab-products-table-host .datatable-pagination .datatable-active button:hover {
    background: var(--ab-accent-soft);
    color: #7a2c2c;
    border-color: rgba(168, 68, 68, 0.28);
    cursor: default;
}

.ab-users-actions .btn,
.ab-feeds-actions .btn {
    font-weight: 600;
}

/* Butoane icon — feed-uri (listă + celulă URL), dimensiune unică (fără btn-sm) */
.ab-feed-action-btn.btn {
    --bs-btn-padding-x: 0;
    --bs-btn-padding-y: 0;
    --bs-btn-font-size: 1rem;
    --bs-btn-line-height: 1;
    --bs-btn-border-width: 1px;
    align-self: center;
}

.ab-feed-action-btn {
    box-sizing: border-box;
    width: 1.75rem;
    height: 1.75rem;
    min-width: 1.75rem;
    min-height: 1.75rem;
    max-width: 1.75rem;
    max-height: 1.75rem;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1 !important;
    flex-shrink: 0;
    border-radius: 0.375rem;
    transition:
        transform 0.14s ease,
        box-shadow 0.14s ease,
        border-color 0.14s ease,
        background-color 0.14s ease,
        color 0.14s ease;
}

.ab-feed-action-btn i {
    font-size: 0.875rem;
    line-height: 1;
}

.ab-feed-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.ab-feed-action-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.ab-feed-action-btn.btn-outline-primary:hover {
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.22);
}

.ab-feed-action-btn.btn-outline-danger:hover {
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.2);
}

.ab-feed-actions-toolbar {
    gap: 0.25rem;
    align-items: center;
}

/* În tabelul feed-uri: override .admin-main .btn-outline-* (border-radius 8px vs 6px) + aceeași „cutie” pentru toate variantele */
.ab-feeds-table-host .ab-feed-action-btn.btn,
.ab-feeds-table-host td.ab-feed-url-cell .ab-feed-action-btn.btn {
    width: 1.75rem;
    height: 1.75rem;
    min-width: 1.75rem;
    min-height: 1.75rem;
    max-width: 1.75rem;
    max-height: 1.75rem;
    border-radius: 0.375rem;
    border-width: 1px;
    border-style: solid;
    box-sizing: border-box;
    flex: 0 0 1.75rem;
    align-self: center;
}

.ab-feeds-table-host .ab-feed-action-btn i.bi,
.ab-feeds-table-host td.ab-feed-url-cell .ab-feed-action-btn i.bi {
    font-size: 0.875rem !important;
    line-height: 1 !important;
    display: block;
}

.ab-feed-action-form {
    line-height: 0;
}

/* Tabel produse — scroll orizontal, coloane ascunse, cod produs sticky */
.ab-products-cols-panel {
    min-width: min(100vw - 2rem, 320px);
    max-width: min(100vw - 2rem, 380px);
}

.ab-products-cols-panel .ab-products-cols-checklist {
    max-height: min(52vh, 360px);
    overflow-y: auto;
}

.ab-products-table-host .datatable-table .ab-col-hidden {
    display: none !important;
}

.ab-products-table-host .datatable-table > thead > tr > th[data-ab-col="sku"],
.ab-products-table-host .datatable-table > tbody > tr > td[data-ab-col="sku"] {
    position: sticky;
    left: 0;
    z-index: 3;
    box-shadow: 4px 0 12px -6px rgba(15, 23, 42, 0.18);
}

.ab-products-table-host .datatable-table > thead > tr > th[data-ab-col="sku"] {
    z-index: 5;
    background: #fafafa;
}

.ab-products-table-host .datatable-table > tbody > tr > td[data-ab-col="sku"] {
    background: #fff;
}

.ab-products-table-host .datatable-table > tbody > tr > td.ab-product-sku-cell {
    vertical-align: middle;
}

.ab-products-table-host .ab-product-media-link {
    color: var(--ab-accent, #8f3838);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.ab-products-table-host .ab-product-media-link:hover {
    color: #7a2c2c;
}

.ab-product-gallery-all-scroll {
    max-height: min(72vh, 780px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.ab-product-gallery-tile-link {
    min-height: 10rem;
    max-height: 16rem;
    padding: 0.35rem;
}

.ab-product-gallery-tile-img {
    max-width: 100%;
    max-height: 15rem;
    width: auto;
    height: auto;
    object-fit: contain;
}

.ab-product-batch-img-thumb {
    width: 3rem;
    height: 3rem;
    object-fit: cover;
}

.ab-product-images-pool .ab-product-img-pool-row {
    min-height: 3.25rem;
}

.ab-products-table-host .datatable-table > tbody > tr:hover > td[data-ab-col="sku"] {
    background: #fafafa;
}

.ab-products-table-host {
    max-width: 100%;
    overflow: visible;
}

.ab-products-table-host .datatable-wrapper {
    max-width: 100%;
}

@media (min-width: 1200px) {
    .ab-products-scroll-hint {
        opacity: 0.75;
    }
}

@media (min-width: 1600px) {
    .ab-products-scroll-hint {
        display: none;
    }
}

.ab-products-table-host .datatable-table {
    width: max-content;
    min-width: 100%;
}

/* Celule: fără plafon forțat — conținutul dictează lățimea; scroll orizontal pe .datatable-container */
.ab-products-table-host .datatable-table > tbody > tr > td {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    word-break: break-word;
}

.ab-products-table-host .datatable-table > tbody > tr > td[data-ab-col="sku"],
.ab-products-table-host .datatable-table > tbody > tr > td.text-nowrap {
    white-space: nowrap;
}

.ab-link-back {
    font-size: 0.875rem;
    font-weight: 600;
    color: #71717a;
    text-decoration: none;
}

.ab-link-back:hover {
    color: #8f3838;
}

.ab-form-card .form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #52525b;
}

body.abacus-admin .ab-form-card .form-label {
    font-size: 0.75rem;
}

.ab-form-card .form-control,
.ab-form-card .form-select {
    border-color: var(--ab-line-strong);
    border-radius: var(--ab-radius-sm);
    padding: 0.55rem 0.75rem;
}

body.abacus-admin .ab-form-card .form-control,
body.abacus-admin .ab-form-card .form-select {
    padding: 0.4rem 0.6rem;
    font-size: 0.8125rem;
}

.ab-form-card .form-control:focus,
.ab-form-card .form-select:focus {
    border-color: rgba(168, 68, 68, 0.45);
    box-shadow: 0 0 0 3px rgba(168, 68, 68, 0.1);
}

.ab-form-card .btn-primary {
    font-weight: 600;
    border-radius: var(--ab-radius-sm);
    padding: 0.5rem 1.15rem;
}

.admin-main .btn-primary {
    font-weight: 600;
    border-radius: var(--ab-radius-sm);
    border: none;
    background: linear-gradient(180deg, #b85a5a 0%, #9a3f3f 100%);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.admin-main .btn-primary:hover {
    background: linear-gradient(180deg, #a84848 0%, #7d2e2e 100%);
}

.admin-main .btn-outline-primary {
    font-weight: 600;
    border-radius: var(--ab-radius-sm);
    border-color: #d4d4d8;
    color: #8f3838;
}

.admin-main .btn-outline-primary:hover {
    background: var(--ab-accent-soft);
    border-color: rgba(168, 68, 68, 0.38);
    color: #7a2c2c;
}

.admin-main .btn-outline-danger {
    font-weight: 600;
    border-radius: var(--ab-radius-sm);
}

.admin-main .alert {
    border-radius: var(--ab-radius-sm);
    border: 1px solid transparent;
}

/* Modale admin (ex. produs) — mai compacte */
body.abacus-admin .modal-header {
    padding: 0.6rem 0.95rem;
}

body.abacus-admin .modal-body {
    padding: 0.75rem 0.95rem;
}

body.abacus-admin .modal-footer {
    padding: 0.5rem 0.85rem;
}

body.abacus-admin .modal-title,
body.abacus-admin .modal-title.h5 {
    font-size: 1.05rem;
    line-height: 1.35;
}

body.abacus-admin input.form-control-sm,
body.abacus-admin .form-select-sm {
    min-height: calc(1.35em + 0.3rem + 2px);
    padding: 0.22rem 0.45rem;
    font-size: 0.8125rem;
}

body.abacus-admin textarea.form-control-sm {
    padding: 0.3rem 0.45rem;
    font-size: 0.8125rem;
}

body.abacus-admin .btn-sm {
    --bs-btn-padding-y: 0.22rem;
    --bs-btn-padding-x: 0.45rem;
    --bs-btn-font-size: 0.8125rem;
}

.admin-main dl.row dt {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ab-muted);
}

.admin-main dl.row dd {
    font-weight: 500;
}

.ab-section-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ab-muted);
    margin-bottom: 0.75rem;
}

/* ——— Admin responsive (mobil & tablet) ——— */
.ab-content-narrow {
    width: 100%;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.ab-content-narrow--sm {
    max-width: 560px;
}

.admin-offcanvas {
    max-width: min(20rem, 92vw);
}

.admin-offcanvas .admin-sidebar__link {
    padding: 0.5rem 0.7rem;
    font-size: 0.875rem;
    min-height: 2.35rem;
}

.admin-header__logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

@media (max-width: 991.98px) {
    .admin-mobile-top {
        position: sticky;
        top: 0;
        z-index: 1025;
        flex-shrink: 0;
        min-height: 3.25rem;
    }

    .admin-mobile-top__menu {
        min-width: 2.75rem;
        min-height: 2.75rem;
        padding: 0.35rem 0.45rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .admin-mobile-top__spacer {
        width: 2.75rem;
        flex-shrink: 0;
    }

    .admin-mobile-top__logo {
        max-height: 36px;
        width: auto;
        max-width: min(220px, 48vw);
        object-fit: contain;
        vertical-align: middle;
    }

    .admin-mobile-top__brand {
        text-decoration: none;
    }

    .admin-offcanvas .admin-sidebar__logo {
        max-height: 44px;
        width: auto;
    }

    .admin-offcanvas__brand {
        display: inline-flex;
        align-items: center;
    }

    .admin-header {
        flex-direction: column;
        align-items: stretch;
        padding: 0.65rem 0.85rem;
    }

    .admin-header__nav {
        order: 1;
        justify-content: flex-start;
        gap: 0.15rem;
    }

    .admin-header__actions {
        order: 2;
        width: 100%;
        justify-content: space-between;
        padding-top: 0.35rem;
        margin-top: 0.15rem;
        border-top: 1px solid var(--ab-line);
    }

    .admin-header__link {
        min-height: 2.75rem;
        padding: 0.5rem 0.65rem;
    }

    .admin-header__name {
        max-width: min(220px, 52vw);
    }

    .ab-users-table-host .datatable-wrapper,
    .ab-feeds-table-host .datatable-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }

    .ab-products-table-host .datatable-container,
    .ab-feeds-table-host .datatable-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }

    .ab-users-table-host .datatable-top > nav:first-child,
    .ab-feeds-table-host .datatable-top > nav:first-child,
    .ab-users-table-host .datatable-top > div:first-child,
    .ab-feeds-table-host .datatable-top > div:first-child,
    .ab-users-table-host .datatable-top > nav:last-child,
    .ab-feeds-table-host .datatable-top > nav:last-child,
    .ab-users-table-host .datatable-top > div:last-child,
    .ab-feeds-table-host .datatable-top > div:last-child,
    .ab-users-table-host .datatable-bottom > nav:first-child,
    .ab-feeds-table-host .datatable-bottom > nav:first-child,
    .ab-users-table-host .datatable-bottom > div:first-child,
    .ab-feeds-table-host .datatable-bottom > div:first-child,
    .ab-users-table-host .datatable-bottom > nav:last-child,
    .ab-feeds-table-host .datatable-bottom > nav:last-child,
    .ab-users-table-host .datatable-bottom > div:last-child,
    .ab-feeds-table-host .datatable-bottom > div:last-child,
    .ab-products-table-host .datatable-top > nav:first-child,
    .ab-products-table-host .datatable-top > div:first-child,
    .ab-products-table-host .datatable-top > nav:last-child,
    .ab-products-table-host .datatable-top > div:last-child,
    .ab-products-table-host .datatable-bottom > nav:first-child,
    .ab-products-table-host .datatable-bottom > div:first-child,
    .ab-products-table-host .datatable-bottom > nav:last-child,
    .ab-products-table-host .datatable-bottom > div:last-child {
        float: none !important;
        width: 100% !important;
        text-align: left !important;
    }

    .ab-users-table-host .datatable-bottom .datatable-pagination ul,
    .ab-feeds-table-host .datatable-bottom .datatable-pagination ul,
    .ab-products-table-host .datatable-bottom .datatable-pagination ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.25rem;
        float: none;
        width: 100% !important;
        padding: 0.5rem 0 0;
        margin: 0;
    }

    .ab-users-table-host .datatable-bottom .datatable-pagination li,
    .ab-feeds-table-host .datatable-bottom .datatable-pagination li,
    .ab-products-table-host .datatable-bottom .datatable-pagination li {
        float: none;
        list-style: none;
    }

    .ab-users-actions .d-inline-flex,
    .ab-feed-actions-toolbar {
        flex-direction: column;
        align-items: stretch !important;
    }

    .ab-users-actions .btn,
    .ab-feeds-actions .ab-feed-action-btn {
        width: 100%;
        justify-content: center;
    }

    .ab-users-actions form.d-inline,
    .ab-feeds-actions form.ab-feed-action-form {
        display: block !important;
    }

    /* Acțiuni feed pe ecran îngust: lățime completă (bate regulile fixe 2rem din tabel) */
    .ab-feeds-table-host td.ab-feeds-actions .ab-feed-action-btn.btn {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
        height: 2.375rem !important;
        min-height: 2.375rem !important;
        max-height: none !important;
    }
}

@media (max-width: 575.98px) {
    .admin-header__link-text {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .admin-header__logout-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .admin-header__logout-btn {
        min-width: 2.75rem;
        min-height: 2.75rem;
        padding: 0.45rem;
        justify-content: center;
    }

    .ab-page-head.d-flex {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .ab-page-head .btn {
        width: 100%;
        justify-content: center;
    }

    .ab-page-head h1 {
        font-size: 1.15rem;
    }

    .ab-products-toolbar__card {
        flex-direction: column;
        align-items: stretch;
    }

    .ab-import-file-row {
        flex-direction: column;
        align-items: stretch;
    }

    .ab-import-file-label {
        width: 100%;
    }

    .ab-import-name {
        max-width: none;
        flex: 1;
        min-width: 0;
    }

    .admin-main {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
        padding-bottom: 1.5rem;
    }

    .ab-card .card-body {
        padding: 0.85rem 0.95rem;
    }

    .ab-content-narrow,
    .ab-content-narrow--sm {
        max-width: 100%;
    }

    .login-wrap .container {
        padding-left: max(0.75rem, env(safe-area-inset-left));
        padding-right: max(0.75rem, env(safe-area-inset-right));
    }

    .login-developer-credit {
        right: max(0.75rem, env(safe-area-inset-right));
        bottom: max(0.75rem, env(safe-area-inset-bottom));
        font-size: 0.75rem;
    }
}

/* ——— Skroutz Marketplace ——— */
.ab-skroutz-page {
    --sk-orange: #f37021;
    --sk-orange-soft: rgba(243, 112, 33, 0.12);
    --sk-orange-border: rgba(243, 112, 33, 0.28);
}

.ab-skroutz-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    padding: 1.15rem 1.25rem;
    margin-bottom: 1.1rem;
    border-radius: var(--ab-radius);
    border: 1px solid var(--ab-line);
    background:
        linear-gradient(135deg, rgba(243, 112, 33, 0.08) 0%, rgba(255, 255, 255, 0.95) 42%, #fff 100%);
    box-shadow: var(--ab-shadow);
}

.ab-skroutz-hero__brand {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    min-width: 0;
}

.ab-skroutz-hero__mark {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(145deg, #ff8a3d 0%, var(--sk-orange) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(243, 112, 33, 0.35);
}

.ab-skroutz-hero__title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ab-heading);
    margin: 0 0 0.25rem;
    line-height: 1.2;
}

.ab-skroutz-hero__subtitle {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--ab-muted);
    max-width: 36rem;
    line-height: 1.45;
}

.ab-skroutz-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.ab-skroutz-hero__actions .btn {
    font-weight: 600;
    border-radius: var(--ab-radius-sm);
}

.ab-skroutz-hero__actions .btn-sk-primary {
    border: none;
    color: #fff;
    background: linear-gradient(180deg, #ff8a3d 0%, var(--sk-orange) 100%);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.ab-skroutz-hero__actions .btn-sk-primary:hover {
    color: #fff;
    background: linear-gradient(180deg, #f37021 0%, #d85a0f 100%);
}

.ab-skroutz-page .btn-sk-primary {
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: var(--ab-radius-sm);
    background: linear-gradient(180deg, #ff8a3d 0%, var(--sk-orange) 100%);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.ab-skroutz-page .btn-sk-primary:hover {
    color: #fff;
    background: linear-gradient(180deg, #f37021 0%, #d85a0f 100%);
}

.ab-skroutz-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem 0.95rem;
    margin-bottom: 1rem;
    border-radius: var(--ab-radius-sm);
    border: 1px solid transparent;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.ab-skroutz-alert i {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.ab-skroutz-alert--warn {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.ab-skroutz-alert--ok {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.ab-skroutz-alert--err {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.ab-skroutz-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .ab-skroutz-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .ab-skroutz-stat-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.ab-skroutz-stat {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 0.85rem 0.75rem;
    border-radius: var(--ab-radius);
    border: 1px solid var(--ab-line);
    background: var(--ab-surface);
    box-shadow: var(--ab-shadow);
    transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.ab-skroutz-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--ab-shadow-lg);
    border-color: var(--ab-line-strong);
    color: inherit;
}

.ab-skroutz-stat__icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 0.55rem;
}

.ab-skroutz-stat__icon--primary { background: rgba(13, 110, 253, 0.12); color: #0d6efd; }
.ab-skroutz-stat__icon--info { background: rgba(13, 202, 240, 0.14); color: #0aa2c0; }
.ab-skroutz-stat__icon--success { background: rgba(25, 135, 84, 0.12); color: #198754; }
.ab-skroutz-stat__icon--secondary { background: #f4f4f5; color: #71717a; }
.ab-skroutz-stat__icon--danger { background: rgba(220, 53, 69, 0.12); color: #dc3545; }

.ab-skroutz-stat__value {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ab-heading);
    line-height: 1.1;
}

.ab-skroutz-stat__label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--ab-muted);
    margin-top: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ab-skroutz-panel {
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-radius);
    background: var(--ab-surface);
    box-shadow: var(--ab-shadow);
    overflow: hidden;
}

.ab-skroutz-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--ab-line);
    background: #fafafa;
}

.ab-skroutz-panel__head h2 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ab-heading);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ab-skroutz-panel__head a {
    font-size: 0.75rem;
    font-weight: 600;
    color: #8f3838;
    text-decoration: none;
}

.ab-skroutz-panel__head a:hover {
    text-decoration: underline;
}

.ab-skroutz-panel__body {
    padding: 0.85rem 1rem;
}

.ab-skroutz-url-field {
    margin-bottom: 0.85rem;
}

.ab-skroutz-url-field:last-child {
    margin-bottom: 0;
}

.ab-skroutz-url-field__label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ab-muted);
    margin-bottom: 0.35rem;
}

.ab-skroutz-url-field__row {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--ab-line-strong);
    border-radius: var(--ab-radius-sm);
    background: #fff;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ab-skroutz-url-field__row:focus-within {
    border-color: rgba(243, 112, 33, 0.45);
    box-shadow: 0 0 0 3px rgba(243, 112, 33, 0.1);
}

.ab-skroutz-url-field__input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0.5rem 0.65rem;
    font-size: 0.75rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: #3f3f46;
}

.ab-skroutz-url-field__input:focus {
    outline: 0;
}

.ab-skroutz-url-field__btn {
    flex-shrink: 0;
    border: 0;
    border-left: 1px solid var(--ab-line);
    background: linear-gradient(180deg, #fafafa 0%, #f0f0f1 100%);
    color: #52525b;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}

.ab-skroutz-url-field__btn:hover {
    background: var(--sk-orange-soft);
    color: var(--sk-orange);
}

.ab-skroutz-url-field__btn.is-copied {
    background: #ecfdf5;
    color: #059669;
}

.ab-skroutz-status-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ab-skroutz-status-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--ab-line);
    font-size: 0.8125rem;
}

.ab-skroutz-status-list li:last-child {
    border-bottom: 0;
}

.ab-skroutz-status-list__key {
    color: #52525b;
    font-weight: 500;
}

.ab-skroutz-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ab-skroutz-pill--ok {
    background: #ecfdf5;
    color: #047857;
}

.ab-skroutz-pill--warn {
    background: #fffbeb;
    color: #b45309;
}

.ab-skroutz-pill--muted {
    background: #f4f4f5;
    color: #71717a;
}

.ab-skroutz-pill--bad {
    background: #fef2f2;
    color: #b91c1c;
}

.ab-skroutz-table .table {
    margin-bottom: 0;
    font-size: 0.8125rem;
}

.ab-skroutz-table thead th {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    color: var(--ab-muted);
    background: #fafafa;
    border-bottom-color: var(--ab-line);
    padding: 0.55rem 0.75rem;
    white-space: nowrap;
}

.ab-skroutz-table tbody td {
    padding: 0.55rem 0.75rem;
    border-color: var(--ab-line);
    vertical-align: middle;
}

.ab-skroutz-table tbody tr:hover td {
    background: #fafafa;
}

.ab-skroutz-table .ab-order-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 600;
    color: #8f3838;
    text-decoration: none;
}

.ab-skroutz-table .ab-order-code:hover {
    text-decoration: underline;
}

.ab-skroutz-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--ab-muted);
}

.ab-skroutz-empty i {
    font-size: 2rem;
    opacity: 0.35;
    display: block;
    margin-bottom: 0.5rem;
}

.ab-skroutz-form-card {
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-radius);
    background: var(--ab-surface);
    box-shadow: var(--ab-shadow);
    overflow: hidden;
}

.ab-skroutz-form-card__head {
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid var(--ab-line);
    background: #fafafa;
}

.ab-skroutz-form-card__head h2 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ab-heading);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.ab-skroutz-form-card__body {
    padding: 1rem 1.1rem 0.25rem;
}

.ab-skroutz-form-card__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.85rem 1.1rem;
    border-top: 1px solid var(--ab-line);
    background: #fafafa;
}

.ab-skroutz-section {
    margin-bottom: 1.25rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px dashed var(--ab-line);
}

.ab-skroutz-section:last-child {
    margin-bottom: 0.5rem;
    padding-bottom: 0;
    border-bottom: 0;
}

.ab-skroutz-section__title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ab-muted);
    margin-bottom: 0.85rem;
}

.ab-skroutz-section__title i {
    color: var(--sk-orange);
}

.ab-skroutz-switch-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    margin-bottom: 1rem;
    border-radius: var(--ab-radius-sm);
    border: 1px solid var(--ab-line);
    background: #fafafa;
}

.ab-skroutz-switch-row .form-check-input {
    width: 2.25rem;
    height: 1.15rem;
    margin-top: 0.15rem;
    cursor: pointer;
}

.ab-skroutz-switch-row .form-check-input:checked {
    background-color: var(--sk-orange);
    border-color: var(--sk-orange);
}

.ab-skroutz-switch-row__label {
    font-weight: 600;
    color: var(--ab-heading);
    font-size: 0.8125rem;
    margin-bottom: 0.15rem;
}

.ab-skroutz-switch-row__hint {
    font-size: 0.75rem;
    color: var(--ab-muted);
    margin: 0;
}

.ab-skroutz-side-card {
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-radius);
    background: var(--ab-surface);
    box-shadow: var(--ab-shadow);
    overflow: hidden;
    margin-bottom: 0.85rem;
}

.ab-skroutz-side-card:last-child {
    margin-bottom: 0;
}

.ab-skroutz-side-card__head {
    padding: 0.7rem 0.95rem;
    border-bottom: 1px solid var(--ab-line);
    background: #fafafa;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--ab-heading);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ab-skroutz-side-card__body {
    padding: 0.85rem 0.95rem;
    font-size: 0.8125rem;
}

.ab-skroutz-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: sk-step;
}

.ab-skroutz-steps li {
    counter-increment: sk-step;
    position: relative;
    padding-left: 2rem;
    padding-bottom: 0.85rem;
    font-size: 0.8125rem;
    color: #52525b;
    line-height: 1.45;
}

.ab-skroutz-steps li:last-child {
    padding-bottom: 0;
}

.ab-skroutz-steps li::before {
    content: counter(sk-step);
    position: absolute;
    left: 0;
    top: 0.05rem;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: var(--sk-orange-soft);
    color: var(--sk-orange);
    font-size: 0.6875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ab-skroutz-ip-box {
    margin-top: 0.65rem;
    padding: 0.55rem 0.65rem;
    border-radius: var(--ab-radius-sm);
    background: #f4f4f5;
    border: 1px solid var(--ab-line);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.6875rem;
    line-height: 1.5;
    color: #52525b;
    word-break: break-all;
}

.ab-skroutz-test-result {
    display: none;
    margin-top: 0.65rem;
    padding: 0.55rem 0.7rem;
    border-radius: var(--ab-radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
}

.ab-skroutz-test-result.is-visible {
    display: block;
}

.ab-skroutz-test-result.is-ok {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

.ab-skroutz-test-result.is-err {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

@media (max-width: 575.98px) {
    .ab-skroutz-hero {
        padding: 0.95rem;
    }

    .ab-skroutz-hero__actions {
        width: 100%;
    }

    .ab-skroutz-hero__actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .ab-skroutz-form-card__foot {
        flex-direction: column;
        align-items: stretch;
    }

    .ab-skroutz-form-card__foot .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Orders list — filtre, search, paginare */
.ab-skroutz-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.85rem;
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-radius);
    background: var(--ab-surface);
    box-shadow: var(--ab-shadow);
}

.ab-skroutz-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding-bottom: 0.15rem;
    flex: 1 1 auto;
    min-width: 0;
    scrollbar-width: thin;
}

.ab-skroutz-filters::-webkit-scrollbar {
    height: 4px;
}

.ab-skroutz-filters::-webkit-scrollbar-thumb {
    background: #d4d4d8;
    border-radius: 999px;
}

.ab-skroutz-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--ab-line-strong);
    background: #fff;
    color: #52525b;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

.ab-skroutz-filter-chip:hover {
    background: #fafafa;
    border-color: #d4d4d8;
    color: var(--ab-heading);
}

.ab-skroutz-filter-chip.is-active {
    background: var(--sk-orange-soft);
    border-color: var(--sk-orange-border);
    color: #c2410c;
    box-shadow: 0 1px 2px rgba(243, 112, 33, 0.12);
}

.ab-skroutz-filter-chip__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 700;
    background: #f4f4f5;
    color: #71717a;
}

.ab-skroutz-filter-chip.is-active .ab-skroutz-filter-chip__count {
    background: rgba(255, 255, 255, 0.85);
    color: #c2410c;
}

.ab-skroutz-search {
    display: flex;
    align-items: stretch;
    flex: 0 1 280px;
    min-width: min(100%, 220px);
    border: 1px solid var(--ab-line-strong);
    border-radius: var(--ab-radius-sm);
    background: #fff;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ab-skroutz-search:focus-within {
    border-color: rgba(243, 112, 33, 0.45);
    box-shadow: 0 0 0 3px rgba(243, 112, 33, 0.1);
}

.ab-skroutz-search__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.65rem;
    color: var(--ab-muted);
    background: #fafafa;
    border-right: 1px solid var(--ab-line);
}

.ab-skroutz-search__input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0.45rem 0.65rem;
    font-size: 0.8125rem;
}

.ab-skroutz-search__input:focus {
    outline: 0;
}

.ab-skroutz-search__btn {
    border: 0;
    border-left: 1px solid var(--ab-line);
    background: linear-gradient(180deg, #ff8a3d 0%, var(--sk-orange) 100%);
    color: #fff;
    padding: 0 0.85rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: opacity 0.12s ease;
}

.ab-skroutz-search__btn:hover {
    opacity: 0.92;
}

.ab-skroutz-orders-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-bottom: 1px solid var(--ab-line);
    background: #fafafa;
    font-size: 0.75rem;
    color: var(--ab-muted);
}

.ab-skroutz-orders-meta strong {
    color: var(--ab-heading);
    font-weight: 700;
}

.ab-skroutz-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 0.375rem;
    border: 1px solid var(--ab-line-strong);
    background: #fff;
    color: #52525b;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.ab-skroutz-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.1);
    color: var(--ab-heading);
}

.ab-skroutz-action-btn--view:hover {
    background: var(--sk-orange-soft);
    border-color: var(--sk-orange-border);
    color: var(--sk-orange);
}

.ab-skroutz-action-btn--pdf:hover {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #059669;
}

.ab-skroutz-action-group {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.ab-skroutz-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-top: 0.85rem;
    padding: 0.65rem 1rem;
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-radius);
    background: var(--ab-surface);
    box-shadow: var(--ab-shadow);
}

.ab-skroutz-pager__info {
    font-size: 0.8125rem;
    color: var(--ab-muted);
}

.ab-skroutz-pager__info strong {
    color: var(--ab-heading);
}

.ab-skroutz-pager__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ab-skroutz-pager__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    border-radius: var(--ab-radius-sm);
    border: 1px solid var(--ab-line-strong);
    background: #fff;
    color: #52525b;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.ab-skroutz-pager__link:hover {
    background: #f4f4f5;
    border-color: #d4d4d8;
    color: var(--ab-heading);
}

.ab-skroutz-pager__link.is-active {
    background: var(--sk-orange-soft);
    border-color: var(--sk-orange-border);
    color: #c2410c;
    cursor: default;
}

.ab-skroutz-pager__link.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.ab-skroutz-payment {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8125rem;
}

.ab-skroutz-payment__paid {
    color: #059669;
    font-size: 0.875rem;
}

@media (max-width: 767.98px) {
    .ab-skroutz-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .ab-skroutz-search {
        flex: 1 1 auto;
        width: 100%;
    }

    .ab-skroutz-pager {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .ab-skroutz-pager__nav {
        justify-content: center;
    }
}

/* —— Setări · Curs valutar —— */
.ab-settings-page__head {
    margin-bottom: 0.5rem;
}

.ab-settings-page__alert {
    margin-bottom: 1rem;
}

.ab-settings-tabs {
    margin-bottom: 1.25rem;
    border-bottom-color: var(--ab-line, #e8e8ec);
}

.ab-settings-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--ab-muted, #71717a);
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    padding: 0.75rem 0.25rem;
    background: transparent;
}

.ab-settings-tabs .nav-link i {
    font-size: 1.125rem;
}

.ab-settings-tabs .nav-link.active {
    color: var(--ab-heading, #18181b);
    border-bottom-color: var(--ab-primary, #7f1d1d);
}

.ab-exchange {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ab-exchange-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
        "intro intro actions"
        "fields fields actions";
    align-items: end;
    gap: 1rem 1.25rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--ab-line, #e8e8ec);
    border-radius: var(--ab-radius, 10px);
    background: var(--ab-surface, #fff);
    box-shadow: var(--ab-shadow, 0 1px 2px rgba(0, 0, 0, 0.04));
}

.ab-exchange-toolbar__intro {
    grid-area: intro;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
}

.ab-exchange-toolbar__intro p {
    font-size: 0.8125rem;
    color: var(--ab-muted, #71717a);
    line-height: 1.45;
}

.ab-exchange-toolbar__badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--ab-primary, #7f1d1d);
    background: rgba(127, 29, 29, 0.08);
    border-radius: 6px;
}

.ab-exchange-toolbar__fields {
    grid-area: fields;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.85rem 1.25rem;
}

.ab-exchange-toolbar__actions {
    grid-area: actions;
    align-self: end;
}

.ab-exchange-field {
    min-width: 7rem;
}

.ab-exchange-field .form-label {
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ab-muted, #71717a);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ab-exchange-field--switch {
    min-width: auto;
    padding-bottom: 0.15rem;
}

.ab-exchange-field--switch .form-check-input {
    width: 2.5em;
    height: 1.25em;
    margin: 0;
}

.ab-exchange-rates {
    border: 1px solid var(--ab-line, #e8e8ec);
    border-radius: var(--ab-radius, 10px);
    background: var(--ab-surface, #fff);
    box-shadow: var(--ab-shadow, 0 1px 2px rgba(0, 0, 0, 0.04));
    overflow: hidden;
}

.ab-exchange-rates__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 0.9rem 1.15rem;
    border-bottom: 1px solid var(--ab-line, #e8e8ec);
    background: #fafafa;
}

.ab-exchange-rates__title {
    margin: 0 0 0.2rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--ab-heading, #18181b);
}

.ab-exchange-rates__meta {
    font-size: 0.75rem;
    color: var(--ab-muted, #71717a);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
}

.ab-exchange-rates__meta--warn {
    color: #b45309;
}

.ab-exchange-rates__error {
    color: #dc3545;
    margin-top: 0.25rem;
}

.ab-exchange-table thead th {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ab-muted, #71717a);
    background: #fafafa;
    border-bottom: 1px solid var(--ab-line, #e8e8ec);
    padding: 0.65rem 1.15rem;
    white-space: nowrap;
}

.ab-exchange-table tbody td {
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid var(--ab-line, #e8e8ec);
    vertical-align: middle;
}

.ab-exchange-table tbody tr:last-child td {
    border-bottom: none;
}

.ab-exchange-currency {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.ab-exchange-currency__code {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--ab-heading, #18181b);
    letter-spacing: 0.02em;
}

.ab-exchange-currency__name {
    font-size: 0.75rem;
    color: var(--ab-muted, #71717a);
}

.ab-exchange-rate {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.ab-exchange-rate--base {
    color: var(--ab-heading, #18181b);
}

.ab-exchange-rate--effective {
    color: var(--ab-primary, #7f1d1d);
}

.ab-exchange-rate__unit {
    display: block;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ab-muted, #71717a);
    margin-top: 0.1rem;
}

@media (max-width: 991.98px) {
    .ab-exchange-toolbar {
        grid-template-columns: 1fr;
        grid-template-areas:
            "intro"
            "fields"
            "actions";
    }

    .ab-exchange-toolbar__actions {
        justify-self: start;
    }

    .ab-exchange-toolbar__actions .btn {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .ab-exchange-toolbar__fields {
        flex-direction: column;
        align-items: stretch;
    }

    .ab-exchange-field {
        width: 100%;
        min-width: 0;
    }

    .ab-exchange-rates__head .btn {
        width: 100%;
    }
}
