/*
 * MediStock-Alert Frontend CSS
 * Fully scoped for WP Rocket/theme compatibility.
 * Root scope: .msa-shell[data-msa-component="frontend-app"]
 */

.msa-shell[data-msa-component="frontend-app"]{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;max-width:1180px;margin:0 auto;padding:20px 16px 28px;color:#172033;position:relative}
.msa-shell[data-msa-component="frontend-app"] .msa-page-bg{position:absolute;inset:0;z-index:-1;background:linear-gradient(160deg,#e8edff 0%,#f8fafc 20%,#eef5f8 100%);border-radius:28px}
.msa-shell[data-msa-component="frontend-app"] .msa-header-card,.msa-shell[data-msa-component="frontend-app"] .msa-panel{background:rgba(255,255,255,.92);backdrop-filter:blur(8px);border:1px solid rgba(215,222,238,.9);border-radius:24px;box-shadow:0 18px 48px rgba(24,39,75,.08)}
.msa-shell[data-msa-component="frontend-app"] .msa-header-card{display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center;padding:28px 32px;margin-bottom:22px;background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(248,251,255,.92))}
.msa-shell[data-msa-component="frontend-app"] .msa-header-mark,.msa-shell[data-msa-component="frontend-app"] .msa-modal-badge{width:56px;height:56px;border-radius:18px;background:radial-gradient(circle at 30% 30%,#ff7ea8 0 28%,transparent 30%),linear-gradient(135deg,#ff6a88,#ffcc70);position:relative;box-shadow:0 10px 24px rgba(255,106,136,.28)}
.msa-shell[data-msa-component="frontend-app"] .msa-header-mark:after,.msa-shell[data-msa-component="frontend-app"] .msa-modal-badge:after{content:'';position:absolute;left:50%;top:50%;width:24px;height:24px;background:#fff;border-radius:9px;transform:translate(-50%,-50%) rotate(45deg);opacity:.88}
.msa-shell[data-msa-component="frontend-app"] .msa-title{margin:0;font-size:40px;line-height:1;letter-spacing:-1.1px;font-weight:900;background:linear-gradient(135deg,#162033 0%,#2a3d67 55%,#42598f 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
.msa-shell[data-msa-component="frontend-app"] .msa-subtitle{margin:8px 0 0;color:#637087;font-size:17px}
.msa-shell[data-msa-component="frontend-app"] .msa-header-month,.msa-shell[data-msa-component="frontend-app"] .msa-month-pill{padding:10px 18px;border-radius:999px;background:linear-gradient(135deg,#1d9e75,#37c49b);color:#fff;font-weight:700;font-size:14px;white-space:nowrap;box-shadow:0 6px 16px rgba(29,158,117,.22)}
.msa-shell[data-msa-component="frontend-app"] .msa-alert{margin-bottom:16px;padding:14px 16px;border:1px solid #f3d485;background:#fff8e1;border-radius:16px;color:#8a6110;box-shadow:0 8px 20px rgba(138,97,16,.08)}
.msa-shell[data-msa-component="frontend-app"] .msa-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.85fr);gap:18px;align-items:start}
.msa-shell[data-msa-component="frontend-app"] .msa-panel{padding:24px}
.msa-shell[data-msa-component="frontend-app"] .msa-panel-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px}
.msa-shell[data-msa-component="frontend-app"] .msa-panel-kicker{font-size:14px;color:#54627f;margin-bottom:8px;text-transform:none;letter-spacing:0;font-weight:800}
.msa-shell[data-msa-component="frontend-app"] .msa-panel h3{margin:0;font-size:22px;line-height:1.2;letter-spacing:-.3px}
.msa-shell[data-msa-component="frontend-app"] .msa-search-wrap{position:relative;margin-bottom:10px}
.msa-shell[data-msa-component="frontend-app"] #msa-search{width:100%;padding:16px 56px 16px 18px;border:1.5px solid #d9dfeb;border-radius:16px;background:#f8fbff;font-size:16px;outline:none;box-sizing:border-box;transition:.2s;color:#172033}
.msa-shell[data-msa-component="frontend-app"] #msa-search:focus{border-color:#5b7cff;background:#fff;box-shadow:0 0 0 4px rgba(91,124,255,.08)}
.msa-shell[data-msa-component="frontend-app"] .msa-spinner{display:none;position:absolute;right:18px;top:50%;transform:translateY(-50%);width:18px;height:18px;border:2px solid #e5e7eb;border-top-color:#5b7cff;border-radius:50%;animation:msa-spin .7s linear infinite}
.msa-shell[data-msa-component="frontend-app"] .msa-spinner.is-on{display:block}
.msa-shell[data-msa-component="frontend-app"] .msa-search-help{color:#7d8593;font-size:12px;margin-bottom:16px}
.msa-shell[data-msa-component="frontend-app"] .msa-results-headline{display:flex;justify-content:space-between;align-items:center;margin:10px 0 14px;font-size:15px;font-weight:700}
.msa-shell[data-msa-component="frontend-app"] .msa-counter-pill{min-width:36px;height:32px;border-radius:999px;background:#eef4ff;color:#4561d8;display:inline-flex;align-items:center;justify-content:center;padding:0 12px;font-weight:800}
.msa-shell[data-msa-component="frontend-app"] #msa-results{min-height:140px}
.msa-shell[data-msa-component="frontend-app"] .msa-results-scroll{display:flex;flex-direction:column;gap:12px;max-height:300px;overflow:auto;padding-right:6px}
.msa-shell[data-msa-component="frontend-app"] .msa-item{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:flex-start;border:1px solid #e3eaf6;border-radius:18px;padding:16px;background:linear-gradient(180deg,#fff,#fbfdff);transition:.18s}
.msa-shell[data-msa-component="frontend-app"] .msa-item:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(32,56,117,.09);border-color:#cfd8ef}
.msa-shell[data-msa-component="frontend-app"] .msa-icon{width:46px;height:46px;border-radius:14px;background:linear-gradient(135deg,#eaf0ff,#dce7ff);display:flex;align-items:center;justify-content:center;font-size:20px}
.msa-shell[data-msa-component="frontend-app"] .msa-icon.para{background:linear-gradient(135deg,#effaf6,#d6f6e7)}
.msa-shell[data-msa-component="frontend-app"] .msa-name{font-size:17px;font-weight:800;margin-bottom:6px;line-height:1.25;word-break:break-word}
.msa-shell[data-msa-component="frontend-app"] .msa-meta,.msa-shell[data-msa-component="frontend-app"] .msa-side-meta{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.msa-shell[data-msa-component="frontend-app"] .msa-side-meta{font-size:12px;color:#6b7383;margin-top:6px}
.msa-shell[data-msa-component="frontend-app"] .msa-badge,.msa-shell[data-msa-component="frontend-app"] .msa-trend,.msa-shell[data-msa-component="frontend-app"] .msa-done-badge{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:700}
.msa-shell[data-msa-component="frontend-app"] .msa-cat-pharma{background:#eef3ff;color:#4063d7}
.msa-shell[data-msa-component="frontend-app"] .msa-cat-parapharma{background:#edf9f2;color:#17835f}
.msa-shell[data-msa-component="frontend-app"] .msa-trend{background:#f3f6fb;color:#566176}
.msa-shell[data-msa-component="frontend-app"] .msa-done-badge{background:#eaf9f2;color:#177a58}
.msa-shell[data-msa-component="frontend-app"] .msa-item-side{display:flex;flex-direction:column;align-items:flex-end;gap:10px;min-width:150px}
.msa-shell[data-msa-component="frontend-app"] .msa-count{text-align:right}
.msa-shell[data-msa-component="frontend-app"] .msa-count-num{font-size:28px;font-weight:900;color:#f05a68;line-height:1}
.msa-shell[data-msa-component="frontend-app"] .msa-count-lbl{font-size:11px;color:#7e8796;margin-top:4px}
.msa-shell[data-msa-component="frontend-app"] .msa-report-btn,.msa-shell[data-msa-component="frontend-app"] .msa-side-action{border:0;border-radius:12px;padding:11px 14px;background:linear-gradient(135deg,#ef5a6d,#ff8173);color:#fff;font-weight:800;cursor:pointer;font-size:13px;box-shadow:0 8px 20px rgba(239,90,109,.22);transition:.15s}
.msa-shell[data-msa-component="frontend-app"] .msa-report-btn:hover,.msa-shell[data-msa-component="frontend-app"] .msa-side-action:hover{transform:translateY(-1px);box-shadow:0 12px 28px rgba(239,90,109,.3)}
.msa-shell[data-msa-component="frontend-app"] .msa-empty-side{padding:24px;border:1px dashed #dbe4f2;border-radius:16px;background:#f9fbfe;color:#7d8593;text-align:center;min-height:120px;display:flex;align-items:center;justify-content:center}
.msa-shell[data-msa-component="frontend-app"] .msa-side-item{padding:14px 16px;border:1px solid #e3eaf6;border-radius:16px;background:linear-gradient(180deg,#fff,#fbfdff);transition:.15s}
.msa-shell[data-msa-component="frontend-app"] .msa-side-item:hover{box-shadow:0 8px 20px rgba(32,56,117,.07)}
.msa-shell[data-msa-component="frontend-app"] .msa-side-item+.msa-side-item{margin-top:10px}
.msa-shell[data-msa-component="frontend-app"] .msa-side-name{font-weight:800;line-height:1.3}
.msa-shell[data-msa-component="frontend-app"] .msa-side-action{margin-top:10px;width:100%;text-align:center}
.msa-shell[data-msa-component="frontend-app"] .msa-side-info{margin-top:10px;padding-top:10px;border-top:1px solid #edf1f7;font-size:12px;color:#637087}

/* ---- MODAL ---- */
.msa-shell[data-msa-component="frontend-app"] .msa-modal{position:fixed;inset:0;background:rgba(17,24,39,.5);display:none;align-items:center;justify-content:center;padding:18px;z-index:9999;backdrop-filter:blur(2px)}
.msa-shell[data-msa-component="frontend-app"] .msa-modal.open{display:flex}
.msa-shell[data-msa-component="frontend-app"] .msa-modal-card{width:min(100%,560px);background:#fff;border-radius:28px;padding:28px;border:1px solid #e7ebf3;box-shadow:0 32px 80px rgba(17,24,39,.22);animation:msa-slide-up .22s ease}
@keyframes msa-slide-up{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
.msa-shell[data-msa-component="frontend-app"] .msa-modal-head{display:flex;gap:14px;align-items:center;margin-bottom:16px}
.msa-shell[data-msa-component="frontend-app"] .msa-grow{flex:1}
.msa-shell[data-msa-component="frontend-app"] .msa-modal-title{font-size:22px;font-weight:800;letter-spacing:-.3px}
.msa-shell[data-msa-component="frontend-app"] .msa-modal-subtitle{font-size:13px;color:#6b7383;margin-top:4px}
.msa-shell[data-msa-component="frontend-app"] .msa-close{display:inline-flex;align-items:center;justify-content:center;background:#1f2937;color:#fff;border:0;width:40px;height:40px;border-radius:12px;font-size:18px;font-weight:800;cursor:pointer;transition:.15s}
.msa-shell[data-msa-component="frontend-app"] .msa-close:hover{background:#111827;transform:scale(1.05)}
.msa-shell[data-msa-component="frontend-app"] .msa-modal-name{font-size:19px;font-weight:800;margin:4px 0 20px;padding:14px 16px;background:linear-gradient(135deg,#f0f4ff,#e8edff);border-radius:14px;border:1px solid #d8e0f5;color:#2a3a6b}

/* Two-column grid inside modal */
.msa-shell[data-msa-component="frontend-app"] .msa-modal-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}
.msa-shell[data-msa-component="frontend-app"] .msa-field-group{display:flex;flex-direction:column;gap:6px}
.msa-shell[data-msa-component="frontend-app"] .msa-field-full{margin-bottom:0}
.msa-shell[data-msa-component="frontend-app"] .msa-label{display:block;font-size:13px;font-weight:700;color:#374151;display:flex;align-items:center;gap:6px}
.msa-shell[data-msa-component="frontend-app"] .msa-label-icon{font-size:14px}
.msa-shell[data-msa-component="frontend-app"] .msa-optional{font-weight:400;color:#9ca3af;font-size:12px}
.msa-shell[data-msa-component="frontend-app"] .msa-input{width:100%;box-sizing:border-box;border:1.5px solid #d9dfeb;border-radius:12px;padding:12px 14px;font-size:15px;background:#fbfcff;color:#172033;transition:.15s;outline:none}
.msa-shell[data-msa-component="frontend-app"] .msa-input:focus{border-color:#5b7cff;box-shadow:0 0 0 3px rgba(91,124,255,.1)}
.msa-shell[data-msa-component="frontend-app"] .msa-select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:36px;cursor:pointer}
.msa-shell[data-msa-component="frontend-app"] .msa-note{font-size:12px;color:#6b7383;background:#f8fbff;border:1px solid #e4eaf6;border-radius:12px;padding:12px 14px;margin-top:16px;display:flex;align-items:flex-start;gap:8px;line-height:1.5}
.msa-shell[data-msa-component="frontend-app"] .msa-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}
.msa-shell[data-msa-component="frontend-app"] .msa-btn{border:0;border-radius:14px;padding:13px 22px;font-weight:800;cursor:pointer;font-size:15px;transition:.15s}
.msa-shell[data-msa-component="frontend-app"] .msa-btn-light{background:#f1f5f9;color:#334155}
.msa-shell[data-msa-component="frontend-app"] .msa-btn-light:hover{background:#e2e8f0}
.msa-shell[data-msa-component="frontend-app"] .msa-btn-danger{background:linear-gradient(135deg,#ef5a6d,#ff8173);color:#fff;box-shadow:0 8px 20px rgba(239,90,109,.28);display:flex;align-items:center;gap:8px}
.msa-shell[data-msa-component="frontend-app"] .msa-btn-danger:hover{transform:translateY(-1px);box-shadow:0 12px 28px rgba(239,90,109,.38)}
.msa-shell[data-msa-component="frontend-app"] .msa-btn-danger:disabled{opacity:.65;transform:none;cursor:not-allowed}

.msa-shell[data-msa-component="frontend-app"] .msa-toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%) translateY(20px);background:#1f2937;color:#fff;padding:14px 22px;border-radius:999px;opacity:0;pointer-events:none;transition:.22s;z-index:10000;box-shadow:0 16px 40px rgba(0,0,0,.25);font-weight:600;font-size:14px}
.msa-shell[data-msa-component="frontend-app"] .msa-toast-show{opacity:1;transform:translateX(-50%) translateY(0)}
.msa-shell[data-msa-component="frontend-app"] .msa-toast-err{background:#b42318}
@keyframes msa-spin{to{transform:translateY(-50%) rotate(360deg)}}
@media(max-width:900px){
  .msa-shell[data-msa-component="frontend-app"] .msa-layout{grid-template-columns:1fr}
  .msa-shell[data-msa-component="frontend-app"] .msa-header-card{grid-template-columns:auto 1fr}
  .msa-shell[data-msa-component="frontend-app"] .msa-header-month{grid-column:1/-1;justify-self:start}
  .msa-shell[data-msa-component="frontend-app"] .msa-title{font-size:32px}
  .msa-shell[data-msa-component="frontend-app"] .msa-panel h3{font-size:20px}
  .msa-shell[data-msa-component="frontend-app"] .msa-results-scroll{max-height:340px}
  .msa-shell[data-msa-component="frontend-app"] .msa-item{grid-template-columns:1fr}
  .msa-shell[data-msa-component="frontend-app"] .msa-item-side{align-items:flex-start;min-width:0}
  .msa-shell[data-msa-component="frontend-app"] .msa-actions{justify-content:stretch}
  .msa-shell[data-msa-component="frontend-app"] .msa-btn{flex:1}
  .msa-shell[data-msa-component="frontend-app"] .msa-modal-grid{grid-template-columns:1fr}
}

.msa-shell[data-msa-component="frontend-app"] .msa-more-btn{margin-top:12px;width:100%;border:0;border-radius:14px;padding:12px 14px;font-weight:800;font-size:15px;cursor:pointer;background:#eef3ff;color:#3153d4}
.msa-shell[data-msa-component="frontend-app"] .msa-more-btn:hover{filter:brightness(.98)}
.msa-shell[data-msa-component="frontend-app"] .msa-side-details{display:none;margin-top:12px;padding:12px 14px;border:1px solid #dfe6f5;border-radius:14px;background:#f8fbff}
.msa-shell[data-msa-component="frontend-app"] .msa-side-details.open{display:block}
.msa-shell[data-msa-component="frontend-app"] .msa-side-detail-title{font-size:12px;font-weight:800;color:#637087;margin-bottom:8px;text-transform:none;letter-spacing:0}
.msa-shell[data-msa-component="frontend-app"] .msa-side-detail-row{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid #e6ecf7}
.msa-shell[data-msa-component="frontend-app"] .msa-side-detail-row:last-child{border-bottom:0;padding-bottom:0}
.msa-shell[data-msa-component="frontend-app"] .msa-side-detail-pref{font-weight:700;color:#172033}
.msa-shell[data-msa-component="frontend-app"] .msa-side-detail-count{color:#637087;font-weight:700}
.msa-shell[data-msa-component="frontend-app"] .msa-side-detail-empty{color:#637087;font-size:14px}

/* Frontend prefecture map */
.msa-shell[data-msa-component="frontend-app"] .msa-map-section{display:grid;gap:18px;margin-top:18px}
.msa-shell[data-msa-component="frontend-app"] .msa-map-card{background:rgba(255,255,255,.92);backdrop-filter:blur(8px);border:1px solid rgba(215,222,238,.9);border-radius:24px;box-shadow:0 18px 48px rgba(24,39,75,.08);padding:20px}
.msa-shell[data-msa-component="frontend-app"] .msa-map-head{position:relative;display:flex;align-items:flex-start;justify-content:flex-start;gap:12px;margin-bottom:16px;padding-right:72px;min-height:40px}
.msa-shell[data-msa-component="frontend-app"] .msa-map-title{margin:0;font-size:18px;line-height:1.3;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.msa-shell[data-msa-component="frontend-app"] .msa-map-subtitle{font-size:14px;font-weight:400;color:#637087}
.msa-shell[data-msa-component="frontend-app"] .msa-map-close{position:absolute!important;top:-4px!important;right:0!important;left:auto!important;display:inline-flex!important;align-items:center;justify-content:center;border:0;border-radius:999px;width:40px;height:40px;background:#dc2626!important;color:#fff!important;font-weight:900;cursor:pointer;font-size:22px;line-height:1;white-space:nowrap;flex:0 0 auto;box-shadow:0 10px 24px rgba(220,38,38,.22);z-index:30}
.msa-shell[data-msa-component="frontend-app"] .msa-map-close:hover{background:#b91c1c!important;transform:scale(1.04)}
.msa-shell[data-msa-component="frontend-app"] .msa-heatmap-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:10px}
.msa-shell[data-msa-component="frontend-app"] .msa-heatmap-cell{appearance:none;border:1px solid #dbe4f2;border-radius:20px;background:linear-gradient(180deg,#fbfdff,#f4f8ff);padding:16px 12px;text-align:center;cursor:pointer;transition:.18s;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:90px;color:#51607a;gap:6px}
.msa-shell[data-msa-component="frontend-app"] .msa-heatmap-cell:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(59,130,246,.18);border-color:#5b7cff;background:linear-gradient(135deg,#eef4ff,#dbeafe);color:#1d4ed8}
.msa-shell[data-msa-component="frontend-app"] .msa-heatmap-cell.is-active{box-shadow:0 0 0 2px #5b7cff inset,0 14px 28px rgba(91,124,255,.14)}
.msa-shell[data-msa-component="frontend-app"] .msa-heatmap-cell .cell-num{display:none}
.msa-shell[data-msa-component="frontend-app"] .msa-heatmap-cell .cell-name{display:block;font-size:16px;font-weight:900;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.msa-shell[data-msa-component="frontend-app"] .msa-heatmap-cell .cell-sub{display:block;font-size:15px;font-weight:700;margin-top:0}
.msa-shell[data-msa-component="frontend-app"] .heat-0{background:linear-gradient(180deg,#fbfdff,#f4f7fc);color:#a9b4c8}.msa-shell[data-msa-component="frontend-app"] .heat-1{background:linear-gradient(180deg,#eef3ff,#e3ebff);color:#4f6ef7}.msa-shell[data-msa-component="frontend-app"] .heat-2{background:linear-gradient(180deg,#e6ecff,#dbe5ff);color:#3a59d4}.msa-shell[data-msa-component="frontend-app"] .heat-3{background:linear-gradient(180deg,#dce6ff,#d1ddff);color:#2a4bc4}.msa-shell[data-msa-component="frontend-app"] .heat-4{background:linear-gradient(180deg,#fdeef1,#fbe1e7);color:#d34258;border-color:#f2b3be}.msa-shell[data-msa-component="frontend-app"] .heat-5{background:linear-gradient(180deg,#f9dde2,#f5c9d1);color:#b02030;border-color:#ea8d9d}
.msa-shell[data-msa-component="frontend-app"] .msa-map-table{width:100%;border-collapse:separate;border-spacing:0;font-size:14px}
.msa-shell[data-msa-component="frontend-app"] .msa-map-table th{background:#f4f6fb;color:#5c6d89;font-size:12px;font-weight:800;padding:12px 14px;text-align:left}
.msa-shell[data-msa-component="frontend-app"] .msa-map-table th:first-child{border-top-left-radius:12px}.msa-shell[data-msa-component="frontend-app"] .msa-map-table th:last-child{border-top-right-radius:12px}
.msa-shell[data-msa-component="frontend-app"] .msa-map-table td{padding:14px;border-bottom:1px solid #e7edf7}
.msa-shell[data-msa-component="frontend-app"] .msa-map-table tbody tr:last-child td{border-bottom:0}
.msa-shell[data-msa-component="frontend-app"] .msa-map-rank{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:10px;background:#f6bd00;color:#7a4f00;font-weight:900;font-size:12px}
.msa-shell[data-msa-component="frontend-app"] .msa-map-drug{font-weight:800}
.msa-shell[data-msa-component="frontend-app"] .msa-more-btn{border:0;border-radius:12px;padding:11px 14px;background:linear-gradient(135deg,#ef5a6d,#ff8173);color:#fff;font-weight:800;cursor:pointer;font-size:13px;box-shadow:0 8px 20px rgba(239,90,109,.22);transition:.15s;margin-top:10px;width:100%}
.msa-shell[data-msa-component="frontend-app"] .msa-more-btn:hover{transform:translateY(-1px);box-shadow:0 12px 28px rgba(239,90,109,.3)}
@media (max-width:700px){.msa-shell[data-msa-component="frontend-app"] .msa-map-card{padding:16px}.msa-shell[data-msa-component="frontend-app"] .msa-heatmap-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.msa-shell[data-msa-component="frontend-app"] .msa-map-table{display:block;overflow:auto}}

.msa-shell[data-msa-component="frontend-app"] .msa-hidden{display:none!important;}
.msa-shell[data-msa-component="frontend-app"] .msa-visible{display:block!important;}

.msa-shell[data-msa-component="frontend-app"] .msa-item-compact{display:flex;align-items:center;justify-content:space-between;gap:16px;}
.msa-shell[data-msa-component="frontend-app"] .msa-item-compact .msa-name{font-size:18px;font-weight:700;}
.msa-shell[data-msa-component="frontend-app"] .msa-side-item-compact{padding:16px 18px;}
.msa-shell[data-msa-component="frontend-app"] .msa-side-item-compact .msa-side-name{font-size:16px;line-height:1.35;}

/* UI polish v10 */
.msa-shell[data-msa-component="frontend-app"] .msa-header-card{align-items:center;gap:22px}
.msa-shell[data-msa-component="frontend-app"] .msa-subtitle{max-width:860px;line-height:1.65}
.msa-shell[data-msa-component="frontend-app"] .msa-panel-head{margin-bottom:18px}
.msa-shell[data-msa-component="frontend-app"] .msa-panel h3{font-size:28px;line-height:1.25;max-width:760px}
.msa-shell[data-msa-component="frontend-app"] .msa-month-pill,.msa-shell[data-msa-component="frontend-app"] .msa-header-month{font-weight:800}
.msa-shell[data-msa-component="frontend-app"] .msa-side-item-compact{padding:18px 20px;border-radius:18px;background:linear-gradient(180deg,#ffffff,#f9fbff);border:1px solid #e2e9f6;box-shadow:0 10px 24px rgba(32,56,117,.05)}
.msa-shell[data-msa-component="frontend-app"] .msa-side-name{font-size:17px}
.msa-shell[data-msa-component="frontend-app"] .msa-heatmap-grid{grid-template-columns:repeat(auto-fill,minmax(146px,1fr));gap:12px}
.msa-shell[data-msa-component="frontend-app"] .msa-heatmap-cell{min-height:92px;border-radius:20px;padding:16px 12px}
.msa-shell[data-msa-component="frontend-app"] .msa-heatmap-cell .cell-num{display:none}
.msa-shell[data-msa-component="frontend-app"] .msa-heatmap-cell .cell-name{font-size:16px;font-weight:900}
.msa-shell[data-msa-component="frontend-app"] .msa-heatmap-cell .cell-sub{font-size:15px;font-weight:700}
.msa-shell[data-msa-component="frontend-app"] .msa-map-title{font-size:20px;font-weight:800;margin-bottom:18px}
.msa-shell[data-msa-component="frontend-app"] .msa-map-subtitle{font-size:15px;color:#6a7488}
.msa-shell[data-msa-component="frontend-app"] .msa-map-table th{font-size:13px;text-transform:none}
.msa-shell[data-msa-component="frontend-app"] .msa-map-table td{font-size:15px}
.msa-shell[data-msa-component="frontend-app"] .msa-map-drug{font-weight:900}

.msa-shell[data-msa-component="frontend-app"] .msa-panel-lead{font-size:20px!important;font-weight:700;line-height:1.35;max-width:680px;color:#2a3650}
@media(max-width:900px){.msa-shell[data-msa-component="frontend-app"] .msa-panel h3{font-size:22px}.msa-shell[data-msa-component="frontend-app"] .msa-heatmap-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.msa-shell[data-msa-component="frontend-app"] .msa-panel-lead{font-size:16px!important;line-height:1.45;max-width:620px}
.msa-shell[data-msa-component="frontend-app"] .msa-modal-grid-single{grid-template-columns:1fr}
.msa-shell[data-msa-component="frontend-app"] #msa-comment,.msa-shell[data-msa-component="frontend-app"] .msa-modal textarea,.msa-shell[data-msa-component="frontend-app"] .msa-field-group textarea{
  width:100%;
  box-sizing:border-box;
  border:1.5px solid #d9dfeb;
  border-radius:12px;
  padding:12px 14px;
  font-size:15px;
  background:#fbfcff;
  color:#172033;
  transition:.15s;
  outline:none;
  min-height:52px;
  resize:vertical;
  font-family:inherit;
  line-height:1.45;
  box-shadow:none;
  appearance:none;
  -webkit-appearance:none;
}
.msa-shell[data-msa-component="frontend-app"] #msa-comment:focus,.msa-shell[data-msa-component="frontend-app"] .msa-modal textarea:focus,.msa-shell[data-msa-component="frontend-app"] .msa-field-group textarea:focus{
  border-color:#5b7cff;
  box-shadow:0 0 0 3px rgba(91,124,255,.1);
  background:#fff;
}
.msa-shell[data-msa-component="frontend-app"] #msa-comment::placeholder,.msa-shell[data-msa-component="frontend-app"] .msa-modal textarea::placeholder,.msa-shell[data-msa-component="frontend-app"] .msa-field-group textarea::placeholder{
  color:#9ca3af;
}
.msa-shell[data-msa-component="frontend-app"] .msa-map-table th:last-child,.msa-shell[data-msa-component="frontend-app"] .msa-map-table td:last-child{text-align:left}
.msa-shell[data-msa-component="frontend-app"] .msa-comment-toggle{border:0;border-radius:12px;padding:9px 12px;background:#eef3ff;color:#3153d4;font-weight:800;cursor:pointer;font-size:13px;white-space:nowrap}
.msa-shell[data-msa-component="frontend-app"] .msa-comment-toggle:hover{filter:brightness(.98)}
.msa-shell[data-msa-component="frontend-app"] .msa-comments-row{display:none}
.msa-shell[data-msa-component="frontend-app"] .msa-comments-row.open{display:block}
.msa-shell[data-msa-component="frontend-app"] .msa-comments-row[hidden]{display:none!important}
.msa-shell[data-msa-component="frontend-app"] .msa-comments-row td{background:#f8fbff;padding:14px 16px!important}
.msa-shell[data-msa-component="frontend-app"] .msa-comments-list{display:grid;gap:10px}
.msa-shell[data-msa-component="frontend-app"] .msa-comment-item{display:grid;grid-template-columns:32px 1fr;gap:10px;align-items:start}
.msa-shell[data-msa-component="frontend-app"] .msa-comment-bullet{width:32px;height:32px;border-radius:10px;background:#eef3ff;color:#3153d4;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:13px}
.msa-shell[data-msa-component="frontend-app"] .msa-comment-text{font-size:14px;line-height:1.55;color:#223047;word-break:break-word}
.msa-shell[data-msa-component="frontend-app"] .msa-comments-empty{font-size:14px;color:#6b7383}
@media(max-width:900px){.msa-shell[data-msa-component="frontend-app"] .msa-panel-lead{font-size:15px!important}.msa-shell[data-msa-component="frontend-app"] .msa-map-table th:nth-child(4),.msa-shell[data-msa-component="frontend-app"] .msa-map-table td:nth-child(4){min-width:120px}}

/* ── Already-reported badge & item state ───────────────────────────────── */
.msa-shell[data-msa-component="frontend-app"] .msa-reported-badge{
    display:inline-flex;align-items:center;gap:5px;
    padding:6px 13px;border-radius:20px;
    background:#e8f5e9;color:#2e7d32;
    font-size:12px;font-weight:800;letter-spacing:.3px;
    white-space:nowrap;user-select:none;
}
.msa-shell[data-msa-component="frontend-app"] .msa-item-reported{
    opacity:.78;
    border-left:3px solid #66bb6a !important;
}

/* Mobile-first upgrade v2.1.1 */
.msa-shell[data-msa-component="frontend-app"] .msa-results-grid,.msa-shell[data-msa-component="frontend-app"] .msa-pref-drug-grid{display:grid;gap:14px}
.msa-shell[data-msa-component="frontend-app"] .msa-result-card,.msa-shell[data-msa-component="frontend-app"] .msa-pref-drug-card{background:linear-gradient(180deg,#fff,#f8fbff);border:1px solid #dde5f3;border-radius:20px;padding:16px;box-shadow:0 10px 28px rgba(24,39,75,.06)}
.msa-shell[data-msa-component="frontend-app"] .msa-item-main{display:grid;gap:10px;min-width:0}
.msa-shell[data-msa-component="frontend-app"] .msa-stats-row{display:flex;flex-wrap:wrap;gap:8px}
.msa-shell[data-msa-component="frontend-app"] .msa-stat-chip{display:inline-flex;align-items:center;gap:6px;padding:8px 10px;border-radius:999px;background:#eef3ff;color:#30446d;font-size:12px;font-weight:700}
.msa-shell[data-msa-component="frontend-app"] .msa-stat-chip strong{font-weight:900}
.msa-shell[data-msa-component="frontend-app"] .msa-stat-chip.is-up,.msa-shell[data-msa-component="frontend-app"] .msa-compare-box.is-up{background:#ecfdf3;color:#166534}
.msa-shell[data-msa-component="frontend-app"] .msa-stat-chip.is-down,.msa-shell[data-msa-component="frontend-app"] .msa-compare-box.is-down{background:#fff1f2;color:#be123c}
.msa-shell[data-msa-component="frontend-app"] .msa-stat-chip.is-flat,.msa-shell[data-msa-component="frontend-app"] .msa-compare-box.is-flat{background:#f3f4f6;color:#374151}
.msa-shell[data-msa-component="frontend-app"] .msa-pref-drug-top{display:flex;gap:12px;align-items:flex-start;margin-bottom:14px}
.msa-shell[data-msa-component="frontend-app"] .msa-pref-drug-title-wrap{display:grid;gap:4px;min-width:0}
.msa-shell[data-msa-component="frontend-app"] .msa-pref-drug-meta{font-size:12px;color:#6b7383}
.msa-shell[data-msa-component="frontend-app"] .msa-compare-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:14px}
.msa-shell[data-msa-component="frontend-app"] .msa-compare-box{display:grid;gap:6px;padding:12px;border-radius:16px;background:#f6f9ff;border:1px solid #e1e8f5;color:#23324d}
.msa-shell[data-msa-component="frontend-app"] .msa-compare-label{font-size:13px;font-weight:800;text-transform:none;letter-spacing:0;color:#6a7488}
.msa-shell[data-msa-component="frontend-app"] .msa-compare-box strong{font-size:22px;line-height:1;font-weight:900}
.msa-shell[data-msa-component="frontend-app"] .msa-compare-box em{font-style:normal;font-size:12px;font-weight:800;opacity:.8}
.msa-shell[data-msa-component="frontend-app"] .msa-pref-drug-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.msa-shell[data-msa-component="frontend-app"] .msa-comments-card{display:none;margin-top:12px;padding:14px;border-radius:16px;background:#f8fbff;border:1px solid #e1e8f5}
.msa-shell[data-msa-component="frontend-app"] .msa-comments-card.open{display:block}
.msa-shell[data-msa-component="frontend-app"] .msa-comments-card[hidden]{display:none!important}
.msa-shell[data-msa-component="frontend-app"] .msa-comment-toggle.is-open{background:#dbe7ff}

@media (max-width: 900px){
  .msa-shell[data-msa-component="frontend-app"]{padding:10px}
  .msa-shell[data-msa-component="frontend-app"] .msa-header-card{padding:18px;border-radius:22px;gap:14px}
  .msa-shell[data-msa-component="frontend-app"] .msa-header-mark{width:56px;height:56px}
  .msa-shell[data-msa-component="frontend-app"] .msa-title{font-size:28px;line-height:1.02}
  .msa-shell[data-msa-component="frontend-app"] .msa-subtitle{font-size:15px;line-height:1.55}
  .msa-shell[data-msa-component="frontend-app"] .msa-header-month{width:100%;text-align:center;justify-content:center;padding:12px 14px}
  .msa-shell[data-msa-component="frontend-app"] .msa-panel{padding:18px;border-radius:22px}
  .msa-shell[data-msa-component="frontend-app"] .msa-search-wrap{padding:14px 16px;border-radius:18px}
  .msa-shell[data-msa-component="frontend-app"] .msa-search-wrap input{font-size:16px;min-width:0}
  .msa-shell[data-msa-component="frontend-app"] .msa-results-scroll{max-height:none;overflow:visible}
  .msa-shell[data-msa-component="frontend-app"] .msa-item-compact{flex-direction:column;align-items:stretch}
  .msa-shell[data-msa-component="frontend-app"] .msa-item-side{width:100%;align-items:stretch}
  .msa-shell[data-msa-component="frontend-app"] .msa-report-btn,.msa-shell[data-msa-component="frontend-app"] .msa-reported-badge{width:100%;justify-content:center;text-align:center}
  .msa-shell[data-msa-component="frontend-app"] .msa-side-item-compact{padding:14px 16px}
  .msa-shell[data-msa-component="frontend-app"] .msa-side-name{font-size:15px}
  .msa-shell[data-msa-component="frontend-app"] .msa-map-card{padding:16px;border-radius:22px}
  .msa-shell[data-msa-component="frontend-app"] .msa-heatmap-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .msa-shell[data-msa-component="frontend-app"] .msa-heatmap-cell{min-height:84px;padding:14px 10px;border-radius:18px}
  .msa-shell[data-msa-component="frontend-app"] .msa-heatmap-cell .cell-name{font-size:15px}
  .msa-shell[data-msa-component="frontend-app"] .msa-heatmap-cell .cell-sub{font-size:13px}
  .msa-shell[data-msa-component="frontend-app"] .msa-compare-grid{grid-template-columns:1fr}
  .msa-shell[data-msa-component="frontend-app"] .msa-pref-drug-card{padding:14px}
  .msa-shell[data-msa-component="frontend-app"] .msa-map-rank{width:30px;height:30px}
  .msa-shell[data-msa-component="frontend-app"] .msa-modal-card{width:min(100%,calc(100vw - 18px));max-height:88vh;padding:18px;border-radius:22px}
  .msa-shell[data-msa-component="frontend-app"] .msa-modal-name{font-size:17px;padding:12px 14px}
  .msa-shell[data-msa-component="frontend-app"] .msa-actions{flex-direction:column-reverse}
  .msa-shell[data-msa-component="frontend-app"] .msa-btn{width:100%}
  .msa-shell[data-msa-component="frontend-app"] .msa-toast{width:calc(100vw - 20px);border-radius:18px;text-align:center;white-space:normal}
}

@media (max-width: 520px){
  .msa-shell[data-msa-component="frontend-app"]{padding:8px}
  .msa-shell[data-msa-component="frontend-app"] .msa-header-card,.msa-shell[data-msa-component="frontend-app"] .msa-panel,.msa-shell[data-msa-component="frontend-app"] .msa-map-card{padding:16px}
  .msa-shell[data-msa-component="frontend-app"] .msa-title{font-size:24px}
  .msa-shell[data-msa-component="frontend-app"] .msa-panel-kicker{font-size:12px}
  .msa-shell[data-msa-component="frontend-app"] .msa-panel-lead{font-size:15px!important}
  .msa-shell[data-msa-component="frontend-app"] .msa-search-help{font-size:12px}
  .msa-shell[data-msa-component="frontend-app"] .msa-results-headline{margin-top:10px}
  .msa-shell[data-msa-component="frontend-app"] .msa-name,.msa-shell[data-msa-component="frontend-app"] .msa-item-compact .msa-name,.msa-shell[data-msa-component="frontend-app"] .msa-map-drug{font-size:16px!important;line-height:1.3}
  .msa-shell[data-msa-component="frontend-app"] .msa-stats-row,.msa-shell[data-msa-component="frontend-app"] .msa-pref-drug-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .msa-shell[data-msa-component="frontend-app"] .msa-pref-drug-actions .msa-comment-toggle{grid-column:1/-1}
  .msa-shell[data-msa-component="frontend-app"] .msa-stat-chip{justify-content:center;text-align:center;padding:10px 8px}
}

.msa-shell[data-msa-component="frontend-app"] #pref-heatmap .msa-empty-side{grid-column:1/-1;min-height:96px;}
/* ── Πρόσφατες Καταχωρήσεις: νομός ── */
.msa-shell[data-msa-component="frontend-app"] .msa-side-meta{
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:6px;
}
.msa-shell[data-msa-component="frontend-app"] .msa-side-prefecture{
  font-size:12px;
  color:#6b7383;
  font-weight:700;
  letter-spacing:.01em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:100%;
  display:block;
}

/* ── "Δείτε περισσότερα" button ── */
.msa-shell[data-msa-component="frontend-app"] .msa-see-more-btn{
  display:block;
  width:100%;
  margin-top:10px;
  padding:9px 14px;
  background:transparent;
  border:1.5px solid var(--msa-border,#e5e7eb);
  border-radius:10px;
  color:var(--msa-accent,#2563eb);
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  text-align:center;
  transition:background .15s,border-color .15s;
}
.msa-shell[data-msa-component="frontend-app"] .msa-see-more-btn:hover{
  background:var(--msa-accent-bg,#eff6ff);
  border-color:var(--msa-accent,#2563eb);
}
.msa-shell[data-msa-component="frontend-app"] .msa-see-more-arrow{
  display:inline-block;
  margin-left:4px;
  font-size:10px;
  transition:transform .2s;
}

/* MediStock-Alert prefecture detail cards (screenshot-aligned, non-uppercase) */
.msa-shell[data-msa-component="frontend-app"] .msa-pref-drug-grid-modern{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.msa-shell[data-msa-component="frontend-app"] .msa-pref-drug-card-modern{background:#fff;border:1px solid #dfe8f7;border-radius:16px;box-shadow:0 8px 20px rgba(24,39,75,.06);padding:12px;overflow:hidden}
.msa-shell[data-msa-component="frontend-app"] .msa-pref-drug-top-modern{display:grid;grid-template-columns:30px 1fr auto;align-items:start;gap:12px;margin-bottom:12px}
.msa-shell[data-msa-component="frontend-app"] .msa-pref-drug-card-modern .msa-map-rank{width:24px;height:24px;border-radius:9px;background:#f6bd00;color:#5f4600;font-size:12px;margin-top:1px}
.msa-shell[data-msa-component="frontend-app"] .msa-pref-drug-card-modern .msa-map-drug{text-transform:none!important;letter-spacing:0;color:#1f2a44;font-size:13px;line-height:1.25;font-weight:900}
.msa-shell[data-msa-component="frontend-app"] .msa-pref-drug-card-modern .msa-pref-drug-meta{font-size:10px;color:#8490a5;margin-top:3px;line-height:1.2}
.msa-shell[data-msa-component="frontend-app"] .msa-pref-stats-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid #e2eaf6;border-radius:10px;overflow:hidden;background:#f8fbff}
.msa-shell[data-msa-component="frontend-app"] .msa-pref-stat-box{min-height:38px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border-right:1px solid #e2eaf6;color:#1f2a44;background:linear-gradient(180deg,#fbfdff,#f4f8ff)}
.msa-shell[data-msa-component="frontend-app"] .msa-pref-stat-box:last-child{border-right:0}
.msa-shell[data-msa-component="frontend-app"] .msa-pref-stat-box strong{font-size:15px;line-height:1;font-weight:900}
.msa-shell[data-msa-component="frontend-app"] .msa-pref-stat-box span{font-size:8px;line-height:1;text-transform:none!important;letter-spacing:0!important;font-weight:900;color:#8090aa}
.msa-shell[data-msa-component="frontend-app"] .msa-pref-stat-box.is-up strong,.msa-shell[data-msa-component="frontend-app"] .msa-pref-stat-box.is-up span{color:#079455}.msa-shell[data-msa-component="frontend-app"] .msa-pref-stat-box.is-down strong,.msa-shell[data-msa-component="frontend-app"] .msa-pref-stat-box.is-down span{color:#d92d20}.msa-shell[data-msa-component="frontend-app"] .msa-pref-stat-box.is-flat strong,.msa-shell[data-msa-component="frontend-app"] .msa-pref-stat-box.is-flat span{color:#667085}
.msa-shell[data-msa-component="frontend-app"] .msa-pref-drug-card-modern .msa-comment-toggle{padding:7px 10px;font-size:11px;border-radius:10px;align-self:center}
.msa-shell[data-msa-component="frontend-app"] .msa-pref-drug-card-modern .msa-comments-card{display:none;margin-top:12px;border:1px solid #e6edf8;border-radius:12px;padding:12px;background:#f8fbff}.msa-shell[data-msa-component="frontend-app"] .msa-pref-drug-card-modern .msa-comments-card.open{display:block}
@media(max-width:760px){.msa-shell[data-msa-component="frontend-app"] .msa-pref-drug-grid-modern{grid-template-columns:1fr}.msa-shell[data-msa-component="frontend-app"] .msa-pref-drug-top-modern{grid-template-columns:30px 1fr}.msa-shell[data-msa-component="frontend-app"] .msa-pref-drug-top-modern .msa-comment-toggle{grid-column:1/-1;width:100%}}

/* Final overrides: comments fast toggle + normal Greek labels */
.msa-shell[data-msa-component="frontend-app"] .msa-pref-stat-box span,.msa-shell[data-msa-component="frontend-app"] .msa-compare-label{
  text-transform:none!important;
  letter-spacing:0!important;
}
.msa-shell[data-msa-component="frontend-app"] .msa-comments-row[hidden],.msa-shell[data-msa-component="frontend-app"] .msa-comments-card[hidden]{
  display:none!important;
}
.msa-shell[data-msa-component="frontend-app"] .msa-comments-row.open,.msa-shell[data-msa-component="frontend-app"] .msa-comments-card.open{
  display:block!important;
}