.tpa-wrap{max-width:1280px!important;width:calc(100% - 32px)!important;margin:28px auto!important;padding:0!important;box-sizing:border-box;font-family:Arial,sans-serif;color:#111}
    .tpa-wrap *{box-sizing:border-box}
    .tpa-wrap h1{margin:0 0 12px;font-size:28px;line-height:1.25;font-weight:700;color:#111}
    .tpa-card{background:#fff;border:1px solid #ccd0d4;border-radius:8px;padding:16px;margin:14px 0}
    .tpa-grid{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:12px}
    .tpa-field label{font-weight:600;display:block;margin-bottom:5px}
    .tpa-field input,.tpa-field select,.tpa-field textarea{width:100%;max-width:100%;min-height:38px;border:1px solid #c9ced6;border-radius:4px;padding:7px 9px;background:#fff}
    .tpa-kpis{display:grid;grid-template-columns:repeat(5,minmax(150px,1fr));gap:12px}
    .tpa-kpi{background:#fff;border-left:5px solid #8b1e1e;border-radius:8px;padding:14px;box-shadow:0 1px 2px rgba(0,0,0,.06)}
    .tpa-kpi b{font-size:20px;display:block;margin-top:6px;color:#111}
    .tpa-report-page{--tpa-wine:#6f1717;--tpa-wine-dark:#4d0f0f;--tpa-gold:#c6a15b;--tpa-soft:#f8f6f3}
    .tpa-report-heading{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:8px}
    .tpa-report-heading h1{font-size:30px!important;letter-spacing:-.5px;margin-bottom:3px!important}
    .tpa-report-heading p{margin:0;color:#667085;font-size:13px}
    .tpa-report-lock-admin{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:14px 0;padding:15px 17px;border:1px solid #e4ded7;border-radius:13px;background:#fff;box-shadow:0 4px 16px rgba(35,22,15,.04)}
    .tpa-report-lock-admin.is-locked{border-color:#ead2a1;background:linear-gradient(135deg,#fffaf0,#fff)}
    .tpa-report-lock-admin.is-open{border-color:#b9dfc2;background:linear-gradient(135deg,#f2fbf4,#fff)}
    .tpa-report-lock-kicker{display:block;font-size:10px;font-weight:900;letter-spacing:.7px;color:#7b746f;margin-bottom:4px}
    .tpa-report-lock-admin h3{margin:0 0 4px!important;font-size:15px!important;color:#2f2925}
    .tpa-report-lock-admin p{margin:0;color:#746b64;font-size:12px}
    .tpa-report-lock-admin form{margin:0;flex:0 0 auto}
    .tpa-report-lock-notice{display:flex;align-items:flex-start;gap:14px;margin:16px 0;padding:20px;border:1px solid #ead2a1;border-radius:14px;background:linear-gradient(135deg,#fff9eb,#fff);box-shadow:0 7px 22px rgba(83,55,20,.06)}
    .tpa-report-lock-icon{width:42px;height:42px;display:flex;align-items:center;justify-content:center;flex:0 0 42px;border-radius:12px;background:#f7e8bf;font-size:20px}
    .tpa-report-lock-copy h2{margin:0 0 6px!important;font-size:18px!important;color:#5f3c00}
    .tpa-report-lock-copy p{margin:0 0 6px;color:#574f45;font-size:14px;line-height:1.5}
    .tpa-report-lock-copy small{display:block;color:#85766a;line-height:1.45}
    .tpa-report-kpis{gap:14px!important}
    .tpa-report-kpis .tpa-kpi{position:relative;overflow:hidden;border:1px solid #e7e1dc!important;border-left:0!important;border-radius:14px!important;padding:16px 17px!important;background:linear-gradient(145deg,#fff 0%,#fbfaf8 100%)!important;box-shadow:0 7px 22px rgba(35,22,15,.06)!important}
    .tpa-report-kpis .tpa-kpi:before{content:"";position:absolute;left:0;top:0;width:100%;height:3px;background:linear-gradient(90deg,var(--tpa-wine),var(--tpa-gold))}
    .tpa-report-kpis .tpa-kpi span{display:block;color:#667085;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.45px}
    .tpa-report-kpis .tpa-kpi b{font-size:22px;margin-top:8px;letter-spacing:-.3px}
    .tpa-report-kpis .tpa-kpi-featured{background:linear-gradient(145deg,#fffaf0,#fff)!important;border-color:#e8d6aa!important}
    .tpa-chart-card,.tpa-branch-report-card{border:1px solid #ebe7e2!important;border-radius:14px!important;box-shadow:0 7px 25px rgba(35,22,15,.05)!important}
    .tpa-chart-select-wrap{display:flex;align-items:center;gap:8px;background:#f7f4f1;padding:7px 9px;border-radius:10px;border:1px solid #e8e1da}
    .tpa-chart-select-wrap label{font-size:12px;font-weight:800;color:#667085;white-space:nowrap}
    .tpa-chart-select-wrap select{min-width:180px;height:36px;border-radius:8px;border:1px solid #d8d1ca;background:#fff;font-weight:700}
    .tpa-chart-current{font-size:13px;font-weight:800;color:#344054;margin:2px 0 5px}
    .tpa-chart-bars{display:flex;align-items:center;gap:12px;height:300px;border-bottom:1px solid #e7e3df;overflow-x:auto;padding:10px 6px 0}
    .tpa-chart-col{min-width:58px;text-align:center;font-size:11px;display:flex;flex-direction:column;align-items:center;height:280px;justify-content:center}
    .tpa-chart-positive,.tpa-chart-negative{height:120px;display:flex;flex-direction:column;align-items:center;width:100%}
    .tpa-chart-positive{justify-content:flex-end}.tpa-chart-negative{justify-content:flex-start}
    .tpa-chart-zero{height:1px;background:#d9d2cc;width:100%}
    .tpa-chart-bar{width:30px;border-radius:7px 7px 2px 2px;background:linear-gradient(180deg,#9b2d2d,#651414);box-shadow:0 4px 12px rgba(111,23,23,.18)}
    .tpa-chart-bar.is-negative{border-radius:2px 2px 7px 7px;background:linear-gradient(180deg,#6b7280,#3f4650)}
    .tpa-chart-value{min-height:27px;font-weight:800;color:#202124;line-height:1.15;margin:4px 0;white-space:normal;word-break:break-word}
    .tpa-chart-label{margin-top:7px;writing-mode:vertical-rl;max-height:70px;overflow:hidden;color:#667085;font-weight:700}
    .tpa-branch-dashboard{display:grid;grid-template-columns:repeat(3,minmax(260px,1fr));gap:14px}
    .tpa-branch-box{border:1px solid #e8e2dc;border-radius:14px;background:linear-gradient(145deg,#fff,#fbfaf8);padding:16px;box-shadow:0 5px 18px rgba(35,22,15,.05)}
    .tpa-branch-box-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding-bottom:13px;border-bottom:1px solid #eee8e2}
    .tpa-branch-box-head>div>span,.tpa-branch-main-profit span{font-size:10px;font-weight:900;letter-spacing:.7px;color:#8a817b;text-transform:uppercase}
    .tpa-branch-box h3{margin:3px 0 0;font-size:19px;color:#2b211d}
    .tpa-branch-main-profit{text-align:right}.tpa-branch-main-profit b{display:block;font-size:20px;margin-top:3px}
    .tpa-branch-stats{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}
    .tpa-branch-stats>div{background:#f8f6f3;border-radius:9px;padding:9px 10px}
    .tpa-branch-stats span{display:block;color:#7b746f;font-size:11px;font-weight:700;margin-bottom:4px}
    .tpa-branch-stats b{font-size:14px;color:#27211e}
    .tpa-source-table th{background:#5f1717!important}
    .tpa-source-table td{padding:10px 9px!important}
    .tpa-source-toggle{appearance:none;-webkit-appearance:none;border:0;background:transparent;padding:0;margin:0;display:inline-flex;align-items:center;gap:7px;font:inherit;color:inherit;cursor:pointer;text-align:left}
    .tpa-source-toggle:hover b{text-decoration:underline}
    .tpa-source-arrow{font-size:20px;line-height:1;width:14px;display:inline-block;color:#7b1d1d}
    .tpa-source-child-count{font-size:11px;font-weight:600;color:#777;background:#f3f1ef;border-radius:999px;padding:2px 7px}
    .tpa-source-child td{background:#faf9f8!important}
    .tpa-source-child-label{display:inline-block;padding-left:20px;color:#555;font-weight:600}
    .tpa-breakeven-card{position:relative;overflow:hidden;margin:16px 0 18px;padding:22px;border:1px solid #e6ddd3;border-radius:18px;background:linear-gradient(135deg,#fff 0%,#fbf7f2 62%,#f5eee7 100%);box-shadow:0 12px 34px rgba(50,30,18,.08)}
    .tpa-breakeven-card:before{content:"";position:absolute;left:0;top:0;right:0;height:4px;background:linear-gradient(90deg,var(--tpa-wine),#9b5d31,var(--tpa-gold))}
    .tpa-breakeven-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
    .tpa-breakeven-eyebrow{display:block;font-size:11px;font-weight:900;letter-spacing:.85px;color:#8b7666;margin-bottom:5px}
    .tpa-breakeven-head h2{margin:0!important;font-size:23px!important;color:#2f221c}
    .tpa-breakeven-status{display:inline-flex;align-items:center;border-radius:999px;padding:7px 11px;font-size:11px;font-weight:900;letter-spacing:.45px;white-space:nowrap}
    .tpa-breakeven-status.is-running{background:#fff2cc;color:#7a5200;border:1px solid #ead08b}
    .tpa-breakeven-status.is-done{background:#e9f8ed;color:#166534;border:1px solid #a7dfb6}
    .tpa-breakeven-status.is-waiting{background:#f4f4f5;color:#52525b;border:1px solid #d4d4d8}
    .tpa-breakeven-main{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:21px}
    .tpa-breakeven-number,.tpa-breakeven-focus{padding:16px 17px;border-radius:14px;background:rgba(255,255,255,.78);border:1px solid #eee4da}
    .tpa-breakeven-focus{background:linear-gradient(135deg,#fff8e7,#fff);border-color:#ead9ad}
    .tpa-breakeven-focus.is-positive{background:linear-gradient(135deg,#edf9f0,#fff);border-color:#b9dfc2}
    .tpa-breakeven-number span,.tpa-breakeven-focus span{display:block;color:#746b64;font-size:12px;font-weight:800;margin-bottom:7px}
    .tpa-breakeven-number b,.tpa-breakeven-focus b{display:block;font-size:30px;line-height:1.05;letter-spacing:-.8px;color:#2b211d}
    .tpa-breakeven-focus b{color:#7b1d1d}.tpa-breakeven-focus.is-positive b{color:#15713a}
    .tpa-breakeven-number small,.tpa-breakeven-focus small{font-size:13px;margin-left:3px;font-weight:800}
    .tpa-breakeven-progress-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;margin-top:19px}
    .tpa-breakeven-progress{height:13px;border-radius:999px;background:#e9e1d9;overflow:hidden;box-shadow:inset 0 1px 2px rgba(0,0,0,.06)}
    .tpa-breakeven-progress i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#6f1717,#a36e35,#c6a15b)}
    .tpa-breakeven-progress-row>b{min-width:46px;text-align:right;font-size:15px;color:#4d342a}
    .tpa-breakeven-caption{margin-top:7px;color:#746b64;font-size:12px;font-weight:700}
    .tpa-breakeven-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:16px}
    .tpa-breakeven-stats>div{padding:11px 12px;background:rgba(255,255,255,.72);border:1px solid #eee5dc;border-radius:11px}
    .tpa-breakeven-stats span{display:block;font-size:11px;color:#81766e;font-weight:700;margin-bottom:5px}
    .tpa-breakeven-stats b{font-size:15px;color:#2d2723}
    .tpa-breakeven-note{margin-top:12px;font-size:11px;color:#8a817b}
    .tpa-breakeven-empty{margin-top:18px;padding:15px;border-radius:12px;background:#f6f6f7;color:#52525b;font-weight:700}
    @media(max-width:1050px){.tpa-branch-dashboard{grid-template-columns:1fr 1fr}}
    @media(max-width:700px){.tpa-branch-dashboard{grid-template-columns:1fr}.tpa-chart-select-wrap{width:100%;margin-top:8px}.tpa-chart-select-wrap select{width:100%;min-width:0}.tpa-report-heading h1{font-size:25px!important}.tpa-breakeven-card{padding:17px 14px;border-radius:15px}.tpa-breakeven-head{display:block}.tpa-breakeven-status{margin-top:10px}.tpa-breakeven-main{grid-template-columns:1fr;gap:9px;margin-top:15px}.tpa-breakeven-number,.tpa-breakeven-focus{padding:13px 14px}.tpa-breakeven-focus{order:-1}.tpa-breakeven-number b,.tpa-breakeven-focus b{font-size:27px}.tpa-breakeven-stats{grid-template-columns:1fr;gap:7px}.tpa-breakeven-stats>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.tpa-breakeven-stats span{margin:0}.tpa-breakeven-caption{line-height:1.45}.tpa-breakeven-note{line-height:1.45}}
    .tpa-table{width:100%;border-collapse:collapse;background:#fff}
    .tpa-table th{background:#801c1c;color:#fff;text-transform:uppercase;font-size:13px}
    .tpa-table th,.tpa-table td{border:1px solid #ccc;padding:7px;vertical-align:middle}
    .tpa-table input{width:100%}
    .tpa-discount-line{display:flex;gap:4px;align-items:center;min-width:130px}
    .tpa-discount-line input{flex:1;min-width:80px}
    .tpa-discount-line select{width:64px;min-width:64px;height:34px;padding:3px}
    .tpa-money{text-align:right}
    .tpa-blue{color:#0047ff}.tpa-red{color:#d00}.tpa-green{color:#098d25}
    .tpa-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
    .tpa-note{background:#fff8e5;border-left:4px solid #f0b429;padding:10px;margin:12px 0}
    .tpa-scroll{overflow-x:auto;width:100%;position:relative;cursor:grab}
    .tpa-scroll.tpa-dragging{cursor:grabbing;user-select:none}
    .tpa-scroll-top{overflow-x:auto;overflow-y:hidden;height:16px;margin:0 0 6px;background:#f6f7f7;border:1px solid #e5e7eb;border-radius:6px}
    .tpa-scroll-top>div{height:1px}
    .tpa-table thead th{position:sticky;top:0;z-index:5}
    .tpa-row-total{font-weight:700;background:#f5f7f7}
    .tpa-small{font-size:12px;color:#666}
    .tpa-status-pill{display:inline-flex;border-radius:999px;background:#eef2ff;color:#344054;border:1px solid #c7d7fe;padding:3px 8px;font-size:12px;font-weight:700;white-space:nowrap}

    .tpa-status-pill.tpa-order-status-completed{background:#dcfce7;color:#166534;border-color:#86efac}
    .tpa-status-pill.tpa-order-status-approved{background:#dbeafe;color:#1d4ed8;border-color:#93c5fd}
    .tpa-status-pill.tpa-order-status-draft{background:#fef9c3;color:#854d0e;border-color:#fde68a}
    .tpa-order-table tr.tpa-order-status-completed>td{background:#f8fff9}
    .tpa-order-table tr.tpa-order-status-approved>td{background:#eff6ff}
    .tpa-order-table tr.tpa-order-status-draft>td{background:#fffbea}
    .tpa-order-table .tpa-payment-col{min-width:190px;white-space:normal!important;line-height:1.35}
    .tpa-warning-pill{display:inline-flex;margin-top:4px;border-radius:999px;background:#fff7ed;color:#c2410c;border:1px solid #fdba74;padding:2px 7px;font-size:11px;font-weight:800;white-space:nowrap}
    .tpa-missing-cost-cell{background:#fff7ed!important;color:#c2410c!important;font-weight:800!important}
    .tpa-missing-cost-text{color:#c2410c!important;font-weight:800!important}
    .tpa-btn-approve{background:#16a34a!important;border-color:#16a34a!important;color:#fff!important;font-weight:800!important}
    .tpa-approved-disabled{background:#dbeafe!important;border-color:#93c5fd!important;color:#1d4ed8!important;font-weight:800!important}
    .tpa-pending-orders-box{margin-top:6px;border:1px solid #f0b429;background:#fff8e5;border-radius:8px;padding:8px;color:#111}
    .tpa-pending-orders-box b{color:#8b1d1d}
    .tpa-pending-order-line{display:flex;justify-content:space-between;gap:10px;align-items:center;border-top:1px dashed #e5c46b;padding:7px 0}
    .tpa-pending-order-line:first-of-type{border-top:0}
    .tpa-pending-order-line a{white-space:nowrap}
    .tpa-btn-danger{color:#b32d2e!important;border-color:#b32d2e!important}
    .tpa-copy-phone{appearance:none;-webkit-appearance:none;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0!important;color:#0b57d0!important;font:inherit!important;font-weight:700!important;line-height:inherit!important;text-decoration:none!important;cursor:pointer!important;white-space:nowrap}
    .tpa-copy-phone:hover{text-decoration:underline!important;color:#073b8c!important}
    .tpa-copy-toast{position:fixed;right:18px;bottom:18px;z-index:1000000;background:#111;color:#fff;padding:10px 14px;border-radius:8px;font-size:13px;font-weight:700;box-shadow:0 8px 24px rgba(0,0,0,.25)}

    .tpa-permission-box{display:flex;flex-direction:column;gap:7px;padding:9px;border:1px solid #d0d5dd;border-radius:6px;background:#fff}
    .tpa-check-line{font-weight:600}
    .tpa-check-line input{margin-right:6px}

    .tpa-copyright-note{margin:18px 0 4px;padding:10px 12px;border-top:1px solid #e5e7eb;color:#667085;font-size:12px;text-align:right;font-style:italic}


    .tpa-front-nav{display:flex!important;gap:10px!important;flex-wrap:wrap!important;align-items:center!important;background:#fff!important;border:1px solid #ccd0d4!important;border-radius:8px!important;padding:10px!important;margin:10px 0 14px!important}
    .tpa-front-nav a{display:inline-flex!important;align-items:center!important;justify-content:center!important;text-decoration:none!important;background:#f6f7f7!important;border:1px solid #ccd0d4!important;color:#1d2327!important;border-radius:6px!important;padding:8px 13px!important;font-weight:700!important;line-height:1.2!important}
    .tpa-front-nav a:hover{background:#fff!important;color:#8b1d1d!important;border-color:#8b1d1d!important}
    .tpa-front-nav a.tpa-front-nav-active{background:#8b1d1d!important;border-color:#8b1d1d!important;color:#fff!important}

    .tpa-front-nav-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;margin-left:7px;padding:0 6px;border-radius:999px;background:#dc2626;color:#fff;font-size:11px;font-weight:900;line-height:1}
    .tpa-front-nav a.tpa-front-nav-active .tpa-front-nav-badge{background:#fff;color:#8b1d1d}

    .tpa-review-alert{margin:12px 0 16px;border:1px solid #f2c36b;border-left:5px solid #d97706;border-radius:10px;background:#fffaf0;box-shadow:0 4px 14px rgba(146,88,15,.08);overflow:hidden}
    .tpa-review-alert-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid #f3dfb7;background:#fff7e6}
    .tpa-review-alert-head>div{display:flex;align-items:center;gap:8px;font-size:15px}
    .tpa-review-dot{width:9px;height:9px;border-radius:999px;background:#dc2626;box-shadow:0 0 0 4px rgba(220,38,38,.10)}
    .tpa-review-count{display:inline-flex;border-radius:999px;background:#fff;color:#9a3412;border:1px solid #fdba74;padding:4px 8px;font-size:11px;font-weight:800;white-space:nowrap}
    .tpa-review-note-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border-top:1px dashed #ecd39f}
    .tpa-review-note-row:first-of-type{border-top:0}
    .tpa-review-note-main{min-width:0;flex:1}
    .tpa-review-note-meta{display:flex;align-items:center;gap:8px;margin-bottom:5px}
    .tpa-review-note-meta b{font-size:13px;color:#7c2d12}.tpa-review-note-meta span{font-size:11px;color:#78716c}
    .tpa-review-note-text{font-size:14px;font-weight:700;line-height:1.45;color:#292524;overflow-wrap:anywhere}
    .tpa-review-resolve-form{margin:0;flex:0 0 auto}.tpa-review-resolve-btn{border-color:#16a34a!important;color:#166534!important;font-weight:800!important;background:#f0fdf4!important}

    .tpa-review-manager-card{padding:0!important;overflow:hidden;border-color:#e2ddd7!important}
    .tpa-review-manager-card>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;padding:13px 15px;font-weight:800;background:#fbfaf8}
    .tpa-review-manager-card>summary::-webkit-details-marker{display:none}.tpa-review-manager-card>summary small{font-weight:600;color:#78716c}
    .tpa-review-create-form{padding:14px 15px;border-top:1px solid #ebe6e1}
    .tpa-review-form-grid{display:grid;grid-template-columns:170px 190px minmax(280px,1fr) auto;gap:10px;align-items:end}
    .tpa-review-note-input textarea{min-height:42px!important;height:42px;resize:vertical}
    .tpa-review-submit{padding-bottom:1px}.tpa-review-submit .button{min-height:40px;font-weight:800}
    .tpa-review-history{border-top:1px solid #ebe6e1;padding:0 15px 12px}.tpa-review-history-title{padding:11px 0 7px;font-size:12px;font-weight:900;color:#78716c;text-transform:uppercase;letter-spacing:.3px}
    .tpa-review-history-row{display:flex;justify-content:space-between;gap:12px;padding:9px 10px;margin-top:6px;border-radius:8px;background:#f8f7f5;border:1px solid #ebe7e2}
    .tpa-review-history-row>div{display:flex;flex-direction:column;gap:3px;min-width:0}.tpa-review-history-row b{font-size:12px}.tpa-review-history-row span{font-size:13px;line-height:1.35;overflow-wrap:anywhere}.tpa-review-history-row small{color:#8a817b;font-size:11px}
    .tpa-review-history-row em{font-style:normal;font-size:11px;font-weight:800;white-space:nowrap;align-self:flex-start;border-radius:999px;padding:4px 7px}
    .tpa-review-history-row.is-open em{background:#fff7ed;color:#c2410c}.tpa-review-history-row.is-resolved em{background:#ecfdf3;color:#15803d}
    .tpa-review-history-actions{display:flex;align-items:flex-start;gap:8px;flex:0 0 auto}.tpa-review-delete-form{margin:0}.tpa-review-delete-btn{border-color:#fecaca!important;color:#b91c1c!important;background:#fff!important;font-weight:800!important;min-height:30px!important;padding:0 9px!important}.tpa-review-delete-btn:hover{border-color:#ef4444!important;color:#991b1b!important;background:#fef2f2!important}
    @media(max-width:900px){.tpa-review-form-grid{grid-template-columns:1fr 1fr}.tpa-review-note-input{grid-column:1/-1}.tpa-review-submit{grid-column:1/-1}.tpa-review-submit .button{width:100%}}
    @media(max-width:640px){.tpa-review-note-row{align-items:flex-start;flex-direction:column}.tpa-review-resolve-form,.tpa-review-resolve-btn{width:100%}.tpa-review-alert-head{align-items:flex-start}.tpa-review-manager-card>summary{align-items:flex-start;flex-direction:column}.tpa-review-form-grid{grid-template-columns:1fr}.tpa-review-note-input,.tpa-review-submit{grid-column:auto}.tpa-review-history-row{flex-direction:column}.tpa-review-history-row em{align-self:flex-start}.tpa-review-history-actions{width:100%;justify-content:space-between;align-items:center}.tpa-review-delete-btn{min-height:34px!important}}

    .tpa-monthly-costs .tpa-monthly-title{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:10px}
    .tpa-monthly-costs .tpa-monthly-title h1{margin:0!important}
    .tpa-monthly-costs .tpa-monthly-sub{color:#667085;font-size:13px;font-weight:600;margin-top:4px}
    .tpa-monthly-costs .tpa-highlight-card{background:linear-gradient(135deg,#fff,#fff8e5);border-color:#f0b429}
    .tpa-monthly-costs .tpa-cost-main{font-size:22px;color:#8b1d1d!important}
    .tpa-monthly-costs .tpa-cost-scenarios{grid-template-columns:repeat(5,minmax(140px,1fr))}
    .tpa-monthly-costs .tpa-cost-total-row td{background:#8b1d1d!important;color:#fff!important;font-weight:800}
    @media(max-width:760px){.tpa-monthly-costs .tpa-monthly-title{display:block}.tpa-monthly-costs .tpa-cost-scenarios{grid-template-columns:1fr 1fr!important}}

    .tpa-product-cell{position:relative;min-width:360px}
    .tpa-product-cell .js-product-name{min-width:340px}
    .tpa-suggest-box{display:none;background:#fff;border:1px solid #b8c0cc;border-radius:8px;box-shadow:0 10px 30px rgba(0,0,0,.22);z-index:999999;overflow:auto}
    .tpa-global-suggest-box{position:fixed!important}
    .tpa-suggest-item{padding:12px 14px;border-bottom:1px solid #eef0f3;cursor:pointer;background:#fff}
    .tpa-suggest-item:hover{background:#fff4d6}
    .tpa-suggest-title{font-weight:700;color:#111;margin-bottom:5px;font-size:15px;line-height:1.35}
    .tpa-suggest-meta{font-size:13px;color:#555;line-height:1.35}
    .tpa-suggest-empty{padding:12px 14px;color:#777}
    #tpa-global-suggest-box::-webkit-scrollbar{width:10px}
    #tpa-global-suggest-box::-webkit-scrollbar-thumb{background:#aaa;border-radius:10px}




    .tpa-new-product-modal{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:1000000;display:flex;align-items:center;justify-content:center;padding:16px}
    .tpa-new-product-dialog{background:#fff;border-radius:10px;max-width:720px;width:100%;box-shadow:0 18px 50px rgba(0,0,0,.25);overflow:hidden}
    .tpa-new-product-head{padding:16px 18px;background:#8b1d1d;color:#fff;font-weight:800;font-size:18px}
    .tpa-new-product-body{padding:16px 18px;max-height:60vh;overflow:auto}
    .tpa-new-product-body p{margin:0 0 12px;color:#333}
    .tpa-new-product-row{display:grid;grid-template-columns:28px 1fr;gap:10px;align-items:start;border:1px solid #e1e5ea;border-radius:8px;padding:10px;margin-bottom:8px;background:#fff}
    .tpa-new-product-row input{margin-top:3px}
    .tpa-new-product-name{font-weight:700;color:#111;line-height:1.35}
    .tpa-new-product-meta{font-size:13px;color:#667085;margin-top:4px}
    .tpa-new-product-actions{display:flex;gap:10px;justify-content:flex-end;padding:14px 18px;border-top:1px solid #e5e7eb;background:#f8f9fb;flex-wrap:wrap}
    .tpa-new-product-actions button{min-height:38px}


    .tpa-filter-card{padding-top:12px}
    .tpa-quick-filters{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}
    .tpa-quick-btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;background:#f7f7f7;border:1px solid #c7ccd3;border-radius:6px;padding:7px 11px;color:#1d2327;font-weight:700;font-size:13px}
    .tpa-quick-btn:hover{background:#fff;border-color:#8b1d1d;color:#8b1d1d}
    .tpa-quick-btn.tpa-quick-active{background:#8b1d1d;border-color:#8b1d1d;color:#fff}
    .tpa-mini-filter-row{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
    .tpa-mini-filter{display:inline-flex;text-decoration:none;background:#f6f7f7;border:1px solid #d0d5dd;border-radius:999px;padding:4px 8px;color:#344054;font-size:12px;font-weight:600;line-height:1.2}
    .tpa-mini-filter:hover{background:#fff7e6;color:#8b1d1d;border-color:#8b1d1d}
    .tpa-mini-filter.tpa-mini-active{background:#8b1d1d;color:#fff;border-color:#8b1d1d}
    .tpa-mini-clear{background:#fff;color:#667085}


    .tpa-filter-grid-clean{align-items:end}
    .tpa-filter-grid-clean .tpa-field select{height:42px}
    .tpa-mini-filter-row{display:none!important}

    .tpa-search-field input{font-weight:600}
    .tpa-search-field input::placeholder{font-weight:400;color:#8a8f98}


    .tpa-order-code-link{color:#0b57d0;text-decoration:none}
    .tpa-order-code-link:hover{text-decoration:underline}
    .tpa-source-cell{min-width:118px}
    .tpa-quick-source{width:100%;min-width:108px;max-width:150px;height:30px;min-height:30px!important;padding:2px 25px 2px 6px!important;border:1px solid #c8cdd3;border-radius:5px;background:#fff;font-size:12px;font-weight:700;color:#333;cursor:pointer}
    .tpa-quick-source:disabled{opacity:.65;cursor:wait}
    .tpa-click-row{cursor:pointer}
    .tpa-click-row:hover td{background:#f8fbff!important}
    .tpa-order-detail-row{display:none}
    .tpa-row-active td{background:#fff8e5!important}
    .tpa-order-detail-row td{background:#fff!important;padding:0!important}
    .tpa-order-detail-box{padding:14px;background:#fffdf7;border:2px solid #8b1d1d;border-radius:8px;margin:8px}
    .tpa-order-detail-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}
    .tpa-order-detail-head h3{margin:0 0 4px;font-size:18px}
    .tpa-order-detail-head p{margin:0;color:#666}

    .tpa-fee-summary{display:grid;grid-template-columns:repeat(7,minmax(130px,1fr));gap:8px;margin:10px 0 12px}
    .tpa-fee-summary div{background:#fff;border:1px solid #d0d5dd;border-radius:6px;padding:8px 10px}
    .tpa-fee-summary span{display:block;font-size:12px;color:#667085;margin-bottom:4px}
    .tpa-fee-summary b{font-size:15px;color:#111}
    .tpa-fee-summary .tpa-detail-kpi-primary{background:#fffdf8;border-color:#e5cfa0}
    .tpa-fee-summary .tpa-detail-kpi-primary b{font-size:16px}
    .tpa-order-note-full{background:#fff;border:1px solid #d0d5dd;border-radius:8px;padding:10px 12px;margin:10px 0 12px;line-height:1.55;white-space:normal}
    .tpa-order-note-full span{display:block;font-size:12px;color:#667085;font-weight:700;margin-bottom:5px}
    .tpa-order-note-full div{font-size:14px;color:#111;white-space:normal;overflow-wrap:anywhere}
    .tpa-note-field textarea,.tpa-auto-textarea{min-height:120px!important;resize:vertical;overflow:hidden;line-height:1.45}
    @media(max-width:900px){.tpa-fee-summary{grid-template-columns:1fr 1fr}}

    .tpa-detail-table{table-layout:fixed;min-width:0!important;width:100%!important}
    .tpa-detail-table th,.tpa-detail-table td{font-size:13px;white-space:normal!important;overflow-wrap:anywhere;word-break:break-word}
    .tpa-detail-table .tpa-money{text-align:right;white-space:normal!important}
    .tpa-order-detail-box{position:sticky;left:8px;width:min(1180px,calc(100vw - 96px));max-width:calc(100vw - 96px);overflow:hidden}
    .tpa-order-detail-box .tpa-scroll{overflow-x:visible!important;cursor:auto!important}
    .tpa-order-detail-box .tpa-scroll-top{display:none!important}
    .tpa-floating-table-head{position:fixed;display:none;overflow:hidden;background:#fff;z-index:999999;box-shadow:0 6px 14px rgba(0,0,0,.18);border:1px solid #d0d5dd;pointer-events:auto}
    .tpa-order-table thead th.tpa-sortable-col,.tpa-floating-table-head th.tpa-sortable-col{position:relative;cursor:pointer;user-select:none;padding-right:22px!important}
    .tpa-order-table thead th.tpa-sortable-col:after,.tpa-floating-table-head th.tpa-sortable-col:after{content:"↕";position:absolute;right:7px;top:50%;transform:translateY(-50%);font-size:11px;opacity:.6}
    .tpa-order-table thead th.tpa-sort-asc:after,.tpa-floating-table-head th.tpa-sort-asc:after{content:"▲";opacity:1}
    .tpa-order-table thead th.tpa-sort-desc:after,.tpa-floating-table-head th.tpa-sort-desc:after{content:"▼";opacity:1}
    .tpa-order-table thead th.tpa-sort-asc,.tpa-order-table thead th.tpa-sort-desc,.tpa-floating-table-head th.tpa-sort-asc,.tpa-floating-table-head th.tpa-sort-desc{background:#651414!important}
    .tpa-order-table thead th.tpa-sortable-col:focus{outline:2px solid #f2c36b;outline-offset:-2px}
    .tpa-floating-table-head table{border-collapse:collapse;background:#fff}
    .tpa-floating-table-head th{background:#801c1c!important;color:#fff!important;text-transform:uppercase;font-size:13px;border:1px solid #ccc;padding:7px;vertical-align:middle;box-sizing:border-box}
    @media(max-width:900px){.tpa-order-detail-box{position:static;width:auto;max-width:100%;overflow:visible}.tpa-fee-summary{grid-template-columns:1fr 1fr}}
    @media(max-width:700px){.tpa-order-detail-head{display:block}.tpa-order-detail-head .tpa-actions{margin-top:10px}}




    .tpa-mobile-cards{display:none}
    .tpa-mobile-card{background:#fff;border:1px solid #d0d5dd;border-radius:12px;padding:12px;margin:10px 0;box-shadow:0 1px 3px rgba(16,24,40,.08)}
    .tpa-mobile-card-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;border-bottom:1px solid #eef0f3;padding-bottom:8px;margin-bottom:8px}
    .tpa-mobile-card-head b{font-size:16px;color:#111;line-height:1.25}
    .tpa-mobile-card-head span{font-size:12px;color:#667085;font-weight:700;white-space:nowrap}
    .tpa-mobile-sub{font-size:14px;font-weight:700;margin:4px 0 8px;color:#111}
    .tpa-mobile-tags{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 10px}
    .tpa-mobile-tags span{display:inline-flex;border:1px solid #e4e7ec;background:#f9fafb;border-radius:999px;padding:4px 8px;font-size:12px;color:#344054;font-weight:600}
    .tpa-mobile-pair{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px dashed #eceff3;font-size:14px}
    .tpa-mobile-pair span{color:#667085}
    .tpa-mobile-pair b{color:#111;text-align:right}
    .tpa-mobile-total{border-top:1px solid #d0d5dd;margin-top:4px;padding-top:10px;font-size:15px}

    .tpa-mobile-cost-details{border-bottom:1px dashed #eceff3;margin:0;padding:0;font-size:14px}
    .tpa-mobile-cost-details summary{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:7px 0;cursor:pointer;list-style:revert;font-weight:400}
    .tpa-mobile-cost-details summary span{color:#667085}
    .tpa-mobile-cost-details summary b{color:#111;text-align:right}
    .tpa-mobile-cost-lines{background:#f9fafb;border:1px solid #eef0f3;border-radius:8px;margin:4px 0 8px;padding:8px 10px}
    .tpa-mobile-cost-lines div{display:flex;justify-content:space-between;gap:12px;padding:5px 0;font-size:13px;border-bottom:1px solid #eef0f3}
    .tpa-mobile-cost-lines div:last-child{border-bottom:0}
    .tpa-mobile-cost-lines span{color:#667085}
    .tpa-mobile-cost-lines b{color:#111;text-align:right}
    .tpa-mobile-details{margin-top:10px;border-top:1px solid #eef0f3;padding-top:8px}
    .tpa-mobile-details summary{font-weight:700;color:#8b1d1d;cursor:pointer;padding:4px 0}
    .tpa-mobile-item{border:1px solid #eef0f3;border-radius:8px;padding:9px;margin:7px 0;background:#fcfcfd}
    .tpa-mobile-item b{display:block;margin-bottom:4px;color:#111}
    .tpa-mobile-item span{display:block;font-size:13px;color:#344054;line-height:1.4}
    .tpa-mobile-item em{display:block;margin-top:4px;font-size:12px;color:#667085}
    .tpa-mobile-note{background:#fff8e5;border-left:3px solid #f0b429;padding:8px;margin-top:8px;font-size:13px;line-height:1.45}
    .tpa-mobile-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
    .tpa-mobile-empty{padding:12px;border:1px dashed #d0d5dd;border-radius:8px;color:#667085;background:#fff}

    .tpa-mobile-order-list{display:none}
    .tpa-mobile-order-table{width:100%;max-width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;background:#fff;border:1px solid #d0d5dd;border-radius:10px;overflow:hidden}
    .tpa-mobile-order-table th{background:#8b1d1d;color:#fff;font-size:clamp(8px,2.35vw,10.5px);line-height:1.05;text-transform:uppercase;padding:6px 3px;text-align:left;border:0;white-space:normal;word-break:normal;overflow-wrap:anywhere}
    .tpa-mobile-order-table th:nth-child(1){width:12%}
    .tpa-mobile-order-table th:nth-child(2){width:14%}
    .tpa-mobile-order-table th:nth-child(3){width:31%}
    .tpa-mobile-order-table th:nth-child(4){width:15%;text-align:center}
    .tpa-mobile-order-table th:nth-child(5){width:28%;text-align:right}
    .tpa-mobile-order-row{cursor:pointer}
    .tpa-mobile-order-row td{padding:6px 3px;border-top:1px solid #e7e9ee;vertical-align:middle;font-size:clamp(9px,2.65vw,12px);line-height:1.15;background:#fff;min-width:0;max-width:100%;overflow:hidden}
    .tpa-mobile-order-row.tpa-order-status-completed td{background:#f8fff9}
    .tpa-mobile-order-row.tpa-order-status-approved td{background:#f3f7ff}
    .tpa-mobile-order-row.tpa-order-status-draft td{background:#fffbea}
    .tpa-mobile-order-row.is-open td{background:#fff5e8!important}
    .tpa-mo-date{font-weight:700;color:#475467;white-space:nowrap;text-align:left;font-size:clamp(8.5px,2.45vw,11px)!important;letter-spacing:-.15px}
    .tpa-mo-customer{min-width:0;overflow:hidden}
    .tpa-mo-customer b,.tpa-mo-customer small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .tpa-mo-customer b{font-size:12.5px;color:#111}
    .tpa-mo-customer small{margin-top:2px;color:#667085;font-size:11px}
    .tpa-mo-sale{text-align:center;font-weight:800;font-size:clamp(8.5px,2.35vw,10.5px)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .tpa-mo-money{text-align:right;white-space:nowrap;font-size:clamp(9px,2.55vw,11.5px)!important;letter-spacing:-.15px}
    .tpa-mobile-order-detail-row>td{padding:0!important;border-top:0!important;background:#f6f7f9!important}
    .tpa-mobile-order-detail-card{margin:6px;padding:10px;background:#fff;border:1px solid #d0d5dd;border-left:4px solid #8b1d1d;border-radius:9px;box-shadow:0 2px 8px rgba(16,24,40,.08)}
    .tpa-mobile-order-detail-card .tpa-mobile-card-head{padding-bottom:6px;margin-bottom:6px}
    .tpa-mobile-order-detail-card .tpa-mobile-card-head>div small{display:block;color:#667085;font-size:11px;margin-top:2px}
    .tpa-mobile-order-detail-card .tpa-mobile-sub{margin:3px 0 6px;font-size:13px}
    .tpa-mobile-order-detail-card .tpa-mobile-tags{margin:4px 0 6px;gap:4px}
    .tpa-mobile-order-detail-card .tpa-mobile-tags span{padding:3px 6px;font-size:11px}
    .tpa-mobile-order-detail-card .tpa-mobile-pair{padding:5px 0;font-size:12.5px}
    .tpa-mobile-order-detail-card .tpa-mobile-details{margin-top:7px;padding-top:6px}
    .tpa-mobile-order-detail-card .tpa-mobile-actions{margin-top:8px}


    body .entry-content > .tpa-wrap, body .fl-post-content > .tpa-wrap{margin-left:auto!important;margin-right:auto!important}

    .tpa-dashboard-kpis{grid-template-columns:repeat(6,minmax(150px,1fr))}
    .tpa-dashboard-grid{display:block;margin:14px 0}
    .tpa-dashboard-stack{display:block;margin:14px 0}
    .tpa-dashboard-stack .tpa-card{margin-bottom:16px}
    .tpa-dashboard-stack .tpa-table th,.tpa-dashboard-stack .tpa-table td{font-size:14px;padding:9px 10px;white-space:nowrap}
    .tpa-dashboard-stack .tpa-scroll{overflow-x:auto}

    .tpa-card h2{margin-top:0}
    .tpa-card-title-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}
    @media(max-width:1100px){.tpa-dashboard-grid{display:block}.tpa-dashboard-kpis{grid-template-columns:1fr 1fr 1fr}}
    @media(max-width:640px){.tpa-dashboard-kpis{grid-template-columns:1fr}.tpa-card-title-row{display:block}.tpa-card-title-row .button{margin-top:8px}}
    @media(max-width:1000px){.tpa-grid,.tpa-kpis{grid-template-columns:1fr 1fr}.tpa-wrap{width:calc(100% - 20px)!important}}
    @media(max-width:760px){
        .tpa-wrap{width:calc(100% - 8px)!important;margin:6px auto!important}
        .tpa-wrap h1{font-size:21px;margin-bottom:7px}
        .tpa-card{padding:10px;border-radius:9px;margin:7px 0}
        .tpa-filter-card{padding:7px!important;margin:5px 0 7px!important}
        .tpa-filter-card .tpa-quick-filters{margin:0 0 7px!important;gap:4px!important}
        .tpa-filter-card .tpa-quick-btn{font-size:11px;padding:6px 5px!important}
        .tpa-filter-card .tpa-filter-grid-clean{gap:6px!important}
        .tpa-filter-card .tpa-field label{font-size:12px;margin-bottom:3px}
        .tpa-filter-card .tpa-field input,.tpa-filter-card .tpa-field select{min-height:35px!important;height:35px!important;padding:5px 7px!important;font-size:13px}
        .tpa-filter-card>p{margin:7px 0 0!important}
        .tpa-filter-card>p .button{min-height:34px;padding:4px 12px}
        .tpa-front-nav{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;padding:6px!important}
        .tpa-front-nav a{width:100%!important;padding:8px 6px!important;font-size:12px!important}
        .tpa-quick-filters{display:grid;grid-template-columns:1fr 1fr 1fr;gap:5px}
        .tpa-quick-btn{font-size:12px;padding:7px 5px;text-align:center}
        .tpa-dashboard-kpis,.tpa-kpis{grid-template-columns:1fr 1fr!important;gap:8px}
        .tpa-kpi{padding:10px;border-left-width:4px}
        .tpa-kpi b{font-size:16px;line-height:1.2;word-break:break-word}
        .tpa-filter-grid-clean,.tpa-grid{grid-template-columns:1fr!important;gap:8px}
        .tpa-desktop-table{display:none!important}
        .tpa-mobile-cards{display:block!important}
        .tpa-mobile-order-list{display:block!important;margin-top:4px;width:100%;max-width:100%;overflow-x:hidden!important}
        .tpa-mobile-order-table{width:100%!important;max-width:100%!important}
        .tpa-mobile-order-table th,.tpa-mobile-order-table td{box-sizing:border-box}
        .tpa-dashboard-stack .tpa-card h2,.tpa-card h2{font-size:19px;margin-bottom:8px}
        .tpa-note{font-size:12px;line-height:1.45;padding:9px}
        .tpa-fee-summary{grid-template-columns:1fr 1fr!important}
        .tpa-product-cell{min-width:260px;width:100%}
        .tpa-product-cell .js-product-name{min-width:240px;width:100%}
        .tpa-global-suggest-box{left:8px!important;right:8px!important;width:auto!important;max-height:55vh!important}
        .tpa-sticky-save{position:sticky;bottom:0;z-index:999;background:#fff;border-top:1px solid #d0d5dd;padding:10px;margin:12px -12px -12px;display:flex;gap:8px}
        .tpa-sticky-save .button{flex:1;text-align:center;justify-content:center}
    }
    .tpa-stock-negative{color:#b00020!important;font-weight:800;background:#fff1f1!important}
    .tpa-stock-suggest-negative .tpa-suggest-meta{color:#b00020!important;font-weight:700}
    @media(max-width:640px){.tpa-grid,.tpa-kpis{grid-template-columns:1fr}.tpa-wrap h1{font-size:23px}.tpa-front-nav a{flex:1 1 auto}}
    @media(max-width:420px){.tpa-dashboard-kpis,.tpa-kpis{grid-template-columns:1fr!important}.tpa-quick-filters{grid-template-columns:1fr 1fr}.tpa-mobile-card{padding:10px}.tpa-mobile-pair{font-size:13px}}

    .tpa-cost-actions .tpa-action-row{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-start}
    .tpa-action-box{display:block;margin:0 0 8px 0;min-width:260px}
    .tpa-action-box>summary{cursor:pointer;list-style:none;display:inline-block;margin-bottom:12px}
    .tpa-action-box>summary::-webkit-details-marker{display:none}
    .tpa-cost-detail summary{cursor:pointer;font-weight:700;color:#8b1a1a}
    .tpa-cost-drilldown{margin-top:8px;border:1px solid #e2e2e2;border-radius:6px;overflow:hidden;background:#fff}
    .tpa-mini-table{width:100%;border-collapse:collapse;font-size:13px}
    .tpa-mini-table th,.tpa-mini-table td{border-bottom:1px solid #eee;padding:6px 8px;text-align:left}
    .tpa-mini-table tr:last-child td{border-bottom:0}
    .tpa-locked-label{display:inline-block;padding:4px 8px;border-radius:999px;background:#eee;color:#555;font-weight:700;font-size:12px}
    @media(max-width:700px){.tpa-report-lock-admin{align-items:stretch;flex-direction:column}.tpa-report-lock-admin form,.tpa-report-lock-admin .button{width:100%}.tpa-report-lock-notice{padding:16px}.tpa-report-lock-icon{width:36px;height:36px;flex-basis:36px}}
.tpa-order-result-meta{margin:8px 0;color:#667085;font-size:12px}.tpa-order-pagination{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin:14px 0}.tpa-order-pagination span{font-size:13px;color:#475467}
