/* ===========================================================================
   eShop Modern Design System
   Inspired by Google / Gemini aesthetic: Calm, crisp, accessible, light theme.
   Tokens, shared layouts, components, forms, tables, cards, responsive drawer.
   =========================================================================== */

:root {
    --esh-bg: #F0F4F9;
    --esh-surface: #FFFFFF;
    --esh-primary: #0B57D0;
    --esh-primary-hover: #0842A0;
    --esh-primary-active: #042B66;
    --esh-primary-light: #D3E3FD;
    --esh-primary-light-hover: #C2D8FC;
    --esh-nav-active-text: #041E49;
    --esh-text-primary: #1F1F1F;
    --esh-text-secondary: #5F6368;
    --esh-text-muted: #747775;
    --esh-divider: #E7EAEF;
    --esh-border: #DADCE0;
    --esh-border-subtle: #E8EAED;
    --esh-hover-bg: #F8FAFD;

    /* Status colours */
    --esh-status-green: #137333;
    --esh-status-green-dot: #1E8E3E;
    --esh-status-green-bg: #E6F4EA;
    --esh-status-amber: #B06000;
    --esh-status-amber-dot: #F9AB00;
    --esh-status-amber-bg: #FEF7E0;
    --esh-status-red: #C5221F;
    --esh-status-red-dot: #D93025;
    --esh-status-red-bg: #FCE8E6;

    /* Radii */
    --esh-radius-card: 28px;
    --esh-radius-pill: 9999px;
    --esh-radius-input: 28px;
    --esh-radius-button: 24px;
    --esh-radius-md: 14px;
    --esh-radius-sm: 8px;

    /* Shadows */
    --esh-shadow-card: 0 1px 3px rgba(0, 0, 0, 0.03), 0 6px 16px rgba(0, 0, 0, 0.02);
    --esh-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.08);

    /* Dimensions */
    --esh-sidebar-width: 230px;
    --esh-header-height: 72px;

    /* Gemini brand tokens & aliases */
    --gem-blue: #4285F4;
    --gem-purple: #9B72CB;
    --gem-coral: #D96570;
    --gem-gradient: linear-gradient(90deg, #4285F4 0%, #9B72CB 45%, #D96570 100%);
    --gem-surface: var(--esh-surface);
    --gem-container: var(--esh-bg);
    --gem-container-high: #E4EAF1;
    --gem-outline: var(--esh-border);
    --gem-outline-soft: var(--esh-border-subtle);
    --gem-on-surface: var(--esh-text-primary);
    --gem-on-surface-variant: #444746;
    --gem-muted: var(--esh-text-secondary);
    --gem-primary: var(--esh-primary);
    --gem-primary-hover: var(--esh-primary-hover);
    --gem-primary-container: var(--esh-primary-light);
    --gem-green: var(--esh-status-green);
    --gem-error: var(--esh-status-red);
    --gem-error-container: var(--esh-status-red-bg);
}

/* Base resets & typography */
html,
body.esh-body {
    background-color: var(--esh-bg);
    color: var(--esh-text-primary);
    font-family: Roboto, "Google Sans", "Google Sans Text", system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* ===========================================================================
   Layout Shell: Sidebar, Main Area, Topbar, Main Card Surface
   =========================================================================== */

.esh-layout {
    display: flex;
    min-height: 100vh;
    background-color: var(--esh-bg);
    position: relative;
}

/* Sidebar */
.esh-sidebar {
    width: var(--esh-sidebar-width);
    background-color: var(--esh-bg);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 24px 16px 20px 20px;
    box-sizing: border-box;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.esh-sidebar-brand-wrapper {
    margin-bottom: 28px;
    padding-left: 8px;
}

.esh-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--esh-text-primary);
}

.esh-brand-link:hover,
.esh-brand-link:focus {
    text-decoration: none;
    color: var(--esh-text-primary);
}

.esh-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background-color: var(--esh-primary);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(11, 87, 208, 0.25);
}

.esh-brand-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--esh-text-primary);
    letter-spacing: -0.02em;
}

.esh-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.esh-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 48px;
    padding: 0 20px;
    border-radius: var(--esh-radius-pill);
    color: #444746;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.esh-nav-item:hover,
.esh-nav-item:focus {
    background-color: #E7EDF6;
    color: var(--esh-text-primary);
    text-decoration: none;
}

.esh-nav-item.active {
    background-color: var(--esh-primary-light);
    color: var(--esh-nav-active-text);
    font-weight: 600;
}

.esh-nav-icon {
    flex-shrink: 0;
    color: inherit;
}

.esh-sidebar-footer {
    margin-top: auto;
    padding-left: 12px;
    padding-bottom: 8px;
}

.esh-sidebar-caption {
    font-size: 13px;
    color: var(--esh-text-muted);
    font-weight: 400;
}

/* Main Area */
.esh-main-area {
    margin-left: var(--esh-sidebar-width);
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Topbar */
.esh-topbar {
    height: var(--esh-header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 36px;
    background-color: var(--esh-bg);
    position: sticky;
    top: 0;
    z-index: 90;
}

.esh-topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.esh-topbar-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.esh-topbar-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--esh-text-primary);
    letter-spacing: -0.01em;
}

