/* =========================================================
   Rivet POS — Modern Brand Skin
   Applied on top of AdminLTE + Bootstrap 3. Safe overrides only.
   Palette: deep navy + steel blue. Neutral grays from #F7F9FC up.
   ========================================================= */

:root {
  --rivet-navy-900: #0F2A4A;
  --rivet-navy-800: #143057;
  --rivet-navy-700: #1B3D6E;
  --rivet-steel-600: #2F5388;
  --rivet-steel-500: #4A6FA5;
  --rivet-steel-300: #9BB3D4;
  --rivet-mist-100:  #E8EEF7;
  --rivet-bg:        #F4F6FA;
  --rivet-surface:   #FFFFFF;
  --rivet-ink-900:   #0B1A2E;
  --rivet-ink-700:   #2A3B55;
  --rivet-ink-500:   #5A6B85;
  --rivet-ink-300:   #9AA7BD;
  --rivet-line:      #E3E8F0;
  --rivet-success:   #1F9D55;
  --rivet-warning:   #C77700;
  --rivet-danger:    #B42318;
  --rivet-radius:    10px;
  --rivet-shadow-sm: 0 1px 2px rgba(15, 42, 74, 0.06);
  --rivet-shadow:    0 4px 14px rgba(15, 42, 74, 0.08);
  --rivet-shadow-lg: 0 12px 32px rgba(15, 42, 74, 0.14);
}

/* ---------- Typography ---------- */
body,
.skin-blue .wrapper,
.content-wrapper,
.main-footer {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--rivet-ink-900);
  background-color: var(--rivet-bg);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}

h1, h2, h3, h4, h5, .box-title, .page-header {
  font-weight: 700;
  color: var(--rivet-ink-900);
  letter-spacing: -0.015em;
}

