/* ==========================================================================
   MILOUD SERVICES - CORE STYLES (Yellow/Amber Theme)
   ========================================================================== */

:root {
  --yellow-50:  #fffbeb;
  --yellow-100: #fef3c7;
  --yellow-200: #fde68a;
  --yellow-300: #fcd34d;
  --yellow-400: #fbbf24;
  --yellow-500: #f5b301;
  --yellow-600: #d99a00;
  --yellow-700: #b45309;
  --yellow-800: #92400e;
  
  --ink-900: #1c1917;
  --ink-800: #292524;
  --ink-700: #44403c;
  --ink-500: #78716c;
  --ink-400: #a8a29e;
  
  --cream: #faf7f0;
}

/* ==========================================================================
   BASE & TYPOGRAPHY
   ========================================================================== */
body {
  font-family: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: var(--cream);
  background-image: 
      radial-gradient(circle at 15% 0%, rgba(253, 230, 138, 0.35) 0%, transparent 45%),
      radial-gradient(circle at 85% 100%, rgba(251, 191, 36, 0.18) 0%, transparent 42%);
  background-attachment: fixed;
  color: var(--ink-900);
  height: 100%;
  width: 100%;
}

a {
  color: var(--ink-500);
  text-decoration: none;
}

.padding-top {
  padding-top: 20px;
}

/* ==========================================================================
   HEADER (Top Navbar)
   ========================================================================== */
#header {
  position: fixed;
  z-index: 99;
  top: 0;
  left: 0;
  background-color: #ffffff;
  width: 100%;
  height: 65px;
  line-height: 65px;
  box-shadow: 0 1px 3px rgba(120, 53, 15, 0.08);
  border-bottom: 1px solid var(--yellow-200);
} 

header > .logo {
  color: var(--ink-900);
  text-align: center;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  width: 250px;
  background: #ffffff;
  border-right: 1px solid var(--yellow-100);
}

.header-date {
  color: var(--ink-500);
  margin-left: 20px;
  font-size: 13px;
}

.info-menu {
  height: 60px;
  margin: 0;
  line-height: 60px;
  padding: 0 15px;
}

.info-menu li.profile {
  position: relative;
}

.profile a.toggle {
  text-decoration: none;
  font-size: 14px;
  color: var(--ink-700);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 8px;
  margin: 0;
  background: var(--yellow-50);
  border-radius: 30px;
  border: 1px solid var(--yellow-200);
  transition: all 0.2s ease;
}

.profile a.toggle:hover {
  background: var(--yellow-100);
  border-color: var(--yellow-300);
}

.info-menu li.profile a img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--yellow-300);
}

/* Dropdowns */
.dropdown-menu {
  margin-top: 10px;
  border-color: var(--yellow-200);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(120, 53, 15, 0.1);
  padding: 5px 0;
}

.dropdown-menu li {
  margin: 0;
  padding: 0;
  display: block;
  line-height: 35px;
}

.dropdown-menu li a {
  text-decoration: none;
  display: block;
  font-size: 14px;
  position: relative;
  line-height: 32px;
  width: 100%;
  border-bottom: 1px solid var(--yellow-100);
  color: var(--ink-700);
  padding: 0 20px;
  transition: all 0.15s ease;
}

.dropdown-menu li a:hover {
  background-color: var(--yellow-50);
  color: var(--yellow-700);
  padding-left: 24px;
}

.dropdown-menu li a i {
  margin-right: 8px;
  color: var(--yellow-600);
}

.dropdown-menu li.last a {
  border-bottom: 0;
}

/* ==========================================================================
   SIDEBAR NAVIGATION
   ========================================================================== */
.sidebar {
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  padding: 65px 0 0;
  height: 100%;
  width: 250px;
  background: var(--ink-900);
  border-right: 1px solid var(--ink-800);
  overflow-y: auto;
}

