body:not(:has(aside, .sidebar, .app-sidebar, [data-sidebar], [data-app-shell], .app-shell)) .regab-excel-tile,
body:not(:has(aside, .sidebar, .app-sidebar, [data-sidebar], [data-app-shell], .app-shell)) .regab-excel-overlay {
  display: none !important;
}

html.regab-excel-dialog-open,
body.regab-excel-dialog-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.regab-excel-tile {
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: 100%;
  max-width: 430px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 20px;
  color: #172437;
  background: #fff;
  border: 1px solid #d8e2ec;
  border-radius: 18px;
  box-shadow: 0 16px 45px rgba(15, 23, 42, .06);
  text-align: left;
  font: inherit;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.regab-excel-tile > :not(.regab-excel-tile-hitbox) {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.regab-excel-tile-hitbox {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: block;
  border-radius: inherit;
  background: transparent;
  pointer-events: auto;
}

.regab-excel-tile[data-regab-in-grid="1"] {
  max-width: none;
}

.regab-excel-tile:hover,
.regab-excel-tile:focus-visible {
  border-color: #9dc0ff;
  box-shadow: 0 18px 60px rgba(57, 119, 237, .13);
  outline: none;
  transform: translateY(-1px);
}

.regab-excel-tile-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: #3977ed;
  background: #eaf2ff;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .05em;
}

.regab-excel-tile strong {
  color: inherit;
  font-size: 18px;
  line-height: 1.15;
}

.regab-excel-tile span:not(.regab-excel-tile-icon) {
  color: #718196;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.regab-excel-tile em {
  margin-top: auto;
  padding: 6px 10px;
  color: #3977ed;
  background: #edf5ff;
  border-radius: 999px;
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
}

.regab-excel-overlay {
  position: fixed;
  inset: 0;
  z-index: 92000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, .58);
  backdrop-filter: blur(9px);
  overflow: hidden;
  overscroll-behavior: contain;
  pointer-events: auto;
  isolation: isolate;
}

.regab-excel-card {
  margin: 0 0 24px;
  padding: 22px;
  color: #172437;
  background: #fff;
  border: 1px solid #d8e2ec;
  border-radius: 24px;
  box-shadow: 0 18px 55px rgba(15, 23, 42, .08);
}

