﻿        :root {
            --orange:        #ff5a36;
            --orange-dark:   #e2431f;
            --orange-light:  #ffe4dc;
            --orange-pale:   #fff2ee;
            --orange-border: #ffc3b0;
            --dark:          #222222;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        ::selection { background: rgba(255,90,54,0.35); color: inherit; }

        body { font-family: 'Plus Jakarta Sans', sans-serif; background: #0a0a0a; min-height: 100vh; padding: 0; display: flex; align-items: flex-start; }

        /* ── Animated card border property ── */
        @property --border-angle {
            syntax: '<angle>';
            inherits: false;
            initial-value: 0deg;
        }
        @keyframes fp-card-border {
            to { --border-angle: 360deg; }
        }
        @keyframes fp-orb-orbit {
            from { transform: rotate(0deg); }
            to   { transform: rotate(360deg); }
        }

        /* ── App Layout ── */
        .main-wrapper { flex: 1; min-width: 0; background: #0a0a0a; min-height: 100vh; }
        .container { padding: 0 32px 48px; background: transparent; }

        /* ── Sidebar ── */
        .sidebar { width: 240px; flex-shrink: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; background: #111111; display: flex; flex-direction: column; border-right: 1px solid rgba(255,255,255,0.05); z-index: 200; }
        /* Brand */
        .sb-brand { padding: 28px 20px 22px; border-bottom: 1px solid rgba(255,255,255,0.06); display: flex; justify-content: center; align-items: center; }
        .sb-logo-white { height: 68px; filter: brightness(0) invert(1); object-fit: contain; max-width: 200px; }
        .sb-sync-row { display: none !important; }
        #orderSearchWrap { display: none !important; }
        /* Nav body */
        .sb-nav-body { padding: 18px 12px 0; }
        /* Group label */
        .sb-group-label { font-size: 9.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.2); padding: 0 10px; margin-bottom: 4px; }
        /* Country buttons */
        .sidebar-country-btn { width: 100%; background: transparent; border: none; border-radius: 10px; padding: 9px 10px; color: rgba(255,255,255,0.45); font-family: 'Plus Jakarta Sans',sans-serif; font-size: 13px; font-weight: 500; cursor: pointer; text-align: left; display: flex; align-items: center; gap: 10px; transition: all 0.15s; margin-bottom: 2px; }
        .sidebar-country-btn:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.85); }
        .sidebar-country-btn.active { background: rgba(255,255,255,0.08); color: #fff; font-weight: 700; }
        /* Supplier nav items */
        .sidebar-nav-item { width: 100%; background: transparent; border: none; border-radius: 10px; padding: 10px 10px; color: rgba(255,255,255,0.45); font-family: 'Plus Jakarta Sans',sans-serif; font-size: 13px; font-weight: 500; cursor: pointer; text-align: left; display: flex; align-items: center; gap: 10px; transition: all 0.15s; margin-bottom: 2px; }
        .sidebar-nav-item:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.85); }
        .sidebar-nav-item.active { background: rgba(255,90,54,0.14); color: #ff8a63; }
        .sidebar-nav-item.active .sb-item-icon { color: var(--orange); }
        /* Item parts */
        .sb-item-icon { flex-shrink: 0; color: currentColor; display: flex; align-items: center; }
        .sb-item-label { flex: 1; }
        .sb-item-flag { font-size: 14px; }
        .sb-item-badge { font-size: 10px; font-weight: 700; background: rgba(255,255,255,0.09); color: rgba(255,255,255,0.5); padding: 2px 8px; border-radius: 20px; min-width: 22px; text-align: center; }
        .sb-item-badge.sb-badge-green { background: rgba(255,90,54,0.14); color: var(--orange); }
        .sidebar-nav-item.active .sb-item-badge { background: rgba(255,90,54,0.18); color: #ff8a63; }
        /* Divider */
        .sb-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 10px 10px; }
        /* Spacer */
        .sidebar-spacer { flex: 1; }
        /* Footer */
        .sb-footer { padding: 12px 12px 22px; border-top: 1px solid rgba(255,255,255,0.06); margin-top: auto; }
        #sbBtnSignOut { display: flex !important; }
        #sbBtnSignOutNav { display: none !important; }
        .sb-sync-row { font-size: 11px; color: rgba(255,255,255,0.28); padding: 0 10px; margin-bottom: 8px; min-height: 18px; }
        .sb-logout-item { width: 100%; background: transparent; border: none; border-radius: 10px; padding: 10px 10px; color: rgba(255,255,255,0.38); font-family: 'Plus Jakarta Sans',sans-serif; font-size: 13px; font-weight: 500; cursor: pointer; text-align: left; display: flex; align-items: center; gap: 10px; transition: all 0.15s; }
        .sb-logout-item:hover { background: rgba(255,90,54,0.12); color: var(--orange); }
        .sb-signout-nav { color: rgba(255,255,255,0.38) !important; }
        .sb-signout-nav:hover { background: rgba(255,90,54,0.12) !important; color: var(--orange) !important; }

        /* ── Fundedpipps Top Bar ── */
        .fp-topbar { display: flex; align-items: center; padding: 22px 0 16px; gap: 20px; }
        .fp-topbar-left { flex: 1; }
        .fp-topbar-welcome { font-size: 22px; font-weight: 400; color: rgba(244,240,234,0.5); display: inline; }
        .fp-topbar-context { display: inline; font-size: 22px; font-weight: 800; color: #fff; }
        .fp-topbar-order { display: none; }
        .fp-topbar-search-wrap { flex: 0 0 auto; width: 280px; position: relative; display: flex; align-items: center; transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
        .fp-topbar-search-icon { position: absolute; right: 14px; left: auto; color: rgba(244,240,234,0.3); pointer-events: none; z-index: 1; }
        .fp-topbar-search { width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.09); border-radius: 50px; padding: 11px 40px 11px 18px; color: #f4f0ea; font-family: 'Plus Jakarta Sans',sans-serif; font-size: 13px; outline: none; }
        .fp-topbar-search::placeholder { color: rgba(244,240,234,0.28); }
        .fp-topbar-search:focus { border-color: rgba(255,90,54,0.3); background: rgba(255,255,255,0.08); }
        .fp-topbar-search-wrap .order-suggestions { top: calc(100% + 6px); left: 0; width: 100%; position: absolute; z-index: 500; }
        .fp-topbar-actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
        .lang-switcher { display: flex; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.09); border-radius: 20px; padding: 3px; gap: 2px; }
        .lang-opt { border: none; background: transparent; color: rgba(244,240,234,0.5); font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; padding: 4px 11px; border-radius: 16px; cursor: pointer; transition: all 0.2s; }
        .lang-opt:hover { color: #fff; }
        .lang-opt.active { background: var(--orange); color: #fff; }
        .fp-topbar-bell { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.09); display: flex; align-items: center; justify-content: center; color: rgba(244,240,234,0.5); cursor: pointer; transition: background 0.2s; }
        .fp-topbar-bell:hover { background: rgba(255,255,255,0.1); color: #fff; }
        .fp-topbar-sync { display: none; }
        .fp-topbar-user { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.09); border-radius: 50px; padding: 5px 12px 5px 5px; cursor: pointer; transition: background 0.2s; color: rgba(244,240,234,0.8); }
        .fp-topbar-user:hover { background: rgba(255,255,255,0.1); }
        .fp-topbar-avatar { border-radius: 50%; width: 30px; height: 30px; object-fit: cover; display: block; flex-shrink: 0; }
        .fp-topbar-user-info { display: flex; flex-direction: column; }
        .fp-topbar-username { font-size: 10px; color: rgba(244,240,234,0.38); line-height: 1.2; }
        .fp-topbar-fullname { font-size: 13px; font-weight: 700; color: #fff; line-height: 1.3; }

        /* ── Kullanıcı dropdown ── */
        .fp-topbar-user-wrap { position: relative; }
        .user-menu { display: none; position: absolute; top: calc(100% + 10px); right: 0; width: 270px; background: #262626; border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,0.45); padding: 16px; z-index: 600; }
        .user-menu.open { display: block; }
        .user-menu-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
        .user-menu-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
        .user-menu-name { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.3; }
        .user-menu-role { font-size: 10.5px; color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
        .user-menu-info-row { display: flex; justify-content: space-between; font-size: 12px; color: rgba(244,240,234,0.5); padding: 9px 0; border-top: 1px solid rgba(255,255,255,0.08); }
        .user-menu-info-row span:last-child { color: rgba(244,240,234,0.85); font-weight: 600; }
        .user-menu-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 12px 0; }
        .user-menu-section-title { font-size: 11px; font-weight: 700; color: rgba(244,240,234,0.4); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 9px; }
        .user-menu-item { display: flex; align-items: center; gap: 8px; width: 100%; background: transparent; border: none; color: rgba(244,240,234,0.85); font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13px; font-weight: 600; padding: 9px 8px; border-radius: 8px; cursor: pointer; text-align: left; transition: background 0.15s; }
        .user-menu-item:hover { background: rgba(255,255,255,0.06); }
        .user-menu-item.user-menu-signout:hover { background: rgba(255,90,54,0.12); color: var(--orange); }
        .user-menu-pass-field { margin-bottom: 8px; }
        .user-menu-pass-field .settings-input { padding: 9px 11px; font-size: 12.5px; }
        .user-menu-pass-btn { width: 100%; min-width: 0; margin-top: 2px; padding: 9px; font-size: 12px; }

        /* ── Tamamlanan Siparişler Paneli ── */
        .co-panel { padding: 28px 36px 40px; }
        .co-panel-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; border-bottom: 2px solid #f0ece6; padding-bottom: 16px; }
        .co-panel-icon { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,90,54,0.12); color: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 20px; }
        .co-panel-title { font-size: 18px; font-weight: 700; color: #222222; letter-spacing: 1px; }
        .co-panel-sub { font-size: 12px; color: #aaa; margin-top: 2px; }
        .co-empty { text-align: center; padding: 60px 20px; color: #bbb; }
        .co-empty-icon { font-size: 40px; margin-bottom: 12px; }
        .co-empty-text { font-size: 14px; font-weight: 600; color: #ccc; }
        .co-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
        .co-card { background: white; border: 1.5px solid #ede8e0; border-radius: 12px; padding: 16px 18px; cursor: pointer; transition: all 0.18s; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
        .co-card:hover { border-color: var(--orange); box-shadow: 0 4px 18px rgba(255,90,54,0.12); transform: translateY(-1px); }
        .co-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
        .co-card-sup { font-size: 10px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; }
        /* Tedarikçi renkleri artık firma şemasından (--sup-color/--sup-bg custom property) — bkz. .sup-chip/.sup-dot */
        .sup-chip { background: var(--sup-bg, rgba(255,255,255,0.08)); color: var(--sup-color, #888); }
        .sup-dot  { background: var(--sup-color, #888); }
        .co-card-country { font-size: 12px; }
        .co-country-section { margin-bottom: 28px; }
        .co-country-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid #ede8e0; }
        .co-country-flag { font-size: 22px; color: rgb(255, 255, 255); }
        .co-country-name { font-size: 16px; font-weight: 800; color: #fff; }
        .co-country-count { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--orange); background: rgba(255,90,54,0.1); padding: 3px 10px; border-radius: 20px; }
        .co-card-check { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; background: var(--orange); color: white; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
        .co-card-title { font-size: 15px; font-weight: 700; color: #222222; margin-bottom: 6px; }
        .co-card-meta { font-size: 11px; color: #aaa; display: flex; gap: 12px; flex-wrap: wrap; }
        .co-card-progress { height: 4px; background: #f0ece6; border-radius: 99px; margin-top: 10px; overflow: hidden; }
        .co-card-progress-fill { height: 100%; background: linear-gradient(90deg,var(--orange-dark),var(--orange)); border-radius: 99px; }

        /* ── Modern genel iyileştirmeler ── */
        .main-wrapper { background: #f4f2ef; }
        .header { background: white; border-bottom: 1px solid #ece8e1; padding: 14px 36px; }
        .page-title { font-size: 16px; letter-spacing: 2px; }
        .note-section { background: #fafaf8; border-bottom: 1px solid #eee; }
        .table-section { padding: 0 28px 24px; }
        tbody td { font-size: 13px; }
        .progress-section { background: #1e1e1e; }
        .order-bar { background: #1e1e1e; }

        #btnSignOut { display: none !important; }

        /* ── Header ── */
        .header { padding: 18px 36px 14px; display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid var(--orange); }
        .logo-img { height: 75px; width: auto; object-fit: contain; }
        .header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
        .page-title { font-size: 20px; font-weight: 700; letter-spacing: 3px; color: var(--orange); }
        #syncStatus { font-size: 11px; font-weight: 600; }

        /* ── Order Bar ── */
        .order-bar { background: #1b1a1a; padding: 10px 36px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
        .order-actions { display: flex; flex-direction: row; gap: 8px; align-items: center; flex-shrink: 0; }

        .order-select-wrap { position: relative; flex: 1; min-width: 220px; max-width: 360px; }

        .order-select-display {
            width: 100%;
            display: flex; align-items: center; justify-content: space-between; gap: 8px;
            background: rgba(255,255,255,0.1);
            border: 1.5px solid rgba(255,255,255,0.2);
            border-radius: 6px;
            padding: 8px 12px;
            color: white;
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            text-align: left;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
            transition: background 0.2s;
        }
        .order-select-display::after { content: '▾'; flex-shrink: 0; color: rgba(255,255,255,0.6); font-size: 12px; }
        .order-select-display:hover, .order-select-display:focus { outline: none; background: rgba(255,255,255,0.15); }

        .order-select-menu {
            display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0;
            background: #2a2a2a; border: 1px solid rgba(255,255,255,0.11); border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.4); z-index: 300;
            max-height: 280px; overflow-y: auto;
        }
        .order-select-menu.open { display: block; }
        .order-select-option {
            padding: 10px 14px; font-size: 13px; font-weight: 600; color: #f4f0ea; cursor: pointer;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
            border-bottom: 1px solid rgba(255,255,255,0.06);
            transition: background 0.13s;
        }
        .order-select-option:last-child { border-bottom: none; }
        .order-select-option:hover { background: rgba(255,90,54,0.12); }
        .order-select-option.active { background: rgba(255,90,54,0.16); color: #ff8a63; }

        .order-bar .btn { padding: 8px 16px; font-size: 12px; }
        .btn-new-order { background: var(--orange); color: white; border: none; }
        .btn-new-order:hover { background: var(--orange-dark); }
        .btn-del-order { background: transparent; color: rgba(255,255,255,0.5); border: 1.5px solid rgba(255,255,255,0.2); }
        .btn-del-order:hover { background: rgba(255,90,54,0.12); color: var(--orange); border-color: var(--orange); }
        .btn-complete-order { background: transparent; color: var(--orange); border: 1.5px solid var(--orange); font-weight: 700; letter-spacing: 0.5px; }
        .btn-complete-order:hover { background: rgba(255,90,54,0.12); }
        .btn-complete-order.is-completed { background: var(--orange); color: white; border-color: var(--orange); }
        .btn-complete-order.is-completed:hover { background: var(--orange-dark); }

        .order-bar-empty { color: rgba(255,255,255,0.4); font-size: 13px; font-style: italic; }

        /* ── Order Search ── */
        .order-search-wrap { margin-left: auto; min-width: 220px; max-width: 280px; position: relative; }
        .order-search { width: 100%; background: rgba(255,255,255,0.08); border: 1.5px solid rgba(255,255,255,0.18); border-radius: 6px; padding: 8px 12px 8px 34px; color: white; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 12px; font-weight: 500; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.45)' stroke-width='2.5'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 10px center; }
        .order-search::placeholder { color: rgba(255,255,255,0.4); }
        .order-search:focus { outline: none; background-color: rgba(255,255,255,0.14); border-color: var(--orange); }

        .order-suggestions { display: none; position: absolute; top: calc(100% + 6px); right: 0; width: 310px; background: white; border-radius: 8px; box-shadow: 0 6px 28px rgba(0,0,0,0.22); z-index: 500; overflow: hidden; }
        .order-suggestions.open { display: block; }
        .sug-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; border-bottom: 1px solid #f5f0eb; transition: background 0.13s; }
        .sug-item:last-child { border-bottom: none; }
        .sug-item:hover, .sug-item.active { background: var(--orange-light); }
        .sug-badge { font-size: 9px; font-weight: 700; letter-spacing: 0.8px; background: var(--orange); color: white; padding: 3px 8px; border-radius: 10px; white-space: nowrap; flex-shrink: 0; }
        .sug-info { min-width: 0; }
        .sug-name { font-size: 13px; font-weight: 700; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .sug-icerik { font-size: 11px; color: #999; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .sug-empty { padding: 14px; font-size: 13px; color: #bbb; text-align: center; }

        /* ── Icerik Dropdown ── */
        .icerik-wrap { position: relative; width: 100%; }
        .icerik-display { background: rgba(255,255,255,0.15); border: 1.5px solid rgba(255,255,255,0.35); border-radius: 5px; padding: 7px 32px 7px 13px; color: white; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13px; cursor: pointer; user-select: none; min-height: 36px; display: flex; align-items: center; transition: background 0.2s; }
        .icerik-display:hover { background: rgba(255,255,255,0.22); }
        .icerik-display.placeholder-mode { color: rgba(255,255,255,0.55); }
        .icerik-arrow { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.6); font-size: 11px; pointer-events: none; }
        .icerik-menu { display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: white; border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,0.18); z-index: 200; overflow: hidden; }
        .icerik-menu.open { display: block; }
        .icerik-option { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 13px; color: #111; cursor: pointer; transition: background 0.13s; }
        .icerik-option:hover { background: var(--orange-light); }
        .icerik-option input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--orange); cursor: pointer; flex-shrink: 0; }
        .icerik-option.checked { background: var(--orange-pale); font-weight: 600; color: var(--orange-dark); }

        /* ── Progress ── */
        .progress-section { background: var(--dark); padding: 10px 36px 14px; }
        .progress-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
        .progress-label { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.55); letter-spacing: 0.5px; }
        .progress-text  { font-size: 11px; font-weight: 700; color: var(--orange); }
        .progress-bar-bg { background: rgba(255,255,255,0.1); border-radius: 99px; height: 8px; overflow: hidden; }
        .progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--orange), #ff8a63); border-radius: 99px; transition: width 0.5s ease; }

        /* ── Info Bar ── */
        .info-bar { background: var(--orange); padding: 12px 36px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
        .info-item { display: flex; align-items: center; gap: 8px; color: white; font-size: 13px; flex: 1; min-width: 160px; }
        .info-item label { font-weight: 700; white-space: nowrap; flex-shrink: 0; }
        .info-input { background: rgba(255,255,255,0.15); border: 1.5px solid rgba(255,255,255,0.35); border-radius: 5px; padding: 7px 13px; color: white; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13px; width: 100%; transition: background 0.2s; }
        .info-input:focus { outline: none; background: rgba(255,255,255,0.25); border-color: rgba(255,255,255,0.7); }
        .info-input::placeholder { color: rgba(255,255,255,0.55); }
        .info-static { background: rgba(255,255,255,0.15); border: 1.5px solid rgba(255,255,255,0.35); border-radius: 5px; padding: 7px 13px; color: white; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13px; white-space: nowrap; flex-shrink: 0; }

        /* ── Empty state ── */
        .empty-state { padding: 60px 36px; text-align: center; color: #bbb; }
        .empty-state-icon { font-size: 48px; margin-bottom: 16px; }
        .empty-state h3 { font-size: 16px; font-weight: 600; color: #999; margin-bottom: 8px; }
        .empty-state p  { font-size: 13px; margin-bottom: 20px; }

        /* ── Note ── */
        .note-section { padding: 14px 36px; background: #fffdf5; border-bottom: 1px solid #e6dfc8; }
        .note-label { font-size: 10px; font-weight: 700; color: #aaa; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 7px; }
        .note-input { width: 100%; border: 1.5px solid #ddd3b0; border-radius: 5px; padding: 9px 13px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13px; color: #111; background: white; resize: vertical; min-height: 58px; transition: border-color 0.2s; }
        .note-input:focus { outline: none; border-color: var(--orange); }

        /* ── Table ── */
        .table-section { padding: 0 36px 20px; }
        table { width: 100%; border-collapse: collapse; }
        thead tr { background: var(--orange); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
        thead th { padding: 11px 13px; font-size: 11px; font-weight: 700; letter-spacing: 0.8px; color: white; text-align: left; }
        thead th.col-no       { width: 46px;  text-align: center; }
        thead th.col-sorumlu  { width: 130px; }
        thead th.col-aciklama { width: 240px; }
        thead th.col-proforma { width: 80px;  text-align: center; }
        thead th.col-status   { width: 66px;  text-align: center; }
        thead th.col-del      { width: 34px; }

        tbody tr { transition: background 0.15s; }
        tbody tr:nth-child(even) { background: var(--orange-pale); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
        tbody tr:hover { background: var(--orange-light); }
        tbody td { padding: 9px 13px; border-bottom: 1px solid var(--orange-border); font-size: 13px; color: #111; vertical-align: middle; }
        td.td-no { text-align: center; font-weight: 700; color: var(--orange); }
        td.td-status, td.td-proforma { text-align: center; }
        td[contenteditable="true"] { cursor: text; min-width: 50px; }
        td[contenteditable="true"]:focus { outline: none; background: #fff8e1 !important; box-shadow: inset 0 -2px 0 var(--orange); }
        .status-checkbox { width: 18px; height: 18px; cursor: pointer; accent-color: var(--orange); }

        .proforma-btn { background: none; border: 1.5px solid #ddd; color: #bbb; cursor: pointer; font-size: 14px; padding: 3px 8px; border-radius: 5px; transition: all 0.2s; line-height: 1.3; }
        .proforma-btn:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-light); }
        .proforma-btn.has-data { background: var(--orange-light); border-color: var(--orange); color: var(--orange); }

        .delete-btn { background: none; border: none; color: var(--orange-dark); cursor: pointer; font-size: 14px; padding: 3px 6px; border-radius: 4px; opacity: 0.35; transition: opacity 0.2s, background 0.2s; }
        .delete-btn:hover { opacity: 1; background: var(--orange-light); }

        /* ── Drag & Drop ── */
        thead th.col-drag { width: 28px; }
        td.td-drag { text-align: center; }
        .drag-handle { cursor: grab; color: #d0c8c0; font-size: 15px; padding: 3px 5px; border-radius: 4px; user-select: none; display: inline-block; line-height: 1; }

        /* ── Rich Text Toolbar ── */
        .rich-toolbar { position: absolute; display: none; flex-direction: row; align-items: center; gap: 2px; background: #222222; border: 1px solid rgba(255,255,255,0.12); border-radius: 9px; padding: 5px 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.35); z-index: 9999; }
        .rtb-btn { background: none; border: none; color: #e0e0e0; padding: 4px 8px; border-radius: 5px; cursor: pointer; font-size: 13px; font-family: 'Plus Jakarta Sans', sans-serif; min-width: 30px; line-height: 1.3; transition: background 0.15s, color 0.15s; }
        .rtb-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
        .rtb-btn.active { background: var(--orange); color: #fff; }
        .rtb-sep { width: 1px; height: 18px; background: rgba(255,255,255,0.15); margin: 0 3px; flex-shrink: 0; }
        .rtb-btn svg { vertical-align: middle; display: inline-block; }
        .rtb-color-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; }
        .rtb-custom-dot { font-size: 13px; width: auto; height: auto; background: none !important; line-height: 1; }
        .drag-handle:hover { color: var(--orange); background: var(--orange-light); }
        .drag-handle:active { cursor: grabbing; }
        tr.dragging { opacity: 0.38; background: var(--orange-light) !important; }
        tr.drag-over-top    { box-shadow: inset 0 2px 0 var(--orange); }
        tr.drag-over-bottom { box-shadow: inset 0 -2px 0 var(--orange); }

        /* ── Actions ── */
        .actions { padding: 14px 36px 24px; display: flex; gap: 14px; flex-wrap: wrap; }
        .btn { padding: 10px 24px; border: none; border-radius: 6px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; letter-spacing: 0.3px; transition: all 0.2s; min-width: 130px; text-align: center; }
        .btn-add     { background: white; color: var(--orange); border: 2px solid var(--orange); }
        .btn-add:hover { background: var(--orange-light); }
        .btn-save    { background: var(--orange); color: white; }
        .btn-save:hover { background: var(--orange-dark); }
        .btn-print   { background: var(--orange); color: white; }
        .btn-print:hover { background: var(--orange-dark); }
        .btn-clear   { background: white; color: var(--orange-dark); border: 2px solid var(--orange-dark); margin-left: auto; }
        .btn-clear:hover { background: var(--orange-light); }

        /* ── Footer ── */
        .footer-note { background: var(--orange-pale); border-top: 1px solid var(--orange-border); padding: 11px 36px; font-size: 11px; color: #ffffff; text-align: center; }

        /* ── Toast ── */
        .toast { position: fixed; bottom: 28px; right: 28px; background: var(--dark); color: white; padding: 12px 22px; border-radius: 8px; font-size: 13px; font-weight: 600; font-family: 'Plus Jakarta Sans', sans-serif; box-shadow: 0 4px 16px rgba(0,0,0,0.25); opacity: 0; transform: translateY(10px); transition: all 0.3s; pointer-events: none; z-index: 9999; }
        .toast.show { opacity: 1; transform: translateY(0); }

        /* ── Modal ── */
        .modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
        .modal-overlay.open { display: flex; }
        .modal { background: white; border-radius: 10px; width: 100%; max-width: 480px; box-shadow: 0 8px 40px rgba(0,0,0,0.25); overflow: hidden; }
        .modal-wide { max-width: 760px; }
        .modal-header { background: var(--orange); padding: 16px 22px; display: flex; justify-content: space-between; align-items: center; }
        .modal-header h3 { color: white; font-size: 15px; font-weight: 700; letter-spacing: 0.5px; }
        .modal-close { background: rgba(255,255,255,0.2); border: none; color: white; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 13px; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
        .modal-close:hover { background: rgba(255,255,255,0.35); }
        .modal-body { padding: 22px; max-height: 70vh; overflow-y: auto; }
        .modal-footer { padding: 14px 22px; border-top: 1px solid #eee; display: flex; gap: 10px; justify-content: flex-end; }

        /* ── Proforma form ── */
        .form-row { margin-bottom: 15px; }
        .form-row label { display: block; font-size: 11px; font-weight: 700; color: #888; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
        .form-row input, .form-row textarea, .form-row select { width: 100%; border: 1.5px solid #ddd; border-radius: 5px; padding: 9px 12px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13px; color: #111; transition: border-color 0.2s; background: white; }
        .form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: none; border-color: var(--orange); }
        .form-row textarea { resize: vertical; min-height: 72px; }

        /* Multi-doc list */
        .pf-doc-list { margin-bottom: 4px; min-height: 32px; }
        .pf-empty { font-size: 12px; color: #bbb; padding: 10px 0; text-align: center; }
        .pf-doc-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #f9f6f2; border: 1px solid var(--orange-border); border-radius: 7px; margin-bottom: 6px; }
        .pf-doc-icon { font-size: 18px; flex-shrink: 0; }
        .pf-doc-meta { flex: 1; min-width: 0; font-size: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
        .pf-doc-no   { font-weight: 700; color: #111; }
        .pf-doc-name { color: #555; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
        .pf-doc-date { color: #888; font-size: 11px; }
        .pf-doc-note { color: #999; font-size: 11px; width: 100%; }
        .pf-doc-btns { display: flex; gap: 5px; flex-shrink: 0; }
        .pf-doc-btns .btn { font-size: 11px; padding: 3px 9px; }
        .pf-section-title { font-size: 10px; font-weight: 700; color: #aaa; letter-spacing: 1.5px; text-transform: uppercase; margin: 0 0 8px; }
        .pf-add-section { border-top: 1px solid #eee; padding-top: 14px; margin-top: 10px; }

        .pdf-upload-area { border: 2px dashed #ddd; border-radius: 8px; padding: 20px; text-align: center; transition: all 0.2s; background: #fafafa; }
        .pdf-upload-area.drag-over { border-color: var(--orange); background: var(--orange-light); }
        .pdf-icon-big  { font-size: 30px; margin-bottom: 8px; }
        .pdf-upload-hint { font-size: 12px; color: #aaa; margin-bottom: 12px; }
        .pdf-select-label { display: inline-block; cursor: pointer; padding: 8px 18px; background: white; border: 2px solid var(--orange); color: var(--orange); border-radius: 6px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 12px; font-weight: 600; transition: all 0.2s; }
        .pdf-select-label:hover { background: var(--orange); color: white; }
        .pdf-file-info { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 14px; }
        .pdf-file-icon { font-size: 26px; }
        .pdf-file-name { font-size: 13px; font-weight: 600; color: #111; word-break: break-all; max-width: 280px; }
        .pdf-file-actions { display: flex; gap: 10px; justify-content: center; }
        .pdf-file-actions .btn { padding: 7px 16px; font-size: 12px; }

        /* ── Mobile Responsive ── */
        /* ── Hamburger button (hidden on desktop) ── */
        .fp-mob-hamburger { display: none; }

        /* ── Sidebar backdrop (hidden on desktop) ── */
        .mob-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 4999; backdrop-filter: blur(3px); }
        .mob-backdrop.active { display: block; }

        /* ════════════ MOBILE ≤ 768px ════════════ */
        @media (max-width: 768px) {

            /* ── Sidebar as slide-in drawer ── */
            .sidebar {
                display: flex !important;
                position: fixed;
                left: -280px;
                top: 0; bottom: 0;
                width: 260px;
                z-index: 5000;
                transition: left 0.3s cubic-bezier(0.4,0,0.2,1);
                box-shadow: none;
            }
            .sidebar.mob-open {
                left: 0;
                box-shadow: 8px 0 40px rgba(0,0,0,0.6);
            }

            /* ── Hamburger button ── */
            .fp-mob-hamburger {
                display: flex; align-items: center; justify-content: center;
                width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
                background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
                color: rgba(244,240,234,0.8); cursor: pointer;
            }

            /* ── Topbar compact ── */
            .fp-topbar { padding: 12px 0 10px; gap: 10px; justify-content: space-between; }
            .fp-topbar-left { display: none; }
            .fp-topbar-search-wrap { display: none; }
            .fp-topbar-user-info { display: flex; }
            .fp-topbar-username { display: none; }
            .fp-topbar-fullname { font-size: 13px; }
            .fp-topbar-bell { display: flex; }
            .fp-topbar-user { padding: 6px 14px 6px 6px; gap: 8px; min-width: 130px; }
            .fp-topbar-actions { gap: 8px; }

            /* ── Container ── */
            .container { padding: 0 16px 32px; }

            /* ── Hero ── */
            .fp-hero { gap: 16px; padding: 22px 20px; border-radius: 18px; }
            .fp-hero-title { font-size: 22px; }
            .fp-hero-right { gap: 8px; }
            .fp-hero-stat { padding: 12px 14px; }
            .fp-hero-stat-val { font-size: 24px; }
            .fp-hero-stat-lbl { font-size: 10px; }
            .fp-hero-stat-val { font-size: 26px; }
            .fp-hero-stat-lbl { font-size: 10px; }

            /* ── Order Bar ── */
            .order-bar {
                flex-wrap: wrap; gap: 10px; padding: 12px 16px;
                border-radius: 16px; margin-bottom: 10px;
            }
            .order-select-wrap { width: 100%; flex-basis: 100%; }
            .order-select-display { width: 100%; }
            .order-actions { flex-direction: row; flex-wrap: wrap; gap: 8px; width: 100%; }
            .order-actions .btn { flex: 1; min-width: 0; text-align: center; font-size: 12px; padding: 9px 10px; }
            .order-search-wrap { display: none; }

            /* ── Progress ── */
            .progress-section { border-radius: 12px; padding: 10px 16px; margin-bottom: 10px; }

            /* ── Order content card ── */
            #orderContent { border-radius: 16px; }

            /* ── Info bar ── */
            .info-bar { flex-direction: column; gap: 10px; padding: 14px 16px; }
            .info-item { min-width: 0; width: 100%; flex: 1 1 100% !important; }
            .info-static { white-space: normal; }
            .info-input { width: 100%; box-sizing: border-box; }

            /* ── Note ── */
            .note-section { padding: 12px 16px; }
            .note-input { font-size: 13px; }

            /* ── Table: horizontal scroll ── */
            .table-section { padding: 0 0 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
            table { min-width: 580px; }
            thead th { padding: 9px 8px; font-size: 9px; letter-spacing: 0.5px; }
            tbody td { padding: 8px 8px; font-size: 12px; }
            th.col-sorumlu, td.col-sorumlu { width: 80px; }
            th.col-aciklama, td.col-aciklama { width: 140px; }

            /* ── Actions ── */
            .actions { flex-wrap: wrap; gap: 8px; padding: 14px 16px 18px; }
            .actions .btn { flex: 1; min-width: 130px; text-align: center; }

            /* ── Empty state ── */
            .empty-state { border-radius: 16px; padding: 48px 20px; }

            /* ── Completed orders ── */
            .co-panel { border-radius: 16px; }
            .co-panel-head { padding: 16px 18px 14px; }
            .co-cards-grid { grid-template-columns: 1fr !important; gap: 10px; }

            /* ── Report modal → bottom sheet ── */
            .rm-overlay { align-items: flex-end; padding: 0; }
            .rm-box { border-radius: 24px 24px 0 0; max-height: 92vh; width: 100%; max-width: 100%; margin: 0; }
            .rm-header { padding: 20px 20px 16px; }
            .rm-body { padding: 16px 20px; }
            .rm-filters { flex-wrap: wrap; gap: 8px; }
            .rm-filter { padding: 6px 12px; font-size: 11px; }

            /* ── Active orders popup → bottom sheet ── */
            .aop-overlay { display: none; position: fixed; inset: 0; z-index: 2000; align-items: flex-end; }
            .aop-overlay.open { display: flex; }
            .aop-box {
                position: static !important;
                width: 100% !important;
                max-width: 100% !important;
                border-radius: 24px 24px 0 0 !important;
                max-height: 75vh; overflow-y: auto;
            }

            /* ── Confirm dialog ── */
            .confirm-box { width: calc(100vw - 40px); padding: 28px 20px 20px; }
        }

        /* ════════════ MOBILE ≤ 420px ════════════ */
        @media (max-width: 420px) {
            .fp-hero-title { font-size: 19px; }
            .fp-hero-stat-val { font-size: 22px; }
            table { min-width: 500px; }
            .order-actions .btn { font-size: 11px; padding: 8px 8px; }
        }

        /* ── Country Tabs ── */
        .country-row { display: flex; align-items: center; gap: 12px; padding-right: 20px; border-right: 1px solid rgba(255,255,255,0.1); flex-shrink: 0; }
        .country-flag { font-size: 13px; line-height: 1; }
        .country-tag { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.18); border: 1.5px solid rgba(255,255,255,0.3); border-radius: 20px; padding: 4px 13px; color: white; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; white-space: nowrap; flex-shrink: 0; }

        /* ── Dashboard Sidebar ── */
        .db-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 8000; }
        .db-overlay.open { display: block; }
        .db-sidebar { position: fixed; top: 0; right: -420px; width: 400px; height: 100vh; background: #1b1a1a; z-index: 8001; display: flex; flex-direction: column; transition: right 0.3s cubic-bezier(.4,0,.2,1); box-shadow: -6px 0 32px rgba(0,0,0,0.35); }
        .db-sidebar.open { right: 0; }
        .db-head { padding: 18px 20px 14px; border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
        .db-title { font-size: 14px; font-weight: 700; color: white; letter-spacing: 2px; display: flex; align-items: center; gap: 9px; }
        .db-close { background: rgba(255,255,255,0.1); border: none; color: white; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 13px; transition: background 0.2s; }
        .db-close:hover { background: rgba(255,255,255,0.22); }
        .db-body { flex: 1; overflow-y: auto; padding: 16px; }
        .db-body::-webkit-scrollbar { width: 4px; }
        .db-body::-webkit-scrollbar-track { background: transparent; }
        .db-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

        .db-country-block { margin-bottom: 20px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; overflow: hidden; }
        .db-country-head { padding: 12px 14px 10px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,0.07); }
        .db-country-name { font-size: 13px; font-weight: 700; color: white; letter-spacing: 1px; flex: 1; }
        .db-country-stat { font-size: 11px; color: white; font-weight: 600; }
        .db-mini-bar { height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; margin: 6px 14px 0; }
        .db-mini-fill { height: 100%; background: linear-gradient(90deg, var(--orange), #ff8a63); border-radius: 2px; transition: width 0.4s ease; }

        .db-supplier-block { padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.05); }
        .db-supplier-block:last-child { border-bottom: none; }
        .db-sup-head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
        .db-sup-name { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: var(--orange); }
        .db-sup-count { font-size: 10px; color: rgba(255,255,255,0.35); }

        .db-order-item { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 6px; cursor: pointer; transition: background 0.15s; margin-bottom: 4px; }
        .db-order-item:hover { background: rgba(255,90,54,0.12); }
        .db-order-item:last-child { margin-bottom: 0; }
        .db-order-name { font-size: 12px; color: rgba(255,255,255,0.8); font-weight: 600; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .db-order-pct { font-size: 10px; font-weight: 700; color: var(--orange); white-space: nowrap; }
        .db-order-bar { width: 60px; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; flex-shrink: 0; }
        .db-order-bar-fill { height: 100%; border-radius: 2px; }
        .db-no-order { font-size: 11px; color: rgba(255,255,255,0.25); font-style: italic; padding: 4px 0; }

        .db-total { margin-top: 16px; background: rgba(255,90,54,0.1); border: 1px solid rgba(255,90,54,0.25); border-radius: 10px; padding: 14px 16px; }
        .db-total-title { font-size: 10px; font-weight: 700; letter-spacing: 2px; color: rgba(255,255,255,0.5); margin-bottom: 10px; }
        .db-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
        .db-total-label { font-size: 12px; color: rgba(255,255,255,0.7); }
        .db-total-val { font-size: 13px; font-weight: 700; color: var(--orange); }
        .db-total-bar { height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; margin-top: 8px; }
        .db-total-bar-fill { height: 100%; background: linear-gradient(90deg, var(--orange), #ff8a63); border-radius: 3px; transition: width 0.5s ease; }

        .btn-dashboard-fab { position: fixed; bottom: 28px; left: 28px; background: var(--dark); color: white; border: none; border-radius: 50px; padding: 13px 22px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 20px rgba(0,0,0,0.3); z-index: 7999; display: flex; align-items: center; gap: 9px; transition: all 0.2s; letter-spacing: 0.5px; }
        .btn-dashboard-fab:hover { background: var(--orange); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(255,90,54,0.4); }
        @media print { .btn-dashboard-fab { display: none !important; } }

        @media (max-width: 768px) {
            .db-sidebar { width: 100%; right: -100%; }
        }

        /* ── Login Overlay (split-screen) ──
           Sol: turuncu gradient showcase paneli. Sağ: koyu form paneli —
           Etavion logo ikonuyla birebir aynı turuncu (--orange/--orange-dark). */
        #loginOverlay { position: fixed; inset: 0; display: flex; z-index: 99999; background: #111111; }

        .login-side-form { flex: 0 0 50%; max-width: 640px; display: flex; align-items: center; justify-content: center; padding: 56px; background: #111111; }
        .login-box { width: 100%; max-width: 380px; text-align: left; }
        .login-brand-lockup { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
        .login-brand-icon { width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; background: linear-gradient(140deg, var(--orange), var(--orange-dark)); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(255,90,54,0.3); }
        .login-brand-word { font-size: 17px; font-weight: 800; letter-spacing: 1.5px; color: #f4f0ea; }
        .login-title { font-size: 24px; font-weight: 800; color: #fff; letter-spacing: -0.3px; margin-bottom: 6px; }
        .login-title-accent { width: 38px; height: 4px; border-radius: 3px; margin-bottom: 18px; background: linear-gradient(90deg, rgba(255,255,255,0.25), var(--orange)); }
        .login-subtitle { font-size: 13.5px; color: rgba(255,255,255,0.45); margin-bottom: 28px; line-height: 1.6; }
        .login-form { display: flex; flex-direction: column; gap: 14px; }

        .login-field { position: relative; }
        .login-field-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.35); pointer-events: none; display: flex; }
        .login-input { width: 100%; border: 1.5px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 13px 14px 13px 42px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; color: #fff; background: rgba(255,255,255,0.05); transition: border-color 0.2s, box-shadow 0.2s; }
        .login-input::placeholder { color: rgba(255,255,255,0.28); }
        .login-input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,90,54,0.15); background: rgba(255,255,255,0.08); }
        .login-input:-webkit-autofill,
        .login-input:-webkit-autofill:hover,
        .login-input:-webkit-autofill:focus {
            -webkit-text-fill-color: #fff;
            -webkit-box-shadow: 0 0 0 1000px #141414 inset;
            box-shadow: 0 0 0 1000px #141414 inset;
            transition: background-color 9999s ease-in-out 0s;
            caret-color: #fff;
        }
        .login-eye-btn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; padding: 4px; cursor: pointer; color: rgba(255,255,255,0.35); display: flex; }
        .login-eye-btn:hover { color: #fff; }

        .remember-row { display: flex; align-items: center; margin-top: 2px; }
        .remember-label { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13px; color: rgba(255,255,255,0.45); user-select: none; transition: color 0.15s; }
        .remember-label:hover { color: rgba(255,255,255,0.7); }
        .remember-check {
            appearance: none; -webkit-appearance: none; -moz-appearance: none;
            width: 17px; height: 17px; border-radius: 5px; flex-shrink: 0; margin: 0; cursor: pointer;
            border: 1.5px solid rgba(255,255,255,0.22); background-color: rgba(255,255,255,0.05);
            background-position: center; background-repeat: no-repeat; background-size: 11px;
            transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
        }
        .remember-check:hover { border-color: rgba(255,90,54,0.55); }
        .remember-check:checked {
            background-color: var(--orange); border-color: var(--orange);
            background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
        }
        .remember-check:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,90,54,0.22); }

        .btn-login { width: 100%; padding: 14px; margin-top: 4px; background: var(--orange); color: white; border: none; border-radius: 10px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14.5px; font-weight: 700; cursor: pointer; transition: background 0.2s, transform 0.15s, box-shadow 0.2s; letter-spacing: 0.2px; }
        .btn-login:hover { background: var(--orange-dark); box-shadow: 0 6px 20px rgba(255,90,54,0.25); }
        .btn-login:active { transform: scale(0.985); }
        .login-error { margin-top: 14px; font-size: 12px; color: var(--orange); font-weight: 600; min-height: 18px; }

        .btn-signout { background: none; border: 1px solid rgba(34,34,34,0.22); color: rgba(34,34,34,0.5); font-family: 'Plus Jakarta Sans',sans-serif; font-size: 11px; font-weight: 600; cursor: pointer; padding: 4px 10px; border-radius: 4px; transition: all 0.2s; }
        .btn-signout:hover { color: var(--dark); background: rgba(34,34,34,0.07); border-color: rgba(34,34,34,0.4); }

        /* Right showcase panel */
        .login-side-show { flex: 1; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 72px; background: linear-gradient(160deg, #1c1c1c 0%, #121212 100%); }
        .login-side-show::before { content:''; position:absolute; top:-100px; left:-100px; width:340px; height:340px; border-radius:50%; background:var(--orange); filter:blur(80px); opacity:0.18; pointer-events:none; }
        .login-side-show::after  { content:''; position:absolute; bottom:-110px; right:-90px; width:320px; height:320px; border-radius:50%; background:#000; filter:blur(80px); opacity:0.35; pointer-events:none; }
        .login-show-content { position: relative; z-index: 1; max-width: 440px; }
        .login-show-heading { font-size: 32px; font-weight: 800; color: #fff; line-height: 1.25; margin-bottom: 14px; }
        .login-show-sub { font-size: 14.5px; color: var(--dm-text-sub); line-height: 1.6; margin-bottom: 40px; }

        .login-mock { position: relative; z-index: 1; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 22px; backdrop-filter: blur(6px); }
        .login-mock-head { display: flex; gap: 6px; margin-bottom: 18px; }
        .login-mock-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.14); }
        .login-mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
        .login-mock-stat { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; padding: 12px; }
        .login-mock-stat-val { font-size: 17px; font-weight: 800; color: #fff; }
        .login-mock-stat-label { font-size: 10px; color: var(--dm-text-muted); margin-top: 3px; }
        .login-mock-bars { display: flex; align-items: flex-end; gap: 7px; height: 54px; }
        .login-mock-bars span { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--orange), #ff8a63); opacity: 0.85; }

        @media (max-width: 900px) {
            .login-side-show { display: none; }
            .login-side-form { flex: 1; max-width: none; }
        }
        .btn-signout { background: none; border: 1px solid rgba(34,34,34,0.22); color: rgba(34,34,34,0.5); font-family: 'Plus Jakarta Sans',sans-serif; font-size: 11px; font-weight: 600; cursor: pointer; padding: 4px 10px; border-radius: 4px; transition: all 0.2s; }
        .btn-signout:hover { color: var(--dark); background: rgba(34,34,34,0.07); border-color: rgba(34,34,34,0.4); }

        /* ════════════════════════════════════════════════
           DARK MODE — Full Application (screen only — print unaffected)
        ════════════════════════════════════════════════ */
        @media screen {
        :root {
            --dm-bg:          #0a0a0a;
            --dm-surface:     #111111;
            --dm-card:        #1b1a1a;
            --dm-card-hover:  #2a2a2a;
            --dm-border:      rgba(255,255,255,0.07);
            --dm-border-mid:  rgba(255,255,255,0.11);
            --dm-text:        #f4f0ea;
            --dm-text-sub:    rgba(244,240,234,0.45);
            --dm-text-muted:  rgba(244,240,234,0.28);
        }

        /* Base */
        body         { background: var(--dm-bg); }
        .main-wrapper { background: var(--dm-bg); }
        .container   { background: transparent; }

        /* fp-topbar dark overrides */
        .fp-topbar { border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 8px; }
        #syncStatus { font-size: 11px; }
        .fp-topbar-search-wrap:hover,
        .fp-topbar-search-wrap:focus-within { transform: scale(1.04); }
        .fp-topbar-search:hover,
        .fp-topbar-search:focus {
            border: 1px solid transparent !important;
            outline: none;
            background:
                linear-gradient(#121212, #121212) padding-box,
                conic-gradient(from var(--border-angle),
                    rgba(255,255,255,0.03) 0%,
                    rgba(255,90,54,0.15)  85%,
                    rgba(255,90,54,0.6)   88%,
                    rgba(255,255,255,1)   90%,
                    rgba(255,90,54,0.6)   92%,
                    rgba(255,90,54,0.0)   95%,
                    rgba(255,255,255,0.03) 100%
                ) border-box !important;
            animation: fp-card-border 4s linear infinite;
        }
        .page-title { display: none; }

        /* ── Section header (like "Trading History") ── */
        .section-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 12px; }
        .section-header-left { display: flex; align-items: center; gap: 10px; }
        .section-icon { width: 32px; height: 32px; border-radius: 9px; background: rgba(255,90,54,0.15); color: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
        .section-title { font-size: 15px; font-weight: 700; color: #f4f0ea; letter-spacing: 0.5px; }
        .section-header-right { display: flex; align-items: center; gap: 8px; }
        .section-badge { font-size: 12px; font-weight: 700; color: var(--orange); background: rgba(255,90,54,0.12); padding: 4px 12px; border-radius: 20px; border: 1px solid rgba(255,90,54,0.2); }
        .section-badge-label { font-size: 12px; color: rgba(255,255,255,0.75); font-weight: 600; letter-spacing: 0.3px; }

        /* ── Order Bar dark ── */
        .order-bar {
            background: linear-gradient(160deg, #1e1e1e 0%, #121212 100%);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 20px;
            padding: 14px 28px;
            margin-bottom: 12px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.25);
        }
        .order-bar-empty { color: rgba(255,255,255,0.28); }
        .order-select-display { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.1); font-size: 13px; border-radius: 10px; }
        .order-select-display:hover, .order-select-display:focus { background: rgba(255,255,255,0.11); }

        /* ── Progress bar dark ── */
        .progress-section {
            background: linear-gradient(160deg, #1e1e1e 0%, #121212 100%);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 14px;
            padding: 12px 28px 14px;
            margin-bottom: 12px;
            box-shadow: 0 4px 16px rgba(0,0,0,0.2);
        }
        .progress-label { color: rgba(255,255,255,0.35); font-size: 10px; letter-spacing: 1.5px; }
        .progress-text  { color: var(--orange); font-size: 11px; }
        .progress-bar-bg { background: rgba(255,255,255,0.07); height: 6px; border-radius: 4px; }
        .progress-bar-fill { background: linear-gradient(90deg, var(--orange), #ff8a63); border-radius: 4px; }

        /* ── Order Content card wrapper ── */
        #orderContent {
            background: linear-gradient(160deg, #1e1e1e 0%, #121212 100%);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 20px;
            overflow: hidden;
            margin-bottom: 12px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.25);
        }

        /* ── Info bar inside card ── */
        .info-bar {
            background: rgba(255,255,255,0.03);
            border-bottom: 1px solid rgba(255,255,255,0.07);
            padding: 13px 28px;
        }

        /* ── Note section dark ── */
        .note-section {
            background: transparent;
            border-bottom: 1px solid rgba(255,255,255,0.07);
            padding: 14px 28px;
        }
        .note-label { color: rgba(255,255,255,0.3); letter-spacing: 2px; }
        .note-input {
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.1);
            color: var(--dm-text);
            border-radius: 10px;
        }
        .note-input::placeholder { color: rgba(255,255,255,0.22); }
        .note-input:focus { background: rgba(255,255,255,0.08); border-color: rgba(255,90,54,0.45); }

        /* ── Table dark ── */
        .table-section { padding: 0 24px 8px; background: transparent; }
        table { background: transparent; }
        thead tr { background: rgba(255,90,54,0.1) !important; }
        thead th { color: rgba(255,255,255,0.65) !important; border-bottom: 1px solid rgba(255,90,54,0.2); font-size: 10px; letter-spacing: 1px; }
        tbody tr { background: transparent; }
        tbody tr:nth-child(even) { background: rgba(255,255,255,0.025) !important; }
        tbody tr:hover { background: rgba(255,90,54,0.05) !important; }
        tbody td { border-bottom: 1px solid rgba(255,255,255,0.04); color: var(--dm-text); }
        td.td-no { color: var(--orange); }
        td[contenteditable="true"]:focus { background: rgba(255,255,255,0.07) !important; box-shadow: inset 0 -2px 0 var(--orange); color: white; }
        .drag-handle { color: rgba(255,255,255,0.2); }
        .drag-handle:hover { color: var(--orange); background: rgba(255,90,54,0.1); }
        tr.dragging { background: rgba(255,90,54,0.07) !important; }

        /* ── Actions section dark ── */
        .actions {
            background: rgba(255,255,255,0.02);
            border-top: 1px solid rgba(255,255,255,0.06);
            padding: 16px 28px 20px;
        }

        /* ── Proforma / Delete buttons dark ── */
        .proforma-btn { border-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.3); background: transparent; }
        .proforma-btn:hover { border-color: var(--orange); color: var(--orange); background: rgba(255,90,54,0.1); }
        .proforma-btn.has-data { background: rgba(255,90,54,0.15); border-color: var(--orange); color: #ff8a63; }
        .delete-btn { color: rgba(255,90,54,0.55); }
        .delete-btn:hover { background: rgba(255,90,54,0.12); opacity: 1; }

        /* ── Empty state dark ── */
        .empty-state {
            background: linear-gradient(160deg, #1e1e1e 0%, #121212 100%);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 20px;
            padding: 64px 36px;
            margin-bottom: 12px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.25);
        }
        .empty-state-icon { color: rgba(255,255,255,0.18); }
        .empty-state h3 { color: rgba(255,255,255,0.4); }
        .empty-state p  { color: rgba(255,255,255,0.2); }
        .empty-state .btn { background: linear-gradient(135deg,var(--orange),var(--orange-dark)); color: white; border: none; box-shadow: 0 4px 16px rgba(255,90,54,0.3); }

        /* ── Footer dark ── */
        .footer-note { display: none !important; }

        /* ── Ayarlar (firma admin — marka + şema düzenleme) ── */
        .settings-panel {
            background: linear-gradient(160deg, #1e1e1e 0%, #121212 100%);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 20px;
            padding: 28px 32px 36px;
            margin-bottom: 12px;
        }
        .settings-panel-head { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,0.07); padding-bottom: 18px; }
        .settings-panel-icon { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,90,54,0.15); color: var(--orange); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
        .settings-panel-title { font-size: 18px; font-weight: 700; color: var(--dm-text); letter-spacing: 0.5px; }
        .settings-panel-sub { font-size: 12px; color: var(--dm-text-sub); margin-top: 3px; }

        .settings-section { margin-bottom: 30px; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,0.06); }
        .settings-section:last-of-type { border-bottom: none; margin-bottom: 20px; }
        .settings-section-title { font-size: 11px; font-weight: 700; color: var(--dm-text-sub); letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 14px; }

        .settings-field { margin-bottom: 14px; }
        .settings-field label { display: block; font-size: 11px; font-weight: 700; color: var(--dm-text-sub); letter-spacing: 0.4px; text-transform: uppercase; margin-bottom: 7px; }
        .settings-input {
            width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
            border-radius: 8px; padding: 11px 13px; color: var(--dm-text); font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13px;
            transition: border-color 0.2s, background 0.2s;
        }
        .settings-input::placeholder { color: rgba(244,240,234,0.28); }
        .settings-input:focus { outline: none; border-color: rgba(255,90,54,0.45); background: rgba(255,255,255,0.08); }
        select.settings-input option { background: #1e1e1e; color: var(--dm-text); }

        .settings-logo-upload { display: flex; align-items: center; gap: 16px; }
        .settings-logo-preview { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 6px; }
        .settings-logo-upload-controls { display: flex; align-items: center; gap: 12px; }
        .settings-logo-status { font-size: 11.5px; color: var(--dm-text-sub); }

        .settings-dyn-head { display: flex; justify-content: flex-end; margin-bottom: 10px; }
        .settings-add-btn { background: transparent; border: 1.5px solid rgba(255,90,54,0.35); color: var(--orange); border-radius: 8px; padding: 5px 12px; font-family: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
        .settings-add-btn:hover { background: rgba(255,90,54,0.1); }
        .settings-dyn-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
        .settings-dyn-row .settings-input { flex: 2; }
        .settings-dyn-row .settings-input-sm { flex: 1; }
        .settings-dyn-row .settings-input-xs { flex: 0 0 56px; text-align: center; }
        .settings-dyn-row .settings-color { flex: 0 0 44px; height: 40px; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; background: rgba(255,255,255,0.05); cursor: pointer; padding: 2px; }
        .settings-dyn-remove { flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px; border: 1.5px solid rgba(255,255,255,0.15); background: transparent; color: rgba(255,255,255,0.5); cursor: pointer; font-size: 12px; }
        .settings-dyn-remove:hover { background: rgba(255,255,255,0.08); }

        .settings-msg { font-size: 12px; margin-top: 14px; min-height: 16px; font-weight: 600; }
        .settings-msg-ok  { color: var(--orange); }
        .settings-msg-err { color: var(--dm-text); }

        @media (max-width: 768px) {
            .settings-panel { padding: 20px 18px 24px; }
            .settings-dyn-row { flex-wrap: wrap; }
        }

        /* ── Completed orders panel dark ── */
        .co-panel {
            background: linear-gradient(160deg, #1e1e1e 0%, #121212 100%);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0,0,0,0.25);
        }
        .co-panel-head { border-bottom: 1px solid rgba(255,255,255,0.07); padding: 20px 24px 16px; }
        .co-panel-title { color: var(--dm-text); }
        .co-panel-sub { color: var(--dm-text-sub); }
        .co-card {
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 16px;
            transition: border-color 0.2s, background 0.2s, transform 0.2s;
        }
        .co-card:hover {
            background: rgba(255,255,255,0.06);
            border-color: rgba(255,90,54,0.35);
            transform: translateY(-2px);
        }
        .co-card-title { color: var(--dm-text); }
        .co-card-meta  { color: var(--dm-text-sub); }
        .co-card-progress { background: rgba(255,255,255,0.07); border-radius: 4px; }
        .co-empty-text { color: rgba(255,255,255,0.22); }

        /* ── Suggestion dropdown ── */
        .order-suggestions { background: #2a2a2a; border: 1px solid var(--dm-border-mid); }
        .sug-item { border-bottom-color: rgba(255,255,255,0.06); }
        .sug-item:hover, .sug-item.active { background: rgba(255,90,54,0.1); }
        .sug-name { color: var(--dm-text); }
        .sug-icerik { color: var(--dm-text-sub); }
        .sug-empty { color: var(--dm-text-muted); }

        /* ── Icerik dropdown dark ── */
        .icerik-menu { background: #2a2a2a; border: 1px solid var(--dm-border-mid); }
        .icerik-option { color: var(--dm-text); }
        .icerik-option:hover { background: rgba(255,90,54,0.1); }
        .icerik-option.checked { background: rgba(255,90,54,0.12); color: #ff8a63; }

        /* ── DB Sidebar (Rapor Paneli) dark — already dark, minor tweaks ── */
        .db-sidebar { background: #171717; }
        .db-head { border-bottom-color: var(--dm-border); }
        .db-order-count { color: var(--dm-text-sub); }

        /* ── FP Hero Banner ── */
        .fp-hero {
            background: linear-gradient(160deg, #1e1e1e 0%, #121212 100%) padding-box,
                        conic-gradient(from var(--border-angle),
                            rgba(255,255,255,0.03) 0%,
                            rgba(255,90,54,0.15)  85%,
                            rgba(255,90,54,0.6)   88%,
                            rgba(255,255,255,1)   90%,
                            rgba(255,90,54,0.6)   92%,
                            rgba(255,90,54,0.0)   95%,
                            rgba(255,255,255,0.03) 100%
                        ) border-box;
            border: 1px solid transparent;
            animation: fp-card-border 10s linear infinite;
            border-radius: 24px;
            padding: 36px 40px 28px;
            display: flex;
            flex-direction: column;
            gap: 24px;
            margin-bottom: 20px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 8px 32px rgba(0,0,0,0.35);
            transition: border-color 0.3s, box-shadow 0.3s;
        }
        /* Orange glow orb — top-left */
        .fp-hero::before {
            content: '';
            position: absolute;
            top: -80px; left: -80px;
            width: 300px; height: 300px;
            border-radius: 50%;
            background: var(--orange);
            filter: blur(65px);
            opacity: 0.12;
            pointer-events: none;
        }
        /* Neutral glow orb — bottom-right */
        .fp-hero::after {
            content: '';
            position: absolute;
            bottom: -80px; right: -60px;
            width: 280px; height: 280px;
            border-radius: 50%;
            background: #ffffff;
            filter: blur(65px);
            opacity: 0.08;
            pointer-events: none;
        }
        .fp-hero:hover { border-color: rgba(255,90,54,0.3); box-shadow: 0 16px 48px rgba(255,90,54,0.08), 0 8px 32px rgba(0,0,0,0.4); }
        .fp-hero-left { position: relative; z-index: 1; }
        .fp-hero-eyebrow {
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 1.8px;
            text-transform: uppercase;
            color: var(--orange);
            margin-bottom: 10px;
        }
        .fp-hero-title {
            font-size: 28px;
            font-weight: 800;
            color: #fff;
            line-height: 1.2;
            margin-bottom: 8px;
        }
        .fp-hero-sub {
            font-size: 14px;
            color: rgba(244,240,234,0.5);
            margin-bottom: 26px;
        }
        .fp-hero-btn {
            background: linear-gradient(135deg, var(--orange), var(--orange-dark));
            color: #fff;
            border: none;
            border-radius: 12px;
            padding: 12px 24px;
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
            box-shadow: 0 4px 20px rgba(255,90,54,0.35);
        }
        .fp-hero-btn:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 8px 28px rgba(255,90,54,0.45); }
        .fp-hero-right {
            display: flex;
            flex-direction: row;
            gap: 10px;
            position: relative; z-index: 1;
            width: 100%;
        }
        .fp-hero-stat {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 6px;
            padding: 16px 20px;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.07);
            border-radius: 16px;
            position: relative;
            overflow: hidden;
            transition: background 0.2s, border-color 0.2s;
        }
        .fp-hero-stat:hover { background: rgba(255,255,255,0.07); }
        .fp-hero-stat::before {
            content: '';
            position: absolute;
            left: 0; top: 0; bottom: 0;
            width: 3px;
            border-radius: 0 2px 2px 0;
            background: rgba(255,255,255,0.12);
        }
        .fp-hero-stat:nth-child(3)::before { background: rgba(255,255,255,0.3); }
        .fp-hero-stat:nth-child(5)::before { background: var(--orange); }
        .fp-hero-stat-val {
            font-size: 30px;
            font-weight: 800;
            color: rgba(244,240,234,0.9);
            line-height: 1;
        }
        .fp-hero-stat-val.fp-green  { color: rgba(244,240,234,0.9); }
        .fp-hero-stat-val.fp-orange { color: var(--orange); }
        .fp-hero-stat-lbl {
            font-size: 11px;
            font-weight: 500;
            color: rgba(244,240,234,0.4);
            letter-spacing: 0.4px;
            white-space: nowrap;
        }
        .fp-hero-stat-divider { display: none; }

        /* ── FP 3 Stat Cards ── */
        .fp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; }
        .fp-card {
            background: linear-gradient(160deg, #1e1e1e 0%, #121212 100%) padding-box,
                        conic-gradient(from var(--border-angle),
                            rgba(255,255,255,0.03) 0%,
                            rgba(255,90,54,0.15)  85%,
                            rgba(255,90,54,0.6)   88%,
                            rgba(255,255,255,1)   90%,
                            rgba(255,90,54,0.6)   92%,
                            rgba(255,90,54,0.0)   95%,
                            rgba(255,255,255,0.03) 100%
                        ) border-box;
            border: 1px solid transparent;
            border-radius: 24px; padding: 28px;
            display: flex; flex-direction: column;
            position: relative; overflow: hidden;
            box-shadow: 0 8px 32px rgba(0,0,0,0.35);
            transition: transform 0.3s, box-shadow 0.3s;
            animation: fp-card-border 10s linear infinite;
        }
        /* Static glow orb — top-left corner */
        .fp-card::before { content: ''; position: absolute; top: -70px; left: -70px; width: 260px; height: 260px; border-radius: 50%; filter: blur(55px); opacity: 0.13; pointer-events: none; }
        .fp-card::after  { content: ''; pointer-events: none; }

        #fpCard1 { background: linear-gradient(160deg, #1e1e1e 0%, #121212 100%) padding-box, conic-gradient(from var(--border-angle), rgba(255,255,255,0.03) 0%, rgba(255,90,54,0.15) 85%, rgba(255,90,54,0.6) 88%, rgba(255,255,255,1) 90%, rgba(255,90,54,0.6) 92%, rgba(255,90,54,0.0) 95%, rgba(255,255,255,0.03) 100%) border-box; }
        #fpCard1::before { background: var(--orange); }
        #fpCard1:hover   { box-shadow: 0 20px 56px rgba(255,90,54,0.18), 0 8px 32px rgba(0,0,0,0.4); transform: translateY(-4px); }

        #fpCard2 { background: linear-gradient(160deg, #1e1e1e 0%, #121212 100%) padding-box, conic-gradient(from var(--border-angle), rgba(255,255,255,0.03) 0%, rgba(255,138,99,0.15) 85%, rgba(255,138,99,0.6) 88%, rgba(255,255,255,1) 90%, rgba(255,138,99,0.6) 92%, rgba(255,138,99,0.0) 95%, rgba(255,255,255,0.03) 100%) border-box; }
        #fpCard2::before { background: #ff8a63; }
        #fpCard2:hover   { box-shadow: 0 20px 56px rgba(255,138,99,0.22), 0 8px 32px rgba(0,0,0,0.4); transform: translateY(-4px); }

        #fpCard3 { background: linear-gradient(160deg, #1e1e1e 0%, #121212 100%) padding-box, conic-gradient(from var(--border-angle), rgba(255,255,255,0.03) 0%, rgba(226,67,31,0.15) 85%, rgba(226,67,31,0.6) 88%, rgba(255,255,255,1) 90%, rgba(226,67,31,0.6) 92%, rgba(226,67,31,0.0) 95%, rgba(255,255,255,0.03) 100%) border-box; }
        #fpCard3::before { background: var(--orange-dark); }
        #fpCard3:hover   { box-shadow: 0 20px 56px rgba(226,67,31,0.2), 0 8px 32px rgba(0,0,0,0.4); transform: translateY(-4px); }

        .fp-card-top { margin-bottom: 20px; }
        .fp-card-badge {
            width: 56px; height: 56px; border-radius: 18px;
            display: flex; align-items: center; justify-content: center;
            transition: transform 0.25s, box-shadow 0.25s;
        }
        .fp-card:hover .fp-card-badge { transform: scale(1.08); }
        .fp-badge-orange { background: linear-gradient(135deg, rgba(255,90,54,0.28), rgba(255,90,54,0.12)); color: #ff7722; border: 1px solid rgba(255,90,54,0.25); }
        .fp-card:hover .fp-badge-orange { box-shadow: 0 0 28px rgba(255,90,54,0.35); }
        .fp-badge-green  { background: linear-gradient(135deg, rgba(255,138,99,0.24), rgba(255,138,99,0.09)); color: #ff8a63; border: 1px solid rgba(255,138,99,0.24); }
        .fp-card:hover .fp-badge-green  { box-shadow: 0 0 28px rgba(255,138,99,0.32); }
        .fp-badge-purple { background: linear-gradient(135deg, rgba(226,67,31,0.22), rgba(226,67,31,0.08)); color: var(--orange-dark); border: 1px solid rgba(226,67,31,0.22); }
        .fp-card:hover .fp-badge-purple { box-shadow: 0 0 28px rgba(226,67,31,0.28); }

        .fp-card-title { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 6px; line-height: 1.3; }
        .fp-card-desc { font-size: 12px; color: rgba(244,240,234,0.38); margin-bottom: 18px; line-height: 1.5; }
        .fp-card-rows { flex: 1; display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
        .fp-card-row { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); }
        .fp-card-check { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
        .fp-card-check.done    { background: rgba(255,90,54,0.18); color: var(--orange); }
        .fp-card-check.partial { background: rgba(255,90,54,0.15); color: var(--orange); }
        .fp-card-check.empty   { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.2); }
        .fp-card-row-label { color: rgba(244,240,234,0.65); flex: 1; font-weight: 500; }
        .fp-card-row-val { font-weight: 700; color: #fff; font-size: 12px; }
        .fp-card-row-val.ok   { color: var(--orange); }
        .fp-card-row-val.warn { color: #ff8a63; }
        .fp-card-btn {
            width: 100%; margin-top: auto;
            background: rgba(255,255,255,0.05);
            color: rgba(244,240,234,0.75); border: 1px solid rgba(255,255,255,0.1);
            border-radius: 14px; padding: 13px 20px;
            font-size: 14px; font-weight: 700; font-family: 'Plus Jakarta Sans', sans-serif;
            cursor: pointer; transition: all 0.25s; text-align: center; letter-spacing: 0.3px;
        }
        #fpCard1 .fp-card-btn:hover { background: rgba(255,90,54,0.18); color: #ff8a63; border-color: rgba(255,90,54,0.4); }
        #fpCard2 .fp-card-btn:hover { background: rgba(255,90,54,0.14); color: var(--orange); border-color: rgba(255,90,54,0.35); }
        #fpCard3 .fp-card-btn:hover { background: rgba(255,255,255,0.1); color: var(--dm-text); border-color: rgba(255,255,255,0.3); }

        /* ── Topbar polish ── */
        .fp-topbar-bell { border-radius: 50%; }
        .fp-topbar-avatar { border-radius: 50%; width: 34px; height: 34px; object-fit: cover; display: block; flex-shrink: 0; }
        .fp-topbar-sync { display: none; }

        /* ── Confirm Dialog ── */
        .confirm-overlay { display: none; position: fixed; inset: 0; z-index: 9000; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); align-items: center; justify-content: center; }
        .confirm-overlay.open { display: flex; }
        .confirm-box { background: #262626; border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 32px 28px 24px; width: 340px; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
        .confirm-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,90,54,0.15); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; color: var(--orange); }
        .confirm-title { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 8px; }
        .confirm-msg { font-size: 14px; color: rgba(244,240,234,0.55); margin-bottom: 28px; line-height: 1.5; }
        .confirm-actions { display: flex; gap: 10px; }
        .confirm-btn { flex: 1; padding: 12px; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; border: none; transition: opacity 0.15s; }
        .confirm-btn:hover { opacity: 0.85; }
        .confirm-cancel { background: rgba(255,255,255,0.08); color: rgba(244,240,234,0.7); }
        .confirm-ok { background: var(--orange); color: #fff; }

        /* ── Active Orders Popup ── */
        .aop-overlay { display: none; position: fixed; inset: 0; z-index: 2000; }
        .aop-overlay.open { display: block; }
        .aop-box {
            position: fixed;
            background: #222222;
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 16px; padding: 8px;
            min-width: 340px; max-width: 400px;
            box-shadow: 0 24px 64px rgba(0,0,0,0.65);
            z-index: 2001;
        }
        .aop-header { padding: 12px 16px 10px; border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 4px; }
        .aop-title { font-size: 11px; font-weight: 700; color: rgba(244,240,234,0.4); letter-spacing: 0.8px; text-transform: uppercase; }
        .aop-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 10px; cursor: pointer; transition: background 0.15s; }
        .aop-item:hover { background: rgba(255,255,255,0.06); }
        .aop-sup-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
        .aop-sup-name { font-size: 12px; color: rgba(244,240,234,0.5); flex-shrink: 0; min-width: 54px; }
        .aop-order-no { font-size: 14px; font-weight: 700; color: #fff; flex: 1; }
        .aop-progress { font-size: 12px; color: rgba(244,240,234,0.35); }
        .aop-arrow { color: rgba(244,240,234,0.25); font-size: 14px; }
        .aop-empty { padding: 24px 16px; text-align: center; color: rgba(244,240,234,0.3); font-size: 13px; }

        /* ── Report Modal ── */
        .rm-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.78); z-index: 2000; align-items: flex-start; justify-content: center; padding: 32px 20px; overflow-y: auto; }
        .rm-overlay.open { display: flex; }
        .rm-box { background: #141414; border: 1px solid rgba(255,255,255,0.08); border-radius: 24px; width: 100%; max-width: 920px; overflow: hidden; box-shadow: 0 32px 80px rgba(0,0,0,0.7); margin: auto; }
        .rm-header { display: flex; align-items: center; justify-content: space-between; padding: 28px 32px 22px; border-bottom: 1px solid rgba(255,255,255,0.07); }
        .rm-title { font-size: 22px; font-weight: 800; color: #fff; }
        .rm-subtitle { font-size: 13px; color: rgba(244,240,234,0.4); margin-top: 4px; }
        .rm-close { background: rgba(255,255,255,0.07); border: none; color: rgba(244,240,234,0.6); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: background 0.2s; font-family: sans-serif; }
        .rm-close:hover { background: rgba(255,255,255,0.13); color: #fff; }
        .rm-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid rgba(255,255,255,0.07); }
        .rm-stat { padding: 20px 28px; border-right: 1px solid rgba(255,255,255,0.05); }
        .rm-stat:last-child { border-right: none; }
        .rm-stat-val { font-size: 30px; font-weight: 800; color: #fff; line-height: 1; }
        .rm-stat-label { font-size: 12px; color: rgba(244,240,234,0.4); margin-top: 6px; }
        .rm-filters { display: flex; align-items: center; gap: 20px; padding: 16px 32px; border-bottom: 1px solid rgba(255,255,255,0.07); flex-wrap: wrap; }
        .rm-filter-sep { width: 1px; height: 20px; background: rgba(255,255,255,0.1); }
        .rm-filter-group { display: flex; gap: 6px; }
        .rm-filter { background: transparent; border: 1px solid rgba(255,255,255,0.1); color: rgba(244,240,234,0.5); border-radius: 8px; padding: 7px 14px; font-size: 12px; font-weight: 700; cursor: pointer; transition: all 0.15s; font-family: 'Plus Jakarta Sans', sans-serif; letter-spacing: 0.3px; }
        .rm-filter.active { background: rgba(255,90,54,0.15); border-color: rgba(255,90,54,0.4); color: #ff8a63; }
        .rm-filter:hover:not(.active) { background: rgba(255,255,255,0.05); color: rgba(244,240,234,0.8); }
        .rm-list { padding: 8px 24px 28px; max-height: 52vh; overflow-y: auto; }
        .rm-list::-webkit-scrollbar { width: 4px; }
        .rm-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
        .rm-row { display: flex; align-items: center; gap: 16px; padding: 15px 8px; border-bottom: 1px solid rgba(255,255,255,0.04); cursor: pointer; border-radius: 10px; transition: background 0.15s; }
        .rm-row:hover { background: rgba(255,255,255,0.04); }
        .rm-row:last-child { border-bottom: none; }
        .rm-row-flag { font-size: 20px; width: 26px; text-align: center; flex-shrink: 0; }
        .rm-row-sup { width: 72px; flex-shrink: 0; }
        .rm-sup-chip { font-size: 10px; font-weight: 800; padding: 3px 10px; border-radius: 20px; display: inline-block; text-transform: uppercase; letter-spacing: 0.6px; }
        .rm-row-info { flex: 1; min-width: 0; }
        .rm-row-title { font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .rm-row-date { font-size: 11px; color: rgba(244,240,234,0.3); margin-top: 2px; }
        .rm-row-bar { width: 130px; flex-shrink: 0; }
        .rm-bar-track { background: rgba(255,255,255,0.07); border-radius: 4px; height: 5px; overflow: hidden; margin-bottom: 4px; }
        .rm-bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--orange), #ff8a63); transition: width 0.4s; }
        .rm-bar-fill.full { background: linear-gradient(90deg, var(--orange-dark), var(--orange)); }
        .rm-bar-text { font-size: 11px; color: rgba(244,240,234,0.35); }
        .rm-row-status { flex-shrink: 0; }
        .rm-status-chip { font-size: 11px; font-weight: 700; padding: 4px 11px; border-radius: 20px; }
        .rm-status-active { background: rgba(255,90,54,0.15); color: #ff8a63; }
        .rm-status-done { background: rgba(255,90,54,0.28); color: var(--orange); }
        .rm-row-completed { font-size: 11px; color: rgba(244,240,234,0.3); width: 80px; text-align: right; flex-shrink: 0; }
        .rm-empty { padding: 48px; text-align: center; color: rgba(244,240,234,0.3); font-size: 14px; }
        .rm-cc { display: inline-block; background: rgba(255,255,255,0.15); color: #fff; border-radius: 4px; padding: 1px 5px; font-size: 10px; font-weight: 800; letter-spacing: 0.5px; margin-right: 2px; }
        .rm-filter.active .rm-cc { background: rgba(255,90,54,0.3); color: #fff; }
        .rm-country-badge { display: inline-block; background: rgba(255,255,255,0.12); color: #fff; border-radius: 5px; padding: 2px 7px; font-size: 11px; font-weight: 800; letter-spacing: 0.5px; }

        } /* end @media screen */

        /* ── Mobile overrides — must come AFTER dark mode to override ── */
        @media (max-width: 768px) {
            /* Hero stats box — stack vertically on mobile too */
            .fp-hero-right { gap: 6px !important; }
            .fp-hero-right { gap: 8px !important; }
            .fp-hero-stat { padding: 14px 12px !important; min-width: 0 !important; gap: 4px !important; }
            .fp-hero-stat-val { font-size: 28px !important; }
            .fp-hero-stat-lbl { font-size: 10px !important; white-space: normal !important; line-height: 1.3; }
        }

        /* ── Mobile card slider — must come AFTER dark mode to override grid ── */
        @media (max-width: 768px) {
            .fp-cards {
                display: flex !important;
                overflow-x: scroll;
                scroll-snap-type: x mandatory;
                scroll-behavior: smooth;
                gap: 0;
                scrollbar-width: none;
                -webkit-overflow-scrolling: touch;
                padding-bottom: 2px;
                margin-bottom: 4px;
            }
            .fp-cards::-webkit-scrollbar { display: none; }
            .fp-card {
                flex: 0 0 100% !important;
                width: 100% !important;
                min-width: 0;
                border-radius: 18px;
                padding: 22px;
                scroll-snap-align: start;
                scroll-snap-stop: always;
            }
            .fp-cards-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 16px; }
            .fp-cards-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.2); cursor: pointer; transition: all 0.3s; flex-shrink: 0; }
            .fp-cards-dot.active { width: 22px; border-radius: 4px; background: var(--orange); }
        }

        /* ── Report modal mobile ── */
        @media (max-width: 768px) {
            .rm-overlay { align-items: flex-end !important; padding: 0 !important; }
            .rm-box { border-radius: 24px 24px 0 0 !important; max-height: 92vh !important; width: 100% !important; max-width: 100% !important; margin: 0 !important; }
            .rm-header { padding: 18px 18px 14px !important; }
            .rm-stats { grid-template-columns: repeat(2, 1fr) !important; }
            .rm-stat { padding: 14px 18px !important; }
            .rm-stat-val { font-size: 24px !important; }
            .rm-stat-label { font-size: 11px !important; }
            .rm-filters { padding: 12px 16px !important; gap: 8px !important; flex-direction: column !important; align-items: flex-start !important; }
            .rm-filter-sep { display: none !important; }
            .rm-filter-group { flex-wrap: wrap !important; gap: 6px !important; }
            .rm-filter { padding: 6px 10px !important; font-size: 11px !important; }
            .rm-list { padding: 6px 12px 20px !important; }
            .rm-row { gap: 10px !important; padding: 12px 6px !important; }
            .rm-row-flag { width: 22px !important; }
            .rm-row-sup { width: 60px !important; }
            .rm-row-bar { width: 90px !important; }
            .rm-row-status { display: none !important; }
            .rm-row-completed { display: none !important; }
        }

        /* ── Print ── */
        .print-only { display: none !important; }
        #pdfPrintContainer { display: none; }

        /* Print-only header styles (screen: hidden) */
        .ph-wrap { display: none; }

        @media print {
            /* Hide all overlays and dark UI */
            .no-print, .sidebar, .fp-hero, .fp-cards, .fp-topbar,
            .progress-section, .order-bar, .toast,
            #reportModal, #activeOrdersPopup, .aop-overlay, .rm-overlay,
            .modal-overlay, .db-overlay, .db-sidebar { display: none !important; }

            body { background: white; padding: 0; display: block; color: #111; }
            .main-wrapper { background: white; }
            .container { box-shadow: none; border-radius: 0; max-width: 100%; background: white; padding: 0 !important; }

            /* ── Print header ── */
            .ph-wrap {
                display: flex !important;
                flex-direction: column;
                align-items: stretch;
                justify-content: center;
                position: relative;
                background: #222222;
                -webkit-print-color-adjust: exact; print-color-adjust: exact;
                padding: 20px 28px;
                min-height: 160px;
            }
            .ph-date-row { position: absolute; top: 14px; right: 28px; }
            .ph-print-date { font-size: 10px; color: rgba(255,255,255,0.4); }
            .ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: stretch; }
            .ph-item-wide { grid-column: span 3; }
            .ph-item { border: 1px solid rgba(255,255,255,0.22); border-radius: 8px; padding: 14px 16px; background: rgba(255,255,255,0.05); display: flex; flex-direction: column; justify-content: center; }
            .ph-item label { display: block; font-size: 9px; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; margin-bottom: 6px; }
            .ph-item span { display: block; font-size: 18px; font-weight: 800; color: #fff; line-height: 1.2; }

            /* ── Info bar (hide the orange bar, we have ph-wrap instead) ── */
            .info-bar { display: none !important; }

            /* ── Note & table ── */
            .note-section { padding: 10px 24px; }
            .table-section { padding: 0 24px 14px; overflow-x: visible; }
            .footer-note { padding: 9px 24px; font-size: 10px; color: #ffffff; }

            thead tr, tbody tr:nth-child(even) { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
            @page { size: A4; margin: 1cm 1.2cm 1.5cm; }

            /* ── Attached documents ── */
            #pdfPrintContainer { display: block !important; }
            .pdf-p-page  { page-break-before: always; page-break-inside: avoid; width: 100%; }
            .pdf-p-label { font-family:'Plus Jakarta Sans',sans-serif; font-size:9px; color:#999; padding:3px 0 4px; display:block; border-bottom: 1px solid #eee; margin-bottom: 6px; }
            .pdf-p-img   { width: 100%; height: auto; display: block; }
            .excel-print-table { overflow:hidden; }
            .excel-print-table table { border-collapse:collapse; font-family:'Plus Jakarta Sans',sans-serif; font-size:8px; width:100%; table-layout:fixed; }
            .excel-print-table td, .excel-print-table th { border:1px solid #bbb; padding:2px 4px; vertical-align:middle; overflow:hidden; word-break:break-word; }
            .excel-print-table tr:first-child td { font-weight:600; background:#f5f5f5; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
            .excel-print-table img { display:none !important; }
        }