.esh-topbar-divider {
    width: 1px;
    height: 20px;
    background-color: #DADCE0;
    display: inline-block;
}

.esh-topbar-subtitle {
    font-size: 14px;
    color: var(--esh-text-secondary);
    font-weight: 400;
}

.esh-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.esh-mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--esh-text-primary);
    padding: 6px;
    border-radius: 8px;
}

.esh-mobile-toggle:hover {
    background-color: #E7EDF6;
}

/* Main Container & Card Surface */
.esh-main-container {
    padding: 0 32px 32px 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.esh-card-surface {
    background-color: var(--esh-surface);
    border-radius: var(--esh-radius-card);
    border: 1px solid var(--esh-divider);
    box-shadow: var(--esh-shadow-card);
    padding: 32px 36px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Backdrop for mobile drawer */
.esh-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 95;
    opacity: 0;
    transition: opacity 0.25s ease;
}

/* ===========================================================================
   Reusable Buttons
   =========================================================================== */

.esh-btn-primary {
    background-color: var(--esh-primary);
    color: #FFFFFF !important;
    border: none;
    border-radius: var(--esh-radius-pill);
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
    line-height: 1.4;
    white-space: nowrap;
    flex-shrink: 0;
}

.esh-btn-primary:hover,
.esh-btn-primary:focus {
    background-color: var(--esh-primary-hover);
    box-shadow: 0 2px 6px rgba(11, 87, 208, 0.3);
}

.esh-btn-secondary {
    background-color: transparent;
    color: var(--esh-text-primary) !important;
    border: 1px solid var(--esh-border);
    border-radius: var(--esh-radius-pill);
    padding: 9px 22px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    line-height: 1.4;
    white-space: nowrap;
    flex-shrink: 0;
}

.esh-btn-secondary:hover,
.esh-btn-secondary:focus {
    background-color: var(--esh-hover-bg);
    border-color: #B0B5BD;
}

.esh-btn-outline {
    background-color: transparent;
    color: var(--esh-primary) !important;
    border: 1px solid #BFD3F8;
    border-radius: var(--esh-radius-pill);
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.4;
    white-space: nowrap;
    flex-shrink: 0;
}

.esh-btn-outline:hover,
.esh-btn-outline:focus {
    background-color: #F0F5FD;
    border-color: var(--esh-primary);
}

.esh-btn-danger {
    background-color: var(--esh-status-red);
    color: #FFFFFF !important;
    border: none;
    border-radius: var(--esh-radius-pill);
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.esh-btn-danger:hover,
.esh-btn-danger:focus {
    background-color: #A51B18;
    box-shadow: 0 2px 6px rgba(197, 34, 31, 0.3);
}

.esh-btn-header {
    padding: 8px 20px;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ===========================================================================
   Catalogue Homepage: Search Hero, Suggestion Chips, Products Table, Pager
   =========================================================================== */

.esh-search-hero {
    text-align: center;
    padding: 16px 0 28px 0;
    max-width: 680px;
    margin: 0 auto;
}

.esh-search-hero h2 {
    font-size: 38px;
    font-weight: 700;
    color: var(--esh-text-primary);
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

.esh-search-hero h2 span.accent {
    color: var(--esh-primary);
}

.esh-search-hero p {
    font-size: 15px;
    color: var(--esh-text-secondary);
    margin: 0 0 24px 0;
}

.esh-search-bar {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid var(--esh-border);
    border-radius: var(--esh-radius-pill);
    padding: 5px 6px 5px 18px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    max-width: 580px;
    margin: 0 auto 16px auto;
}

.esh-search-bar:focus-within {
    border-color: var(--esh-primary);
    box-shadow: 0 1px 8px rgba(11, 87, 208, 0.2);
}

.esh-search-bar .esh-search-icon {
    color: var(--esh-text-secondary);
    margin-right: 12px;
    flex-shrink: 0;
}

.esh-search-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: var(--esh-text-primary);
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    padding: 6px 0;
    font-family: inherit;
}

.esh-search-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--esh-primary);
    border: none;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.15s ease;
}

.esh-search-btn:hover {
    background-color: var(--esh-primary-hover);
}

.esh-chips {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.esh-chip {
    background: #FFFFFF;
    border: 1px solid var(--esh-border);
    border-radius: var(--esh-radius-pill);
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--esh-text-primary);
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.esh-chip:hover {
    background-color: var(--esh-hover-bg);
    border-color: #B0B5BD;
}

/* Products Section Header & Filter Tabs */
.esh-products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    margin-bottom: 14px;
}

.esh-products-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--esh-text-primary);
    margin: 0;
}

.esh-filter-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.esh-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--esh-radius-pill);
    font-size: 13px;
    font-weight: 500;
    color: #444746;
    text-decoration: none !important;
    background: transparent;
    border: 1px solid var(--esh-border);
    transition: all 0.15s ease;
}

.esh-filter-pill:hover {
    background-color: var(--esh-hover-bg);
    color: var(--esh-text-primary);
}

