:root {
  color-scheme: light;
  --ink: #172238;
  --muted: #6e788a;
  --line: #e4e8ef;
  --surface: #ffffff;
  --canvas: #f4f6fa;
  --navy: #18243c;
  --navy-soft: #243451;
  --blue: #2e70e8;
  --blue-dark: #1f5cca;
  --blue-soft: #edf4ff;
  --green: #229b6d;
  --green-soft: #e9f8f2;
  --amber: #d98c14;
  --amber-soft: #fff5df;
  --red: #cf5360;
  --red-soft: #fff0f1;
  --shadow: 0 18px 50px rgba(21, 35, 58, 0.1);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 10%, rgba(46, 112, 232, 0.2), transparent 34%),
    radial-gradient(circle at 82% 90%, rgba(34, 155, 109, 0.14), transparent 30%),
    var(--navy);
}

.login-card {
  width: min(440px, 100%);
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 32px 80px rgba(5, 12, 25, 0.35);
}

.login-card h1 {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  line-height: 1.15;
}

.login-copy {
  margin: 14px 0 28px;
  color: var(--muted);
  line-height: 1.65;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #3a7df0, #1c57c1);
  box-shadow: 0 8px 20px rgba(46, 112, 232, 0.3);
  font-size: 1.2rem;
  font-weight: 900;
}

.brand-mark-large {
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  border-radius: 16px;
  font-size: 1.5rem;
}

.login-card label {
  display: block;
  margin-bottom: 9px;
  font-size: 0.85rem;
  font-weight: 750;
}

.password-field {
  position: relative;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #d8dee8;
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input,
select {
  min-height: 46px;
  padding: 0 13px;
}

textarea {
  min-height: 116px;
  padding: 12px 13px;
  line-height: 1.5;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(46, 112, 232, 0.12);
}

.password-field input {
  padding-right: 76px;
}

.icon-button {
  border: 0;
  color: var(--blue);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 800;
}

.password-toggle {
  position: absolute;
  top: 0;
  right: 5px;
  height: 46px;
}

.primary-button,
.secondary-button,
.round-button {
  border-radius: 11px;
  font-weight: 750;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

.primary-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--blue);
  color: #fff;
  background: var(--blue);
}

.primary-button:hover {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
}

.secondary-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #d8dee8;
  color: var(--ink);
  background: #fff;
}

.secondary-button:hover {
  border-color: #b7c1d0;
  background: #f8f9fb;
}

.primary-button:active,
.secondary-button:active,
.round-button:active {
  transform: translateY(1px);
}

.full-button {
  width: 100%;
  margin-top: 16px;
}

.form-error {
  min-height: 20px;
  margin: 10px 0 0;
  color: #b93645;
  font-size: 0.84rem;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 20px 22px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 30%),
    var(--navy);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.brand span {
  margin-top: 2px;
  color: #9fabc0;
  font-size: 0.76rem;
}

.side-nav {
  display: grid;
  gap: 7px;
  margin-top: 28px;
}

.nav-item {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  border: 0;
  border-radius: 11px;
  color: #aeb9cb;
  background: transparent;
  text-align: left;
  font-size: 0.87rem;
  font-weight: 650;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-item.active {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 22px rgba(9, 58, 143, 0.28);
}

.nav-icon {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 850;
}

.sidebar-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-info strong,
.sidebar-info small {
  display: block;
}

.sidebar-info strong {
  font-size: 0.77rem;
}

.sidebar-info small {
  margin-top: 4px;
  color: #8f9cb2;
  font-size: 0.69rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-top: 4px;
  border-radius: 50%;
  background: #45d49d;
  box-shadow: 0 0 0 4px rgba(69, 212, 157, 0.12);
}

.logout-button {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  border: 0;
  color: #aeb9cb;
  background: transparent;
  font-size: 0.78rem;
}

.logout-button:hover {
  color: #fff;
}

.main-content {
  min-width: 0;
  padding: 34px clamp(22px, 4vw, 58px) 70px;
}

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

.topbar h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
}

.today-badge {
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  text-align: right;
}

.today-badge span,
.today-badge strong {
  display: block;
}

.today-badge span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
}

.today-badge strong {
  margin-top: 3px;
  font-size: 0.82rem;
}

.menu-button {
  display: none;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
}

.month-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 30px rgba(21, 35, 58, 0.05);
}

.round-button {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  font-size: 1.6rem;
}

.round-button:hover {
  border-color: #b8c4d5;
  background: #f8f9fb;
}

.month-title {
  min-width: 190px;
}

.month-title span {
  display: block;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
}

.month-title h2 {
  margin: 3px 0 0;
  font-size: 1.15rem;
}

.today-button {
  margin-left: auto;
}

.week-tabs-wrap {
  overflow-x: auto;
  margin-top: 22px;
  padding-bottom: 3px;
}

