/* ============================================================
   MDL FEEDBACK CENTER
   ============================================================ */

.feedback-shell{
  width:min(1080px,calc(100% - 32px));
  margin:0 auto;
  padding:24px 0 70px;
}

.feedback-grid{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);
  gap:18px;
  align-items:start;
}

.feedback-card{
  border:1px solid #D7E2E6;
  border-radius:14px;
  background:#fff;
  padding:22px;
}

.feedback-card h2,.feedback-card h3{margin-top:0}

.feedback-field{margin-top:16px}
.feedback-field label{
  display:block;
  margin-bottom:7px;
  font-size:13px;
  font-weight:700;
  color:#10253B;
}

.feedback-field input,
.feedback-field select,
.feedback-field textarea{
  width:100%;
  box-sizing:border-box;
  border:1px solid #BFCED6;
  border-radius:9px;
  background:#fff;
  padding:11px 12px;
  font:inherit;
}

.feedback-field textarea{min-height:110px;resize:vertical}

.feedback-rating{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
}

.feedback-rating button{
  width:44px;height:44px;
  border:1px solid #BFCED6;
  border-radius:9px;
  background:#fff;
  cursor:pointer;
  font-weight:800;
  color:#425665;
}
.feedback-rating button.active{
  background:#0B7480;
  color:#fff;
  border-color:#0B7480;
}

.feedback-choices{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.feedback-choices label{
  display:flex;
  align-items:center;
  gap:6px;
  min-height:38px;
  padding:0 10px;
  border:1px solid #CBD7DC;
  border-radius:999px;
  cursor:pointer;
  font-size:12px;
  font-weight:700;
  color:#334957;
}

.feedback-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:20px;
}

.feedback-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 16px;
  border-radius:9px;
  border:1px solid #0B7480;
  background:#0B7480;
  color:#fff!important;
  text-decoration:none!important;
  font-weight:800;
  cursor:pointer;
}
.feedback-btn.secondary{
  background:#fff;
  color:#0B7480!important;
}

.feedback-note{
  margin-top:14px;
  padding:12px 14px;
  border-left:3px solid #0B7480;
  background:#F3F8F8;
  color:#536875;
  font-size:13px;
  line-height:1.5;
}

.feedback-status{
  margin-top:14px;
  min-height:20px;
  font-size:13px;
  font-weight:700;
}
.feedback-status.ok{color:#2F7A50}
.feedback-status.bad{color:#A33737}

.feedback-side-list{
  margin:0;
  padding-left:20px;
  color:#435968;
}
.feedback-side-list li{margin:8px 0}

.feedback-admin-link[hidden]{display:none!important}

/* Admin */
.feedback-admin-toolbar{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr)) auto;
  gap:9px;
  margin-bottom:16px;
}
.feedback-admin-toolbar input,
.feedback-admin-toolbar select{
  width:100%;
  box-sizing:border-box;
  border:1px solid #BFCED6;
  border-radius:8px;
  padding:9px 10px;
  background:#fff;
}

