:root {
  --ink: #172033;
  --muted: #667085;
  --line: #d9e2ef;
  --soft: #f5f9fc;
  --white: #ffffff;
  --blue: #005eb8;
  --blue-dark: #003b73;
  --green: #12a66a;
  --teal: #00a7a5;
  --yellow: #f7c948;
  --danger: #e14942;
  --shadow: 0 18px 45px rgba(23, 32, 51, 0.1);
}

body.owner-red-theme {
  --ink: #171717;
  --muted: #606060;
  --line: #dedede;
  --soft: #f5f5f5;
  --blue: #c72b32;
  --blue-dark: #171717;
  --green: #14865f;
  --teal: #168a91;
  --yellow: #e6b83f;
  --danger: #cf3f37;
  color: #171717;
  background: #f5f5f5;
}

body.owner-red-theme .sidebar {
  background: #151515;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

body.owner-red-theme .topbar h1,
body.owner-red-theme .panel-head h2 {
  color: #171717;
}

body.owner-red-theme .topbar .eyebrow,
body.owner-red-theme .panel-head .eyebrow {
  color: #b4232b;
}

body.owner-red-theme .user-badge.owner {
  border-color: #d5d5d5;
  color: #171717;
  background: #fff;
}

body.owner-red-theme .dashboard-switch button.active {
  color: #fff;
  background: #171717;
}

body.owner-red-theme .team-status-dashboard .side-card {
  border-left-color: #c72b32;
}

body.owner-red-theme .team-status-dashboard .side-card.complete {
  border-color: #b9ddce;
  border-left-color: #14865f;
  background: #f1faf6;
}

body.owner-red-theme .status-chip.positive,
body.owner-red-theme .deadline-badge.done {
  border-color: #b9ddce;
  color: #0b6244;
  background: #e7f6ef;
}

body.owner-red-theme .deadline-badge.active,
body.owner-red-theme .timeline-legend .pending {
  border-color: #e7cd7a;
  color: #805b00;
  background: #fff5cf;
}

body.owner-red-theme .deadline-badge.overdue,
body.owner-red-theme .danger-action,
body.owner-red-theme .task-delete {
  color: #fff;
  background: #cf3f37;
}

body.owner-red-theme .primary,
body.owner-red-theme .icon-button,
body.owner-red-theme .notification-filters button.active {
  background: #c72b32;
}

body.owner-red-theme .primary:hover,
body.owner-red-theme .icon-button:hover {
  background: #971e25;
}

body.owner-red-theme .panel,
body.owner-red-theme .metrics article,
body.owner-red-theme .team-status-dashboard .side-card {
  background: #fff;
}

body.owner-red-theme .nav a.active,
body.owner-red-theme .nav a:hover {
  border-color: #c72b32;
  color: #fff;
  background: #c72b32;
}

body.owner-red-theme .admin-hero {
  min-height: 360px;
  align-items: flex-end;
  background:
    linear-gradient(90deg, rgba(2, 7, 11, 0.92) 0%, rgba(3, 12, 18, 0.56) 48%, rgba(2, 8, 12, 0.16) 100%),
    url("assets/gerand-owner-driver.png?v=20260704") center 50% / cover no-repeat,
    #070b10;
  box-shadow: 0 18px 42px rgba(5, 10, 15, 0.3);
}

body.owner-red-theme .business-hero {
  background:
    linear-gradient(90deg, rgba(3, 7, 10, 0.9) 0%, rgba(5, 10, 14, 0.5) 48%, rgba(3, 7, 10, 0.2) 100%),
    url("assets/gerand-business-mercedes-landscape.png?v=20260704") center 54% / cover no-repeat;
}

body.owner-red-theme .admin-hero h2,
body.owner-red-theme .admin-hero .eyebrow,
body.owner-red-theme .admin-hero p {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(18, 166, 106, 0.12), transparent 34rem),
    linear-gradient(135deg, #f8fbff 0%, #eef7f6 48%, #fffaf0 100%);
}

body.modal-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.icon-sprite {
  display: none;
}

.hidden-section {
  display: none !important;
}

.timeline-tools,
.completed-files-tools,
.module-search-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.timeline-tools select,
.completed-files-tools input,
.completed-files-tools select,
.module-search-row input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
}

.completed-files-tools input,
.module-search-row input {
  flex: 1;
  min-width: 0;
}

.timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-left: auto;
}

.timeline-legend span {
  padding: 6px 9px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 900;
}

.timeline-legend .active { background: #e5e7eb; color: #334155; }
.timeline-legend .pending { background: #fef3c7; color: #92400e; }
.timeline-legend .submitted { background: #dcfce7; color: #166534; }
.timeline-legend .overdue { background: #fee2e2; color: #991b1b; }

.timeline-today-button,
.attendance-retry {
  min-height: 38px;
  border: 1px solid rgba(0, 76, 151, 0.2);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--blue);
  font-weight: 900;
  background: var(--white);
}

.attendance-retry {
  width: 100%;
  margin-top: 8px;
  color: #92400e;
  border-color: #f4cf76;
  background: #fff8e6;
}

.minutes-item.cancelled {
  border-color: #f2b8b5;
  background: #fff5f4;
}

.cancelled-note,
.request-review-reason,
.owner-info-updated {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.cancelled-note,
.request-review-reason {
  display: block;
  margin-top: 8px;
  color: var(--danger);
}

.owner-info-updated {
  margin: -8px 0 16px;
}

.login-screen {
  display: none;
}

.app-locked {
  overflow: hidden;
}

.app-locked .shell {
  display: none;
}

.app-locked .login-screen {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 420px);
  align-items: center;
  gap: 28px;
  min-height: 100vh;
  padding: 32px;
  background:
    radial-gradient(circle at 16% 20%, rgba(0, 167, 165, 0.36), transparent 30rem),
    radial-gradient(circle at 84% 12%, rgba(255, 255, 255, 0.14), transparent 24rem),
    linear-gradient(135deg, #003b73 0%, #005eb8 54%, #00a7a5 100%);
}

.login-visual {
  max-width: 700px;
  color: var(--white);
}

.login-visual .brand-mark {
  margin-bottom: 28px;
}

.login-visual .eyebrow {
  color: var(--yellow);
}

.login-visual h1 {
  max-width: 680px;
  margin-bottom: 18px;
  color: var(--white);
  font-family: Satoshi, Inter, Arial, sans-serif;
  font-size: clamp(2.7rem, 6vw, 6.2rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0;
}

.login-visual p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.8;
}

.login-card {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.login-card h2 {
  margin-bottom: 12px;
  font-size: 1.55rem;
}

.login-card label {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
}

.login-card input {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: var(--white);
}

.login-card input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 94, 184, 0.12);
}

.login-error {
  min-height: 20px;
  margin-bottom: 0;
  color: var(--danger);
  font-size: 0.85rem;
  font-weight: 700;
}

.shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 82px;
  padding: 14px 28px;
  color: var(--white);
  background: linear-gradient(90deg, var(--blue-dark), #0067b1 58%, #098b8d);
  box-shadow: 0 16px 38px rgba(0, 48, 135, 0.16);
}

.brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
  box-shadow: inset 0 -4px 0 rgba(0, 94, 184, 0.15);
}

.brand-mark img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.02rem;
}

.brand small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.77rem;
}

.nav {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  text-decoration: none;
}

.nav a.active,
.nav a:hover {
  color: var(--blue-dark);
  background: var(--white);
}

.nav a.disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.nav a.disabled:hover {
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
}

svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: 0 0 auto;
}

.side-card {
  position: static;
  flex: 0 0 190px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.side-card.has-tasks {
  cursor: pointer;
}

.side-card.has-tasks:hover,
.side-card.has-tasks:focus {
  border-color: rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.2);
  outline: none;
}

.side-card span,
.side-card small {
  display: block;
  color: rgba(255, 255, 255, 0.75);
}

.side-card strong {
  display: block;
  margin: 3px 0 2px;
  font-size: 1.28rem;
}

.side-card.complete {
  border-color: rgba(247, 201, 72, 0.72);
  background: rgba(18, 166, 106, 0.24);
}