.week-tabs {
  display: flex;
  gap: 8px;
  min-width: max-content;
}

.week-tab {
  min-width: 132px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  background: #fff;
  text-align: left;
}

.week-tab strong,
.week-tab span {
  display: block;
}

.week-tab strong {
  color: var(--ink);
  font-size: 0.83rem;
}

.week-tab span {
  margin-top: 3px;
  font-size: 0.69rem;
}

.week-tab:hover {
  border-color: #b8c7dd;
}

.week-tab.active {
  border-color: var(--blue);
  color: #b9d0f7;
  background: var(--blue);
}

.week-tab.active strong {
  color: #fff;
}

.week-summary {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 22px 0 14px;
}

.week-summary > div:first-child span,
.week-summary > div:first-child strong {
  display: block;
}

.week-summary > div:first-child span {
  color: var(--muted);
  font-size: 0.77rem;
}

.week-summary > div:first-child strong {
  margin-top: 4px;
  font-size: 1rem;
}

.summary-statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.75rem;
}

.summary-statuses span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.summary-statuses b {
  color: var(--ink);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.status-dot.pending {
  background: var(--amber);
}

.status-dot.completed {
  background: var(--green);
}

.status-dot.cancelled {
  background: var(--red);
}

.days-list {
  display: grid;
  gap: 13px;
}

.day-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 5px 20px rgba(21, 35, 58, 0.04);
}

.day-panel.is-today {
  border-color: #9cbaee;
  box-shadow: 0 8px 26px rgba(46, 112, 232, 0.1);
}

.day-header {
  min-height: 70px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #fafbfc;
}

.is-today .day-header {
  background: var(--blue-soft);
}

.date-tile {
  width: 52px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  line-height: 1;
}

.date-tile strong {
  font-size: 1.1rem;
}

.date-tile span {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
}

.day-name h3,
.day-name p {
  margin: 0;
}

.day-name h3 {
  font-size: 1rem;
}

.day-name p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.73rem;
}

.add-job-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #c7d6ed;
  border-radius: 9px;
  color: var(--blue-dark);
  background: #fff;
  font-size: 0.77rem;
  font-weight: 800;
}

.add-job-button:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.jobs {
  display: grid;
  gap: 9px;
  padding: 12px 16px 16px 86px;
}

.empty-day {
  min-height: 58px;
  display: flex;
  align-items: center;
  color: #99a1ae;
  font-size: 0.79rem;
}

.job-card {
  display: grid;
  grid-template-columns: 65px minmax(150px, 0.9fr) minmax(220px, 1.8fr) 142px 36px;
  align-items: center;
  gap: 14px;
  padding: 12px 12px 12px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 11px;
  background: #fff;
}

.job-card[data-status="Tamamlandı"] {
  border-left-color: var(--green);
  background: #fbfefc;
}

.job-card[data-status="İptal"] {
  border-left-color: var(--red);
  background: #fffdfd;
}

.job-time {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
}

.job-time.no-time {
  color: #a0a8b4;
  font-weight: 650;
}

.job-person strong,
.job-person a {
  display: block;
}

.job-person strong {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.85rem;
  white-space: nowrap;
}

.job-person a {
  margin-top: 4px;
  color: var(--blue);
  font-size: 0.74rem;
  text-decoration: none;
}

.job-note {
  margin: 0;
  color: #4d586a;
  font-size: 0.8rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.status-select {
  min-height: 36px;
  padding: 0 9px;
  border: 0;
  font-size: 0.74rem;
  font-weight: 800;
}

.status-select.pending {
  color: #9a650f;
  background: var(--amber-soft);
}

.status-select.completed {
  color: #187652;
  background: var(--green-soft);
}

.status-select.cancelled {
  color: #ad3947;
  background: var(--red-soft);
}

.delete-job {
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #9a6570;
  background: transparent;
  font-size: 1.15rem;
}

.delete-job:hover {
  border-color: #f0c8cc;
  color: #b93645;
  background: var(--red-soft);
}

.loading-panel {
  padding: 60px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: #fff;
  text-align: center;
}

.report-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 28px 0 18px;
}

.report-heading h2 {
  margin: 0;
  font-size: 1.3rem;
}

.report-heading .primary-button {
  margin-left: auto;
}

.report-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.report-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.report-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 46px;
  height: 46px;
  border-radius: 0 0 0 46px;
  background: var(--blue-soft);
}

.report-card span,
.report-card strong,
.report-card small {
  display: block;
}

.report-card span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.report-card strong {
  margin: 9px 0 5px;
  font-size: 2rem;
}

.report-card small {
  color: #9aa2af;
  font-size: 0.68rem;
}

.report-pending::after {
  background: var(--amber-soft);
}

.report-completed::after {
  background: var(--green-soft);
}

.report-cancelled::after {
  background: var(--red-soft);
}

