:root {
  /* Primary Colors (Lacivert Palet) */
  --color-primary-50: #eff6ff;
  --color-primary-100: #dbeafe;
  --color-primary-200: #bfdbfe;
  --color-primary-300: #93c5fd;
  --color-primary-400: #60a5fa;
  --color-primary-500: #3b82f6;
  --color-primary-600: #2563eb;
  --color-primary-700: #1d4ed8;
  --color-primary-800: #1e40af;
  --color-primary-900: #1e3a8a;
  
  /* Semantic Colors */
  --color-primary: var(--color-primary-700);
  --color-primary-light: var(--color-primary-500);
  --color-primary-dark: var(--color-primary-900);
  
  /* Secondary Colors */
  --color-secondary: #64748b;
  --color-accent: #f59e0b;
  
  /* Text Colors */
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base button styles */
button {
  font-size: 14px;
  font-family: inherit;
  line-height: 1.5;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  transition: all 0.2s ease;
}

button:hover {
  opacity: 0.8;
}

button:active {
  opacity: 0.6;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Cyrillic", sans-serif;
  color: #101828;
  background: #f5f7fb;
}

/* Support for Cyrillic, Latin, and other scripts */
* {
  font-feature-settings: "liga" 1, "kern" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ensure proper encoding for all scripts */
html[lang="ru"] *,
html[lang="uz"] * {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Cyrillic", "Noto Sans Uzbek", sans-serif;
}

.app {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  transition: grid-template-columns 0.2s ease;
}

.app.is-sidebar-collapsed {
  grid-template-columns: 72px 1fr;
}

.app.is-sidebar-collapsed.is-sidebar-hovered {
  grid-template-columns: 260px 1fr;
}

.sidebar {
  background: #0b1f3a;
  color: #e6edf6;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  transition: padding 0.2s ease;
}

.sidebar.is-collapsed {
  padding: 16px 10px;
}

.company-card {
  margin-top: auto;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar.is-collapsed .company-card {
  padding: 10px;
  align-items: center;
}

.company-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.company-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.company-logo.has-image img {
  display: block;
}

.company-logo.has-image #companyLogoFallback {
  display: none;
}

#companyLogoFallback {
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}

.company-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.company-settings-icon {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: auto;
}

.company-settings-icon svg {
  width: 20px;
  height: 20px;
  fill: #e6edf6;
  stroke: none;
  display: block;
}

.company-settings-icon svg,
.company-settings-icon svg path {
  fill: #e6edf6 !important;
  stroke: none !important;
  width: 20px !important;
  height: 20px !important;
}

.company-card.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.company-name {
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.company-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.company-settings-btn {
  background: rgba(255, 255, 255, 0.12);
  text-align: center;
}

.company-settings-btn:hover,
.company-settings-btn.active {
  background: rgba(255, 255, 255, 0.2);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #f5a524;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.sidebar-pin {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sidebar-pin svg {
  width: 20px;
  height: 20px;
  fill: #e6edf6;
  stroke: none;
  display: block;
}

.sidebar-pin svg,
.sidebar-pin svg path {
  fill: #e6edf6 !important;
  stroke: none !important;
  width: 20px !important;
  height: 20px !important;
}

.sidebar.is-collapsed .sidebar-pin {
  right: 10px;
}

.sidebar-expand {
  display: none;
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #0b1f3a;
  font-size: 18px;
  cursor: pointer;
}

.sidebar.is-collapsed .sidebar-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.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;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.nav-text {
  white-space: nowrap;
}

.sidebar.is-collapsed .brand-text,
.sidebar.is-collapsed .nav-text,
.sidebar.is-collapsed .company-meta,
.sidebar.is-collapsed .company-settings-icon {
  display: none;
}

.sidebar.is-collapsed .nav-link {
  justify-content: center;
  padding: 10px 8px;
}

.sidebar.is-collapsed.is-hovered .brand-text {
  display: block;
}

.sidebar.is-collapsed.is-hovered .nav-text {
  display: inline;
}

.sidebar.is-collapsed.is-hovered .company-meta {
  display: flex;
}

.sidebar.is-collapsed.is-hovered .company-settings-icon {
  display: inline-flex;
}

.nav-link.active,
.nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

.main {
  padding: 24px 32px;
  overflow-x: hidden;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 24px;
  flex-wrap: nowrap;
  max-width: 100%;
}

.topbar-meta {
  color: #667085;
  margin-top: 6px;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-sep {
  margin: 0 8px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  max-width: 100%;
  min-width: 0;
}

.topbar-left {
  min-width: 220px;
  flex: 1 1 auto;
  min-width: 0;
}

.topbar-left h1 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search {
  flex: 0 1 260px;
  min-width: 160px;
}

.search input {
  width: 100%;
}

.topbar-control {
  display: flex;
  align-items: center;
}

.language-select-control select {
  min-width: 64px;
  padding: 6px 8px;
}

@media (max-width: 1200px) {
  .topbar,
  .topbar-right {
    flex-wrap: wrap;
  }
}

.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;
}

.error-banner {
  background: #fef3f2;
  color: #b42318;
  border: 1px solid #fecdca;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 12px;
}

.error-banner.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;
}

.language-select-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-flag {
  width: 18px;
  height: 14px;
  border-radius: 3px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.language-flag.lang-uz {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='28'%3E%3Crect width='36' height='28' fill='%2300A3E0'/%3E%3Crect y='9' width='36' height='10' fill='%23FFFFFF'/%3E%3Crect y='19' width='36' height='9' fill='%2321A365'/%3E%3Crect y='8' width='36' height='2' fill='%23D61F26'/%3E%3Crect y='18' width='36' height='2' fill='%23D61F26'/%3E%3C/svg%3E");
}

.language-flag.lang-tr {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='28'%3E%3Crect width='36' height='28' fill='%23E30A17'/%3E%3Ccircle cx='14' cy='14' r='7' fill='%23FFFFFF'/%3E%3Ccircle cx='16' cy='14' r='6' fill='%23E30A17'/%3E%3Cpolygon points='22,14 26,12 25,16' fill='%23FFFFFF'/%3E%3C/svg%3E");
}

.language-flag.lang-en {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='28'%3E%3Crect width='36' height='28' fill='%23012A87'/%3E%3Crect x='14' width='8' height='28' fill='%23FFFFFF'/%3E%3Crect y='10' width='36' height='8' fill='%23FFFFFF'/%3E%3Crect x='16' width='4' height='28' fill='%23C8102E'/%3E%3Crect y='12' width='36' height='4' fill='%23C8102E'/%3E%3C/svg%3E");
}

.language-flag.lang-ru {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='28'%3E%3Crect width='36' height='28' fill='%23FFFFFF'/%3E%3Crect y='9' width='36' height='10' fill='%230035A0'/%3E%3Crect y='19' width='36' height='9' fill='%23D52B1E'/%3E%3C/svg%3E");
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid #eaecf0;
  cursor: pointer;
  color: inherit;
  font: inherit;
  appearance: none;
  max-width: 220px;
  min-width: 0;
}

.user-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.user-menu-wrap {
  position: relative;
  display: flex;
  align-items: center;
  visibility: hidden;
}

.user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 220px;
  max-width: 300px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  z-index: 20;
}

.user-menu.hidden {
  display: none;
}

.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;
}

.user-menu-section {
  padding: 4px 0;
}

.user-menu-section:first-child {
  padding-top: 0;
}

.user-menu-section:last-child {
  padding-bottom: 0;
}

.user-menu-label {
  font-size: 11px;
  font-weight: 600;
  color: #667085;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 12px 4px;
  margin: 0;
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  color: #1d2939;
  border-radius: 6px;
  transition: background 0.15s ease;
  font-family: inherit;
}

.user-menu-item .company-name {
  color: #1d2939;
}

.user-menu-item:hover {
  background: #f9fafb;
}

.user-menu-item.active {
  background: #eff6ff;
  color: #1e40af;
  font-weight: 500;
}

.user-menu-item.active .company-name {
  color: #1e40af;
  font-weight: 500;
}

.user-menu-item .checkmark {
  margin-left: auto;
  color: #1e40af;
  font-weight: 600;
  font-size: 16px;
}

.company-logo-small {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.company-logo-placeholder {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #0b1f3a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.company-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-divider {
  height: 1px;
  background: #e4e7ec;
  margin: 4px 0;
  border: none;
}

.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.personnel-tabs {
  flex-wrap: wrap;
  gap: 8px;
}

.panel-actions.personnel-tabs .ghost {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 999px;
}

.panel-header.personnel-header {
  align-items: center;
  margin-bottom: 8px;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-actions .ghost {
  min-width: 34px;
  height: 34px;
  font-size: 18px;
  line-height: 1;
}

.employees-header .panel-actions {
  flex-wrap: wrap;
  gap: 8px;
}

.panel-actions.employees-tabs .ghost {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  min-width: auto;
  height: 34px;
}

.panel-actions.employees-tabs .ghost.active {
  background: #e7f0ff;
  border-color: #b7cffb;
  color: #0b1f3a;
}

/* Modern Tab Bar Tasarımı - SADECE çalışan modülü için */
.employees-tabs-modern {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  row-gap: 6px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(11, 31, 58, 0.04);
}

.employees-tabs-modern .tab-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  background: transparent;
  color: #475569;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  min-width: auto;
  height: auto;
  white-space: nowrap;
}

.employees-tabs-modern .tab-item:hover {
  background: #f1f5f9;
  color: #0b1f3a;
}

.employees-tabs-modern .tab-item.active {
  background: #ffffff;
  color: #0b1f3a;
  box-shadow: 0 2px 4px rgba(11, 31, 58, 0.08);
  font-weight: 600;
}

.employees-tabs-modern .tab-item.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 2px 2px 0 0;
}

.employees-tabs-modern .tab-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  flex-shrink: 0;
}

.employees-tabs-modern .tab-item.active .tab-icon {
  color: #3b82f6;
}

.employees-tabs-modern .tab-item span {
  line-height: 1;
}

.employees-tab-view {
  display: none;
}

.employees-tab-view.active {
  display: block;
}

.employees-tab-view .panel-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.timesheet-filters {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
  padding: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 20px;
  justify-content: flex-start;
  box-shadow: 0 2px 8px rgba(11, 31, 58, 0.06);
}

/* Eski timesheet-filters stilleri - artık kullanılmıyor ama geriye dönük uyumluluk için */
.timesheet-filters .filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timesheet-filters .filter-group label {
  font-size: 12px;
  font-weight: 600;
  color: #0b1f3a;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.timesheet-filters .input {
  min-width: 180px;
}

.timesheet-filters .filter-group .input {
  min-width: 150px;
}

.timesheet-filters .filter-search {
  flex: 1;
  min-width: 200px;
}

/* Çalışan ara kutusu vurgulu tasarım - SADECE puantaj için */
.timesheet-toolbar-unified .timesheet-search-input {
  border: 2px solid #d0d5dd !important;
  background: #ffffff !important;
  font-weight: 500;
  transition: all 0.2s;
  width: 100%;
}

.timesheet-toolbar-unified .timesheet-search-input:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
  outline: none;
  background: #f8fafc !important;
}

.timesheet-toolbar-unified .timesheet-search-input:hover {
  border-color: #98a2b3 !important;
}

/* Modern select stilleri - Temaya uyumlu, renkli ve premium görünüm */
.timesheet-filters select,
.employees-tab-view .panel-toolbar select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath fill='%230b1f3a' d='M7 10L0 0h14z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding: 10px 38px 10px 12px;
  border: 2px solid #d0d5dd;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #0b1f3a;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(11, 31, 58, 0.08);
  min-height: 42px;
}

.timesheet-filters select:hover {
  border-color: #0b1f3a;
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  box-shadow: 0 4px 12px rgba(11, 31, 58, 0.15), 0 0 0 3px rgba(11, 31, 58, 0.08);
  transform: translateY(-1px);
}

.timesheet-filters select:focus {
  border-color: #0b1f3a;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 4px 16px rgba(11, 31, 58, 0.2), 0 0 0 4px rgba(11, 31, 58, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.timesheet-filters select:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(11, 31, 58, 0.15);
}

/* Select option stilleri */
.timesheet-filters select option {
  padding: 12px;
  background: #ffffff;
  color: #0b1f3a;
  font-weight: 500;
}

.timesheet-filters select option:hover {
  background: #f8fafc;
}

.timesheet-filters select option:checked {
  background: #0b1f3a;
  color: #ffffff;
  font-weight: 600;
}

.employees-tab-view .panel-toolbar:not(.timesheet-filters) {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
  padding: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(11, 31, 58, 0.06);
}

.suggest-wrap {
  position: relative;
}

.suggest-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  z-index: 9999;
  max-height: 300px;
  overflow-y: auto;
  z-index: 20;
  max-height: 240px;
  overflow: auto;
}

.suggest-list.hidden {
  display: none;
}

.suggest-item {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s ease;
}

.suggest-item:last-child {
  border-bottom: none;
}

.suggest-item:hover {
  background: #f8fafc;
}

.suggest-item:active {
  background: #f1f5f9;
}

.suggest-name {
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 2px;
}

.suggest-sub {
  font-size: 12px;
  color: #64748b;
  line-height: 1.3;
  font-weight: 400;
}

#employeeTitlesList .table td:last-child {
  white-space: nowrap;
  text-align: right;
}

.table .link {
  padding: 0;
  background: none;
  border: none;
  color: #0b1f3a;
  cursor: pointer;
  text-align: left;
}

.table .link:hover {
  text-decoration: underline;
}

.timesheet-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.timesheet-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 8px;
}

.timesheet-detail-grid .day-input {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}

.timesheet-detail-grid input {
  padding: 6px 8px;
}

.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.reporting-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.reporting-list .report-row {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 12px;
}

.reporting-list .report-row.active {
  background: #e7f0ff;
  border-color: #b7cffb;
  color: #0b1f3a;
}

