:root {
    --fr-bg: #0f0f10;
    --fr-panel: #171718;
    --fr-panel-2: #1d1d1f;
    --fr-border: #2c2c2f;
    --fr-text: #f4f1ea;
    --fr-muted: #b9b1a4;
    --fr-gold: #c9a45c;
    --fr-gold-hover: #d8b46b;
    --fr-success: #4bb174;
    --fr-danger: #c45b5b;
    --fr-info: #4d8aff;
    --fr-radius-lg: 20px;
    --fr-radius-md: 14px;
    --fr-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  }
  :root {
    --fr-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --fr-font-serif: Georgia, "Times New Roman", serif;
  }
  
  html, body {
    background: radial-gradient(circle at top, #1b1b1e 0%, #0f0f10 55%, #090909 100%);
    color: var(--fr-text);
    font-family: var(--fr-font-sans);
    font-variant-numeric: tabular-nums lining-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100%;
    margin: 0;
  }
  h1, h2, h3, h4, h5, h6,
.fr-page-title,
.fr-section-title,
.fr-brand
{
  /* font-family: var(--fr-font-serif); */
  letter-spacing: 0.01em;
  color: var(--fr-text);
}
  
.fr-table,
input,
select,
textarea,
button {
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
  body {
    margin: 0;
  }
  .btn-loading {
    pointer-events: none;
    opacity: 0.6;
    position: relative;
}
.fr-nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}
.btn-loading::after {
    content: '...';
    margin-left: 6px;
}
  h1, h2, h3, h4, h5, h6,
  .fr-page-title,
  .fr-section-title,
  .fr-brand-title {
    /* font-family: Georgia, "Times New Roman", serif; */
    letter-spacing: 0.01em;
    color: var(--fr-text);
  }
  
  a {
    color: var(--fr-gold);
    text-decoration: none;
  }
  
  a:hover {
    color: var(--fr-gold-hover);
  }
  
  .fr-page {
    padding: 32px 0 64px;
  }
  
  .fr-container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
  }
  
  .fr-page-title {
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    line-height: 1;
    margin: 0 0 24px;
  }
  
  .fr-section-title {
    font-size: clamp(1.5rem, 2vw, 2rem);
    margin: 0 0 16px;
  }
  
  .fr-card,
  .fr-section {
    background: rgba(23, 23, 24, 0.92);
    border: 1px solid var(--fr-border);
    border-radius: var(--fr-radius-lg);
    padding: 24px;
    box-shadow: var(--fr-shadow);
  }
  
  .fr-card + .fr-card,
  .fr-section + .fr-section {
    margin-top: 20px;
  }
  
  .fr-muted {
    color: var(--fr-muted);
  }
  
  .fr-field {
    margin-bottom: 16px;
  }
  
  .fr-label {
    display: block;
    margin-bottom: 8px;
    color: var(--fr-text);
    font-weight: 700;
    font-size: 0.95rem;
  }
  
  .fr-input,
  .fr-select,
  .fr-textarea,
  .form-control,
  .form-select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: var(--fr-radius-md);
    border: 1px solid #454549;
    background: #101011;
    color: var(--fr-text);
    box-sizing: border-box;
  }
  
  .fr-textarea,
  textarea.form-control {
    min-height: 120px;
    resize: vertical;
  }
  
  .fr-input:focus,
  .fr-select:focus,
  .fr-textarea:focus,
  .form-control:focus,
  .form-select:focus {
    border-color: var(--fr-gold);
    box-shadow: 0 0 0 0.2rem rgba(201, 164, 92, 0.18);
    outline: none;
    background: #111112;
    color: var(--fr-text);
  }
  
  .fr-input::placeholder,
  .fr-textarea::placeholder,
  .form-control::placeholder {
    color: #8c8578;
  }
  
  .fr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 18px;
    border-radius: var(--fr-radius-md);
    font-weight: 800;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: 0.2s ease;
  }
  
  .fr-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
  }
  
  .fr-btn-primary {
    background: var(--fr-gold);
    color: #111;
    border-color: var(--fr-gold);
  }
  
  .fr-btn-primary:hover {
    background: var(--fr-gold-hover);
    border-color: var(--fr-gold-hover);
    color: #111;
  }
  
  .fr-btn-secondary {
    background: #1a1a1c;
    color: var(--fr-text);
    border-color: #4a4a4d;
  }
  
  .fr-btn-secondary:hover {
    border-color: var(--fr-gold);
    color: var(--fr-text);
  }
  
  .fr-btn-danger {
    background: #231516;
    color: #ffd0d0;
    border-color: #6d3030;
  }
  
  .fr-btn-danger:hover {
    background: #311a1b;
  }
  
  .fr-btn-sm {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.88rem;
  }
  
  .fr-alert {
    display: none;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-weight: 700;
  }
  .btn-loading {
      opacity: .7;
      pointer-events: none;
  }
  .fr-alert-error {
    background: rgba(130, 28, 28, 0.20);
    border: 1px solid rgba(190, 74, 74, 0.55);
    color: #ffb8b8;
  }
  
  .fr-alert-success {
    background: rgba(24, 105, 52, 0.20);
    border: 1px solid rgba(72, 172, 106, 0.55);
    color: #b8ffd0;
  }
  
  .fr-alert-info {
    background: rgba(40, 87, 162, 0.20);
    border: 1px solid rgba(77, 138, 255, 0.4);
    color: #c7ddff;
  }
  
  .fr-inline-error {
    display: none;
    color: #ffb8b8;
    font-size: 0.82rem;
    margin-top: 6px;
  }
  
  .is-invalid,
  .fr-input.is-invalid,
  .fr-select.is-invalid,
  .fr-textarea.is-invalid,
  .form-control.is-invalid,
  .form-select.is-invalid {
    border-color: var(--fr-danger) !important;
    box-shadow: 0 0 0 0.18rem rgba(196, 91, 91, 0.16) !important;
  }
  
  .fr-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid transparent;
  }
  
  .fr-badge-received {
    background: rgba(201, 164, 92, 0.18);
    color: #e8c47a;
    border-color: rgba(201, 164, 92, 0.35);
  }
  
  .fr-badge-production {
    background: rgba(77, 138, 255, 0.18);
    color: #8bb7ff;
    border-color: rgba(77, 138, 255, 0.35);
  }
  
  .fr-badge-ready {
    background: rgba(66, 173, 117, 0.18);
    color: #8ef0b4;
    border-color: rgba(66, 173, 117, 0.35);
  }
  
  .fr-badge-delivered {
    background: rgba(81, 204, 130, 0.18);
    color: #b7ffd1;
    border-color: rgba(81, 204, 130, 0.35);
  }
  
  .fr-badge-cancelled {
    background: rgba(194, 72, 72, 0.18);
    color: #ffb1b1;
    border-color: rgba(194, 72, 72, 0.35);
  }
  
  .fr-table-wrap {
    width: 100%;
    overflow-x: auto;
  }
  
  .fr-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
  }
  
  .fr-table th,
  .fr-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--fr-border);
    text-align: left;
    vertical-align: middle;
  }
  
  .fr-table th {
    color: var(--fr-text);
    font-weight: 800;
  }
  
  .fr-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
  }
  
  .fr-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  
  .fr-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
  
  @media (max-width: 992px) {
    .fr-grid-2,
    .fr-grid-3 {
      grid-template-columns: 1fr;
    }
  
    .fr-container {
      width: min(100%, calc(100% - 24px));
    }
  
    .fr-card,
    .fr-section {
      padding: 18px;
    }
  }
  /* NAVBAR */