.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar ul li {
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.sidebar ul li a {
  color: #e5e7eb;
  display: flex;
  align-items: center;
  position: relative;
  white-space: nowrap;
  text-decoration: none;
  text-align: left;
  transition: all 0.2s ease-in-out;
}

.sidebar ul li a span {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.sidebar ul li a i {
  color: var(--ink-400);
  padding: 16px 20px;
  font-size: 16px;
  width: 56px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.2s ease;
}

/* Hover States */
.sidebar ul li:hover > a,
.sidebar ul li > a:hover {
  background-color: var(--ink-800);
  color: var(--yellow-300);
  border-left: 3px solid var(--yellow-400);
  padding-left: 3px; /* offsets the border */
}
.sidebar ul li:hover > a i,
.sidebar ul li > a:hover i {
  color: var(--yellow-400);
  background-color: rgba(255, 255, 255, 0.05);
}

/* Submenu Toggle Indicator (Chevron) */
.sidebar ul li a.submenu-toggle::after {
  content: "\e114"; /* Glyphicon chevron-down */
  font-family: 'Glyphicons Halflings';
  position: absolute;
  right: 20px;
  font-size: 10px;
  color: var(--ink-500);
  transition: transform 0.3s ease;
}

/* Submenus */
ul.submenu {
  display: none;
  position: relative;
  background-color: var(--ink-900);
}

ul.submenu li {
  border-bottom: none;
}

ul.submenu li a {
  padding: 10px 15px 10px 58px; /* Aligns text with parent menu text */
  font-size: 13.5px;
  color: #cbd5e1;
}

ul.submenu li a:hover {
  background-color: var(--ink-800);
  color: var(--yellow-300);
}

ul.submenu li::before {
  content: "";
  display: block;
  position: absolute;
  z-index: 1;
  left: 28px;
  top: 0;
  bottom: 0;
  border: 1px dashed var(--ink-600, #57534e);
  border-width: 0 0 0 1px;
}

ul.submenu li a::before {
  content: "";
  display: inline-block;
  position: absolute;
  width: 8px;
  left: 28px;
  top: 22px;
  border-top: 1px dashed var(--ink-600, #57534e);
}

/* ==========================================================================
   PAGE CONTAINER & BOXES
   ========================================================================== */
.page {
  position: relative;
  display: block;
  top: 50px;
  left: 0;
  padding: 35px 15px 20px 270px;
}

.page-lgn {
  position: relative;
  display: block;
  top: 50px;
  left: 0;
  padding: 35px 15px 20px 270px;
}

.login-page {
  width: 350px;
  margin: 5% auto;
  padding: 0 20px;
  background-color: #ffffff;
  border: 1px solid var(--yellow-200);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(120, 53, 15, 0.08);
}

.box {
  padding: 20px;
  background-color: #ffffff;
  border: 1px solid var(--yellow-200);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(120, 53, 15, 0.08);
  margin-bottom: 20px;
}

/* Colored Boxes */
.bg-green { background-color: #A3C86D; }
.bg-blue { background-color: #7ACBEE; }
.bg-yellow { background-color: #FDD761; }
.bg-red { background-color: #FF7857; }
.bg-secondary1 { background-color: #b17897; }
.bg-blue2 { background-color: #7a83ee; }

/* Panels */
.panel-default > .panel-heading {
  background-color: var(--yellow-50);
  border-bottom: 2px solid var(--yellow-400);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 15px;
  color: var(--ink-900);
  font-weight: 700;
}
.panel-box { width: 100%; height: 100%; text-align: center; border: none; }
.panel-value { width: 60%; }
.panel-icon { padding: 30px; width: 40%; border-radius: 3px 0 0 3px; }
.panel-value { border-radius: 0 3px 3px 0; }
.panel-value h2 { margin-top: 30px; }
.panel-icon i { line-height: 65px; font-size: 40px; color: #fff; }

/* ==========================================================================
   FORMS & BUTTONS
   ========================================================================== */
.form-control {
  color: var(--ink-900);
  border: 1.5px solid var(--yellow-200);
  border-radius: 8px;
  box-shadow: none;
  transition: all .15s ease-out;
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
  padding: 8px 12px;
  height: auto;
}

.form-control:focus {
  background: #ffffff;
  border-color: var(--yellow-500);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(245, 179, 1, 0.18);
}

.btn {
  border-radius: 8px;
  font-weight: 600;
  padding: 8px 16px;
  transition: all 300ms ease-in-out;
}

.btn-primary {
  color: var(--ink-900);
  background: linear-gradient(180deg, var(--yellow-400) 0%, var(--yellow-500) 100%);
  border-color: var(--yellow-500);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 4px 12px -2px rgba(245,179,1,0.45);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  color: var(--ink-900);
  background: linear-gradient(180deg, var(--yellow-300) 0%, var(--yellow-400) 100%);
  border-color: var(--yellow-400);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 8px 20px -4px rgba(245,179,1,0.55);
}

.btn-success { background-color: #2ecc71; border-color: #27ae60; color: #fff; }
.btn-success:hover { background-color: #27ae60; color: #fff; }

.btn-warning { background-color: var(--yellow-400); border-color: var(--yellow-500); color: var(--ink-900); }
.btn-warning:hover { background-color: var(--yellow-500); border-color: var(--yellow-600); color: var(--ink-900); }

.btn-danger { background-color: #ed5153; border-color: #dc3545; color: #fff; }
.btn-danger:hover { background-color: #bb282a; color: #fff; }

.input-group-addon {
  background-color: var(--yellow-50);
  border: 1px solid var(--yellow-200);
  border-radius: 8px;
  color: var(--ink-700);
}

input[type=file] { text-indent: -99999px; }
td img.img-thumbnail { width: 125px; height: 125px; vertical-align: top; }
.img-avatar { width: 50px; height: 50px; }
.jumbotron { margin-bottom: 0; }
.list-group-item:first-child, .list-group-item:last-child { border-radius: 0; }
.profile .jumbotron { border-radius: 3px 3px 0 0; }
.profile .jumbotron h3 { color: white; }
img.img-size-2 { width: 125px; height: 125px; }

/* ==========================================================================
   TABLES & REPORTS
   ========================================================================== */
.sale_report_header { padding: 15px 0; }
table td h6 { margin: 0 0 0.2em 0; }
table tfoot tr td:first-child { border: 0; }
table tfoot tr td:last-child { border-top: 1px solid var(--yellow-300); }
table td h6, table tfoot tr td:last-child { color: var(--ink-900); font-weight: 500; }

/* ==========================================================================
   PC PARTS FORM SPECIFIC
   ========================================================================== */
.pc-part-card { border: 1px solid var(--yellow-200); border-radius: 8px; margin-bottom: 8px; overflow: hidden; }
.pc-part-header { display: flex; align-items: center; padding: 10px 14px; background: var(--yellow-50); cursor: pointer; user-select: none; }
.pc-part-header.checked { background: var(--yellow-100); border-left: 4px solid var(--yellow-500); }
.pc-part-header .part-checkbox { margin-right: 10px; width: 16px; height: 16px; cursor: pointer; }
.pc-part-header .part-label { font-weight: 600; font-size: 14px; flex: 1; }
.pc-part-header.checked .part-label { color: var(--yellow-800); }
.pc-part-header .part-badge { font-size: 11px; background: var(--yellow-200); color: var(--yellow-800); padding: 2px 8px; border-radius: 12px; }
.pc-part-body { padding: 14px 16px; background: #fff; display: none; }
.pc-part-body.visible { display: block; }
.name-preview { background: var(--yellow-50); border: 1px solid var(--yellow-400); border-radius: 6px; padding: 6px 12px; font-size: 13px; color: var(--yellow-800); font-weight: 600; margin-bottom: 10px; }
.name-preview::before { content: "Nom: "; opacity: .7; }
.price-preview { background: #fffbeb; border: 1px solid #f6c90e; border-radius: 4px; padding: 5px 12px; font-size: 13px; color: #92400e; font-weight: 600; margin-bottom: 8px; }
.price-preview::before { content: "Prix catalogue: "; opacity: .7; }
.cost-bar { background: var(--ink-900); border-radius: 8px; padding: 14px; color: #fff; margin: 14px 0; display: none; box-shadow: 0 4px 12px rgba(28,25,23,0.2); }
.cost-bar .row { text-align: center; }
.cost-bar .val { font-size: 22px; font-weight: 700; }
.cost-bar .lbl { font-size: 10px; opacity: .75; text-transform: uppercase; letter-spacing: 1px; }
.sec-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-500); margin: 18px 0 8px; border-bottom: 1px solid var(--yellow-200); padding-bottom: 4px; }
.carcasse-lbl { background: var(--yellow-100); border-left: 3px solid var(--yellow-600); padding: 6px 12px; font-size: 12px; color: var(--yellow-800); font-weight: 600; margin-bottom: 6px; text-transform: uppercase; }
.qty-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--yellow-200); }
.qty-row label { font-size: 13px; font-weight: 600; margin: 0; white-space: nowrap; }
.lcd-price-box { background: var(--yellow-50); border: 1px solid var(--yellow-200); border-radius: 4px; padding: 10px 12px; margin-bottom: 10px; }
.lcd-price-box label { font-size: 11px; color: var(--yellow-700); font-weight: 700; text-transform: uppercase; display: block; margin-bottom: 6px; }

/* ==========================================================================
   INVOICE STYLES (Cleaned Up Duplication)
   ========================================================================== */
.inv-wrap { 
  font-family: Arial, sans-serif; 
  background: #fff; 
  padding: 28px; 
  max-width: 900px; 
  margin: 0 auto 28px; 
  border: 1px solid var(--yellow-200); 
  border-radius: 8px; 
  font-size: 13px;
}
.inv-hdr { 
  display: flex; 
  justify-content: space-between; 
  align-items: flex-start; 
  margin-bottom: 16px; 
  padding-bottom: 12px; 
  border-bottom: 2px solid var(--ink-900); 
}
.inv-logo { 
  font-size: 26px; 
  font-weight: 900; 
  letter-spacing: -1px; 
  color: var(--ink-900); 
}
.inv-logo span { color: var(--yellow-500); }
.inv-meta { text-align: right; font-size: 12px; color: var(--ink-500); line-height: 1.7; }
.inv-title { 
  background: var(--ink-900); 
  color: #fff; 
  padding: 8px 16px; 
  font-size: 14px; 
  font-weight: 700; 
  border-radius: 4px; 
  margin-bottom: 12px; 
}
.inv-title.vente { background: #15803d; }
.inv-table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.inv-table th { 
  background: var(--yellow-50); 
  padding: 7px 10px; 
  text-align: left; 
  font-size: 12px; 
  border-bottom: 2px solid var(--yellow-200); 
  font-weight: 700;
}
.inv-table td { padding: 6px 10px; border-bottom: 1px solid var(--yellow-100); font-size: 12px; }
.inv-table tr:nth-child(even) td { background: #fffef8; }
.inv-table tr:hover td { background: var(--yellow-50); }
.inv-totals { text-align: right; margin-top: 8px; font-size: 13px; }
.inv-totals .tr { display: flex; justify-content: flex-end; gap: 20px; padding: 3px 0; }
.inv-totals .gt { 
  font-size: 15px; 
  font-weight: 700; 
  border-top: 2px solid var(--ink-900); 
  padding-top: 6px; 
  margin-top: 4px; 
  color: var(--ink-900); 
}
.inv-footer { 
  text-align: center; 
  margin-top: 14px; 
  padding-top: 10px; 
  border-top: 1px solid var(--yellow-200); 
  font-size: 11px; 
  color: var(--ink-500); 
}

/* Barcodes & Buttons */
.btn-barcode { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; font-size: 11px; font-weight: 600; background: #fff; border: 1px solid var(--yellow-300); border-radius: 4px; color: var(--ink-900); cursor: pointer; text-decoration: none; transition: all .15s; white-space: nowrap; }
.btn-barcode:hover { background: var(--ink-900); color: #fff; border-color: var(--ink-900); text-decoration: none; }
.btn-barcode svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn-print-all-bc { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; font-size: 14px; font-weight: 700; background: var(--yellow-400); color: var(--ink-900); border: none; border-radius: 4px; cursor: pointer; transition: background .2s; box-shadow: 0 4px 12px -2px rgba(245,179,1,0.45); }
.btn-print-all-bc:hover { background: var(--yellow-500); color: var(--ink-900); text-decoration: none; }
.cm-type-box { background: var(--yellow-50); border: 1px solid var(--yellow-200); border-radius: 6px; padding: 10px 14px; margin: 8px 0 12px; }
.cm-type-box label { font-size: 13px; margin-right: 20px; cursor: pointer; }
.cpu-gen-badge { display: inline-block; background: var(--yellow-100); border: 1px solid var(--yellow-300); color: var(--yellow-800); border-radius: 12px; padding: 3px 10px; font-size: 11px; font-weight: 700; margin-left: 8px; }

/* ==========================================================================
   PRINT
   ========================================================================== */
@media print {
  body * { visibility: hidden; }
  .print-target, .print-target * { visibility: visible; position: fixed; top: 0; left: 0; width: 100%; }
  .no-print { display: none !important; }
  .inv-wrap { border: none; padding: 0; }
}
.sec-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-500);
  margin: 24px 0 12px;
  border-bottom: 2px solid var(--yellow-200);
  padding-bottom: 6px;
}
.cpu-gen-badge {
  display: inline-block;
  background: var(--yellow-100);
  border: 1px solid var(--yellow-300);
  color: var(--yellow-800);
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 8px;
}

/* Cost Summary Bar */
.cost-bar {
  background: var(--ink-900);
  border-radius: 8px;
  padding: 16px;
  color: #fff;
  margin: 20px 0;
  display: none;
  box-shadow: 0 6px 16px rgba(28,25,23,0.2);
}
.cost-bar .row { display: flex; text-align: center; }
.cost-bar .col-md-3 { flex: 1; }
.cost-bar .val { font-size: 22px; font-weight: 800; color: var(--yellow-300); }
.cost-bar .lbl { font-size: 10px; opacity: .75; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* Part Cards (Accordion) */
.pc-part-card {
  border: 1px solid var(--yellow-200);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(120, 53, 15, 0.03);
}
.pc-part-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: var(--yellow-50);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
}
.pc-part-header:hover { background: var(--yellow-100); }
.pc-part-header.checked {
  background: var(--yellow-100);
  border-left: 4px solid var(--yellow-500);
  padding-left: 12px; /* Offset the border */
}
.pc-part-header .part-checkbox {
  margin-right: 12px;
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--yellow-600);
}
.pc-part-header .part-label {
  font-weight: 700;
  font-size: 14px;
  flex: 1;
  color: var(--ink-900);
}
.pc-part-header.checked .part-label { color: var(--yellow-800); }
.pc-part-header .part-badge {
  font-size: 11px;
  background: var(--yellow-200);
  color: var(--yellow-800);
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
}
.pc-part-body {
  padding: 16px;
  background: #ffffff;
  display: none;
  border-top: 1px solid var(--yellow-100);
}
.pc-part-body.visible { display: block; }

/* Dynamic Sub-item Rows (RAM / Disque Dur) - Replaces Inline JS Styles */
.sub-item-row {
  border: 1.5px dashed var(--yellow-300);
  background: var(--yellow-50);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  position: relative;
}
.sub-item-row .form-group { margin-bottom: 10px; }
.sub-item-row label { 
  font-size: 11px; 
  font-weight: 700; 
  color: var(--ink-700); 
  text-transform: uppercase; 
  margin-bottom: 4px; 
  display: block; 
}
.sub-item-row .btn-danger.btn-xs { 
  position: absolute; 
  top: 8px; 
  right: 8px; 
  padding: 4px 8px; 
  font-size: 11px; 
}

/* Previews (Name & Price) */
.name-preview {
  background: var(--yellow-50);
  border: 1px solid var(--yellow-300);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--yellow-800);
  font-weight: 600;
  margin-bottom: 8px;
}
.name-preview::before { content: "Nom: "; opacity: .6; }
.price-preview {
  background: #ffffff;
  border: 1px solid var(--yellow-400);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--yellow-700);
  font-weight: 700;
  margin-bottom: 8px;
}
.price-preview::before { content: "Prix: "; opacity: .6; font-weight: 400; }

/* Category Searchable Dropdown - Replaces Inline JS Styles */
.category-input-container { position: relative; }
.category-input { padding-right: 30px; }
.category-list {
  display: none;
  position: absolute;
  z-index: 1000;
  background: #ffffff;
  border: 1px solid var(--yellow-300);
  max-height: 200px;
  overflow-y: auto;
  width: 100%;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(120, 53, 15, 0.12);
}
.category-option {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--yellow-50);
  font-size: 13px;
  color: var(--ink-700);
}
.category-option:hover {
  background: var(--yellow-50);
  color: var(--yellow-800);
}
.category-option:last-child { border-bottom: none; }

/* Specific Input Boxes */
.qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--yellow-200);
}
.qty-row label { font-size: 13px; font-weight: 700; margin: 0; color: var(--ink-900); }
.qty-row input { width: 80px; text-align: center; font-weight: 700; }

.lcd-price-box {
  background: var(--yellow-50);
  border: 1px solid var(--yellow-200);
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 12px;
}
.lcd-price-box label { font-size: 11px; color: var(--yellow-700); font-weight: 700; text-transform: uppercase; display: block; margin-bottom: 8px; }

.cm-type-box {
  background: var(--yellow-50);
  border: 1px solid var(--yellow-200);
  border-radius: 6px;
  padding: 12px 16px;
  margin: 12px 0;
}
.cm-type-box label { font-size: 13px; margin-right: 20px; cursor: pointer; font-weight: 600; color: var(--ink-700); }
.cm-type-box input[type="radio"] { accent-color: var(--yellow-600); margin-right: 6px; }

.carcasse-lbl {
  background: var(--yellow-100);
  border-left: 4px solid var(--yellow-500);
  padding: 8px 14px;
  font-size: 12px;
  color: var(--yellow-800);
  font-weight: 700;
  margin: 16px 0 8px;
  text-transform: uppercase;
  border-radius: 0 4px 4px 0;
}

/* Page-Specific Buttons */
.btn-info { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.btn-info:hover, .btn-info:focus { background: var(--ink-800); border-color: var(--ink-800); color: var(--yellow-300); }
.btn-default { background: #ffffff; border-color: var(--yellow-300); color: var(--ink-700); }
.btn-default:hover { background: var(--yellow-50); border-color: var(--yellow-400); color: var(--ink-900); }

/* Invoice Styles */
.inv-wrap { 
  font-family: Arial, sans-serif; background: #fff; padding: 28px; 
  max-width: 900px; margin: 0 auto 28px; border: 1px solid var(--yellow-200); 
  border-radius: 8px; font-size: 13px; box-shadow: 0 4px 12px rgba(120, 53, 15, 0.05); 
}
.inv-hdr { 
  display: flex; justify-content: space-between; align-items: flex-start; 
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--ink-900); 
}
.inv-logo { font-size: 26px; font-weight: 900; letter-spacing: -1px; color: var(--ink-900); }
.inv-logo span { color: var(--yellow-500); }
.inv-meta { text-align: right; font-size: 12px; color: var(--ink-500); line-height: 1.7; }
.inv-meta strong { color: var(--ink-900); }
.inv-title { 
  background: var(--ink-900); color: #fff; padding: 10px 16px; font-size: 14px; 
  font-weight: 700; border-radius: 4px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; 
}
.inv-title.vente { background: #15803d; }
.inv-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.inv-table th { 
  background: var(--yellow-50); padding: 10px; text-align: left; font-size: 11px; 
  border-bottom: 2px solid var(--yellow-200); font-weight: 700; color: var(--ink-700); 
  text-transform: uppercase; letter-spacing: 0.5px; 
}
.inv-table td { padding: 10px; border-bottom: 1px solid var(--yellow-100); font-size: 13px; color: var(--ink-900); }
.inv-table tr:nth-child(even) td { background: #fffef8; }
.inv-totals { text-align: right; margin-top: 12px; font-size: 14px; }
.inv-totals .tr { display: flex; justify-content: flex-end; gap: 24px; padding: 6px 0; color: var(--ink-700); }
.inv-totals .gt { font-size: 16px; font-weight: 800; border-top: 2px solid var(--ink-900); padding-top: 10px; margin-top: 6px; color: var(--ink-900); }
.inv-footer { text-align: center; margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--yellow-200); font-size: 11px; color: var(--ink-500); }

.btn-print-all-bc { 
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; 
  font-size: 14px; font-weight: 700; background: var(--yellow-400); 
  color: var(--ink-900); border: none; border-radius: 6px; cursor: pointer; 
  transition: background .2s; box-shadow: 0 4px 12px -2px rgba(245,179,1,0.45); 
}
.btn-print-all-bc:hover { background: var(--yellow-500); color: var(--ink-900); text-decoration: none; }