/* Survey Outlet modal and competitor market share dashboard */
.market-modal-open{overflow:hidden}
.market-survey-modal[hidden]{display:none!important}
.market-survey-modal{position:fixed;inset:0;z-index:20000;display:grid;place-items:center;padding:14px}
.market-survey-modal .market-overlay{position:absolute;inset:0;background:rgba(7,17,34,.77);backdrop-filter:blur(4px)}
.market-dialog{position:relative;display:flex;flex-direction:column;width:min(1240px,98vw);height:min(92vh,950px);background:#f6f8fb;border-radius:22px;overflow:hidden;box-shadow:0 30px 100px rgba(0,0,0,.32);color:#12243c}
.market-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#132239;padding:19px 24px;color:#fff;flex:0 0 auto}
.market-dialog-head h2{font-size:26px;margin:5px 0 6px;font-weight:900;letter-spacing:-.04em;color:#fff}
.market-dialog-head p{font-size:11px;color:#c4cede;margin:0}
.market-eyebrow{font-size:10px;color:#f4a0af;font-weight:900;letter-spacing:.12em}
.market-close{border:1px solid #40506a;background:#233550;color:#fff;width:39px;height:39px;border-radius:11px;font-size:25px;cursor:pointer}
.market-dialog form{display:flex;flex-direction:column;min-height:0;flex:1}
.market-dialog-body{overflow:auto;flex:1;min-height:0;padding:20px 22px}
.market-visit-intro{display:flex;gap:16px;align-items:end;flex-wrap:wrap;padding:16px;border:1px solid #e0e7f0;border-radius:14px;background:#fff;margin-bottom:15px}
.market-visit-intro label{font-size:10px;font-weight:900;color:#53657f;display:grid;gap:6px}
.market-visit-intro input{border:1px solid #d5deea;border-radius:9px;padding:10px;min-width:170px;font-size:12px}
.market-visit-intro span{flex:1;font-size:11px;color:#667589;line-height:1.5;min-width:180px}
.market-section{background:white;border:1px solid #e1e7ef;border-radius:17px;padding:17px 18px;margin-bottom:14px}
.market-section h3{font-size:16px;font-weight:900;color:#1b2a43;margin:0 0 7px}
.market-section>p{font-size:11px;color:#738197;margin:0 0 14px;line-height:1.6}
.market-scroll{overflow-x:auto;max-width:100%}
.market-data-table{width:100%;border-collapse:collapse;min-width:800px}
.market-data-table th,.market-data-table td{padding:9px 8px;border-bottom:1px solid #edf0f5;text-align:left;font-size:11px;vertical-align:middle}
.market-data-table thead th{background:#f2f5fa;font-size:10px;text-transform:uppercase;color:#51617b;letter-spacing:.02em;white-space:nowrap}
.market-data-table tbody tr:hover{background:#fafcfe}
.market-data-table tbody th{min-width:128px}
.market-data-table th small,.market-share-table th small{display:block;color:#8994a4;font-size:9px;margin-top:3px}
.market-brand{display:block;color:#182b47;font-weight:900;font-size:12px}
.market-data-table input{width:100%;min-width:92px;border:1px solid #d6deeb;background:#fff;border-radius:9px;font-size:12px;padding:10px 8px;font-variant-numeric:tabular-nums}
.market-data-table select:focus,.market-data-table input:focus,.market-branding-grid select:focus,.market-branding-grid input:focus{outline:2px solid #ee7893;outline-offset:0}
.market-data-table.wallet{min-width:540px}
.market-branding-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.market-branding-grid label,.market-photo-grid label,.market-notes{font-size:11px;color:#536780;font-weight:850;display:grid;gap:7px}
.market-branding-grid select,.market-branding-grid input,.market-notes textarea{padding:11px;border:1px solid #d6deea;border-radius:10px;font-size:12px;width:100%;background:#fff;color:#1c2b44}
.market-branding-grid input:disabled{background:#f1f4f8;color:#9aa5b3}
.market-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.market-photo-grid label{border:1px dashed #b6c5d9;border-radius:12px;padding:16px;background:#f8fafd}
.market-photo-grid input{font-size:11px;width:100%}
.market-photo-grid small{font-size:10px;color:#70839d}
.market-notes{margin-top:18px}
.market-dialog-footer{flex:0 0 auto;display:flex;align-items:center;gap:10px;background:#fff;padding:15px 22px;border-top:1px solid #e4e9f0;box-shadow:0 -5px 20px rgba(13,37,71,.04)}
.market-dialog-footer span{font-size:11px;color:#6e8098;flex:1;min-width:140px}
.market-dialog-footer button{padding:11px 17px;border-radius:10px;font-weight:900;font-size:12px;cursor:pointer;border:1px solid #ccd7e5}
.market-dialog-footer #marketSaveBtn{background:#ce1d38;border-color:#ce1d38;color:#fff}
.market-dialog-footer #marketSaveBtn:hover{background:#ad1930}
.market-dialog-footer #marketSaveBtn:disabled{opacity:.45;cursor:progress}
.market-dialog-footer .market-cancel{color:#53657a;background:#fff}
.market-live-preview{background:#152947;color:#f2f5fb;border-radius:13px;padding:18px;margin:15px 0;font-size:11px}
.market-live-preview>b{display:block;margin-bottom:11px;letter-spacing:.09em;font-size:10px;color:#ff8ca3}
.market-live-preview>div{display:grid;grid-template-columns:110px 1fr;gap:12px;padding:7px 0;border-bottom:1px solid #33455e;line-height:1.5}
.market-live-preview strong{color:#fff}.market-live-preview span{color:#cbd7e7}
.market-history-item{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:11px 4px;border-bottom:1px solid #e7edf4;font-size:11px}
.market-history-item b{color:#1c3150}
.market-history-item button,.market-share-table button{background:#f1f5fb;border:1px solid #d6e0ef;border-radius:8px;color:#235b96;cursor:pointer;padding:6px 9px;font-size:10px;font-weight:800}
.market-empty{padding:22px;color:#7a8798;border:1px dashed #ccd6e5;border-radius:12px;background:#fafbfd;font-size:12px}
.market-survey-link{background:#eef8f5!important;border:1px solid #b0dcd2!important;border-radius:999px!important;color:#0f7964!important;padding:6px 12px!important;font-weight:900!important;cursor:pointer;font-size:10px!important}
.market-survey-link:hover{background:#d9f4ec!important}
.market-photo-view{position:fixed;inset:0;z-index:30000;background:rgba(0,0,0,.92);display:flex;align-items:center;justify-content:center;padding:35px}
.market-photo-view img{max-width:100%;max-height:90vh;object-fit:contain}
.market-photo-view button{position:absolute;top:15px;right:15px;border-radius:100%;color:#fff;background:#39455b;border:0;width:40px;height:40px;cursor:pointer;font-size:25px}
.market-report-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:9px 0 17px}
.market-report-head h2{font-size:24px;letter-spacing:-.04em;color:#18283f;margin:8px 0}
.market-report-head p{font-size:11px;color:#697c90;margin:0}
.market-report-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.market-report-actions select,.market-report-actions button{min-height:38px;border:1px solid #d9e2ed;border-radius:9px;background:#fff;color:#314660;padding:9px 12px;font-weight:850;font-size:11px;cursor:pointer}
.market-report-actions button:last-child{background:#c51c39;color:#fff;border-color:#c51c39}
.market-report-status,.market-report-foot{font-size:10px;background:#f3f6fb;color:#687992;border:1px solid #e3eaf3;padding:10px 14px;border-radius:10px;margin-bottom:15px}
.market-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:17px}
.market-summary-grid>div{padding:20px;border:1px solid #e0e7f0;border-radius:16px;background:white}
.market-summary-grid small{display:block;color:#667d98;font-size:10px;font-weight:900;letter-spacing:.05em}
.market-summary-grid strong{display:block;color:#162b4b;font-size:26px;margin:10px 0}
.market-summary-grid span{font-size:10px;color:#7d8c9b}
.market-story{border-radius:15px;padding:18px 21px;background:linear-gradient(125deg,#182e50,#284669);margin-bottom:17px;color:#fff}
.market-story b{color:#ffa3b1;font-size:10px;letter-spacing:.09em}
.market-story p{font-size:12px;line-height:1.7;margin:8px 0 0;color:#e1e9f5}
.market-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start;margin-bottom:14px}
.market-report-card{border:1px solid #e0e7ef;background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 8px 22px rgba(26,48,88,.025);margin-bottom:14px}
.market-report-card header{padding:16px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e5ebf2}
.market-report-card header small{display:block;color:#9a6077;font-size:9px;text-transform:uppercase;letter-spacing:.09em;font-weight:950}
.market-report-card h3{font-size:14px;color:#1c304f;margin:5px 0 0}
.market-total b{display:block;color:#172f4f;text-align:right;font-size:19px}
.market-total span{display:block;color:#8b98a8;font-size:9px;text-align:right;margin-top:4px}
.market-share-table{width:100%;border-collapse:collapse;font-size:10px;min-width:500px}
.market-share-table th,.market-share-table td{padding:10px 12px;text-align:left;border-bottom:1px solid #edf0f5;color:#30425c;font-variant-numeric:tabular-nums}
.market-share-table thead th{font-size:9px;color:#63718b;background:#f5f7fa;font-weight:900}
.market-share-table tbody th{font-weight:950;color:#253957}
.market-share-table tfoot th,.market-share-table tfoot td{font-weight:950;background:#f9fafc;color:#172f4c}
.market-bar-track{width:100%;min-width:60px;height:8px;background:#ebeff6;overflow:hidden;border-radius:100px}
.market-bar-track span{display:block;height:100%;border-radius:100px;min-width:0}
.market-report-card .market-report-foot{background:transparent;border:0;margin:0;padding:12px 17px;color:#7d8da3;font-size:10px}
.market-notice{padding:14px;background:#fff6eb;border:1px solid #f0d9b2;border-radius:13px;color:#976326;margin-bottom:15px;font-size:11px}
@media(max-width:1050px){.market-chart-grid{grid-template-columns:1fr}.market-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.market-survey-modal{padding:0}.market-dialog{height:100dvh;width:100vw;border-radius:0}.market-dialog-head{padding:15px}.market-dialog-body{padding:10px}.market-dialog-footer{padding:10px;flex-wrap:wrap}.market-dialog-footer span{flex-basis:100%}.market-section{padding:12px}.market-branding-grid,.market-photo-grid{grid-template-columns:1fr}.market-summary-grid{gap:8px}.market-summary-grid>div{padding:13px}.market-summary-grid strong{font-size:19px}.market-report-head h2{font-size:20px}}

.market-operator-section{margin-bottom:18px}
.market-report-headline h3{font-size:15px;color:#1c304a;margin:0 0 5px}
.market-report-headline p{font-size:11px;color:#7a899d;margin:0 0 11px;line-height:1.5}
.market-operator-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.market-operator-card{border-radius:15px;background:#fff;border:1px solid #e1e7ef;overflow:hidden;padding:17px}
.market-operator-card h4{margin:0 0 12px;font-size:14px;color:#1e3a60}
.market-operator-measures{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.market-operator-measures>div{background:#f5f8fc;border-radius:9px;padding:8px;min-width:0}
.market-operator-measures span{display:block;font-size:9px;font-weight:850;color:#6b7d95}
.market-operator-measures b{display:block;font-size:15px;color:#15335b;margin:6px 0}
.market-operator-measures small{font-size:9px;color:#8b98a9}
.market-operator-cue{margin:12px 0 0;border-top:1px solid #e8edf2;padding-top:11px;font-size:11px;line-height:1.6;color:#61738b}
.market-operator-cue b{color:#c52a4b}
@media(max-width:1180px){.market-operator-grid{grid-template-columns:1fr}}
@media(max-width:650px){.market-operator-measures{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Market Hero pricing: observed modal price with occurrence counts */
.market-price-mode{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:120px}
.market-price-mode b{font-size:11px;color:#153858;white-space:normal;overflow-wrap:anywhere}
.market-price-mode small{display:block;font-size:9px;color:#73859b;line-height:1.4}
.market-price-tie b{color:#af6f16}
.market-price-none{color:#93a0b1}

.market-wallet-summary{margin-top:12px;padding:12px 14px;border-radius:11px;background:#eff7f4;border:1px solid #c6e2d9;color:#286b58;font-weight:800;font-size:11px;line-height:1.6}

/* SP/VF product validity (days), accessible and horizontally scrollable on mobile */
.market-data-table:not(.wallet){min-width:1050px}
.market-data-table .market-validity-select{width:100%;min-width:118px;max-width:145px;border:1px solid #c9d5e6;background:#f8fbff;border-radius:9px;color:#19314e;font-size:12px;font-weight:800;padding:10px 8px;min-height:40px}
.market-data-table .market-validity-select:focus-visible{outline:2px solid #e95572;outline-offset:2px}
.market-history-validity{display:block;margin-top:4px;color:#4d647e;font-size:10px;line-height:1.5}

/* Keep product/operator visible when users swipe across columns on mobile */
.market-data-table:not(.wallet) thead th:first-child{position:sticky;left:0;z-index:3;background:#f2f5fa;box-shadow:2px 0 5px rgba(13,35,68,.045)}
.market-data-table:not(.wallet) tbody th:first-child{position:sticky;left:0;z-index:2;background:#fff;box-shadow:2px 0 5px rgba(13,35,68,.045)}
.market-data-table:not(.wallet) tbody tr:hover th:first-child{background:#fafcfe}

/* Safeguard against losing unsaved survey input */
.market-exit-confirm[hidden]{display:none!important}
.market-exit-confirm{position:fixed;inset:0;z-index:35000;display:grid;place-items:center;padding:20px}
.market-exit-backdrop{position:absolute;inset:0;background:rgba(9,20,37,.76);backdrop-filter:blur(3px)}
.market-exit-panel{position:relative;width:min(480px,94vw);background:#fff;color:#17263e;border-radius:20px;box-shadow:0 35px 100px rgba(0,0,0,.3);padding:27px 26px;text-align:center}
.market-exit-mark{margin:0 auto 14px;background:#fff2e3;color:#bd6d1d;display:grid;place-items:center;width:50px;height:50px;border-radius:50%;font-size:27px;font-weight:950}
.market-exit-panel h3{margin:4px 0 9px;font-size:21px;color:#14253e}
.market-exit-panel p{font-size:12px;color:#607087;line-height:1.6;margin:0 0 17px}
.market-exit-buttons{display:grid;gap:9px}
.market-exit-buttons button{min-height:44px;border-radius:10px;padding:11px;font-size:12px;font-weight:900;cursor:pointer}
.market-exit-stay{background:#c72342;color:#fff;border:1px solid #c72342}
.market-exit-draft{background:#f0f6fc;color:#1c466d;border:1px solid #bed3ea}
.market-exit-discard{background:#fff;color:#8d3343;border:1px solid #edd5d8}
.market-exit-panel small{display:block;color:#8591a2;line-height:1.6;font-size:10px;margin-top:15px}
@media(min-width:650px){.market-exit-buttons{grid-template-columns:1fr 1fr}.market-exit-stay{grid-column:1/-1}}

.market-filter-section #marketFilterSlot{padding:16px 18px}.market-filter-toolbar{display:flex;align-items:end;flex-wrap:wrap;gap:10px}.market-filter-toolbar .market-filter-label{display:flex;flex-direction:column;gap:5px;color:#47607a;font-size:11px;font-weight:800;min-width:200px}.market-filter-toolbar .market-filter-label select{width:100%}.market-filter-section{margin-top:18px}

.market-quick-filter{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:13px 16px;margin:8px 0 13px;border:1px solid #d9e3ed;border-radius:12px;background:#f7faff}.market-quick-filter label{font-size:11px;font-weight:900;color:#243954;letter-spacing:.025em}.market-quick-filter select{min-width:220px;min-height:41px;background:white;color:#223854;border:1px solid #cbd9e6;border-radius:9px;padding:8px 12px;font-weight:800}.market-quick-filter span{font-size:12px;color:#4f627d;font-weight:700}.market-summary-context{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:6px 0 12px;font-size:12px}.market-summary-context b{color:#b81937}.market-summary-context span{color:#667e94}@media(max-width:700px){.market-quick-filter select{width:100%}}
