@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* CSS Variables for Premium Dark Blue and White Design System */
:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-sidebar: #0f172a;
    /* Slate 900 - Deep Navy/Dark Blue */
    --bg-sidebar-hover: #1e293b;
    /* Slate 800 */
    --text-main: #0f172a;
    /* Slate 900 */
    --text-muted: #64748b;
    /* Slate 500 */
    --text-light: #f8fafc;
    --primary: #2563eb;
    /* Blue 600 - Vivid Blue Accent */
    --primary-hover: #1d4ed8;
    --border-color: #e2e8f0;
    /* Slate 200 */
    --border-focus: #3b82f6;
    /* Blue 500 */
    --success: #10b981;
    /* Emerald 500 */
    --warning: #f59e0b;
    /* Amber 500 */
    --danger: #ef4444;
    /* Red 500 */

    --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 8px -1px rgba(0, 0, 0, 0.03), 0 0 0 1px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 10px 30px -5px rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;

    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

/* Split-Screen Layout (Sidebar + Main Content Area) */
.app-container {
    display: flex;
    width: 100vw;
    min-height: 100vh;
}

/* Sidebar navigation */
.sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: var(--transition);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
}

.sidebar-brand {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-logo {
    width: 32px;
    height: 32px;
    background-color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.sidebar-menu {
    list-style: none;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.menu-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.menu-item a:hover,
.menu-item.active a {
    color: var(--text-light);
    background-color: var(--bg-sidebar-hover);
}

.menu-item.active a {
    border-left: 3px solid var(--primary);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding-left: 13px;
}

.sidebar-user {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: capitalize;
}

.btn-logout {
    color: rgba(255, 255, 255, 0.5);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: var(--transition);
}

.btn-logout:hover {
    color: var(--danger);
    background-color: rgba(239, 68, 68, 0.1);
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100vh;
    overflow-y: auto;
}

/* Top bar with Search and Title */
.top-bar {
    background-color: var(--bg-card);
    height: 70px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    flex-shrink: 0;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.search-container {
    position: relative;
    width: 320px;
}

.search-input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

/* Content Container styling */
.content-wrapper {
    padding: 32px;
    flex-grow: 1;
}

/* Dashboard Analytics Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

/* Rounded, Shadow-Softened Cards */
.card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
}

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

/* Analytics Widget Card */
.widget-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.widget-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.widget-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.widget-val {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.widget-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.widget-icon.primary {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.widget-icon.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.widget-icon.warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.widget-icon.danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* Card-Based Grids (e.g. Products List) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.product-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.product-img-wrapper {
    height: 200px;
    width: 100%;
    background-color: #f1f5f9;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-stock {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.badge-low {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.badge-out {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.product-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.product-category {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.product-name {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-sku {
    font-size: 0.8rem;
    font-family: monospace;
    background-color: #f1f5f9;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    width: max-content;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

.price-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

.price-val {
    font-size: 0.85rem;
    font-weight: 700;
}

.product-card-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fafbfc;
}

.stock-qty {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Double-column section layouts (Stripe-style dashboard contents) */
.section-split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    margin-top: 32px;
}

/* Tables style */
.table-card {
    padding: 0;
    overflow: hidden;
}

.table-header-bar {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.table-custom {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.table-custom th {
    background-color: #fafbfc;
    padding: 14px 24px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

.table-custom td {
    padding: 16px 24px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.table-custom tr:last-child td {
    border-bottom: none;
}

.table-custom tr:hover td {
    background-color: #fafbfc;
}

/* Minimalist Forms (Progressive Disclosure / Neat Alignment) */
.form-card {
    max-width: 500px;
    margin: 40px auto;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

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

/* Helper flex utilities */
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.gap-10 {
    gap: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

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

.btn-secondary {
    background-color: white;
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: #fafbfc;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* Modals */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.5);
    /* Slate 900 semi-transparent */
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-out;
}

.modal-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 90%;
    max-width: 600px;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.2s ease-out;
}

.modal-backdrop.show .modal-container {
    transform: translateY(0);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.15rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-main);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    background-color: #fafbfc;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Installer Page Styling (Full Screen Card Layout) */
.install-container {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 10% 20%, rgb(15, 23, 42) 0%, rgb(30, 41, 59) 90.1%);
    padding: 20px;
}

.install-card {
    background-color: white;
    width: 100%;
    max-width: 550px;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.install-banner {
    background-color: var(--bg-sidebar);
    color: white;
    padding: 30px;
    text-align: center;
}

.install-banner h2 {
    font-weight: 700;
    margin-bottom: 6px;
}

.install-banner p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.install-steps {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background-color: #f1f5f9;
    border-bottom: 1px solid var(--border-color);
}

.step-indicator {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-indicator.active {
    color: var(--primary);
}

.step-number {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--text-muted);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.step-indicator.active .step-number {
    background-color: var(--primary);
}

/* Progressive Form steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

/* Alerts and badges styling */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.badge {
    padding: 4px 8px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.badge-green {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.badge-blue {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.badge-yellow {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.badge-red {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* Dashboard layout grid overrides for charts and updates */
.chart-container {
    height: 300px;
    position: relative;
    width: 100%;
}

/* ========== Stock Card Specific Styles ========== */

.stock-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    overflow: hidden;
    transition: var(--transition);
}

.stock-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.stock-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: #fafbfc;
    border-bottom: 1px solid var(--border-color);
}

.stock-card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.stock-product-name {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.stock-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: #f8fafc;
    border-radius: var(--radius-md);
    padding: 14px;
}

.stock-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stock-detail-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.stock-detail-value {
    font-size: 0.95rem;
    font-weight: 500;
}

.stock-card-footer {
    display: flex;
    gap: 8px;
    padding: 18px 24px;
    border-top: 1px solid var(--border-color);
    background: #fafbfc;
}

.stock-action-btn {
    flex: 1;
    font-size: 0.75rem;
    padding: 7px 8px;
    white-space: nowrap;
}

.stock-out-btn {
    color: var(--danger) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

.stock-out-btn:hover {
    background-color: rgba(239, 68, 68, 0.08) !important;
}

.stock-adjust-btn {
    color: var(--warning) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
}

.stock-adjust-btn:hover {
    background-color: rgba(245, 158, 11, 0.08) !important;
}

/* ========== Create Stock Entry Wizard (Modal + Full Page) ========== */
.wizard-steps {
    display: flex;
    gap: 8px;
    padding: 16px 24px;
    background-color: #fafbfc;
    border-bottom: 1px solid var(--border-color);
}

.wizard-step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 8px 10px;
    border-radius: var(--radius-md);
    background-color: #f1f5f9;
    transition: var(--transition);
}

.wizard-step.active {
    color: var(--primary);
    background-color: rgba(37, 99, 235, 0.1);
}

.wizard-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--text-muted);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.wizard-step.active .wizard-num {
    background-color: var(--primary);
}

.wizard-panel {
    padding: 24px;
}

.entry-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.entry-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-card);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.entry-type-card:hover {
    border-color: var(--primary);
    background-color: rgba(37, 99, 235, 0.05);
    transform: translateY(-2px);
}

.entry-type-card i {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.entry-type-card span {
    font-weight: 600;
    font-size: 0.95rem;
}

.entry-type-card small {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.product-search-wrap {
    position: relative;
}

.product-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
    z-index: 20;
    max-height: 260px;
    overflow-y: auto;
    display: none;
}

.product-dropdown {
    padding: 8px;
    gap: 6px;
}

.product-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    background-color: #fff;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}

.product-dropdown-item:hover {
    border-color: var(--border-color);
    background-color: rgba(37, 99, 235, 0.06);
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

.product-dropdown-item .dropdown-item-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-muted);
}

.product-dropdown-item .dropdown-item-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.product-dropdown-item .dropdown-item-body span {
    font-weight: 500;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-dropdown-item .dropdown-item-body small {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: monospace;
}

.entry-selected-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    background-color: #fafbfc;
}

.entry-selected-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.entry-selected-row .entry-prod-check {
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.entry-selected-row .entry-prod-name {
    flex: 1;
    font-size: 0.88rem;
    font-weight: 500;
}

.entry-selected-row .entry-prod-name small {
    color: var(--text-muted);
    font-family: monospace;
}

.entry-selected-row .entry-prod-qty {
    width: 90px;
    padding: 6px 10px;
    flex-shrink: 0;
}

.entry-selected-row .entry-prod-remove {
    width: 28px;
    height: 28px;
    border: none;
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
    transition: var(--transition);
}

.entry-selected-row .entry-prod-remove:hover {
    background-color: var(--danger);
    color: #fff;
}

/* Full-page wizard */
.wizard-page {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.wizard-page .wizard-steps {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.wizard-page .wizard-panel {
    max-height: 55vh;
    overflow-y: auto;
}

.wizard-action-bar {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    background-color: #fafbfc;
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    z-index: 5;
}

/* Stock Control Summary */
.entry-tabs {
    display: inline-flex;
    gap: 6px;
    margin-bottom: 20px;
    padding: 6px;
    background-color: #f1f5f9;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.entry-tab {
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    background-color: transparent;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    position: relative;
}

.entry-tab:hover {
    color: var(--primary);
    background-color: rgba(37, 99, 235, 0.06);
}

.entry-tab.active {
    color: var(--primary);
    background-color: #fff;
    border-color: var(--border-color);
    font-weight: 600;
    box-shadow: var(--shadow-soft);
}

.entry-group {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.entry-period {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.entry-period-title {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}