.ek-inv-frontend {
  color: #0f172a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.ek-inv-sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
.ek-inv-login-shell {
  align-items: center;
  background: #fff;
  display: flex;
  justify-content: center;
  min-height: 72vh;
  padding: 32px 16px;
}
.ek-inv-login-card,
.ek-inv-card,
.ek-inv-metric-card,
.ek-inv-dashboard-header {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}
.ek-inv-login-card {
  border-radius: 8px;
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.08);
  box-sizing: border-box;
  max-width: 428px;
  padding: 35px 34px 34px;
  width: 100%;
}
.ek-inv-login-card h1 {
  color: #0f172a;
  font-size: 29px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 22px;
}
.ek-inv-dashboard-header p,
.ek-inv-profile span {
  color: #64748b;
}
.ek-inv-login-form,
.ek-inv-login-form label,
.ek-inv-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ek-inv-login-form {
  gap: 15px;
  margin-top: 0;
}
.ek-inv-login-form input,
.ek-inv-form input,
.ek-inv-form textarea,
.ek-inv-form select,
.ek-inv-filters input,
.ek-inv-filters select {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-sizing: border-box;
  min-height: 42px;
  padding: 8px 10px;
  width: 100%;
}
.ek-inv-login-form input[type="text"],
.ek-inv-login-form input[type="password"] {
  border-color: #cfd8e3;
  border-radius: 7px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  color: #0f172a;
  font-size: 15px;
  min-height: 41px;
  padding: 9px 15px;
}
.ek-inv-login-form input::placeholder {
  color: #526174;
  opacity: 1;
}
.ek-inv-login-form input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  outline: none;
}
.ek-inv-login-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
}
.ek-inv-check {
  align-items: center;
  flex-direction: row !important;
  color: #0f172a;
  display: inline-flex !important;
  font-size: 14px;
  font-weight: 600;
  gap: 9px;
  line-height: 1.35;
  margin: -1px 0 5px;
}
.ek-inv-check input[type="checkbox"] {
  appearance: auto;
  border-radius: 2px;
  flex: 0 0 auto;
  height: 16px;
  margin: 0;
  min-height: 16px;
  padding: 0;
  width: 16px;
}
.ek-inv-button-primary,
.ek-inv-button-secondary {
  align-items: center;
  appearance: none;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-weight: 700;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  text-decoration: none;
}
.ek-inv-button-primary {
  background: #2563eb;
  border: 1px solid #2563eb;
  color: #fff;
}
.ek-inv-login-form .ek-inv-button-primary {
  border-radius: 7px;
  font-size: 16px;
  min-height: 49px;
  width: 100%;
}
.ek-inv-login-form .ek-inv-button-primary:hover,
.ek-inv-login-form .ek-inv-button-primary:focus {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}
.ek-inv-login-form .ek-inv-button-primary:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  outline: none;
}
.ek-inv-button-secondary {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}
.ek-inv-auth-error {
  background: #fee2e2;
  border-radius: 10px;
  color: #991b1b;
  margin-top: 16px;
  padding: 10px 12px;
}
.ek-inv-dashboard {
  background: #f8fafc;
  min-height: 80vh;
  padding: 24px;
}
.ek-inv-dashboard-content {
  position: relative;
}
.ek-inv-dashboard-content.is-loading {
  cursor: progress;
}
.ek-inv-dashboard-content.is-loading::after {
  background: rgba(248, 250, 252, 0.42);
  border-radius: 16px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 3;
}
.ek-inv-dashboard a,
.ek-inv-dashboard a:hover,
.ek-inv-dashboard a:focus,
.ek-inv-dashboard a:focus-visible,
.ek-inv-dashboard a:active,
.ek-inv-dashboard a:visited,
.ek-inv-dashboard button,
.ek-inv-dashboard button:hover,
.ek-inv-dashboard button:focus,
.ek-inv-dashboard button:focus-visible,
.ek-inv-dashboard button:active,
.ek-inv-dashboard a *,
.ek-inv-dashboard button * {
  text-decoration: none !important;
}
.ek-inv-dashboard-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 20px;
}
.ek-inv-profile {
  align-items: center;
  display: flex;
  gap: 14px;
}
.ek-inv-profile h1 {
  font-size: 24px;
  margin: 0;
}
.ek-inv-profile p {
  margin: 0 0 3px;
}
.ek-inv-avatar img {
  border-radius: 50%;
}
.ek-inv-metrics {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 20px;
}
.ek-inv-metric-card {
  padding: 18px;
}
.ek-inv-metric-card span {
  color: #64748b;
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}
.ek-inv-metric-card strong {
  font-size: 28px;
}
.ek-inv-card {
  margin-bottom: 20px;
  padding: 20px;
}
.ek-inv-list-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.ek-inv-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
}
.ek-inv-tabs a {
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #334155;
  padding: 7px 12px;
  text-decoration: none;
}
.ek-inv-tabs a.is-current {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.ek-inv-list-header h2 {
  margin: 0;
}
.ek-inv-filters {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 1.5fr) repeat(5, minmax(120px, auto));
  margin-bottom: 16px;
}
.ek-inv-table-scroll {
  overflow-x: auto;
}
.ek-inv-data-table,
.ek-inv-items-table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}
.ek-inv-data-table th,
.ek-inv-items-table th {
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  padding: 12px;
  text-align: left;
}
.ek-inv-data-table td,
.ek-inv-items-table td {
  border-top: 1px solid #e2e8f0;
  padding: 12px;
}
.ek-inv-items-table .ek-inv-serial-header,
.ek-inv-items-table .ek-inv-serial-cell {
  box-sizing: border-box;
  max-width: 46px;
  min-width: 46px;
  text-align: center;
  white-space: nowrap;
  width: 46px;
}
.ek-inv-items-table .ek-inv-serial-cell {
  color: #334155;
  font-weight: 600;
  vertical-align: middle;
}
.ek-inv-items-table .ek-inv-hsn-header,
.ek-inv-items-table .ek-inv-hsn-cell {
  box-sizing: border-box;
  max-width: 140px;
  min-width: 118px;
  width: 118px;
}
.ek-inv-items-table .ek-inv-hsn-header,
.ek-inv-items-table .ek-inv-hsn-cell input {
  text-align: center;
}
.ek-inv-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
}
.ek-inv-badge-draft { background: #f1f5f9; color: #334155; }
.ek-inv-badge-sent { background: #dbeafe; color: #1d4ed8; }
.ek-inv-badge-paid { background: #dcfce7; color: #15803d; }
.ek-inv-badge-overdue { background: #fee2e2; color: #b91c1c; }
.ek-inv-action-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ek-inv-form-grid,
.ek-inv-total-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ek-inv-span-2 {
  grid-column: span 2;
}
.ek-inv-section-title {
  font-size: 17px;
  font-weight: 800;
  margin: 24px 0 10px;
}
.ek-inv-items-table input {
  width: 100%;
}
.ek-inv-items-table .ek-inv-gst-header,
.ek-inv-items-table .ek-inv-gst-cell {
  box-sizing: border-box;
  min-width: 92px;
  text-align: center;
}
.ek-inv-items-table .ek-inv-gst-cell input {
  text-align: center;
}
.ek-inv-total-grid {
  margin-top: 18px;
}
.ek-inv-paid-amount-field input {
  color: #16a34a;
  font-weight: 600;
}
.ek-inv-due-amount-field input {
  color: #dc2626;
  font-weight: 700;
}
.ek-inv-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}
.ek-inv-notice {
  border-radius: 10px;
  margin: 12px 0;
  padding: 10px 14px;
}
.ek-inv-notice-success { background: #dcfce7; color: #166534; }
.ek-inv-notice-error { background: #fee2e2; color: #991b1b; }
.ek-inv-pagination {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.ek-inv-pagination a,
.ek-inv-pagination button {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 7px 10px;
  text-decoration: none;
}
.ek-inv-pagination a.is-current,
.ek-inv-pagination button.is-current {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.ek-inv-restricted-dashboard {
  display: flex;
  justify-content: center;
}
.ek-inv-restricted-shell {
  box-sizing: border-box;
  max-width: 1180px;
  min-height: 620px;
  position: relative;
  width: 100%;
}
.ek-inv-restricted-backdrop {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.08);
  box-sizing: border-box;
  filter: blur(8px);
  inset: 0;
  opacity: 0.84;
  overflow: hidden;
  padding: 28px;
  position: absolute;
}
.ek-inv-restricted-backdrop::after {
  background: rgba(255, 255, 255, 0.42);
  content: "";
  inset: 0;
  position: absolute;
}
.ek-inv-restricted-header {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}
.ek-inv-restricted-avatar {
  background: #dbeafe;
  border-radius: 50%;
  height: 54px;
  width: 54px;
}
.ek-inv-restricted-header span,
.ek-inv-restricted-header strong,
.ek-inv-restricted-toolbar span,
.ek-inv-restricted-table span {
  background: #e2e8f0;
  border-radius: 999px;
  display: block;
}
.ek-inv-restricted-header span {
  height: 12px;
  margin-bottom: 8px;
  width: 180px;
}
.ek-inv-restricted-header strong {
  height: 18px;
  width: 260px;
}
.ek-inv-restricted-metrics {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 28px;
}
.ek-inv-restricted-metrics span {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  height: 116px;
}
.ek-inv-restricted-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
}
.ek-inv-restricted-toolbar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
}
.ek-inv-restricted-toolbar span:first-child {
  height: 22px;
  width: 180px;
}
.ek-inv-restricted-toolbar span:last-child {
  height: 40px;
  width: 130px;
}
.ek-inv-restricted-table {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.3fr 1fr 0.8fr 0.9fr;
}
.ek-inv-restricted-table span {
  height: 18px;
}
.ek-inv-restricted-message {
  align-items: center;
  display: flex;
  flex-direction: column;
  left: 50%;
  max-width: 560px;
  padding: 24px;
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92%, 560px);
  z-index: 2;
}
.ek-inv-lock-icon {
  align-items: center;
  background: #0f172a;
  border-radius: 50%;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
  display: inline-flex;
  height: 76px;
  justify-content: center;
  margin-bottom: 22px;
  position: relative;
  width: 76px;
}
.ek-inv-lock-icon::before {
  border: 4px solid #fbbf24;
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  content: "";
  height: 22px;
  left: 50%;
  position: absolute;
  top: 19px;
  transform: translateX(-50%);
  width: 23px;
}
.ek-inv-lock-icon span {
  background: #fbbf24;
  border-radius: 5px;
  display: block;
  height: 22px;
  margin-top: 16px;
  width: 28px;
}
.ek-inv-restricted-message h1 {
  color: #0f172a;
  font-size: 28px;
  line-height: 1.25;
  margin: 0 0 12px;
}
.ek-inv-restricted-message p {
  color: #475569;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}
.ek-inv-filter-card {
  background: #fff;
  border: 1px solid #e6edf7;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
  margin: 0 0 16px;
  padding: 16px;
}
.ek-inv-filter-card .ek-inv-filters {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}
.ek-inv-search-field {
  align-items: center;
  display: flex;
  flex: 1 1 420px;
  min-width: 280px;
  position: relative;
}
.ek-inv-search-field .dashicons {
  color: #31508c;
  font-size: 22px;
  height: 22px;
  left: 18px;
  line-height: 22px;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
}
.ek-inv-search-field input[type="search"] {
  background: #fff;
  border: 1px solid #cddaf0;
  border-radius: 8px;
  box-shadow: none;
  color: #18346d;
  font-size: 15px;
  height: 48px;
  line-height: 48px;
  min-height: 48px;
  padding: 0 18px 0 56px;
  width: 100%;
}
.ek-inv-search-field input[type="search"]::placeholder {
  color: #7990bd;
}
.ek-inv-search-field input[type="search"]:hover,
.ek-inv-filter-select:hover {
  border-color: #b8c9e8;
}
.ek-inv-search-field input[type="search"]:focus,
.ek-inv-filter-select:focus {
  border-color: #9fb7e8;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.12);
  outline: none;
}
.ek-inv-filter-select {
  background-color: #fff;
  border: 1px solid #cddaf0;
  border-radius: 8px;
  box-shadow: none;
  color: #0d2d67;
  flex: 0 0 190px;
  font-size: 15px;
  font-weight: 600;
  height: 48px;
  max-width: 100%;
  min-height: 48px;
  padding-left: 16px;
  width: auto;
}
.ek-inv-filter-button,
.ek-inv-reset-button {
  align-items: center;
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  gap: 9px;
  height: 48px;
  justify-content: center;
  line-height: 1;
  margin: 0;
  min-width: 142px;
  padding: 0 20px;
  text-decoration: none;
}
.ek-inv-filter-button .dashicons {
  color: #fff;
  font-size: 18px;
  height: 18px;
  line-height: 18px;
  width: 18px;
}
.ek-inv-reset-button {
  background: #fff;
  border: 1px solid #cddaf0;
  border-radius: 8px;
  color: #0f2f68;
  min-width: 110px;
}
.ek-inv-reset-button:hover,
.ek-inv-reset-button:focus {
  background: #f8fbff;
  border-color: #9fb7e8;
  color: #0f2f68;
}
.ek-inv-list-card {
  border-color: #e8eef8;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  margin-top: 16px;
  min-height: 360px;
  padding: 24px 20px 20px;
}
.ek-inv-list-card .ek-inv-list-header {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
}
.ek-inv-list-card .ek-inv-list-header h2 {
  color: #030712;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 10px;
}
.ek-inv-list-card .ek-inv-list-header p {
  color: #244484;
  font-size: 15px;
  margin: 0;
}
.ek-inv-view-tabs {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  margin-top: 2px;
}
.ek-inv-view-tabs a,
.ek-inv-view-tabs button {
  appearance: none;
  background: #fff;
  border: 1px solid #dbe6f7;
  border-radius: 999px;
  color: #244484;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 7px 12px;
  text-decoration: none;
}
.ek-inv-view-tabs a.is-current,
.ek-inv-view-tabs button.is-current {
  background: #eaf2ff;
  border-color: #b9cff7;
  color: #1d4ed8;
}
.ek-inv-list-card .ek-inv-data-table {
  border-collapse: separate;
  border-spacing: 0;
  color: #244484;
  min-width: 1120px;
  table-layout: fixed;
  width: 100%;
}
.ek-inv-list-card .ek-inv-data-table th {
  background: #f3f7fc;
  border: 0;
  color: #15356f;
  font-size: 14px;
  font-weight: 700;
  padding: 16px 18px;
  text-align: left;
}
.ek-inv-list-card .ek-inv-data-table th:first-child {
  border-radius: 6px 0 0 6px;
}
.ek-inv-list-card .ek-inv-data-table th:last-child {
  border-radius: 0 6px 6px 0;
  text-align: right;
}
.ek-inv-list-card .ek-inv-data-table td {
  background: #fff;
  border-bottom: 1px solid #e3ebf5;
  color: #244484;
  font-size: 14px;
  line-height: 1.55;
  padding: 18px;
  vertical-align: middle;
}
.ek-inv-list-card .ek-inv-data-table th:nth-child(1),
.ek-inv-list-card .ek-inv-data-table td:nth-child(1) {
  width: 15%;
}
.ek-inv-list-card .ek-inv-data-table th:nth-child(2),
.ek-inv-list-card .ek-inv-data-table td:nth-child(2) {
  width: 14%;
}
.ek-inv-list-card .ek-inv-data-table th:nth-child(3),
.ek-inv-list-card .ek-inv-data-table td:nth-child(3) {
  width: 24%;
}
.ek-inv-list-card .ek-inv-data-table th:nth-child(4),
.ek-inv-list-card .ek-inv-data-table td:nth-child(4) {
  width: 13%;
}
.ek-inv-list-card .ek-inv-data-table th:nth-child(5),
.ek-inv-list-card .ek-inv-data-table td:nth-child(5) {
  width: 12%;
}
.ek-inv-list-card .ek-inv-data-table th:nth-child(6),
.ek-inv-list-card .ek-inv-data-table td:nth-child(6) {
  width: 12%;
}
.ek-inv-list-card .ek-inv-data-table th:nth-child(7),
.ek-inv-list-card .ek-inv-data-table td:nth-child(7) {
  width: 10%;
}
.ek-inv-list-card .ek-inv-data-table tr:last-child td {
  border-bottom: 0;
}
.ek-inv-empty-state {
  color: #64748b !important;
  padding: 30px 18px !important;
  text-align: center;
}
.ek-inv-badge {
  align-items: center;
  gap: 8px;
  line-height: 1;
  min-height: 26px;
  padding: 7px 13px;
  white-space: nowrap;
}
.ek-inv-badge::before {
  border-radius: 999px;
  content: "";
  display: inline-block;
  height: 8px;
  width: 8px;
}
.ek-inv-badge-draft::before { background: #6b7280; }
.ek-inv-badge-sent::before { background: #2477ff; }
.ek-inv-badge-paid::before { background: #22c55e; }
.ek-inv-badge-overdue::before { background: #ef4444; }
.ek-inv-action-cell {
  overflow: visible;
  position: relative;
  text-align: right;
}
.ek-inv-action-cell .ek-inv-action-menu {
  display: inline-flex;
  justify-content: flex-end;
}
.ek-inv-action-toggle {
  align-items: center;
  background: #fff;
  border: 1px solid #bfd2f4;
  border-radius: 7px;
  box-shadow: none;
  color: #173b82;
  cursor: pointer;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  padding: 0;
  width: 42px;
}
.ek-inv-action-toggle:hover,
.ek-inv-action-toggle:focus,
.ek-inv-action-toggle:active,
.ek-inv-action-menu.is-open .ek-inv-action-toggle,
.ek-inv-action-toggle[aria-expanded="true"] {
  background: #fff !important;
  border-color: #bfd2f4;
  box-shadow: none;
  color: #173b82;
  outline: none;
}
.ek-inv-action-toggle:focus-visible {
  outline: 2px solid rgba(15, 23, 42, 0.32);
  outline-offset: 2px;
}
.ek-inv-action-toggle .dashicons {
  font-size: 23px;
  height: 23px;
  line-height: 23px;
  width: 23px;
}
.ek-inv-action-dropdown {
  background: #fff;
  border: 1px solid #e5ecf6;
  border-radius: 7px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
  display: none;
  min-width: 176px;
  padding: 12px 0;
  position: fixed;
  text-align: left;
  z-index: 100000;
}
.ek-inv-action-menu.is-open .ek-inv-action-dropdown {
  display: block;
}
.ek-inv-action-dropdown a,
.ek-inv-action-dropdown button {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  color: #111827;
  cursor: pointer;
  display: flex;
  font-family: inherit;
  font-size: 14px;
  gap: 12px;
  line-height: 1.2;
  padding: 10px 20px;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  width: 100%;
}
.ek-inv-action-dropdown a,
.ek-inv-action-dropdown a:hover,
.ek-inv-action-dropdown a:focus,
.ek-inv-action-dropdown a:focus-visible,
.ek-inv-action-dropdown a:active,
.ek-inv-action-dropdown a:visited,
.ek-inv-action-dropdown a *,
.ek-inv-action-dropdown a:hover *,
.ek-inv-action-dropdown a:focus *,
.ek-inv-action-dropdown a:active *,
.ek-inv-action-dropdown button,
.ek-inv-action-dropdown button:hover,
.ek-inv-action-dropdown button:focus,
.ek-inv-action-dropdown button:focus-visible,
.ek-inv-action-dropdown button:active,
.ek-inv-action-dropdown button *,
.ek-inv-action-dropdown button:hover *,
.ek-inv-action-dropdown button:focus *,
.ek-inv-action-dropdown button:active * {
  text-decoration: none !important;
}
.ek-inv-action-dropdown a:hover,
.ek-inv-action-dropdown button:hover {
  background: #f8fafc;
  color: #111827;
  outline: none;
}
.ek-inv-action-dropdown a:focus-visible,
.ek-inv-action-dropdown button:focus-visible {
  background: #f8fafc;
  color: #111827;
  outline: 2px solid rgba(15, 23, 42, 0.3);
  outline-offset: -2px;
}
.ek-inv-action-dropdown a.is-danger,
.ek-inv-action-dropdown button.is-danger {
  color: #ff1717;
}
.ek-inv-action-dropdown a.is-danger:hover,
.ek-inv-action-dropdown a.is-danger:focus-visible,
.ek-inv-action-dropdown button.is-danger:hover,
.ek-inv-action-dropdown button.is-danger:focus-visible {
  background: #fff5f5;
  color: #dc2626;
}
.ek-inv-action-dropdown .dashicons {
  font-size: 17px;
  height: 17px;
  line-height: 17px;
  width: 17px;
}
.ek-inv-no-actions {
  color: #94a3b8;
  display: inline-block;
  font-weight: 700;
  padding-right: 14px;
}
.ek-inv-admin-pagination {
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 22px;
}
.ek-inv-admin-pagination .ek-inv-page-control {
  align-items: center;
  appearance: none;
  background: #fff;
  border: 1px solid #cddaf0;
  border-radius: 7px;
  color: #244484;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-weight: 700;
  height: 46px;
  justify-content: center;
  min-width: 46px;
  padding: 0 16px;
  text-decoration: none;
}
.ek-inv-admin-pagination .ek-inv-page-control.is-current {
  background: #eef4ff;
  border-color: #2563eb;
  color: #1d4ed8;
}
.ek-inv-admin-pagination .ek-inv-page-control.is-disabled {
  color: #9fb0d1;
  cursor: not-allowed;
}
body.ek-inv-modal-open,
body.ek-inv-dashboard-modal-open {
  overflow: hidden;
}
.ek-inv-dashboard-modal[hidden],
.ek-inv-preview-modal[hidden] {
  display: none;
}
.ek-inv-dashboard-modal,
.ek-inv-preview-modal {
  inset: 0;
  position: fixed;
  z-index: 99999;
}
.ek-inv-dashboard-modal-backdrop,
.ek-inv-preview-backdrop {
  background: rgba(15, 23, 42, 0.58);
  border: 0;
  cursor: pointer;
  inset: 0;
  padding: 0;
  position: absolute;
  width: auto;
}
.ek-inv-dashboard-modal-dialog {
  background: #fff;
  border: 1px solid #dbe6f7;
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
  display: flex;
  flex-direction: column;
  left: 50%;
  max-height: 90vh;
  max-width: 1480px;
  outline: none;
  overflow: hidden;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 96vw;
}
.ek-inv-dashboard-modal-header,
.ek-inv-preview-toolbar {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
}
.ek-inv-dashboard-modal-header h2,
.ek-inv-preview-heading h2 {
  color: #0f172a;
  font-size: 22px;
  line-height: 1.2;
  margin: 0;
}
.ek-inv-dashboard-modal-close,
.ek-inv-modal-close {
  align-items: center;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #0f172a;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  width: 40px;
}
.ek-inv-dashboard-modal-close:hover,
.ek-inv-dashboard-modal-close:focus,
.ek-inv-modal-close:hover,
.ek-inv-modal-close:focus {
  border-color: #2563eb;
  color: #1d4ed8;
  outline: none;
}
.ek-inv-dashboard-modal-body {
  background: #f8fafc;
  overflow: auto;
  padding: 20px;
}
.ek-inv-dashboard-modal-body .ek-inv-form-card {
  border-radius: 12px;
  box-shadow: none;
  margin: 0;
}
.ek-inv-preview-dialog {
  background: #f8fafc;
  border: 1px solid #dbe6f7;
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
  display: flex;
  flex-direction: column;
  left: 50%;
  max-height: 92vh;
  max-width: 1500px;
  outline: none;
  overflow: hidden;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 96vw;
}
.ek-inv-preview-heading p {
  color: #64748b;
  margin: 3px 0 0;
}
.ek-inv-preview-body {
  align-items: flex-start;
  display: flex;
  justify-content: center;
  min-height: 0;
  overflow: auto;
  padding: 18px;
  position: relative;
}
.ek-inv-modal-frame-shell {
  display: flex;
  justify-content: center;
  max-width: 100%;
}
.ek-inv-modal-frame {
  background: #fff;
  border: 0;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  height: calc(92vh - 108px);
  min-width: 820px;
  transform-origin: top center;
  width: 820px;
}
.ek-inv-modal-state {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #334155;
  display: flex;
  gap: 10px;
  left: 50%;
  padding: 14px 16px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.ek-inv-modal-state[hidden] {
  display: none;
}
.ek-inv-spinner {
  animation: ekInvSpin 0.8s linear infinite;
  border: 3px solid #dbeafe;
  border-top-color: #2563eb;
  border-radius: 50%;
  display: inline-block;
  height: 20px;
  width: 20px;
}
@keyframes ekInvSpin {
  to { transform: rotate(360deg); }
}
.ek-inv-direct-print-frame {
  border: 0;
  height: 0;
  left: -9999px;
  position: fixed;
  top: -9999px;
  width: 0;
}
@media (max-width: 900px) {
  .ek-inv-metrics,
  .ek-inv-form-grid,
  .ek-inv-total-grid,
  .ek-inv-restricted-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .ek-inv-filter-card .ek-inv-filters {
    align-items: stretch;
  }
  .ek-inv-search-field {
    flex-basis: 100%;
  }
  .ek-inv-filter-select,
  .ek-inv-filter-button,
  .ek-inv-reset-button {
    flex: 1 1 160px;
  }
  .ek-inv-dashboard-modal-dialog,
  .ek-inv-preview-dialog {
    max-height: 94vh;
    width: 94vw;
  }
}
@media (max-width: 640px) {
  .ek-inv-login-shell {
    padding: 28px 14px;
  }
  .ek-inv-login-card {
    padding: 30px 24px;
  }
  .ek-inv-login-card h1 {
    font-size: 26px;
  }
  .ek-inv-dashboard {
    padding: 14px;
  }
  .ek-inv-dashboard-header,
  .ek-inv-list-header,
  .ek-inv-actions,
  .ek-inv-login-row {
    align-items: stretch;
    flex-direction: column;
  }
  .ek-inv-metrics,
  .ek-inv-form-grid,
  .ek-inv-total-grid,
  .ek-inv-restricted-metrics,
  .ek-inv-restricted-table {
    grid-template-columns: 1fr;
  }
  .ek-inv-span-2 {
    grid-column: span 1;
  }
  .ek-inv-restricted-shell {
    min-height: 560px;
  }
  .ek-inv-restricted-message h1 {
    font-size: 24px;
  }
  .ek-inv-search-field,
  .ek-inv-filter-select,
  .ek-inv-filter-button,
  .ek-inv-reset-button {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
  }
  .ek-inv-list-card {
    padding: 18px 14px;
  }
  .ek-inv-dashboard-modal-dialog,
  .ek-inv-preview-dialog {
    border-radius: 0;
    max-height: 100vh;
    height: 100vh;
    width: 100vw;
  }
  .ek-inv-dashboard-modal-body,
  .ek-inv-preview-body {
    padding: 14px;
  }
  .ek-inv-modal-frame {
    height: calc(100vh - 96px);
    min-width: 820px;
    width: 820px;
  }
}
