/* Minimal Bootstrap-like styles for offline usage */
:root {
  --bs-blue: #0d6efd;
  --bs-indigo: #6610f2;
  --bs-purple: #6f42c1;
  --bs-pink: #d63384;
  --bs-red: #dc3545;
  --bs-orange: #fd7e14;
  --bs-yellow: #ffc107;
  --bs-green: #198754;
  --bs-teal: #20c997;
  --bs-cyan: #0dcaf0;
  --bs-white: #ffffff;
  --bs-gray-100: #f8f9fa;
  --bs-gray-200: #e9ecef;
  --bs-gray-300: #dee2e6;
  --bs-gray-500: #adb5bd;
  --bs-gray-600: #6c757d;
  --bs-gray-700: #495057;
  --bs-gray-800: #343a40;
  --bs-gray-900: #212529;
  --bs-primary: var(--bs-blue);
  --bs-secondary: var(--bs-gray-600);
  --bs-success: var(--bs-green);
  --bs-danger: var(--bs-red);
  --bs-warning: var(--bs-yellow);
  --bs-info: var(--bs-cyan);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-size: 16px;
}
body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--bs-gray-900);
  background-color: #f5f7fb;
  line-height: 1.5;
}
a {
  color: var(--bs-primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5rem;
  font-weight: 600;
}
p {
  margin-top: 0;
  margin-bottom: 1rem;
}
img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
.container-fluid { width: 100%; padding: 0 1rem; }

.row {
  display: flex;
  flex-wrap: wrap;
  margin: -.75rem;
}
.row > * {
  flex: 0 0 100%;
  max-width: 100%;
  padding: .75rem;
}
.col { flex: 1 0 0; }
.col-auto { flex: 0 0 auto; }
.col-md-4, .col-md-6, .col-md-8, .col-md-12,
.col-lg-3, .col-lg-4, .col-lg-6, .col-lg-8, .col-lg-9 { flex: 0 0 100%; max-width: 100%; }
@media (min-width: 768px) {
  .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-8 { flex: 0 0 66.666%; max-width: 66.666%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}
@media (min-width: 992px) {
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-8 { flex: 0 0 66.666%; max-width: 66.666%; }
  .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
}

.navbar {
  background: #fff;
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 1030;
}
.navbar-brand { font-weight: 600; color: var(--bs-gray-900); }
.navbar .btn { margin-left: 1rem; }

.main-content { padding: 2rem 0; }
.order-form,
.card {
  background: #fff;
  border-radius: .75rem;
  box-shadow: 0 .8rem 1.5rem rgba(15,23,42,.12);
  border: 1px solid rgba(0,0,0,.05);
}
.order-form { padding: 2rem; }
.card { overflow: hidden; margin-bottom: 1.5rem; }
.card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,.08);
  background: #f8f9fa;
  font-weight: 600;
}
.card-body { padding: 1.5rem; }
.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(0,0,0,.08);
  background: #f8f9fa;
}
.card-dashboard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.1);
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  border: 1px solid transparent;
  padding: .4rem .9rem;
  border-radius: .45rem;
  cursor: pointer;
  transition: all .15s ease-in-out;
  color: #fff;
  background-color: var(--bs-primary);
}
.btn:hover { filter: brightness(.95); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background-color: var(--bs-primary); }
.btn-secondary { background-color: var(--bs-secondary); }
.btn-success { background-color: var(--bs-success); }
.btn-danger { background-color: var(--bs-danger); }
.btn-outline-secondary {
  background: transparent;
  color: var(--bs-secondary);
  border-color: var(--bs-secondary);
}
.btn-outline-secondary:hover {
  background: var(--bs-secondary);
  color: #fff;
}
.btn-outline-primary { color: var(--bs-primary); border-color: var(--bs-primary); background: transparent; }
.btn-outline-primary:hover { background: var(--bs-primary); color: #fff; }
.btn-warning { background: var(--bs-warning); border-color: var(--bs-warning); color: #000; }
.btn-link { background: transparent; color: var(--bs-primary); border: 0; padding: 0; }
.btn-sm { padding: .25rem .55rem; font-size: .875rem; }
.btn-lg { padding: .6rem 1.1rem; font-size: 1.1rem; }
.btn-close {
  background: transparent;
  border: 0;
  font-size: 1.25rem;
  line-height: 1;
  opacity: .6;
  cursor: pointer;
}
.btn-close:hover { opacity: .9; }

.form-label { display: block; margin-bottom: .4rem; font-weight: 500; }
.form-control,
.form-select {
  width: 100%;
  padding: .55rem .75rem;
  border: 1px solid #ced4da;
  border-radius: .45rem;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--bs-primary);
  outline: 0;
  box-shadow: 0 0 0 .2rem rgba(13,110,253,.25);
}
.form-control:disabled { background: #e9ecef; }
.form-text { font-size: .875rem; color: #6c757d; margin-top: .25rem; }
.form-check { display: flex; align-items: center; margin-bottom: .5rem; }
.form-check-input { margin-right: .5rem; }
.form-switch .form-check-input {
  width: 2.5rem;
  height: 1.25rem;
  position: relative;
  border-radius: 1.25rem;
  background: #adb5bd;
  appearance: none;
  outline: 0;
}
.form-switch .form-check-input:before {
  content: "";
  position: absolute;
  top: .125rem;
  left: .125rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s;
}
.form-switch .form-check-input:checked { background: var(--bs-primary); }
.form-switch .form-check-input:checked:before { transform: translateX(1.25rem); }

.input-group { display: flex; width: 100%; }
.input-group > .form-control { flex: 1 1 auto; }
.input-group .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }

.alert {
  padding: .75rem 1rem;
  border-radius: .5rem;
  border: 1px solid transparent;
  margin-bottom: 1rem;
}
.alert-danger { color: #842029; background: #f8d7da; border-color: #f5c2c7; }
.alert-success { color: #0f5132; background: #d1e7dd; border-color: #badbcc; }
.alert-warning { color: #664d03; background: #fff3cd; border-color: #ffecb5; }

.badge {
  display: inline-block;
  padding: .35em .65em;
  font-size: .75em;
  font-weight: 600;
  border-radius: 999px;
  color: #fff;
  background: var(--bs-primary);
}
.badge.bg-success { background: var(--bs-success); }
.badge.bg-warning { background: var(--bs-warning); color: #000; }
.badge.bg-danger { background: var(--bs-danger); }
.badge.bg-info { background: var(--bs-info); }
.badge.bg-light { background: var(--bs-gray-100); color: var(--bs-gray-900); }
.badge.bg-secondary { background: var(--bs-secondary); }

.list-group {
  display: flex;
  flex-direction: column;
  border-radius: .65rem;
  border: 1px solid #dee2e6;
  overflow: hidden;
}
.list-group-item {
  padding: .75rem 1rem;
  background: #fff;
  border-bottom: 1px solid #dee2e6;
}
.list-group-item:last-child { border-bottom: 0; }
.list-group-item-action { cursor: pointer; }
.list-group-item-action:hover { background: #f8f9fa; }

.table {
  width: 100%;
  border-collapse: collapse;
  color: var(--bs-gray-900);
}
.table th,
.table td {
  padding: .75rem;
  border-bottom: 1px solid #dee2e6;
  text-align: left;
}
.table thead th {
  background: #f8f9fa;
  font-weight: 600;
}
.table-hover tbody tr:hover { background: #f6f7fb; }
.table-striped tbody tr:nth-of-type(odd) { background: #f9fafb; }
.table-borderless td,
.table-borderless th,
.table-borderless tbody + tbody { border: 0; }
.table-responsive { overflow-x: auto; }

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15,23,42,.55);
  z-index: 1050;
  padding: 1rem;
}
.modal.show { display: flex; }
.modal-dialog { width: 100%; max-width: 520px; margin: auto; }
.modal-content {
  background: #fff;
  border-radius: .8rem;
  box-shadow: 0 1.5rem 3rem rgba(15,23,42,.25);
  overflow: hidden;
}
.modal-header,
.modal-footer {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-footer { border-top: 1px solid rgba(0,0,0,.08); }
.modal-body { padding: 1.5rem; }
.modal-open { overflow: hidden; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.55);
  z-index: 1040;
}
.fade-in { animation: modalFade .2s ease-out; }
@keyframes modalFade {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav { display: flex; flex-wrap: wrap; padding-left: 0; margin-bottom: 0; list-style: none; }
.nav-tabs { border-bottom: 1px solid #dee2e6; margin-bottom: 1rem; }
.nav-tabs .nav-link {
  padding: .5rem 1rem;
  border: 1px solid transparent;
  border-top-left-radius: .5rem;
  border-top-right-radius: .5rem;
  color: var(--bs-gray-600);
  cursor: pointer;
}
.nav-tabs .nav-link.active {
  color: var(--bs-primary);
  background: #fff;
  border-color: #dee2e6 #dee2e6 transparent;
}
.tab-content > .tab-pane { display: none; }
.tab-content > .active { display: block; }

.sidebar {
  background: #fff;
  width: 240px;
  min-height: 100vh;
  border-right: 1px solid rgba(0,0,0,.08);
  padding: 1.5rem;
  position: sticky;
  top: 0;
}
.sidebar h4 {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.sidebar nav a {
  display: block;
  padding: .55rem .8rem;
  border-radius: .55rem;
  color: var(--bs-gray-700);
  margin-bottom: .35rem;
  transition: all .15s ease-in-out;
}
.sidebar nav a:hover,
.sidebar nav a.active {
  background: var(--bs-primary);
  color: #fff;
}
.content-area { flex: 1; padding: 2rem; background: #f5f7fb; }

.dropdown-menu {
  position: absolute;
  z-index: 1000;
  display: none;
  min-width: 11rem;
  padding: .5rem 0;
  margin: .125rem 0;
  border-radius: .5rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,.1);
  box-shadow: 0 1rem 2rem rgba(0,0,0,.15);
}
.dropdown-item {
  display: block;
  width: 100%;
  padding: .35rem 1rem;
  color: var(--bs-gray-900);
}
.dropdown-item:hover { background: #f8f9fa; }

.progress {
  display: flex;
  height: 1rem;
  overflow: hidden;
  border-radius: .5rem;
  background: #e9ecef;
  margin-bottom: 1rem;
}
.progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--bs-primary);
  transition: width .6s ease;
}

/* Utilities */
.text-center { text-align: center!important; }
.text-end { text-align: right!important; }
.text-muted { color: var(--bs-gray-600)!important; }
.text-white { color: #fff!important; }
.text-primary { color: var(--bs-primary)!important; }
.bg-light { background: #f8f9fa!important; }
.bg-white { background: #fff!important; }
.bg-primary { background: var(--bs-primary)!important; }
.bg-success { background: var(--bs-success)!important; }
.bg-danger { background: var(--bs-danger)!important; }
.bg-warning { background: var(--bs-warning)!important; color: #000; }
.bg-info { background: var(--bs-info)!important; }
.border { border: 1px solid #dee2e6!important; }
.border-0 { border: 0!important; }
.border-start { border-left: 1px solid #dee2e6!important; }
.rounded { border-radius: .75rem!important; }
.rounded-3 { border-radius: 1.25rem!important; }
.shadow { box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.1)!important; }
.shadow-sm { box-shadow: 0 .25rem .75rem rgba(0,0,0,.08)!important; }
.shadow-lg { box-shadow: 0 1.5rem 3rem rgba(0,0,0,.2)!important; }
.d-none { display: none!important; }
.d-flex { display: flex!important; }
.d-grid { display: grid!important; }
.flex-column { flex-direction: column!important; }
.flex-wrap { flex-wrap: wrap!important; }
.justify-content-between { justify-content: space-between!important; }
.justify-content-center { justify-content: center!important; }
.align-items-center { align-items: center!important; }
.gap-2 { gap: .5rem!important; }
.gap-3 { gap: 1rem!important; }
.mt-2 { margin-top: .5rem!important; }
.mt-3 { margin-top: 1rem!important; }
.mt-4 { margin-top: 1.5rem!important; }
.mt-5 { margin-top: 3rem!important; }
.mb-0 { margin-bottom: 0!important; }
.mb-2 { margin-bottom: .5rem!important; }
.mb-3 { margin-bottom: 1rem!important; }
.mb-4 { margin-bottom: 1.5rem!important; }
.mb-5 { margin-bottom: 3rem!important; }
.ms-2 { margin-left: .5rem!important; }
.ms-auto { margin-left: auto!important; }
.p-0 { padding: 0!important; }
.p-2 { padding: .5rem!important; }
.p-3 { padding: 1rem!important; }
.p-4 { padding: 1.5rem!important; }
.w-100 { width: 100%!important; }
.w-auto { width: auto!important; }
.min-vh-100 { min-height: 100vh!important; }
.position-relative { position: relative!important; }
.position-absolute { position: absolute!important; }
.top-50 { top: 50%!important; }
.start-50 { left: 50%!important; }
.translate-middle { transform: translate(-50%, -50%)!important; }
.overflow-hidden { overflow: hidden!important; }

.badge.bg-light { background: var(--bs-gray-100); color: var(--bs-gray-900); }
.list-inline { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding-left: 0; margin: 0; }
.list-inline-item { display: inline-flex; }

.login-card {
  background: rgba(255,255,255,.95);
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: 0 1.5rem 3rem rgba(0,0,0,.25);
  max-width: 420px;
  width: 100%;
}
.login-header { text-align: center; margin-bottom: 1.5rem; }

.table span.badge { padding: .25rem .5rem; border-radius: 999px; font-weight: 600; }

@media (max-width: 575.98px) {
  .sidebar { width: 100%; min-height: auto; margin-bottom: 1.5rem; position: relative; }
}