.feedback-kpis{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
  margin:14px 0 18px;
}
.feedback-kpi{
  border:1px solid #D7E2E6;
  border-radius:10px;
  background:#fff;
  padding:13px;
}
.feedback-kpi b{display:block;font-size:22px;color:#10253B}
.feedback-kpi span{font-size:11px;color:#657886}

.feedback-table-wrap{
  overflow:auto;
  border:1px solid #D7E2E6;
  border-radius:12px;
  background:#fff;
}
.feedback-table{
  width:100%;
  border-collapse:collapse;
  min-width:980px;
}
.feedback-table th,
.feedback-table td{
  padding:11px 10px;
  text-align:left;
  border-bottom:1px solid #E3E9EC;
  vertical-align:top;
  font-size:12px;
}
.feedback-table th{
  position:sticky;
  top:0;
  background:#F5F8F9;
  color:#10253B;
  z-index:2;
}
.feedback-row-detail{
  max-width:360px;
  white-space:normal;
  line-height:1.45;
}
.feedback-row-detail small{
  display:block;
  margin-top:5px;
  color:#71828D;
}
.feedback-admin-note{
  width:220px;
  min-height:72px;
  box-sizing:border-box;
  border:1px solid #CBD6DB;
  border-radius:7px;
  padding:7px;
  resize:vertical;
}

.feedback-pill{
  display:inline-flex;
  align-items:center;
  min-height:22px;
  padding:0 7px;
  border-radius:999px;
  background:#E8F5F6;
  color:#0B7480;
  font-weight:800;
  font-size:10px;
}

.feedback-storage-warning{
  display:none;
  margin-bottom:14px;
  padding:11px 13px;
  border:1px solid #E4C774;
  border-radius:9px;
  background:#FFF9E8;
  color:#6A551B;
  font-size:12px;
}
.feedback-storage-warning.show{display:block}

/* Dark */
html[data-theme="dark"] .feedback-card,
html[data-theme="dark"] .feedback-kpi,
html[data-theme="dark"] .feedback-table-wrap{
  background:#0D1C2C;
  border-color:#294055;
}
html[data-theme="dark"] .feedback-field input,
html[data-theme="dark"] .feedback-field select,
html[data-theme="dark"] .feedback-field textarea,
html[data-theme="dark"] .feedback-admin-toolbar input,
html[data-theme="dark"] .feedback-admin-toolbar select,
html[data-theme="dark"] .feedback-admin-note{
  background:#091827;
  color:#E8EEF3;
  border-color:#3B5368;
}
html[data-theme="dark"] .feedback-table th{background:#13283C;color:#F5F8FA}
html[data-theme="dark"] .feedback-table td{border-color:#294055}
html[data-theme="dark"] .feedback-rating button{background:#102235;color:#D7E1E8;border-color:#3B5368}
html[data-theme="dark"] .feedback-rating button.active{background:#65D5DD;color:#07111D}

@media(max-width:900px){
  .feedback-grid{grid-template-columns:1fr}
  .feedback-admin-toolbar{grid-template-columns:1fr 1fr}
  .feedback-kpis{grid-template-columns:1fr 1fr}
}
@media(max-width:560px){
  .feedback-shell{width:min(100% - 22px,1080px)}
  .feedback-admin-toolbar{grid-template-columns:1fr}
  .feedback-kpis{grid-template-columns:1fr 1fr}
}


/* ============================================================
   MDL FEEDBACK PAGE SHELL FIX
   Isolates Feedback Center from legacy .page-shell/.main rules.
   ============================================================ */

html, body.mdl-feedback-page{
  margin:0;
  min-height:100%;
}

body.mdl-feedback-page{
  min-height:100vh;
  overflow-x:hidden;
  background:#F6F8F9;
}

.mdl-feedback-page .feedback-page-shell{
  display:flex !important;
  align-items:flex-start !important;
  width:100% !important;
  min-height:calc(100vh - 64px) !important;
  margin:0 !important;
  padding:0 !important;
  box-sizing:border-box !important;
}

.mdl-feedback-page .feedback-page-shell > .mdl-sidebar{
  flex:0 0 220px !important;
  width:220px !important;
  min-width:220px !important;
  max-width:220px !important;
}

.mdl-feedback-page .feedback-main{
  display:block !important;
  flex:1 1 auto !important;
  min-width:0 !important;
  width:auto !important;
  max-width:none !important;
  min-height:calc(100vh - 64px) !important;
  margin:0 !important;
  padding:0 !important;
  position:relative !important;
  inset:auto !important;
  transform:none !important;
  background:#F6F8F9;
  box-sizing:border-box !important;
  overflow:visible !important;
}

.mdl-feedback-page .feedback-shell{
  width:min(1080px,calc(100% - 48px)) !important;
  max-width:1080px !important;
  margin:0 auto !important;
  padding:30px 0 70px !important;
  box-sizing:border-box !important;
  position:relative !important;
  top:auto !important;
  left:auto !important;
  right:auto !important;
  transform:none !important;
}

.mdl-feedback-page .mdl-standard-page-kicker{
  margin-top:8px !important;
}

.mdl-feedback-page .mdl-standard-page-hero{
  min-height:0 !important;
  height:auto !important;
  margin-top:0 !important;
}

.mdl-feedback-page .feedback-table-wrap{
  width:100%;
  max-width:100%;
}

html[data-theme="dark"] body.mdl-feedback-page,
html[data-theme="dark"] .mdl-feedback-page .feedback-main{
  background:#07111D !important;
}

@media(max-width:900px){
  .mdl-feedback-page .feedback-page-shell{
    display:block !important;
    min-height:calc(100dvh - 64px) !important;
  }

  .mdl-feedback-page .feedback-page-shell > .mdl-sidebar{
    flex:none !important;
  }

  .mdl-feedback-page .feedback-main{
    width:100% !important;
    min-height:calc(100dvh - 64px) !important;
  }

  .mdl-feedback-page .feedback-shell{
    width:min(100% - 28px,1080px) !important;
    padding:22px 0 56px !important;
  }
}

@media(max-width:520px){
  .mdl-feedback-page .feedback-shell{
    width:min(100% - 20px,1080px) !important;
    padding-top:18px !important;
  }
}

