:root { color-scheme: light; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #17191b; background: #fff; }
* { box-sizing: border-box; } body { margin: 0; background: #fff; }
[hidden] { display: none !important; }
main, footer { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
header { width: 100%; min-height: 88px; padding: 24px max(24px, calc((100% - 1120px) / 2)); background: #000; display: flex; align-items: center; justify-content: space-between; gap: 24px; } header nav, .detail-actions { display: flex; gap: 10px; flex-wrap: wrap; } .logo { display: block; height: 36px; width: auto; }
h1 { margin: 0; font-size: 24px; } header p { margin: 4px 0 0; color: #686b6e; } main { min-height: 72vh; padding: 32px 0 48px; }
.controls, .view-actions, .section-heading { display: flex; align-items: end; gap: 18px; } .controls { margin-bottom: 22px; } .view-actions, .section-heading { justify-content: space-between; margin-bottom: 24px; }
label { display: grid; gap: 7px; font-size: 13px; font-weight: 600; color: #45494d; }
input, select, textarea, button, .button-label { font: inherit; color: #17191b; border: 1px solid #c8cacc; border-radius: 5px; background: #fff; padding: 10px 12px; min-height: 44px; }
textarea { resize: vertical; } input { min-width: 260px; } button { cursor: pointer; width: fit-content; } button.primary { color: #fff; background: #ed1c24; border-color: #ed1c24; font-weight: 700; }
button.danger { color: #b00008; border-color: #b00008; font-weight: 700; }
.table-wrap { overflow-x: auto; border: 1px solid #dedede; border-radius: 6px; } table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid #e8e8e8; } th { font-size: 12px; color: #62666a; text-transform: uppercase; letter-spacing: .04em; }
tbody tr[data-id] { cursor: pointer; } tbody tr[data-id]:hover, tbody tr[data-id]:focus { background: #f6f6f6; outline: none; }
.empty { color: #717477; text-align: center; padding: 34px; } .notice, .form-error { padding: 13px; background: #fff8df; border: 1px solid #ead382; border-radius: 5px; }
.notice.error, .form-error { background: #f3f3f3; border-color: #b8b8b8; } .unparsed { margin-top: 30px; } h2 { margin: 20px 0; } h3 { margin-top: 30px; }
dl { display: grid; grid-template-columns: 110px 1fr; gap: 10px; } dt { color: #686b6e; } dd { margin: 0; } .pre-wrap { white-space: pre-wrap; }
#job-form { max-width: 900px; } .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } .form-grid input, .form-grid textarea, .notes-label textarea { width: 100%; min-width: 0; } .wide { grid-column: 1 / -1; }
.line-editor { margin-top: 34px; } .section-heading h3 { margin: 0; } .line-row { display: grid; grid-template-columns: 1fr 110px 180px auto auto; align-items: end; gap: 12px; margin-top: 12px; } .line-row input { width: 100%; min-width: 0; }
.taxable-control { display: flex; align-items: center; gap: 7px; padding: 10px 0; white-space: nowrap; } .taxable-control input { width: auto; min-width: 0; }
.notes-label { margin-top: 34px; } .save { margin-top: 24px; } footer { border-top: 1px solid #e2e2e2; padding: 22px 0 38px; color: #686b6e; font-size: 13px; }
.job-address { font-style: normal; line-height: 1.6; } .job-address span, .job-address strong { display: block; }
.saved-drawing { margin: 24px 0; justify-content: start; } .glass-pane { position: relative; width: 220px; height: 160px; border: 3px solid #17191b; overflow: hidden; } .glass-pane .bar { position: absolute; display: block; background: #17191b; } .glass-pane .horizontal { left: 0; right: 0; height: 2px; transform: translateY(-1px); } .glass-pane .vertical { top: 0; bottom: 0; width: 2px; transform: translateX(-1px); }
.saved-glass-height { grid-column: 1; grid-row: 1; justify-self: end; padding-right: 10px; } .saved-drawing .glass-pane { grid-column: 2; grid-row: 1; } .saved-glass-width { grid-column: 2; grid-row: 2; justify-self: center; align-self: start; padding-top: 8px; }
.profit-section { margin-top: 34px; } .profit-totals { margin-bottom: 0; } .true-net { color: #1b7f3a; font-weight: 800; }
.deduction { color: #555; } .dashboard-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 14px; margin-bottom: 30px; } .metric { padding: 18px; border: 1px solid #dedede; border-radius: 6px; display: grid; gap: 8px; } .metric span { color: #686b6e; font-size: 13px; } .metric strong { font-size: 25px; }
.glass-fields { margin-top: 28px; padding: 22px; border: 1px solid #dedede; border-radius: 6px; }
.window-card { margin-top: 18px; padding: 20px; border: 1px solid #d4d4d4; border-radius: 6px; background: #fafafa; } .window-card h4 { margin: 0; font-size: 18px; } .window-card [data-window-height-label] { grid-column: 1; grid-row: 1; justify-self: end; padding-right: 10px; } .window-card [data-window-pane] { grid-column: 2; grid-row: 1; } .window-card [data-window-width-label] { grid-column: 2; grid-row: 2; justify-self: center; padding-top: 8px; }
.glass-drawing { display: grid; grid-template-columns: 50px 220px; grid-template-rows: 160px 32px; align-items: center; justify-content: center; margin-top: 26px; color: #686b6e; }
#glass-height { grid-column: 1; grid-row: 1; justify-self: end; padding-right: 10px; }
#glass-pane { position: relative; width: 220px; height: 160px; border: 3px solid #17191b; overflow: hidden; }
#glass-pane .bar { position: absolute; display: block; background: #17191b; }
#glass-pane .horizontal { left: 0; right: 0; height: 2px; transform: translateY(-1px); }
#glass-pane .vertical { top: 0; bottom: 0; width: 2px; transform: translateX(-1px); }
#glass-width { grid-column: 2; grid-row: 2; justify-self: center; align-self: start; padding-top: 8px; }
.totals { margin: 18px 0 0 auto; width: min(360px, 100%); grid-template-columns: 1fr auto; border-top: 1px solid #dedede; padding-top: 12px; }
.login-header { justify-content: center; } .login-main { min-height: calc(100vh - 88px); display: grid; place-items: start center; padding-top: 9vh; } .login-form { width: min(420px, 100%); display: grid; gap: 18px; padding: 28px; border: 1px solid #dedede; border-radius: 6px; } .login-form h1, .login-form p { margin: 0; } .login-form input, .login-form button { width: 100%; min-width: 0; font-size: 16px; }
.job-photos { margin-top: 38px; padding-top: 8px; border-top: 1px solid #dedede; } .photo-actions { display: flex; flex-wrap: wrap; gap: 10px; } .button-label { display: inline-flex; align-items: center; cursor: pointer; color: #fff; background: #ed1c24; border-color: #ed1c24; font-size: 14px; } .button-label input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; } .photo-progress { min-height: 24px; } .photo-retries { margin-bottom: 18px; } .photo-retries p { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; } .photo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; } .photo-item { margin: 0; display: grid; gap: 9px; align-content: start; } .photo-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #f3f3f3; border-radius: 5px; } .photo-item figcaption { font-size: 13px; color: #686b6e; }
@media (max-width: 700px) {
  main, footer { width: min(100% - 28px, 1120px); }
  header { padding: 14px; align-items: flex-start; flex-direction: column; gap: 14px; }
  header nav { width: 100%; } header nav button { flex: 1 1 auto; }
  .controls, .form-grid { display: grid; grid-template-columns: 1fr; }
  .wide { grid-column: auto; } input, select, textarea { min-width: 0; width: 100%; font-size: 16px; }
  .line-row { grid-template-columns: 1fr; padding: 14px 0; border-bottom: 1px solid #e8e8e8; }
  .table-wrap { overflow: visible; border: 0; } table, thead, tbody, tr, th, td { display: block; } thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } tbody { display: grid; gap: 12px; } tbody tr { padding: 14px; border: 1px solid #dedede; border-radius: 6px; } td { display: grid; grid-template-columns: minmax(82px, .7fr) 1.3fr; gap: 12px; padding: 7px 0; border: 0; overflow-wrap: anywhere; } td::before { color: #686b6e; font-size: 12px; text-transform: uppercase; } #jobs td:nth-child(1)::before, #dashboard-jobs td:nth-child(1)::before { content: "Name"; } #jobs td:nth-child(2)::before { content: "Town"; } #jobs td:nth-child(3)::before { content: "Service"; } #jobs td:nth-child(4)::before { content: "Status"; } #jobs td:nth-child(5)::before { content: "Invoice"; } #jobs td:nth-child(6)::before { content: "Remitted"; } #dashboard-jobs td:nth-child(2)::before { content: "Date"; } #dashboard-jobs td:nth-child(3)::before { content: "Town"; } #dashboard-jobs td:nth-child(4)::before { content: "Service"; } #dashboard-jobs td:nth-child(5)::before { content: "Status"; } #dashboard-jobs td:nth-child(6)::before { content: "True net"; }
  .glass-fields, .window-card, .login-form { padding: 16px; } .glass-drawing { width: 100%; grid-template-columns: 42px minmax(0, 220px); } .glass-pane { width: min(220px, calc(100vw - 92px)); }
  .view-actions, .section-heading { align-items: stretch; flex-direction: column; } .detail-actions, .photo-actions { width: 100%; } .detail-actions button, .photo-actions .button-label { flex: 1; justify-content: center; }
}