.regab-excel-panel {
  position: relative;
  width: min(860px, calc(100vw - 56px));
  max-height: min(760px, calc(100vh - 56px));
  margin: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.regab-excel-close {
  position: sticky;
  top: 0;
  float: right;
  width: 40px;
  height: 40px;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #60758b;
  background: #f8fafc;
  border: 1px solid #d8e2ec;
  border-radius: 14px;
  font: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.regab-excel-panel-body {
  clear: both;
}

.regab-excel-card,
.regab-excel-card * {
  box-sizing: border-box;
}

.regab-excel-card.is-busy {
  opacity: .76;
  pointer-events: none;
}

.regab-excel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.regab-excel-kicker {
  margin-bottom: 6px;
  color: #3977ed;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.regab-excel-card h2,
.regab-excel-card h3 {
  margin: 0;
  color: inherit;
}

.regab-excel-card h2 {
  font-size: 24px;
  line-height: 1.12;
}

.regab-excel-card h3 {
  font-size: 16px;
}

.regab-excel-card p {
  margin: 8px 0 0;
  color: #718196;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.regab-excel-status {
  min-width: 156px;
  padding: 10px 12px;
  color: #60758b;
  background: #f8fafc;
  border: 1px solid #d8e2ec;
  border-radius: 16px;
  text-align: right;
}

.regab-excel-status span,
.regab-excel-status small {
  display: block;
  font-size: 12px;
  font-weight: 900;
}

.regab-excel-status strong {
  display: block;
  margin-top: 3px;
  color: #172437;
  font-size: 15px;
}

.regab-excel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.regab-excel-actions button,
.regab-excel-upload {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border-radius: 12px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.regab-excel-upload {
  color: #fff;
  background: #3977ed;
  border: 1px solid #3977ed;
  box-shadow: 0 12px 28px rgba(57, 119, 237, .24);
}

.regab-excel-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.regab-excel-message,
.regab-excel-warning {
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: 12px;
  font-weight: 900;
}

.regab-excel-message {
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fecaca;
}

.regab-excel-message.is-warning {
  color: #9a3412;
  background: #fff7ed;
  border-color: #fed7aa;
}

.regab-excel-warning {
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.regab-excel-preview,
.regab-excel-recent {
  margin-top: 16px;
}

.regab-excel-empty {
  padding: 14px;
  color: #718196;
  background: #f8fafc;
  border: 1px dashed #cbd9e8;
  border-radius: 13px;
  font-weight: 850;
}

.regab-excel-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.regab-excel-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.regab-excel-change,
.regab-excel-issue,
.regab-excel-import {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #d8e2ec;
  background: #f8fafc;
}

.regab-excel-change {
  display: grid;
  gap: 5px;
}

.regab-excel-change strong {
  color: #172437;
}

.regab-excel-change span,
.regab-excel-import span {
  color: #718196;
  font-size: 13px;
  font-weight: 800;
}

.regab-excel-change.is-create {
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.regab-excel-card details {
  margin-top: 12px;
}

.regab-excel-card summary {
  cursor: pointer;
  font-weight: 950;
}

.regab-excel-import {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.regab-excel-import strong,
.regab-excel-import span {
  display: block;
}

.regab-excel-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 95000;
  max-width: min(460px, calc(100vw - 44px));
  padding: 14px 16px;
  color: #172437;
  background: #fff;
  border: 1px solid #d8e2ec;
  border-radius: 16px;
  box-shadow: 0 20px 70px rgba(15, 23, 42, .25);
  font-weight: 950;
}

.regab-excel-toast.is-success {
  color: #166534;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.regab-excel-toast.is-error {
  color: #991b1b;
  background: #fee2e2;
  border-color: #fecaca;
}

html.dark .regab-excel-card,
html.dark .regab-excel-tile,
body.dark .regab-excel-card,
body.dark .regab-excel-tile,
[data-theme="dark"] .regab-excel-card {
  color: #e6f0fb;
  background: #10283d;
  border-color: #245179;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .22);
}

[data-theme="dark"] .regab-excel-tile {
  color: #e6f0fb;
  background: #10283d;
  border-color: #245179;
}

html.dark .regab-excel-card p,
html.dark .regab-excel-tile span:not(.regab-excel-tile-icon),
html.dark .regab-excel-status,
html.dark .regab-excel-change span,
html.dark .regab-excel-import span,
body.dark .regab-excel-card p,
body.dark .regab-excel-tile span:not(.regab-excel-tile-icon),
body.dark .regab-excel-status,
body.dark .regab-excel-change span,
body.dark .regab-excel-import span,
[data-theme="dark"] .regab-excel-card p,
[data-theme="dark"] .regab-excel-tile span:not(.regab-excel-tile-icon),
[data-theme="dark"] .regab-excel-status,
[data-theme="dark"] .regab-excel-change span,
[data-theme="dark"] .regab-excel-import span {
  color: #a9bad0;
}

html.dark .regab-excel-tile-icon,
body.dark .regab-excel-tile-icon,
[data-theme="dark"] .regab-excel-tile-icon {
  background: rgba(57, 119, 237, .16);
}

html.dark .regab-excel-tile em,
body.dark .regab-excel-tile em,
[data-theme="dark"] .regab-excel-tile em {
  color: #8ab6ff;
  background: rgba(57, 119, 237, .16);
}

html.dark .regab-excel-status,
html.dark .regab-excel-empty,
html.dark .regab-excel-change,
html.dark .regab-excel-issue,
html.dark .regab-excel-import,
body.dark .regab-excel-status,
body.dark .regab-excel-empty,
body.dark .regab-excel-change,
body.dark .regab-excel-issue,
body.dark .regab-excel-import,
[data-theme="dark"] .regab-excel-status,
[data-theme="dark"] .regab-excel-empty,
[data-theme="dark"] .regab-excel-change,
[data-theme="dark"] .regab-excel-issue,
[data-theme="dark"] .regab-excel-import {
  background: #071b2a;
  border-color: #245179;
}

html.dark .regab-excel-status strong,
html.dark .regab-excel-change strong,
body.dark .regab-excel-status strong,
body.dark .regab-excel-change strong,
[data-theme="dark"] .regab-excel-status strong,
[data-theme="dark"] .regab-excel-change strong {
  color: #e6f0fb;
}

@media (max-width: 760px) {
  .regab-excel-card {
    padding: 18px;
  }
  .regab-excel-head,
  .regab-excel-preview-head,
  .regab-excel-import {
    align-items: stretch;
    flex-direction: column;
  }
  .regab-excel-status {
    text-align: left;
  }
}
