/* ===== Custom Theme Override — Shopify Admin Style ===== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bs-body-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shop-bg: #f6f6f7;
  --shop-surface: #EBEBEB;
  --shop-border: #e3e5e7;
  --shop-text: #1a1a1a;
  --shop-text-muted: #4A4A4A;
  --shop-accent: #000000;
  --shop-accent-hover: #fc3265;
  --shop-radius: 20px;
}

/* ---- Buttons ---- */
.btn-primary {
  background: var(--shop-accent) !important;
   border: none !important;
   border-radius: 2px;
}

.btn-primary:hover {
    background: var(--shop-accent-hover) !important;
}
.badge-pending, .label-warning, [class*="pending"] {
  background: #fff4e4 !important;
  color: #8a5a00 !important;
}
.badge-delivered, .label-success, [class*="delivered"] {
  background: #e3f4ee !important;
  color: #007a5c !important;
}
.badge-cod, [class*="cod"] {
  background: #eef1f3 !important;
  color: #45494c !important;
}

/* ---- Delivery time pill (currently red) ---- */
[style*="background-color: red"],
[style*="background:red"],
.delivery-time-badge {
  background: #eef1f3 !important;
  color: var(--shop-text) !important;
  border-radius: 999px !important;
  font-weight: 500 !important;
}

/* ---- Totals bar (currently purple) ---- */
.totals-bar, tfoot tr, tfoot td {
  background: var(--shop-bg) !important;
  color: var(--shop-text) !important;
  font-weight: 600;
  border-top: 1px solid var(--shop-border) !important;
}

/* ---- Pagination "1" active button ---- */
.paginate_button.current {
  background: var(--shop-accent) !important;
  border-color: var(--shop-accent) !important;
  color: #fff !important;
}

.signin-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../img/login-bg.jpg') center center / cover no-repeat !important;
  position: relative;
}
.signin-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.65); /* soft white overlay so the card stays readable */
}
.signin-box {
  position: relative;
  z-index: 1;
}

/* ===== Sidebar (Shopify Admin style) ===== */

.slim-sidebar {
  background: var(--shop-surface) !important;
  border-right: 1px solid var(--shop-border) !important;
  padding: 12px 0 !important;
  width: 240px;
}

.slim-sidebar .nav-sidebar {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-nav-item {
  border: none !important;
  margin: 2px 12px;
}

.sidebar-nav-link {
  display: flex !important;
  align-items: center;
  color: var(--shop-text-muted) !important;
  font-weight: 550;
  font-size: 16px;
  padding: 10px 14px !important;
  border-radius: var(--shop-radius) !important;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-nav-link:hover {
  background: var(--shop-bg) !important;
  color: #1a1a1a) !important;
}

.sidebar-nav-link.active {
  background: #FAFAFA !important;
  color: #4A4A4A !important;
  font-weight: 600;
}

.sidebar-nav-link .icon {
  margin-right: 12px;
  font-size: 17px;
  width: 20px;
  text-align: center;
  opacity: 0.85;
}

.sidebar-nav-link.active .icon {
  opacity: 1;
}

.sidebar-nav-link .sidebar-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: inherit;
  margin-bottom: 3px;
  margin-right: 12px;
}


/* ===== Orders Table (Shopify Admin style) ===== */

table.dataTable, table.dataTable th, table.dataTable td {
  border: none !important;
  font-size: 13px;
}

.table thead > tr > th,
.table thead > tr > td {
  background: var(--shop-surface) !important;
  color: var(--shop-text-muted) !important;
  border: none !important;
  border-bottom: 1px solid var(--shop-border) !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 12px 16px !important;
  text-align: left !important;
}

table.dataTable.row-border tbody th,
table.dataTable.row-border tbody td,
table.dataTable.display tbody th,
table.dataTable.display tbody td {
  border-top: none !important;
  border-bottom: 1px solid var(--shop-border) !important;
  border-left: none !important;
  color: var(--shop-text) !important;
  padding: 10px 10px !important;
  text-align: left !important;
}

table.dataTable.stripe tbody tr.odd,
table.dataTable.display tbody tr.odd {
  background-color: #fff;
}

table.dataTable tbody tr:hover {
  background: #fafbfb !important;
}

table.dataTable tbody th, table.dataTable tbody td {
  text-align: left !important;
  padding: 14px 16px !important;
}

/* Order ID column - subtle emphasis, not grey block */
table.dataTable tbody td:first-child {
  background: transparent !important;
  color: var(--shop-text) !important;
  font-weight: 550;
}

/* Delivery time pill -> muted grey pill instead of red block */
table.dataTable td .redcolor,
table.dataTable td[style*="background-color: red"],
table.dataTable td span[style*="background"] {
  background: #eef1f3 !important;
  color: var(--shop-text) !important;
  font-weight: 500 !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  display: inline-block;
}

/* Payment / Status badges -> pill style */
.orangebox, .greenbox, .bluebox, .blackcolor, .greencolor {
  border-radius: 999px !important;
  padding: 4px 12px !important;
  font-weight: 500 !important;
  font-size: 12px !important;
  display: inline-block;
}
.greenbox, .greencolor { background: #108043  !important; color: #fefefe !important; }
.bluebox { background: #e6f0fa !important; color: #1a5f8a !important; }
.blackcolor { background: #eef1f3 !important; color: #fefefe !important; }

/* Totals bar -> clean grey, not purple */
table.dataTable tfoot tr,
table.dataTable tfoot td,
.table tfoot > tr > th,
.table tfoot > tr > td {
  background: var(--shop-bg) !important;
  color: var(--shop-text) !important;
  border: none !important;
  border-top: 1px solid var(--shop-border) !important;
  font-weight: 600 !important;
  text-align: right !important;
  padding: 12px 16px !important;
}

/* Action icon (edit pencil) */
table.dataTable td a {
  color: var(--shop-accent) !important;
}

/* ===== Orders Table v2 - cleaner, no zebra stripes ===== */

.table thead > tr > th,
.table thead > tr > td {
  background: var(--shop-surface) !important;
  color: var(--shop-text-muted) !important;
  border-bottom: 2px solid var(--shop-border) !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 14px 16px !important;
}

table.dataTable.stripe tbody tr.odd,
table.dataTable.stripe tbody tr.even,
table.dataTable.display tbody tr.odd,
table.dataTable.display tbody tr.even {
  background-color: #fff;
}

table.dataTable tbody tr {
  border-bottom: 1px solid var(--shop-border) !important;
}

table.dataTable tbody tr:hover {
  background: #fafbfb !important;
}