.esh-filter-pill.active {
    background-color: var(--esh-primary-light);
    border-color: var(--esh-primary-light);
    color: var(--esh-nav-active-text);
    font-weight: 600;
}

.esh-filter-badge {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.85;
}

/* Modern 4-Column Table */
.esh-table-container {
    width: 100%;
    overflow-x: auto;
}

.esh-table-modern {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.esh-table-modern thead th {
    font-size: 13px;
    font-weight: 500;
    color: var(--esh-text-secondary);
    text-align: left;
    padding: 10px 16px;
    border-bottom: 1px solid var(--esh-divider);
    letter-spacing: 0.02em;
}

.esh-table-modern thead th.esh-col-price {
    text-align: right;
    width: 110px;
}

.esh-table-modern thead th.esh-col-stock {
    width: 220px;
}

.esh-table-modern thead th.esh-col-action {
    width: 48px;
    text-align: right;
}

.esh-table-row {
    height: 80px;
    border-bottom: 1px solid var(--esh-divider);
    transition: background-color 0.15s ease;
    cursor: pointer;
}

.esh-table-row:hover {
    background-color: var(--esh-hover-bg);
}

.esh-table-modern td {
    padding: 12px 16px;
    vertical-align: middle;
}

.esh-product-cell {
    display: flex;
    align-items: center;
    gap: 16px;
}

.esh-product-thumb {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: contain;
    background-color: #F8F9FA;
    border: 1px solid var(--esh-border-subtle);
    flex-shrink: 0;
}

.esh-product-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.esh-product-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--esh-text-primary);
    text-decoration: none !important;
}

.esh-table-row:hover .esh-product-name {
    color: var(--esh-primary);
}

.esh-product-meta {
    font-size: 13px;
    color: var(--esh-text-secondary);
}

.esh-price-cell {
    font-size: 15px;
    font-weight: 600;
    color: var(--esh-text-primary);
    text-align: right;
    white-space: nowrap;
}

.esh-stock-cell-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
}

.esh-stock-units {
    font-size: 14px;
    color: var(--esh-text-primary);
    font-weight: 500;
    min-width: 60px;
}

.esh-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
}

.esh-status-badge.in-stock {
    color: var(--esh-status-green);
}

.esh-status-badge.low-stock {
    color: var(--esh-status-amber);
}

.esh-status-badge.out-of-stock {
    color: var(--esh-status-red);
}

.esh-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.esh-status-dot.in-stock {
    background-color: var(--esh-status-green-dot);
}

.esh-status-dot.low-stock {
    background-color: var(--esh-status-amber-dot);
}

.esh-status-dot.out-of-stock {
    background-color: var(--esh-status-red-dot);
}

.esh-chevron-cell {
    text-align: right;
    color: var(--esh-text-muted);
}

.esh-table-row:hover .esh-chevron-cell {
    color: var(--esh-primary);
}

/* Pagination Bar */
.esh-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    margin-top: auto;
}

.esh-pagination-info {
    font-size: 13px;
    color: var(--esh-text-secondary);
}

.esh-pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.esh-page-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--esh-border);
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444746;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.esh-page-btn:hover {
    background-color: var(--esh-hover-bg);
    border-color: #B0B5BD;
    color: var(--esh-text-primary);
}

.esh-page-btn.disabled {
    opacity: 0.35;
    pointer-events: none;
    border-color: var(--esh-divider);
}

/* ===========================================================================
   Shared Form System (Create, Edit)
   =========================================================================== */

.esh-form-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.esh-form-header {
    margin-bottom: 24px;
}

.esh-form-header-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--esh-text-primary);
    margin: 0 0 6px 0;
}

.esh-form-header-desc {
    font-size: 14px;
    color: var(--esh-text-secondary);
    margin: 0;
}

.esh-form-section {
    background: #FFFFFF;
    border: 1px solid var(--esh-divider);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
}

.esh-form-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--esh-text-primary);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.esh-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}

.esh-form-grid.full {
    grid-template-columns: 1fr;
}

.esh-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.esh-form-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--esh-text-primary);
    margin: 0;
}

.esh-form-control,
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--esh-border);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    color: var(--esh-text-primary);
    background-color: #FFFFFF;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
    height: auto;
}

.esh-form-control:focus,
.form-control:focus {
    outline: none;
    border-color: var(--esh-primary);
    box-shadow: 0 0 0 3px rgba(11, 87, 208, 0.15);
}

.esh-form-control[readonly],
.form-control[readonly] {
    background-color: #F8FAFD;
    color: var(--esh-text-muted);
    cursor: not-allowed;
}

.esh-form-help {
    font-size: 12px;
    color: var(--esh-text-secondary);
}

.esh-form-error,
.text-danger,
.field-validation-error {
    font-size: 12px;
    color: var(--esh-status-red);
    margin-top: 2px;
}

.esh-val-summary,
.validation-summary-errors {
    background-color: var(--esh-status-red-bg);
    border: 1px solid #F8C2BF;
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--esh-status-red);
    font-size: 13px;
    margin-bottom: 20px;
}

