/*
 * Gem Lab additions to the shared design system (public/assets/css/app.css is the compiled
 * Tailwind file from Nveloop GMS). Only utilities the lab screens use that app.css does not have.
 * If you rebuild app.css with Tailwind for this project, this file can be deleted.
 */
.bg-brand-400 { background-color: #5A9AE6; }
.bg-emerald-700 { background-color: #047857; }
.border-emerald-700 { border-color: #047857; }
.hover\:bg-emerald-800:hover { background-color: #065F46; }
.border-line-strong { border-color: var(--line-strong); }
.border-t-2 { border-top-width: 2px; border-top-style: solid; }
.break-all { word-break: break-all; }
.h-6 { height: 1.5rem; }
.left-10 { left: 2.5rem; }
.mb-0 { margin-bottom: 0; }
.max-h-64 { max-height: 16rem; }
.max-h-\[65vh\] { max-height: 65vh; }
.max-h-\[72vh\] { max-height: 72vh; }
.max-w-40 { max-width: 10rem; }
.min-w-24 { min-width: 6rem; }
.min-w-32 { min-width: 8rem; }
.min-w-36 { min-width: 9rem; }
.min-w-44 { min-width: 11rem; }
.min-w-48 { min-width: 12rem; }
.min-w-56 { min-width: 14rem; }
.min-w-\[1320px\] { min-width: 1320px; }
.pb-10 { padding-bottom: 2.5rem; }
.pb-2\.5 { padding-bottom: .625rem; }
.pr-3 { padding-right: .75rem; }
.self-center { align-self: center; }
.shadow-\[0_1px_0_var\(--line\)\] { box-shadow: 0 1px 0 var(--line); }
.size-40 { width: 10rem; height: 10rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.w-8 { width: 2rem; }
.w-\[68px\] { width: 68px; }
.w-px { width: 1px; }
.grid-cols-\[150px_1fr\] { grid-template-columns: 150px 1fr; }
.grid-cols-\[170px_1fr\] { grid-template-columns: 170px 1fr; }
.grid-cols-\[1fr_72px\] { grid-template-columns: 1fr 72px; }
.grid-cols-\[1fr_80px_80px\] { grid-template-columns: 1fr 80px 80px; }
.group:hover .group-hover\:flex { display: flex; }
@media (min-width: 40rem) {
  .sm\:block { display: block; }
  .sm\:p-6 { padding: 1.5rem; }
  .sm\:grid-cols-\[1fr_240px\] { grid-template-columns: 1fr 240px; }
}
@media (min-width: 48rem) {
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:grid-cols-\[2fr_1fr_1fr\] { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 64rem) {
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\:grid-cols-\[1fr_2fr\] { grid-template-columns: 1fr 2fr; }
  .lg\:grid-cols-\[1fr_300px\] { grid-template-columns: 1fr 300px; }
  .lg\:grid-cols-\[2fr_1fr\] { grid-template-columns: 2fr 1fr; }
  .lg\:max-w-sm { max-width: 24rem; }
}
/* Sticky first columns of the results grid need a solid background in both themes */
table td.sticky, table th.sticky { background: var(--surface); }
@media print { .no-print { display: none !important; } }
.max-w-full { max-width: 100%; }

/* ---- Order form, price list, settings tables (added 8 Nov) ---- */
.border-y { border-top-width: 1px; border-bottom-width: 1px; border-style: solid; }
.list-decimal { list-style-type: decimal; }
.max-h-\[68vh\] { max-height: 68vh; }
.min-w-20 { min-width: 5rem; }
.min-w-40 { min-width: 10rem; }
.min-w-48 { min-width: 12rem; }
.min-w-64 { min-width: 16rem; }
.min-w-\[250px\] { min-width: 250px; }
.min-w-\[900px\] { min-width: 900px; }
.min-w-\[1280px\] { min-width: 1280px; }
.w-\[76px\] { width: 76px; }
/* Inputs inside table cells keep a readable size: the table scrolls sideways instead of squashing them */
.tbl td > .input, .tbl td > select.input { min-width: 4.5rem; }
.tbl td .flex > .input:not(.min-w-0) { flex-shrink: 0; }
.tbl td .combo { min-width: 9rem; }
@media (min-width: 48rem) {
  .md\:grid-cols-\[2fr_1fr_1fr_1fr\] { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
@media (min-width: 64rem) {
  .lg\:grid-cols-\[1fr_1fr_1fr_auto\] { grid-template-columns: 1fr 1fr 1fr auto; }
}

/* ---- Order lines: two rows per line (what the item is / service and price); stacked with labels on phones ---- */
.oline, .ohead { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.ohead { display: none; }
.oline-no { grid-row: span 2; padding-top: 10px; color: var(--muted); font-size: 13px; }
.oline-a, .oline-b { grid-column: 2; display: grid; gap: 8px 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.oline-b { margin-top: 8px; }
.ol { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 500; color: var(--muted); }
.of-item, .of-says { grid-column: 1 / -1; }
.of-total { align-self: center; text-align: right; font-size: 15px; font-variant-numeric: tabular-nums; }
.of-act { display: flex; justify-content: flex-end; align-self: center; }
.of-sep { display: flex; align-items: center; gap: 8px; height: 40px; font-size: 13px; white-space: nowrap; }
.oline:hover { background: color-mix(in srgb, var(--line) 25%, transparent); }
@media (min-width: 64rem) {
  .oline-a { grid-template-columns: minmax(0, 2.3fr) minmax(0, 1.7fr) minmax(0, 1.3fr) minmax(0, 1.5fr) 72px 108px; }
  .oline-b { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.5fr) minmax(0, 1.4fr) minmax(0, 1.1fr) minmax(0, 1fr) 76px; }
  .of-item, .of-says { grid-column: auto; }
}

/* ---- Header branch switcher ---- */
.branch-chip { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 13px; font-weight: 500; color: var(--ink); white-space: nowrap; }
button.branch-chip:hover { border-color: var(--line-strong); }
.branch-name { max-width: 14rem; }
span.branch-chip { cursor: default; }
.branch-indent { padding-left: 1.5rem; }
@media (max-width: 40rem) { .branch-name { max-width: 6.5rem; } .theme-btn-wide { display: none; } .branch-chip { padding: 0 8px; } }
/* Order header with a branch choice: customer · branch · currency · received · handed over by */
@media (min-width: 48rem) { .ohdr-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 80rem) { .ohdr-5 { grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); } }
/* Quick periods under a date filter: Today · Yesterday · Last 7 days … */
.periods { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 12px; }
.periods a { text-decoration: none; }

/* Utilities not in the compiled app.css (used by lab pages) */
.max-w-\[16rem\] { max-width: 16rem; }
.w-\[84px\] { width: 84px; }
.w-\[76px\] { width: 76px; }
.min-w-\[11rem\] { min-width: 11rem; }
.min-w-\[1060px\] { min-width: 1060px; }
.max-h-72 { max-height: 18rem; }
.list-disc { list-style-type: disc; }
/* order header, one branch: customer wide + 3 fields */
@media (min-width: 48rem) { .ohdr-4 { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); } }

/* Certificate designs, report fields, diamond / jewellery result form (14 Nov 2026) */
.h-\[78vh\] { height: 78vh; }
.normal-case { text-transform: none; }
.has-\[\:checked\]\:bg-brand-50\/50:has(:checked) { background-color: color-mix(in oklab, var(--color-brand-50) 50%, transparent); }
.has-\[\:checked\]\:border-brand-500:has(:checked) { border-color: var(--color-brand-500); }
.dark\:has-\[\:checked\]\:bg-brand-950\/30:has(:checked):where(.dark,.dark *) { background-color: rgb(32 100 168 / .14); }
@media (min-width: 64rem) {
    .lg\:grid-cols-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
    .lg\:col-span-7 { grid-column: span 7 / span 7; }
}
@media (min-width: 80rem) { .xl\:grid-cols-\[minmax\(0\,1fr\)_minmax\(0\,1\.05fr\)\] { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