/* ---------- Top header / navbar ---------- */
.skin-blue .main-header .navbar,
.skin-blue .main-header .logo {
  background-image: linear-gradient(180deg, var(--rivet-navy-800) 0%, var(--rivet-navy-900) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.skin-blue .main-header .logo:hover {
  background-color: var(--rivet-navy-900);
}
.skin-blue .main-header .navbar .sidebar-toggle:hover {
  background-color: rgba(255,255,255,0.06);
}
.main-header .logo {
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* ---------- Sidebar ---------- */
.skin-blue .main-sidebar,
.skin-blue .left-side {
  background-color: #0B2140;
}
.skin-blue .sidebar a {
  color: #C9D4E5;
}
.skin-blue .sidebar-menu > li:hover > a,
.skin-blue .sidebar-menu > li.active > a {
  background: linear-gradient(90deg, rgba(74,111,165,0.18), transparent);
  border-left: 3px solid var(--rivet-steel-500);
  color: #FFFFFF;
}
.skin-blue .sidebar-menu > li > .treeview-menu {
  background-color: #081A33;
}

/* ---------- Cards / Boxes ---------- */
.box,
.small-box {
  border: 1px solid var(--rivet-line);
  border-radius: var(--rivet-radius);
  box-shadow: var(--rivet-shadow-sm);
  background-color: var(--rivet-surface);
}
.box:hover { box-shadow: var(--rivet-shadow); transition: box-shadow .2s ease; }

.box.box-primary { border-top-color: var(--rivet-navy-700); }
.box.box-info    { border-top-color: var(--rivet-steel-500); }
.box.box-success { border-top-color: var(--rivet-success); }
.box.box-warning { border-top-color: var(--rivet-warning); }
.box.box-danger  { border-top-color: var(--rivet-danger); }

.box-header.with-border { border-bottom: 1px solid var(--rivet-line); }
.box-header .box-title { font-size: 16px; }

/* Dashboard small boxes (info-box) — modernized */
.small-box {
  padding: 18px 20px;
  border-radius: var(--rivet-radius);
}
.small-box > .inner h3 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.small-box > .inner p  { font-size: 13px; color: var(--rivet-ink-500); font-weight: 500; }
.small-box .icon { opacity: 0.18; }
.small-box.bg-aqua    { background: linear-gradient(135deg, #1B3D6E, #2F5388) !important; color: #fff !important; }
.small-box.bg-green   { background: linear-gradient(135deg, #0E7C3A, #1F9D55) !important; color: #fff !important; }
.small-box.bg-yellow  { background: linear-gradient(135deg, #B45309, #D97706) !important; color: #fff !important; }
.small-box.bg-red     { background: linear-gradient(135deg, #991B1B, #B42318) !important; color: #fff !important; }
.small-box.bg-purple  { background: linear-gradient(135deg, #4338CA, #6D28D9) !important; color: #fff !important; }
.small-box.bg-blue    { background: linear-gradient(135deg, #0F2A4A, #1B3D6E) !important; color: #fff !important; }

/* ---------- Buttons ---------- */
.btn {
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0;
  padding: 8px 16px;
  border: 1px solid transparent;
  transition: all .15s ease;
}
.btn-primary,
.bg-primary {
  background-color: var(--rivet-navy-800) !important;
  border-color: var(--rivet-navy-800) !important;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--rivet-navy-700) !important;
  border-color: var(--rivet-navy-700) !important;
  box-shadow: 0 2px 6px rgba(15, 42, 74, 0.25);
}
.btn-default {
  background-color: #fff;
  border-color: var(--rivet-line);
  color: var(--rivet-ink-700);
}
.btn-default:hover {
  border-color: var(--rivet-steel-300);
  background-color: var(--rivet-mist-100);
}
.btn-link { color: var(--rivet-navy-700); }

/* ---------- Tables ---------- */
.table > thead > tr > th {
  background-color: #FAFBFD;
  border-bottom: 1px solid var(--rivet-line) !important;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rivet-ink-500);
  padding: 12px;
}
.table > tbody > tr > td { padding: 12px; border-top: 1px solid var(--rivet-line); }
.table-hover > tbody > tr:hover { background-color: var(--rivet-mist-100); }

/* ---------- Forms ---------- */
.form-control {
  border-radius: 8px;
  border: 1px solid var(--rivet-line);
  padding: 8px 12px;
  height: 38px;
  box-shadow: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus {
  border-color: var(--rivet-steel-500);
  box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.18);
}
.input-group-addon {
  background-color: #FAFBFD;
  border-color: var(--rivet-line);
  border-radius: 8px;
}

/* ---------- Labels / badges ---------- */
.label, .badge {
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  letter-spacing: 0.02em;
}

/* ---------- Pagination ---------- */
.pagination > li > a, .pagination > li > span {
  color: var(--rivet-navy-700);
  border-color: var(--rivet-line);
}
.pagination > .active > a, .pagination > .active > span {
  background-color: var(--rivet-navy-800) !important;
  border-color: var(--rivet-navy-800) !important;
}

/* ---------- Login / Register modern split layout ---------- */
.rivet-auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(380px, 1fr) 1.1fr;
  background: var(--rivet-bg);
}
.rivet-auth-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 56px;
  background: #fff;
}
.rivet-auth-form .rivet-logo-wrap { margin-bottom: 36px; }
.rivet-auth-form .rivet-logo-wrap img { height: 44px; }
.rivet-auth-form h1 {
  font-size: 28px;
  margin: 0 0 6px;
}
.rivet-auth-form .rivet-sub {
  color: var(--rivet-ink-500);
  margin-bottom: 28px;
  font-size: 14px;
}
.rivet-auth-hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(155, 179, 212, 0.18), transparent 60%),
    radial-gradient(800px 500px at 10% 110%, rgba(74, 111, 165, 0.22), transparent 60%),
    linear-gradient(160deg, #0F2A4A 0%, #143057 60%, #1B3D6E 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  overflow: hidden;
}
.rivet-auth-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.6;
  pointer-events: none;
}
.rivet-hero-content {
  max-width: 480px;
  position: relative;
  z-index: 1;
}
.rivet-hero-content h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 16px;
  color: #fff;
}
.rivet-hero-content p {
  color: #C9D4E5;
  font-size: 16px;
  line-height: 1.6;
}
.rivet-hero-bullets {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}
.rivet-hero-bullet {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #DDE5F2;
}
.rivet-hero-bullet .dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--rivet-steel-300);
  box-shadow: 0 0 0 4px rgba(155, 179, 212, 0.18);
  flex: 0 0 8px;
}
@media (max-width: 991px) {
  .rivet-auth-shell { grid-template-columns: 1fr; }
  .rivet-auth-hero { display: none; }
  .rivet-auth-form { padding: 32px 24px; }
}

/* ---------- Modern welcome / landing hero ---------- */
.rivet-landing {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(74, 111, 165, 0.15), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(15, 42, 74, 0.10), transparent 60%),
    linear-gradient(180deg, #F4F6FA 0%, #E8EEF7 100%);
}
.rivet-landing-card {
  max-width: 880px;
  width: 100%;
  text-align: center;
  background: #fff;
  border-radius: 18px;
  padding: 56px 48px;
  box-shadow: var(--rivet-shadow-lg);
  border: 1px solid var(--rivet-line);
}
.rivet-landing-card .rivet-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
}
.rivet-landing-card h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}
.rivet-landing-card .rivet-tag {
  font-size: 17px;
  color: var(--rivet-ink-500);
  max-width: 560px;
  margin: 0 auto 30px;
  line-height: 1.6;
}
.rivet-landing-actions {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.rivet-btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all .15s ease;
  border: 1px solid transparent;
}
.rivet-btn-primary {
  background: var(--rivet-navy-800);
  color: #fff;
}
.rivet-btn-primary:hover { background: var(--rivet-navy-700); color: #fff; box-shadow: var(--rivet-shadow); }
.rivet-btn-secondary {
  background: #fff;
  color: var(--rivet-ink-700);
  border-color: var(--rivet-line);
}
.rivet-btn-secondary:hover { border-color: var(--rivet-steel-300); color: var(--rivet-navy-800); }

/* ---------- Footer ---------- */
.main-footer {
  background-color: var(--rivet-surface);
  border-top: 1px solid var(--rivet-line);
  color: var(--rivet-ink-500);
  font-size: 13px;
}

/* ---------- Print preserve ---------- */
@media print {
  .rivet-auth-shell, .rivet-landing { background: #fff; }
}