.employees-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.employees-settings-grid h3 {
  margin-bottom: 8px;
  font-size: 14px;
}

.employees-settings-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.employees-settings-title h3 {
  font-size: 18px;
  margin-bottom: 4px;
  color: #1d2939;
}

.employees-settings-title span {
  font-size: 13px;
  color: #667085;
}

.employees-settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e4e7ec;
  padding: 6px;
  border-radius: 12px;
}

.employees-settings-tab {
  border: 1px solid transparent;
  background: transparent;
  color: #475467;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.employees-settings-tab.active {
  background: #ffffff;
  color: #1d2939;
  border-color: #d0d5dd;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

.employees-settings-panels {
  display: block;
}

.employees-settings-panel {
  display: none;
}

.employees-settings-panel.active {
  display: block;
}

.settings-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.settings-section-header h3 {
  font-size: 15px;
  margin-bottom: 6px;
  color: #1d2939;
}

.settings-section-header p {
  font-size: 13px;
  color: #667085;
  line-height: 1.5;
  margin: 0;
}

.settings-section-header .primary {
  white-space: nowrap;
}

.employees-tab-view .input,
.employees-tab-view select,
.employees-tab-view input[type="month"] {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d0d5dd;
  background: #fff;
}

.month-filter-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.month-filter-label {
  font-size: 12px;
  font-weight: 600;
  color: #475467;
  display: flex;
  align-items: center;
  gap: 6px;
}

.month-filter-icon {
  width: 16px;
  height: 16px;
  color: #3b82f6;
  flex-shrink: 0;
}

.month-filter-input {
  padding: 10px 12px;
  border-radius: 8px;
  border: 2px solid #d0d5dd;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-width: 200px;
  background: #fff;
}

.month-filter-input:hover {
  border-color: #98a2b3;
}

.month-filter-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

.pending-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  font-size: 14px;
  font-weight: 500;
  color: #92400e;
}

.pending-badge.has-pending {
  background: #fee2e2;
  border-color: #fecaca;
  color: #991b1b;
}

.pending-icon {
  font-size: 16px;
}

.pending-text strong {
  font-weight: 700;
  font-size: 16px;
}

/* Tek satır toolbar - Premium tasarım */
.timesheet-toolbar-unified {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(11, 31, 58, 0.06);
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: visible !important;
  min-width: 0;
  position: relative;
  z-index: 1;
}

/* Toolbar left - sıfırdan temiz kurulum */
.timesheet-toolbar-unified .toolbar-left {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: nowrap;
  flex-shrink: 0;
  min-width: 0;
}

.timesheet-toolbar-unified .toolbar-left .filter-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  align-items: stretch !important;
  min-width: auto !important;
  max-width: none !important;
  flex: 0 1 auto !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  margin-right: 0 !important;
}

.timesheet-toolbar-unified .toolbar-right {
  display: flex !important;
  gap: 12px !important;
  align-items: flex-end !important;
  flex-wrap: nowrap !important;
  flex-shrink: 0 !important;
  min-width: 0 !important;
}

/* Tüm input, select ve button'lar için eşit yükseklik */
.timesheet-toolbar-unified .month-filter-input,
.timesheet-toolbar-unified .input,
.timesheet-toolbar-unified select.input,
.timesheet-toolbar-unified .timesheet-search-input,
.timesheet-toolbar-unified button.ghost,
.timesheet-toolbar-unified button.primary {
  height: 42px;
  box-sizing: border-box;
}

.timesheet-toolbar-unified .month-filter-input {
  padding: 10px 12px;
  font-size: 14px;
}

/* Multi-select month picker styles */
.timesheet-month-selector {
  position: relative;
  min-width: 180px;
  overflow: visible !important;
  z-index: 100 !important;
}

.timesheet-month-selector-button {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: all 0.2s;
  box-sizing: border-box;
  height: 42px;
}

.timesheet-month-selector-button:hover {
  border-color: #98a2b3;
}

.timesheet-month-selector-button:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

.timesheet-month-selector-button .dropdown-arrow {
  width: 16px;
  height: 16px;
  color: #64748b;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.timesheet-month-selector-dropdown {
  position: fixed !important;
  background: #fff !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12) !important;
  z-index: 99999 !important;
  max-height: 300px;
  overflow-y: auto;
  overflow-x: visible !important;
  padding: 8px;
  min-width: 200px;
}

.timesheet-month-selector-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timesheet-month-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.timesheet-month-option:hover {
  background: #f8fafc;
}

.timesheet-month-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.timesheet-month-option span {
  font-size: 14px;
  color: #0f172a;
  flex: 1;
}

/* Month column in table */
.timesheet-grid table th:first-child,
.timesheet-grid table td:first-child {
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 2;
  border-right: 2px solid #e2e8f0;
  font-weight: 600;
  min-width: 100px;
}

.timesheet-grid table tbody tr td:first-child {
  background: #f8fafc;
}

.timesheet-toolbar-unified .input,
.timesheet-toolbar-unified select.input {
  padding: 10px 12px;
  font-size: 14px;
}

/* Şantiye ve Ünvan select'lerinden dropdown arrow'ı kaldır */
.timesheet-toolbar-unified select.input {
  background-image: none !important;
  padding: 10px 12px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
}

.timesheet-toolbar-unified button.ghost,
.timesheet-toolbar-unified button.primary {
  padding: 10px 16px;
  font-size: 14px;
}

/* Filter group eşit boyutlar - SADECE puantaj toolbar'ı için */

.timesheet-toolbar-unified .filter-group label {
  font-size: 12px;
  font-weight: 600;
  color: #0b1f3a;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 0;
}

/* Puantaj toolbar'ındaki suggest-list için özel z-index - toolbar'dan dışarı çıkabilmeli */
.timesheet-toolbar-unified .filter-group.filter-search {
  overflow: visible !important;
  position: relative !important;
  z-index: 100 !important;
}

.timesheet-toolbar-unified .suggest-wrap {
  position: relative !important;
  z-index: 100 !important;
  overflow: visible !important;
}

.timesheet-toolbar-unified .suggest-list {
  position: fixed !important;
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(11, 31, 58, 0.15) !important;
  max-height: 300px !important;
  overflow-y: auto !important;
  overflow-x: visible !important;
  z-index: 99999 !important;
  display: block !important;
}

.timesheet-toolbar-unified .suggest-list.hidden {
  display: none !important;
}

/* Pending badge - sadece görünür olduğunda */
.timesheet-toolbar-unified .pending-badge {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  height: 42px;
  border-radius: 8px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  font-size: 14px;
  font-weight: 500;
  color: #92400e;
  white-space: nowrap;
}

.timesheet-toolbar-unified .pending-badge.has-pending {
  display: inline-flex;
}

.timesheet-toolbar-unified .pending-icon {
  font-size: 16px;
}

.timesheet-toolbar-unified .pending-text strong {
  font-weight: 700;
  font-size: 14px;
}

/* Çalışan ekle butonu - özel renk, en solda */
.timesheet-add-employee {
  background: #10b981;
  color: #ffffff;
  border: 2px solid #10b981;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  height: 42px;
  transition: all 0.2s;
  cursor: pointer;
}

.timesheet-add-employee:hover {
  background: #059669;
  border-color: #059669;
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
  transform: translateY(-1px);
}

.timesheet-add-employee:active {
  transform: translateY(0);
}

/* Düzenle butonu - özel renk */
.timesheet-edit-btn {
  background: #8b5cf6;
  color: #ffffff;
  border: 2px solid #8b5cf6;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(139, 92, 246, 0.2);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  height: 42px;
  transition: all 0.2s;
  cursor: pointer;
  white-space: nowrap;
}

.timesheet-edit-btn:hover {
  background: #7c3aed;
  border-color: #7c3aed;
  box-shadow: 0 4px 8px rgba(139, 92, 246, 0.3);
  transform: translateY(-1px);
}

.timesheet-edit-btn.active {
  background: #6d28d9;
  border-color: #6d28d9;
  box-shadow: 0 2px 4px rgba(109, 40, 217, 0.3);
}

.timesheet-edit-btn:active {
  transform: translateY(0);
}

/* Edit mode actions container */
.edit-mode-actions {
  display: none;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* Edit mode butonları - düzenle butonu ile aynı renk */
.edit-mode-btn {
  background: #8b5cf6 !important;
  color: #ffffff !important;
  border-color: #8b5cf6 !important;
  font-weight: 600;
}

.edit-mode-btn:hover {
  background: #7c3aed !important;
  border-color: #7c3aed !important;
}

.edit-mode-btn.pending-badge {
  background: #8b5cf6 !important;
  border-color: #7c3aed !important;
  color: #ffffff !important;
  display: inline-flex !important;
}

.edit-mode-btn.pending-badge.has-pending {
  background: #7c3aed !important;
  border-color: #6d28d9 !important;
}

.edit-mode-btn.ghost {
  background: #8b5cf6 !important;
  color: #ffffff !important;
  border-color: #8b5cf6 !important;
}

.edit-mode-btn.ghost:hover {
  background: #7c3aed !important;
  border-color: #7c3aed !important;
}

/* Seç butonu - düzenle butonunun yanında */
.timesheet-select-btn {
  background: #10b981;
  color: #ffffff;
  border: 2px solid #10b981;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
  cursor: pointer;
  white-space: nowrap;
  margin-left: 8px;
}

.timesheet-select-btn:hover {
  background: #059669;
  border-color: #059669;
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
  transform: translateY(-1px);
}

.timesheet-select-btn.active {
  background: #047857;
  border-color: #047857;
  box-shadow: 0 2px 4px rgba(4, 120, 87, 0.3);
}

.timesheet-select-btn:active {
  transform: translateY(0);
}

/* Payroll role-site access table */
.role-sites-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.role-site-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
  user-select: none;
}

.role-site-checkbox:hover {
  background: #f1f5f9;
}

.role-site-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #8b5cf6;
}

.role-site-checkbox span {
  font-size: 14px;
  color: #475467;
}

/* Datalist option styling - name and tab no in readable format */
datalist option {
  padding: 8px 12px;
  font-size: 14px;
}

/* Input field styling for employee selection */
input[list="employeeOptions"] {
  font-size: 14px;
}

input[list="employeeOptions"]::placeholder {
  color: #94a3b8;
}

/* Selection mode actions */
.selection-mode-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.selection-mode-actions button.danger {
  background: #dc2626;
  color: #ffffff;
  border: 2px solid #dc2626;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
  cursor: pointer;
  white-space: nowrap;
}

.selection-mode-actions button.danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
  transform: translateY(-1px);
}

.selection-mode-actions button.danger:active {
  transform: translateY(0);
}

/* Row selection checkbox */
.row-select-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #8b5cf6;
}

.timesheet-grid th:first-child {
  width: 40px;
  text-align: center;
}

.timesheet-grid td:first-child {
  text-align: center;
}

.timesheet-grid {
  overflow: visible;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 0;
}

.timesheet-grid table {
  border-collapse: collapse;
  width: max-content;
  min-width: 100%;
}

.timesheet-grid th,
.timesheet-grid td {
  border-bottom: 1px solid #eef2f6;
  padding: 6px 4px;
  white-space: nowrap;
}

.timesheet-grid th {
  position: sticky !important;
  top: 0 !important;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
  background-color: #f8fafc !important;
  z-index: 20 !important;
  font-weight: 600;
  color: #475467;
  border-bottom: 2px solid #e2e8f0;
}

.timesheet-grid th:first-child,
.timesheet-grid td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
}

.timesheet-grid th:first-child {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
  background-color: #f8fafc !important;
  z-index: 21 !important;
}

/* Sticky sütunlar için zebra striping uyumu */
.timesheet-grid tbody tr:nth-child(even) td:first-child {
  background: #fafbfc;
}

.timesheet-grid tbody tr:nth-child(odd) td:first-child {
  background: #ffffff;
}

.timesheet-grid tbody tr:hover td:first-child {
  background: #f1f5f9;
}

/* Pending hücre vurgusu - SADECE puantaj tablosu için */
.timesheet-grid td.pending-cell {
  background: #fef3c7 !important; /* Hafif sarı */
  border-left: 3px solid #f59e0b;
}

.timesheet-grid tbody tr:hover td.pending-cell {
  background: #fde68a !important;
}

.timesheet-grid td.pending-cell input {
  border-color: #f59e0b;
  font-weight: 600;
}

.timesheet-grid td.pending-cell.day-weekend-sunday {
  background: #fef2f2 !important;
  border-left: 3px solid #f59e0b;
}

.timesheet-grid td.pending-cell.day-weekend-saturday {
  background: #f0f9ff !important;
  border-left: 3px solid #f59e0b;
}

.timesheet-grid tbody tr:hover td.pending-cell.day-weekend-sunday {
  background: #fee2e2 !important;
}

.timesheet-grid tbody tr:hover td.pending-cell.day-weekend-saturday {
  background: #e0f2fe !important;
}

