/* ===========================
   NLAPromostandardV3 - Clean Light Theme
   White background, black text, full-width pages
   =========================== */

:root{
  --bg:#ffffff;
  --surface:#ffffff;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --line:#e5e7eb;

  --primary:#111827;   /* black */
  --danger:#dc2626;
  --success:#16a34a;

  --r:12px;
  --shadow: 0 10px 22px rgba(0,0,0,.08);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background: var(--bg);
}

/* Links */
a{ color: var(--text); text-decoration: none; }
a:hover{ text-decoration: underline; }

/* Layout container should be FULL WIDTH like you asked */
.container{
  max-width: 100%;
  margin: 0 auto;
  padding: 18px 18px 60px;
}

/* Header/Nav: white background, black text */
.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--text);
}

.brand .dot{
  width:10px;height:10px;border-radius:999px;
  background: var(--text);
  box-shadow: none;
}

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

.nav a, .nav button.linklike{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--text);
  background: transparent;
  cursor:pointer;
}

.nav a:hover, .nav button.linklike:hover{
  border-color: var(--line);
  background: #f9fafb;
  text-decoration:none;
  color: #000;
}

.inline{ display:inline; }
.linklike{ font: inherit; }

/* Page wrapper: FULL WIDTH */
.page{
  margin-top: 16px;
  width: 100%;
  max-width: 100%;
}

/* Card used on login/profile/order view etc */
.card{
  padding: 18px;
  border-radius: 12px;
  background: #ffffff;
}

.card-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 14px;
}

h1, h2, h3{
  margin:0;
  color: var(--text);
}

.page-title{
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 14px;
  color: var(--text);
}

.sub{
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.muted{ color: var(--muted); font-size: 13px; }

/* Alerts */
.flash, .errors{
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  background: #ffffff;
}

.flash{
  border-color: rgba(22,163,74,.35);
  background: rgba(22,163,74,.08);
}

.errors{
  border-color: rgba(220,38,38,.35);
  background: rgba(220,38,38,.08);
}

.errors ul{ margin:0; padding-left: 18px; }

/* Forms */
form{ margin-top: 10px; }

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.field label{
  display:block;
  font-size: 13px;
  color: var(--text);
  margin: 0 0 6px;
}

.field input{
  width:100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  outline: none;
}

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

.field input:focus{
  border-color: #111827;
  box-shadow: 0 0 0 4px rgba(17,24,39,.12);
}

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

.actions .btn.btn-primary{
  margin-top: 6%;
  width: 100%;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  cursor:pointer;
  font-weight: 800;
}

.btn:hover{ background: #f9fafb; color: #000;}

.btn-primary{
  border-color: #111827;
  background: #111827;
  color: #ffffff;
}

.btn-primary:hover{ filter: brightness(1.05); color:000; }

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

.help-links a{
  color: var(--muted);
  font-size: 13px;
}

hr{
  border:0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}

/* ===========================
   Orders grid (dashboard)
   =========================== */
.orders-grid-wrap{
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-x: auto;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.orders-grid{
  width: 100%;
  border-collapse: collapse;
  min-width: 1100px;
  background: #ffffff;
}

.orders-grid thead th{
  background: #111827;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  padding: 14px 14px;
  text-align: left;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.14);
}


.orders-grid tbody td{
  padding: 14px 14px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  white-space: nowrap;
  vertical-align: middle;
  background: #ffffff;
}

.orders-grid tbody tr:hover td{
  background: #f9fafb;
  color: #000;
}

.orders-grid td.actions{
  text-align: right;
}

.mono{
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.btn-dark{
  display:inline-block;
  background: #111827;
  color:#ffffff;
  border: 1px solid #0b1220;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
}

.btn-dark:hover{ filter: brightness(1.05); color:000;}

/* ===== Order Items Table (order details page) ===== */

.items-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 12px;
}

.items-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* IMPORTANT */
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.items-table thead th {
  background: #111827;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  padding: 12px 14px;
  text-align: left;
  white-space: nowrap;
}

.items-table tbody td {
  padding: 12px 14px;
  border-top: 1px solid #e5e7eb;
  font-size: 14px;
  color: #111827;
  white-space: nowrap;
  vertical-align: middle;
}

/* Column widths */
.items-table .col-item { width: 40%; }
.items-table .col-qty { width: 12%; }
.items-table .col-partial { width: 28%; }
.items-table .col-total { width: 20%; }

/* Alignment helpers */
.items-table .right {
  text-align: right;
  font-weight: 700;
}

.items-table .center {
  text-align: center;
}

/* Monospace for IDs */
.items-table .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

/* Hover */
.items-table tbody tr:hover td {
  background: #f9fafb;
}

/* =========================
   LOGIN PAGE – CLIENT FINAL
   ========================= */

/* Whole page stays white */
body {
  background: #ffffff !important;
}

/* Big shadow area (50% width, centered) */
.auth-wrap{
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 40px 16px 80px;
  background: #ffffff;
}

/* This becomes the shadow container */
.auth-wrap > .auth-card{
  width: 50%;
  max-width: 1100px;
  min-height: 420px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 20px 55px rgba(0,0,0,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
}

/* Inner login card stays readable and centered */
.auth-wrap .auth-card .card{
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  padding: 22px;
}

/* Typography clarity */
.auth-wrap h1{
  color: #111827;
  font-weight: 900;
}

.auth-wrap .sub{
  color: #6b7280;
}

/* Responsive safety */
@media (max-width: 1024px){
  .auth-wrap > .auth-card{
    width: 90%;
  }
}

.brand img {
	width: 150px;
}

/* ===== Dashboard account summary ===== */

.account-summary {
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
}

.account-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.account-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.account-row .label {
  font-size: 13px;
  font-weight: 600;
  color: #374151; /* slate-700 */
  min-width: 220px;
}

.account-row .value {
  font-size: 15px;
  font-weight: 700;
  color: #111827; /* near black */
}

.ps-notice {
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #111827;
  color: #ffffff;
}

.promo-notice {
    margin: 14px 0 24px;
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #111827;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-size: 14px;
}

.promo-icon {
    font-size: 16px;
}


.auth-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.auth-card {
    width: 50%;
    max-width: 520px;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.auth-card h1 {
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: 600;
}

.auth-card .field {
    margin-bottom: 16px;
}

.auth-card label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: #333;
}

.auth-card input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
}

.auth-card input[readonly] {
    background: #f7f7f7;
    cursor: not-allowed;
}

.auth-card button {
    width: 100%;
    margin-top: 20px;
}
li.page-item.active {
    font-weight: 800;
    font-size: 18px;
}
ul.pagination li {
    text-decoration: none;
    list-style: none;
     padding: 16px;
}
ul.pagination {
    display: flex;
    justify-content: center;
}
