/* SPDX-License-Identifier: LicenseRef-PolyForm-Internal-Use-1.0.0 */
/* Copyright (C) 2006-2026 DIY Accounting Limited */

/* brand/diya-gl.css: the DIYA-GL rules the brand guide shows, from diya-gl.css, scoped to
   .brand-diya-gl. Colours come from tokens.css. */

.brand-diya-gl {
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 11px 11px;
  color: var(--ink);
  font-family: var(--font-ui);
  line-height: 1.5;
}

.brand-diya-gl .spec-h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--rule);
}
.brand-diya-gl .spec-h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}
.brand-diya-gl .spec-body {
  font-size: 1rem;
}
.brand-diya-gl .spec-caption {
  font-size: 0.72rem;
  color: var(--pencil);
}

.brand-diya-gl .app-topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: var(--topbar-h);
  padding: 0 0.9rem;
  background: var(--paper-raised);
  border-bottom: 1px solid var(--rule-faint);
}
.brand-diya-gl .app-mark {
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 1.05rem;
  color: var(--rule);
  white-space: nowrap;
}
.brand-diya-gl .app-title {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  overflow: hidden;
  white-space: nowrap;
}
.brand-diya-gl .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  padding: 0 0.7rem;
  gap: 0.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--rule-faint);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  flex: none;
}
.brand-diya-gl .icon-btn:hover {
  border-color: var(--rule);
  background: var(--tint);
}

.brand-diya-gl .sheet-tabs {
  display: flex;
  gap: 0.1rem;
  overflow-x: auto;
  height: var(--tabstrip-h);
  padding: 0 0.5rem;
  background: var(--paper);
  border-bottom: 1px solid var(--rule-faint);
}
.brand-diya-gl .tab-btn {
  flex: none;
  appearance: none;
  border: none;
  background: transparent;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--pencil);
  padding: 0 0.75rem;
  height: var(--tabstrip-h);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.brand-diya-gl .tab-btn[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--rule);
}

.brand-diya-gl .year-table-scroll {
  overflow: auto;
  border: 1px solid var(--rule-faint);
  border-radius: var(--radius-lg);
  background: var(--paper-raised);
  box-shadow: var(--shadow);
}
.brand-diya-gl table.year-table {
  border-collapse: collapse;
  width: 100%;
}
.brand-diya-gl .year-table thead th {
  background: var(--paper-raised);
  border-bottom: 1px solid var(--rule);
  padding: 0.5rem 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.66rem;
  color: var(--pencil);
  text-align: right;
  white-space: nowrap;
}
.brand-diya-gl .year-table thead th:first-child {
  text-align: left;
}
.brand-diya-gl .year-table th.col-computed,
.brand-diya-gl .year-table td.col-computed {
  background: var(--tint);
}
.brand-diya-gl .year-table td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--rule-faint);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.brand-diya-gl .year-table .month-cell {
  text-align: left;
  font-family: var(--font-ui);
  font-weight: 600;
  background: var(--paper-raised);
}

.brand-diya-gl .pencil-correction {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
}
.brand-diya-gl .pencil-correction .computed-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.brand-diya-gl .pencil-correction .as-read {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.72em;
  color: var(--pencil);
  text-decoration: line-through;
  text-decoration-color: var(--pencil);
}
.brand-diya-gl .pencil-correction .drift-amount {
  font-family: var(--font-mono);
  font-size: 0.72em;
  color: var(--correction);
}
