@import url('//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css');
:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --border:#e5e7eb;
  --primary:#2563eb;
  --danger:#ef4444;
  --shadow:0 10px 30px rgba(2,6,23,.06);
  --radius:18px;
  --success:#198754;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background:var(--bg);
  color:var(--text);
}

a{color:inherit}
a:link, a:visited, a:hover, a:active {
  text-decoration: none;
}
.container{padding:22px}
.shell{display:flex;min-height:100vh}

/* Sidebar */
.sidebar{
  width:270px;
  background:#fff;
  border-right:1px solid var(--border);
  position:sticky;top:0;height:100vh;
  display:flex;flex-direction:column;
}
.brand{
  padding:18px 16px;
  border-bottom:1px solid var(--border);
  display:flex;gap:12px;align-items:center;
}
.brandBadge{
  width:40px;height:40px;border-radius:14px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(37,99,235,.10); color:var(--primary);
  font-weight:800;
}
.brandTitle{font-weight:800;font-size:18px;line-height:1.1}
.brandSub{color:var(--muted);font-size:13px;margin-top:2px}

.nav{padding:10px}
.nav a{
  display:flex;align-items:center;gap:12px;
  padding:10px 12px;
  border-radius:12px;
  text-decoration:none;
  color:var(--text);
}
.nav a:hover{background:#f3f4f6}
.nav a.active{background:rgba(37,99,235,.10); color:var(--primary); font-weight:700}
.divider{height:1px;background:var(--border);margin:10px 12px}
.tip{
  margin-top:auto;
  padding:14px 14px 18px;
  color:var(--muted);
  font-size:13px;
}
.logout{color:var(--danger) !important;}

/* Main */
.main{flex:1;display:flex;flex-direction:column}
.topbar{
  background:#fff;
  border-bottom:1px solid var(--border);
  padding:14px 18px;
  display:flex;align-items:center;justify-content:space-between;
}
.topTitle{font-weight:800}
.userPill{
  display:flex;align-items:center;gap:8px;
  padding:7px 10px;
  border:1px solid var(--border);
  border-radius:999px;
  background:#fff;
  color:var(--muted);
  font-size:13px;
}
.userDot{width:10px;height:10px;border-radius:999px;background:#22c55e}

/* Cards & KPI */
.grid{display:grid;gap:14px}
.grid.kpi{grid-template-columns:repeat(12,1fr)}
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.cardPad{padding:16px}
.kpiCard{grid-column:span 4}
@media(max-width:1100px){ .kpiCard{grid-column:span 6} }
@media(max-width:720px){
  .sidebar{display:none}
  .kpiCard{grid-column:span 12}
}
.kpiTop{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.kpiLabel{color:var(--muted);font-size:13px}
.kpiValue{font-size:34px;font-weight:900;line-height:1.1}
.kpiSub{color:var(--muted);font-size:13px;margin-top:6px}
.kpiIcon{
  width:42px;height:42px;border-radius:14px;
  display:flex;align-items:center;justify-content:center;
  background:#eef2ff;color:var(--primary);
  font-weight:900;
}

/* Sections */
.hRow{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.h1{font-size:28px;font-weight:900;margin:0}
.p{margin:6px 0 0;color:var(--muted)}
.actions{display:flex;gap:10px;flex-wrap:wrap}
.btn{
  border:1px solid var(--border);
  background:#fff;
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  font-weight:700;
  text-decoration:none;
  display:inline-flex;align-items:center;gap:8px;
}
.btnPrimary{background:var(--primary);color:#fff;border-color:transparent}
.btnSoft{background:rgba(37,99,235,.10);color:var(--primary);border-color:transparent}
.btnDanger{background:rgba(239,68,68,.10);color:var(--danger);border-color:transparent}
.btnInfo{background:rgba(239,68,68,.10);color:#00acd6;border-color:transparent}
.btnWarning{background:#b8aa94;color:#000;border-color:transparent}
.btnSuccess{background:rgba(22 215 15 / 10%);color:var(--success);border-color:transparent}

/* Tables */
.tableWrap{overflow:auto}
table{width:100%;border-collapse:separate;border-spacing:0}
th,td{padding:12px 12px;border-bottom:1px solid var(--border);text-align:left;font-size:14px}
th{color:var(--muted);font-weight:800;background:#fafafa;position:sticky;top:0}
tr:hover td{background:#fcfcfd}
.badge{
  display:inline-flex;align-items:center;gap:6px;
  padding:6px 10px;border-radius:999px;
  font-size:12px;font-weight:800;
  border:1px solid var(--border);
}
.badge.green{background:rgba(34,197,94,.10);color:#16a34a;border-color:rgba(34,197,94,.25)}
.badge.gray{background:#f3f4f6;color:#475569}
.badge.orange{background:rgba(249,115,22,.12);color:#ea580c;border-color:rgba(249,115,22,.25)}

.inputRow{display:flex;gap:10px;flex-wrap:wrap}
.input,.select{
  padding:10px 12px;border-radius:12px;border:1px solid var(--border);
  outline:none;min-width:260px;background:#fff
}

.input::placeholder{
  color:#9ca3af;
}

.input:focus,
.select:focus{
  border-color:#6366f1;
  box-shadow:0 0 0 3px rgba(99,102,241,.12);
}

.select{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  padding-right:42px;
  cursor:pointer;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 20 20' fill='none'><path d='M5 7.5L10 12.5L15 7.5' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat:no-repeat;
  background-position:right 14px center;
  background-size:16px;
}

.select option{
  color:#111827;
}

/* Login */
.loginShell{min-height:100vh;display:grid;place-items:center;padding:18px}
.loginCard{width:min(440px, 96vw)}
.center{text-align:center}

/* --- Region Heatmap (Map) --- */
.mapGrid{display:grid;grid-template-columns: 1.2fr .8fr; gap:14px; align-items:stretch}
@media(max-width:1100px){ .mapGrid{grid-template-columns:1fr} }

.mapWrap{position:relative; padding:16px}
.mapSvg{width:100%; height:auto; display:block}
.mapState{
  stroke: rgba(2,6,23,.18);
  stroke-width: 1;
  transition: transform .12s ease, filter .12s ease, opacity .12s ease;
  cursor:pointer;
}
.mapState:hover{filter: drop-shadow(0 12px 22px rgba(2,6,23,.16)); transform: translateY(-1px)}
.mapHint{color:var(--muted);font-size:13px;margin-top:10px}

.mapLegend{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px}
.legBox{width:16px;height:16px;border-radius:6px;border:1px solid rgba(2,6,23,.10)}
.legText{font-size:12px;color:var(--muted)}
.legendRow{display:flex;align-items:center;gap:8px}

.tooltip{
  position:absolute;
  pointer-events:none;
  background: rgba(15,23,42,.92);
  color:#fff;
  padding:8px 10px;
  border-radius:12px;
  font-size:12px;
  transform: translate(-50%, -110%);
  opacity:0;
  transition: opacity .10s ease;
  white-space:nowrap;
}
.tooltip.show{opacity:1}
.smallCardList{display:grid; gap:10px; margin-top:10px}
.smallCard{padding:12px;border-radius:16px;border:1px solid rgba(255,255,255,.45);background:rgba(255,255,255,.55);backdrop-filter: blur(14px);-webkit-backdrop-filter: blur(14px)}
.smallCard b{color:var(--text)}
.kpiMini{font-weight:900;font-size:20px}

/* Bootstrap compatibility + sidebar dropdowns */
.sidebar .nav{
  padding:10px;
  gap:2px;
}
.sidebar .nav-link,
.sidebar .dropdown-item{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  border-radius:12px;
  color:var(--text);
  font-weight:500;
}
.sidebar .nav-link{
  padding:10px 12px;
}
.sidebar .nav-link:hover,
.sidebar .dropdown-item:hover,
.sidebar .dropdown-item:focus{
  background:#f3f4f6;
  color:var(--text);
}
.sidebar .nav-link.active,
.sidebar .nav-dropdown > .nav-link.active,
.sidebar .dropdown-item.active,
.sidebar .dropdown-item:active{
  background:rgba(37,99,235,.10);
  color:var(--primary);
  font-weight:700;
}
.sidebar .nav-dropdown{position:relative}
.sidebar .nav-dropdown > .nav-link.dropdown-toggle::after,
.sidebar .dropdown-submenu > .dropdown-item.dropdown-toggle::after{
  margin-left:auto;
}
.sidebar .nav-dropdown > .dropdown-menu,
.sidebar .dropdown-submenu > .dropdown-menu{
  position:static;
  float:none;
  inset:auto;
  transform:none !important;
  width:100%;
  margin:6px 0 4px;
  padding:6px;
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:none;
  background:#fff;
}
.sidebar .dropdown-submenu > .dropdown-menu{
  margin:6px 0 0 8px;
  width:calc(100% - 8px);
}
.sidebar .dropdown-item{
  padding:10px 12px;
  white-space:normal;
}
.sidebar .dropdown-divider{margin:8px 0}
.sidebar .active-group > .nav-link{
  background:rgba(37,99,235,.10);
  color:var(--primary);
  font-weight:700;
}
.sidebar .nav-menu-level2{
  background:#fbfcff;
}
.sidebar .dropdown-submenu > .dropdown-item{
  position:relative;
}
.sidebar .dropdown-submenu > .dropdown-item::after{
  transform:rotate(-90deg);
}
.sidebar .dropdown-submenu.show > .dropdown-item::after{
  transform:rotate(0deg);
}

/* keep original layout after bootstrap reset */
.topbar .userPill b{font-weight:700}
.tableWrap table{margin-bottom:0}
.btn{line-height:1.2}

.orderFilterRow{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.dateRangeWrap{
  min-width:240px;
}

#dateRange{
  min-width:240px;
}

.daterangepicker{
  border-radius:12px !important;
  border:1px solid #e5e7eb !important;
  box-shadow:0 10px 30px rgba(0,0,0,.08) !important;
  font-family:inherit;
}

.daterangepicker .calendar-table{
  border:none !important;
}

.daterangepicker td.active,
.daterangepicker td.active:hover,
.daterangepicker .ranges li.active{
  background:#0d6efd !important;
}

/* 3 cards in same line */
.merchant-cards{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
  align-items: stretch;
}

/* tablet: 2 per row */
@media (max-width: 992px){
  .merchant-cards{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* mobile: 1 per row */
@media (max-width: 600px){
  .merchant-cards{ grid-template-columns: 1fr; }
}

.payment-summary-row{
  display:flex;
  align-items:flex-start;
}

/*.paydetails,
.amoundetails{
  width:100%;
}*/

.paydetails{
  /*display:flex;*/
  align-items:flex-start;
  justify-content:flex-start;
  margin-bottom:0;
}

.amoundetails{
  display:flex;
  justify-content:flex-end;
}

.amoundetails .order-table{
  width:100%;
  max-width:420px;
  margin-bottom:0;
}

@media (max-width: 767px){
  .paydetails{
    margin-bottom:16px;
  }

  .amoundetails{
    justify-content:flex-start;
  }

  .amoundetails .order-table{
    max-width:100%;
  }
}

.pull-right {
    float: right !important;
}

.info-msg,
.success-msg,
.warning-msg,
.error-msg {
  margin: 10px 0;
  padding: 10px;
  border-radius: 3px 3px 3px 3px;
}
.info-msg {
  color: #059;
  background-color: #BEF;
}
.success-msg {
  color: #270;
  background-color: #DFF2BF;
}
.warning-msg {
  color: #9F6000;
  background-color: #FEEFB3;
}
.error-msg {
  color: #D8000C;
  background-color: #FFBABA;
}
.actionBtnRow{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:nowrap;
}

.actionBtnRow form{
  margin:0 !important;
}

.actionBtnRow .btn{
  margin:0;
  white-space:nowrap;
}

.cardPad .form-label{
  color:#111827;
  margin-bottom:6px;
}

.cardPad .form-control,
.cardPad .form-select,
.cardPad textarea{
  border-radius:12px;
  min-height:44px;
  border:1px solid #d9dee7;
  box-shadow:none;
}

.cardPad textarea.form-control{
  min-height:120px;
}

.cardPad .form-control:focus,
.cardPad .form-select:focus,
.cardPad textarea:focus{
  border-color:#86b7fe;
  box-shadow:0 0 0 0.15rem rgba(13,110,253,.15);
}

.selectedthumbnail img{
  border-radius: 10px;
  border: 1px solid #dee2e6;
  padding: 4px;
  background: #fff;
}
.manufacturer-image-embed .image_picker_selector{
    min-height: 300px;
    max-height: 300px;
    overflow-y: scroll;
}
.manufacturer-image-embed .image_picker_selector li{
    width: 24%;
    margin-right: 5px !important;
    margin-bottom: 5px !important;
}
.manufacturer-image-embed .image_picker_selector .thumbnail{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    margin-bottom: 0;
}
.manufacturer-image-embed img {
  padding: 15px;
  border: 1px solid #dd4b39;
  margin-bottom: 15px;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.manufacturer-image-embed.active img{
  border-color:red;
}
.thumbnail img {
    margin-right: auto;
    margin-left: auto;
    display: block;
    max-width: 100%;
}

.productActionCol{
  display:flex;
  flex-direction:column;
  gap:10px; /* equal space between buttons */
}

.productActionCol .actionForm{
  margin:0 !important;
}

.productActionCol .actionBtnFull{
  display:block;
  width:100%;
  text-align:center;
  margin:0 !important;
}
.help-block{
  font-size:11px;
  color:#6b7280;
  margin-bottom:0;
}

.price-inline{
  display:flex;
  align-items:center;
  gap:10px;
}

.price-inline .store-amount{
  width:120px;
}

.price-inline .hint-text{
  font-size:13px;
  color:#777;
  white-space:nowrap;
}

.cardPad .nav-tabs .nav-link{
  border-radius:10px 10px 0 0;
}

.cardPad .tab-content{
  background:#fff;
}

.cardPad .form-label{
  font-size:14px;
  font-weight:600;
  color:#111827;
  margin-bottom:6px;
}

.cardPad .form-control,
.cardPad .form-select,
.cardPad textarea{
  min-height:44px;
  border:1px solid #d9dee7;
  border-radius:12px;
  box-shadow:none;
  font-size:14px;
  color:#111827;
  background:#fff;
}

.cardPad textarea.form-control{
  min-height:120px;
}

.cardPad .form-control:focus,
.cardPad .form-select:focus,
.cardPad textarea:focus{
  border-color:#86b7fe;
  box-shadow:0 0 0 0.15rem rgba(13,110,253,.12);
}

.cardPad .help-block{
  display:block;
  margin-top:6px;
  font-size:11px;
  color:#6b7280;
  margin-bottom:0;
}

.cardPad .table{
  margin-bottom:0;
  background:#fff;
}

.cardPad .table th,
.cardPad .table td{
  vertical-align:middle;
}

.cardPad .nav-tabs{
  border-bottom:1px solid #e5e7eb;
}

.cardPad .nav-tabs .nav-link{
  border:none;
  border-radius:10px 10px 0 0;
  color:#6b7280;
  font-weight:600;
}

.cardPad .nav-tabs .nav-link.active{
  background:#fff;
  color:#111827;
  border-bottom:2px solid #0d6efd;
}

.cardPad .tab-content{
  border:1px solid #e5e7eb;
  border-top:none;
  border-radius:0 0 12px 12px;
  padding:18px;
  background:#fff;
}

.cardPad .selectedthumbnail img{
  max-width:120px;
  border:1px solid #dee2e6;
  border-radius:12px;
  padding:4px;
  background:#fff;
}

.cardPad hr{
  border-color:#eef1f5;
  opacity:1;
}

.price-inline{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.price-inline .store-amount{
  width:120px;
}

.price-inline .hint-text{
  font-size:12px;
  color:#6b7280;
}

@media (max-width: 768px){
  .price-inline .store-amount{
    width:100%;
  }
}

.has-error input,
.has-error select,
.has-error textarea {
  border-color: #dc3545 !important;
  box-shadow: none !important;
}

.has-error .help-block {
  color: #dc3545 !important;
}
.hidden {
  display: none !important;
}
.thumbCard{
  background:#fff;
  border:1px solid #e8edf3;
  border-radius:16px;
  padding:12px;
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.thumbImgWrap{
  width:100%;
  aspect-ratio: 1 / 1;
  background:#f8fafc;
  border-radius:12px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #eef2f7;
}

.thumbImg{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.thumbActions{
  display:flex;
  gap:10px;
  margin-top:12px;
}

.thumbBtn{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.saveCompleteRow{
  display:flex;
  justify-content:flex-end;
  margin-top:20px;
}

.emptyState{
  padding:24px 10px;
  text-align:center;
}
.sectionCard{
  background:#fff;
  border:1px solid #e8edf3;
  border-radius:16px;
  padding:16px;
}

.sectionHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.sectionTitle{
  margin:0;
  font-size:18px;
  font-weight:700;
  color:#111827;
}

.sectionActions{
  display:flex;
  align-items:center;
  gap:10px;
}

.actionBtnRow{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.cardFooterActions{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:20px;
  gap:12px;
  flex-wrap:wrap;
}

.cardPad .table{
  margin-bottom:0;
}

.cardPad .table th,
.cardPad .table td{
  vertical-align:middle;
}

.cardPad .form-label{
  font-size:14px;
  font-weight:600;
  margin-bottom:6px;
  color:#111827;
}

.cardPad .form-control,
.cardPad .form-select{
  min-height:44px;
  border-radius:12px;
  border:1px solid #d9dee7;
  box-shadow:none;
}

.cardPad .form-control:focus,
.cardPad .form-select:focus{
  border-color:#86b7fe;
  box-shadow:0 0 0 .15rem rgba(13,110,253,.12);
}

.cardPad .formCenter{
  max-width: 680px;
  margin: 0 auto;
}

.cardPad .formCenter .form-label{
  display:block;
}

.cardPad .formCenter .btnRow{
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
}

.settingsTabs{
  gap: 8px;
}

.settingsTabs .nav-link{
  width: 100%;
  text-align: left;
  border: 1px solid #e8edf3;
  background: #fff;
  color: #111827;
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: none;
}

.settingsTabs .nav-link:hover{
  background: #f8fafc;
  border-color: #dbe4ee;
  color: #111827;
}

.settingsTabs .nav-link.active{
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.settingsTabs .nav-arrow{
  font-size: 18px;
  line-height: 1;
  opacity: .8;
}

.settingsTabContent{
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 18px;
  min-height: 520px;
  overflow: hidden;
}

.settingsTabContent .tab-pane{
  padding: 20px;
}

.content-head{
  margin-bottom: 14px;
}

.content-head h4{
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.content-head .muted{
  color: #6b7280;
  font-size: 13px;
}

.tax-card{
  border: 1px solid #eef2f7;
  border-radius: 16px;
  background: #fff;
  padding: 16px;
}

.tax-toolbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.right-panel .table{
  margin-bottom: 0;
}

.right-panel .table th,
.right-panel .table td{
  vertical-align: middle;
}

@media (max-width: 991px){
  .settingsTabContent{
    margin-top: 16px;
  }
}

.telephoneRow{
  display:flex;
  align-items:center;
  gap:12px;
}

.telephoneCode{
  width:180px;
  min-width:180px;
}

.telephoneInput{
  flex:1;
}

.telephoneRow .select2-container{
  width:100% !important;
}

@media (max-width: 767px){
  .telephoneRow{
    flex-direction:column;
    align-items:stretch;
  }

  .telephoneCode{
    width:100%;
    min-width:100%;
  }
}
.rolePermGrid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:18px;
}

.permCard{
  background:#fff;
  border:1px solid #e8edf3;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 4px 14px rgba(15,23,42,.04);
}

.permCardHead{
  padding:14px 16px;
  border-bottom:1px solid #eef2f7;
  background:linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
}

.permCardHead h4{
  margin:0;
  font-size:16px;
  font-weight:700;
  color:#111827;
}

.permCardBody{
  padding:8px 14px 14px;
}

.permRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 4px;
  border-bottom:1px solid #f2f4f7;
}

.permRow:last-child{
  border-bottom:none;
}

.permLabel{
  flex:1;
  font-size:14px;
  font-weight:600;
  color:#1f2937;
  line-height:1.4;
}

.permOptions{
  display:flex;
  align-items:center;
  gap:18px;
  min-width:140px;
  justify-content:flex-end;
}

.permRadio{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin:0;
  font-size:14px;
  font-weight:600;
  color:#374151;
  cursor:pointer;
}

.permRadio input[type="radio"]{
  margin:0;
}

.cardPadFooter{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:22px;
  padding-top:16px;
  border-top:1px solid #eef2f7;
}

@media (max-width: 991px){
  .rolePermGrid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 575px){
  .permRow{
    flex-direction:column;
    align-items:flex-start;
  }

  .permOptions{
    justify-content:flex-start;
    min-width:100%;
  }

  .cardPadFooter{
    flex-direction:column-reverse;
    align-items:stretch;
  }
}
.cardTopBar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.platformBtns{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.reportNoteRow{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.reportTotal h4{
  margin:0;
  font-weight:700;
}

.sectionDivider{
  border-top:1px solid #eef1f5;
  margin:24px 0;
}

.miniReportCard h4{
  margin:0;
  color:#111827;
}
.searchInline{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
@media (max-width: 767px){
  .reportNoteRow,
  .paginationBar{
    align-items:flex-start;
  }
  .searchInline .form-control{
    min-width:100%;
  }
}

.paginationBar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  padding:16px 0 0;
}

#attribute .list-group{
  margin-bottom:0;
}

#attribute .list-group-item{
  border-radius:10px;
}

.invoiceWrap{
  background:#fff;
}

.invoiceTopRow{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:18px;
}

.invoiceBrand{
  margin:0;
  font-size:22px;
  font-weight:700;
  color:#111827;
}

.invoiceDate{
  color:#6b7280;
  font-size:14px;
}

.infoCard{
  background:#fff;
  border:1px solid #e8edf3;
  border-radius:16px;
  padding:16px;
  height:100%;
}

.infoTitle{
  font-size:14px;
  font-weight:700;
  color:#111827;
  margin-bottom:10px;
}

.invoiceTable th,
.invoiceTable td,
.orderSummaryTable th,
.orderSummaryTable td{
  vertical-align:middle;
}

.paymentMethodList{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.paymentOption{
  display:flex;
  align-items:center;
  gap:8px;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:10px 12px;
  cursor:pointer;
}

.paymentOption img{
  height:34px;
  width:auto;
  object-fit:contain;
}

.invoiceActionRow{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
  border-top:1px solid #eef1f5;
  padding-top:18px;
}

.cardPad .form-control,
.cardPad .form-select{
  min-height:44px;
  border:1px solid #d9dee7;
  border-radius:12px;
  box-shadow:none;
}

.cardPad .form-control:focus,
.cardPad .form-select:focus{
  border-color:#86b7fe;
  box-shadow:0 0 0 0.15rem rgba(13,110,253,.12);
}

.cardTopBar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.sectionMiniTitle{
  font-size:18px;
  font-weight:700;
  color:#111827;
}

.imageGrid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(180px, 1fr));
  gap:18px;
  margin-top:18px;
}

.imageCard{
  background:#fff;
  border:1px solid #e8edf3;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 4px 14px rgba(15,23,42,.04);
}

.imageThumbWrap{
  padding:12px;
  background:#f8fafc;
}

.imageThumb{
  width:100%;
  height:150px;
  object-fit:cover;
  border-radius:12px;
  border:1px solid #eef2f7;
  cursor:pointer;
}

.imageMeta{
  padding:12px;
}

.imageIdText{
  margin-top:10px;
  font-size:13px;
  color:#6b7280;
  font-weight:600;
}

.btnWarning{
  background:#FFC107;
  color:#fff;
  border:none;
}

.btnWarning:hover{
  background:#e0a800;
  color:#fff;
}

.manufacturer-image-embed img:hover,
.imageThumb:hover{
  border-color:#111827;
}
.imageDetailWrap{
  margin-bottom: 24px;
}

.imageDetailHead h2{
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.imagePreviewCard{
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 18px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 20px;
  align-items: start;
}

.mainDetailImage{
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid #eef2f7;
  background: #f8fafc;
  padding: 10px;
}

.detailFormBox{
  width: 100%;
}



@media (max-width: 991px){
  .imagePreviewCard{
    grid-template-columns: 1fr;
  }
}

.productActionRow{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:nowrap;
  white-space:nowrap;
}

.productActionRow .actionInlineForm{
  margin:0 !important;
  display:inline-block;
}

.productActionRow .actionBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:38px;
  padding:9px 14px;
  border-radius:999px;
  font-size:13px;
  font-weight:600;
  line-height:1;
  white-space:nowrap;
  margin:0 !important;
  border:none;
  box-shadow:0 4px 10px rgba(15,23,42,.10);
  transition:all .2s ease;
}

.productActionRow .actionBtn i{
  font-size:13px;
}

.productActionRow .actionBtn:hover{
  transform:translateY(-1px);
  opacity:.95;
}

.productActionRow .btnEdit{
  background:#eef2ff;
  color:#4338ca;
}

.productActionRow .btnAttr{
  background:#ecfeff;
  color:#0891b2;
}

.productActionRow .btnSort{
  background:#fff7ed;
  color:#ea580c;
}

.productActionRow .btnImage{
  background:#ecfdf5;
  color:#059669;
}

.productActionRow .btnDelete{
  background:#fef2f2;
  color:#dc2626;
}

.productActionRow .actionBtn{
  width:38px;
  height:38px;
  padding:0;
  border-radius:50%;
}

.productActionRow .actionBtn span{
  display:none;
}

.einv-item{
  padding: 15px 24px;
}

.einv-premium-modal{
  border: none;
  border-radius: 22px;
  overflow: hidden;
  background: #f6f8fc;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.22);
}

.einv-premium-header{
  background: linear-gradient(135deg, #071b2c 0%, #0a2d45 100%);
  padding: 22px 24px;
  border-bottom: none;
}

.einv-premium-header .modal-title{
  color: #fff;
  font-size: 28px;
  font-weight: 800;
}

.einv-premium-header .modal-subtitle{
  color: rgba(255,255,255,0.75);
  font-size: 14px;
}

.einv-premium-body{
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(13,110,253,0.04), transparent 28%),
    #f6f8fc;
}

.einv-section-card{
  background: #fff;
  border: 1px solid #e9eef5;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.einv-section-title{
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef2f7;
}

.einv-label{
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 7px;
  display: block;
}

.einv-input{
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid #dbe3ee;
  background: #fbfcfe;
  box-shadow: none;
  font-size: 14px;
  color: #0f172a;
  padding-left: 14px;
  padding-right: 14px;
}

.einv-input:focus{
  border-color: #5b9cff;
  background: #fff;
  box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.10);
}

.einv-textarea{
  min-height: 110px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.statusCard{
  min-height: 46px;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  background: #fbfcfe;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
}

.statusText{
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.einv-premium-footer{
  border-top: 1px solid #e9eef5;
  background: #fff;
  padding: 16px 22px 20px;
}

#supplierModal .btnPrimary{
  min-height: 42px;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.18);
}

#supplierModal .btn-light{
  border-radius: 12px;
  min-height: 42px;
}

@media (max-width: 767px){
  .einv-premium-header .modal-title{
    font-size: 22px;
  }

  .einv-premium-body{
    padding: 16px;
  }

  .einv-section-card{
    padding: 14px;
    border-radius: 16px;
  }
}

.einvToolbarLeft{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.einvHelpBtn{
  width:38px;
  height:38px;
  padding:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  border:1px solid #dbe3ee;
  background:#fff;
  color:#0b5ed7;
  box-shadow:0 3px 10px rgba(15,23,42,.06);
}

.einvHelpBtn:hover{
  background:#eef6ff;
  color:#084298;
}

.kpiCard.js-kpi-card{
  cursor:pointer;
}
.poActionBtns{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.poIconBtn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:12px;
  font-weight:600;
  font-size:13px;
  line-height:1;
  text-decoration:none !important;
  transition:all .18s ease;
  box-shadow:0 4px 12px rgba(15,23,42,.08);
}

.poIconBtn i{
  font-size:14px;
}

.poIconBtn:hover{
  transform:translateY(-1px);
  text-decoration:none !important;
}

.poReceiveBtn{
  background:#fff7ed;
  border:1px solid #fed7aa;
  color:#c2410c !important;
}

.poReceiveBtn:hover{
  background:#ffedd5;
  color:#9a3412 !important;
}

.poGrnBtn{
  background:#eff6ff;
  border:1px solid #bfdbfe;
  color:#1d4ed8 !important;
}

.poGrnBtn:hover{
  background:#dbeafe;
  color:#1e40af !important;
}

.poPoBtn{
  background:#ecfeff;
  border:1px solid #a5f3fc;
  color:#0f766e !important;
}

.poPoBtn:hover{
  background:#cffafe;
  color:#115e59 !important;
}

@media (max-width: 768px){
  .poActionBtns{
    flex-direction:column;
    align-items:flex-start;
  }

  .poIconBtn{
    width:100%;
    justify-content:center;
  }
}