* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #101828;
  background: #f5f7fb;
}

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

.sidebar {
  background: #0b1f3a;
  color: #e6edf6;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f5a524;
  display: grid;
  place-items: center;
  color: #0b1f3a;
  font-weight: 700;
}

.brand-title {
  font-weight: 700;
  font-size: 16px;
}

.brand-subtitle {
  font-size: 12px;
  opacity: 0.7;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-link {
  background: transparent;
  border: none;
  color: inherit;
  text-align: left;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
}

.nav-link.active,
.nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

.main {
  padding: 24px 32px;
}

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

.topbar-meta {
  color: #667085;
  margin-top: 6px;
  font-size: 14px;
}

.meta-sep {
  margin: 0 8px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search input {
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  padding: 8px 12px;
  min-width: 200px;
  background: #fff;
}

.status-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}

.status-pill.online {
  background: #dcfae6;
  color: #067647;
  border-color: #abefc6;
}

.status-pill.offline {
  background: #fef0c7;
  color: #b54708;
  border-color: #fedf89;
}

.status-pill.warning {
  background: #fef0c7;
  color: #b54708;
  border-color: #fedf89;
}

.status-pill.ok {
  background: #dcfae6;
  color: #067647;
  border-color: #abefc6;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.toast {
  position: sticky;
  top: 0;
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #0b1f3a;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.15);
}

.toast.hidden {
  display: none;
}

.select {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #667085;
}

input[type="date"],
input[type="range"] {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d0d5dd;
  background: #fff;
}

select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d0d5dd;
  background: #fff;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid #eaecf0;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0b1f3a;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.user-name {
  font-weight: 600;
}

.user-role {
  font-size: 12px;
  color: #667085;
}

.view {
  display: none;
  gap: 24px;
}

.view.active {
  display: flex;
  flex-direction: column;
}

.view[data-view="inventory"].active {
  height: calc(100vh - 170px);
  overflow: hidden;
}

.view[data-view="inventory"].active .panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.kpi-card {
  background: #fff;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid #eaecf0;
}

.kpi-label {
  font-size: 13px;
  color: #667085;
}

.kpi-value {
  font-size: 24px;
  font-weight: 700;
  margin-top: 6px;
}

.kpi-trend {
  margin-top: 4px;
  font-size: 12px;
}

.kpi-trend.positive {
  color: #12b76a;
}

.kpi-trend.negative {
  color: #f04438;
}

.kpi-trend.neutral {
  color: #667085;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.panel {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #eaecf0;
  padding: 18px;
}

.panel-toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 10px 0 16px;
  gap: 12px;
  align-items: center;
}

.depot-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: stretch;
  height: 100%;
  min-height: 0;
  flex: 1;
  position: relative;
}

.depot-layout.menu-collapsed {
  grid-template-columns: 0 1fr;
  gap: 0;
}

.depot-side {
  position: static !important;
  top: auto !important;
  align-self: start;
}

.depot-side-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.pin-button {
  border: 1px solid #e5eaf2;
  background: #f8fafc;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pin-icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #64748b;
  stroke-width: 1.6;
}

.depot-layout {
  transition: padding-left 0.2s ease;
}

.depot-side {
  width: 260px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.depot-side.is-collapsed {
  transform: translateX(-240px);
  opacity: 0;
  pointer-events: none;
}

.depot-side.is-pinned {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.depot-side.is-pinned .pin-button {
  background: #eaf2ff;
  border-color: #7aa7ff;
}

.depot-side.is-pinned .pin-icon {
  stroke: #2b6ee7;
}

.depot-hover-zone {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 14px;
  z-index: 3;
}

.depot-module-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - 240px);
  overflow-y: auto;
  padding-right: 4px;
}

.depot-module {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #e8edf6;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.depot-module:hover {
  border-color: #d6e1f5;
  box-shadow: 0 10px 20px rgba(46, 89, 180, 0.08);
  transform: translateY(-1px);
}

.depot-module.active {
  border-color: #a7bff5;
  box-shadow: 0 12px 24px rgba(46, 89, 180, 0.12);
}

.depot-module-index {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: #f1f5ff;
  color: #2e59b4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
}

.depot-module-title {
  font-weight: 600;
  color: #1f2a44;
}

.depot-module-subtitle {
  font-size: 12px;
  color: #7b8bb2;
}

