/* ==========================================================================
   Wireadvise Inventory — modern UI (v2), mobile-first.
   Same color identity as v1 (dark slate + #00e676 accent); same selectors,
   same 992px breakpoint where item cards become a desktop table.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Core palette (kept from v1) */
  --bg:#14181a; --panel:#232c34; --panel-2:#1b2227; --accent:#00e676;
  --accent-dim:#00b863; --muted:#9aa6ab; --danger:#ff1744; --warn:#ff8c00;
  --info:#2ecb85; --cell:#0f1112; --cell-border:#243039; --text:#eaeaea;
  --input-bg:#181a1b; --border:#2c3137;

  /* v2 derived tones */
  --accent-2:#00c853;
  --line:rgba(255,255,255,.07);
  --line-soft:rgba(255,255,255,.045);
  --surface:#1b2227;
  --surface-2:#161c21;
  --glow:rgba(0,230,118,.14);
  --radius:14px;
  --radius-sm:10px;
  --shadow:0 10px 30px rgba(0,0,0,.45), 0 2px 8px rgba(0,0,0,.35);
  --shadow-sm:0 2px 10px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(0,230,118,.055), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(46,203,133,.04), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }

::selection { background: rgba(0,230,118,.28); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a343c; border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #36444e; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* --------------------------- Layout --------------------------- */
.wrap { max-width: 480px; margin: 0 auto; padding: 14px 14px 40px; }
@media (min-width: 992px) {
  .wrap        { max-width: 1000px; margin: 0 auto; padding: 22px 24px 60px; }
  .wrap.wide   { max-width: 1240px; }
  .wrap.narrow { max-width: 700px; }
}

.panel {
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0) 120px), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow);
}
@media (min-width: 992px) { .panel { padding: 26px 28px; } }