.fr-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
  
    background: rgba(18,18,18,0.95);
    border-bottom: 1px solid var(--fr-border);
    backdrop-filter: blur(10px);
  }
  
  .fr-navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
  
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
  
  .fr-nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  
  .fr-brand {
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--fr-text);
  }
  
  .fr-nav-links {
    display: flex;
    gap: 16px;
  }
  
  .fr-nav-links a {
    color: var(--fr-muted);
    font-weight: 600;
    font-size: 14px;
  }
  
  .fr-nav-links a:hover {
    color: var(--fr-gold);
  }
  
  .fr-nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  
  .fr-user {
    display: flex;
    flex-direction: column;
    text-align: right;
  }
  
  .fr-user-name {
    font-weight: 700;
    font-size: 14px;
  }
  
  .fr-user-role {
    font-size: 12px;
    color: var(--fr-muted);
  }
  
  /* MOBILE */
  @media (max-width: 768px) {
    .fr-nav-links {
      display: none;
    }
  
    .fr-user {
      display: none;
    }
  }
  .fr-link-order {
    color: var(--fr-text);
    text-decoration: none;
    transition: 0.2s;
  }
  
  .fr-link-order:hover {
    color: var(--fr-gold);
    text-decoration: underline;
  }
  .fr-nav-links a.fr-nav-active {
    color: var(--fr-gold);
    position: relative;
  }
  
  .fr-nav-links a.fr-nav-active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    background: var(--fr-gold);
    border-radius: 999px;
  }
  .fr-nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--fr-border);
    color: var(--fr-text);
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
  }
  
  .fr-nav-links a.fr-nav-active {
    color: var(--fr-gold);
    position: relative;
  }
  
  .fr-nav-links a.fr-nav-active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    background: var(--fr-gold);
    border-radius: 999px;
  }
  
  @media (max-width: 768px) {
    .fr-nav-toggle {
      display: block;
    }
  
    .fr-nav-links {
      position: absolute;
      top: 60px;
      left: 0;
      width: 100%;
      background: #111;
      border-top: 1px solid var(--fr-border);
      flex-direction: column;
      gap: 0;
      display: none;
    }
  
    .fr-nav-links.show {
      display: flex;
    }
  
    .fr-nav-links a {
      padding: 14px 20px;
      border-bottom: 1px solid #222;
    }
  
    .fr-user {
      display: none;
    }
  }
  .fr-password-wrap {
    position: relative;
    width: 100%;
  }
  
  .fr-password-wrap .fr-input {
    padding-right: 84px;
  }
  
  .fr-password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
  
    display: inline-flex;
    align-items: center;
    justify-content: center;
  
    min-width: 60px;
    height: 34px;
    padding: 0 10px;
  
    border: 1px solid var(--fr-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--fr-muted);
  
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: 0.2s ease;
  }
  
  .fr-password-toggle:hover {
    color: var(--fr-gold);
    border-color: var(--fr-gold);
    background: rgba(201, 164, 92, 0.08);
  }
  
  .fr-password-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.18);
  }
  @media print {

    body {
      background: #fff !important;
      color: #000 !important;
    }
  
    .fr-navbar,
    .fr-toolbar,
    .fr-btn,
    .fr-pagination {
      display: none !important;
    }
  
    table {
      width: 100%;
      border-collapse: collapse;
    }
  
    th, td {
      border: 1px solid #ccc;
      padding: 8px;
      color: #000;
    }
  
    .status-badge {
      border: 1px solid #000;
      color: #000;
      background: #fff;
    }
  
    h1 {
      font-size: 26px;
      margin-bottom: 10px;
    }
  }
  /* Date picker icon fix */
  input[type="date"] {
    color-scheme: dark;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.4);
    cursor: pointer;
}
/* NAVBAR */
.fr-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(18,18,18,0.95);
  border-bottom: 1px solid var(--fr-border);
  backdrop-filter: blur(10px);
}

