:root {
  --dilawri-red: #ba0c2f;
  --dilawri-red-dark: #8f0923;
  --dilawri-red-light: #f8edf0;
  --bg: #eef1f5;
  --card: #ffffff;
  --text: #14213d;
  --muted: #52607a;
  --line: #98a2b3;
  --line-dark: #d1d5db;
  --line-soft: #d9dee7;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", Arial, sans-serif;
  background: linear-gradient(180deg, #f5f7fa 0%, var(--bg) 100%);
  background-color: var(--card);
  color: var(--text);
}

.dilawri-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: #333;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.dilawri-header-inner {
  height: 80px;
  margin: 0 auto;
  padding: 0 12px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
}

.dilawri-header-left {
  display: flex;
  align-items: center;
  gap: 32px;
  min-width: 0;
}

.dilawri-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.dilawri-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.dilawri-logo {
  width: auto;
  max-height: 70px;
}

.dilawri-nav {
  display: flex;
  align-items: center;
  min-width: 0;
}

.dilawri-nav-list {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dilawri-nav-list li a {
  display: inline-flex;
  align-items: center;
  color: #f3f4f6;
  text-decoration: none;
  font-size: 16px;
  padding: 0 2px;
  transition: color 0.2s ease;
}

.dilawri-nav-list li a:hover {
  color: #ffffff;
}

.dilawri-nav-list li.active a {
  color: #ffffff;
}

.dilawri-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dilawri-user-icon {
  width: 20px;
  height: auto;
  border-radius: 999px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.dilawri-user-name {
  color: rgba(255, 255, 255, 0.55);
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

.separator {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}

.dilawri-logout {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  padding: 8px 16px;
  margin-right: 16px;
}

.dilawri-logout:hover {
  color: #ffffff;
  text-decoration: none;
}

.dilawri-logout:visited,
.dilawri-logout:active,
.dilawri-logout:focus {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.flash-wrap {
  max-width: 1280px;
  padding: 0 40px;
}

.alert {
  max-width: 1200px;
  margin: 15px auto 20px auto;
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  background-color: #fdecec;
  border-color: #f5c2c7;
  color: #a12622;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.alert-success {
  background-color: #eaf7ee;
  border-color: #b7dfc2;
  color: #1f6b37;
  width: fit-content;
  margin-left: 0;
}

.alert-danger {
  background-color: #fdecec;
  border-color: #f5c2c7;
  color: #a12622;
  width: fit-content;
  margin-left: 0;
}

.alert-warning {
  background-color: #fff8e5;
  border-color: #f2d58a;
  color: #8a6d1d;
}

.alert-info {
  background-color: #eaf4fb;
  border-color: #b9d8ee;
  color: #24597a;
}

.alert .close {
  border: 0;
  background: transparent;
  font-size: 14px;
  line-height: 1;
  color: inherit;
  opacity: 0.7;
  cursor: pointer;
  padding: 0;
}

.alert .close:hover {
  opacity: 1;
}

.page {
  max-width: 980px;
  margin: 36px auto 56px;
  padding: 30px 16px;
  background-color: var(--card);
}

.brand {
  text-align: center;
  margin-bottom: 32px;
}

.brand-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--dilawri-red-light);
  color: var(--dilawri-red);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand h2 {
  margin: 8px 0 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--muted);
}

.intro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.intro+.intro {
  margin-top: 4px;
}

.form-shell {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-card,
.action-card {
  border: 1px solid #e7ebf1;
  border-radius: 20px;
  padding: 28px 28px 24px;
  background: #fff;
}

.section-head {
  margin-bottom: 22px;
}

.section-head h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.section-head p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.section-head-center {
  text-align: center;
}

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

.field {
  margin-bottom: 0;
}

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

.label-en,
.label-fr {
  display: block;
  font-size: 15px;
  line-height: 1.5;
}

.label-en {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.label-fr {
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 12px;
}

input,
textarea,
select {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid #d7deea;
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  appearance: none;
}

select {
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, #14213d 50%),
    linear-gradient(135deg, #14213d 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input::placeholder,
textarea::placeholder {
  color: #8b97ab;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--dilawri-red);
  box-shadow: 0 0 0 4px rgba(186, 12, 47, 0.08);
}

.action-card {
  text-align: center;
}

.store-switch {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin: 0;
  flex-wrap: wrap;
  padding-top: 30px;
}

.store-btn {
  min-width: 220px;
  padding: 14px 28px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(20, 33, 61, 0.08);
  transition: all 0.2s ease;
}

.store-btn:hover {
  transform: translateY(-1px);
  border-color: var(--dilawri-red);
  color: var(--dilawri-red);
  box-shadow: 0 12px 28px rgba(186, 12, 47, 0.12);
}

.store-btn.is-active {
  background: linear-gradient(135deg, var(--dilawri-red) 0%, var(--dilawri-red-dark) 100%);
  color: #ffffff;
  border-color: var(--dilawri-red);
  box-shadow: 0 14px 30px rgba(186, 12, 47, 0.2);
}

.store-btn:focus-visible {
  outline: 3px solid rgba(186, 12, 47, 0.18);
  outline-offset: 2px;
}

.login-page {
  max-width: 1280px;
  padding: 20px 40px;
}

.login-title,
.reset-title {
  font-size: 27px;
  font-weight: 400;
  margin-bottom: 40px;
}

.login-form {
  max-width: 1200px;
}

.form-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  column-gap: 28px;
  align-items: center;
  margin-bottom: 26px;
}

.form-row label {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  color: #0f2f57;
}

.login-input {
  width: 100%;
  max-width: 750px;
  height: 44px;
  padding: 10px 12px;
  border: 1px solid #cfd6df;
  border-radius: 4px;
  font-size: 16px;
  outline: none;
  background: #fff;
  box-sizing: border-box;
}

.form-label-spacer {
  width: 100%;
}

.actions-row {
  margin-top: 8px;
}

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

.btn-signin,
.forgot-link,
.btn-red {
  min-width: 165px;
  height: 41px;
  padding: 0 18px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  cursor: pointer;
  font-size: 16px;
}

.btn-signin {
  background: #198754;
}

.btn-signin:hover {
  background: #157347;
}

.forgot-link,
.btn-red {
  background: var(--dilawri-red);
}

.forgot-link:hover,
.btn-red:hover {
  background: var(--dilawri-red-dark);
  color: #fff;
  text-decoration: none;
}

.password-wrap {
  position: relative;
  width: 100%;
  max-width: 750px;
}

.password-wrap .login-input {
  width: 100%;
  max-width: none;
  height: 44px;
  padding: 10px 44px 10px 12px;
  border: 1px solid #cfd6df;
  border-radius: 4px;
  font-size: 16px;
  outline: none;
  background: #fff;
  box-sizing: border-box;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle img,
.password-eye-icon {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}

.password-toggle:hover {
  color: var(--dilawri-red);
}

.page-404 {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: #f3f4f6;
}

.card-404 {
  width: 100%;
  max-width: 620px;
  padding: 48px 38px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  text-align: center;
}

.card-404 .icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--dilawri-red-light);
  color: var(--dilawri-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.card-404 h1 {
  margin: 0 0 10px;
  font-size: 72px;
  line-height: 1;
  font-weight: 700;
  color: var(--dilawri-red);
}

.card-404 h2 {
  margin: 0 0 14px;
  font-size: 30px;
  font-weight: 700;
  color: #111827;
}

.card-404 p {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.6;
  color: #6b7280;
}

.card-404 .btn-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  height: 42px;
  padding: 0 20px;
  border-radius: 6px;
  background: var(--dilawri-red);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.card-404 .btn-home:hover {
  background: var(--dilawri-red-dark);
  color: #ffffff;
  text-decoration: none;
}

.dilawri-footer {
  margin-top: 28px;
  border-top: 1px solid #e5e7eb;
  background: var(--card);
}

.dilawri-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.dilawri-footer-sep {
  color: var(--line-dark);
}

.field-dropdown {
  position: relative;
  width: 100%;
}

.field-dropdown .dropdown-trigger {
  width: 100%;
  min-height: 42px;
  padding: 14px 16px;
  border: 1px solid #d7deea;
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  outline: none;
  height: 42px;
}

.field-dropdown .dropdown-trigger:hover,
.field-dropdown .dropdown-trigger:focus {
  border-color: var(--dilawri-red);
  box-shadow: 0 0 0 4px rgba(186, 12, 47, 0.08);
}

.field-dropdown .dropdown-caret {
  margin-left: 12px;
  flex: 0 0 auto;
  font-size: 14px;
  color: var(--text);
}

.field-dropdown .dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 9999;
  display: none;
  background: #ffffff;
  border: 1px solid #d7deea;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.field-dropdown.is-open .dropdown-menu {
  display: block;
}

.field-dropdown .dropdown-search-wrap {
  padding: 10px;
  border-bottom: 1px solid #e7ebf1;
  background: #ffffff;
}

.field-dropdown .dropdown-search {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d7deea;
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
  box-sizing: border-box;
}

.field-dropdown .dropdown-search:focus {
  border-color: var(--dilawri-red);
  box-shadow: 0 0 0 4px rgba(186, 12, 47, 0.08);
}

.field-dropdown .dropdown-options {
  max-height: 260px;
  overflow-y: auto;
  background: #ffffff;
}

.field-dropdown .dropdown-item {
  width: 100%;
  display: block;
  padding: 12px 14px;
  border: 0;
  border-radius: 0;
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.field-dropdown .dropdown-item:hover,
.field-dropdown .dropdown-item.is-selected {
  background: #f5f7fa;
  color: var(--text);
}

.report-ready-page {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.report-ready-card {
  width: 100%;
  max-width: 700px;
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.10);
  border: 1px solid #e5e7eb;
}

.report-ready-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 999px;
  background: #16a34a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 700;
}

.report-ready-card h1 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.2;
}

.report-ready-text {
  margin: 0 0 10px;
  font-size: 16px;
  color: #475569;
}

.report-ready-id {
  margin: 0 0 28px;
  font-size: 15px;
  color: #0f172a;
}

.report-ready-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
}

.btn-primary {
  background: #ba0c2f;
  color: #ffffff;
}

.btn-primary:hover {
  background: #8f0923;
}

.btn-secondary {
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #dbe2ea;
}

.btn-secondary:hover {
  background: #eef2f7;
}

.report-ready-note {
  margin: 0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
}

@media screen and (max-width: 1200px) {
  .login-page {
    max-width: 1140px;
  }
}

@media (max-width: 900px) {
  .dilawri-header-inner {
    padding: 0 12px;
  }

  .dilawri-header-left {
    gap: 22px;
  }

  .dilawri-nav-list li a {
    font-size: 13px;
  }

  .dilawri-user-name {
    font-size: 13px;
  }

  .brand h1 {
    font-size: 26px;
  }

  .brand h2 {
    font-size: 18px;
  }

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

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

  .form-card,
  .action-card {
    padding: 22px 20px;
  }
}

@media screen and (max-width: 640px) {
  .page-404 {
    padding: 40px 16px;
  }

  .card-404 {
    padding: 36px 22px;
  }

  .card-404 h1 {
    font-size: 58px;
  }

  .card-404 h2 {
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  .dilawri-header {
    position: static;
  }

  .dilawri-header-inner {
    min-height: auto;
    height: auto;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .dilawri-header-left {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .dilawri-header-right {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .dilawri-nav-list {
    gap: 14px;
  }

  .dilawri-nav-list li a {
    padding: 0;
    font-size: 13px;
  }

  .page {
    margin: 16px auto 28px;
    padding: 0 12px;
  }

  .brand-kicker {
    font-size: 11px;
  }

  .brand h1 {
    font-size: 22px;
  }

  .brand h2 {
    font-size: 16px;
  }

  .intro,
  .label-en,
  .label-fr,
  input,
  textarea,
  select,
  .field-dropdown .dropdown-trigger,
  .field-dropdown .dropdown-search,
  .field-dropdown .dropdown-item {
    font-size: 14px;
  }

  .form-card,
  .action-card {
    border-radius: 16px;
    padding: 20px 16px;
  }

  .store-switch {
    gap: 10px;
  }

  .store-btn {
    min-width: 160px;
    padding: 13px 18px;
    font-size: 14px;
    border-radius: 10px;
  }

  .login-page {
    padding: 20px 16px;
  }

  .login-form {
    max-width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
    row-gap: 10px;
    margin-bottom: 20px;
  }

  .login-input,
  .password-wrap {
    max-width: 100%;
  }

  .actions-group {
    flex-wrap: wrap;
  }

  .flash-wrap {
    padding: 0 16px;
  }

  .alert {
    width: 100%;
    max-width: 100%;
  }
}

.dilawri-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
}

.dilawri-user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dilawri-user-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  color: #d8d8d8;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 8px;
}

.dilawri-user-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.dilawri-user-icon {
  width: 25px;
  height: 25px;
  border-radius: 50%;
}

.dilawri-user-name {
  max-width: 190px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dilawri-user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
  border: 1px solid #eeeeee;
  overflow: hidden;
  z-index: 99999;
}

.dilawri-user-dropdown.show {
  display: block;
}

.dilawri-user-dropdown-item {
  display: block;
  padding: 13px 16px;
  color: #333333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.dilawri-user-dropdown-item:hover {
  background: #f8edf0;
  color: var(--dilawri-red, #ba0c2f);
}

.dilawri-user-dropdown-divider {
  height: 1px;
  background: #eeeeee;
  margin: 4px 0;
}

.dilawri-user-dropdown-logout {
  color: var(--dilawri-red, #ba0c2f);
}

.page-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 24px 46px;
}

.page-header {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  border-top: 5px solid var(--dilawri-red, #ba0c2f);
}

.page-header h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  color: #1f1f1f;
}

.page-header p {
  margin: 0;
  color: #666666;
  font-size: 15px;
}

.reports-page-header {
  margin-bottom: 16px;
}

.reports-page-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #0f2b5b;
}

.reports-summary-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 20px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #e4e8ef;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.reports-filter-card {
  padding: 0;
  background: transparent;
  border: 0;
}

.reports-filter-form {
  margin: 0;
}

.reports-filter-grid {
  display: grid;
  grid-template-columns: auto auto auto auto;
  gap: 14px;
  align-items: end;
  border: 1px solid #e4e8ef;
  border-radius: 18px;
  padding: 12px;

}

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

.filter-field label {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

.filter-field input[type="date"],
.field-dropdown .dropdown-trigger {
  width: 100%;
  height: 42px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #d5dbe5;
  border-radius: 10px;
  background: #ffffff;
  color: #14213d;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.2;
  box-shadow: none;
}

.field-dropdown .dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
}

.filter-field input[type="date"]:focus,
.field-dropdown .dropdown-trigger:focus {
  outline: none;
  border-color: var(--dilawri-red);
  box-shadow: 0 0 0 3px rgba(186, 12, 47, 0.08);
}

.filter-actions {
  display: flex;
  gap: 8px;
  align-items: end;
}

.btn-filter-apply,
.btn-filter-reset {
  height: 42px;
  min-width: 74px;
  padding: 0 15px;
  border-radius: 10px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
}

.btn-filter-apply {
  border: 1px solid var(--dilawri-red);
  background: var(--dilawri-red);
  color: #ffffff;
}

.btn-filter-apply:hover {
  background: var(--dilawri-red-dark);
  border-color: var(--dilawri-red-dark);
}

.btn-filter-reset {
  border: 1px solid #d5dbe5;
  background: #ffffff;
  color: #14213d;
}

.btn-filter-reset:hover {
  background: #f8fafc;
}

.reports-summary-cards {
  display: flex;
  min-width: 0;
}

.summary-card {
  width: 100%;
  min-height: 100px;
  padding: 0 20px 18px 22px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e1e6ef;
  box-shadow: none;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.summary-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: var(--dilawri-red);
}

.summary-card-label {
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #5b6475;
}

.summary-card-value {
  font-size: 21px;
  line-height: 1.1;
  font-weight: 800;
  color: #0f2b5b;
  letter-spacing: -0.03em;
  word-break: break-word;
}

.summary-card-subtext {
  margin-top: 7px;
  font-size: 11px;
  color: #7a8394;
}

.reports-card {
  background: #ffffff;
  border-radius: 16px;
  overflow-x: auto;
  border: 1px solid #ececec;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.reports-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1000px;
}

.reports-table thead {
  background: #f8edf0;
}

.reports-table th {
  text-align: left;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #333333;
  white-space: nowrap;
  border-bottom: 1px solid #e6e6e6;
}

.reports-table td {
  padding: 14px 16px;
  font-size: 14px;
  color: #333333;
  border-bottom: 1px solid #eeeeee;
  vertical-align: middle;
}

.reports-table .cash-amount {
  text-align: right;
}

.reports-table tbody tr:hover {
  background: #fafafa;
}

.actions-cell {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.sort-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}

.sort-link:hover {
  text-decoration: none;
  opacity: 0.85;
}

.sort-arrow {
  font-size: 11px;
  line-height: 1;
  opacity: 0.75;
}

.btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s ease;
}

.btn-view {
  background: #f1f1f1;
  color: #333333;
}

.btn-view:hover {
  background: #e2e2e2;
}

.btn-download {
  background: var(--dilawri-red, #ba0c2f);
  color: #ffffff;
}

.btn-download:hover {
  background: var(--dilawri-red-dark, #8f0923);
  color: #ffffff;
}

.btn-primary-custom {
  display: inline-block;
  background: var(--dilawri-red, #ba0c2f);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}

.btn-primary-custom:hover {
  background: var(--dilawri-red-dark, #8f0923);
}

.empty-state,
.empty-reports-state {
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  color: #666666;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.empty-state h2 {
  margin: 0 0 10px;
  font-size: 24px;
  color: #1f1f1f;
}

.empty-state p {
  margin: 0 0 24px;
  color: #666666;
}

@media (max-width: 1050px) {
  .reports-summary-panel {
    grid-template-columns: 1fr;
  }

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

  .filter-actions {
    grid-column: 1 / -1;
  }

  .reports-summary-cards {
    max-width: 360px;
  }
}

@media (max-width: 768px) {
  .page-container {
    padding: 24px 16px 36px;
  }

  .page-header {
    padding: 22px;
  }

  .page-header h1 {
    font-size: 23px;
  }
}

@media (max-width: 640px) {
  .reports-page-header h2 {
    font-size: 22px;
  }

  .reports-summary-panel {
    padding: 14px;
    border-radius: 16px;
  }

  .reports-filter-grid {
    grid-template-columns: 1fr;
  }

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

  .btn-filter-apply,
  .btn-filter-reset {
    width: 100%;
  }

  .reports-summary-cards {
    max-width: none;
  }

  .summary-card {
    min-height: 92px;
  }
}