/* --------------------------- Top bar / nav --------------------------- */
.topbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  margin-bottom: 16px; padding: 10px 14px;
  background: rgba(20,26,30,.78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
/* Sticky nav on desktop only — on mobile the wrapped nav would cover too much. */
@media (min-width: 992px) {
  .topbar { position: sticky; top: 10px; z-index: 60; }
}
.topbar .brand {
  font-size: 1.18rem; font-weight: 800; letter-spacing: -.02em;
  text-decoration: none; margin-right: auto;
  background: linear-gradient(135deg, #7dffc0, var(--accent) 55%, var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--accent);
}
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: 100%; }
@media (min-width: 992px) { .nav { width: auto; } }
.nav a, .nav details.dropdown > summary {
  position: relative;
  display: inline-flex; align-items: center; gap: 5px;
  background: transparent; color: #cfd8dc; text-decoration: none;
  padding: 7px 12px; border-radius: 999px;
  font-weight: 600; font-size: .86rem; letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer; list-style: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.nav details.dropdown > summary::-webkit-details-marker { display: none; }
.nav a:hover, .nav details.dropdown > summary:hover { background: rgba(255,255,255,.06); color: #fff; transform: translateY(-1px); }
.nav a.active, .nav details.dropdown > summary.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06130b; font-weight: 700;
  box-shadow: 0 4px 14px var(--glow);
}

/* Low-stock indicator pill in the top bar */
.nav .nav-low {
  background: rgba(255,140,0,.12); color: #ffb155;
  border-color: rgba(255,140,0,.35); font-weight: 700;
}
.nav .nav-low:hover { background: rgba(255,140,0,.2); color: #ffc580; }

/* Dropdown menus (Admin, user) */
.nav details.dropdown { position: relative; }
.nav .caret { font-size: .68em; opacity: .7; transition: transform .15s ease; }
.nav details.dropdown[open] > summary .caret { transform: rotate(180deg); }
.nav details.dropdown[open] > summary { background: rgba(255,255,255,.08); color: #fff; }
.nav details.dropdown[open] > summary.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #06130b;
}
.nav .menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 90;
  min-width: 190px; padding: 6px;
  display: flex; flex-direction: column; gap: 2px;
  background: rgba(24,30,34,.96);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow);
  animation: rise .15s ease both;
}
.nav .user-menu .menu { left: auto; right: 0; }
.nav .menu a {
  display: block; border-radius: 8px; padding: 8px 12px;
  font-size: .88rem; border: 0;
}
.nav .menu a:hover { transform: none; background: rgba(255,255,255,.07); }
.nav .menu a.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06130b; box-shadow: none;
}
.nav .menu a.danger { color: #ff6b85; }
.nav .menu a.danger:hover { background: rgba(255,23,68,.1); }
.nav .menu .menu-meta {
  color: var(--muted); font-size: .72rem; padding: 6px 12px 8px;
  border-bottom: 1px solid var(--line-soft); margin-bottom: 2px; white-space: nowrap;
}
.nav .menu .menu-meta strong { color: var(--text); }

/* --------------------------- Flash messages --------------------------- */
.flash {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 14px;
  font-weight: 600; font-size: .92rem;
  border: 1px solid; animation: rise .25s ease both;
}
.flash::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.flash.success { background: rgba(0,230,118,.09); color: #5cf0a8; border-color: rgba(0,230,118,.3); }
.flash.error   { background: rgba(255,23,68,.09); color: #ff6b85; border-color: rgba(255,23,68,.32); }
.msg-error   { color: #ff6b85; text-align: center; margin-bottom: 12px; font-weight: 600; }
.msg-success { color: var(--accent); text-align: center; margin-bottom: 12px; font-weight: 600; }

/* --------------------------- Buttons --------------------------- */
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06130b; border: 0;
  border-radius: var(--radius-sm); padding: 10px 16px;
  font-family: inherit; font-weight: 700; font-size: .92rem; letter-spacing: .01em;
  text-align: center; text-decoration: none; cursor: pointer;
  box-shadow: 0 3px 12px rgba(0,230,118,.18);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, background .15s ease;
}
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,230,118,.26); }
.btn:active { transform: translateY(0); filter: brightness(.97); }

/* Variants use .btn.btn-x so they out-rank the button.btn base rule. */
.btn.btn-secondary, button.btn.btn-secondary {
  background: rgba(255,255,255,.05); color: var(--accent);
  border: 1px solid var(--line); box-shadow: none;
}
.btn.btn-secondary:hover { background: rgba(255,255,255,.09); box-shadow: none; }

.btn.btn-danger { background: linear-gradient(135deg, #ff3d63, #e01040); color: #fff; box-shadow: 0 3px 12px rgba(255,23,68,.2); }
.btn.btn-danger:hover { box-shadow: 0 6px 18px rgba(255,23,68,.3); }

.btn-sm { padding: 6px 11px; font-size: .8rem; border-radius: 8px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], button.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; }

.btn.btn-edit { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #06130b; }
.btn.btn-info, button.btn.btn-info {
  background: rgba(46,203,133,.13); color: #4fe3a3;
  border: 1px solid rgba(46,203,133,.32); box-shadow: none;
}
.btn.btn-info:hover { background: rgba(46,203,133,.2); box-shadow: none; }
.btn.btn-delete, button.btn.btn-delete {
  background: rgba(255,23,68,.1); color: #ff6b85;
  border: 1px solid rgba(255,23,68,.3); box-shadow: none;
}
.btn.btn-delete:hover { background: rgba(255,23,68,.18); box-shadow: none; }
.actions-cell .btn, .actions-cell button, .actions-cell a { margin: 0 4px 4px 0; }

/* --------------------------- Action row (legacy) --------------------------- */
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.actions .btn { flex: 1 1 40%; }
@media (min-width: 992px) { .actions .btn { flex: 0 0 auto; } }

/* --------------------------- Stats bar --------------------------- */
.stats {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 4px 0 14px; color: var(--muted); font-size: .85rem;
}
.stats > span, .stats > a {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-2); border: 1px solid var(--line-soft);
  padding: 6px 12px; border-radius: 999px; font-weight: 600;
  text-decoration: none;
}
.stats > a { cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.stats > a:hover { background: rgba(255,140,0,.1); border-color: rgba(255,140,0,.4); }
.stats .s-available { color: var(--accent); }
.stats .s-assigned  { color: var(--warn); }
.stats .s-deployed  { color: var(--info); }
.stats .s-consumed  { color: #ff6b85; }
.stats .s-low       { color: var(--warn); border-color: rgba(255,140,0,.35); }

/* Low-stock indicators */
.badge.st-low { background: rgba(255,140,0,.12); color: #ffb155; border-color: rgba(255,140,0,.35); }
.qty-low { color: var(--warn); font-weight: 800; }

/* Search box with inline Scan button */
.search-row { display: flex; gap: 8px; }
.search-row input { flex: 1; }
.search-row .btn { flex: 0 0 auto; }

/* --------------------------- Filters --------------------------- */
.filters { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 6px 0 14px; }
@media (min-width: 992px) { .filters { grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto; align-items: end; } }
.filters .f-field { display: flex; flex-direction: column; gap: 5px; }
.filters label {
  color: var(--muted); font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
}

/* --------------------------- Forms --------------------------- */
h1, h2 { color: var(--accent); text-align: center; letter-spacing: -.02em; }
h2 { font-size: 1.3rem; font-weight: 800; margin: 4px 0 18px; }
header h1 { margin: 8px 0 14px; font-size: 1.6rem; }

.form-row { display: flex; flex-direction: column; margin-bottom: 15px; }
.form-row label {
  color: var(--muted); margin-bottom: 6px;
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
input, select, textarea, datalist {
  font-family: inherit; font-size: .95rem;
  padding: 10px 12px; width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--input-bg); color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
input:hover, select:hover, textarea:hover { border-color: #3a444c; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,230,118,.14);
  background: #1b1e20;
}
input::placeholder { color: #5e6a70; }
input[type="file"] { padding: 8px; }
input[type="file"]::file-selector-button {
  font-family: inherit; font-weight: 600; font-size: .85rem;
  background: rgba(255,255,255,.07); color: var(--accent);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 12px; margin-right: 10px; cursor: pointer;
}
input[type="checkbox"] {
  width: 17px; height: 17px; accent-color: var(--accent);
  cursor: pointer; box-shadow: none;
}
textarea { min-height: 64px; resize: vertical; }
select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239aa6ab' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 32px;
}

@media (min-width: 992px) {
  .form-row { flex-direction: row; align-items: center; gap: 14px; }
  .form-row label { flex: 0 0 175px; margin: 0; }
  .form-row input, .form-row select, .form-row textarea { flex: 1; }
}
.barcode-btns { display: flex; gap: 8px; margin-top: 8px; }
.form-actions {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft);
}
#qr-reader {
  width: 96vw; max-width: 340px; margin: 8px auto; display: none;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
}

/* --------------------------- Tables: mobile cards --------------------------- */
.table-responsive { margin-top: 10px; }
table { width: 100%; border-collapse: collapse; }
thead, tbody, tr, th, td { display: block; width: 100%; }
thead { display: none; }
tbody tr {
  margin-bottom: 12px; padding: 6px 0;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)), var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
td { padding: 9px 14px; border-bottom: 1px solid var(--line-soft); font-size: .93rem; }
td:last-child { border-bottom: 0; }
td:before {
  content: attr(data-label);
  display: block; margin-bottom: 4px;
  color: var(--muted); font-weight: 700; font-size: .68rem;
  text-transform: uppercase; letter-spacing: .08em;
}
td[data-label=""]:before, td.no-label:before { content: none; }

tbody tr.project-row {
  background: linear-gradient(135deg, rgba(0,230,118,.1), rgba(0,200,83,.04)), var(--surface-2);
  border: 1px solid rgba(0,230,118,.22);
  padding: 0;
}
tbody tr.project-row td { color: var(--accent); font-weight: 800; letter-spacing: .01em; padding: 12px 14px; }

.item-picture-thumb {
  max-width: 62px; max-height: 62px; border-radius: 10px; object-fit: cover;
  display: inline-block; vertical-align: middle;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}

/* --------------------------- Tables: desktop --------------------------- */
@media (min-width: 992px) {
  .table-responsive {
    overflow: auto; margin-top: 12px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--cell);
  }
  table { table-layout: auto; border-collapse: separate; border-spacing: 0; }
  thead { display: table-header-group; }
  tbody { display: table-row-group; }
  tr, tbody tr, tbody tr.project-row {
    display: table-row; margin: 0; padding: 0;
    background: transparent; box-shadow: none; border: 0; border-radius: 0;
  }
  th, td {
    display: table-cell; width: auto; padding: 11px 14px; vertical-align: middle;
    border-bottom: 1px solid var(--line-soft);
    background: var(--cell); color: #dfeeee; white-space: nowrap;
    font-size: .9rem;
  }
  th {
    position: sticky; top: 0; z-index: 3; text-align: left;
    background: var(--panel-2);
    color: var(--muted); font-weight: 700; font-size: .7rem;
    text-transform: uppercase; letter-spacing: .08em;
    border-bottom: 1px solid var(--line);
  }
  td:before { content: none !important; }
  tbody tr:last-child td { border-bottom: 0; }
  tbody tr:not(.project-row):hover td { background: #141a1e; }

  .col-desc { max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
  .col-item { max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
  .item-picture-thumb { width: 42px; height: 42px; max-width: none; max-height: none; }

  tbody tr.project-row td, .project-row td {
    background: linear-gradient(135deg, rgba(0,230,118,.1), rgba(0,200,83,.03)), var(--surface-2);
    color: var(--accent); font-weight: 800; font-size: .92rem;
    text-transform: none; letter-spacing: .01em;
    padding: 12px 14px; border-bottom: 1px solid rgba(0,230,118,.16);
  }
}

/* --------------------------- Status accents + badges --------------------------- */
tbody tr.st-available { border-left: 4px solid var(--accent); }
tbody tr.st-assigned  { border-left: 4px solid var(--warn); }
tbody tr.st-deployed  { border-left: 4px solid var(--info); }
tbody tr.st-consumed  { border-left: 4px solid var(--danger); }
@media (min-width: 992px) {
  tbody tr.st-available, tbody tr.st-assigned, tbody tr.st-deployed, tbody tr.st-consumed { border-left: 0; }
  tbody tr.st-available td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
  tbody tr.st-assigned  td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
  tbody tr.st-deployed  td:first-child { box-shadow: inset 3px 0 0 var(--info); }
  tbody tr.st-consumed  td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
}

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: .74rem; font-weight: 700; letter-spacing: .02em;
  border: 1px solid;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.st-available { background: rgba(0,230,118,.1);  color: #5cf0a8; border-color: rgba(0,230,118,.3); }
.badge.st-assigned  { background: rgba(255,140,0,.1);  color: #ffb155; border-color: rgba(255,140,0,.3); }
.badge.st-deployed  { background: rgba(46,203,133,.1); color: #4fe3a3; border-color: rgba(46,203,133,.3); }
.badge.st-consumed  { background: rgba(255,23,68,.1);  color: #ff6b85; border-color: rgba(255,23,68,.3); }

/* --------------------------- Pagination --------------------------- */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; margin-top: 18px; }
.pagination a, .pagination span {
  min-width: 36px; padding: 8px 12px; text-align: center;
  border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--line-soft);
  color: var(--text); text-decoration: none; font-size: .85rem; font-weight: 600;
  transition: background .15s ease, border-color .15s ease;
}
.pagination a:hover { background: rgba(255,255,255,.07); border-color: var(--line); }
.pagination .current {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06130b; font-weight: 700; border-color: transparent;
  box-shadow: 0 3px 10px var(--glow);
}
.pagination .disabled { opacity: .35; }

/* --------------------------- Bulk action bar --------------------------- */
.bulkbar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin: 4px 0 12px; padding: 10px 12px;
  background: var(--surface-2); border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); color: var(--muted); font-size: .88rem;
}
.bulkbar label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }

/* --------------------------- Modals --------------------------- */
.modal {
  display: none; position: fixed; inset: 0;
  background: rgba(8,11,13,.66);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  z-index: 1200; align-items: center; justify-content: center; padding: 14px;
}
.modal .modal-box {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0) 80px), #181d21;
  border: 1px solid var(--line);
  color: var(--text); padding: 22px; border-radius: var(--radius);
  min-width: 280px; max-width: 92vw; max-height: 86vh; overflow: auto; text-align: center;
  box-shadow: var(--shadow);
  animation: modalIn .22s ease both;
}
#infoModal .modal-box { min-width: 320px; text-align: left; }

@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes rise    { from { opacity: 0; transform: translateY(-4px); }            to { opacity: 1; transform: none; } }

/* --------------------------- Details / summary --------------------------- */
summary { cursor: pointer; }
summary::-webkit-details-marker { display: none; }

/* --------------------------- Login --------------------------- */
.login-card {
  max-width: 380px; margin: 12vh auto 0;
  border-top: 2px solid rgba(0,230,118,.45);
}
.login-card h1 {
  font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 20px;
  background: linear-gradient(135deg, #7dffc0, var(--accent) 55%, var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--accent);
}

/* --------------------------- Print --------------------------- */
@media print {
  /* Label mode: when the QR modal is open (body.label-print-mode is toggled by
     its JS), print ONLY the labels. */
  body.label-print-mode * { visibility: hidden !important; }
  body.label-print-mode .print-area, body.label-print-mode .print-area * { visibility: visible !important; }
  body.label-print-mode .print-area {
    position: absolute; left: 0; top: 0; width: 100%;
    background: #fff !important; color: #000 !important; text-align: center;
  }

  /* Normal mode: any page prints as a clean black-on-white report. */
  .no-print, .modal { display: none !important; }
  html, body { background: #fff !important; color: #000 !important; }
  .wrap, .wrap.wide, .wrap.narrow { max-width: 100%; margin: 0; padding: 0; }
  .panel { background: #fff !important; border: 0; box-shadow: none; padding: 0; }
  h1, h2 { color: #000 !important; }
  .stats > span, .stats > a { background: #fff !important; border: 1px solid #bbb !important; color: #000 !important; }
  .table-responsive { border: 1px solid #bbb; background: #fff !important; overflow: visible; }
  table, thead, tbody { display: table; width: 100%; }
  thead { display: table-header-group; }
  tbody { display: table-row-group; }
  tr, tbody tr, tbody tr.project-row { display: table-row; background: #fff !important; border: 0; box-shadow: none; }
  th, td {
    display: table-cell; width: auto; background: #fff !important; color: #000 !important;
    border-bottom: 1px solid #ddd !important; box-shadow: none !important; white-space: normal;
  }
  td:before { content: none !important; }
  tbody tr.project-row td, .project-row td { background: #eee !important; color: #000 !important; }
  .badge { background: #fff !important; color: #000 !important; border: 1px solid #999 !important; }
  .qty-low { color: #000 !important; }
  .item-picture-thumb { border: 1px solid #ccc; }
  a { color: #000 !important; text-decoration: none; }
}