.depot-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, var(--depot-side-width, 340px));
  gap: 16px;
  align-items: stretch;
  min-height: 0;
  min-width: 0;
  flex: 1;
}

.depot-side-panel {
  position: relative;
  border: 1px solid #e6ecf5;
  background: #ffffff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.06);
  min-width: 260px;
  max-width: 640px;
}

.depot-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 16px;
  min-width: 0;
  flex: 1;
}

.depot-table-wrap {
  min-height: 0;
  overflow: auto;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  background: #fff;
  min-width: 0;
  flex: 1;
}

.depot-table-wrap .table {
  width: 100%;
  table-layout: fixed;
}

.depot-content.is-collapsed {
  grid-template-columns: 1fr;
}

.depot-side-body {
  overflow-x: auto;
}

.depot-side-resize {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: -6px;
  width: 12px;
  cursor: ew-resize;
}

.depot-side-resize::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 5px;
  width: 2px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.6);
}

.depot-side-panel .panel-header {
  padding: 0 0 12px;
  border-bottom: 1px solid #eef2f7;
  margin-bottom: 12px;
}

.empty-state {
  padding: 18px;
  text-align: center;
  color: #7b8bb2;
  font-size: 13px;
}

.depot-side-panel.hidden {
  display: none;
}

@media (max-width: 1100px) {
  .depot-layout {
    grid-template-columns: 1fr;
  }
  .depot-side {
    position: static;
  }
  .depot-content {
    grid-template-columns: 1fr;
  }
}

.filter-group {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: #667085;
}

.filter-group label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toggle {
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
}

.toggle input {
  accent-color: #0b1f3a;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-actions .ghost {
  min-width: 34px;
  height: 34px;
  font-size: 18px;
  line-height: 1;
}

.panel-actions .ghost.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.site-tab-toolbar {
  justify-content: flex-end;
  margin-top: 10px;
  margin-bottom: 6px;
}

.site-filter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-filter input[type="date"] {
  min-width: 150px;
}

.side-section {
  margin-bottom: 18px;
}

.side-section h4 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #1f2a44;
}

.panel-header h2 {
  font-size: 18px;
}

.panel-subtitle {
  font-size: 12px;
  color: #98a2b3;
}

.chart {
  min-height: 160px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.chart-bar {
  flex: 1;
  background: #f2f4f7;
  border-radius: 8px 8px 0 0;
  position: relative;
  overflow: hidden;
}

.chart-bar span {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 11px;
  color: #101828;
}

.chart-fill {
  width: 100%;
  background: #0b1f3a;
  border-radius: 8px 8px 0 0;
}

.progress-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.progress-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #667085;
}

.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: #f2f4f7;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: #0b1f3a;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.list-item span {
  color: #667085;
  font-size: 12px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  table-layout: fixed;
}

.table th {
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.table td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.th-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-indicator {
  font-size: 11px;
  color: #94a3b8;
}

.table th.sortable {
  cursor: pointer;
}

.table th.sortable.sorted {
  color: #1f2a44;
}

.col-resizer {
  position: absolute;
  top: 6px;
  right: -4px;
  width: 8px;
  height: calc(100% - 12px);
  cursor: col-resize;
}

.col-resizer::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 3px;
  width: 2px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.5);
}

.table thead th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}

.filter-button {
  border: 1px solid #e5eaf2;
  background: #f8fafc;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.filter-button.active {
  border-color: #7aa7ff;
  background: #eaf2ff;
}

.filter-button.active .filter-icon {
  stroke: #2b6ee7;
}

.filter-icon {
  width: 12px;
  height: 12px;
  display: inline-block;
  fill: none;
  stroke: #64748b;
  stroke-width: 1.6;
}

.table-filter-popup {
  position: fixed;
  z-index: 80;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  width: 240px;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.12);
}

.table-filter-popup.hidden {
  display: none;
}

.table-filter-popup .popup-title {
  font-size: 12px;
  color: #667085;
  margin-bottom: 8px;
}

.table-filter-popup .popup-input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
}

.table-filter-popup .popup-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.table-filter-popup .popup-select {
  flex: 1;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
  background: #fff;
}

.table-filter-popup .popup-list {
  margin-top: 8px;
  max-height: 220px;
  overflow: auto;
  border: 1px solid #eef2f7;
  border-radius: 8px;
  padding: 6px;
}

.table-filter-popup .popup-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 4px 2px;
  cursor: pointer;
}

.table-filter-popup .popup-item input {
  accent-color: #0b1f3a;
}