.timesheet-grid input {
  width: 40px;
  padding: 4px 4px;
  border-radius: 6px;
  border: 1px solid #d0d5dd;
  font-size: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* Number input spinner'ları kaldır - SADECE puantaj tablosu için */
.timesheet-grid input[type="number"]::-webkit-inner-spin-button,
.timesheet-grid input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.timesheet-grid input[type="number"] {
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
  appearance: textfield;
}

.timesheet-grid input:hover {
  border-color: #98a2b3;
}

.timesheet-grid input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

/* Tablo zebra striping - SADECE puantaj tablosu için */
.timesheet-grid tbody tr:nth-child(even) {
  background: #fafbfc;
}

.timesheet-grid tbody tr:nth-child(odd) {
  background: #ffffff;
}

.timesheet-grid tbody tr:hover {
  background: #f1f5f9;
  transition: background 0.15s ease;
}

/* Hafta sonu vurgusu - SADECE puantaj tablosu için */
.timesheet-grid th.day-weekend-sunday,
.timesheet-grid td.day-weekend-sunday {
  background: #fef2f2;
}

.timesheet-grid th.day-weekend-saturday,
.timesheet-grid td.day-weekend-saturday {
  background: #f0f9ff;
}

.timesheet-grid tbody tr:hover .day-weekend-sunday {
  background: #fee2e2;
}

.timesheet-grid tbody tr:hover .day-weekend-saturday {
  background: #e0f2fe;
}

/* Toplam sütunu - SADECE puantaj tablosu için */
.timesheet-grid td:nth-last-child(2) {
  background: #f8fafc;
  font-weight: 600;
  color: #0b1f3a;
  font-size: 13px;
}

.timesheet-grid tbody tr:hover td:nth-last-child(2) {
  background: #f1f5f9;
}

/* Brüt sütunu - SADECE puantaj tablosu için */
.timesheet-grid td:nth-last-child(1) {
  background: #f0f9ff;
  font-weight: 600;
  color: #0369a1;
  font-size: 13px;
}

.timesheet-grid tbody tr:hover td:nth-last-child(1) {
  background: #e0f2fe;
}

/* Input durumları - SADECE puantaj tablosu için */
.timesheet-grid input:not(:disabled):not([value=""]) {
  background: #ffffff;
  border-color: #94a3b8;
  font-weight: 500;
}

.timesheet-grid input:not(:disabled)[value=""] {
  background: #fafbfc;
  border-color: #cbd5e1;
}

/* Disabled input'lar için okunabilirlik - SADECE puantaj tablosu */
.timesheet-grid input[type="number"]:disabled {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important; /* Gri ama okunabilir */
  cursor: not-allowed;
  opacity: 1; /* Opacity yerine renk kullan */
  font-weight: 400;
}

.timesheet-grid input[type="number"]:disabled::placeholder {
  color: #94a3b8;
}

/* Çalışan adı - SADECE puantaj tablosu için */
.timesheet-grid td:first-child button {
  font-weight: 600;
  color: #0b1f3a;
  transition: all 0.2s;
}

.timesheet-grid tbody tr:hover td:first-child button {
  text-decoration: underline;
  color: #0369a1;
}

.reporting-grid-container {
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  max-height: calc(100vh - 300px);
}

.analysis-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  margin-bottom: 12px;
}

.analysis-header h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.analysis-header p {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

.analysis-meta {
  margin-top: 6px;
  font-size: 11px;
  color: #9ca3af;
}

.analysis-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
}

.analysis-filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: #6b7280;
}

.analysis-filters select {
  min-width: 160px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #ffffff;
}

.analysis-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 0;
}

.analysis-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  padding: 10px 12px;
}

.analysis-card h4 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.analysis-metric {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}

.analysis-metric strong {
  font-size: 13px;
  color: #111827;
}

.analysis-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: #1d2939;
}

.analysis-chips span {
  background: #f3f4f6;
  padding: 3px 8px;
  border-radius: 999px;
}

.analysis-table {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.analysis-table-wrapper {
  overflow: auto;
}

.analysis-table-grid {
  border-collapse: collapse;
  width: 100%;
  min-width: 720px;
}

.analysis-table-grid th,
.analysis-table-grid td {
  border-bottom: 1px solid #f1f5f9;
  padding: 8px 10px;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
}

.analysis-table-grid tbody tr:nth-child(even) td {
  background: #fafafa;
}

.analysis-table-grid tbody tr:hover td {
  background: #f3f4f6;
}

.analysis-table-grid thead th {
  background: #f9fafb;
  position: sticky;
  top: 0;
  z-index: 1;
}

.analysis-table-grid tfoot td {
  font-weight: 600;
  background: #f9fafb;
}

.reporting-tooltip {
  position: absolute;
  z-index: 1000;
  background: #0f172a;
  color: #f8fafc;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-line;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
  max-width: 240px;
}

.reporting-tooltip.hidden {
  display: none;
}

/* Gross Calculation Tooltip */
.gross-cell {
  cursor: help;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: #94a3b8;
  text-underline-offset: 3px;
}

.gross-tooltip {
  position: fixed;
  display: none;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #fff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  min-width: 350px;
  max-width: 450px;
  font-size: 12px;
  line-height: 1.6;
  border: 1px solid #475569;
  pointer-events: none;
}

.gross-tooltip-header {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #475569;
  color: #60a5fa;
}

.gross-tooltip-contract {
  margin-bottom: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border-left: 3px solid #60a5fa;
}

.contract-name {
  font-weight: 600;
  color: #93c5fd;
  margin-bottom: 6px;
}

.gross-tooltip-contract > div {
  margin: 3px 0;
  color: #cbd5e1;
}

.contract-subtotal {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid #475569;
  color: #60a5fa !important;
}

.gross-tooltip-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 2px solid #475569;
  font-size: 13px;
  color: #34d399;
  text-align: right;
}

.reporting-employee-info {
  cursor: help;
}

.analysis-section {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  margin-bottom: 12px;
}

.analysis-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.analysis-section-header h4 {
  margin: 0;
  font-size: 13px;
  color: #111827;
  font-weight: 600;
}

.analysis-section .analysis-table {
  margin-top: 10px;
}

.reporting-grid-table {
  border-collapse: separate;
  border-spacing: 0 14px;
  width: max-content;
  min-width: 100%;
  font-size: 12px;
}

.reporting-grid-table th,
.reporting-grid-table td {
  border-bottom: none;
  padding: 12px 14px;
  white-space: nowrap;
  text-align: center;
}

.reporting-grid-table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  z-index: 1;
  font-weight: 600;
  color: #475467;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.reporting-grid-table th.reporting-day-header {
  font-size: 10px;
  padding: 4px 6px;
  color: #9ca3af;
}

.reporting-grid-table th.disabled {
  color: #cbd5e1;
}

.reporting-grid-table td.disabled {
  background: #f8fafc;
}

.reporting-employee-col {
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 2;
  min-width: 200px;
  text-align: left;
  padding: 12px 16px;
}

.reporting-actions-col {
  position: sticky;
  left: 180px;
  background: #fff;
  z-index: 2;
  min-width: 110px;
  text-align: center;
  padding: 12px;
}

.reporting-grid-table thead th.reporting-employee-col,
.reporting-grid-table thead th.reporting-actions-col {
  background: #f8fafc;
  z-index: 3;
}

.reporting-grid-table tbody tr td {
  background: #ffffff;
}

.reporting-grid-table tbody tr td:not([data-day]) {
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 16px;
  font-size: 12px;
  color: #111827;
}

.reporting-grid-table tbody tr {
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.04);
}

.reporting-grid-table tbody tr td:not([data-day]):first-child {
  border-left: 1px solid #e5e7eb;
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}

.reporting-grid-table tbody tr td:not([data-day]):last-child {
  border-right: 1px solid #e5e7eb;
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}

.reporting-grid-table tbody tr td[data-day] {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  padding: 4px;
}

.reporting-employee-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reporting-employee-name-text {
  font-weight: 600;
  color: #111827;
  font-size: 13px;
}

.reporting-employee-meta {
  font-size: 11px;
  color: #6b7280;
}

.reporting-actions {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.reporting-actions button.mini {
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 6px;
}

.reporting-input {
  width: 28px;
  padding: 4px 4px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 10px;
  text-align: center;
}

.reporting-input:focus {
  outline: none;
  border-color: #94a3b8;
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.15);
}

.reporting-grid-table tbody tr:hover {
  background: transparent;
}

.reporting-grid-table tbody tr:hover .reporting-employee-col,
.reporting-grid-table tbody tr:hover .reporting-actions-col {
  background: #f9fafb;
  transition: background 0.15s ease;
}

.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;
  color: #475467;
}

.filter-button.active {
  border-color: #7aa7ff;
  background: #eaf2ff;
}

.filter-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  fill: currentColor;
  stroke: none;
  display: block;
}

.filter-icon,
.filter-icon path {
  fill: currentColor !important;
  stroke: none !important;
  width: 16px !important;
  height: 16px !important;
}

.filter-button.active .filter-icon,
.filter-button.active .filter-icon path {
  fill: #2b6ee7 !important;
}

.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;
}

.link-button {
  padding: 4px 8px;
  font-size: 12px;
  text-decoration: underline;
  line-height: 1;
  min-height: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: grid;
  place-items: center;
  z-index: 1000;
  pointer-events: auto;
}

.modal.payment-temp-modal {
  z-index: 2000 !important;
  position: fixed !important;
}

.modal-content.payment-modal-content {
  position: relative;
  z-index: 2001 !important;
}

/* Modal açıkken arkadaki input'ları devre dışı bırak */
body.modal-open .app > *:not(.modal) {
  pointer-events: none;
  user-select: none;
  position: relative;
  z-index: 1;
}

body.modal-open .app > .modal {
  pointer-events: auto;
  z-index: 1000;
}

/* Modal açıkken arka plandaki tüm elementlerin z-index'ini düşür */
body.modal-open .app > *:not(.modal),
body.modal-open .panel-toolbar,
body.modal-open .employees-tab-view,
body.modal-open .suggest-list,
body.modal-open .suggest-wrap {
  z-index: 1 !important;
}

body.modal-open input:not(.modal input),
body.modal-open select:not(.modal select),
body.modal-open textarea:not(.modal textarea) {
  pointer-events: none !important;
  opacity: 0.5 !important;
  background-color: #f1f5f9 !important;
  cursor: not-allowed !important;
  z-index: 1 !important;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  border-radius: 16px;
  width: min(520px, 90vw);
  padding: 18px;
  border: 1px solid #eaecf0;
}

.modal-content.employee-profile {
  width: min(1000px, 95vw);
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
}

.modal-content.employee-files {
  width: min(900px, 95vw);
  max-height: 90vh;
  padding: 24px;
}

/* Employee Type Modal */
.modal-content.employee-type-modal {
  width: min(1150px, 95vw);
  max-height: 85vh;
  overflow-y: auto;
}

.personnel-hours-modal {
  width: min(720px, 92vw);
}

.personnel-hours-total {
  margin-top: 12px;
  font-weight: 600;
  text-align: right;
}

.personnel-hours-modal .table th,
.personnel-hours-modal .table td {
  padding: 6px 8px;
  font-size: 12px;
}

#personnelHoursBody {
  max-height: 60vh;
  overflow: auto;
}

.personnel-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.personnel-layout.is-collapsed {
  grid-template-columns: 36px minmax(0, 1fr);
}

.personnel-layout.is-collapsed.is-hovered {
  grid-template-columns: 280px minmax(0, 1fr);
}

.personnel-sidebar {
  background: #fff;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  padding: 12px;
  max-height: calc(100vh - 220px);
  overflow: auto;
  position: sticky;
  top: 16px;
}

.personnel-sidebar-header {
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.personnel-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}

.personnel-group:hover {
  background: #f2f4f7;
}

.personnel-group.active {
  background: #e7f0ff;
  color: #0b1f3a;
  font-weight: 600;
}

.personnel-subgroup {
  margin-left: 8px;
  border-left: 2px solid #eef2f6;
  padding-left: 8px;
}

.personnel-group-count {
  color: #667085;
  font-size: 12px;
}

.toggle-button {
  border: 1px solid #d0d5dd;
  background: #fff;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  margin-right: 6px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pin-icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #0b1f3a;
  stroke-width: 1.6;
}


.personnel-subgroup .personnel-group {
  padding-left: 6px;
}

.personnel-content {
  max-height: calc(100vh - 220px);
  overflow: auto;
}

.table.table-compact th,
.table.table-compact td {
  padding: 6px 8px;
  font-size: 12px;
}

.table.table-compact th .filter-button {
  width: 18px;
  height: 18px;
}

.personnel-layout.is-collapsed .personnel-sidebar-content {
  display: none;
}

.personnel-layout.is-collapsed.is-hovered .personnel-sidebar-content {
  display: block;
}

.personnel-layout.is-collapsed .personnel-sidebar {
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.personnel-layout.is-collapsed .personnel-sidebar-header {
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}

.personnel-layout.is-collapsed .personnel-sidebar-header span {
  display: none;
}

.personnel-layout.is-collapsed.is-hovered .personnel-sidebar {
  align-items: stretch;
  justify-content: flex-start;
  padding: 12px;
}

.personnel-layout.is-collapsed.is-hovered .personnel-sidebar-header {
  flex-direction: row;
  gap: 8px;
  margin-bottom: 8px;
}

.personnel-layout.is-collapsed.is-hovered .personnel-sidebar-header span {
  display: inline;
}

.personnel-sidebar-collapsed-label {
  display: none;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 12px;
  color: #667085;
  letter-spacing: 1px;
  font-weight: 600;
}

.personnel-layout.is-collapsed .personnel-sidebar-collapsed-label {
  display: block;
}

.personnel-layout.is-collapsed.is-hovered .personnel-sidebar-collapsed-label {
  display: none;
}

#personnelP2Pin,
#personnelP3Pin {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  padding: 0;
}

/* Timesheet Layout ve Sidebar - Personnel P2 benzeri */
.timesheet-layout {
  position: relative;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.timesheet-layout.is-collapsed {
  grid-template-columns: 0 minmax(0, 1fr);
  gap: 0;
}

.timesheet-layout.is-collapsed.is-hovered {
  grid-template-columns: 280px minmax(0, 1fr);
}

/* Hover zone for collapsed sidebar */
.timesheet-layout.is-collapsed::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  z-index: 10;
  cursor: pointer;
  pointer-events: none;
}

/* Hover zone for collapsed sidebar (JS controlled) */
.timesheet-hover-zone {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 16px;
  z-index: 12;
  background: transparent;
}

.timesheet-layout:not(.is-collapsed) .timesheet-hover-zone {
  display: none;
}

.timesheet-sidebar {
  background: #fff;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  padding: 12px;
  max-height: calc(100vh - 220px);
  overflow: auto;
  position: sticky;
  top: 16px;
}

