/* =====================================================
 * 07-views-settings.css — Settings, Products, Stats, Lock Screen
 * ===================================================== */

.products-grid {
    display: grid !important; 
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 12px !important; 
    margin-top: 1rem; 
    width: 100%;
}
.product-card { 
    background: white; 
    overflow: hidden; 
    border: 1px solid var(--border); 
    transition: all 0.2s; 
    display: flex !important; 
    flex-direction: column !important; 
    box-shadow: var(--shadow-sm); 
    position: relative;
    width: 100% !important;
    min-width: 0 !important;
}
.product-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }

.u-settings-internal-btn { display: none !important; }

.pos-item-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.product-card:hover .pos-item-img { transform: scale(1.05); }

.pos-item-info { 
    padding: 10px; 
    text-align: center; 
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-footer { 
    display: flex; 
    justify-content: center; 
    gap: 10px; 
    padding: 8px; 
    background: #fbfbfc; 
    border-top: 1px solid #f1f3f5;
    flex-shrink: 0;
}
.product-btn { width: 30px; height: 30px; border-radius: 0; border: 1px solid var(--border); background: white; color: var(--text-dark); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0.8rem; transition: all 0.2s; }
.product-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.product-btn.delete:hover { background: #ef4444; border-color: #ef4444; }
.product-preview-box { width: 140px; height: 140px; border: 2px dashed var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; background: #fcfcfd; overflow: hidden; }
.product-preview-icon { font-size: 2.5rem; color: var(--text-muted); }

/* ── Settings View ── */
.settings-view-container  { background: transparent; }
.settings-header-tabs     { padding: 0; margin-bottom: var(--margin-main); background: transparent; }
.settings-tabs-flex       { justify-content: flex-start; gap: 12px; flex-wrap: wrap; }
.settings-content-wrapper { padding: 0; }
.settings-form-container  { background: white; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.settings-form-header     { padding: var(--margin-main); border-bottom: 1px solid #f1f5f9; display: flex; justify-content: space-between; align-items: center; }
.settings-form-footer     { padding: 20px; background: #f8fafc; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; }
.settings-table-card      { background: white; border: 1px solid var(--border); }
.settings-title-sm        { font-size: 1rem !important; font-weight: 800 !important; }

/* Settings Row List */
.settings-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: var(--margin-main); border-bottom: 1px solid var(--border); transition: all 0.2s ease;
    width: 100%;
}
.settings-row:hover { background: #fbfaff; }
.settings-row:last-of-type { border-bottom: none; }
.settings-info { display: flex; align-items: center; gap: 20px; flex: 1; min-width: 0; }
.settings-icon { width: var(--btn-height); height: var(--btn-height); background: #f1f0fa; color: var(--primary); border-radius: 0; display: flex; justify-content: center; align-items: center; font-size: 1.1rem; transition: all 0.3s; flex-shrink: 0; }
.settings-row:hover .settings-icon { background: var(--primary); color: white; transform: scale(1.05); }
.settings-name  { font-weight: 800; color: var(--text-dark); font-size: 1.15rem; margin-bottom: 3px; }
.settings-desc  { font-size: 0.9rem; color: var(--text-muted); }
.settings-input { width: 160px; height: var(--btn-height); padding: 0 15px; border: 2px solid var(--border); border-radius: var(--radius-sm); text-align: center; font-weight: 800; color: var(--primary); font-size: 1.1rem; background: white; transition: all 0.3s cubic-bezier(0.4,0,0.2,1); }
.settings-input:focus { width: 180px; border-color: var(--primary); background: #f5f4fb; outline: none; box-shadow: 0 0 0 4px rgba(142,113,240,0.1); }

/* Settings Tabs */
.settings-tabs-header { flex-shrink: 0; position: sticky; top: 0; z-index: 10; }
.settings-tab-btn     { padding: 15px 5px; background: none; border: none; border-bottom: 3px solid transparent; font-weight: 800; font-size: 0.95rem; color: var(--text-muted); cursor: pointer; transition: all 0.3s; }
.settings-tab-btn:hover  { color: var(--primary); }
.settings-tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.settings-tab-pane       { display: none; animation: fadeIn 0.3s ease; }
.settings-tab-pane.active { display: block; }

/* Statuses Grid */
.statuses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spacing-card); }
.status-card { background: white; padding: 20px; border: 1px solid var(--border); box-shadow: none; display: flex; flex-direction: column; transition: all 0.2s; }
.status-card:hover { border-color: var(--primary); background: #fcfbff; }

/* Areas */
.areas-cities-group    { border-top: 1px solid var(--border); padding-top: 20px; margin-top: 10px; }
.areas-cities-label    { display: flex; justify-content: space-between; align-items: center; }
.areas-cities-list-box { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; max-height: 180px; overflow-y: auto; padding-right: 5px; }

/* ── Dashboard / Statistics ── */
.stats-kpi-grid { display: flex; gap: var(--spacing-card); margin-top: 10px; }
.stats-kpi-card { padding: var(--spacing-card); flex: 1; display: flex; flex-direction: column; justify-content: center; }
.stats-kpi-label { font-size: 0.9rem; margin-bottom: 8px; font-weight: 700; color: var(--text-muted); }
.stats-kpi-value { font-size: 1.8rem; font-weight: 900; font-family: 'RTA', sans-serif; }
.stats-kpi-value.primary { color: var(--primary); }
.stats-kpi-value.purple  { color: #7048e8; }
.stats-kpi-value.orange  { color: #f59e0b; }
.stats-charts-grid    { display: grid; gap: var(--spacing-card); margin-top: var(--spacing-card); }
.stats-grid-2-1 { grid-template-columns: 2fr 1fr; }
.stats-grid-1-1 { grid-template-columns: 1fr 1fr; }
.stats-chart-card   { padding: var(--spacing-card); }
.stats-chart-title  { margin-bottom: 20px; font-size: 0.95rem; font-weight: 800; }
.stats-chart-box-h190 { height: 190px; width: 100%; overflow: hidden; position: relative; }
.stats-chart-box-h160 { height: 160px; width: 100%; overflow: hidden; position: relative; }
.stats-chart-flex-center { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

/* ── Lock Screen ── */
.global-lock-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #fdfdff; z-index: 9999; display: flex; justify-content: center; align-items: center;
}
.lock-card {
    background: white; padding: 60px 40px; border-radius: 0;
    box-shadow: 0 20px 60px rgba(142,113,240,0.05); width: 100%; max-width: 440px;
    text-align: center; border: 1px solid rgba(142,113,240,0.05);
}
.lock-card-main   { max-width: 380px; padding: 40px; background: transparent; box-shadow: none; border: none; }
.lock-logo-container { margin-bottom: 30px; }
.lock-logo-img    { width: 70px; }
.lock-input-passcode {
    width: 100%; height: var(--btn-height); border: 2px solid #e2e8f0; background: #ffffff;
    border-radius: 0; text-align: center; font-size: 1.15rem; letter-spacing: 10px;
    color: var(--primary); box-sizing: border-box; transition: all 0.3s; font-family: 'RTA', sans-serif;
}
.passcode-wrapper input::placeholder { color: #cbd5e1; letter-spacing: 4px; }
.passcode-wrapper input:focus { background: #ffffff; outline: none; box-shadow: 0 0 0 4px rgba(142,113,240,0.05); }
.lock-submit-btn {
    width: 100%; margin-top: 20px; height: var(--btn-height); background: var(--primary); color: white;
    border: none; border-radius: 0; font-weight: 900; font-size: 1.1rem; cursor: pointer;
    box-shadow: none; display: flex; align-items: center; justify-content: center; gap: 10px; transition: transform 0.2s;
}