.table-filter-popup .popup-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  gap: 6px;
}

.table-filter-popup .popup-actions button {
  padding: 5px 8px;
  font-size: 11px;
  border-radius: 8px;
}

.modal-photo-preview {
  margin-top: 8px;
  border: 1px dashed #e2e8f0;
  border-radius: 10px;
  padding: 8px;
  min-height: 60px;
  display: grid;
  place-items: center;
  background: #f8fafc;
}

.modal-photo-preview img {
  max-width: 100%;
  max-height: 160px;
  border-radius: 8px;
  object-fit: cover;
}

.table th,
.table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid #eaecf0;
}

.table th {
  color: #667085;
  font-weight: 600;
  background: #f9fafb;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.table-thumb {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e6ecf5;
  background: #f7f9fc;
}

.photo-thumb,
.photo-preview {
  cursor: pointer;
}

.depot-side-photo {
  margin-bottom: 12px;
}

.depot-side-photo img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e6ecf5;
}

.link-button {
  background: none;
  border: none;
  color: #2e59b4;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.link-button:hover {
  text-decoration: underline;
}

.badge.warning {
  background: #fef0c7;
  color: #b54708;
}

.badge.ok {
  background: #dcfae6;
  color: #067647;
}

.badge.info {
  background: #e0f2fe;
  color: #026aa2;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.report-card {
  border: 1px solid #eaecf0;
  border-radius: 16px;
  padding: 16px;
  text-align: left;
  background: #f9fafb;
  cursor: pointer;
}

.report-title {
  font-weight: 600;
}

.report-subtitle {
  font-size: 12px;
  color: #667085;
  margin-top: 4px;
}

.report-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

button.primary {
  background: #0b1f3a;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
}

button.ghost {
  background: transparent;
  border: 1px solid #d0d5dd;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: grid;
  place-items: center;
  z-index: 20;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  border-radius: 16px;
  width: min(520px, 90vw);
  padding: 18px;
  border: 1px solid #eaecf0;
}

.image-modal-content {
  background: #fff;
  border-radius: 16px;
  width: min(960px, 92vw);
  max-height: 90vh;
  padding: 14px;
  border: 1px solid #eaecf0;
  display: grid;
  gap: 10px;
}

.image-modal-content img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 10px;
  background: #f8fafc;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.modal-form {
  display: grid;
  gap: 12px;
}

.modal-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #667085;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d0d5dd;
  font-size: 14px;
}

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

.quote-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  padding: 10px 12px;
}

.quote-item input {
  margin-top: 2px;
}

.quote-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #667085;
  margin-top: 4px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.settings-card {
  border: 1px solid #eaecf0;
  border-radius: 16px;
  padding: 16px;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.site-card {
  border: 1px solid #eaecf0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.site-cover {
  height: 120px;
  background-size: cover;
  background-position: center;
}

.site-body {
  padding: 12px 14px 16px;
  display: grid;
  gap: 6px;
}

.site-title {
  font-weight: 600;
}

.site-meta {
  font-size: 12px;
  color: #667085;
}

.site-actions {
  padding: 0 14px 14px;
}

.site-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 16px;
}

.site-tab-view {
  display: none;
}

.site-tab-view.active {
  display: block;
}

.productivity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.productivity-card {
  border: 1px solid #eaecf0;
  border-radius: 12px;
  padding: 12px;
  background: #f9fafb;
}

.productivity-label {
  font-size: 12px;
  color: #667085;
}

.productivity-value {
  font-size: 20px;
  font-weight: 700;
  margin-top: 6px;
}

.gantt-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px;
}

.gantt-left {
  display: grid;
  gap: 8px;
}

.gantt-left-header {
  font-size: 12px;
  color: #667085;
  font-weight: 600;
  padding: 6px 0;
}

.gantt-left-rows {
  display: grid;
  gap: 10px;
}

.gantt-left-row {
  min-height: 32px;
  display: grid;
  gap: 4px;
}

.gantt-right {
  overflow: hidden;
}

.gantt-scroll {
  overflow-x: auto;
  padding-bottom: 6px;
}

.gantt-scale {
  position: relative;
  height: 26px;
  margin-bottom: 6px;
}

.gantt-scale-label {
  position: absolute;
  top: 0;
  font-size: 11px;
  color: #667085;
  background: #f2f4f7;
  padding: 4px 8px;
  border-radius: 8px;
  white-space: nowrap;
}