.timesheet-sidebar-header {
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.timesheet-sidebar-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}

.timesheet-sidebar-actions .toggle-button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d0d5dd;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.timesheet-sidebar-actions .toggle-button:hover {
  background: #f8fafc;
  border-color: #98a2b3;
}

.timesheet-sidebar-actions .toggle-button.is-pinned {
  background: #e7f0ff;
  border-color: #7aa7ff;
}

.timesheet-sidebar-actions .settings-icon,
.timesheet-sidebar-actions .pin-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.timesheet-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
  margin-bottom: 2px;
}

.timesheet-group:hover {
  background: #f3e8ff;
  transform: translateX(2px);
}

.timesheet-group.active {
  background: #e0f2fe;
  color: #0b1f3a;
  font-weight: 600;
  border-left: 3px solid #3b82f6;
}

/* Enhanced hover effects - parent group highlighting */
.timesheet-group.hover-highlight,
.timesheet-group.hover-highlight:hover {
  background: #e0e7ff !important;
  color: #4338ca !important;
  font-weight: 600;
  border-left: 3px solid #6366f1;
  transform: translateX(2px);
}

.timesheet-group.hover-highlight .timesheet-group-count {
  background: #6366f1 !important;
  color: #fff !important;
}

.timesheet-subgroup {
  margin-left: 12px;
  border-left: 2px solid #eef2f6;
  padding-left: 12px;
  margin-top: 4px;
}

.timesheet-group-count {
  color: #667085;
  font-size: 12px;
  font-weight: 500;
  background: #f8fafc;
  padding: 2px 8px;
  border-radius: 12px;
}

.timesheet-group.active .timesheet-group-count {
  background: #3b82f6;
  color: #fff;
}

.timesheet-sidebar-content {
  display: block;
}

.timesheet-layout.is-collapsed .timesheet-sidebar-content {
  display: none;
}

.timesheet-layout.is-collapsed.is-hovered .timesheet-sidebar-content {
  display: block;
}

.timesheet-layout.is-collapsed .timesheet-sidebar {
  display: none;
  opacity: 0;
  pointer-events: none;
  width: 0;
  min-width: 0;
  max-width: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

.timesheet-layout.is-collapsed.is-hovered .timesheet-sidebar {
  display: block;
  opacity: 1;
  pointer-events: auto;
  width: 100%;
  min-width: auto;
  max-width: none;
  padding: 12px;
  align-items: stretch;
  justify-content: flex-start;
}

.timesheet-layout.is-collapsed.is-hovered .timesheet-sidebar-header {
  flex-direction: row;
  gap: 8px;
  margin-bottom: 8px;
}

.timesheet-layout.is-collapsed.is-hovered .timesheet-sidebar-header span {
  display: inline;
}

.timesheet-sidebar-collapsed-label {
  display: none;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 12px;
  color: #667085;
  letter-spacing: 1px;
  font-weight: 600;
}

.timesheet-layout.is-collapsed .timesheet-sidebar-collapsed-label {
  display: block;
}

.timesheet-layout.is-collapsed.is-hovered .timesheet-sidebar-collapsed-label {
  display: none;
}

.timesheet-content {
  grid-column: 2 / -1;
  display: block;
  width: 100%;
  min-width: 0;
  max-height: calc(100vh - 220px);
  overflow: auto;
  position: relative;
}

/* Ensure content is always visible when sidebar is collapsed */
.timesheet-layout.is-collapsed .timesheet-content {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

/* Minimal scrollbar styling */
.timesheet-sidebar::-webkit-scrollbar,
.timesheet-content::-webkit-scrollbar,
.column-visibility-list::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

/* ============================================
   PAYROLL (Maaş Raporu) STYLES
   Puantaj sayfası stillerinden uyarlanmış
   ============================================ */

/* Payroll Toolbar - Timesheet toolbar stillerinden uyarlanmış */
.payroll-toolbar-unified {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(11, 31, 58, 0.06);
  flex-wrap: wrap;
}

.payroll-toolbar-unified .toolbar-left {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.payroll-toolbar-unified .toolbar-right {
  display: flex !important;
  gap: 12px !important;
  align-items: flex-end !important;
  flex-wrap: nowrap !important;
  flex-shrink: 0 !important;
  min-width: 0 !important;
}

.payroll-toolbar-unified .filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.payroll-toolbar-unified .filter-group label {
  font-size: 12px;
  font-weight: 600;
  color: #0b1f3a;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 0;
}

.payroll-toolbar-unified .input,
.payroll-toolbar-unified select.input,
.payroll-toolbar-unified .month-filter-input,
.payroll-toolbar-unified .payroll-search-input,
.payroll-toolbar-unified button.ghost,
.payroll-toolbar-unified button.primary {
  height: 42px;
  box-sizing: border-box;
  padding: 10px 12px;
  font-size: 14px;
}

.payroll-toolbar-unified .payroll-search-input {
  border: 2px solid #d0d5dd !important;
  background: #ffffff !important;
  font-weight: 500;
  transition: all 0.2s;
  width: 100%;
}

.payroll-toolbar-unified .payroll-search-input:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
  outline: none;
  background: #f8fafc !important;
}

.payroll-toolbar-unified .payroll-search-input:hover {
  border-color: #98a2b3 !important;
}

.payroll-toolbar-unified select.input {
  background-image: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
}

.payroll-toolbar-unified .filter-group.filter-search {
  overflow: visible !important;
  position: relative !important;
  z-index: 100 !important;
}

.payroll-toolbar-unified .suggest-wrap {
  position: relative !important;
  z-index: 100 !important;
  overflow: visible !important;
}

.payroll-toolbar-unified .suggest-list {
  position: fixed !important;
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(11, 31, 58, 0.15) !important;
  max-height: 300px !important;
  overflow-y: auto !important;
  overflow-x: visible !important;
  z-index: 99999 !important;
  display: block !important;
}

.payroll-toolbar-unified .suggest-list.hidden {
  display: none !important;
}

/* Payroll Layout - Timesheet layout stillerinden uyarlanmış */
.payroll-layout {
  position: relative;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.payroll-layout.is-collapsed {
  grid-template-columns: 0 minmax(0, 1fr);
  gap: 0;
}

.payroll-layout.is-collapsed.is-hovered {
  grid-template-columns: 280px minmax(0, 1fr);
}

.payroll-hover-zone {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 24px;
  z-index: 12;
  background: transparent;
  cursor: pointer;
}

.payroll-layout:not(.is-collapsed) .payroll-hover-zone {
  display: none;
}

/* Payroll Sidebar - Timesheet sidebar stillerinden uyarlanmış */
.payroll-sidebar {
  background: #fff;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  padding: 12px;
  max-height: calc(100vh - 220px);
  overflow: auto;
  position: sticky;
  top: 16px;
}

.payroll-sidebar-header {
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.payroll-sidebar-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}

.payroll-sidebar-actions .toggle-button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d0d5dd;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.payroll-sidebar-actions .toggle-button:hover {
  background: #f8fafc;
  border-color: #98a2b3;
}

.payroll-sidebar-actions .toggle-button.is-pinned {
  background: #e7f0ff;
  border-color: #7aa7ff;
}

.payroll-sidebar-actions .settings-icon,
.payroll-sidebar-actions .pin-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.payroll-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
  margin-bottom: 2px;
}

.payroll-group:hover {
  background: #f3e8ff;
  transform: translateX(2px);
}

.payroll-group.active {
  background: #e0f2fe;
  color: #0b1f3a;
  font-weight: 600;
  border-left: 3px solid #3b82f6;
}

.payroll-group.hover-highlight,
.payroll-group.hover-highlight:hover {
  background: #e0e7ff !important;
  color: #4338ca !important;
  font-weight: 600;
  border-left: 3px solid #6366f1;
  transform: translateX(2px);
}

.payroll-group.hover-highlight .payroll-group-count {
  background: #6366f1 !important;
  color: #fff !important;
}

.payroll-subgroup {
  margin-left: 12px;
  border-left: 2px solid #eef2f6;
  padding-left: 12px;
  margin-top: 4px;
}

.payroll-group-count {
  color: #667085;
  font-size: 12px;
  font-weight: 500;
  background: #f8fafc;
  padding: 2px 8px;
  border-radius: 12px;
}

.payroll-group.active .payroll-group-count {
  background: #3b82f6;
  color: #fff;
}

.payroll-sidebar-content {
  display: block;
}

.payroll-layout.is-collapsed .payroll-sidebar-content {
  display: none;
}

.payroll-layout.is-collapsed.is-hovered .payroll-sidebar-content {
  display: block;
}

.payroll-layout.is-collapsed .payroll-sidebar {
  display: none;
  opacity: 0;
  pointer-events: none;
  width: 0;
  min-width: 0;
  max-width: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

.payroll-layout.is-collapsed.is-hovered .payroll-sidebar {
  display: block;
  opacity: 1;
  pointer-events: auto;
  width: 100%;
  min-width: auto;
  max-width: none;
  padding: 12px;
  align-items: stretch;
  justify-content: flex-start;
}

.payroll-layout.is-collapsed.is-hovered .payroll-sidebar-header {
  flex-direction: row;
  gap: 8px;
  margin-bottom: 8px;
}

.payroll-layout.is-collapsed.is-hovered .payroll-sidebar-header span {
  display: inline;
}

.payroll-sidebar-collapsed-label {
  display: none;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 12px;
  color: #667085;
  letter-spacing: 1px;
  font-weight: 600;
}

.payroll-layout.is-collapsed .payroll-sidebar-collapsed-label {
  display: block;
}

.payroll-layout.is-collapsed.is-hovered .payroll-sidebar-collapsed-label {
  display: none;
}

/* Payroll Content - Timesheet content stillerinden uyarlanmış */
.payroll-content {
  grid-column: 2 / -1;
  display: block;
  width: 100%;
  min-width: 0;
  max-height: calc(100vh - 220px);
  overflow: auto;
  position: relative;
}

.payroll-layout.is-collapsed .payroll-content {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

/* Payroll Grid - Timesheet grid stillerinden uyarlanmış */
.payroll-grid {
  overflow: visible;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 0;
}

.payroll-grid table {
  border-collapse: separate;
  border-spacing: 0 8px;
  width: 100%;
  min-width: 100%;
}

.payroll-grid th,
.payroll-grid td {
  border-bottom: none;
  padding: 10px 12px;
  white-space: nowrap;
  text-align: left;
  font-size: 12px;
  color: #111827;
}

.payroll-grid th {
  position: sticky !important;
  top: 0 !important;
  background: #f9fafb !important;
  background-color: #f9fafb !important;
  z-index: 20 !important;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-size: 11px;
  border-bottom: 1px solid #e5e7eb;
}

/* Zebra striping */
.payroll-grid tbody tr td {
  background: #ffffff;
  border-top: 1px solid #eef2f6;
  border-bottom: 1px solid #eef2f6;
}

.payroll-grid tbody tr td:first-child {
  border-left: 1px solid #eef2f6;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.payroll-grid tbody tr td:last-child {
  border-right: 1px solid #eef2f6;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.payroll-grid tbody tr:hover td {
  background: #f9fafb;
  transition: background 0.15s ease;
}

/* Özel sütun renklendirme - Brüt (mavi), Net (yeşil), Prim (turuncu) */
.payroll-grid th:nth-child(3),
.payroll-grid td:nth-child(3) {
  background: #ffffff;
  font-weight: 500;
  color: inherit;
}

.payroll-grid tbody tr:hover td:nth-child(3) {
  background: #f9fafb;
}

.payroll-grid th:nth-child(4),
.payroll-grid td:nth-child(4) {
  background: #fff7ed;
  font-weight: 600;
  color: #c2410c;
}

.payroll-grid tbody tr:hover td:nth-child(4) {
  background: #ffedd5;
}

.payroll-grid th:nth-child(6),
.payroll-grid td:nth-child(6) {
  background: #f0fdf4;
  font-weight: 600;
  color: #166534;
}

.payroll-grid tbody tr:hover td:nth-child(6) {
  background: #dcfce7;
}

/* Minimal scrollbar */
.payroll-sidebar::-webkit-scrollbar,
.payroll-content::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.payroll-sidebar::-webkit-scrollbar-track,
.payroll-content::-webkit-scrollbar-track {
  background: transparent;
}

.payroll-sidebar::-webkit-scrollbar-thumb,
.payroll-content::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.2);
  border-radius: 2px;
}

.payroll-sidebar::-webkit-scrollbar-thumb:hover,
.payroll-content::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, 0.3);
}

/* Payroll Edit Modal Styles */
.payroll-edit-modal {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

/* Grid Row Container */
.payroll-grid-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 8px;
}

@media (max-width: 768px) {
  .payroll-grid-row {
    grid-template-columns: 1fr;
  }
}

/* Yakınlaştırma için responsive ayarlar */
@media (max-width: 1400px) {
  .payroll-grid-row {
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  }
}

@media (max-width: 1200px) {
  .payroll-grid-row {
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  }
}

.payroll-section {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  background: #fafbfc;
}

.payroll-section h3 {
  margin: 0 0 10px 0;
  font-size: 13px;
  font-weight: 600;
  color: #0b1f3a;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.section-header h3 {
  margin: 0;
  font-size: 13px;
}

.payroll-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-item label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-item .value {
  font-size: 18px;
  font-weight: 600;
  color: #0b1f3a;
}

.detail-item .value.positive {
  color: #059669;
}

.detail-item .value.negative {
  color: #dc2626;
}

.detail-item .value.highlight {
  color: #0369a1;
  font-size: 20px;
}

.item-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 120px;
  overflow-y: auto;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  transition: all 0.2s;
}

.list-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.item-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.item-date {
  font-size: 11px;
  color: #64748b;
  min-width: 90px;
}

.item-desc {
  font-size: 11px;
  color: #0b1f3a;
  flex: 1;
}

.item-amount {
  font-size: 11px;
  font-weight: 600;
  min-width: 90px;
  text-align: right;
}