.esh-val-summary ul,
.validation-summary-errors ul {
    margin: 4px 0 0 20px;
    padding: 0;
}

.esh-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--esh-divider);
}

/* Two-column layout for Edit view */
.esh-edit-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
}

.esh-edit-image-panel {
    background: #F8FAFD;
    border: 1px solid var(--esh-divider);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.esh-edit-image {
    max-width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 16px;
}

/* ===========================================================================
   Product Details View
   =========================================================================== */

.esh-detail-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 36px;
    align-items: start;
    max-width: 980px;
    margin: 0 auto;
}

.esh-detail-image-box {
    background-color: #F8FAFD;
    border: 1px solid var(--esh-divider);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.esh-detail-image {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.esh-detail-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.esh-detail-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--esh-text-primary);
    margin: 0;
    letter-spacing: -0.01em;
}

.esh-detail-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.esh-detail-tag {
    background-color: #F0F4F9;
    color: #444746;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: var(--esh-radius-pill);
}

.esh-detail-price-box {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.esh-detail-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--esh-primary);
}

.esh-detail-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #444746;
    margin: 0;
}

.esh-detail-meta-table {
    border: 1px solid var(--esh-divider);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 6px;
}

.esh-detail-meta-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid var(--esh-divider);
    font-size: 14px;
}

.esh-detail-meta-row:last-child {
    border-bottom: none;
}

.esh-detail-meta-label {
    color: var(--esh-text-secondary);
}

.esh-detail-meta-val {
    font-weight: 600;
    color: var(--esh-text-primary);
}

.esh-detail-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* ===========================================================================
   Delete Confirmation View
   =========================================================================== */

.esh-delete-card {
    max-width: 520px;
    margin: 24px auto;
    text-align: center;
}

.esh-delete-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--esh-status-red-bg);
    color: var(--esh-status-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.esh-delete-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--esh-text-primary);
    margin: 0 0 8px 0;
}

.esh-delete-sub {
    font-size: 14px;
    color: var(--esh-text-secondary);
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.esh-delete-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #F8FAFD;
    border: 1px solid var(--esh-divider);
    border-radius: 16px;
    padding: 16px;
    text-align: left;
    margin-bottom: 24px;
}

.esh-delete-preview-thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: contain;
    background: #FFFFFF;
    border: 1px solid var(--esh-border-subtle);
    flex-shrink: 0;
}

.esh-delete-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* ===========================================================================
   Assistant Q&A Workspace (/Assistant)
   =========================================================================== */

.esh-assistant-workspace {
    max-width: 820px;
    margin: 0 auto;
    width: 100%;
}

.esh-assistant-head {
    margin-bottom: 24px;
}

.esh-assistant-greeting {
    font-size: 28px;
    font-weight: 700;
    color: var(--esh-text-primary);
    margin: 0 0 8px 0;
    letter-spacing: -0.01em;
}

.esh-assistant-subtitle {
    font-size: 15px;
    color: var(--esh-text-secondary);
    line-height: 1.6;
    margin: 0;
}

.esh-assistant-composer {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid var(--esh-border);
    border-radius: var(--esh-radius-pill);
    padding: 5px 6px 5px 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.esh-assistant-composer:focus-within {
    border-color: var(--esh-primary);
    box-shadow: 0 1px 8px rgba(11, 87, 208, 0.2);
}

.esh-assistant-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    width: 100%;
    padding: 8px 0;
    font-family: inherit;
    color: var(--esh-text-primary);
}

.esh-assistant-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--esh-primary);
    border: none;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.15s ease;
}

.esh-assistant-send:hover {
    background-color: var(--esh-primary-hover);
}

.esh-assistant-bubble {
    background-color: #F0F4F9;
    border-radius: 20px;
    padding: 18px 22px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--esh-text-primary);
    margin-bottom: 24px;
    border: 1px solid #E4EAF1;
}

.esh-assistant-bubble:empty {
    display: none;
}

.esh-assistant-results {
    width: 100%;
    margin-top: 16px;
}

.esh-gem-thinking {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gem-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

@keyframes esh-gem-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.45;
        transform: scale(0.92);
    }
}

.esh-gem-thinking .esh-gem-spark {
    animation: esh-gem-pulse 1.4s ease-in-out infinite;
}

.esh-assistant-card {
    background: #FFFFFF;
    border: 1px solid var(--esh-divider);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.esh-assistant-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--esh-shadow-hover);
}

.esh-assistant-card-picture {
    width: 100%;
    height: 150px;
    object-fit: contain;
    background-color: #F8FAFD;
    padding: 12px;
}

.esh-assistant-card-body {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.esh-assistant-card-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.esh-assistant-card-name a {
    color: var(--esh-text-primary);
    text-decoration: none !important;
}

.esh-assistant-card-name a:hover {
    color: var(--esh-primary);
}

.esh-assistant-card-meta {
    font-size: 12px;
    color: var(--esh-text-secondary);
}

.esh-assistant-card-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--esh-primary);
    margin-top: 4px;
}