.main {
  min-width: 0;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(620px, 100%);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(1.7rem, 2.6vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1.25rem;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.global-search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 90;
  max-height: min(460px, 65vh);
  overflow-y: auto;
  padding: 7px;
  border: 1px solid #c9d6e4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(16, 35, 63, 0.18);
}

.global-search-results button {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 3px 10px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  text-align: left;
  background: transparent;
}

.global-search-results button:hover,
.global-search-results button:focus-visible {
  background: #eef5fb;
}

.global-search-results button > span {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.global-search-results button strong { color: #102f52; font-size: 0.85rem; }
.global-search-results button small { color: var(--muted); font-size: 0.72rem; }
.global-search-results > p { margin: 0; padding: 18px 12px; color: var(--muted); text-align: center; }

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.user-badge {
  display: grid;
  min-height: 48px;
  min-width: 150px;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid rgba(18, 166, 106, 0.3);
  border-radius: 8px;
  color: var(--blue-dark);
  background: #dcf7eb;
}

.user-badge span,
.user-badge strong,
.user-badge small {
  display: block;
  overflow: hidden;
  max-width: 190px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-badge span {
  color: #075d3e;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.user-badge strong {
  font-size: 0.76rem;
}

.user-badge small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.user-badge.owner {
  border-color: rgba(247, 201, 72, 0.62);
  background: #fff7d6;
}

.user-badge.owner span {
  color: #8a6100;
}

.user-badge.finance-access {
  border-color: rgba(18, 166, 106, 0.38);
  background: #dcf7eb;
}

.user-badge.finance-access small {
  color: #075d3e;
}

.logout-button {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue-dark);
  font-weight: 800;
  background: var(--white);
}

.logout-button:hover {
  color: var(--white);
  border-color: var(--blue);
  background: var(--blue);
}

.dashboard-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.dashboard-switch[hidden],
.admin-dashboard[hidden],
.business-dashboard[hidden] {
  display: none;
}

.notification-button { position: relative; width: 42px; height: 42px; border: 1px solid #cfdeec; border-radius: 50%; background: #fff; color: #0c2340; display: grid; place-items: center; cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.notification-button:hover { transform: translateY(-2px); border-color: #007dba; background: #f2f9ff; }
.notification-button svg { width: 20px; height: 20px; fill: currentColor; }
.notification-button span { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border: 2px solid #fff; border-radius: 12px; display: grid; place-items: center; background: #d92d20; color: #fff; font-size: 10px; font-weight: 900; }
.notification-modal { max-width: none; background: #f4f8fc; }
.notification-modal > * { width: min(100%, 780px); }
.notification-head { padding-bottom: 18px; border-bottom: 1px solid #d8e5f2; }
.notification-head h2 { margin-bottom: 4px; }
.notification-subtitle { margin: 0; color: #64748b; font-size: 14px; }
.notification-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.notification-summary > div { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 9px; padding: 13px 15px; border: 1px solid #d8e5f2; border-radius: 7px; background: #fff; }
.notification-summary strong { color: #0c2340; font-size: 19px; }
.notification-summary small { color: #64748b; font-weight: 700; }
.summary-dot { width: 9px; height: 9px; border-radius: 50%; }
.summary-dot.urgent { background: #d92d20; box-shadow: 0 0 0 4px #fee4e2; }
.summary-dot.watch { background: #d97706; box-shadow: 0 0 0 4px #fef0c7; }
.notification-filters { display: flex; gap: 6px; margin-top: 16px; padding-bottom: 14px; border-bottom: 1px solid #d8e5f2; overflow-x: auto; }
.notification-filters button { min-height: 34px; padding: 0 13px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #64748b; font-weight: 800; cursor: pointer; white-space: nowrap; }
.notification-filters button:hover { background: #eaf3fb; color: #0c2340; }
.notification-filters button.active { border-color: #0c5ca8; background: #0c5ca8; color: #fff; }
.notification-list { display: grid; gap: 18px; margin-top: 18px; padding-bottom: 30px; }
.activity-list, .backup-list, .account-list, .attendance-admin-list { display: grid; gap: 8px; margin-top: 14px; }
.notification-group { display: grid; gap: 8px; }
.notification-group-title { display: flex; align-items: center; justify-content: space-between; padding: 0 2px; color: #475467; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.notification-group-title strong { min-width: 24px; height: 22px; padding: 0 7px; border-radius: 11px; display: grid; place-items: center; background: #e7eef6; color: #344054; font-size: 11px; }
.notification-item, .activity-item, .backup-item, .account-item, .attendance-admin-item { padding: 12px; border: 1px solid #d8e5f2; border-radius: 6px; background: #f8fbff; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.notification-item { display: grid; width: 100%; grid-template-columns: 42px minmax(0, 1fr) auto; min-height: 74px; padding: 13px 15px; border-left-width: 3px; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.notification-item:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(12, 35, 64, .07); }
.notification-item:focus-visible { outline: 3px solid rgba(17, 93, 176, .28); outline-offset: 2px; }
.notification-item.urgent { border-color: #f3b4ae; border-left-color: #d92d20; background: #fffafa; }
.notification-item.watch { border-left-color: #d97706; }
.notification-icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #eaf3fb; color: #0c5ca8; }
.notification-item.urgent .notification-icon { background: #fee4e2; color: #b42318; }
.notification-icon svg { width: 18px; height: 18px; fill: currentColor; }
.notification-copy { min-width: 0; display: grid; gap: 3px; }
.notification-copy strong, .activity-item strong, .account-item strong { display: block; color: #0c2340; font-size: 14px; }
.notification-copy span { overflow: hidden; color: #344054; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.notification-copy small, .activity-item small, .backup-item small, .account-item small { color: #667085; font-size: 12px; }
.notification-label { padding: 5px 8px; border-radius: 4px; background: #eef4f9; color: #475467; font-size: 10px; font-weight: 900; text-transform: uppercase; white-space: nowrap; }
.notification-item.urgent .notification-label { background: #fee4e2; color: #b42318; }
.notification-target-highlight { animation: notificationTargetPulse 2.4s ease; }
@keyframes notificationTargetPulse { 0%, 100% { box-shadow: none; } 20%, 65% { box-shadow: 0 0 0 4px rgba(17, 93, 176, .24), 0 12px 28px rgba(12, 35, 64, .14); } }
.notification-empty { min-height: 230px; display: grid; place-items: center; align-content: center; gap: 8px; color: #667085; text-align: center; }
.notification-empty svg { width: 42px; height: 42px; padding: 10px; border-radius: 50%; background: #dff5eb; fill: #007d5c; }
.notification-empty strong { color: #0c2340; font-size: 17px; }
.action-confirm-overlay { position: fixed; inset: 0; z-index: 120; padding: 20px; display: grid; place-items: center; background: rgba(6, 24, 44, .58); backdrop-filter: blur(4px); }
.action-confirm-overlay[hidden] { display: none; }
.action-confirm-dialog { width: min(100%, 480px); padding: 24px; border: 1px solid #d8e5f2; border-radius: 8px; background: #fff; box-shadow: 0 24px 70px rgba(6, 24, 44, .28); animation: confirm-in .18s ease-out; }
.action-confirm-icon { width: 46px; height: 46px; margin-bottom: 16px; border-radius: 50%; display: grid; place-items: center; background: #fee4e2; color: #b42318; }
.action-confirm-icon svg { width: 22px; height: 22px; fill: currentColor; }
.action-confirm-copy h2 { margin: 3px 0 8px; color: #0c2340; font-size: 22px; }
.action-confirm-copy > p:not(.eyebrow) { margin: 0; color: #667085; line-height: 1.55; }
.action-confirm-detail { margin-top: 15px; padding: 12px 14px; border-left: 3px solid #d92d20; border-radius: 4px; background: #fff7f6; color: #344054; font-size: 13px; font-weight: 700; white-space: pre-line; }
.action-confirm-reason { display: grid; gap: 7px; margin-top: 16px; color: #344054; font-size: 13px; font-weight: 800; }
.action-confirm-reason textarea { width: 100%; resize: vertical; border: 1px solid #cbd8e6; border-radius: 6px; padding: 10px 12px; font: inherit; font-weight: 500; color: #0c2340; outline: none; }
.action-confirm-reason textarea:focus { border-color: #0c5ca8; box-shadow: 0 0 0 3px rgba(12, 92, 168, .12); }
.action-confirm-reason small { min-height: 16px; color: #b42318; font-weight: 700; }
.action-confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 22px; }
.action-confirm-actions button { min-height: 42px; justify-content: center; }
@keyframes confirm-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.owner-tools-panel { align-self: start; }
.account-form { display: grid; grid-template-columns: minmax(180px, 1.4fr) minmax(140px, 1fr) minmax(180px, 1fr) auto auto; gap: 8px; align-items: center; }
.account-form input, .account-form select { min-height: 42px; border: 1px solid #cbd8e6; border-radius: 6px; padding: 0 10px; background: #fff; }
.account-active { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.account-item button { border: 0; background: #e7f0f8; color: #0c2340; padding: 8px 10px; border-radius: 5px; cursor: pointer; }
.account-item .danger-action { background: #d92d20; color: #fff; }
.owner-tool-actions, .saved-item-actions { display: flex; align-items: center; gap: 7px; }
.saved-item-actions .danger-action, .attendance-admin-item .danger-action { min-height: 34px; padding: 0 10px; }
.attendance-admin-item div { min-width: 0; }
.attendance-admin-item strong { display: block; color: #0c2340; }
.attendance-admin-item small { display: block; color: #667085; }

@media (max-width: 900px) {
  .account-form { grid-template-columns: 1fr; }
  .activity-item, .backup-item, .account-item, .attendance-admin-item { align-items: flex-start; flex-direction: column; }
  .notification-item { grid-template-columns: 38px minmax(0, 1fr); }
  .notification-label { grid-column: 2; justify-self: start; }
}

@media (max-width: 560px) {
  .notification-summary { grid-template-columns: 1fr; }
  .notification-modal { padding: 20px 14px; }
  .notification-copy span { white-space: normal; }
  .notification-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; overflow: visible; }
  .notification-filters button { padding: 0 5px; font-size: 12px; }
  .action-confirm-overlay { padding: 14px; align-items: end; }
  .action-confirm-dialog { padding: 20px; }
  .action-confirm-actions { grid-template-columns: 1fr; }
}

.dashboard-switch button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 800;
  background: transparent;
}

.dashboard-switch button.active {
  color: var(--white);
  background: var(--blue);
}

.dashboard-switch button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.dashboard-view {
  display: none;
}

.dashboard-view.active {
  display: block;
}

.dashboard-view.modal-host-active {
  display: block;
}

body.view-only #addTaskButton,
body.view-only #quickAddTask,
body.view-only #taskCleanTrigger,
body.view-only #taskForm,
body.view-only #minutesForm,
body.view-only #requestForm,
body.view-only #stockAddButton,
body.view-only #stockEditForm,
body.view-only #financialFormToggle,
body.view-only #financialRecordForm,
body.view-only [data-brand-note-form],
body.view-only .task-delete,
body.view-only .stock-delete-button,
body.view-only .table-delete-button,
body.view-only .saved-result-delete,
body.view-only .table-edit-button,
body.view-only .financial-record-item .financial-record-edit,
body.view-only .admin-cancel-task-button,
body.view-only .approve-task-button,
body.view-only .revision-task-button {
  display: none !important;
}

body.view-only .editable-stock-row {
  cursor: default;
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(320px, 1.12fr);
  gap: 22px;
  align-items: stretch;
  min-height: 370px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue) 48%, var(--teal));
  box-shadow: var(--shadow);
}

.hero-copy {
  align-self: center;
  padding: 34px;
  color: var(--white);
}

.hero-copy h2 {
  max-width: 620px;
  margin: 18px 0 14px;
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 0.96;
}

.hero-copy p {
  max-width: 570px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.pill,
.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.pill {
  color: var(--blue-dark);
  background: var(--yellow);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.primary,
.secondary,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
}

.primary {
  padding: 0 17px;
  color: var(--white);
  background: var(--green);
}

.secondary {
  padding: 0 17px;
  color: var(--blue-dark);
  background: var(--white);
}

.hero-media {
  position: relative;
  min-height: 320px;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue) 48%, var(--teal));
}

.hero-media::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 59, 115, 0.34) 0%, rgba(0, 94, 184, 0.16) 42%, rgba(0, 167, 165, 0.08) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 59, 115, 0.08));
  pointer-events: none;
}

.hero-media::after {
  display: none;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.08) brightness(1.02) contrast(1.12);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metrics article,
.panel {
  border: 1px solid rgba(217, 226, 239, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(23, 32, 51, 0.06);
}

.metrics article {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.metrics svg {
  color: var(--blue);
}

.metrics span,
.finance-summary span,
.timeline span,
.attendance-card p {
  color: var(--muted);
}

.metrics strong {
  font-size: 1.45rem;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.15fr) minmax(290px, 0.85fr);
  gap: 18px;
}

.panel {
  padding: 20px;
}

.task-panel {
  order: -2;
}

.task-clean-trigger {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 18px;
  border: 1px solid rgba(0, 76, 151, 0.16);
  border-radius: 8px;
  color: var(--ink);
  text-align: left;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(238, 248, 255, 0.9));
  box-shadow: 0 14px 30px rgba(0, 76, 151, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.task-clean-trigger:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 76, 151, 0.34);
  box-shadow: 0 18px 36px rgba(0, 76, 151, 0.14);
}

.task-clean-trigger span {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.task-clean-trigger strong {
  font-size: 1.08rem;
}

.task-content[hidden] {
  display: none;
}

.task-content {
  display: grid;
  gap: 14px;
}

.dashboard-info {
  order: -3;
  grid-column: 1 / -1;
}

#attendance {
  order: -1;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.icon-button {
  width: 42px;
  color: var(--white);
  background: var(--blue);
}

.task-form {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.75fr 0.72fr;
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 16px;
}

.task-form input,
.task-form select,
.task-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: var(--white);
}

.task-form input,
.task-form select {
  height: 44px;
  padding: 0 12px;
}

.task-form textarea {
  grid-column: 1 / -1;
  min-height: 76px;
  padding: 12px;
  resize: vertical;
}

.task-pic-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 6px;
  min-width: 0;
}

.task-form .task-pic-add {
  grid-column: auto;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 900;
  background: var(--blue);
}

.task-pic-list {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 5px;
}

.task-pic-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 5px 7px;
  border-radius: 6px;
  color: var(--blue-dark);
  font-size: 0.7rem;
  font-weight: 800;
  background: #e9f3ff;
}

.task-form .task-pic-remove {
  grid-column: auto;
  width: 20px;
  min-height: 20px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: var(--white);
  font-size: 0.7rem;
  background: var(--danger);
}

.task-form button {
  grid-column: 1 / -1;
}

.task-form small {
  grid-column: 1 / -1;
  color: var(--muted);
  line-height: 1.5;
}

.task-list {
  display: grid;
  gap: 10px;
}

.task-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.task-item.pending {
  border-color: rgba(247, 201, 72, 0.55);
  background: #fffaf0;
}

.task-item.approved {
  border-color: rgba(0, 125, 92, 0.18);
  background: #f5fbf8;
}

.task-item.done {
  opacity: 0.64;
}

.task-check {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: transparent;
  background: var(--white);
}

.task-item.done .task-check {
  color: var(--white);
  border-color: var(--green);
  background: var(--green);
}

.task-check:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.task-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.task-item p {
  margin-bottom: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.task-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--blue-dark);
  font-size: 0.76rem;
  font-weight: 800;
  background: #e9f3ff;
}

.deadline-badge {
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.deadline-badge.pending {
  color: #7a5300;
  background: #fff0c2;
}

.deadline-badge.active {
  color: var(--blue-dark);
  background: #e9f3ff;
}

.deadline-badge.done {
  color: #075d3e;
  background: #dcf7eb;
}

.deadline-badge.overdue {
  color: #8f211a;
  background: #ffd8d4;
}

.task-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.task-delete {
  display: grid;
  width: 32px;
  height: 32px;
  min-height: 32px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 900;
  background: var(--danger);
}

.task-delete:hover {
  background: #b9332e;
}

.app-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  max-width: min(360px, calc(100vw - 32px));
  padding: 13px 16px;
  border-radius: 8px;
  color: var(--white);
  font-weight: 800;
  background: var(--blue-dark);
  box-shadow: 0 18px 42px rgba(12, 35, 64, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.app-toast.success {
  background: var(--green);
}

.app-toast.danger {
  background: var(--danger);
}

.status-chip {
  color: var(--blue-dark);
  background: #e9f3ff;
}

.status-chip.positive {
  color: #075d3e;
  background: #dcf7eb;
}

.attendance-card {
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #eef8ff, #edfbf5);
}

.attendance-now {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.attendance-now div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(0, 94, 184, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.attendance-now span {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
}

.attendance-now strong {
  color: var(--blue-dark);
  font-size: 0.98rem;
  line-height: 1.25;
}

.attendance-timer {
  display: grid;
  gap: 5px;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid rgba(0, 94, 184, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.attendance-timer span,
.attendance-timer em,
.attendance-timer small {
  color: var(--muted);
}

.attendance-timer span {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.attendance-timer strong {
  color: var(--blue-dark);
  font-size: 2rem;
  line-height: 1;
}

.attendance-timer em {
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 700;
}

.attendance-timer small {
  line-height: 1.45;
}

.avatar-stack {
  display: flex;
  margin-bottom: 18px;
}

.avatar-stack span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-right: -8px;
  border: 2px solid var(--white);
  border-radius: 50%;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--blue);
}

.avatar-stack span:nth-child(2) {
  background: var(--green);
}

.avatar-stack span:nth-child(3) {
  background: var(--teal);
}

.avatar-stack span:nth-child(4) {
  color: var(--blue-dark);
  background: var(--yellow);
}

.wide {
  width: 100%;
}

.timeline {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 12px;
  border-left: 3px solid var(--green);
  border-radius: 0 8px 8px 0;
  background: var(--soft);
}

.timeline-item.urgent {
  border-left-color: var(--danger);
}

.timeline time {
  color: var(--blue-dark);
  font-size: 0.8rem;
  font-weight: 800;
}

.timeline strong,
.timeline span {
  display: block;
}

.finance-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.94)),
    linear-gradient(135deg, rgba(247, 201, 72, 0.24), rgba(0, 167, 165, 0.16));
}

.app-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  overflow-y: auto;
  padding: 34px;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 167, 165, 0.2), transparent 28rem),
    linear-gradient(135deg, #f8fbff 0%, #eef8ff 52%, #edfbf5 100%);
}

.app-modal.open {
  display: block;
}

.app-modal > * {
  max-width: 1100px;
  margin-right: auto;
  margin-left: auto;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue-dark);
  font-weight: 800;
  background: var(--white);
}

.modal-close:hover {
  color: var(--white);
  border-color: var(--blue);
  background: var(--blue);
}

.timeline-panel {
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 76, 151, 0.18), transparent 28rem),
    linear-gradient(135deg, #f8fbff 0%, #eef8ff 48%, #effbf6 100%);
}

.timeline-month {
  min-width: 148px;
  color: var(--blue-dark);
  font-size: 1rem;
  text-align: center;
}

.timeline-nav-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue-dark);
  font-size: 1.35rem;
  font-weight: 900;
  background: var(--white);
  cursor: pointer;
}

.timeline-nav-button:hover {
  color: var(--white);
  border-color: var(--blue);
  background: var(--blue);
}

.calendar-shell,
.timeline-board {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(0, 76, 151, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 42px rgba(0, 76, 151, 0.08);
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-weekdays {
  margin-bottom: 8px;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  min-height: 84px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.calendar-day.blank {
  border-color: transparent;
  background: transparent;
}

.calendar-day span {
  display: block;
  color: var(--blue-dark);
  font-weight: 900;
}

.calendar-day small {
  display: inline-flex;
  margin-top: 12px;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 900;
  background: var(--green);
}

.calendar-day.today {
  border-color: rgba(0, 76, 151, 0.42);
  box-shadow: inset 0 0 0 2px rgba(0, 76, 151, 0.12);
}

.calendar-day.has-items {
  background: linear-gradient(180deg, rgba(0, 76, 151, 0.1), rgba(0, 167, 165, 0.1));
  cursor: pointer;
}

.calendar-day.has-items:hover,
.calendar-day.has-items:focus {
  border-color: rgba(0, 76, 151, 0.42);
  box-shadow: 0 12px 24px rgba(0, 76, 151, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.compact-head {
  margin-bottom: 14px;
}

.timeline-list {
  display: grid;
  gap: 12px;
}

.timeline-list-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.timeline-list-item:hover,
.timeline-list-item:focus {
  border-color: rgba(0, 76, 151, 0.32);
  box-shadow: 0 12px 24px rgba(0, 76, 151, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.timeline-list-item time {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
}

.timeline-list-item span {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-list-item strong {
  display: block;
  margin-top: 4px;
  color: var(--blue-dark);
  font-size: 1.05rem;
}

.timeline-list-item p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.timeline-task-delete {
  align-self: start;
}

.calendar-day.has-items.deadline-overdue,
.timeline-list-item.task-status-overdue,
.info-task-item.task-status-overdue {
  border-color: rgba(210, 55, 46, 0.48);
  background: #ffe3e0;
}

.calendar-day.has-items.task-submitted,
.timeline-list-item.task-status-submitted,
.info-task-item.task-status-submitted {
  border-color: rgba(0, 125, 92, 0.42);
  background: #dff7ea;
}

.calendar-day.has-items.task-pending,
.calendar-day.has-items.task-incomplete,
.timeline-list-item.task-status-pending,
.timeline-list-item.task-status-active {
  border-color: #aeb7c2;
  background: #e9edf1;
}

.calendar-day.deadline-overdue small {
  background: var(--danger);
}

.calendar-day.task-submitted small {
  background: var(--green);
}

.calendar-day.task-pending small,
.calendar-day.task-incomplete small {
  background: #6b7785;
}

.timeline-list-item.task-status-overdue time,
.timeline-list-item.task-status-overdue span,
.timeline-list-item.task-status-overdue strong,
.info-task-item.task-status-overdue strong {
  color: #8f211a;
}

.timeline-list-item.task-status-submitted time,
.timeline-list-item.task-status-submitted span,
.timeline-list-item.task-status-submitted strong,
.info-task-item.task-status-submitted strong {
  color: #075d3e;
}

.timeline-list-item.task-status-pending time,
.timeline-list-item.task-status-pending span,
.timeline-list-item.task-status-pending strong,
.timeline-list-item.task-status-active time,
.timeline-list-item.task-status-active span,
.timeline-list-item.task-status-active strong {
  color: #4b5563;
}

.completed-files-panel {
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 76, 151, 0.16), transparent 28rem),
    linear-gradient(135deg, #f8fbff 0%, #eef8ff 52%, #effbf6 100%);
}

.completed-files-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.completed-file-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 24px rgba(0, 76, 151, 0.08);
}

.completed-file-label {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.completed-file-item h3 {
  margin: 0 0 6px;
  color: var(--blue-dark);
  font-size: 1.05rem;
}

.completed-file-item p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.5;
}

.completed-file-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.minutes-panel {
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 76, 151, 0.14), transparent 28rem),
    linear-gradient(135deg, #f8fbff 0%, #eef8ff 52%, #effbf6 100%);
}

.requests-panel {
  background:
    radial-gradient(circle at 82% 12%, rgba(0, 158, 73, 0.14), transparent 24rem),
    linear-gradient(135deg, #f8fbff 0%, #eef8ff 46%, #f5fbff 100%);
}

.minutes-form {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 12px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(0, 76, 151, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.request-form {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 12px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(0, 76, 151, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
}

.minutes-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.request-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.minutes-form label:nth-child(3),
.minutes-form button,
.minutes-form small {
  grid-column: 1 / -1;
}

.request-form label:nth-child(3),
.request-form label:nth-child(4),
.request-form button,
.request-form small {
  grid-column: 1 / -1;
}

.minutes-form span {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.request-form span {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.minutes-form input,
.minutes-form textarea,
.request-form input,
.request-form select,
.request-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
}

.minutes-form input,
.request-form input,
.request-form select {
  min-height: 44px;
  padding: 0 12px;
}

.minutes-form textarea,
.request-form textarea {
  min-height: 120px;
  padding: 12px;
  resize: vertical;
}

.minutes-form small,
.request-form small {
  color: var(--muted);
  font-weight: 700;
}

.minutes-list,
.request-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.minutes-item,
.request-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.minutes-item span,
.minutes-item small,
.request-item small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.minutes-item h3,
.request-item h3 {
  margin: 6px 0;
  color: var(--blue-dark);
  font-size: 1.05rem;
}

.minutes-item p,
.request-item p {
  margin: 0 0 10px;
  color: var(--ink);
  line-height: 1.6;
  white-space: pre-wrap;
}

.request-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.request-meta > span:not(.status-chip) {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.request-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.request-status-button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
}

.request-status-button.approve {
  background: var(--green);
}

.request-status-button.reject {
  background: #d92d20;
}

.request-status-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.open-file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  font-weight: 900;
  background: var(--blue);
  text-decoration: none;
}

.drive-pdf-link {
  background: var(--green);
}

.open-file-button:hover {
  transform: translateY(-1px);
  filter: brightness(0.96);
  box-shadow: 0 12px 22px rgba(0, 76, 151, 0.18);
}

.info-panel,
.stock-panel {
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 167, 165, 0.18), transparent 26rem),
    linear-gradient(135deg, #f8fbff 0%, #eef8ff 52%, #edfbf5 100%);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.info-grid article,
.stock-summary article,
.stock-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

#brandStock .stock-row {
  grid-template-columns: 1.1fr 0.9fr 0.65fr 0.45fr 0.8fr 0.7fr 0.7fr 38px;
}

#brandSuppliesStock .stock-row {
  grid-template-columns: 1.15fr 0.9fr 0.8fr 0.5fr 0.75fr 0.75fr 38px;
}

.stock-hpp {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
}

.info-grid article {
  padding: 18px;
}

.info-grid span,
.stock-summary span {
  display: block;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.info-grid strong,
.stock-summary strong {
  display: block;
  margin-top: 8px;
  font-size: 1.2rem;
}

.info-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.owner-info-editor {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(0, 76, 151, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 42px rgba(0, 76, 151, 0.08);
}

.owner-info-editor[hidden] {
  display: none;
}

.owner-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.owner-info-grid label {
  display: grid;
  gap: 8px;
}

.owner-info-grid span {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.owner-info-grid input,
.owner-info-grid textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  outline: none;
}

.owner-info-grid input {
  min-height: 44px;
  padding: 0 12px;
}

.owner-info-grid textarea {
  min-height: 94px;
  padding: 12px;
  resize: vertical;
}

.owner-info-grid input:focus,
.owner-info-grid textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 76, 151, 0.12);
}

.owner-info-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.owner-info-actions span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.owner-delete-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.danger-action {
  min-height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  font-weight: 900;
  background: var(--danger);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.danger-action:hover {
  transform: translateY(-1px);
  filter: brightness(0.96);
  box-shadow: 0 12px 22px rgba(210, 55, 46, 0.2);
}

.info-task-section {
  margin-top: 22px;
}

.info-task-list {
  display: grid;
  gap: 10px;
}

.info-task-item,
.empty-info {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.info-task-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.info-task-item:hover,
.info-task-item:focus {
  border-color: rgba(0, 76, 151, 0.32);
  box-shadow: 0 12px 24px rgba(0, 76, 151, 0.1);
  transform: translateY(-1px);
  outline: none;
}

.info-task-item strong,
.info-task-item span,
.info-task-item small {
  display: block;
}

.info-task-item span,
.info-task-item small,
.empty-info {
  color: var(--muted);
}

.info-task-item small {
  margin-top: 8px;
  color: var(--blue);
  font-weight: 900;
}

.info-task-item strong {
  margin-bottom: 7px;
}

.dashboard-task-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.stock-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.stock-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.brand-stock-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
  padding: 6px;
  border: 1px solid rgba(0, 76, 151, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.brand-stock-choice {
  display: grid;
  gap: 4px;
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.brand-stock-choice:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 76, 151, 0.22);
  background: #f1f7ff;
}

.brand-stock-choice.active {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 10px 22px rgba(0, 76, 151, 0.16);
}

.brand-stock-choice span {
  font-weight: 900;
}

.brand-stock-choice strong {
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.82;
}

.brand-stock-group {
  display: none;
}

.brand-stock-group.active {
  display: block;
}

.stock-choice {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(0, 76, 151, 0.16);
  border-radius: 8px;
  color: var(--ink);
  text-align: left;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 30px rgba(0, 76, 151, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.stock-choice:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 76, 151, 0.36);
  box-shadow: 0 18px 36px rgba(0, 76, 151, 0.14);
}

.stock-choice.active {
  color: var(--white);
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.stock-choice.disabled,
.stock-choice:disabled {
  cursor: not-allowed;
  opacity: 0.46;
  transform: none;
  box-shadow: none;
}

.stock-add-button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--green));
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.stock-add-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 12px 24px rgba(0, 76, 151, 0.16);
}

.stock-choice span {
  font-weight: 900;
}

.stock-choice strong {
  font-size: 0.86rem;
  font-weight: 700;
}

.stock-view {
  display: none;
}

.stock-view.active {
  display: block;
}

.stock-summary article {
  padding: 18px;
}

.stock-table {
  display: grid;
  gap: 10px;
}

.stock-row {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 0.8fr 0.5fr 0.75fr 0.75fr 38px;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.editable-stock-row {
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.editable-stock-row:hover,
.editable-stock-row:focus {
  transform: translateY(-1px);
  border-color: rgba(0, 76, 151, 0.28);
  background: #f8fbff;
  box-shadow: 0 12px 24px rgba(0, 76, 151, 0.1);
  outline: none;
}

.stock-head {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  background: #e9f3ff;
}

.stock-row strong {
  color: #075d3e;
}

.stock-row.warning strong {
  color: var(--danger);
}

.stock-row.safe strong {
  color: var(--green);
}

.stock-delete-button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 900;
  background: var(--danger);
  cursor: pointer;
  justify-self: end;
}

.stock-delete-button:hover,
.stock-delete-button:focus {
  filter: brightness(0.96);
  outline: 2px solid rgba(225, 73, 66, 0.24);
  outline-offset: 2px;
}

.stock-edit-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid rgba(0, 76, 151, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 42px rgba(0, 76, 151, 0.08);
}

.stock-edit-form[hidden] {
  display: none;
}

.stock-edit-form .panel-head,
.stock-edit-form small {
  grid-column: 1 / -1;
}

.stock-edit-form label {
  display: grid;
  gap: 8px;
}

.stock-edit-form label span {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stock-edit-form input,
.stock-edit-form select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
  outline: none;
}

.stock-edit-form input:focus,
.stock-edit-form select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 76, 151, 0.12);
}

.stock-edit-form button {
  align-self: end;
}

.stock-edit-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  font-weight: 900;
  background: var(--danger);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.stock-edit-close:hover {
  transform: translateY(-1px);
  filter: brightness(0.96);
  box-shadow: 0 12px 22px rgba(210, 55, 46, 0.2);
}

.stock-edit-form small {
  color: var(--muted);
  font-weight: 700;
}

.finance-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.finance-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.finance-choice {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(0, 76, 151, 0.16);
  border-radius: 8px;
  color: var(--ink);
  text-align: left;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 30px rgba(0, 76, 151, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.finance-choice:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 76, 151, 0.36);
  box-shadow: 0 18px 36px rgba(0, 76, 151, 0.14);
}

.finance-choice.active {
  color: var(--white);
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.finance-choice.disabled,
.finance-choice:disabled {
  cursor: not-allowed;
  opacity: 0.46;
  transform: none;
  box-shadow: none;
}

.finance-choice span {
  font-weight: 900;
}

.finance-choice strong {
  font-size: 0.86rem;
  font-weight: 700;
}

.finance-view {
  display: none;
}

.finance-view.active {
  display: block;
}

.financial-module {
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid rgba(0, 76, 151, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 42px rgba(0, 76, 151, 0.08);
}

.finance-balance {
  display: grid;
  gap: 4px;
  min-width: 160px;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.finance-balance span {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.finance-balance strong {
  font-size: 1.1rem;
}

.finance-balance.negative-balance {
  background: linear-gradient(135deg, #b91c1c, #ef4444);
  box-shadow: 0 18px 42px rgba(185, 28, 28, 0.22);
}

.financial-record-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.financial-record-form[hidden] {
  display: none;
}

.financial-record-form [hidden] {
  display: none;
}

.financial-form-toggle-card {
  width: 100%;
  margin-top: 14px;
}

.financial-record-form label,
.transaction-type-group,
.production-payment-group {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.financial-record-form label span,
.transaction-type-group legend,
.production-payment-group legend {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.financial-record-form input,
.financial-record-form select,
.financial-record-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
  outline: none;
}

.financial-record-form textarea {
  min-height: 88px;
  padding: 12px;
  resize: vertical;
}

.financial-record-form input:focus,
.financial-record-form select:focus,
.financial-record-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 76, 151, 0.12);
}

.transaction-type-group,
.production-payment-group {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: end;
  margin: 0;
  border: 0;
  padding: 0;
}

.transaction-type-group legend,
.production-payment-group legend {
  grid-column: 1 / -1;
}

.transaction-type-group label,
.production-payment-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.transaction-type-group input,
.production-payment-group input {
  width: auto;
  min-height: auto;
  accent-color: var(--blue);
}

.financial-description-field {
  grid-column: span 2;
}

.production-record-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.production-record-fields[hidden] {
  display: none;
}

.production-wide {
  grid-column: 1 / -1;
}

.financial-proof-field {
  grid-column: 1 / -1;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f7fbff;
}

.financial-proof-field input[type="file"] {
  padding: 9px;
  background: var(--white);
}

.payment-proof-link {
  display: inline-flex;
  width: max-content;
  margin-top: 6px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: underline;
}

.customer-information-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbff;
}

.customer-information-form label { display: grid; gap: 7px; min-width: 0; }
.customer-information-form label span { color: var(--blue-dark); font-size: .76rem; font-weight: 900; text-transform: uppercase; }
.customer-information-form input { width: 100%; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); }
.customer-information-form input:focus { border-color: var(--blue); outline: 0; box-shadow: 0 0 0 4px rgba(0, 76, 151, .12); }
.customer-information-form button { align-self: end; min-height: 44px; }
.customer-information-form small { grid-column: 1 / -1; color: var(--muted); font-weight: 700; }
.customer-sheet-wrap { overflow: auto; border: 1px solid var(--line); background: var(--white); }
.customer-sheet-table { width: 100%; min-width: 920px; border-collapse: collapse; font-size: .86rem; }
.customer-sheet-table th { position: sticky; top: 0; z-index: 1; padding: 11px 12px; border: 1px solid #cbd8e6; background: #edf4fb; color: var(--blue-dark); text-align: left; }
.customer-sheet-table td { padding: 10px 12px; border: 1px solid #d8e3ee; color: var(--ink); }
.customer-sheet-table tbody tr:nth-child(even) { background: #f8fbfe; }
.customer-sheet-table tbody tr:hover { background: #eef7ff; }
.customer-row-actions { display: flex; gap: 7px; align-items: center; }
.customer-edit-button,
.customer-delete-button { min-height: 34px; padding: 0 10px; border: 0; border-radius: 6px; color: #fff; font-weight: 900; cursor: pointer; }
.customer-edit-button { background: var(--blue); }
.customer-delete-button { background: var(--red); }

@media (max-width: 1120px) {
  .customer-information-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .customer-information-form { grid-template-columns: 1fr; }
}

.production-record-fields input[readonly] {
  background: #eef6ff;
  color: var(--blue-dark);
  font-weight: 900;
}

.financial-record-form button {
  align-self: end;
}

.financial-record-form small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 700;
}

.financial-record-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.financial-record-list[hidden] {
  display: none;
}

.production-toggle-card {
  width: 100%;
  margin-top: 14px;
}

.financial-record-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 13px;
  padding-right: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.financial-record-item strong,
.financial-record-item span,
.financial-record-item small {
  display: block;
}

.financial-record-item strong {
  color: var(--ink);
}

.financial-record-item span,
.financial-record-item small {
  color: var(--muted);
}

.production-record-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.production-record-detail-grid span {
  min-height: 54px;
  padding: 9px;
  border: 1px solid rgba(0, 76, 151, 0.1);
  border-radius: 8px;
  background: #f8fbff;
  color: var(--ink);
}

.production-record-detail-grid b {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.production-record-detail-grid .production-payment-status.pending-payment {
  border-color: rgba(247, 201, 72, 0.65);
  color: #5f4200;
  background: #fff4bd;
}

.production-record-detail-grid .production-payment-status.pending-payment b {
  color: #8a5f00;
}

.production-record-detail-grid .production-payment-status.paid-payment {
  border-color: rgba(22, 101, 52, 0.22);
  background: #eefbf3;
}

.financial-record-amount {
  font-weight: 900;
  text-align: right;
}

.financial-record-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.brand-summary-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.financial-record-delete,
.financial-record-edit,
.secondary-action {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
  background: var(--danger);
  cursor: pointer;
}

.financial-record-delete.saved-result-delete {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  place-items: center;
  padding: 0;
  font-size: 0.82rem;
}

.financial-record-edit,
.secondary-action {
  background: var(--green);
}

.brand-inline-edit {
  background: var(--blue);
}

.secondary-action {
  width: max-content;
  min-height: 40px;
  padding: 0 16px;
  justify-self: start;
}

.secondary-action[hidden] {
  display: none;
}

.financial-record-delete:hover,
.financial-record-edit:hover,
.secondary-action:hover {
  filter: brightness(0.96);
}

.financial-record-amount.masuk {
  color: var(--green);
}

.financial-record-amount.keluar {
  color: var(--danger);
}

.finance-summary div,
.finance-summary-card {
  padding: 14px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  text-align: left;
  background: var(--white);
}

.finance-summary-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.finance-summary-card:hover {
  transform: translateY(-2px);
  background: #f8fbff;
  box-shadow: 0 14px 28px rgba(0, 76, 151, 0.12);
}

.finance-summary-card.active-detail {
  border: 1px solid rgba(0, 76, 151, 0.22);
  background: #f8fbff;
  box-shadow: 0 14px 28px rgba(0, 76, 151, 0.12);
}

.finance-summary div.negative-balance,
.finance-summary-card.negative-balance {
  color: var(--white);
  background: linear-gradient(135deg, #b91c1c, #ef4444);
}

.finance-summary div.negative-balance span,
.finance-summary div.negative-balance strong,
.finance-summary-card.negative-balance span,
.finance-summary-card.negative-balance strong,
.finance-summary-card.negative-balance small {
  color: var(--white);
}

.finance-summary strong,
.finance-summary span,
.finance-summary small {
  display: block;
}

.finance-summary strong {
  margin-top: 6px;
  font-size: 1rem;
}

.finance-summary small {
  margin-top: 8px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
}

.finance-pending-card {
  background: linear-gradient(135deg, rgba(247, 201, 72, 0.22), rgba(255, 255, 255, 0.94));
}

.finance-production-table-card {
  background: linear-gradient(135deg, rgba(0, 76, 151, 0.12), rgba(255, 255, 255, 0.96));
}

.finance-sales-table-card {
  background: linear-gradient(135deg, rgba(30, 139, 195, 0.14), rgba(255, 255, 255, 0.96));
}

.finance-marketing-table-card {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.14), rgba(255, 255, 255, 0.96));
}

.finance-net-sales-card {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.14), rgba(255, 255, 255, 0.96));
}

.finance-pending-card small,
.finance-pending-card strong {
  color: #8a5f00;
}

.finance-money-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin: -8px 0 22px;
  padding: 16px;
  border: 1px solid rgba(0, 76, 151, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.finance-money-form[hidden] {
  display: none;
}

.finance-money-form label {
  display: grid;
  gap: 8px;
}

.finance-money-form label span {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.finance-money-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
  outline: none;
}

.finance-money-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 76, 151, 0.12);
}

.finance-money-form small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 700;
}

.event-income-history,
.event-money-history {
  display: grid;
  gap: 10px;
  margin: -4px 0 22px;
}

.event-income-history[hidden],
.event-money-history[hidden] {
  display: none;
}

.event-income-item,
.event-money-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 13px;
  padding-right: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.event-income-item strong,
.event-income-item span,
.event-income-item small,
.event-money-item strong,
.event-money-item span,
.event-money-item small {
  display: block;
}

.event-income-item strong,
.event-money-item strong {
  color: var(--ink);
}

.event-income-item span,
.event-income-item small,
.event-money-item span,
.event-money-item small {
  color: var(--muted);
}

.event-income-item .event-income-amount,
.event-money-item .event-money-amount {
  color: var(--green);
  font-weight: 900;
  text-align: right;
}

.event-money-item.expense .event-money-amount {
  color: var(--danger);
}

.event-income-delete,
.event-money-delete,
.brand-pending-pay {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  font-weight: 900;
  background: var(--danger);
  cursor: pointer;
}

.event-income-delete.saved-result-delete,
.event-money-delete.saved-result-delete {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  place-items: center;
  padding: 0;
  font-size: 0.82rem;
}

.brand-pending-pay {
  background: var(--green);
}

.event-income-delete:hover,
.event-money-delete:hover,
.brand-pending-pay:hover {
  filter: brightness(0.96);
  box-shadow: 0 10px 20px rgba(210, 55, 46, 0.18);
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 6px;
  height: 190px;
  padding-top: 8px;
}

.bar-chart span {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: var(--value);
  min-height: 42px;
  border-radius: 8px 8px 0 0;
  color: var(--white);
  background: linear-gradient(180deg, var(--green), var(--blue));
  cursor: pointer;
}

.bar-chart span:focus-visible {
  outline: 3px solid rgba(247, 201, 72, 0.9);
  outline-offset: 3px;
}

.brand-chart span {
  background: linear-gradient(180deg, var(--blue), var(--yellow));
}

.bar-chart span.negative {
  background: linear-gradient(180deg, var(--danger), var(--yellow));
}

.bar-chart span::before {
  content: attr(data-amount);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 2;
  min-width: max-content;
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(12, 35, 64, 0.92);
  font-size: 0.68rem;
  font-weight: 800;
  opacity: 0;
  transform: translate(-50%, 4px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.bar-chart span:hover::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

.bar-chart b {
  position: absolute;
  bottom: 8px;
  font-size: 0.64rem;
}

.event-month-panel {
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 76, 151, 0.18), transparent 28rem),
    linear-gradient(135deg, #f8fbff 0%, #eef8ff 52%, #edfbf5 100%);
}

.month-finance-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.month-finance-summary article {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(0, 76, 151, 0.12);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.month-finance-summary article.negative-balance {
  color: var(--white);
  border-color: rgba(185, 28, 28, 0.18);
  background: linear-gradient(135deg, #b91c1c, #ef4444);
}

.month-finance-summary span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.month-finance-summary article.negative-balance span {
  color: rgba(255, 255, 255, 0.82);
}

.month-finance-summary strong {
  font-size: 1.35rem;
  color: var(--blue-dark);
}

.month-finance-summary article.negative-balance strong {
  color: var(--white);
}

.month-finance-table-wrap {
  overflow-x: auto;
  max-height: 56vh;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.month-finance-table {
  width: 100%;
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
  color: #1f2937;
  font-size: 0.86rem;
}

.month-finance-table th,
.month-finance-table td {
  padding: 10px 12px;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: middle;
  background: #ffffff;
}

.month-finance-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #374151;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  background: #f8fafc;
}

.month-finance-table th:first-child,
.month-finance-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 56px;
  min-width: 56px;
  text-align: center;
  color: #64748b;
  font-weight: 900;
  background: #f8fafc;
}

.month-finance-table th:first-child {
  z-index: 3;
}

.month-finance-table th:last-child,
.month-finance-table td:last-child {
  border-right: 0;
  text-align: right;
}

.month-finance-table tbody tr:hover td,
.month-finance-table tbody tr:hover .sheet-row-number {
  background: #eef6ff;
}

.sheet-empty-cell {
  height: 88px;
  color: var(--muted);
  font-weight: 800;
  text-align: center !important;
  background: #ffffff !important;
}

.transaction-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 900;
}

.transaction-pill.income {
  background: var(--green);
}

.transaction-pill.expense {
  background: var(--danger);
}

.month-income,
.month-expense {
  font-weight: 900;
  white-space: nowrap;
}

.month-income {
  color: var(--green);
}

.month-expense {
  color: var(--danger);
}

.brand-notes-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 22px;
}

.brand-note-card {
  padding: 16px;
  border: 1px solid rgba(0, 76, 151, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 42px rgba(0, 76, 151, 0.08);
}

.finance-form-toggle-card,
.brand-note-toggle {
  width: 100%;
  margin-bottom: 14px;
}

.finance-form-tab {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 76, 151, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.92)),
    radial-gradient(circle at 100% 0, rgba(0, 94, 184, 0.12), transparent 34%);
  box-shadow: 0 14px 30px rgba(0, 76, 151, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.finance-form-tab::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--blue);
}

.finance-form-tab:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 76, 151, 0.28);
  box-shadow: 0 18px 36px rgba(0, 76, 151, 0.14);
}

.finance-form-tab.marketing::before {
  background: var(--green);
}

.finance-form-tab.sales::before {
  background: var(--teal);
}

.form-tab-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 10px 18px rgba(0, 76, 151, 0.18);
}

.finance-form-tab.marketing .form-tab-icon {
  background: var(--green);
}

.finance-form-tab.sales .form-tab-icon {
  background: var(--teal);
}

.form-tab-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  text-align: left;
}

.form-tab-copy span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.form-tab-copy strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.form-tab-copy small {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
}

.form-tab-arrow {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 94, 184, 0.1);
  color: var(--blue);
  font-size: 1.2rem;
  font-weight: 900;
}

.finance-form-tab.active-detail {
  border-color: rgba(0, 76, 151, 0.3);
  background:
    linear-gradient(135deg, rgba(247, 251, 255, 0.98), rgba(255, 255, 255, 0.94)),
    radial-gradient(circle at 100% 0, rgba(0, 94, 184, 0.18), transparent 36%);
  box-shadow: 0 18px 38px rgba(0, 76, 151, 0.16);
}

.finance-form-tab.active-detail .form-tab-arrow {
  background: var(--danger);
  color: var(--white);
}

.brand-note-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.brand-note-form label,
.brand-note-form small,
.brand-note-form button,
.brand-note-wide {
  grid-column: 1 / -1;
}

.brand-note-form label {
  display: grid;
  gap: 6px;
}

.brand-note-form label:not(.brand-note-wide) {
  grid-column: span 1;
}

.brand-note-form span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.brand-note-form input,
.brand-note-form select,
.brand-note-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font: inherit;
}

.brand-note-form input,
.brand-note-form select {
  min-height: 42px;
  padding: 0 12px;
}

.brand-note-form textarea {
  min-height: 96px;
  padding: 12px;
  resize: vertical;
}

.brand-note-list {
  display: grid;
  gap: 10px;
}

.brand-note-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  padding-right: 54px;
  border: 1px solid rgba(0, 76, 151, 0.1);
  border-radius: 8px;
  background: #f8fbff;
}

.brand-note-item strong,
.brand-note-item p,
.brand-note-item small {
  display: block;
}

.brand-note-item p {
  margin: 6px 0;
  color: var(--muted);
  line-height: 1.5;
}

.brand-note-item small {
  color: var(--green);
  font-weight: 800;
}

.brand-rab-panel {
  margin: 18px 0 22px;
}

.brand-rab-panel[hidden] {
  display: none;
}

.brand-rab-table {
  min-width: 1360px;
}

.brand-sales-table {
  min-width: 1600px;
}

.brand-marketing-table {
  min-width: 1040px;
}

.brand-net-sales-table {
  min-width: 760px;
}

.event-cashflow-table {
  min-width: 1180px;
}

.brand-rab-table td:nth-child(8),
.brand-rab-table td:nth-child(9),
.brand-rab-table td:nth-child(10),
.brand-sales-table td:nth-child(5),
.brand-net-sales-table td:nth-child(4) {
  text-align: right;
  font-weight: 800;
  white-space: nowrap;
}

.table-edit-button {
  white-space: nowrap;
}

.table-action-buttons {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.table-delete-button {
  display: inline-grid;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 900;
  background: var(--danger);
  cursor: pointer;
}

.table-delete-button:hover {
  background: #b9332e;
}

.brand-marketing-table td:nth-child(6) {
  text-align: right;
  font-weight: 800;
  white-space: nowrap;
}

.brand-rab-group-row td {
  color: var(--blue-dark);
  font-weight: 900;
  background: #eef6ff;
}

.brand-rab-section-row td {
  color: var(--white);
  font-weight: 900;
  text-transform: uppercase;
  background: var(--blue-dark);
}

.brand-rab-total-row td {
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.brand-rab-total-row .sheet-row-number {
  color: var(--white);
  background: var(--blue);
}

.admin-dashboard {
  display: none;
}

.admin-dashboard.active {
  display: block;
}

.admin-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding: 24px;
  overflow: hidden;
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(0, 59, 115, 0.9), rgba(0, 94, 184, 0.76), rgba(0, 167, 165, 0.64)),
    url("assets/dashboard-visual.png?v=project-beyond-gradient") center / cover;
  box-shadow: var(--shadow);
}

.admin-hero h2 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 4vw, 3.8rem);
  line-height: 1;
}

.admin-hero p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.admin-metrics {
  margin-bottom: 18px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.monitor-panel {
  min-height: 280px;
}

.wide-panel {
  grid-column: 1 / -1;
  min-height: auto;
}

.department-list,
.admin-alerts,
.admin-finance-row {
  display: grid;
  gap: 12px;
}

.department-list div,
.admin-alerts div,
.admin-approval-item,
.admin-finance-row div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.admin-approval-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.admin-approval-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.approve-task-button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  font-weight: 900;
  background: var(--green);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.approve-task-button:hover {
  transform: translateY(-1px);
  filter: brightness(0.96);
  box-shadow: 0 12px 22px rgba(0, 125, 92, 0.18);
}

.admin-cancel-task-button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  font-weight: 900;
  background: var(--danger);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.admin-cancel-task-button:hover {
  transform: translateY(-1px);
  filter: brightness(0.96);
  box-shadow: 0 12px 22px rgba(210, 55, 46, 0.2);
}

.revision-task-button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  color: #563b00;
  font-weight: 900;
  background: #f7c948;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.revision-task-button:hover {
  transform: translateY(-1px);
  filter: brightness(0.96);
  box-shadow: 0 12px 22px rgba(247, 201, 72, 0.24);
}

.admin-approval-item .task-revision-note {
  margin-top: 7px;
  padding: 7px 9px;
  border-radius: 6px;
  color: #8f211a;
  background: #ffe3e0;
}

.department-list strong,
.department-list span,
.admin-alerts strong,
.admin-alerts span,
.admin-approval-item strong,
.admin-approval-item span,
.admin-finance-row strong,
.admin-finance-row span {
  display: block;
}

.department-list span,
.admin-alerts span,
.admin-approval-item span,
.admin-finance-row span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.9rem;
}

.department-list meter {
  width: 100%;
  height: 12px;
  margin-top: 12px;
}

.personal-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}

.personal-status-grid article {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(0, 76, 151, 0.12);
  border-radius: 8px;
  background: #f8fbff;
}

.personal-status-grid span,
.personal-status-grid strong {
  display: block;
}

.personal-status-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.personal-status-grid strong {
  margin-top: 7px;
  color: var(--blue-dark);
  font-size: 1.45rem;
}

.employee-status-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.employee-status-item {
  padding: 14px;
  border: 1px solid rgba(0, 76, 151, 0.12);
  border-radius: 8px;
  background: #fff;
}

.employee-status-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.employee-status-head strong,
.employee-status-head span {
  display: block;
}

.employee-status-head > div > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.employee-work-status {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.employee-work-status.positive {
  color: #075d3e;
  background: #dcf7eb;
}

.employee-work-status.attention {
  color: #8f211a;
  background: #ffe3e0;
}

.employee-task-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.employee-task-stats span {
  padding: 8px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.7rem;
  text-align: center;
  background: #f1f6fb;
}

.employee-task-stats b {
  display: block;
  margin-bottom: 3px;
  color: var(--blue-dark);
  font-size: 1rem;
}

.admin-finance-row {
  grid-template-columns: repeat(3, 1fr);
}

.admin-finance-breakdowns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.admin-finance-breakdowns > div {
  min-width: 0;
  padding: 0 4px;
}

.admin-finance-breakdowns > div > strong {
  color: var(--blue-dark);
}

.admin-finance-breakdowns dl,
.business-finance-group dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px 14px;
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.admin-finance-breakdowns dt,
.business-finance-group dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-finance-breakdowns dd,
.business-finance-group dd {
  margin: 0;
  color: var(--blue-dark);
  font-weight: 900;
  text-align: right;
}

.business-hero {
  background: linear-gradient(135deg, #06385f, #006d77 55%, #007d5c);
}

.business-finance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.business-finance-grid.event-only {
  grid-template-columns: minmax(0, 1fr);
}

.business-finance-group {
  min-width: 0;
}

.business-finance-group.negative-balance {
  border-color: rgba(210, 55, 46, 0.42);
  background: #ffe3e0;
}

.business-inventory-panel {
  margin-top: 14px;
}

.business-inventory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.business-inventory-grid article {
  min-width: 0;
  padding: 14px;
  border-left: 3px solid var(--green);
  background: #f5fbf8;
}

.dashboard-background-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-background-item {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fbfd;
}

.dashboard-background-item strong,
.dashboard-background-item small { display: block; }
.dashboard-background-item small { margin-top: 3px; color: var(--muted); }

.dashboard-background-preview {
  width: 100%;
  aspect-ratio: 16 / 6;
  border-radius: 6px;
  background: #092f52 center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}

.dashboard-background-preview.is-default {
  background-image: linear-gradient(135deg, #06385f, #006d77 55%, #007d5c);
}

.dashboard-background-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-customization-layout {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(360px, 1.2fr);
  gap: 18px;
  align-items: start;
}

.site-copy-form,
.site-copy-form label { display: grid; gap: 7px; }
.site-copy-form { gap: 12px; }
.site-copy-form label { color: var(--blue-dark); font-weight: 800; }
.site-copy-form input,
.site-copy-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
}
.site-copy-form textarea { resize: vertical; }
.site-copy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.account-permissions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border: 1px solid var(--line); border-radius: 6px; padding: 12px; }
.account-permissions legend { padding: 0 6px; color: var(--blue-dark); font-weight: 800; }
.account-permissions label { display: flex; align-items: center; gap: 7px; font-weight: 700; }
.account-permission-actions { grid-column: 1 / -1; display: flex; gap: 8px; padding-bottom: 4px; }
.account-password-field { display: grid; gap: 4px; color: var(--blue-dark); font-weight: 800; }
.account-password-field small { color: var(--muted); font-weight: 600; }
.login-background-preview { aspect-ratio: 16 / 9; }

@media (max-width: 720px) {
  .dashboard-background-grid { grid-template-columns: 1fr; }
  .dashboard-background-actions button { flex: 1 1 140px; }
  .site-customization-layout,
  .site-copy-grid,
  .account-permissions { grid-template-columns: 1fr; }
}

.business-inventory-grid span,
.business-inventory-grid strong,
.business-inventory-grid small {
  display: block;
}

.business-inventory-grid span,
.business-inventory-grid small {
  color: var(--muted);
  font-weight: 800;
}

.business-inventory-grid strong {
  margin: 6px 0 2px;
  color: var(--blue-dark);
  font-size: 1.7rem;
}

.admin-finance-row strong {
  margin-top: 8px;
  font-size: 1.35rem;
}

@media (max-width: 1120px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    display: flex;
    height: auto;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
  }

  .brand,
  .side-card {
    margin: 0;
  }

  .nav {
    display: flex;
    flex-wrap: wrap;
  }

  .side-card {
    position: static;
    min-width: 180px;
  }
}

@media (max-width: 900px) {
  .app-locked .login-screen {
    grid-template-columns: 1fr;
    align-content: center;
    overflow-y: auto;
  }

  .main {
    padding: 18px;
  }

  .topbar,
  .hero,
  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
  }

  .top-actions {
    width: 100%;
  }

  .admin-hero,
  .admin-grid,
  .admin-finance-row,
  .info-grid,
  .owner-info-grid,
  .month-finance-summary,
  .brand-notes-panel,
  .stock-summary,
  .stock-row,
  #brandStock .stock-row {
    grid-template-columns: 1fr;
  }

  .admin-hero {
    display: grid;
  }

  .timeline-list-item {
    grid-template-columns: 1fr;
  }

  .completed-file-item {
    grid-template-columns: 1fr;
  }

  .info-task-item {
    grid-template-columns: 1fr;
  }

  .dashboard-task-actions {
    justify-items: start;
  }

  .brand-note-form {
    grid-template-columns: 1fr;
  }

  .brand-note-form label:not(.brand-note-wide) {
    grid-column: 1 / -1;
  }

  .brand-note-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .financial-record-item {
    grid-template-columns: 1fr;
  }

  .financial-record-actions {
    justify-items: start;
  }

  .minutes-form,
  .minutes-item,
  .request-form,
  .request-item {
    grid-template-columns: 1fr;
  }

  .request-actions {
    justify-content: flex-start;
  }

  .open-file-button {
    width: 100%;
  }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-media {
    min-height: 260px;
  }
}

@media (max-width: 640px) {
  .timeline-tools,
  .completed-files-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .timeline-legend {
    margin-left: 0;
  }
  .app-locked {
    overflow: auto;
  }

  .app-locked .login-screen {
    padding: 20px;
  }

  .login-visual h1 {
    font-size: 2.35rem;
  }

  .login-card {
    padding: 20px;
  }

  .top-actions {
    display: grid;
  }

  .dashboard-switch {
    display: grid;
    width: 100%;
  }

  .user-badge {
    justify-content: start;
  }

  .attendance-now {
    grid-template-columns: 1fr;
  }

  .sidebar {
    align-items: stretch;
    flex-direction: column;
  }

  .nav a {
    flex: 1 1 130px;
  }

  .app-modal {
    padding: 18px;
  }

  .timeline-panel .modal-actions {
    display: grid;
    grid-template-columns: 38px 1fr 38px;
    width: 100%;
  }

  .timeline-panel .modal-close {
    grid-column: 1 / -1;
  }

  .calendar-shell,
  .timeline-board {
    padding: 12px;
  }

  .calendar-weekdays,
  .calendar-grid {
    gap: 5px;
  }

  .calendar-day {
    min-height: 66px;
    padding: 7px;
  }

  .calendar-day small {
    margin-top: 8px;
    font-size: 0.58rem;
  }

  .hero-copy {
    padding: 24px;
  }

  .metrics,
  .finance-summary,
  .finance-choice-grid,
  .stock-choice-grid,
  .brand-stock-choice-grid,
  .finance-money-form,
  .financial-record-form,
  .stock-edit-form,
  .task-form {
    grid-template-columns: 1fr;
  }

  .financial-description-field {
    grid-column: auto;
  }

  .production-record-fields {
    grid-template-columns: 1fr;
  }

  .production-wide {
    grid-column: auto;
  }

  .production-record-detail-grid {
    grid-template-columns: 1fr;
  }

  .task-item {
    grid-template-columns: auto 1fr;
  }

  .admin-approval-item,
  .admin-approval-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .personal-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-finance-breakdowns,
  .business-finance-grid {
    grid-template-columns: 1fr;
  }

  .business-inventory-grid {
    grid-template-columns: 1fr;
  }

  .employee-status-head {
    display: grid;
  }

  .employee-work-status {
    justify-self: start;
  }

  .employee-task-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .task-actions {
    grid-column: 2;
    justify-items: start;
  }
}

/* Finance tab readability */
#finance > .panel-head .eyebrow { color: #405b75; }
#finance > .panel-head h2 { color: #082f55; font-weight: 900; }

.finance-choice {
  border-color: #b9cadb;
  background: #fff;
}

.finance-choice:not(.active) span,
.finance-choice:not(.active) strong {
  color: #12395f;
}

.finance-choice span {
  font-size: 0.9rem;
  font-weight: 900;
}

.finance-choice strong {
  font-size: 0.8rem;
  font-weight: 700;
}

.finance-choice.active {
  border-color: #075fae;
  background: #075fae;
}

.finance-choice.active span,
.finance-choice.active strong {
  color: #fff;
}

.finance-form-tab {
  border-color: #c1d0df;
  background: #fff;
}

.finance-form-tab .form-tab-copy > span {
  color: #405b75;
}

.finance-form-tab .form-tab-copy > strong {
  color: #082f55;
}

.finance-form-tab .form-tab-copy > small {
  color: #0b694b;
}

.finance-form-tab .form-tab-arrow {
  color: #fff;
  background: #075fae;
}

/* 2026 UI refresh */
:root {
  --ink: #10233f;
  --muted: #607089;
  --line: #d9e3ee;
  --soft: #f4f7fb;
  --blue: #075fae;
  --blue-dark: #073b6c;
  --green: #14865f;
  --teal: #168a91;
  --danger: #cf3f37;
  --shadow: 0 12px 34px rgba(19, 45, 78, 0.08);
}

body {
  background: #f4f7fb;
}

button,
a,
input,
select,
textarea {
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid rgba(7, 95, 174, 0.2);
  outline-offset: 2px;
}

.app-locked .login-screen {
  grid-template-columns: minmax(360px, 1fr) minmax(340px, 410px);
  gap: clamp(32px, 7vw, 110px);
  padding: clamp(28px, 6vw, 90px);
  background:
    linear-gradient(110deg, rgba(2, 31, 67, 0.84) 0%, rgba(3, 65, 123, 0.58) 48%, rgba(4, 88, 150, 0.32) 100%),
    url("assets/login-clouds.png?v=20260703-landscape") center / cover no-repeat;
}

.login-visual {
  align-self: center;
  padding-bottom: 0;
  transform: translateY(-20px);
}

.login-visual .brand-mark {
  width: 58px;
  height: 58px;
  margin-bottom: 34px;
  box-shadow: 0 14px 34px rgba(0, 20, 44, 0.22);
}

.login-visual h1 {
  max-width: 760px;
  font-size: clamp(3rem, 7vw, 7.4rem);
  line-height: 0.9;
}

.login-visual p:not(.eyebrow) {
  max-width: 540px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.65;
}

.login-card {
  gap: 10px;
  padding: 30px;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 70px rgba(0, 28, 61, 0.25);
}

.login-card h2 {
  color: var(--blue-dark);
  font-size: 1.45rem;
}

.login-card input {
  height: 50px;
  border-color: #cbd8e6;
}

.login-card .primary {
  min-height: 50px;
  margin-top: 2px;
  background: var(--blue);
}

.sidebar {
  min-height: 76px;
  gap: 20px;
  padding: 12px clamp(18px, 3vw, 38px);
  background: #073f73;
  box-shadow: 0 8px 24px rgba(5, 44, 83, 0.16);
}

.brand-mark {
  width: 44px;
  height: 44px;
  box-shadow: none;
}

.brand small {
  color: rgba(255, 255, 255, 0.66);
}

.nav {
  min-width: 0;
  flex-wrap: nowrap;
  gap: 4px;
  padding-right: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  flex: 0 0 auto;
  gap: 8px;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.81rem;
}

.nav a svg {
  width: 17px;
  height: 17px;
}

.nav a.active,
.nav a:hover {
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.side-card {
  display: block;
}

.side-card strong {
  font-size: 1.1rem;
}

.team-status-dashboard {
  display: block;
  align-self: start;
  order: -1;
  margin: 0;
}

.team-status-dashboard .side-card {
  position: relative;
  width: 100%;
  min-height: 132px;
  padding: 20px;
  border: 1px solid #c9d9e8;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  color: var(--blue-dark);
  background: #fff;
  box-shadow: 0 5px 18px rgba(19, 45, 78, 0.06);
}

.team-status-dashboard .side-card span,
.team-status-dashboard .side-card small {
  color: var(--muted);
}

.team-status-dashboard .side-card strong {
  margin: 4px 0 2px;
  color: var(--blue-dark);
  font-size: 1.45rem;
}

.team-status-dashboard .side-card.has-tasks:hover,
.team-status-dashboard .side-card.has-tasks:focus {
  border-color: #8eb4d5;
  border-left-color: var(--blue);
  background: #f6faff;
  box-shadow: 0 9px 24px rgba(19, 45, 78, 0.1);
}

.team-status-dashboard .side-card.complete {
  border-color: #b9ddce;
  border-left-color: var(--green);
  background: #f1faf6;
}

@media (min-width: 1181px) {
  .nav {
    justify-content: space-between;
  }

  .nav a {
    padding-right: 10px;
    padding-left: 10px;
  }
}

.main {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 38px);
}

.topbar {
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.topbar h1 {
  color: var(--blue-dark);
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  line-height: 1;
}

.topbar .eyebrow {
  margin-bottom: 6px;
  color: var(--blue);
}

.top-actions {
  width: min(700px, 100%);
}

.search {
  min-height: 44px;
  border-color: #cfdbe8;
  background: #fff;
  box-shadow: 0 3px 12px rgba(19, 45, 78, 0.04);
}

.search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7, 95, 174, 0.1);
}

.notification-button,
.logout-button {
  min-height: 44px;
}

.notification-button {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

.logout-button {
  padding: 0 14px;
}

.user-badge {
  min-height: 44px;
  padding: 6px 11px;
  border-color: #cfe2d9;
  background: #edf8f3;
}

.dashboard-switch {
  display: flex;
  width: fit-content;
  margin-bottom: 22px;
  padding: 4px;
  border-color: #cfdae7;
  background: #e9eff6;
}

.dashboard-switch button {
  min-height: 36px;
  color: #66758a;
  font-size: 0.79rem;
}

.dashboard-switch button.active {
  color: var(--blue-dark);
  background: #fff;
  box-shadow: 0 3px 10px rgba(19, 45, 78, 0.1);
}

.workspace-grid,
.admin-grid {
  gap: 16px;
}

.panel,
.metrics article,
.admin-approval-item,
.financial-record-item,
.timeline-list-item,
.completed-file-item,
.request-item,
.minutes-item,
.brand-note-item {
  border-color: var(--line);
  background: #fff;
  box-shadow: 0 5px 18px rgba(19, 45, 78, 0.045);
}

.panel {
  padding: clamp(18px, 2vw, 24px);
}

.panel-head {
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5ebf2;
}

.panel-head h2 {
  color: var(--blue-dark);
  font-size: 1.1rem;
}

.panel-head .eyebrow {
  margin-bottom: 5px;
  color: #68809a;
  font-size: 0.68rem;
}

.primary,
.secondary,
.icon-button,
.modal-close,
.secondary-action,
.approve-task-button,
.revision-task-button {
  min-height: 42px;
  border-radius: 7px;
}

.primary {
  background: var(--blue);
  box-shadow: 0 5px 14px rgba(7, 95, 174, 0.18);
}

.primary:hover,
.icon-button:hover {
  transform: translateY(-1px);
  background: var(--blue-dark);
}

.secondary,
.modal-close,
.secondary-action {
  border: 1px solid #cad7e5;
  color: var(--blue-dark);
  background: #fff;
}

.secondary:hover,
.modal-close:hover,
.secondary-action:hover {
  border-color: var(--blue);
  background: #eef6fd;
}

.task-clean-trigger {
  padding: 17px 18px;
  border-color: #cfe0ef;
  background: #f5faff;
  box-shadow: none;
}

.task-clean-trigger:hover {
  transform: translateY(-1px);
  border-color: #8db7d9;
  box-shadow: 0 8px 20px rgba(7, 95, 174, 0.08);
}

.shell input,
.shell select,
.shell textarea {
  border-color: #cbd8e6;
  background: #fff;
}

.shell input:focus,
.shell select:focus,
.shell textarea:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(7, 95, 174, 0.1);
}

.status-chip {
  border: 1px solid #d5e0eb;
  border-radius: 6px;
  background: #f3f6fa;
}

.status-chip.positive {
  border-color: #bce0cf;
  background: #e8f7f0;
}

.app-modal {
  padding: clamp(18px, 3vw, 38px);
  background: rgba(9, 28, 50, 0.46);
  backdrop-filter: blur(7px);
}

.app-modal > * {
  width: min(100%, 1180px);
}

.app-modal.open {
  animation: modalBackdropIn 0.18s ease-out;
}

.app-modal.open > * {
  animation: modalContentIn 0.22s ease-out;
}

@keyframes modalBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalContentIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.notification-modal {
  background: rgba(9, 28, 50, 0.52);
}

.notification-modal > * {
  width: min(100%, 820px);
}

.notification-item {
  border-radius: 7px;
}

.notification-item:hover {
  border-color: #aac4dc;
  transform: translateY(-1px);
  box-shadow: 0 9px 22px rgba(19, 45, 78, 0.09);
}

.admin-hero,
.business-hero {
  min-height: 190px;
  align-items: flex-end;
  padding: clamp(24px, 4vw, 44px);
  background:
    linear-gradient(90deg, rgba(4, 48, 89, 0.96), rgba(4, 94, 161, 0.82), rgba(17, 128, 137, 0.72)),
    url("assets/dashboard-visual.png?v=project-beyond-gradient") center / cover;
  box-shadow: 0 14px 32px rgba(6, 55, 101, 0.16);
}

.admin-hero h2 {
  font-size: clamp(1.8rem, 4vw, 3.4rem);
}

.metrics article {
  min-height: 118px;
  align-content: space-between;
  border-top: 3px solid #8ab8dc;
}

.metrics article:nth-child(2) { border-top-color: #69b696; }
.metrics article:nth-child(3) { border-top-color: #e5b94e; }
.metrics article:nth-child(4) { border-top-color: #72a6aa; }

.business-inventory-grid article {
  border: 1px solid #dce6ef;
  border-left: 3px solid var(--green);
  border-radius: 7px;
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

thead th {
  color: #53677e;
  background: #edf3f8;
  font-size: 0.73rem;
  text-transform: uppercase;
}

tbody tr:hover td {
  background: #f7faff;
}

@media (max-width: 1120px) {
  .sidebar {
    position: sticky;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 18px;
    padding: 12px 18px;
  }

  .nav {
    grid-column: 1 / -1;
    order: 3;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .nav a { flex: 0 0 auto; }

  .sidebar > .side-card { display: none; }
}

@media (max-width: 719px) {
  .team-status-dashboard { order: -2; }
  .team-status-dashboard .side-card { width: 100%; }
}

@media (max-width: 900px) {
  .app-locked .login-screen {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px;
  }

  .login-visual {
    align-self: auto;
    padding-bottom: 0;
    transform: none;
  }

  .login-visual h1 {
    font-size: clamp(2.8rem, 12vw, 5rem);
  }

  .topbar {
    align-items: stretch;
  }

  .top-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .search {
    grid-column: 1 / -1;
  }

  .user-badge {
    justify-content: start;
  }
}

@media (max-width: 640px) {
  .app-locked .login-screen {
    align-content: start;
    padding: 22px 18px;
  }

  .login-visual .brand-mark {
    width: 48px;
    height: 48px;
    margin-bottom: 22px;
  }

  .login-visual h1 {
    margin-bottom: 12px;
    font-size: clamp(2.55rem, 15vw, 4rem);
  }

  .login-visual p:not(.eyebrow) {
    margin-bottom: 0;
    font-size: 0.91rem;
  }

  .login-card {
    padding: 22px 18px;
  }

  .sidebar {
    align-items: center;
    grid-template-columns: 1fr;
    padding: 10px 14px;
  }

  .brand {
    width: 100%;
  }

  .nav {
    width: calc(100vw - 28px);
    grid-column: auto;
  }

  .nav a {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 10px;
  }

  .main {
    padding: 18px 14px 28px;
  }

  .topbar {
    margin-bottom: 14px;
    padding-bottom: 14px;
  }

  .top-actions {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .notification-button {
    grid-column: 1;
  }

  .user-badge {
    grid-column: 2;
    min-width: 0;
  }

  .logout-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .dashboard-switch {
    display: flex;
    width: 100%;
    overflow-x: auto;
  }

  .dashboard-switch button {
    flex: 1 0 auto;
    white-space: nowrap;
  }

  .panel {
    padding: 16px;
  }

  .panel-head {
    align-items: flex-start;
  }

  .app-modal {
    align-items: flex-end;
    padding: 10px;
  }

  .app-modal > * {
    max-height: calc(100dvh - 20px);
    border-radius: 8px 8px 0 0;
  }

  .notification-item {
    min-height: 70px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Workflow usability pass */
.owner-info-heading-actions { display: flex; align-items: center; gap: 8px; }
.owner-info-toggle { min-height: 34px; padding: 0 11px; font-size: 0.76rem; }
.dashboard-info { background: #fff; }
.owner-info-updated { margin: -6px 0 12px; font-size: 0.78rem; }
.info-grid { gap: 10px; }
.info-grid article { padding: 14px; }
.info-grid strong { margin-top: 5px; font-size: 1rem; }
.info-grid p { display: -webkit-box; margin-top: 7px; overflow: hidden; font-size: 0.84rem; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.owner-info-editor { margin-top: 12px; box-shadow: none; }
.owner-info-grid textarea { min-height: 76px; }
.info-task-section { margin-top: 14px; padding-top: 14px; border-top: 1px solid #e5ebf2; }
.info-task-section .panel-head { margin-bottom: 10px; padding-bottom: 0; border-bottom: 0; }
.info-task-list { max-height: 330px; overflow-y: auto; padding-right: 3px; }
#attendance { align-self: start; }
.attendance-card { padding: 14px; background: #f4f9fc; }
.attendance-card > p { margin-bottom: 10px; font-size: 0.84rem; line-height: 1.45; }
.avatar-stack { margin-bottom: 10px; }
.avatar-stack span { width: 36px; height: 36px; font-size: 0.72rem; }
.attendance-now { margin-top: 10px; }
.attendance-now div { padding: 9px 10px; }
.attendance-timer { margin: 10px 0; padding: 10px; }
.attendance-timer strong { font-size: 1.45rem; }

@media (min-width: 901px) and (max-width: 1180px) {
  .topbar { display: flex; align-items: center; min-height: 78px; }
  .topbar > div:first-child { flex: 0 0 230px; }
  .top-actions { display: flex; width: auto; flex: 1; }
  .search { min-width: 170px; }
}

@media (min-width: 720px) and (max-width: 900px) {
  .topbar { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; }
  .topbar h1 { font-size: 1.65rem; }
  .top-actions { display: grid; grid-template-columns: minmax(140px, 1fr) auto minmax(140px, auto) auto; width: 100%; }
  .search { grid-column: auto; }
  .workspace-grid { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .dashboard-info { grid-column: 1 / -1; order: -3; }
  #attendance { grid-column: 1; order: -2; position: static; }
  .team-status-dashboard { grid-column: 2; order: -2; }
  .info-grid, .owner-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 719px) {
  .dashboard-info { order: -2; }
  #attendance { order: -3; }
  .owner-info-heading-actions { align-items: flex-end; flex-direction: column-reverse; }
  .info-grid { grid-template-columns: 1fr; }
  .info-task-list { max-height: 400px; }
}

/* High-contrast full-screen modules */
.app-modal,
.notification-modal {
  color: var(--ink);
  background: #f4f7fb;
  backdrop-filter: none;
}

.timeline-panel,
.completed-files-panel,
.stock-panel,
.finance-panel,
.requests-panel,
.minutes-panel,
.notification-modal {
  background: #f4f7fb;
}

.app-modal .panel-head h2,
.app-modal .timeline-month,
.app-modal .calendar-day span,
.app-modal .timeline-list-item strong {
  color: #102f52;
}

.timeline-today-button,
.timeline-nav-button,
.modal-close {
  color: #073b6c;
  border-color: #b9cadb;
  background: #fff;
}

.timeline-today-button:hover,
.timeline-nav-button:hover,
.modal-close:hover {
  color: #fff;
  border-color: #075fae;
  background: #075fae;
}

.primary,
.primary *,
.icon-button,
.icon-button *,
.approve-task-button,
.approve-task-button *,
.notification-filters button.active,
.notification-filters button.active * {
  color: #fff;
}

.stock-choice.active,
.stock-choice.active *,
.brand-stock-choice.active,
.brand-stock-choice.active *,
.finance-choice.active,
.finance-choice.active * {
  color: #fff;
}

.nav a,
.nav a svg {
  color: rgba(255, 255, 255, 0.88);
}

.nav a.active,
.nav a.active *,
.nav a:hover,
.nav a:hover * {
  color: #fff;
}

.timeline-list-item p,
.calendar-weekdays,
.timeline-tools select,
.timeline-legend span {
  color: #465b72;
}

.calendar-day.has-items {
  background: #eef5fb;
}

@media (max-width: 640px) {
  .app-modal {
    align-items: stretch;
    padding: 14px;
  }

  .app-modal > * {
    border-radius: 0;
  }
}