.item-amount.positive {
  color: #059669;
}

.item-amount.negative {
  color: #dc2626;
}

.item-actions {
  display: flex;
  gap: 4px;
}

.item-actions button.small {
  padding: 4px 8px;
  font-size: 11px;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.payment-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payment-item label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.payment-item input[type="number"] {
  padding: 10px 12px;
  border: 2px solid #d0d5dd;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
}

.payment-item input[type="number"]:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  outline: none;
}

.payment-item.calculated {
  background: #f8fafc;
  padding: 12px;
  border-radius: 8px;
}

.payment-item.calculated .value {
  font-size: 16px;
  font-weight: 600;
  color: #0b1f3a;
}

.payment-item.calculated .value.negative {
  color: #dc2626;
}

.payment-item.calculated .value.highlight {
  color: #0369a1;
  font-size: 18px;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 16px;
}

button.small {
  padding: 6px 12px;
  font-size: 12px;
}

button.danger {
  background: #dc2626;
  color: #ffffff !important;
  border-color: #dc2626;
  font-weight: 500;
}

button.danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #ffffff !important;
}

.ghost.danger {
  background: #dc2626 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
  font-weight: 500;
}

.ghost.danger:hover {
  background: #b91c1c !important;
  border-color: #b91c1c !important;
  color: #ffffff !important;
}

.timesheet-sidebar::-webkit-scrollbar-track,
.timesheet-content::-webkit-scrollbar-track,
.column-visibility-list::-webkit-scrollbar-track {
  background: transparent;
}

.timesheet-sidebar::-webkit-scrollbar-thumb,
.timesheet-content::-webkit-scrollbar-thumb,
.column-visibility-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 2px;
  transition: background 0.2s;
}

.timesheet-sidebar::-webkit-scrollbar-thumb:hover,
.timesheet-content::-webkit-scrollbar-thumb:hover,
.column-visibility-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}

/* Firefox scrollbar */
.timesheet-sidebar,
.timesheet-content,
.column-visibility-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

/* Column visibility checkboxes - 4 column table layout */
.column-visibility-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  max-height: 300px;
  overflow-y: auto;
  background: #fafbfc;
}

.column-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s;
  min-height: 36px;
}

.column-checkbox:hover {
  background: #f1f5f9;
}

.column-checkbox:nth-child(even) {
  border-right: none;
}

.column-checkbox:nth-last-child(-n+2) {
  border-bottom: none;
}

/* If odd number of items, remove border from last item */
.column-checkbox:last-child:nth-child(odd) {
  border-right: none;
}

.column-checkbox input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.column-settings-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 500px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.column-settings-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  transition: all 0.2s;
  cursor: move;
  position: relative;
}

.column-settings-item:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.column-settings-item.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

.column-settings-item.dragging {
  opacity: 0.5;
  background: #e2e8f0;
}

.column-settings-item.drag-over {
  border-top: 2px solid #3b82f6;
  margin-top: -2px;
}

.column-settings-drag-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #64748b;
  cursor: grab;
  flex-shrink: 0;
}

.column-settings-drag-handle:active {
  cursor: grabbing;
}

.column-settings-item.dragging .column-settings-drag-handle {
  cursor: grabbing;
}

.column-settings-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  cursor: pointer;
}

.column-settings-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.column-settings-actions {
  display: flex;
  gap: 4px;
}

.column-settings-actions button {
  width: 24px;
  height: 24px;
  padding: 0;
  font-size: 12px;
  line-height: 1;
}

/* Reporting site column tooltip */
.reporting-site-col {
  position: relative;
  cursor: help;
}

.reporting-site-display,
.payroll-site-display {
  display: inline-block;
  cursor: help;
  position: relative;
}

.reporting-site-col[title]:hover::after,
.payroll-site-display[title]:hover::after {
  content: attr(title);
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 8px;
  padding: 8px 12px;
  background: #1e293b;
  color: #fff;
  border-radius: 6px;
  font-size: 12px;
  white-space: pre-line;
  z-index: 1000;
  min-width: 200px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.reporting-site-col[title]:hover::before,
.payroll-site-display[title]:hover::before {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 4px;
  border: 6px solid transparent;
  border-right-color: #1e293b;
  z-index: 1001;
  pointer-events: none;
}

.column-checkbox span {
  user-select: none;
  flex: 1;
}

#timesheetPin {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  padding: 0;
}

#timesheetPin.is-pinned {
  background: #e7f0ff;
  border-color: #7aa7ff;
}

#personnelP2Pin.is-pinned,
#personnelP3Pin.is-pinned {
  background: #e7f0ff;
  border-color: #c7dcff;
}

.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 .form-row {
  display: grid;
  gap: 12px;
}

.modal-form .form-row.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.modal-form .form-row.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.modal-form .option-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d0d5dd;
  background: #f8fafc;
  font-size: 12px;
  color: #1d2939;
}

.modal-form .option-card input {
  margin: 0;
}

.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;
}

.modal-form .is-error {
  border-color: #f04438;
}

.modal-form .is-invalid {
  border-color: #f04438;
}

.input-hint {
  font-size: 12px;
  color: #f04438;
}

.input-note {
  font-size: 12px;
  color: #475467;
}

.input-warn {
  font-size: 12px;
  color: #b54708;
}

.phone-field {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px;
  align-items: center;
}

.employee-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.employee-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.2s;
}

.employee-avatar:hover {
  transform: scale(1.1);
}

.employee-avatar-fallback {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #1f2a44;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.employee-name.banned {
  color: #f04438;
  font-weight: 600;
}

.table-container {
  position: relative;
  overflow-x: auto;
}

.table-container.sticky-actions table {
  min-width: 100%;
}

.table-container.sticky-actions {
  position: relative;
}

.table-container.sticky-actions table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table-container.sticky-actions thead th:last-child,
.table-container.sticky-actions tbody td:last-child {
  position: sticky;
  right: 0;
  background: #fff;
  z-index: 10;
  box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1);
  padding-left: 12px;
  padding-right: 12px;
}

.table-container.sticky-actions thead th:last-child {
  z-index: 11;
  background: #f8fafc;
}

.table-container.sticky-actions tbody td:last-child {
  white-space: nowrap;
  background: #fff;
}

.table-container.sticky-actions tbody tr:hover td:last-child {
  background: #f1f5f9;
}

.employees-actions-fixed th:last-child .col-resizer {
  display: none;
}

.photo-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  cursor: pointer;
}

.photo-lightbox.active {
  display: flex;
}

.photo-lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
}

.file-upload-section {
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 24px;
}

.file-upload-section h3 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
}

.file-list-section h3 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
}

.modal-file-list {
  max-height: 400px;
  overflow-y: auto;
}

.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 8px;
  gap: 16px;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.file-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
}

.file-icon {
  font-size: 32px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-name {
  font-weight: 500;
  margin-bottom: 4px;
  word-break: break-word;
}

.file-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
}

.file-type {
  padding: 2px 8px;
  background: #e2e8f0;
  border-radius: 4px;
}

.file-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.file-actions .ghost.danger {
  color: #f04438;
}

.empty-state {
  text-align: center;
  padding: 12px;
  color: #64748b;
  font-size: 12px;
}

.employee-profile-header {
  display: flex;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 24px;
  align-items: flex-start;
}

.employee-profile-actions {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.employee-profile-view .employee-profile-sections input,
.employee-profile-view .employee-profile-sections select,
.employee-profile-view .employee-profile-sections textarea,
.employee-profile-view .employee-profile-sections .input,
.employee-profile-view .employee-profile-sections input[type="date"],
.employee-profile-view .employee-profile-sections input[type="text"] {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  pointer-events: none !important;
  color: #1d2939 !important;
}

.employee-profile-view .employee-profile-sections label {
  gap: 6px;
}

.employee-profile-photo {
  flex-shrink: 0;
  text-align: center;
}

.photo-preview-large {
  width: 130px;
  height: 130px;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border: 2px solid #e2e8f0;
}

.photo-preview-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  color: #94a3b8;
  font-size: 14px;
}

.photo-upload-btn {
  display: inline-block;
  padding: 8px 16px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.photo-upload-btn:hover {
  background: #e2e8f0;
}

.employee-profile-name h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 600;
}

.employee-profile-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.add-sheet-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.add-sheet-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}

.modal-actions-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.profile-section {
  padding: 20px;
  background: #f8fafc;
  border-radius: 8px;
}

.profile-section h3 {
  margin: 0 0 20px;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}

.profile-section .form-row {
  margin-bottom: 16px;
}

.profile-section .form-row:last-child {
  margin-bottom: 0;
}

.profile-actions {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
  text-align: right;
}

.modal-file-list {
  max-height: 500px;
  overflow-y: auto;
}

.file-row {
  padding: 16px;
}
.file-actions .ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.employee-name.banned {
  color: #d92d20;
  font-weight: 600;
}

.muted {
  color: #667085;
  font-size: 12px;
}

.modal-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 50vh;
  overflow: auto;
}

.modal-file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.file-row {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  border: 1px solid #eaecf0;
  border-radius: 8px;
  padding: 6px 10px;
}

.modal-section {
  border: 1px solid #eaecf0;
  border-radius: 12px;
  padding: 12px;
}

.modal-section-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.modal-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

.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-tabs {
  display: flex;
  gap: 10px;
  margin: 12px 0;
  flex-wrap: wrap;
}

.settings-tab-view {
  display: none;
}

.settings-tab-view.active {
  display: block;
}

.settings-plans .plan-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.settings-plans .plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--color-primary);
}

.settings-plans .plan-card.featured {
  border: 2px solid var(--color-primary);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.15);
}

.settings-plans .plan-card.current-plan {
  background: var(--bg-secondary);
  border-color: var(--color-primary);
}

.settings-plans .plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: white;
  padding: 4px 16px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.settings-plans .plan-header {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.settings-plans .plan-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.settings-plans .plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.settings-plans .price-amount {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.settings-plans .price-period {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.settings-plans .plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  flex-grow: 1;
}

.settings-plans .plan-features li {
  padding: 8px 0;
  color: var(--text-primary);
  font-size: 14px;
}

.settings-plans .plan-card .btn {
  margin-top: auto;
}

.settings-plans {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.settings-hint {
  color: #667085;
  font-size: 12px;
}

.module-roles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 6px;
}

.module-name {
  font-weight: 600;
}

.module-toggle {
  min-width: 32px;
  height: 32px;
  border-radius: 10px;
  font-weight: 700;
}

.view-row.is-hidden {
  display: none;
}

.view-name {
  padding-left: 16px;
  color: #475467;
}

.module-row td {
  background: #f8fafc;
  border-top: 1px solid #e4e7ec;
  border-bottom: 1px solid #e4e7ec;
}

.module-row .module-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.module-row .checkbox input {
  width: 18px;
  height: 18px;
  accent-color: #0b1f3a;
}

.view-row td {
  background: #fff;
}

.module-roles .checkbox {
  background: #f9fafb;
  border: 1px solid #eef2f6;
  border-radius: 8px;
  padding: 6px 8px;
}

.module-roles .checkbox input {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
}

.settings-tab-view .table {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.settings-tab-view .table thead th {
  background: #f1f5f9;
  font-weight: 700;
}

.settings-card {
  border: 1px solid #eaecf0;
  border-radius: 16px;
  padding: 16px;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-logo img {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid #eaecf0;
  background: #f8fafc;
}

.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;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0;
}

.list-grid {
  border: 1px solid #e7eaf0;
  border-radius: 14px;
  padding: 6px;
  margin-bottom: 16px;
  background: #f8fafc;
  width: 100%;
  box-sizing: border-box;
}

.list-row {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) 120px 120px 140px minmax(160px, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid #e5e9f2;
  border-radius: 12px;
  background: #fff;
  align-items: center;
  margin: 8px 6px;
}

.list-row:last-child {
  border-bottom: 1px solid #e5e9f2;
}

.list-cell .list-title {
  font-weight: 600;
}

.list-cell .list-sub {
  font-size: 12px;
  color: #667085;
}

.list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.list-actions .ghost {
  padding: 6px 10px;
  border-radius: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-right: 6px;
}

.badge-active {
  background: #eaffef;
  color: #027a48;
}

.badge-passive {
  background: #fff4e5;
  color: #b54708;
}

.contracts-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

/* ===== COMPACT CONTRACTS MODAL ===== */
.contracts-modern-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  max-height: 70vh;
  overflow-y: auto;
}

.contracts-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  border-radius: 8px;
  position: sticky;
  top: 0;
  z-index: 10;
  border: 1px solid #334155;
}

.contracts-summary {
  display: flex;
  gap: 16px;
  flex: 1;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.summary-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.summary-value {
  font-size: 16px;
  font-weight: 700;
  color: #94a3b8;
  line-height: 1;
}

.summary-value.has-data {
  color: #1e293b;
}

.btn-add-contract-modern {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: #3b82f6;
  color: #fff;
  border: 1px solid #2563eb;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-add-contract-modern:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.btn-add-contract-modern svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.contracts-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contracts-section.collapsed .section-content {
  display: none;
}

.contracts-section.collapsed .toggle-icon {
  transform: rotate(-90deg);
}

.section-title-modern {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: #f9fafb;
  border-radius: 6px;
}

.section-title-modern.clickable {
  cursor: pointer;
  user-select: none;
}

.section-title-modern.clickable:hover {
  background: #f3f4f6;
}

.title-icon {
  font-size: 12px;
  flex-shrink: 0;
}

.section-title-modern h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #101828;
  flex: 1;
}

.section-hint {
  font-size: 10px;
  color: #9ca3af;
  font-weight: 400;
}

.toggle-icon {
  flex-shrink: 0;
  color: #9ca3af;
  transition: transform 0.2s ease;
  width: 12px;
  height: 12px;
}

.contracts-grid-modern {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contract-card-modern {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.contract-card-modern:hover {
  border-color: #d0d5dd;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.contract-card-modern.active {
  border-left: 3px solid #34d399;
  background: #f0fdf4;
}

.contract-card-modern.future {
  border-left: 3px solid #60a5fa;
  background: #eff6ff;
}

.contract-card-modern.past {
  opacity: 0.6;
}

.contract-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 120px;
}

.contract-type-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.contract-type-code {
  font-size: 13px;
  font-weight: 600;
  color: #101828;
}

.contract-type-name {
  font-size: 11px;
  color: #667085;
}

.contract-status-badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  align-self: flex-start;
  margin-top: 2px;
}

.contract-status-badge.active {
  background: #d1fae5;
  color: #065f46;
}

.contract-status-badge.future {
  background: #dbeafe;
  color: #1e40af;
}

.contract-status-badge.past {
  background: #f3f4f6;
  color: #6b7280;
}

.contract-body {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.contract-dates-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #667085;
  min-width: 180px;
}

.date-item {
  display: flex;
  align-items: center;
  gap: 3px;
}

.date-label {
  font-size: 10px;
  color: #9ca3af;
}

.date-value {
  font-size: 11px;
  font-weight: 500;
  color: #374151;
}

.date-separator {
  font-size: 12px;
  color: #d1d5db;
  margin: 0 2px;
}

.contract-countdown {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: #fef3c7;
  border-radius: 4px;
  color: #92400e;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.contract-countdown svg {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
}

.contract-rate-info {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #eff6ff;
  border-radius: 6px;
  white-space: nowrap;
}

.contract-rate-info .rate-label {
  font-size: 10px;
  font-weight: 500;
  color: #0369a1;
}

.contract-rate-info .rate-value {
  font-size: 13px;
  font-weight: 700;
  color: #0c4a6e;
}

.contract-actions-modern {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.contract-actions-modern button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1px solid #e4e7ec;
  border-radius: 6px;
  background: #fff;
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.contract-actions-modern button:hover {
  border-color: #d0d5dd;
  background: #f9fafb;
}

.contract-actions-modern button svg {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
}

.btn-contract-edit:hover {
  border-color: #60a5fa;
  color: #1e40af;
  background: #eff6ff;
}

.btn-contract-end:hover {
  border-color: #fbbf24;
  color: #92400e;
  background: #fef3c7;
}

.btn-contract-activate:hover {
  border-color: #34d399;
  color: #065f46;
  background: #d1fae5;
}

.btn-contract-delete:hover {
  border-color: #f87171;
  color: #991b1b;
  background: #fee2e2;
}

.contracts-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 30px 20px;
  text-align: center;
  color: #667085;
}

.contracts-empty-state svg {
  opacity: 0.25;
  width: 40px;
  height: 40px;
}

.contracts-empty-state h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.contracts-empty-state p {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
  max-width: 350px;
  line-height: 1.4;
}

.template-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 12px 0;
  flex-wrap: wrap;
}