.esh-assistant-card-price--discounted {
    color: var(--esh-text-muted);
    font-size: 13px;
    text-decoration: line-through;
    margin-right: 6px;
    font-weight: 400;
}

.esh-assistant-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: var(--esh-radius-pill);
    font-size: 11px;
    font-weight: 600;
    background-color: var(--esh-status-amber-bg);
    color: var(--esh-status-amber);
    margin-top: 4px;
    align-self: flex-start;
}

/* ===========================================================================
   Dashboard View (/Dashboard)
   =========================================================================== */

.esh-dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.esh-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--esh-divider);
    flex-wrap: wrap;
    gap: 12px;
}

.esh-dashboard-heading-group h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--esh-text-primary);
    margin: 0 0 4px 0;
}

.esh-dashboard-heading-group p {
    font-size: 14px;
    color: var(--esh-text-secondary);
    margin: 0;
}

.esh-dashboard-frame-card {
    background: #FFFFFF;
    border: 1px solid var(--esh-divider);
    border-radius: 18px;
    overflow: hidden;
    min-height: 800px;
    position: relative;
}

.esh-dashboard-frame {
    width: 100%;
    height: 900px;
    border: 0;
    display: block;
}

.esh-dashboard-fallback {
    padding: 48px 24px;
    text-align: center;
    background: #F8FAFD;
    border-radius: 18px;
    border: 1px dashed var(--esh-border);
    color: var(--esh-text-secondary);
    margin: 20px 0;
}

/* ===========================================================================
   Bulk Update Planner (/CatalogOps)
   =========================================================================== */

.esh-planner-container {
    max-width: 880px;
    margin: 0 auto;
    width: 100%;
}

.esh-planner-head {
    margin-bottom: 24px;
}

.esh-planner-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--esh-text-primary);
    margin: 0 0 8px 0;
}

.esh-planner-desc {
    font-size: 15px;
    color: var(--esh-text-secondary);
    line-height: 1.6;
    margin: 0;
}

.esh-diff-card {
    background: #FFFFFF;
    border: 1px solid var(--esh-divider);
    border-radius: 18px;
    overflow: hidden;
    margin-top: 24px;
    padding: 20px;
}

.esh-diff-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--esh-text-primary);
    margin: 0 0 16px 0;
}

/* ===========================================================================
   Error State View (/Catalog/Error)
   =========================================================================== */

.esh-error-card {
    max-width: 480px;
    margin: 40px auto;
    text-align: center;
    padding: 24px 0;
}

.esh-error-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--esh-status-red-bg);
    color: var(--esh-status-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.esh-error-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--esh-text-primary);
    margin: 0 0 8px 0;
}

.esh-error-desc {
    font-size: 15px;
    color: var(--esh-text-secondary);
    line-height: 1.6;
    margin: 0 0 24px 0;
}

/* ===========================================================================
   Catalogue-operations chat + approval card (Views/CatalogOps/Chat.cshtml)
   Preserved and adapted from Gemini UI
   =========================================================================== */

.esh-gem {
    --gem-blue: #4285F4;
    --gem-purple: #9B72CB;
    --gem-coral: #D96570;
    --gem-gradient: linear-gradient(90deg, #4285F4 0%, #9B72CB 45%, #D96570 100%);
    --gem-surface: #FFFFFF;
    --gem-container: #F0F4F9;
    --gem-container-high: #E4EAF1;
    --gem-outline: #DADCE0;
    --gem-outline-soft: #E8EAED;
    --gem-on-surface: #1F1F1F;
    --gem-on-surface-variant: #444746;
    --gem-muted: #5F6368;
    --gem-primary: #0B57D0;
    --gem-primary-hover: #0842A0;
    --gem-primary-container: #D3E3FD;
    --gem-green: #188038;
    --gem-error: #B3261E;
    --gem-error-container: #FCEEEE;

    max-width: 56rem;
    margin: 0 auto;
    padding: 0.5rem 0 0;
    font-family: inherit;
    color: var(--gem-on-surface);
}

.esh-gem-head {
    margin-bottom: 1.5rem;
}

.esh-gem-greeting {
    font-size: 2.25rem;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0 0 0.5rem;
    color: var(--gem-on-surface);
}

.esh-gem-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--gem-on-surface-variant);
    max-width: 44rem;
    margin: 0;
}

.esh-gem-spark {
    display: inline-block;
    vertical-align: middle;
    flex: none;
}

.esh-gem-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
    padding: 0.3rem 0.85rem 0.3rem 0.6rem;
    border: 1px solid var(--gem-outline);
    border-radius: 999px;
    background-color: var(--gem-surface);
    font-size: 0.8rem;
    color: var(--gem-on-surface-variant);
}

.esh-gem-badge-model {
    padding-left: 0.5rem;
    margin-left: 0.1rem;
    border-left: 1px solid var(--gem-outline-soft);
    color: var(--gem-muted);
    font-size: 0.75rem;
}

.esh-gem-disabled {
    padding: 1.25rem;
    border-radius: 16px;
    background-color: var(--gem-container);
    color: var(--gem-on-surface-variant);
}

