/* Windows and browser workspace. The field app keeps its own navigation and spacing. */
body {
  --ink: #183737;
  --muted-ink: #52696b;
  --line: #d8e4e1;
  --teal: #11685f;
  --wash: #e8f3ee;
}
main .glyph {
  width: 21px; height: 21px; flex: none; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
main :is(.overview-content, .object-list, .overview-listing) a:focus-visible {
  outline: 3px solid #177e70; outline-offset: 2px;
}
.overview-content a, .object-card, .overview-listing .records a {
  text-decoration: none; color: var(--ink);
}
.overview-content .metrics, .overview-content .actions, .object-list, .overview-listing .records {
  display: grid; gap: 12px;
}
.overview-content .metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.overview-content .metric, .overview-content .trend-card, .overview-content .actions a, .object-card, .overview-listing .records a {
  background: white; border: 1px solid var(--line); border-radius: 14px; min-width: 0;
}
.overview-content .metric, .overview-content .actions a, .object-card, .overview-listing .records a {
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.overview-content .metric:hover, .overview-content .actions a:hover, .object-card:hover, .overview-listing .records a:hover {
  border-color: #7eaba3; box-shadow: 0 3px 10px #1c4a4312;
}
.overview-content .metric {
  display: flex; flex-direction: column; padding: 15px 17px; gap: 4px;
}
.overview-content .metric-icons, .overview-content .actions a { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.overview-content .metric-icons { color: var(--teal); margin-bottom: 7px; }
.overview-content .metric-icons .glyph:last-child, .overview-content .actions a > .glyph, .overview-listing a > .glyph {
  width: 13px; height: 13px; color: #6d8884;
}
.overview-content .metric strong, .overview-content .trend strong {
  font-variant-numeric: tabular-nums; letter-spacing: -.045em; overflow-wrap: anywhere; line-height: 1.13;
}
.overview-content .metric strong { font-size: clamp(23px, 2.3vw, 34px); }
.overview-content .metric > span:last-child { font-size: 13px; color: var(--muted-ink); }
.overview-content .metric:first-child { color: white; background: #145c54; border-color: #145c54; }
.overview-content .metric:first-child span, .overview-content .metric:first-child .glyph { color: #e0f4ed; }
.overview-work { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: 20px; margin-bottom: 20px; }
.overview-work h2 { font-size: 17px; margin: 0 0 10px; }
.overview-work section { min-width: 0; }
.overview-content .trend-card { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 14px 0 10px; }
.overview-content .trend { min-width: 0; }
.overview-content .trend + .trend { border-left: 1px solid var(--line); }
.overview-content .trend a { display: block; padding: 0 14px; border-radius: 6px; }
.overview-content .trend a:hover { background: #f1f7f4; }
.overview-content .trend a > span, .overview-content .legend { color: var(--muted-ink); }
.overview-content .trend strong { display: block; margin: 3px 0 8px; font-size: clamp(18px,1.6vw,26px); }
.overview-content .trend svg { display: block; width: 100%; height: 35px; fill: none; stroke-width: 2; stroke-linejoin: round; }
.overview-content .trend polyline { vector-effect: non-scaling-stroke; }
.overview-content .service svg { stroke: var(--teal); }
.overview-content .sale svg { stroke: #436c9a; }
.overview-content .paid svg { stroke: #946026; }
.overview-content .baseline { stroke: #d2dfdc; stroke-width: 1; stroke-dasharray: 2 3; }
.overview-content .legend { grid-column: 1/-1; margin: 9px 14px 0; font-size: 11px; }
.overview-content .actions { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.overview-content .actions a { justify-content: flex-start; padding: 12px; min-height: 59px; line-height: 1.2; }
.overview-content .actions a > .glyph { margin-left: auto; }
.icon-box, .identity-mark, .customer-object .avatar {
  display: inline-grid; place-items: center; flex: none; width: 35px; height: 35px;
  color: var(--teal); background: var(--wash); border-radius: 10px;
}
.dashboard #bakim-takvimi { margin: 25px 0 14px; scroll-margin-top: 14px; }
.dashboard .home-metrics > div { background: #f4f8f6; border: 1px solid var(--line); padding: 9px 13px; }
.dashboard .home-metrics > .overdue { background: #faf3ed; color: #7b4727; border-color: #e9dccc; }
.dashboard .home-metrics .overdue dt, .dashboard .home-metrics .overdue dd a:is(:hover,:focus-visible) { color: #764326; }
.dashboard .home-metrics .overdue .icon { color: #764326; background: #f3e6d8; }
.dashboard .home-metrics dd { font-size: 20px; }
.dashboard .home-metrics dt { font-size: 12px; }
main .tabs {
  display: flex; gap: 5px; width: fit-content; max-width: 100%; flex-wrap: wrap; padding: 4px;
  background: #eaf0ee; border: 1px solid #dde6e3; border-radius: 11px;
}
main .tabs a { padding: 7px 12px; line-height: 1.3; border: 1px solid transparent; border-radius: 7px; color: #465e5a; }
main .tabs a:hover { background: #f6faf8; }
main .tabs a[aria-current] { color: #134f46; background: white; border: 1px solid #cfded8; box-shadow: 0 1px 3px #21463e0e; }
.panel.record-list-panel:has(.object-list) { padding: 0; border: 0; background: transparent; box-shadow: none; }
.object-list, .overview-listing .records { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.object-card, .overview-listing .records a { display: flex; gap: 12px; padding: 16px; overflow-wrap: anywhere; }
.customer-object { align-items: center; }
.customer-object .avatar { width: 40px; height: 42px; font-size: 18px; font-weight: 650; }
.object-copy, .overview-listing .records a > span { display: grid; gap: 3px; min-width: 0; }
.object-copy strong, .service-object > strong { font-size: 16px; line-height: 1.3; }
.object-copy > span, .object-model, .object-top small, .object-foot, .object-copy small, .overview-listing small { color: var(--muted-ink); }
.object-copy small, .object-top small, .object-foot { font-size: 12px; }
.disclosure {
  width: 7px; height: 7px; flex: none; border: solid #6d8781; border-width: 1.5px 1.5px 0 0;
  margin: 0 3px 0 auto; transform: rotate(45deg);
}
.service-object { flex-direction: column; align-items: stretch; gap: 4px; }
.object-top, .object-foot { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; }
.object-top { justify-content: space-between; margin-bottom: 7px; }
.object-foot { border-top: 1px solid #e5eeea; padding-top: 10px; margin-top: auto; }
.object-model { margin-bottom: 7px; }
.object-foot .urgent { color: #883e2f; }
.record-list-panel nav:not(:empty), .overview-listing .pages { margin-top: 14px; display: flex; gap: 18px; }
.record-list-panel nav:not(:has(a)), .overview-listing .pages:not(:has(a)) { display: none; }
.service-identity { display: flex; justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 12px; }
.service-identity > a { margin-left: auto; }
.service-identity h1 { margin: 0; }
.identity-mark { width: 44px; height: 44px; }
.info-card .contact-facts { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 12px; padding: 0; }
.contact-facts > div, .visit-summary .facts > div { background: #f3f7f5; padding: 12px 14px; border-radius: 9px; min-width: 0; }
.contact-facts dt, .visit-summary dt { color: var(--muted-ink); font-size: 12px; }
.contact-facts dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.record-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.call-entry { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid #86b7a5; border-radius: 8px; }
.overview-listing .search { margin: 0 0 20px; max-width: 580px; }
.overview-listing .search > div { display: flex; gap: 8px; margin-top: 5px; }
.overview-listing .records a { align-items: center; }
.overview-listing .records b { margin-left: auto; color: var(--teal); }
@media (min-width: 980px) {
  .office-shell nav a[aria-current] { box-shadow: inset 3px 0 #16806f; }
}
@media (max-width: 1090px) {
  .overview-work { grid-template-columns: 1fr; }
  .overview-content .actions { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .overview-content .metrics, .overview-content .actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .overview-content .metric { padding: 12px; }
  .overview-content .trend a { padding: 0 8px; }
  .overview-content .actions a { padding: 10px; }
  .info-card .contact-facts { grid-template-columns: 1fr; }
  .object-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .overview-content a, .object-card, .overview-listing .records a { transition: none; }
}

.inventory-table .item-code { font-variant-numeric: tabular-nums; color: var(--muted-ink); }
.stock-quantity { display: inline-block; font-variant-numeric: tabular-nums; padding: 3px 9px; background: var(--wash); color: #175e4b; border-radius: 20px; font-weight: 650; }
.stock-quantity.empty-stock { background: #f4ece0; color: #774c1a; }
.entries.source-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 215px),1fr)); gap: 10px; }
.entries.source-cards li { display: grid; align-content: center; gap: 3px; margin: 0; padding: 12px 15px; border: 1px solid var(--line); border-radius: 10px; background: #f8fbf9; }
.finance-metrics > div { border-radius: 12px; border-top: 3px solid #b5c9c0; }
.finance-metrics > div:first-child { border-top-color: #39836c; }
.finance-metrics > div:nth-child(2) { border-top-color: #b58a60; }