.template-panel .template-toolbar {
  margin: 0;
}

.template-panel select,
.template-panel input[type="text"] {
  width: 100%;
}

.template-panel label {
  gap: 6px;
}

.template-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.template-panel {
  display: grid;
  gap: 10px;
  min-height: 0;
  max-height: 100%;
  overflow: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.template-panel-section {
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 10px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.template-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #475467;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.template-preview {
  min-height: 60vh;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  scrollbar-gutter: stable;
  background: #e4e7ec;
  padding: 16px;
}

.template-zoom-layer {
  transform-origin: top center;
  will-change: transform;
}

.template-editor {
  background: transparent;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  max-height: none;
  height: auto;
  min-height: 100%;
  overflow: visible;
  width: 100%;
  display: flex;
  justify-content: center;
}

.template-canvas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: max-content;
}

.template-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #475467;
}

.template-margins input[type="range"] {
  width: 100%;
}

.template-margins {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.template-margins .template-inline {
  justify-content: space-between;
}

.template-margins .template-inline input[type="range"] {
  flex: 1;
}

.template-preview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.template-preview-overlay.active {
  display: flex;
}

.template-preview-modal {
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  width: min(90vw, 1000px);
  max-height: 90vh;
  overflow: auto;
  display: grid;
  gap: 10px;
}

.template-preview-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.template-preview-modal .template-editor {
  padding: 0;
  display: block;
}

.template-preview-modal .template-canvas {
  gap: 24px;
  width: 100%;
  align-items: center;
}

.template-field-preview {
  background: transparent;
  border: none;
  color: #667085;
}

.template-page {
  background: #ffffff;
  width: 794px;
  height: 1123px;
  padding: 40px;
  box-shadow:
    0 12px 32px rgba(16, 24, 40, 0.16),
    0 2px 6px rgba(16, 24, 40, 0.08);
  border: 1px solid #cbd5e1;
  display: block;
  overflow: hidden;
  transform: scale(1);
  transform-origin: top left;
}

.template-page-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 0 auto;
  background: transparent;
}

.template-page-wrap:last-child {
  margin-bottom: 0;
}

.template-page:focus {
  outline: 2px solid #c7d7fe;
}

.template-field {
  background: #f2f4f7;
  border: 1px dashed #98a2b3;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 12px;
  color: #344054;
}

.page-break {
  border-top: 2px dashed #e4e7ec;
  margin: 24px 0;
}

.template-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
}

.template-table th,
.template-table td {
  border: 1px solid #d0d5dd;
  padding: 6px 8px;
  font-size: 12px;
}

.template-signature {
  margin-top: 24px;
}

.template-logo {
  color: #98a2b3;
  border: 1px dashed #d0d5dd;
  padding: 8px;
  display: inline-block;
}

.contracts-modal {
  width: min(950px, 90vw);
  max-height: 85vh;
}

.contracts-modal .modal-body {
  max-height: calc(85vh - 120px);
  overflow-y: auto;
}

.contracts-modern-container::-webkit-scrollbar {
  width: 6px;
}

.contracts-modern-container::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 3px;
}

.contracts-modern-container::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.contracts-modern-container::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.template-editor-modal {
  width: min(1320px, 96vw);
  height: min(90vh, 900px);
  display: flex;
  flex-direction: column;
}

.template-editor-modal .modal-form {
  height: calc(90vh - 120px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.template-editor-modal .modal-header,
.template-editor-modal .modal-actions,
.template-editor-modal .modal-actions-row {
  flex: 0 0 auto;
}

.ghost.danger {
  color: #d92d20;
  border-color: #fda29b;
}

.empty-note {
  padding: 12px;
  color: #98a2b3;
  font-size: 13px;
}

.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;
}

.personnel-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;
}

.personnel-view {
  display: none;
}

.personnel-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;
}

body.app-initializing .app {
  visibility: 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;
}

.plan-grid {
  display: grid;
  gap: 12px;
}

.plan-card {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #d0d5dd;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.plan-card:hover {
  border-color: #0b1f3a;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: #5f6368;
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #dadce0;
}

.auth-divider span {
  padding: 0 10px;
  background: #fff;
}

.auth-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  background: white;
  border: 1px solid #dadce0;
  border-radius: 10px;
  color: #3c4043;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.auth-google-btn:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.auth-google-btn:active {
  background: #f1f3f4;
}

.auth-google-btn svg {
  flex-shrink: 0;
}

.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;
}

body.auth-locked .app {
  visibility: hidden;
}

/* Payroll Edit Modal - Geniş Modal */
.modal-content.payroll-edit-modal-content {
  width: min(900px, 95vw);
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 24px;
  box-sizing: border-box;
}

.modal-content.payroll-edit-modal-content .payroll-edit-modal {
  max-height: calc(90vh - 120px);
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
}

/* Küçük ekranlar için */
@media (max-width: 768px) {
  .modal-content.payroll-edit-modal-content {
    width: min(95vw, 100%);
    max-height: 90vh;
    padding: 16px;
  }
  
  .modal-content.payroll-edit-modal-content .payroll-edit-modal {
    max-height: calc(90vh - 100px);
  }
}

/* Brüt Maaş Hesaplama Detayları */
.gross-calculation-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-sizing: border-box;
}

.calculation-summary {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 8px;
}

.calculation-summary .summary-text {
  font-size: 11px;
  color: #1e40af;
  font-weight: 500;
  line-height: 1.4;
}

.calculation-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
  width: 100%;
  box-sizing: border-box;
}

.calc-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.calc-step .step-number {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  min-width: 24px;
  flex-shrink: 0;
}

.calc-step .step-label {
  font-size: 12px;
  color: #64748b;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calc-step .step-value {
  font-size: 12px;
  font-weight: 600;
  color: #0b1f3a;
  flex-shrink: 0;
  white-space: nowrap;
}

.calc-step .step-value.positive {
  color: #059669;
}

.calc-step.total {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid #cbd5e1;
}

.calc-step.total .step-value {
  font-size: 12px;
  color: #0369a1;
}

.calc-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 11px;
  color: #64748b;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.calc-detail-row .calc-label,
.calc-detail-row .calc-value {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 11px;
}

.calc-row:last-child {
  border-bottom: none;
}

.calc-row.total {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 2px solid #cbd5e1;
  font-weight: 600;
}

.calc-label {
  font-size: 11px;
  color: #64748b;
}

.calc-value {
  font-size: 11px;
  font-weight: 600;
  color: #0b1f3a;
}

.calc-value.positive {
  color: #059669;
}

.calc-value.highlight {
  font-size: 12px;
  color: #0369a1;
}

/* Ödeme Bölümleri */
.payment-section {
  background: #fff5f5;
  border: 1px solid #fecaca;
  padding: 8px;
}

.payment-list {
  max-height: 120px;
}

.payment-item-card {
  background: #ffffff;
  border-color: #e2e8f0;
}

.payment-item-cash {
  background: #ffffff;
  border-color: #e2e8f0;
}

.payment-add-btn {
  background: #f97316 !important;
  color: #fff !important;
  border: 2px solid #f97316 !important;
  opacity: 1 !important;
  font-weight: 500 !important;
}

.payment-add-btn:hover {
  background: #ea580c !important;
  border-color: #ea580c !important;
  opacity: 1 !important;
}

.auto-pay-btn {
  background: #f97316 !important;
  color: #fff !important;
  border: 2px solid #f97316 !important;
  opacity: 1 !important;
  font-weight: 500 !important;
  font-size: 11px;
  padding: 4px 8px;
}

.auto-pay-btn:hover {
  background: #ea580c !important;
  border-color: #ea580c !important;
  opacity: 1 !important;
}

/* Ghost class override for payment buttons */
.ghost.small.payment-add-btn,
.ghost.small.auto-pay-btn {
  background: #f97316 !important;
  color: #fff !important;
  border: 2px solid #f97316 !important;
  opacity: 1 !important;
  font-weight: 500 !important;
}

.ghost.small.payment-add-btn:hover,
.ghost.small.auto-pay-btn:hover {
  background: #ea580c !important;
  border-color: #ea580c !important;
  opacity: 1 !important;
}

.section-header .button-group {
  display: flex;
  gap: 6px;
  align-items: center;
}

.payment-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px;
  background: #fff;
  border-radius: 4px;
  margin-top: 6px;
  font-weight: 600;
  font-size: 10px;
}

.payment-summary .remaining {
  color: #dc2626;
}

.payment-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.summary-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.summary-item.total {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #e0f2fe 0%, #dcfce7 100%);
  border-color: #3b82f6;
}

.summary-item label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
}

.summary-item .value {
  font-size: 18px;
  font-weight: 600;
  color: #0b1f3a;
}

.summary-item .value.negative {
  color: #dc2626;
}

.summary-item .value.highlight {
  font-size: 20px;
  color: #0369a1;
}

/* Reporting Toolbar - Timesheet/Payroll toolbar stillerinden uyarlanmış */
.reporting-toolbar-unified {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(11, 31, 58, 0.06);
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: visible !important;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.reporting-toolbar-unified .toolbar-left {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: nowrap;
  flex-shrink: 0;
  min-width: 0;
}

.reporting-toolbar-unified .toolbar-left .filter-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  align-items: stretch !important;
  min-width: auto !important;
  max-width: none !important;
  flex: 0 1 auto !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.reporting-toolbar-unified .toolbar-right {
  display: flex !important;
  gap: 12px !important;
  align-items: flex-end !important;
  flex-wrap: nowrap !important;
  flex-shrink: 0 !important;
  min-width: 0 !important;
}

.reporting-toolbar-unified .month-filter-input,
.reporting-toolbar-unified .input,
.reporting-toolbar-unified select.input,
.reporting-toolbar-unified .reporting-search-input,
.reporting-toolbar-unified button.ghost,
.reporting-toolbar-unified button.primary {
  height: 42px;
  box-sizing: border-box;
}

.reporting-toolbar-unified .month-filter-input {
  padding: 10px 12px;
  font-size: 14px;
}

.reporting-toolbar-unified .input,
.reporting-toolbar-unified select.input {
  padding: 10px 12px;
  font-size: 14px;
}

.reporting-toolbar-unified select.input {
  background-image: none !important;
  padding: 10px 12px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
}

.reporting-toolbar-unified button.ghost,
.reporting-toolbar-unified button.primary {
  padding: 10px 16px;
  font-size: 14px;
}

.reporting-toolbar-unified .filter-group label {
  font-size: 12px;
  font-weight: 600;
  color: #0b1f3a;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 0;
}

.reporting-toolbar-unified .reporting-search-input {
  border: 2px solid #d0d5dd !important;
  background: #ffffff !important;
  font-weight: 500;
  transition: all 0.2s;
  width: 100%;
}

.reporting-toolbar-unified .reporting-search-input:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
  outline: none;
  background: #f8fafc !important;
}

.reporting-toolbar-unified .reporting-search-input:hover {
  border-color: #98a2b3 !important;
}

.reporting-toolbar-unified .filter-group.filter-search {
  overflow: visible !important;
  position: relative !important;
  z-index: 100 !important;
}