.esh-chat-log {
    padding: 0.5rem 0 1rem;
    min-height: 12rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.esh-chat-turn {
    display: flex;
    gap: 1rem;
    max-width: 100%;
    scroll-margin-bottom: 10rem;
}

.esh-chat-turn--user {
    align-self: flex-end;
    max-width: 80%;
}

.esh-chat-turn--agent {
    align-self: stretch;
    width: 100%;
}

.esh-chat-avatar {
    flex: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.1rem;
}

.esh-chat-content {
    min-width: 0;
    flex: 1 1 auto;
}

.esh-chat-author {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gem-on-surface-variant);
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
}

.esh-chat-intent {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    vertical-align: middle;
}

.esh-chat-intent--query {
    background-color: #E8F0FE;
    color: #1A73E8;
    border: 1px solid #D2E3FC;
}

.esh-chat-intent--update {
    background-color: #FEF7E0;
    color: #B06000;
    border: 1px solid #FEEFC3;
}

.esh-chat-turn--user .esh-chat-author {
    display: none;
}

.esh-chat-bubble {
    padding: 0.85rem 1.15rem;
    font-size: 0.95rem;
    line-height: 1.6;
    border-radius: 18px;
    color: var(--gem-on-surface);
    background-color: var(--gem-container);
    display: inline-block;
    max-width: 100%;
    overflow-wrap: break-word;
}

.esh-chat-turn--user .esh-chat-bubble {
    background-color: var(--gem-container-high);
    border-bottom-right-radius: 4px;
}

.esh-chat-turn--agent .esh-chat-bubble {
    background: transparent;
    padding: 0;
    font-size: 1rem;
}

.esh-chat-composer {
    display: flex;
    align-items: center;
    background: var(--gem-surface);
    border: 1px solid var(--gem-outline);
    border-radius: 999px;
    padding: 4px 6px 4px 18px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.esh-chat-composer:focus-within {
    border-color: var(--gem-primary);
    box-shadow: 0 1px 8px rgba(11, 87, 208, 0.2);
}

.esh-chat-composer input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
    width: 100%;
    padding: 8px 0;
    font-family: inherit;
    color: var(--gem-on-surface);
}

.esh-chat-send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--gem-primary);
    border: none;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.15s ease;
}

.esh-chat-send:hover {
    background-color: var(--gem-primary-hover);
}

.esh-chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.esh-chat-suggestion {
    background: var(--gem-surface);
    border: 1px solid var(--gem-outline);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.8rem;
    color: var(--gem-on-surface-variant);
    cursor: pointer;
    transition: all 0.15s ease;
}

.esh-chat-suggestion:hover {
    background: var(--gem-container);
    border-color: var(--gem-outline-soft);
    color: var(--gem-on-surface);
}

/* ===========================================================================
   Catalogue Ops / Chat Results Table (Google / Gemini Design)
   Answers comparison / search queries with clean, accessible tabular data.
   =========================================================================== */

.esh-chat-results {
    margin-top: 1.15rem;
    border: 1px solid var(--gem-outline-soft);
    border-radius: 18px;
    background-color: var(--gem-surface);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(32, 33, 36, 0.06), 0 4px 12px rgba(32, 33, 36, 0.03);
}

.esh-chat-results-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.25rem;
    background-color: var(--gem-container);
    border-bottom: 1px solid var(--gem-outline-soft);
}

.esh-chat-results-head .esh-gem-spark {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.esh-chat-results-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gem-on-surface);
}

.esh-chat-results-source {
    font-size: 0.75rem;
    color: var(--gem-muted);
}

.esh-chat-results-source::before {
    content: "·";
    margin-right: 0.4rem;
    font-weight: bold;
}

.esh-chat-results-scroll {
    overflow-x: auto;
    width: 100%;
}

.esh-chat-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 0.875rem;
    font-family: inherit;
}

.esh-chat-table th {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--gem-outline-soft);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gem-muted);
    text-align: center !important;
    white-space: nowrap;
    background-color: #F8FAFD;
}

.esh-chat-table td {
    padding: 0.8rem 1.25rem;
    border-bottom: 1px solid #F1F3F4;
    vertical-align: middle;
    color: var(--gem-on-surface);
}

.esh-chat-table td:first-child {
    text-align: left;
}

.esh-chat-table tbody tr:last-child td {
    border-bottom: none;
}

.esh-chat-table tbody tr:hover td {
    background-color: #F8FAFD;
}

.esh-chat-table-product {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.85rem;
    min-width: 14rem;
    text-align: left;
}

.esh-chat-table-thumb {
    flex: none;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 10px;
    object-fit: contain;
    background-color: #F8F9FA;
    border: 1px solid var(--gem-outline-soft);
}

.esh-chat-table-naming {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    line-height: 1.35;
    text-align: left;
}

.esh-chat-table-name {
    font-weight: 600;
    color: var(--gem-on-surface);
    text-decoration: none;
    transition: color 0.15s ease;
    text-align: left;
}

.esh-chat-table-name:hover {
    color: var(--gem-primary);
    text-decoration: underline;
}

