/* =====================================================
   ERP GGN — Menu Settings Styles
   File: css/menu-settings.css
   ===================================================== */

.ms-row{
  display:flex; align-items:center; gap:12px;
  background:#fff; border-radius:14px; padding:12px 14px;
  box-shadow:0 3px 12px rgba(10,37,64,.06);
  margin-bottom:8px;
  transition:transform .15s, box-shadow .2s;
}
.ms-row:hover{ box-shadow:0 4px 16px rgba(10,37,64,.1); }

.ms-row-order{
  display:flex; flex-direction:column; align-items:center; gap:2px;
  flex-shrink:0;
}
.ms-btn-up, .ms-btn-down{
  width:24px; height:20px; border:none; background:#F1F5F9;
  border-radius:6px; cursor:pointer; padding:0;
  display:flex; align-items:center; justify-content:center;
  transition:background .15s;
}
.ms-btn-up:hover:not(:disabled),
.ms-btn-down:hover:not(:disabled){
  background:#E0E7FF;
}
.ms-btn-up:disabled, .ms-btn-down:disabled{
  opacity:.3; cursor:not-allowed;
}
.ms-btn-up svg, .ms-btn-down svg{
  width:12px; height:12px;
  stroke:#475569; fill:none;
  stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round;
}
.ms-order-num{
  font-size:10px; font-weight:800; color:#94A3B8;
  font-family:'Courier New',monospace;
}

.ms-icon-svg{
  width:42px; height:42px; border-radius:12px;
  background:linear-gradient(135deg,#0A2540,#1B4B7E);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.ms-icon-svg svg{
  width:22px; height:22px;
  stroke:#fff; fill:none;
  stroke-width:2; stroke-linecap:round; stroke-linejoin:round;
}
.ms-icon-emoji{
  width:42px; height:42px; border-radius:12px;
  background:linear-gradient(135deg,#F1F5F9,#E2E8F0);
  display:flex; align-items:center; justify-content:center;
  font-size:20px; flex-shrink:0;
}

.ms-row-content{ flex:1; min-width:0; }
.ms-row-label{
  font-size:13.5px; font-weight:800; color:#0A2540;
  letter-spacing:-.2px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.ms-row-key{
  font-size:10.5px; color:#94A3B8;
  font-family:'Courier New',monospace;
  margin-top:2px;
}

.ms-row-actions{
  display:flex; align-items:center; gap:6px;
  flex-shrink:0;
}
.ms-btn-edit{
  width:32px; height:32px; border-radius:9px;
  border:1.5px solid #E2E8F0; background:#fff;
  cursor:pointer; padding:0;
  display:flex; align-items:center; justify-content:center;
  transition:all .15s;
}
.ms-btn-edit:hover{ border-color:#3E7CB1; background:#F0F9FF; }
.ms-btn-edit svg{
  width:14px; height:14px;
  stroke:#475569; fill:none;
  stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round;
}
.ms-btn-edit:hover svg{ stroke:#1B4B7E; }

.ms-toggle{
  display:flex; align-items:center; cursor:pointer;
}
.ms-toggle input{ display:none; }
.ms-toggle-box{
  width:40px; height:24px; border-radius:12px;
  background:#E2E8F0; position:relative;
  transition:background .2s;
}
.ms-toggle-box::after{
  content:''; position:absolute; top:3px; left:3px;
  width:18px; height:18px; border-radius:50%;
  background:#fff;
  box-shadow:0 2px 6px rgba(10,37,64,.2);
  transition:transform .2s;
}
.ms-toggle input:checked + .ms-toggle-box{
  background:linear-gradient(135deg,#16A34A,#22C55E);
}
.ms-toggle input:checked + .ms-toggle-box::after{
  transform:translateX(16px);
}

/* Form fields */
.ms-field{ margin-bottom:14px; }
.ms-label{
  display:block; font-size:11px; font-weight:700;
  color:#0A2540; text-transform:uppercase; letter-spacing:.5px;
  margin-bottom:6px;
}
.ms-input{
  width:100%; padding:11px 14px;
  border:1.5px solid #E2E8F0; border-radius:11px;
  font-size:13.5px; font-family:inherit;
  color:#0A2540; background:#F8FAFC; outline:none;
  transition:border-color .2s, background .2s, box-shadow .2s;
  box-sizing:border-box;
}
.ms-input:focus{
  border-color:#3E7CB1; background:#fff;
  box-shadow:0 0 0 4px rgba(62,124,177,.12);
}
.ms-select{
  appearance:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat:no-repeat;
  background-position:right 12px center;
  padding-right:36px;
  cursor:pointer;
}
.ms-hint{
  font-size:10.5px; color:#94A3B8;
  margin-top:4px; font-style:italic;
}