.reporting-toolbar-unified .suggest-wrap {
  position: relative !important;
  z-index: 100 !important;
  overflow: visible !important;
}

.reporting-toolbar-unified .suggest-list {
  position: fixed !important;
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(11, 31, 58, 0.15) !important;
  max-height: 300px !important;
  overflow-y: auto !important;
  overflow-x: visible !important;
  z-index: 99999 !important;
  display: block !important;
}

.reporting-toolbar-unified .suggest-list.hidden {
  display: none !important;
}

/* Reporting Layout - Timesheet template'inden kopyalanmış */
.reporting-layout {
  position: relative;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.reporting-layout.is-collapsed {
  grid-template-columns: 0 minmax(0, 1fr);
  gap: 0;
}

.reporting-layout.is-collapsed.is-hovered {
  grid-template-columns: 280px minmax(0, 1fr);
}

/* Hover zone for collapsed sidebar */
.reporting-layout.is-collapsed::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  z-index: 10;
  cursor: pointer;
  pointer-events: none;
}

/* Hover zone for collapsed sidebar (JS controlled) */
.reporting-hover-zone {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 16px;
  z-index: 12;
  background: transparent;
}

.reporting-layout:not(.is-collapsed) .reporting-hover-zone {
  display: none;
}

.reporting-sidebar {
  background: #fff;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  padding: 12px;
  max-height: calc(100vh - 220px);
  overflow: auto;
  position: sticky;
  top: 16px;
}

.reporting-sidebar-header {
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reporting-sidebar-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}

.reporting-sidebar-actions .toggle-button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d0d5dd;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.reporting-sidebar-actions .toggle-button:hover {
  background: #f8fafc;
  border-color: #98a2b3;
}

.reporting-sidebar-actions .toggle-button.is-pinned {
  background: #e7f0ff;
  border-color: #7aa7ff;
}

.reporting-sidebar-actions .settings-icon,
.reporting-sidebar-actions .pin-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.reporting-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
  margin-bottom: 2px;
}

.reporting-group:hover {
  background: #f3e8ff;
  transform: translateX(2px);
}

.reporting-group.active {
  background: #e0f2fe;
  color: #0b1f3a;
  font-weight: 600;
  border-left: 3px solid #3b82f6;
}

/* Enhanced hover effects - parent group highlighting */
.reporting-group.hover-highlight,
.reporting-group.hover-highlight:hover {
  background: #e0e7ff !important;
  color: #4338ca !important;
  font-weight: 600;
  border-left: 3px solid #6366f1;
  transform: translateX(2px);
}

.reporting-group.hover-highlight .reporting-group-count {
  background: #6366f1 !important;
  color: #fff !important;
}

.reporting-subgroup {
  margin-left: 12px;
  border-left: 2px solid #eef2f6;
  padding-left: 12px;
  margin-top: 4px;
}

.reporting-group-count {
  color: #667085;
  font-size: 12px;
  font-weight: 500;
  background: #f8fafc;
  padding: 2px 8px;
  border-radius: 12px;
}

.reporting-group.active .reporting-group-count {
  background: #3b82f6;
  color: #fff;
}

.reporting-sidebar-content {
  display: block;
}

.reporting-layout.is-collapsed .reporting-sidebar-content {
  display: none;
}

.reporting-layout.is-collapsed.is-hovered .reporting-sidebar-content {
  display: block;
}

.reporting-layout.is-collapsed .reporting-sidebar {
  display: none;
  opacity: 0;
  pointer-events: none;
  width: 0;
  min-width: 0;
  max-width: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

.reporting-layout.is-collapsed.is-hovered .reporting-sidebar {
  display: block;
  opacity: 1;
  pointer-events: auto;
  width: 100%;
  min-width: auto;
  max-width: none;
  padding: 12px;
  align-items: stretch;
  justify-content: flex-start;
}

.reporting-layout.is-collapsed.is-hovered .reporting-sidebar-header {
  flex-direction: row;
  gap: 8px;
  margin-bottom: 8px;
}

.reporting-layout.is-collapsed.is-hovered .reporting-sidebar-header span {
  display: inline;
}

.reporting-sidebar-collapsed-label {
  display: none;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 12px;
  color: #667085;
  letter-spacing: 1px;
  font-weight: 600;
}

.reporting-layout.is-collapsed .reporting-sidebar-collapsed-label {
  display: block;
}

.reporting-layout.is-collapsed.is-hovered .reporting-sidebar-collapsed-label {
  display: none;
}

.reporting-content {
  grid-column: 2 / -1;
  display: block;
  width: 100%;
  min-width: 0;
  max-height: calc(100vh - 220px);
  overflow: auto;
  position: relative;
}

/* Ensure content is always visible when sidebar is collapsed */
.reporting-layout.is-collapsed .reporting-content {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

/* Minimal scrollbar styling */
.reporting-sidebar::-webkit-scrollbar,
.reporting-content::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

/* Reporting Grid - Modern Card-Row Style (like Payroll Report) */
.reporting-grid {
  overflow: auto;
  border-radius: 12px;
  background: #f8fafc;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 0;
  max-height: calc(100vh - 280px);
  padding: 16px;
}

.reporting-grid-container {
  overflow: auto;
  width: 100%;
}

.reporting-grid-table {
  border-collapse: separate;
  border-spacing: 0 16px;
  width: max-content;
  min-width: 100%;
}

/* Header - Minimalist */
.reporting-grid-table thead th {
  position: sticky !important;
  top: 0 !important;
  background: #fafbfc !important;
  z-index: 20 !important;
  font-weight: 600;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
  border-top: none;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 12px;
  text-align: center;
  box-shadow: none;
}

.reporting-grid-table th.reporting-employee-col {
  position: sticky;
  left: 0;
  z-index: 21 !important;
  background: #fafbfc !important;
  text-align: left;
  padding-left: 20px;
  min-width: 200px;
  border-left: none;
}

.reporting-grid-table th.reporting-actions-col {
  position: sticky;
  left: 200px;
  z-index: 21 !important;
  background: #fafbfc !important;
  min-width: 150px;
  text-align: center;
}

.reporting-grid-table tbody tr {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.reporting-grid-table tbody tr:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.reporting-grid-table tbody td {
  padding: 16px 12px;
  border: 1px solid #f3f4f6;
  border-left: none;
  border-right: none;
  vertical-align: middle;
  text-align: center;
}

.reporting-grid-table tbody tr td:first-child {
  border-left: 1px solid #f3f4f6;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  padding-left: 20px;
}

.reporting-grid-table tbody tr td:last-child {
  border-right: 1px solid #f3f4f6;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.reporting-grid-table td.reporting-employee-name {
  position: sticky;
  left: 0;
  z-index: 2;
  background: white;
  text-align: left;
}

/* İşlemler sütunu - Butonlar için layout */
.reporting-grid-table td.reporting-actions {
  position: sticky;
  left: 200px;
  z-index: 2;
  background: white;
  padding: 16px 12px !important;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  line-height: 34px;
}

.reporting-grid-table td.reporting-actions button {
  font-size: 10px !important;
  padding: 5px 8px !important;
  min-width: 45px !important;
  height: 34px !important;
  white-space: nowrap;
  line-height: 1.2 !important;
  display: inline-block;
  vertical-align: middle;
  margin: 0 2px;
}

.reporting-grid-table tbody tr:hover td.reporting-employee-name,
.reporting-grid-table tbody tr:hover td.reporting-actions {
  background: white;
}

.reporting-employee-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reporting-employee-name-text {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.reporting-employee-meta {
  font-size: 12px;
  color: #6b7280;
  font-weight: 400;
}

.reporting-grid-table input.reporting-input {
  width: 40px;
  height: 34px;
  padding: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s;
  background: #fafbfc;
  color: #111827;
}

.reporting-grid-table input.reporting-input:hover {
  border-color: #d1d5db;
  background: white;
}

.reporting-grid-table input.reporting-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
  background: white;
}

.reporting-grid-table input.reporting-input:disabled {
  background: #f9fafb;
  color: #d1d5db;
  cursor: not-allowed;
  border-color: #f3f4f6;
}

.reporting-grid-table th.disabled,
.reporting-grid-table td.disabled {
  opacity: 0.3;
  pointer-events: none;
}

.reporting-grid-table td.disabled input.reporting-input {
  display: none;
}

/* Hafta sonu renkleri - Daha belirgin (puantaj gibi) */
.reporting-grid-table tbody tr td.weekend {
  background: #fef3c7 !important;
}

.reporting-grid-table tbody tr td.weekend input.reporting-input {
  background: #fef3c7 !important;
  border-color: #fbbf24 !important;
}

.reporting-grid-table tbody tr td:first-child.weekend {
  background: white !important;
}

.reporting-grid-table tbody tr td.reporting-actions.weekend {
  background: white !important;
}

/* Hover durumunda hafta sonu rengi korunmalı */
.reporting-grid-table tbody tr:hover td.weekend {
  background: #fde68a !important;
}

.reporting-grid-table tbody tr:hover td.weekend input.reporting-input {
  background: #fde68a !important;
}

.reporting-grid-table tbody tr:hover td.weekend {
  background: #fde68a !important;
}

/* Hover gezinme renkleri */
.reporting-grid-table tbody tr:hover {
  background: #f1f5f9 !important;
}

.reporting-grid-table tbody tr:hover td:not(.reporting-employee-name):not(.reporting-actions) {
  background: #f1f5f9 !important;
}

.reporting-grid-table tbody tr:hover td.weekend {
  background: #fde68a !important;
}

/* Sütun hover efekti */
.reporting-grid-table th:hover,
.reporting-grid-table td:hover {
  background: #e0f2fe !important;
}

.reporting-grid-table tbody tr td:hover {
  background: #e0f2fe !important;
}

.reporting-grid-table tbody tr:hover td:hover {
  background: #bae6fd !important;
}

.reporting-actions button {
  margin: 0 2px;
  padding: 4px 8px;
  font-size: 11px;
}

/* Responsive */
@media (max-width: 1024px) {
  .reporting-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  
  .reporting-sidebar {
    max-height: calc(100vh - 200px);
  }
}

.column-visibility-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fafbfc;
}

.column-visibility-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.column-visibility-item:hover {
  background: #f1f5f9;
}

.column-visibility-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.column-visibility-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.column-visibility-item.disabled input[type="checkbox"] {
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .reporting-layout {
    grid-template-columns: 0 minmax(0, 1fr);
  }
  
  .reporting-layout.is-collapsed {
    grid-template-columns: 0 minmax(0, 1fr);
  }
  
  .reporting-toolbar-unified {
    flex-wrap: wrap;
  }
  
  .reporting-toolbar-unified .toolbar-left,
  .reporting-toolbar-unified .toolbar-right {
    flex-wrap: wrap;
  }
}

/* ============================================================================
   Landing Page Styles
   ============================================================================ */

.landing-page {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
}

.landing-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.landing-navbar,
#topnav {
  position: sticky;
  top: 0;
  color: rgba(2, 16, 39, 1);
  background-color: rgba(2, 16, 39, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 16px 0;
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.landing-navbar .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 8px 16px;
  box-sizing: content-box;
  background: none;
  background-color: rgba(15, 28, 50, 0);
  background-image: none;
  box-shadow: none;
  border-radius: 0;
  transition: all 0.3s ease;
}

.landing-navbar .logo:hover {
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.12) 0%, rgba(30, 58, 138, 0.16) 100%);
  transform: translateY(-1px);
  box-shadow: none;
}