.esh-chat-table-id {
    font-size: 0.72rem;
    font-family: "Roboto Mono", monospace, Consolas, sans-serif;
    color: #5F6368;
    background: #F1F3F4;
    padding: 1px 6px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
    border: 1px solid #E8EAED;
}

.esh-chat-table-meta {
    color: var(--gem-on-surface-variant);
    font-size: 0.825rem;
    white-space: nowrap;
    text-align: center;
}

.esh-chat-table-num,
td.esh-chat-table-num {
    text-align: center !important;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.esh-chat-table-price-was {
    margin-right: 0.45rem;
    font-size: 0.8rem;
    color: var(--gem-muted);
    text-decoration: line-through;
}

.esh-chat-table-price-now {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gem-on-surface);
}

.esh-chat-table-stock {
    display: flex;
    align-items: center;
    justify-content: center !important;
    gap: 0.5rem;
}

.esh-chat-table-stock-value {
    font-weight: 600;
    font-size: 0.85rem;
}

.esh-chat-table-stock-value--low {
    color: var(--gem-error);
}

.esh-chat-table-chip {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    background-color: var(--gem-container);
    color: var(--gem-on-surface-variant);
    border: 1px solid var(--gem-outline-soft);
}

.esh-chat-table-chip--low {
    background-color: var(--gem-error-container);
    color: var(--gem-error);
    border-color: #FAD2CF;
}

.esh-chat-table-chip--reorder {
    background-color: var(--gem-primary-container);
    color: var(--gem-primary);
    border-color: #BFD3F8;
}

/* ===========================================================================
   Approval Card & Update Proposal Diff Table (Material 3 / Google style)
   =========================================================================== */

.esh-approval-card {
    margin-top: 1.25rem;
    border: 1px solid var(--gem-outline-soft);
    border-radius: 20px;
    background-color: var(--gem-surface);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(32, 33, 36, 0.08), 0 4px 16px rgba(32, 33, 36, 0.04);
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.esh-approval-card[data-state="approved"] {
    border-color: #A8DAB5;
}

.esh-approval-card[data-state="declined"] {
    border-color: var(--gem-outline);
    opacity: 0.8;
}

.esh-approval-card[data-state="failed"] {
    border-color: #F3C9C6;
}

.esh-approval-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.35rem 0.6rem;
}

.esh-approval-card-title {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--gem-on-surface);
    letter-spacing: -0.01em;
}

.esh-approval-card-badge {
    flex: none;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #B06000;
    background-color: #FEF7E0;
    border: 1px solid #FEEFC3;
}

.esh-approval-card[data-state="approved"] .esh-approval-card-badge {
    color: #137333;
    background-color: #E6F4EA;
    border-color: #CEEAD6;
}

.esh-approval-card[data-state="declined"] .esh-approval-card-badge {
    color: #5F6368;
    background-color: #F1F3F4;
    border-color: #DADCE0;
}

.esh-approval-card[data-state="failed"] .esh-approval-card-badge {
    color: #C5221F;
    background-color: #FCE8E6;
    border-color: #FAD2CF;
}

.esh-approval-card-meta {
    padding: 0 1.35rem 0.95rem;
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--gem-muted);
}

.esh-approval-card-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 0.875rem;
    border-top: 1px solid var(--gem-outline-soft);
}

.esh-approval-card-table th,
.esh-table-modern.esh-approval-card-table th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gem-muted);
    font-weight: 600;
    padding: 0.75rem 1.35rem;
    border-bottom: 1px solid var(--gem-outline-soft);
    background-color: #F8FAFD;
    text-align: center !important;
}

.esh-approval-card-table td {
    padding: 0.8rem 1.35rem;
    border-bottom: 1px solid #F1F3F4;
    vertical-align: middle;
    color: var(--gem-on-surface);
    text-align: center;
}

.esh-approval-card-table td:first-child {
    text-align: left !important;
}

.esh-chat-table-status {
    text-align: center !important;
}

.esh-approval-card-table tbody tr:last-child td {
    border-bottom: none;
}

.esh-approval-card-table tbody tr:hover td {
    background-color: #F8FAFD;
}

.esh-approval-row--skipped td {
    color: #80868B;
    background-color: #FAFBFD;
}

.esh-approval-old {
    color: var(--gem-muted);
    text-decoration: line-through;
    font-size: 0.85rem;
}

.esh-approval-arrow {
    color: #80868B;
    padding: 0 0.5rem;
    font-weight: 600;
}

.esh-approval-new {
    font-weight: 600;
    color: #137333;
    background: #E6F4EA;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    border: 1px solid #CEEAD6;
}

.esh-approval-skip-reason {
    display: inline-block;
    font-size: 0.75rem;
    color: #80868B;
    margin-left: 0.5rem;
    background: #F1F3F4;
    padding: 2px 6px;
    border-radius: 4px;
}

.esh-approval-card-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    padding: 1rem 1.35rem;
    border-top: 1px solid var(--gem-outline-soft);
    background-color: #FBFBFC;
}