.report-panel {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.panel-title h3,
.panel-title p {
  margin: 0;
}

.panel-title h3 {
  font-size: 1rem;
}

.panel-title p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.75rem;
}

.report-table-wrap {
  overflow-x: auto;
  margin-top: 18px;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.79rem;
}

.report-table th,
.report-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.report-table th {
  color: var(--muted);
  background: #fafbfc;
  font-size: 0.69rem;
  text-transform: uppercase;
}

.report-table tbody tr:last-child td {
  border-bottom: 0;
}

.empty-report {
  padding: 40px 10px 24px;
  color: var(--muted);
  text-align: center;
}

.job-dialog {
  width: min(610px, calc(100% - 30px));
  padding: 0;
  border: 0;
  border-radius: 20px;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow);
}

.job-dialog::backdrop {
  background: rgba(11, 20, 35, 0.62);
  backdrop-filter: blur(3px);
}

.job-dialog form {
  padding: 25px;
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.dialog-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.dialog-close {
  width: 36px;
  height: 36px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: #fff;
  font-size: 1.25rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.field {
  display: grid;
  gap: 7px;
}

.field > span {
  font-size: 0.78rem;
  font-weight: 750;
}

.field b {
  color: var(--red);
}

.field small {
  color: var(--muted);
  font-weight: 500;
}

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

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

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  max-width: min(380px, calc(100% - 48px));
  padding: 13px 17px;
  border-radius: 11px;
  color: #fff;
  background: var(--navy);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s, transform 0.2s;
  font-size: 0.82rem;
}

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

.toast.error {
  background: #a73543;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 15;
  background: rgba(10, 18, 31, 0.56);
}

@media (max-width: 1120px) {
  .job-card {
    grid-template-columns: 58px minmax(150px, 1fr) 150px 36px;
  }

  .job-note {
    grid-column: 2 / -1;
    grid-row: 2;
  }

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

@media (max-width: 820px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-105%);
    width: 258px;
    transition: transform 0.2s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .menu-button {
    display: block;
  }

  .main-content {
    padding: 24px 18px 60px;
  }

  .jobs {
    padding-left: 16px;
  }

  .summary-statuses {
    width: 100%;
    margin-left: 0;
  }

  .week-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .login-card {
    padding: 30px 24px;
  }

  .today-badge {
    display: none;
  }

  .month-toolbar {
    flex-wrap: wrap;
    padding: 14px;
  }

  .month-title {
    min-width: 0;
    flex: 1;
  }

  .today-button {
    width: 100%;
    margin-left: 0;
  }

  .day-header {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
  }

  .date-tile {
    width: 46px;
    height: 44px;
  }

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

  .job-card {
    grid-template-columns: 55px minmax(0, 1fr) 34px;
    gap: 10px;
  }

  .job-note {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .status-select {
    grid-column: 1 / 3;
  }

  .delete-job {
    grid-column: 3;
    grid-row: 1;
  }

  .report-cards {
    grid-template-columns: 1fr;
  }

  .report-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-heading .primary-button {
    width: 100%;
    margin-left: 0;
  }

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.nav-section-title {
  margin: 18px 13px 4px;
  color: #718097;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.global-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  margin-top: 28px;
}

.search-field {
  position: relative;
}

.search-field input {
  min-height: 48px;
  padding-left: 45px;
  border-color: var(--line);
  box-shadow: 0 8px 24px rgba(21, 35, 58, 0.04);
}

.search-symbol {
  position: absolute;
  top: 50%;
  left: 16px;
  color: var(--muted);
  transform: translateY(-54%);
  font-size: 1.4rem;
}

.global-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.global-stat {
  position: relative;
  overflow: hidden;
  min-height: 106px;
  padding: 16px 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  box-shadow: 0 6px 22px rgba(21, 35, 58, 0.04);
}

.global-stat::after {
  content: "";
  position: absolute;
  top: -22px;
  right: -22px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--blue-soft);
}

.global-stat:hover {
  border-color: #afc4e7;
  transform: translateY(-1px);
}

.global-stat span,
.global-stat strong,
.global-stat small {
  display: block;
}

.global-stat span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.global-stat strong {
  margin: 6px 0 3px;
  font-size: 1.65rem;
}

.global-stat small {
  color: #9ba4b1;
  font-size: 0.64rem;
}

.stat-pending::after {
  background: var(--amber-soft);
}

.stat-completed::after {
  background: var(--green-soft);
}

.stat-cancelled::after {
  background: var(--red-soft);
}

.overdue-panel {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid #efd69e;
  border-radius: var(--radius);
  background: #fffbf2;
}

.overdue-heading {
  display: flex;
  align-items: center;
  gap: 20px;
}

.overdue-heading h2,
.overdue-heading p {
  margin: 0;
}

.overdue-heading h2 {
  font-size: 1rem;
}

.overdue-heading > div > p:last-child {
  margin-top: 5px;
  color: #7d6c47;
  font-size: 0.73rem;
}

.overdue-heading .secondary-button {
  margin-left: auto;
}

.overdue-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.overdue-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 11px 12px;
  border: 1px solid #f0dfb8;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.8);
}

.overdue-item > div:first-child {
  min-width: 0;
  flex: 1;
}

.overdue-item strong,
.overdue-item span {
  display: block;
}

.overdue-item strong {
  font-size: 0.82rem;
}

.overdue-item span {
  margin-top: 3px;
  color: #8b7955;
  font-size: 0.68rem;
}

.overdue-item p {
  overflow: hidden;
  margin: 5px 0 0;
  color: #5d5545;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overdue-actions {
  display: flex;
  gap: 7px;
}

.compact-button {
  min-height: 34px;
  padding: 0 11px;
  font-size: 0.69rem;
}

.records-heading {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin: 28px 0 16px;
}

.records-heading h2,
.records-heading p {
  margin: 0;
}

.records-heading h2 {
  font-size: 1.3rem;
}

.records-heading > div > p:last-child {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.75rem;
}

.records-heading .secondary-button {
  margin-left: auto;
}

.records-list {
  display: grid;
  gap: 13px;
}

.records-day-header {
  grid-template-columns: 56px minmax(0, 1fr);
}

.job-card {
  grid-template-columns: 65px minmax(150px, 0.8fr) minmax(220px, 1.8fr) 110px 142px;
  align-items: start;
}

.job-details {
  min-width: 0;
}

.job-address,
.job-note {
  margin: 0;
  color: #4d586a;
  font-size: 0.76rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.job-address {
  margin-bottom: 5px;
  color: #7a8493;
}

.empty-value {
  color: #a5acb7;
  font-style: italic;
}

.job-price {
  align-self: center;
  color: var(--ink);
  font-size: 0.8rem;
  text-align: right;
  white-space: nowrap;
}

.job-card .status-select {
  align-self: center;
}

.job-actions {
  grid-column: 2 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding-top: 9px;
  border-top: 1px solid #eef0f4;
}

.job-actions button {
  min-height: 29px;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  font-size: 0.67rem;
  font-weight: 750;
}

.job-actions button:hover {
  background: #dfeaff;
}

.job-actions .danger-action {
  color: #ac3d49;
  background: var(--red-soft);
}

.report-cards {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.report-price::after {
  background: #eeeaff;
}

.small-dialog {
  width: min(500px, calc(100% - 30px));
  padding: 0;
  border: 0;
  border-radius: 20px;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow);
}

.small-dialog::backdrop {
  background: rgba(11, 20, 35, 0.62);
  backdrop-filter: blur(3px);
}

.small-dialog form {
  padding: 25px;
}

.move-date-field {
  margin-top: 20px;
}

.quick-date-buttons {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.quick-date-buttons button {
  flex: 1;
}

.import-file-info {
  margin: 18px 0 12px;
  padding: 11px 13px;
  border-radius: 9px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  font-size: 0.76rem;
  font-weight: 700;
}

.import-options {
  display: grid;
  gap: 8px;
}

.import-options label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.import-options input {
  width: auto;
  min-height: auto;
  margin-top: 3px;
}

.import-options strong,
.import-options small {
  display: block;
}

.import-options strong {
  font-size: 0.78rem;
}

.import-options small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.69rem;
}

@media (max-width: 1180px) {
  .global-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .job-card {
    grid-template-columns: 58px minmax(150px, 1fr) 110px 140px;
  }

  .job-details {
    grid-column: 2 / -1;
    grid-row: 2;
  }

  .job-actions {
    grid-column: 2 / -1;
    grid-row: 3;
  }

  .report-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .global-search {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .global-search .primary-button {
    padding: 0 14px;
  }

  .global-search #search-clear {
    grid-column: 1 / -1;
  }

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

  .global-stat {
    min-height: 94px;
    padding: 13px;
  }

  .overdue-heading,
  .overdue-item {
    align-items: stretch;
    flex-direction: column;
  }

  .overdue-heading .secondary-button {
    width: 100%;
    margin-left: 0;
  }

  .overdue-actions button {
    flex: 1;
  }

  .records-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .records-heading .secondary-button {
    width: 100%;
    margin-left: 0;
  }

  .job-card {
    grid-template-columns: 55px minmax(0, 1fr);
  }

  .job-details {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .job-price {
    align-self: center;
    text-align: left;
  }

  .job-card .status-select {
    grid-column: 2;
  }

  .job-actions {
    grid-column: 1 / -1;
    grid-row: auto;
    flex-wrap: wrap;
  }

  .job-actions button {
    flex: 1;
  }

  .report-cards {
    grid-template-columns: 1fr;
  }
}