.landing-navbar .logo img {
  height: 55px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.navigation-menu {
  display: flex;
  gap: 32px;
  align-items: center;
}

.navigation-menu .nav-link {
  color: rgba(251, 252, 254, 1);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.navigation-menu .nav-link:hover {
  color: var(--color-primary);
}

.navbar-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s;
}

/* Hero Section */
.hero-section {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(29, 78, 216, 0.1);
  border-radius: 20px;
  width: fit-content;
}

.hero-badge .badge {
  background: var(--color-primary);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.hero-badge .badge-text {
  color: var(--text-secondary);
  font-size: 14px;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.hero-title .text-primary {
  color: var(--color-primary);
}

.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.hero-placeholder {
  width: 100%;
  padding-top: 75%;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.hero-placeholder svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 14px;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background: #e2e8f0;
  border-color: rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: white;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

/* Features Section */
.features-section {
  padding: 100px 0;
  background: var(--bg-primary);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(29, 78, 216, 0.1);
  color: var(--color-primary);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-title .text-primary {
  color: var(--color-primary);
}

.section-description {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.feature-card {
  padding: 32px;
  background: var(--bg-primary);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--color-primary-light);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(29, 78, 216, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.feature-description {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Platforms Section */
.platforms-section {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.platforms-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 60px;
}

.platform-tab {
  padding: 12px 24px;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.platform-tab.active,
.platform-tab:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.platform-content {
  position: relative;
  min-height: 400px;
}

.platform-view {
  display: none;
}

.platform-view.active {
  display: block;
}

.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.platform-image {
  display: flex;
  justify-content: center;
}

.platform-placeholder {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.platform-placeholder svg {
  width: 100%;
  height: auto;
  display: block;
}

.platform-text h3 {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.platform-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.feature-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  font-size: 15px;
  color: var(--text-secondary);
}

/* CTA Section */
/* Pricing Section */
.pricing-section {
  padding: 100px 0;
  background: var(--bg-primary);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 60px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 40px 32px;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border-color: var(--color-primary);
}

.pricing-card.featured {
  border: 2px solid var(--color-primary);
  box-shadow: 0 12px 40px rgba(29, 78, 216, 0.15);
}

.pricing-card.featured:hover {
  box-shadow: 0 20px 60px rgba(29, 78, 216, 0.25);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: white;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.pricing-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.pricing-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.price-amount {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.price-period {
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 500;
}

.pricing-description {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 0;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  flex-grow: 1;
}

.pricing-features li {
  padding: 12px 0;
  color: var(--text-primary);
  font-size: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-action {
  margin-top: auto;
}

.pricing-action .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pricing-card {
    padding: 32px 24px;
  }

  .price-amount {
    font-size: 40px;
  }
}

.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
  color: white;
}

.cta-description {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.95;
  line-height: 1.7;
}

.cta-description .text-primary {
  color: white;
  font-weight: 600;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-section .btn-primary {
  background: white;
  color: var(--color-primary);
  border-color: white;
}

.cta-section .btn-primary:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.cta-section .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Footer */
.landing-footer {
  background: #0b1f3a;
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-description {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

.footer-title {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links li {
  font-size: 14px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================================================
   Register Page Styles
   ============================================================================ */

.register-page {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text-primary);
  background: var(--bg-secondary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.register-section {
  flex: 1;
  padding: 60px 0;
  display: flex;
  align-items: center;
}

.register-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.register-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.register-image-wrapper {
  width: 100%;
  max-width: 400px;
}

.register-placeholder {
  width: 100%;
  padding-top: 125%;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.register-placeholder svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.register-form-wrapper {
  display: flex;
  justify-content: center;
}

.register-card {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 500px;
}

.register-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 32px;
}

.register-buttons-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 0;
}

@media (max-width: 768px) {
  .register-buttons-row {
    grid-template-columns: 1fr;
  }
}

.btn-google {
  background: white;
  color: var(--text-primary);
  border: 1px solid rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 500;
}

.btn-google:hover {
  background: #f8f9fa;
  border-color: rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-google svg {
  flex-shrink: 0;
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.required {
  color: #dc2626;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"] {
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.phone-input {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-prefix {
  padding: 12px;
  background: var(--bg-secondary);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px 0 0 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.phone-input input {
  flex: 1;
  border-radius: 0 8px 8px 0;
}

.password-input {
  position: relative;
}

.password-input input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}

.password-toggle:hover {
  color: var(--text-primary);
}

.password-match-error {
  color: #dc2626;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.password-match-error.hidden {
  display: none;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  cursor: pointer;
}

.checkbox-label .link-primary {
  color: var(--color-primary);
  text-decoration: none;
}

.checkbox-label .link-primary:hover {
  text-decoration: underline;
}

.form-error {
  padding: 12px;
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: 8px;
  color: #b42318;
  font-size: 14px;
}

.form-error.hidden {
  display: none;
}

.register-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.register-footer p {
  font-size: 14px;
  color: var(--text-secondary);
}

.register-footer .link-primary {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  margin-left: 4px;
}

.register-footer .link-primary:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content,
  .register-layout,
  .platform-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-image,
  .register-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .landing-navbar .logo {
    padding: 6px 12px;
  }

  .landing-navbar .logo img {
    height: 50px;
    max-width: 160px;
  }

  .navigation-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s;
    z-index: 999;
  }

  .navigation-menu.mobile-open {
    transform: translateX(0);
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero-title {
    font-size: 32px;
  }

  .section-title {
    font-size: 28px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .landing-navbar .logo {
    padding: 4px 10px;
  }

  .landing-navbar .logo img {
    height: 45px;
    max-width: 140px;
  }
}

/* Utility Classes */
.text-primary {
  color: var(--color-primary);
}

.link-primary {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.link-primary:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* ========================================
   Import/Export Modal Styles
   ======================================== */

.import-export-modal-content {
  max-width: 700px;
  width: 90%;
}

.import-export-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0;
}

.import-export-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  transition: all 0.2s;
  margin-bottom: -2px;
}

.import-export-tab:hover {
  color: #111827;
  background: #f9fafb;
}

.import-export-tab.active {
  color: #1e40af;
  border-bottom-color: #1e40af;
  background: #eff6ff;
}

.import-export-tab svg {
  width: 16px;
  height: 16px;
}

.import-export-tab-panel {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.import-export-tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.import-export-card {
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fafbfc;
  margin-bottom: 16px;
  transition: all 0.2s;
}

.import-export-card:hover {
  border-color: #cbd5e1;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.import-export-card h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.import-export-card p {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

.import-export-card button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Dropzone */
.dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #fafbfc;
}

.dropzone:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}

.dropzone.drag-over {
  border-color: #1e40af;
  background: #dbeafe;
  border-style: solid;
}

.dropzone svg {
  width: 48px;
  height: 48px;
  color: #9ca3af;
  margin-bottom: 16px;
}

.dropzone p {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 500;
  color: #111827;
}

.dropzone .dropzone-hint {
  font-size: 13px;
  color: #9ca3af;
  margin: 0;
}

/* Import Preview */
.import-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.import-preview-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.import-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.import-summary-card {
  padding: 16px;
  border-radius: 8px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.import-summary-card.success {
  background: #ecfdf5;
  border-color: #86efac;
}

.import-summary-card.warning {
  background: #fefce8;
  border-color: #fef08a;
}

.import-summary-card.error {
  background: #fef2f2;
  border-color: #fca5a5;
}

.import-summary-label {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.import-summary-value {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
}

.import-summary-card.success .import-summary-value {
  color: #16a34a;
}

.import-summary-card.warning .import-summary-value {
  color: #ca8a04;
}

.import-summary-card.error .import-summary-value {
  color: #dc2626;
}

/* Import Errors */
.import-errors {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 24px;
}

.import-error-item {
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: #fef2f2;
  border-left: 4px solid #dc2626;
  font-size: 13px;
  color: #7f1d1d;
}

.import-error-item strong {
  color: #991b1b;
}

.import-warning-item {
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: #fefce8;
  border-left: 4px solid #eab308;
  font-size: 13px;
  color: #713f12;
}

.import-warning-item strong {
  color: #854d0e;
}

/* Import Actions */
.import-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.import-actions button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.import-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

 
 / *   I m p o r t   P r e v i e w   D e t a i l e d   U I   * / 
 
 
.import-preview-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  min-height: 600px;
  align-items: start;
}

.import-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 0;
}

.import-summary-card {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  background: white;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.import-summary-card:hover {
  border-color: #D1D5DB;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.import-summary-card.success {
  background: #F0FDF4;
  border-color: #86EFAC;
}

.import-summary-card.warning {
  background: #FFFBEB;
  border-color: #FCD34D;
}

.import-summary-card.error {
  background: #FEF2F2;
  border-color: #FCA5A5;
}

.import-summary-card.info {
  background: #F0F9FF;
  border-color: #93C5FD;
}

.import-summary-icon {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1;
}

.import-summary-card > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

.import-summary-label {
  font-size: 10px;
  color: #6B7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.import-summary-value {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  line-height: 1.2;
}

.import-detail-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  min-height: 0;
}

.import-errors-section {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 6px;
  padding: 12px;
  flex-shrink: 0;
}

.import-error-item {
  padding: 8px 10px;
  margin-bottom: 6px;
  background: white;
  border-radius: 4px;
  border-left: 2px solid #DC2626;
  font-size: 12px;
  line-height: 1.4;
}

.import-error-item:last-child {
  margin-bottom: 0;
}

.import-error-item.warning {
  border-left-color: #F59E0B;
}

.import-error-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 600;
  margin-right: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.import-error-badge.error {
  background: #DC2626;
  color: white;
}

.import-error-badge.warning {
  background: #F59E0B;
  color: white;
}

.import-details-section {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.import-detail-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  border-bottom: 1px solid #E5E7EB;
  padding-bottom: 0;
  flex-wrap: wrap;
}

.import-detail-tab {
  padding: 6px 12px;
  border: none;
  background: transparent;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-weight: 500;
  font-size: 12px;
  color: #6B7280;
  transition: all 0.15s ease;
}

.import-detail-tab:hover {
  color: #111827;
  border-bottom-color: #D1D5DB;
}

.import-detail-tab.active {
  color: #3B82F6;
  border-bottom-color: #3B82F6;
  background: transparent;
}

.import-detail-contents {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  max-height: 100%;
}

/* Custom scrollbar for detail contents */
.import-detail-contents::-webkit-scrollbar {
  width: 6px;
}

.import-detail-contents::-webkit-scrollbar-track {
  background: #F3F4F6;
  border-radius: 3px;
}

.import-detail-contents::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 3px;
}

.import-detail-contents::-webkit-scrollbar-thumb:hover {
  background: #9CA3AF;
}

.import-detail-content {
  display: none;
}

.import-detail-content.active {
  display: block;
}

.import-detail-table {
  overflow-x: auto;
}

.import-detail-table table {
  width: 100%;
  border-collapse: collapse;
}

.import-detail-table th {
  text-align: left;
  padding: 8px 10px;
  background: #F9FAFB;
  color: #6B7280;
  font-weight: 600;
  font-size: 11px;
  border-bottom: 1px solid #E5E7EB;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.import-detail-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #F3F4F6;
  font-size: 12px;
}

.import-detail-table tbody tr {
  background: white;
  transition: background 0.1s;
}

.import-detail-table tbody tr:hover {
  background: #F9FAFB;
}

.import-detail-table tbody tr.status-new {
  border-left: 3px solid #10B981;
}

.import-detail-table tbody tr.status-update {
  border-left: 3px solid #F59E0B;
}

.import-detail-table tbody tr.status-unchanged {
  border-left: 3px solid #9CA3AF;
  opacity: 0.7;
}

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.status-badge.status-new {
  background: #D1FAE5;
  color: #059669;
}

.status-badge.status-update {
  background: #FDE68A;
  color: #D97706;
}

.status-badge.status-unchanged {
  background: #E5E7EB;
  color: #6B7280;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  background: #DBEAFE;
  color: #2563EB;
}

/* Import Export Preview Layout - Minimalist & Proportional */
.import-preview-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  flex: 1;
  min-height: 0;
  align-items: start;
}

.import-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: start;
  position: sticky;
  top: 0;
  overflow-y: auto;
}

.import-errors {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

/* Import/Export Modal - Full Height */
.import-export-modal-content {
  width: 90vw;
  max-width: 1200px;
  height: 85vh;
  max-height: 850px;
  display: flex;
  flex-direction: column;
}

.import-export-modal-content .modal-body {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.import-export-tab-panel {
  flex: 1;
  display: none;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.import-export-tab-panel.active {
  display: flex;
}

#importPreview {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.import-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.import-preview-header h4 {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.import-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #E5E7EB;
  margin-top: 16px;
  flex-shrink: 0;
}

/* ========================================
   Employee Type Modal - Premium Minimalist Design
   ======================================== */

.employee-type-info {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  border-radius: 12px;
  margin-bottom: 28px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.employee-type-info .info-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.employee-type-info p {
  font-size: 13px;
  line-height: 1.5;
  color: #FFFFFF;
  margin: 0;
  font-weight: 400;
}

.employee-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.employee-type-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.employee-type-section:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-color: #D1D5DB;
  transform: translateY(-2px);
}

.employee-type-section .section-title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 12px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #F3F4F6;
  display: flex;
  align-items: center;
  gap: 8px;
}

.employee-type-section .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.employee-type-section .form-group label {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  cursor: help;
}

.employee-type-section .form-group input[type="text"],
.employee-type-section .form-group input[type="number"],
.employee-type-section .form-group select {
  padding: 10px 14px;
  font-size: 14px;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  background: #FAFAFA;
  color: #111827;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
}

.employee-type-section .form-group input[type="text"]:hover,
.employee-type-section .form-group input[type="number"]:hover,
.employee-type-section .form-group select:hover {
  background: #FFFFFF;
  border-color: #D1D5DB;
}

.employee-type-section .form-group input[type="text"]:focus,
.employee-type-section .form-group input[type="number"]:focus,
.employee-type-section .form-group select:focus {
  outline: none;
  border-color: #3B82F6;
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

.employee-type-section .form-group input::placeholder {
  color: #9CA3AF;
  font-weight: 400;
}

.employee-type-section .form-group-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #F9FAFB;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.employee-type-section .form-group-inline:hover {
  background: #F3F4F6;
  border-color: #E5E7EB;
}

.employee-type-section .form-group-inline label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  margin: 0;
  flex: 1;
}

.employee-type-section .form-group-inline input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #3B82F6;
  border-radius: 4px;
}

.employee-type-section .form-group-inline input[type="checkbox"]:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.employee-type-section .form-group-inline:has(input:disabled) {
  opacity: 0.5;
  cursor: not-allowed;
}

.workday-calculation {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border-left: 3px solid #F59E0B;
  border-radius: 8px;
  margin-top: 8px;
  font-size: 13px;
  color: #92400E;
  line-height: 1.5;
}

.workday-calculation svg {
  flex-shrink: 0;
  color: #F59E0B;
}

.workday-calculation strong {
  color: #78350F;
  font-weight: 700;
  font-size: 14px;
}

/* Section-specific colors */
.employee-type-section:nth-child(1) .section-title {
  color: #0891B2;
}

.employee-type-section:nth-child(2) .section-title {
  color: #EA580C;
}

.employee-type-section:nth-child(3) .section-title {
  color: #7C3AED;
}

/* Required field indicator */
.employee-type-section .form-group label:has(+ input[required])::after,
.employee-type-section .form-group label:has(+ select[required])::after {
  content: "*";
  color: #EF4444;
  margin-left: 4px;
  font-weight: 700;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .employee-type-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .employee-type-section:nth-child(3) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .employee-type-grid {
    grid-template-columns: 1fr;
  }
  
  .employee-type-section:nth-child(3) {
    grid-column: 1;
  }
  
  .employee-type-section {
    padding: 20px;
  }
}

/* ========================================
   Custom Tooltip - Modern & Corporate
   ======================================== */

.custom-tooltip {
  position: fixed;
  z-index: 10000;
  padding: 10px 16px;
  background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
  color: #FFFFFF;
  font-size: 12px;
  line-height: 1.5;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  max-width: 280px;
  word-wrap: break-word;
  transition: opacity 0.2s ease, transform 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-tooltip.hidden {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  display: none;
}

.custom-tooltip::before {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #334155;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}