.fr-navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.fr-nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  min-width: 0;
}

.fr-brand {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--fr-text);
  white-space: nowrap;
}

.fr-nav-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.fr-nav-links a {
  color: var(--fr-muted);
  font-weight: 600;
  font-size: 14px;
  position: relative;
}

.fr-nav-links a:hover {
  color: var(--fr-gold);
}

.fr-nav-links a.fr-nav-active {
  color: var(--fr-gold);
}

.fr-nav-links a.fr-nav-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--fr-gold);
  border-radius: 999px;
}

.fr-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.fr-user {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.fr-user-name {
  font-weight: 700;
  font-size: 14px;
}

.fr-user-role {
  font-size: 12px;
  color: var(--fr-muted);
}

.fr-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--fr-border);
  color: var(--fr-text);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {
  .fr-navbar-inner {
    padding: 12px 14px;
  }

  .fr-nav-toggle {
    display: block;
    flex-shrink: 0;
  }

  .fr-brand {
    font-size: 18px;
  }

  .fr-user {
    display: none;
  }

  .fr-nav-right {
    gap: 8px;
  }

  .fr-nav-right .fr-btn {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .fr-nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    width: 280px;
    max-width: calc(100vw - 28px);
    background: #111;
    border: 1px solid var(--fr-border);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.28);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    display: none;
    overflow: hidden;
  }

  .fr-nav-links.show {
    display: flex;
  }

  .fr-nav-links a {
    padding: 14px 16px;
    border-bottom: 1px solid #222;
  }

  .fr-nav-links a:last-child {
    border-bottom: 0;
  }

  .fr-nav-links a.fr-nav-active::after {
    display: none;
  }
}
.fr-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(18,18,18,0.95);
  border-bottom: 1px solid var(--fr-border);
  backdrop-filter: blur(10px);
}