.gantt-legend {
  font-size: 12px;
  color: #667085;
}

.gantt-canvas {
  position: relative;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  background: #f9fafb;
  padding: 12px;
}

.gantt-grid {
  position: absolute;
  inset: 12px;
  z-index: 0;
}

.gantt-grid-line {
  position: absolute;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: #e4e7ec;
}

.gantt-grid-line.strong {
  background: #cbd5e1;
}

.gantt-rows {
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.gantt-links {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.gantt-header {
  display: grid;
  gap: 8px;
  margin: 8px 0 12px;
}

.gantt-row {
  position: relative;
  min-height: 32px;
}

.gantt-label {
  font-size: 12px;
  color: #667085;
}

.gantt-track {
  position: relative;
  height: 28px;
  border-radius: 999px;
  background: #e4e7ec;
}

.gantt-bar {
  position: absolute;
  top: 4px;
  height: 20px;
  border-radius: 999px;
  background: #0b1f3a;
  cursor: grab;
  padding: 0 10px;
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 4;
}

.gantt-title {
  flex: 1;
  cursor: default;
  user-select: none;
}

.gantt-bar.linking {
  outline: 2px solid #f79009;
  box-shadow: 0 0 0 3px rgba(247, 144, 9, 0.2);
}

.gantt-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.25);
}

.gantt-link-handle {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f79009;
  position: absolute;
  top: 6px;
  cursor: pointer;
}

.gantt-link-handle.start {
  left: 4px;
}

.gantt-link-handle.end {
  right: 4px;
}

.gantt-link-handle[data-link-color] {
  background: #f79009;
}

.gantt-handle {
  margin-left: auto;
  width: 10px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  cursor: ew-resize;
}

.gantt-today {
  position: absolute;
  top: -6px;
  bottom: -6px;
  width: 2px;
  background: #f04438;
  opacity: 0.9;
}

.gantt-meta {
  font-size: 11px;
  color: #667085;
}

.gantt-dep {
  font-size: 11px;
  color: #344054;
  margin-left: 6px;
}

.gantt-warning {
  color: #b42318;
  font-weight: 600;
}

.gantt-bar:active {
  cursor: grabbing;
}

.gantt-hint {
  font-size: 12px;
  color: #667085;
  margin-top: 6px;
}

.gantt-alerts {
  margin-top: 16px;
}

.gantt-tooltip {
  position: fixed;
  z-index: 60;
  background: #0b1f3a;
  color: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  pointer-events: none;
  box-shadow: 0 10px 20px rgba(16, 24, 40, 0.25);
  max-width: 220px;
}

.hidden {
  display: none;
}

.cursor-hint {
  position: fixed;
  z-index: 50;
  background: #101828;
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  pointer-events: none;
  transform: translate(10px, 10px);
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.2);
}

.row-actions {
  display: flex;
  gap: 8px;
}

.row-actions .ghost {
  padding: 6px 10px;
  font-size: 12px;
}

.accounting-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.accounting-tabs .ghost.active {
  border-color: #0b1f3a;
  color: #0b1f3a;
  font-weight: 600;
}

.ghost.active {
  border-color: #0b1f3a;
  color: #0b1f3a;
  font-weight: 600;
}

.accounting-view {
  display: none;
}

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

.pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: #f2f4f7;
  font-size: 12px;
  color: #475467;
}

@media print {
  .sidebar,
  .topbar,
  .report-actions,
  .nav,
  .toast {
    display: none !important;
  }

  .main {
    padding: 0;
  }

  .panel {
    border: none;
  }
}

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

  .sidebar {
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
  }

  .nav {
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .search input {
    min-width: 140px;
  }
}

body.auth-locked {
  overflow: hidden;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 31, 58, 0.68);
  display: grid;
  place-items: center;
  z-index: 9999;
}

.auth-card {
  width: min(420px, 90vw);
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
  display: grid;
  gap: 16px;
}

.auth-header {
  display: grid;
  gap: 6px;
}

.auth-title {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.5px;
}

.auth-subtitle {
  color: #667085;
  font-size: 14px;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #475467;
}

.auth-form input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d0d5dd;
}

.auth-submit {
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  background: #0b1f3a;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.auth-error {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef3f2;
  color: #b42318;
  font-size: 13px;
}

.auth-error.hidden {
  display: none;
}

.auth-switch {
  background: transparent;
  border: none;
  color: #1d4ed8;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
}
