/* ==========================================================================
   SHINATO POS DEMO - RENK VE YAZI TİPİ ANAYASASI
   Sarı olan her yer Mor (#500062 / #7b1fa2), Yazılar Kırık Beyaz (#F2F0EB)
   ========================================================================== */
:root {
    --bg-dark: #202020;
    --product-bg: #272727;
    --product-dim: #181818;
    --menu-active: #383838;
    --menu-border: #7a7a7a;
    --purple-sidebar: #500062;
    --purple-border: #7b1fa2;
    --purple-bright: #9c27b0;
    --purple-hover: #6a1b9a;
    --off-white: #F2F0EB;
    --grey: #464646;
    --line-grey: #5a5a5a;
    --cat-line: #969696;
    .cat-line { flex: 1; height: 2px; background-color: #969696; }
    .cat-title-box { border: 2px solid #969696; border-radius: 2px; padding: 1px 20px; font-size: 13px; font-weight: 700; color: #b0b0b0; background-color: var(--bg-dark); }
    --red: #e51c23;
    --red-hover: #b7151b;
    --blue: #00a2e8;
    --green: #22b14c;
    --maroon: #880015;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

body, html {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: var(--bg-dark);
    font-family: var(--font-main);
    color: var(--off-white);
}

.pos-app-shell {
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-columns: 260px 1fr;
}

/* ================= SOL SIDEBAR ================= */
.pos-sidebar {
    width: 260px;
    height: 100vh;
    background-color: var(--purple-sidebar);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px 18px 18px 18px;
    border-right: 2px solid var(--purple-border);
}

.sidebar-top {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.demo-header-title {
    width: 224px;
    height: 58px;
    background-color: var(--bg-dark);
    color: var(--off-white);
    border: 2px solid var(--off-white);
    border-radius: 14px;
    font-family: 'MuseoModerno', sans-serif;
    font-size: 31px;
    font-weight: 600;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-timer-box {
    width: 224px;
    height: 42px;
    border-radius: 16px;
    background-color: var(--bg-dark);
    border: 2px solid var(--off-white);
    color: var(--off-white);
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-btn {
    width: 224px;
    height: 46px;
    border-radius: 16px;
    background-color: var(--bg-dark);
    color: var(--off-white);
    border: 2px solid transparent;
    font-family: var(--font-main);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background-color 0.15s, border-color 0.15s;
}

.sidebar-btn:hover { background-color: #333333; }

.help-btn {
    height: 42px;
    background-color: var(--bg-dark);
    border: 2px solid var(--menu-border);
    color: var(--off-white);
}

.sidebar-mid-menus {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: auto 0;
}

.menu-btn.active {
    background-color: var(--menu-active);
    border-color: var(--menu-border);
}

.sidebar-bottom {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Müşteri Ekranı Butonu: Normalde çerçevesiz, SADECE AÇILINCA beyaz çerçeveli */
.customer-screen-btn {
    background-color: var(--bg-dark);
    border: 2px solid transparent;
    color: var(--off-white);
}

.customer-screen-btn.active-cust {
    background-color: var(--menu-active);
    border-color: var(--off-white);
}

/* ================= SAĞ İÇERİK ALANI ================= */
.pos-content-area {
    width: 100%;
    height: 100vh;
    background-color: var(--bg-dark);
    overflow: hidden;
}

.screen-view { display: none; width: 100%; height: 100%; }
.screen-view.active { display: block; }

/* ==========================================================================
   1. KASA EKRANI
   ========================================================================== */
.pos-view-grid { width: 100%; height: 100%; display: grid; grid-template-columns: 1fr 3px 311px; }
.catalog-container { padding: 4px 4px 4px 8px; display: grid; grid-template-rows: repeat(4, 1fr); gap: 2px; height: 100vh; overflow: hidden; }
.cat-section { display: flex; flex-direction: column; overflow: hidden; position: relative; }
.cat-header-frame { height: 25px; display: flex; align-items: center; margin-bottom: 2px; flex-shrink: 0; }
.cat-line { flex: 1; height: 2px; background-color: var(--cat-line); }
.cat-title-box { border: 2px solid var(--cat-line); border-radius: 2px; padding: 1px 20px; font-size: 13px; font-weight: 700; color: var(--cat-line); background-color: var(--bg-dark); }

.cat-products-strip {
    flex: 1; display: grid; grid-template-rows: repeat(2, 1fr); grid-auto-flow: column;
    grid-auto-columns: calc((100% - 36px) / 7); gap: 6px; overflow-x: auto; overflow-y: hidden;
    padding: 2px 4px; cursor: grab; scrollbar-width: none;
}
.cat-products-strip::-webkit-scrollbar { height: 0px; }
.cat-products-strip.scrolling-active { scrollbar-width: thin; scrollbar-color: var(--cat-line) var(--bg-dark); }
.cat-products-strip.scrolling-active::-webkit-scrollbar { height: 8px; }
.cat-products-strip.scrolling-active::-webkit-scrollbar-track { background: var(--bg-dark); }
.cat-products-strip.scrolling-active::-webkit-scrollbar-thumb { background: var(--cat-line); border-radius: 4px; }

.pos-product-card {
    background-color: var(--product-bg); border: 2px solid var(--purple-border); border-radius: 12px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 4px 6px; cursor: pointer; text-align: center; transition: background-color 0.08s;
}
.pos-product-card.pressed { background-color: var(--product-dim); border-color: var(--cat-line); }
.pos-product-card.inactive { border-color: var(--cat-line); color: var(--cat-line); cursor: default; }
.prod-card-name { font-size: 13px; font-weight: 700; color: var(--off-white); line-height: 1.15; margin-bottom: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; pointer-events: none; }
.prod-card-price { font-size: 13px; font-weight: 700; color: var(--off-white); pointer-events: none; }
.pos-product-card.inactive .prod-card-name, .pos-product-card.inactive .prod-card-price { color: var(--cat-line); }

.pos-vertical-separator { width: 3px; height: 100vh; background-color: var(--purple-border); }
.receipt-container { width: 311px; height: 100vh; padding: 8px; display: flex; flex-direction: column; gap: 6px; background-color: var(--bg-dark); }
.receipt-top-header { height: 36px; display: flex; align-items: center; justify-content: space-between; }
.receipt-title { font-size: 17px; font-weight: 700; color: var(--off-white); padding-left: 4px; }
.win-ctrl-frame { display: flex; gap: 4px; }

.ctrl-sq-btn { width: 36px; height: 32px; background-color: var(--bg-dark); border: 2px solid var(--purple-border); color: var(--off-white); font-size: 15px; font-weight: 700; cursor: pointer; }
.ctrl-sq-btn:hover { background-color: var(--grey); }
.ctrl-sq-btn.staff-active { background-color: var(--purple-sidebar); border-color: var(--off-white); color: var(--off-white); }
.ctrl-sq-btn.staff-disabled { border-color: var(--grey); color: var(--grey); cursor: not-allowed; }
.ctrl-sq-btn.close-sq:hover { background-color: var(--red); }

.receipt-outer { flex: 1; border: 2px solid var(--grey); border-radius: 2px; display: flex; flex-direction: column; overflow: hidden; }
.fixed-cols-header { height: 32px; display: flex; align-items: center; padding: 0 10px; font-size: 14px; font-weight: 700; color: var(--off-white); }
.col-qty { width: 42px; text-align: left; }
.col-name { flex: 1; text-align: left; }
.col-price { width: 65px; text-align: right; }
.header-sep { height: 2px; background-color: var(--grey); margin: 0 4px; }
.receipt-scroll-area { flex: 1; overflow-y: auto; padding: 4px; }
.receipt-row { display: flex; align-items: center; padding: 7px 6px; border: 2px solid transparent; border-radius: 4px; cursor: pointer; font-size: 15px; font-weight: 700; color: var(--off-white); }
.receipt-row.selected { border-color: var(--purple-bright); background-color: rgba(123, 31, 162, 0.18); }
.receipt-sep { height: 2px; background-color: var(--grey); margin: 2px 6px; }

.discount-box { height: 40px; border: 2px solid var(--grey); display: flex; align-items: center; padding: 0 10px; font-size: 14px; font-weight: 700; color: var(--off-white); }
.total-box { height: 48px; border: 2px solid var(--purple-border); display: flex; align-items: center; justify-content: space-between; padding: 0 10px; }
.total-title { font-size: 17px; font-weight: 700; color: var(--off-white); }
.total-amount { font-size: 18px; font-weight: 700; color: var(--off-white); }

.mid-bar-container { height: 44px; }
.xmp-grid { width: 100%; height: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
.xmp-btn { background-color: var(--bg-dark); border: 2px solid var(--purple-border); color: var(--off-white); font-size: 20px; font-weight: 700; cursor: pointer; }
.xmp-btn:hover:not(:disabled) { background-color: #2d2d2d; }
.xmp-btn.remove-active { background-color: var(--red); border-color: var(--red); color: #ffffff; }
.xmp-btn:disabled { border-color: var(--grey); color: var(--grey); background-color: var(--bg-dark); cursor: default; }

.change-info-box { width: 100%; height: 100%; border: 2px solid var(--grey); display: flex; align-items: center; padding: 0 10px; font-size: 15px; font-weight: 700; color: var(--off-white); }
.barcode-box { height: 42px; border: 2px solid var(--purple-border); display: flex; }
.barcode-box input { width: 100%; height: 100%; background: transparent; border: none; outline: none; text-align: center; color: var(--off-white); font-size: 15px; font-weight: 700; }
.barcode-box input::placeholder { color: rgba(242, 240, 235, 0.65); }

.bottom-bar-container { height: 50px; }
.pay-grid { width: 100%; height: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
.pay-btn { background-color: var(--bg-dark); border: 2px solid var(--grey); color: var(--off-white); font-size: 16px; font-weight: 700; cursor: pointer; }
.pay-btn:hover { background-color: #2d2d2d; border-color: var(--purple-border); }
.pay-btn.btn-iptal { background-color: var(--red); border-color: var(--red); color: #ffffff; }
.pay-btn.btn-iptal:hover { background-color: var(--red-hover); }

.cash-input-frame { width: 100%; height: 100%; border: 2px solid var(--purple-border); display: flex; align-items: center; padding: 3px; gap: 3px; }
.cash-input-frame input { flex: 1; height: 100%; background: transparent; border: none; outline: none; padding: 0 6px; color: var(--off-white); font-size: 14px; font-weight: 700; }
.cash-confirm-btn { width: 40px; height: 100%; background-color: var(--purple-sidebar); border: 1px solid var(--off-white); color: var(--off-white); font-size: 18px; font-weight: 700; cursor: pointer; }
.cash-cancel-btn { width: 34px; height: 100%; background-color: var(--grey); border: none; color: #ffffff; font-size: 14px; font-weight: 700; cursor: pointer; }

/* ==========================================================================
   2. İŞLEMLER EKRANI
   ========================================================================== */
.sales-view-wrapper { width: 100%; height: 100vh; padding: 10px 18px 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.sales-top-bar { height: 60px; display: flex; align-items: center; justify-content: space-between; }
.sales-title { font-size: 32px; font-weight: 700; color: var(--off-white); }
.sales-right-controls { display: flex; align-items: center; gap: 10px; }
.sales-ctrl-btn { height: 36px; padding: 0 16px; background-color: var(--bg-dark); border: 2px solid var(--purple-border); color: var(--off-white); font-family: var(--font-main); font-size: 15px; font-weight: 700; cursor: pointer; }
.sales-ctrl-btn:hover { background-color: #2d2d2d; }
.sales-ctrl-btn.cancelled-mode { background-color: var(--red); border-color: var(--red); color: #ffffff; }
.sales-ctrl-btn.date-picker-btn { min-width: 215px; }
.sales-ctrl-btn.today-btn { min-width: 95px; }
.sales-ctrl-btn.active-today { background-color: var(--purple-sidebar); border-color: var(--off-white); color: var(--off-white); }

.sales-table-outer { flex: 1; border: 2px solid var(--purple-border); background-color: var(--bg-dark); padding: 6px; display: flex; flex-direction: column; overflow: hidden; }
.sales-grid-cols { display: grid; grid-template-columns: 13fr 2px 12fr 2px 11fr 2px 18fr 2px 13fr 2px 11fr 2px 9fr 2px 13fr; align-items: center; }
.sales-table-header { height: 48px; flex-shrink: 0; }
.s-cell { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; color: var(--off-white); text-align: center; padding: 0 4px; }
.s-vline { width: 2px; height: 82%; background-color: var(--line-grey); }
.sales-header-bottom-line { height: 2px; background-color: var(--line-grey); flex-shrink: 0; }
.sales-table-body { flex: 1; overflow-y: auto; }
.sales-row { height: 48px; border-bottom: 2px solid var(--line-grey); }
.sales-row .s-cell { font-size: 15px; color: var(--off-white); }
.sales-row .s-vline { height: 100%; }
.sales-detail-btn { width: 40px; height: 32px; background: transparent; border: none; color: var(--off-white); font-size: 20px; font-weight: 700; cursor: pointer; border-radius: 4px; }
.sales-detail-btn:hover { background-color: #333333; }
.sales-cancel-btn { width: 40px; height: 32px; background: transparent; border: none; color: var(--red); font-size: 18px; font-weight: 700; cursor: pointer; border-radius: 4px; }
.sales-cancel-btn:hover { background-color: #3b1214; }
.sales-cancel-type-text { color: var(--red); font-size: 14px; font-weight: 700; }
.sales-empty-msg { padding: 45px 20px; text-align: center; font-size: 17px; font-weight: 700; color: var(--cat-line); }

/* ==========================================================================
   3. KATALOG EKRANI
   ========================================================================== */
.catalog-view-wrapper { width: 100%; height: 100vh; padding: 14px 22px; display: grid; grid-template-columns: 340px 1fr; gap: 28px; }
.cat-left-panel { width: 340px; height: calc(100vh - 28px); display: flex; flex-direction: column; }
.cat-panel-title { font-size: 22px; font-weight: 700; color: var(--off-white); height: 36px; margin-bottom: 6px; }
.cat-selector-wrapper { position: relative; margin-bottom: 14px; }
.cat-selector-box { height: 48px; background-color: var(--bg-dark); border: 2px solid var(--purple-border); padding: 0 14px; display: flex; align-items: center; justify-content: space-between; font-size: 16px; font-weight: 700; color: var(--off-white); cursor: pointer; }
.cat-dropdown-menu { position: absolute; top: 48px; left: 0; width: 100%; background-color: var(--bg-dark); border: 2px solid var(--purple-border); z-index: 40; display: flex; flex-direction: column; padding: 2px; }
.cat-drop-item { height: 40px; padding: 0 12px; background-color: var(--bg-dark); border: none; color: var(--off-white); font-size: 15px; font-weight: 700; text-align: left; cursor: pointer; }
.cat-drop-item:hover, .cat-drop-item.curr { background-color: var(--product-bg); }
.cat-input-box { height: 48px; background-color: var(--bg-dark); border: 2px solid var(--cat-line); margin-bottom: 14px; display: flex; }
.cat-input-box input { width: 100%; height: 100%; background: transparent; border: none; outline: none; padding: 0 10px; color: var(--off-white); font-family: var(--font-main); font-size: 16px; font-weight: 700; user-select: text; }
.cat-input-box input:disabled { color: var(--grey); cursor: not-allowed; }
.cat-sub-title { font-size: 19px; font-weight: 700; color: var(--off-white); margin-bottom: 6px; }
.cat-products-outer { flex: 1; border: 2px solid var(--cat-line); background-color: var(--bg-dark); padding: 4px; overflow: hidden; display: flex; }
.cat-products-list { width: 100%; height: 100%; overflow-y: auto; }
.cat-prod-row { height: 44px; margin-bottom: 2px; padding: 0 10px; display: flex; align-items: center; border: 2px solid transparent; border-bottom: 1px solid var(--grey); cursor: pointer; font-size: 15px; font-weight: 700; color: var(--off-white); }
.cat-prod-row.inactive-row { color: var(--cat-line); }
.cat-prod-row.selected-row { border: 2px solid var(--purple-bright); background-color: rgba(123, 31, 162, 0.16); }
.cpr-order { width: 34px; text-align: left; }
.cpr-name { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpr-handle { width: 34px; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 21px; cursor: ns-resize; }
.cat-right-panel { height: calc(100vh - 28px); display: flex; flex-direction: column; }
.cat-win-ctrl { height: 36px; display: flex; justify-content: flex-end; gap: 2px; margin-bottom: 6px; }
.cat-spacer-top { height: 48px; margin-bottom: 14px; }
.cat-top-btns-row { height: 48px; margin-bottom: 18px; display: flex; align-items: center; }
.cat-new-prod-btn { width: 165px; height: 48px; background-color: var(--bg-dark); border: 2px solid var(--cat-line); color: var(--off-white); font-size: 16px; font-weight: 700; cursor: pointer; }
.cat-new-prod-btn:hover { background-color: #2d2d2d; }
.cat-new-prod-btn.active-new { background-color: var(--purple-sidebar); border-color: var(--off-white); color: var(--off-white); }
.cat-field-label { font-size: 18px; font-weight: 700; color: var(--off-white); margin-bottom: 4px; }
.sira-box { width: 165px; }
.cat-dates-row { display: flex; gap: 40px; }
.cat-date-label { font-size: 16px; font-weight: 700; color: var(--off-white); margin-bottom: 4px; }
.cat-date-box { width: 230px; height: 52px; background-color: var(--bg-dark); border: 2px solid var(--grey); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: var(--cat-line); }
.cat-flex-spacer { flex: 1; }
.cat-bottom-bar { height: 52px; display: flex; align-items: center; justify-content: space-between; }
.cat-active-toggle-btn { width: 130px; height: 48px; background-color: var(--bg-dark); border: 2px solid var(--green); color: var(--off-white); font-size: 16px; font-weight: 700; cursor: pointer; }
.cat-active-toggle-btn.deactive-state { border-color: var(--maroon); }
.cat-actions-group { display: flex; gap: 12px; }
.cat-action-btn { width: 135px; height: 48px; background-color: var(--bg-dark); border: 2px solid var(--cat-line); border-radius: 12px; color: var(--off-white); font-size: 16px; font-weight: 700; cursor: pointer; }
.cat-action-btn:hover { background-color: #2d2d2d; }
.cat-action-btn.delete-btn { border-color: var(--red); color: var(--red); }
.cat-action-btn.delete-btn:hover { background-color: #3b1214; }
.cat-action-btn.save-btn { border-color: var(--purple-border); background-color: var(--purple-sidebar); }

/* ==========================================================================
   4. KAMPANYALAR EKRANI
   ========================================================================== */
.campaigns-view-wrapper { width: 100%; height: 100vh; padding: 12px 22px 18px 22px; display: flex; flex-direction: column; }
.camp-top-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.camp-title { font-size: 22px; font-weight: 700; color: var(--off-white); }
.camp-selector-row { display: flex; align-items: center; gap: 20px; margin-bottom: 14px; }
.camp-type-selector-wrap { position: relative; }
.camp-selector-box { width: 260px; height: 50px; background-color: var(--bg-dark); border: 2px solid var(--purple-border); padding: 0 14px; display: flex; align-items: center; justify-content: space-between; font-size: 16px; font-weight: 700; color: var(--off-white); cursor: pointer; }
.camp-dropdown-menu { position: absolute; top: 50px; left: 0; width: 260px; background-color: var(--bg-dark); border: 2px solid var(--purple-border); z-index: 60; display: flex; flex-direction: column; padding: 2px; }
.camp-code-box { width: 210px; height: 50px; background-color: var(--grey); border: 2px solid var(--cat-line); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; color: var(--off-white); }
.camp-check-group { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.camp-check-btn { width: 38px; height: 38px; background-color: var(--bg-dark); border: 2px solid var(--cat-line); color: var(--off-white); font-size: 20px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.camp-check-btn.checked { border-color: var(--purple-border); background-color: rgba(123, 31, 162, 0.25); }
.camp-check-label { font-size: 16px; font-weight: 700; color: var(--cat-line); }
.camp-check-label.checked { color: var(--off-white); }
.camp-rule-builder-outer { height: 115px; border: 2px solid var(--purple-border); background-color: var(--bg-dark); padding: 10px 20px; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }
.camp-rule-sentence { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.rule-static-txt { font-size: 16px; font-weight: 700; color: var(--cat-line); }
.rule-num-input { height: 46px; background-color: var(--bg-dark); border: 2px solid var(--cat-line); color: var(--off-white); font-family: var(--font-main); font-size: 15px; font-weight: 700; text-align: center; outline: none; user-select: text; }
.rule-num-input:focus { border-color: var(--purple-border); }
.rule-prod-select-wrap { position: relative; }
.rule-prod-box { height: 46px; background-color: var(--bg-dark); border: 2px solid var(--cat-line); padding: 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 700; color: var(--cat-line); cursor: pointer; }
.rule-prod-box.selected { border-color: var(--purple-border); color: var(--off-white); }
.rule-prod-dropdown { position: absolute; top: 46px; left: 0; min-width: 230px; max-height: 235px; overflow-y: auto; background-color: var(--bg-dark); border: 2px solid var(--purple-border); z-index: 70; padding: 4px; display: flex; flex-direction: column; gap: 3px; }
.rule-prod-item { padding: 8px 10px; background-color: var(--product-bg); border: none; border-radius: 4px; color: var(--off-white); font-size: 13px; font-weight: 700; text-align: left; cursor: pointer; }
.rule-prod-item:hover { background-color: var(--grey); }
.camp-add-btn { width: 66px; height: 52px; background-color: var(--bg-dark); border: 2px solid var(--purple-border); color: var(--off-white); font-size: 28px; font-weight: 700; cursor: pointer; flex-shrink: 0; }
.camp-add-btn:hover { background-color: var(--purple-sidebar); }
.camp-sub-title { font-size: 20px; font-weight: 700; color: var(--off-white); margin-bottom: 6px; }
.camp-table-outer { flex: 1; border: 2px solid var(--purple-border); background-color: var(--bg-dark); padding: 6px; display: flex; flex-direction: column; overflow: hidden; }
.camp-grid-cols { display: grid; grid-template-columns: 12fr 2px 42fr 2px 16fr 2px 13fr 2px 9fr 2px 8fr; align-items: center; }
.camp-table-header { height: 46px; flex-shrink: 0; }
.c-cell { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; color: var(--off-white); padding: 0 6px; }
.c-cell.left-align { justify-content: flex-start; padding-left: 12px; }
.camp-table-body { flex: 1; overflow-y: auto; }
.camp-row { min-height: 54px; border-bottom: 2px solid var(--cat-line); }
.camp-row .c-cell { font-size: 14.5px; }
.camp-row .s-vline { height: 100%; }
.camp-status-btn { width: 96px; height: 34px; background-color: var(--bg-dark); border: 2px solid var(--green); color: var(--off-white); font-size: 14px; font-weight: 700; cursor: pointer; }
.camp-status-btn.passive { border-color: var(--maroon); }
.camp-ad-btn { width: 36px; height: 34px; background-color: var(--bg-dark); border: 2px solid var(--cat-line); color: var(--off-white); font-size: 18px; font-weight: 700; cursor: pointer; }
.camp-ad-btn.ad-on { border-color: var(--purple-border); background-color: rgba(123, 31, 162, 0.25); }

/* ==========================================================================
   5. İSTATİSTİKLER EKRANI
   ========================================================================== */
.stats-view-wrapper { width: 100%; height: 100vh; padding: 10px 20px 16px 20px; display: flex; flex-direction: column; }
.stats-top-bar { height: 54px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.stats-title { font-size: 24px; font-weight: 700; color: var(--off-white); }
.stats-right-controls { display: flex; align-items: center; gap: 10px; }
.stats-body-grid { flex: 1; display: grid; grid-template-columns: 30fr 30fr 40fr; gap: 20px; overflow: hidden; }
.stats-col { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.stats-sec-title { font-size: 19px; font-weight: 700; color: var(--off-white); margin-bottom: 4px; }
.stats-box { border: 2px solid var(--purple-border); background-color: var(--bg-dark); padding: 12px 16px; display: flex; flex-direction: column; justify-content: space-around; }
.top-stats-box { flex: 52; margin-bottom: 8px; }
.bot-stats-box { flex: 48; }
.full-stats-box { flex: 1; justify-content: flex-start; padding: 10px 12px; gap: 8px; }
.st-metric-group { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 100%; }
.st-label { font-size: 14px; font-weight: 700; color: var(--off-white); text-align: center; }
.st-label.blue-txt { color: var(--blue); }
.st-label.green-txt { color: var(--green); }
.st-label.grey-txt { color: var(--cat-line); }
.st-val-box { width: 100%; height: 40px; border: 2px solid var(--purple-border); background-color: var(--bg-dark); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: var(--off-white); padding: 0 8px; text-align: center; }
.st-val-box.blue-box { border-color: var(--blue); color: var(--blue); }
.st-val-box.green-box { border-color: var(--green); color: var(--green); }
.st-val-box.grey-box { border-color: var(--cat-line); color: var(--cat-line); }
.st-split-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; }
.st-ratio-bar-outer { width: 100%; height: 42px; border: 2px solid var(--cat-line); padding: 3px; display: flex; background-color: var(--bg-dark); }
.ratio-seg { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #000000; }
.prod-ranking-box { padding: 6px; justify-content: flex-start; overflow-y: auto; }
.st-rank-row { height: 38px; min-height: 38px; padding: 0 10px; display: flex; align-items: center; border-bottom: 1px solid var(--grey); font-size: 14px; font-weight: 700; color: var(--off-white); }
.st-rank-row.zero-qty { color: var(--cat-line); }
.sr-idx { width: 34px; }
.sr-name { flex: 1; }
.sr-qty { width: 75px; text-align: right; }
.st-hourly-header { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 700; color: var(--off-white); }
.st-hourly-chart-box { flex: 38; border: 2px solid var(--purple-border); background-color: var(--bg-dark); position: relative; overflow: hidden; }
.st-multiday-box { flex: 62; border: 2px solid var(--cat-line); padding: 8px 14px 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.st-daily-chart-box { flex: 1; border: 2px solid var(--cat-line); background-color: var(--bg-dark); position: relative; overflow: hidden; margin-top: 2px; }
.st-hourly-chart-box canvas, .st-daily-chart-box canvas { width: 100%; height: 100%; display: block; }

/* ==========================================================================
   6. GÜN SONU EKRANI (view_endofday.py)
   ========================================================================== */
.eod-view-wrapper {
    width: 100%;
    height: 100vh;
    padding: 10px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.eod-top-bar {
    width: 100%;
    height: 38px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.eod-center-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 4px;
}

.eod-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--off-white);
    margin-bottom: 4px;
}

.eod-clock-box {
    width: 265px;
    height: 50px;
    border: 2px solid var(--purple-border);
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--off-white);
    margin-bottom: 14px;
}

.eod-revenue-box {
    width: 410px;
    height: 58px;
    border: 2px solid var(--purple-border);
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--off-white);
    margin-bottom: 4px;
}

.eod-sub-note {
    font-size: 13px;
    font-weight: 700;
    color: var(--cat-line);
    margin-bottom: 14px;
}

.eod-top3-box {
    width: 410px;
    height: 136px;
    border: 2px solid var(--purple-border);
    background-color: var(--bg-dark);
    padding: 12px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.eod-top3-row {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 700;
    color: var(--off-white);
}

.eod-already-taken {
    height: 22px;
    font-size: 15px;
    font-weight: 700;
    color: #d896ff;
    margin-bottom: 6px;
}

.eod-take-btn {
    width: 260px;
    height: 68px;
    border-radius: 22px;
    background-color: var(--purple-sidebar);
    border: 2px solid var(--off-white);
    color: var(--off-white);
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    margin-bottom: 12px;
    transition: background-color 0.2s;
}
.eod-take-btn:hover:not(:disabled) { background-color: var(--purple-hover); }
.eod-take-btn:disabled {
    background-color: var(--grey);
    border-color: var(--cat-line);
    color: #9e9e9e;
    cursor: not-allowed;
}

.eod-warn-line1 {
    font-size: 14px;
    font-weight: 700;
    color: var(--cat-line);
    margin-bottom: 6px;
}

.eod-warn-line2 {
    font-size: 14px;
    font-weight: 700;
    color: var(--cat-line);
    text-align: center;
    line-height: 1.4;
}

.eod-history-btn {
    position: absolute;
    right: 24px;
    bottom: 18px;
    width: 130px;
    height: 50px;
    border-radius: 14px;
    background-color: var(--bg-dark);
    border: 2px solid var(--purple-border);
    color: var(--off-white);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}
.eod-history-btn:hover { background-color: #2d2d2d; }

/* Geçmiş Gün Sonları Popup */
.pos-dialog-box.eod-history-modal-box {
    width: 460px;
    height: 500px;
    padding: 16px 20px;
}

.eod-hist-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.eod-trash-btn {
    width: 40px;
    height: 36px;
    border-radius: 6px;
    background-color: var(--product-bg);
    border: 2px solid var(--red);
    color: var(--red);
    font-size: 18px;
    cursor: pointer;
}
.eod-trash-btn:hover { background-color: #3b1214; }

.eod-hist-rows-holder {
    width: 100%;
    flex: 1;
    margin: 10px 0;
    background-color: var(--product-bg);
    border: 2px solid var(--grey);
    border-radius: 4px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
}

.eod-hist-row {
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 700;
    color: var(--off-white);
    border-bottom: 1px solid var(--grey);
    padding: 0 6px;
}

.eod-hist-pagination {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.eod-page-btn {
    width: 34px;
    height: 32px;
    border-radius: 4px;
    background-color: var(--bg-dark);
    border: 2px solid var(--cat-line);
    color: var(--off-white);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.eod-page-btn.curr {
    background-color: var(--purple-sidebar);
    border-color: var(--off-white);
}

/* ==========================================================================
   7. MÜŞTERİ EKRANI (view_customer.py Birebir Canvas Penceresi)
   ========================================================================== */
.customer-display-modal {
    position: fixed;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 860px;
    height: 565px;
    background-color: var(--bg-dark);
    border: 3px solid var(--purple-border);
    border-radius: 12px;
    box-shadow: 0 28px 75px rgba(0, 0, 0, 0.92);
    z-index: 120;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cust-floating-bar {
    height: 34px;
    background-color: var(--purple-sidebar);
    color: var(--off-white);
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    cursor: move;
}

.cust-close-x {
    background: transparent;
    border: none;
    color: var(--off-white);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.cust-canvas-holder {
    flex: 1;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
}

.cust-canvas-holder canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* ==========================================================================
   ORTAK POPUPLAR VE ÇİFT TAKVİM
   ========================================================================== */
.pos-blur-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(12, 12, 14, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.pos-blur-overlay.active { opacity: 1; visibility: visible; }

.info-modal-card { width: 720px; max-width: 92vw; max-height: 86vh; background-color: var(--product-bg); border: 2px solid var(--purple-border); border-radius: 18px; display: flex; flex-direction: column; box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85); overflow: hidden; }
.info-modal-header { padding: 18px 24px; background-color: var(--purple-sidebar); display: flex; align-items: center; justify-content: space-between; }
.info-modal-header h2 { font-size: 18px; color: var(--off-white); }
.info-close-btn { width: 36px; height: 36px; border-radius: 50%; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.2); color: var(--off-white); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.25s ease; }
.info-close-btn:hover { transform: rotate(90deg); }
.info-modal-scroll { padding: 22px 26px; overflow-y: auto; line-height: 1.65; font-size: 14.5px; color: var(--off-white); user-select: text; }
.info-warning-banner { background: rgba(123, 31, 162, 0.25); border: 1px solid var(--purple-bright); border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; font-size: 13.5px; }
.info-modal-scroll h3 { color: #d896ff; margin-top: 16px; margin-bottom: 4px; font-size: 16px; }
.info-modal-scroll p { margin-bottom: 10px; opacity: 0.92; }
.info-modal-footer { padding: 14px 24px; background-color: var(--bg-dark); border-top: 1px solid var(--grey); display: flex; justify-content: flex-end; }
.start-demo-btn { padding: 11px 28px; background-color: var(--purple-sidebar); border: 2px solid var(--off-white); border-radius: 10px; color: var(--off-white); font-weight: 700; font-size: 15px; cursor: pointer; }

.pos-dialog-box {
    width: 390px;
    min-height: 190px;
    background-color: var(--bg-dark);
    border: 3px solid var(--purple-border);
    border-radius: 6px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
}

.pos-dialog-box.dual-cal-modal-box { width: 720px; max-width: 95vw; min-height: 430px; padding: 18px 20px; }
.dual-cal-grid { width: 100%; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.cal-column { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.cal-col-title { font-size: 18px; font-weight: 700; color: var(--off-white); text-align: center; }
.cal-holder { flex: 1; background-color: var(--product-bg); border: 2px solid var(--grey); padding: 10px; display: flex; flex-direction: column; width: 100%; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-nav-btn { width: 34px; height: 28px; background-color: var(--grey); border: none; color: var(--off-white); font-size: 15px; font-weight: 700; cursor: pointer; border-radius: 4px; }
.cal-month-label { font-size: 16px; font-weight: 700; color: var(--off-white); }
.cal-days-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; flex: 1; }
.cal-day-head { font-size: 12px; font-weight: 700; color: #9e9e9e; text-align: center; padding: 2px 0; }
.cal-day-btn { width: 100%; height: 32px; background-color: var(--bg-dark); border: 1px solid transparent; border-radius: 4px; color: var(--off-white); font-size: 13px; font-weight: 700; cursor: pointer; }
.cal-day-btn:hover { background-color: var(--grey); }
.cal-day-btn.selected-day { background-color: var(--purple-sidebar); border-color: var(--off-white); color: var(--off-white); }

.pos-dialog-box.sales-items-modal-box { width: 420px; height: 440px; }
.sales-items-scroll { width: 100%; flex: 1; margin: 12px 0; background-color: var(--product-bg); border: 2px solid var(--grey); border-radius: 4px; padding: 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.sales-item-detail-row { display: flex; align-items: center; font-size: 15px; font-weight: 700; color: var(--off-white); border-bottom: 1px solid var(--grey); padding-bottom: 6px; }
.sid-qty { width: 42px; text-align: left; }
.sid-name { flex: 1; text-align: left; }
.sid-price { width: 85px; text-align: right; }

.pos-dialog-box.transfer-modal-box { width: 420px; min-height: 330px; }
.transfer-cats-list { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.transfer-cat-btn { width: 280px; height: 42px; background-color: var(--product-bg); border: 2px solid var(--purple-border); border-radius: 8px; color: var(--off-white); font-size: 16px; font-weight: 700; cursor: pointer; }
.transfer-cat-btn:hover { background-color: var(--grey); }

.dialog-title { font-size: 20px; font-weight: 700; color: var(--off-white); line-height: 1.35; }
.dialog-btn-row { display: flex; gap: 14px; }
.dialog-ok-btn { width: 125px; height: 38px; background-color: var(--purple-sidebar); border: 2px solid var(--off-white); color: var(--off-white); font-size: 15px; font-weight: 700; cursor: pointer; }
.dialog-cancel-btn { width: 120px; height: 38px; background-color: var(--grey); border: none; color: var(--off-white); font-size: 15px; font-weight: 700; cursor: pointer; }
.dialog-red-btn { width: 125px; height: 38px; background-color: var(--red); border: none; color: #ffffff; font-size: 15px; font-weight: 700; cursor: pointer; }
/* ==========================================================================
   İSTATİSTİKLER TAŞMA DÜZELTMESİ & KİŞİSELLEŞTİR (COLOR WHEEL) POPUP
   ========================================================================== */
.stats-body-grid { min-height: 0; }
.stats-col { min-height: 0; }
.full-stats-box {
    flex: 1;
    min-height: 0;
    justify-content: space-between;
    padding: 8px 12px;
    gap: 6px;
    overflow: hidden;
}
.st-hourly-chart-box {
    flex: 35;
    min-height: 110px;
}
.st-multiday-box {
    flex: 65;
    min-height: 0;
    padding: 6px 12px 8px 12px;
    gap: 4px;
    overflow: hidden;
}
.st-multiday-box .st-val-box {
    height: 32px;
    font-size: 14px;
}
.st-daily-chart-box {
    flex: 1;
    min-height: 95px;
}

/* Sol Menü Kişiselleştir Popup (Kasa Düğmesinin Üstüne Kadar, 224px Genişlikte) */
.sidebar-bottom {
    position: relative;
    gap: 8px;
}

.personalize-btn {
    background-color: var(--bg-dark);
    border: 2px solid var(--menu-border);
    color: var(--off-white);
}
.personalize-btn.active-pers {
    border-color: var(--off-white);
    background-color: var(--menu-active);
}

.personalize-popup {
    position: absolute;
    bottom: 108px;
    left: 50%;
    transform: translateX(-50%);
    width: 224px;
    height: 342px;
    background-color: var(--bg-dark);
    border: 2px solid var(--off-white);
    border-radius: 16px;
    padding: 12px;
    z-index: 95;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85);
}

.pers-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--off-white);
}

#color-wheel-canvas {
    width: 164px;
    height: 164px;
    border-radius: 50%;
    cursor: crosshair;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
}

.pers-hex-input {
    width: 130px;
    height: 32px;
    background-color: var(--product-bg);
    border: 2px solid var(--purple-border);
    border-radius: 6px;
    color: var(--off-white);
    font-family: monospace;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    outline: none;
    user-select: text;
}

.pers-slots-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--cat-line);
}

.pers-slots-row {
    display: flex;
    gap: 12px;
}

.pers-slot-btn {
    width: 44px;
    height: 44px;
    background-color: var(--product-bg);
    border: 2px solid var(--cat-line);
    border-radius: 8px;
    color: var(--off-white);
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pers-slot-btn:hover { border-color: var(--off-white); }

.cust-detach-btn {
    padding: 4px 10px;
    background-color: var(--bg-dark);
    border: 1px solid var(--off-white);
    border-radius: 6px;
    color: var(--off-white);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.cust-detach-btn:hover { background-color: #333333; }


/* Mobil Zorunlu Yatay Mod ve Tam Ekran Sabitlemesi */
body.mobile-forced-landscape {
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
    touch-action: manipulation;
}

/* Mobilde 100vh yerine tasarım yüksekliği (768px) kullan */
body.mobile-forced-landscape .pos-app-shell,
body.mobile-forced-landscape .pos-sidebar,
body.mobile-forced-landscape .pos-content-area,
body.mobile-forced-landscape .catalog-container,
body.mobile-forced-landscape .pos-vertical-separator,
body.mobile-forced-landscape .receipt-container,
body.mobile-forced-landscape .sales-view-wrapper,
body.mobile-forced-landscape .catalog-view-wrapper,
body.mobile-forced-landscape .campaigns-view-wrapper,
body.mobile-forced-landscape .stats-view-wrapper,
body.mobile-forced-landscape .eod-view-wrapper {
    height: 768px;
}

body.mobile-forced-landscape .cat-left-panel,
body.mobile-forced-landscape .cat-right-panel {
    height: calc(768px - 28px);
}