.fr-navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.fr-nav-left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.fr-brand {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--fr-text);
  white-space: nowrap;
}

.fr-nav-links-desktop {
  display: flex;
  align-items: center;
  gap: 16px;
}

.fr-nav-links-desktop a {
  color: var(--fr-muted);
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
  padding: 4px 0;
}

.fr-nav-links-desktop a:hover {
  color: var(--fr-gold);
}

.fr-nav-active {
  color: var(--fr-gold) !important;
}

.fr-nav-links-desktop a.fr-nav-active {
  position: relative;
}

.fr-nav-links-desktop a.fr-nav-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--fr-gold);
  border-radius: 999px;
}

.fr-nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fr-user {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.fr-user-name {
  font-weight: 700;
  font-size: 14px;
}

.fr-user-role {
  font-size: 12px;
  color: var(--fr-muted);
}

.fr-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--fr-border);
  background: #111;
  color: var(--fr-text);
  font-size: 22px;
  cursor: pointer;
  box-shadow: none;
}

.fr-nav-toggle:hover {
  border-color: var(--fr-gold);
  color: var(--fr-gold);
}

.fr-mobile-menu {
  background: rgba(16,16,17,0.98);
  color: var(--fr-text);
  border-right: 1px solid var(--fr-border);
  backdrop-filter: blur(18px);
}

.fr-mobile-menu-header {
  border-bottom: 1px solid var(--fr-border);
  padding: 18px 18px 14px;
}

.fr-mobile-menu-header .offcanvas-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--fr-text);
}

.fr-mobile-menu-subtitle {
  color: var(--fr-muted);
  font-size: 13px;
  margin-top: 4px;
}

.fr-mobile-menu-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
}

.fr-mobile-user {
  padding: 14px 16px;
  border: 1px solid var(--fr-border);
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
}

.fr-mobile-user-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--fr-text);
}

.fr-mobile-user-role {
  font-size: 13px;
  color: var(--fr-muted);
  margin-top: 4px;
}

.fr-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fr-mobile-links a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--fr-border);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  color: var(--fr-text);
  font-weight: 700;
  font-size: 15px;
}

.fr-mobile-links a:hover,
.fr-mobile-links a.fr-nav-active {
  border-color: var(--fr-gold);
  color: var(--fr-gold);
  background: rgba(201,164,92,0.08);
}

.fr-mobile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

@media (max-width: 768px) {
  .fr-nav-toggle {
    display: inline-flex;
  }

  .fr-nav-links-desktop,
  .fr-user {
    display: none;
  }

  .fr-navbar-inner {
    padding: 12px 16px;
    gap: 12px;
  }

  .fr-brand {
    font-size: 18px;
  }

  .fr-nav-right {
    gap: 8px;
  }

  .fr-nav-right .fr-btn {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}