.esh-approval-card-note {
    font-size: 0.8rem;
    color: var(--gem-muted);
}

.esh-approval-card-provenance {
    padding: 0.75rem 1.35rem;
    border-top: 1px solid var(--gem-outline-soft);
    font-size: 0.72rem;
    line-height: 1.6;
    color: #80868B;
    background-color: #FAFAFA;
}

/* Material buttons inside approval card */
.esh-gem-btn {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.55rem 1.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.esh-gem-btn--filled {
    background-color: var(--gem-primary);
    color: #FFFFFF;
}

.esh-gem-btn--filled:hover:not(:disabled) {
    background-color: var(--gem-primary-hover);
    box-shadow: 0 2px 6px rgba(11, 87, 208, 0.3);
}

.esh-gem-btn--outlined {
    background-color: transparent;
    border-color: var(--gem-outline);
    color: var(--gem-on-surface);
}

.esh-gem-btn--outlined:hover:not(:disabled) {
    background-color: #F1F3F4;
    border-color: #B0B5BD;
}

.esh-gem-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===========================================================================
   Job Strip & Live Status Automation (CatalogOps)
   =========================================================================== */

.esh-job,
.esh-approval-card-job {
    padding: 1rem 1.35rem;
    border-top: 1px solid var(--gem-outline-soft);
    background-color: var(--gem-container);
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--gem-on-surface-variant);
}

.esh-job {
    border: 1px solid var(--gem-outline-soft);
    border-radius: 14px;
}

.esh-job-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.esh-job-dot {
    flex: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--gem-primary);
}

[data-job-state="running"] .esh-job-dot,
[data-job-state="starting"] .esh-job-dot,
[data-job-state="queued"] .esh-job-dot {
    animation: esh-pulse 1.5s ease-in-out infinite;
    background-color: #1A73E8;
}

[data-job-state="succeeded"] .esh-job-dot {
    background-color: #137333;
}

[data-job-state="failed"] .esh-job-dot {
    background-color: #C5221F;
}

[data-job-state="declined"] .esh-job-dot {
    background-color: #80868B;
}

@keyframes esh-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.6;
    }
}

.esh-job-label {
    font-weight: 600;
    color: var(--gem-on-surface);
    font-size: 0.9rem;
}

.esh-job-id {
    margin-left: auto;
    font-family: "Roboto Mono", monospace, Consolas, sans-serif;
    font-size: 0.75rem;
    color: var(--gem-muted);
    background-color: var(--gem-surface);
    border: 1px solid var(--gem-outline-soft);
    border-radius: 6px;
    padding: 2px 8px;
}

.esh-job-message {
    margin-top: 0.6rem;
    font-size: 0.85rem;
    color: var(--gem-on-surface-variant);
}

.esh-job-message--error {
    color: var(--gem-error);
    font-weight: 500;
}

.esh-job-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--gem-outline-soft);
    flex-wrap: wrap;
}

.esh-job-stat {
    display: flex;
    flex-direction: column;
}

.esh-job-stat-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gem-on-surface);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.esh-job-stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gem-muted);
    font-weight: 600;
}

/* Status Badges for Tables */
.esh-table-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.esh-table-badge--success {
    background-color: #E6F4EA;
    color: #137333;
    border: 1px solid #CEEAD6;
}

.esh-table-badge--skipped {
    background-color: #F1F3F4;
    color: #5F6368;
    border: 1px solid #DADCE0;
}

.esh-table-badge--pending {
    background-color: #FEF7E0;
    color: #B06000;
    border: 1px solid #FEEFC3;
}

.esh-table-badge--error {
    background-color: #FCE8E6;
    color: #C5221F;
    border: 1px solid #FAD2CF;
}

/* ===========================================================================
   Responsive Breakpoints (< 900px, < 600px)
   =========================================================================== */

@media (max-width: 900px) {
    .esh-sidebar {
        transform: translateX(-100%);
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
    }

    .esh-sidebar.open {
        transform: translateX(0);
    }

    .esh-backdrop.open {
        display: block;
        opacity: 1;
    }

    .esh-main-area {
        margin-left: 0;
    }

    .esh-mobile-toggle {
        display: inline-flex;
    }

    .esh-topbar {
        padding: 0 20px;
    }

    .esh-main-container {
        padding: 0 16px 20px 16px;
    }

    .esh-card-surface {
        border-radius: 20px;
        padding: 24px 20px;
    }

    .esh-detail-layout {
        grid-template-columns: 1fr;
    }

    .esh-edit-layout {
        grid-template-columns: 1fr;
    }

    .esh-search-hero h2 {
        font-size: 28px;
    }

    .esh-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .esh-stock-cell-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .esh-products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .esh-pagination {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    /* Drop auxiliary Brand/Type columns on phone screens */
    .esh-chat-table th:nth-child(2),
    .esh-chat-table th:nth-child(3),
    .esh-chat-table td:nth-child(2),
    .esh-chat-table td:nth-child(3) {
        display: none;
    }

    .esh-chat-table th,
    .esh-chat-table td {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .esh-approval-card-table th,
    .esh-approval-card-table td {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }
}