/* 모바일 지출결의 앱 — e요셉 톤 */
body.is-ea-mobile {
  --ea-ink: #0c2e36;
  --ea-ink-soft: #1a4a55;
  --ea-sea: #2a7a86;
  --ea-brass: #b08d57;
  --ea-brass-soft: #d4bc8a;
  --ea-paper: #f6f3ec;
  --ea-line: rgba(12, 46, 54, 0.12);
  background:
    radial-gradient(900px 480px at 8% -8%, rgba(42, 122, 134, 0.2), transparent 55%),
    radial-gradient(700px 420px at 100% 0%, rgba(176, 141, 87, 0.18), transparent 50%),
    linear-gradient(180deg, #f3efe6 0%, var(--ea-paper) 42%, #f8f6f1 100%);
  min-height: 100dvh;
  height: 100%;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: pan-y;
  position: fixed;
  inset: 0;
}
body.is-ea-mobile #authLoginModal,
body.is-ea-mobile #appShell {
  display: none !important;
}

.ea-app {
  height: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding: 1.25rem 1.1rem 2rem;
  box-sizing: border-box;
  font-family: "Noto Sans KR", sans-serif;
  color: var(--ea-ink);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
.ea-app[hidden] {
  display: none !important;
}
.ea-app__gate[hidden],
.ea-app__shell[hidden] {
  display: none !important;
}

.ea-gate {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding-top: 2.2rem;
}
.ea-gate__hero {
  text-align: center;
  padding: 0.35rem 0.5rem 0.15rem;
}
.ea-app__brand {
  margin: 0;
  font-family: Fraunces, "Noto Sans KR", serif;
  font-size: 2.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ea-ink);
}
.ea-app__brand .brand-e,
.ea-app__top-brand .brand-e {
  color: var(--ea-sea);
}
.ea-app__tag {
  margin: 0.15rem 0 0;
  font-family: Fraunces, "Noto Sans KR", serif;
  font-size: 0.92rem;
  font-style: italic;
  color: var(--ea-brass);
  letter-spacing: 0.04em;
}
.ea-app__sub {
  margin: 0.45rem 0 0;
  color: var(--ea-ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}
.ea-gate__card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.25rem 1.15rem 1.35rem;
  border: 1px solid var(--ea-line);
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 246, 241, 0.98) 100%);
  box-shadow: 0 18px 40px rgba(12, 46, 54, 0.08);
}
.ea-app__title {
  margin: 0 0 0.35rem;
  font-family: Fraunces, "Noto Sans KR", serif;
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--ea-ink);
}
.ea-app__field {
  margin: 0;
}
.ea-app__field > span {
  display: block;
  margin-bottom: 0.28rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ea-ink-soft);
}
.ea-app__field input {
  width: 100%;
  box-sizing: border-box;
  min-height: 2.85rem;
  font-size: 1.05rem;
  color: var(--ea-ink);
  font-weight: 500;
  border: 1px solid rgba(12, 46, 54, 0.16);
  border-radius: 12px;
  padding: 0.45rem 0.75rem;
  background: #fff;
}
.ea-app__field input:focus {
  outline: none;
  border-color: var(--ea-sea);
  box-shadow: 0 0 0 3px rgba(42, 122, 134, 0.15);
}
.ea-app__btn {
  width: 100%;
  min-height: 2.95rem;
  margin-top: 0.35rem;
  font-size: 1.02rem;
  border-radius: 12px;
}
.ea-church-logo--login {
  height: 3.85rem;
  max-width: 11rem;
  margin: 0.95rem auto 0.15rem;
}
body.is-ea-mobile .ea-app .btn.primary {
  background: var(--ea-ink);
  border-color: var(--ea-ink);
}
body.is-ea-mobile .ea-app .btn.primary:hover:not(:disabled) {
  background: var(--ea-ink-soft);
}
.ea-app__status {
  min-height: 1.25rem;
  margin: 0.15rem 0;
  color: #9b3b3b;
  font-size: 0.88rem;
}
.ea-app__confirm-msg {
  margin: 0.25rem 0;
  padding: 0.9rem 1rem;
  background: rgba(42, 122, 134, 0.06);
  border: 1px solid rgba(42, 122, 134, 0.18);
  border-radius: 12px;
  line-height: 1.5;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ea-ink);
}
.ea-app__hint {
  margin: 0;
  color: #5c6d72;
  font-size: 0.84rem;
  line-height: 1.45;
}

.ea-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: calc(100dvh - 2rem);
}
.ea-shell__top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--ea-line);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(12, 46, 54, 0.94) 0%, rgba(26, 74, 85, 0.92) 100%);
  box-shadow: 0 14px 28px rgba(12, 46, 54, 0.14);
}
.ea-church-logo {
  display: block;
  height: 3.85rem;
  width: auto;
  max-width: 11rem;
  margin: auto auto 0.35rem;
  object-fit: contain;
  background: transparent;
  padding: 0;
}
.ea-app__top-mid {
  min-width: 0;
  text-align: center;
}
.ea-app__top-brand {
  margin: 0;
  font-family: Fraunces, "Noto Sans KR", serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f6f3ec;
  line-height: 1.25;
}
.ea-app__top-brand .brand-e {
  color: var(--ea-brass-soft);
}
.ea-app__top-user {
  margin: 0.28rem 0 0;
  color: rgba(246, 243, 236, 0.78);
  font-size: 0.88rem;
  text-align: center;
}
.ea-app__top-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.28rem;
  flex-shrink: 0;
}
.ea-app__top-who {
  margin: 0;
  color: #f6f3ec;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  max-width: 7.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}
.ea-admin-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.4rem;
  margin: 0.55rem 0 0.15rem;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  border: 1px dashed rgba(12, 46, 54, 0.22);
  background: rgba(255, 248, 230, 0.95);
}
.ea-admin-switch__label {
  flex: 1 1 100%;
  font-size: 0.72rem;
  font-weight: 700;
  color: #9a3412;
}
.ea-admin-switch input[type="text"],
.ea-admin-switch input[type="tel"] {
  flex: 1 1 7rem;
  min-width: 0;
  min-height: 2rem;
  padding: 0.25rem 0.45rem;
  border: 1px solid rgba(12, 46, 54, 0.2);
  border-radius: 6px;
  font-size: 0.82rem;
}
.ea-admin-switch__btn {
  flex: 0 0 auto;
  min-height: 2rem;
  padding: 0.25rem 0.55rem;
  font-size: 0.78rem;
}
.ea-admin-switch__hits {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  margin-top: 0.15rem;
}
.ea-admin-switch__hits[hidden] {
  display: none !important;
}
.ea-admin-switch__hit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  width: 100%;
  min-height: 2rem;
  padding: 0.28rem 0.5rem;
  border: 1px solid rgba(12, 46, 54, 0.16);
  border-radius: 6px;
  background: #fff;
  color: #0c2e36;
  font-size: 0.8rem;
  text-align: left;
  cursor: pointer;
}
.ea-admin-switch__hit em {
  font-style: normal;
  color: #5a6a6e;
  font-size: 0.72rem;
}
.ea-shell__top .ea-app__logout {
  flex-shrink: 0;
  font-size: 0.86rem;
  color: #f6f3ec;
  border-color: rgba(246, 243, 236, 0.28);
  background: transparent;
}
.ea-shell__top .ea-app__logout:hover {
  background: rgba(255, 255, 255, 0.08);
}
.ea-app__dash {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.ea-app__dash-label {
  margin: 0.15rem 0 0;
  color: var(--ea-ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ea-signreg {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.ea-transfer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.ea-transfer__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem 0.85rem;
}
.ea-transfer__filters .ea-transfer__date {
  flex: 1 1 12rem;
  min-width: 0;
}
.ea-transfer__opt {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.55rem;
  padding: 0.25rem 0.7rem 0.25rem 0.5rem;
  border: 1px solid var(--ea-line);
  border-radius: 10px;
  background: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a4a55;
  cursor: pointer;
  user-select: none;
}
.ea-transfer__opt input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  accent-color: #1a4a55;
}
.ea-transfer__date span {
  font-size: 0.82rem;
  font-weight: 600;
  color: #3a555c;
}
.ea-transfer__date input {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--ea-line);
  border-radius: 10px;
  font-size: 1rem;
  background: #fff;
}
.ea-transfer__meta {
  margin: 0;
  font-size: 0.86rem;
  color: #3a555c;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.ea-transfer__meta-total {
  font-weight: 650;
  color: #1a4a55;
}
.ea-transfer__list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.ea-transfer__empty {
  margin: 0.5rem 0 0;
  padding: 1rem;
  text-align: center;
  color: #7a8a8e;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  border: 1px dashed rgba(12, 46, 54, 0.18);
}
.ea-transfer__card {
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--ea-line);
  box-shadow: 0 1px 0 rgba(12, 46, 54, 0.04);
}
.ea-transfer__line1,
.ea-transfer__line2 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  align-items: baseline;
  font-size: 0.92rem;
  line-height: 1.35;
}
.ea-transfer__line1 {
  font-weight: 400;
  color: var(--ea-ink);
}
.ea-transfer__amt {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--ea-sea);
}
.ea-transfer__payee {
  font-weight: 700;
  color: var(--ea-ink);
}
.ea-transfer__acct,
.ea-transfer__phone {
  color: #3a555c;
  font-size: 0.86rem;
}
.ea-transfer__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.2rem 0.85rem;
  margin-top: 0.4rem;
}
.ea-transfer__detail {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.12rem;
  min-width: 0;
  font-size: 0.82rem;
  color: #3a555c;
}
.ea-transfer__detail.is-wait .ea-transfer__sum {
  color: #6a5530;
}
.ea-transfer__sum {
  flex: 0 0 auto;
  white-space: nowrap;
}
.ea-transfer__iamt {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ea-ink);
}
.ea-transfer__mark {
  margin-left: auto;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ea-transfer__mark.is-posted {
  background: #e7f3f0;
  color: #1a5a45;
}
.ea-transfer__mark.is-wait {
  background: #f5f0e8;
  color: #6a5530;
}
.ea-transfer__mark.is-mixed {
  background: #f3efe6;
  color: #5a4a2a;
}
.ea-transfer__card.is-unposted {
  border-color: rgba(176, 141, 87, 0.35);
}
.ea-signreg__hint {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #3a555c;
}
.ea-signreg__preview {
  min-height: 7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(12, 46, 54, 0.22);
  border-radius: 12px;
  background: #fff;
  padding: 0.75rem;
}
.ea-signreg__preview img {
  max-width: 100%;
  max-height: 8rem;
  object-fit: contain;
}
.ea-signreg__empty {
  margin: 0;
  color: #7a8a8e;
  font-size: 0.9rem;
}
.ea-dash-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  width: 100%;
  text-align: left;
  padding: 1.15rem 1.2rem 1.15rem 1.35rem;
  border: 1px solid var(--ea-line);
  border-radius: 16px;
  background: linear-gradient(165deg, #ffffff 0%, #f8f6f1 100%);
  box-shadow: 0 10px 24px rgba(12, 46, 54, 0.07);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}
.ea-dash-card__mark {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--ea-sea), var(--ea-brass));
}
.ea-dash-card:active {
  transform: scale(0.985);
}
.ea-dash-card:hover {
  border-color: rgba(42, 122, 134, 0.35);
  box-shadow: 0 14px 28px rgba(12, 46, 54, 0.1);
}
.ea-dash-card strong {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ea-ink);
}
.ea-dash-card span:not(.ea-dash-card__mark) {
  font-size: 0.88rem;
  color: #5c6d72;
  line-height: 1.35;
}
.ea-app__foot-hint {
  margin-top: auto;
  padding-top: 0.5rem;
  color: #8a9a9e;
  font-size: 0.82rem;
  text-align: center;
  min-height: 1.2rem;
}

@media (min-width: 768px) {
  .ea-app {
    max-width: 36rem;
    padding-top: 2rem;
  }
}

/* —— 결의서 상신 —— */
.ea-submit {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.ea-submit__pick {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.45rem;
}
.ea-submit__pick--no-mok {
  grid-template-columns: 1fr 1fr;
}
.ea-submit__sel[hidden] {
  display: none !important;
}
.ea-submit__bud {
  display: block;
  margin: -0.15rem 0 0.15rem;
  font-size: 0.65rem; /* ~10% smaller than 0.72rem for one-line on narrow phones */
  font-weight: 500;
  color: #5a6c70;
  line-height: 1.25;
  letter-spacing: -0.02em;
  word-break: keep-all;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ea-submit__bud:empty {
  display: none;
}
.ea-submit__bud.is-over {
  color: #a33;
  font-weight: 700;
}
.ea-submit__sel select {
  width: 100%;
  min-height: 2.65rem;
  font-size: 0.833rem; /* ~15% smaller than 0.98rem */
  border: 1px solid #c5d0d3;
  border-radius: 10px;
  padding: 0.35rem 0.55rem;
  background: #fff;
  color: #1a2b2e;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 100%;
}
.ea-submit__sel select:disabled {
  background: #eef2f3;
  color: #3d4f53;
  font-weight: 600;
}

.ea-stamps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
}
.ea-stamp {
  aspect-ratio: 1 / 1;
  display: grid;
  grid-template-rows: 1fr 3fr 1fr;
  border: 1.5px solid #1a3a42;
  background: #fff;
  overflow: hidden;
}
.ea-stamp__title,
.ea-stamp__name {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: #143239;
  border-bottom: 1px solid #c5d0d3;
  padding: 0 0.15rem;
  text-align: center;
  line-height: 1.15;
}
.ea-stamp__name {
  border-bottom: none;
  border-top: 1px solid #c5d0d3;
  font-weight: 600;
  font-size: 0.62rem;
  word-break: keep-all;
}
.ea-stamp__sign {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafbfb;
  min-height: 0;
}
.ea-stamp__sign img {
  max-width: 96%;
  max-height: 96%;
  object-fit: contain;
}

.ea-submit__claim-date {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0.15rem 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #5a6c70;
  position: relative;
}
.ea-submit__claim-date input {
  width: 100%;
  max-width: 11rem;
  box-sizing: border-box;
  font-size: 0.95rem;
  font-weight: 600;
  color: #143239;
  padding: 0.35rem 0.45rem;
  border: 1px solid #c5d0d3;
  border-radius: 0.35rem;
  background: #fff;
}
.ea-submit__claim-date input.is-sunday-only {
  caret-color: transparent;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  max-width: 14rem;
}
.ea-claim-cal-btn {
  display: none;
}
.ea-claim-cal {
  margin: 0 0 0.6rem;
  padding: 0.65rem 0.7rem 0.75rem;
  border: 1px solid #c5d0d3;
  border-radius: 0.5rem;
  background: #f7fafb;
  max-width: 18rem;
}
.ea-claim-cal[hidden] {
  display: none !important;
}
.ea-claim-cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}
.ea-claim-cal__head strong {
  font-size: 0.95rem;
  color: #143239;
}
.ea-claim-cal__nav {
  width: 2rem;
  height: 2rem;
  border: 1px solid #c5d0d3;
  border-radius: 0.35rem;
  background: #fff;
  font-size: 1.15rem;
  line-height: 1;
  color: #143239;
  cursor: pointer;
}
.ea-claim-cal__dows {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.15rem;
  margin-bottom: 0.25rem;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: #6a7c80;
}
.ea-claim-cal__dows span:first-child {
  color: #b33;
}
.ea-claim-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.15rem;
}
.ea-claim-cal__day {
  aspect-ratio: 1;
  min-height: 2rem;
  border: none;
  border-radius: 0.3rem;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 500;
  color: #b0bcc0;
  cursor: pointer;
  padding: 0;
}
.ea-claim-cal__day.is-muted {
  color: #c8d2d5;
  font-weight: 400;
  cursor: not-allowed;
}
.ea-claim-cal__day.is-sun {
  color: #0c2e36;
  font-weight: 800;
  background: #fff;
  box-shadow: inset 0 0 0 1px #9eb8be;
}
.ea-claim-cal__day.is-sun.is-selected {
  background: #1a6b74;
  color: #fff;
  box-shadow: none;
}
.ea-claim-cal__day.is-other-month {
  opacity: 0.35;
}
.ea-claim-cal__hint {
  margin: 0.45rem 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #5a6c70;
  line-height: 1.35;
}
.ea-claim-cal__close {
  width: 100%;
  margin-top: 0.15rem;
}

.ea-lines {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.ea-line {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.55rem 0.5rem;
  border: 1px solid rgba(12, 46, 54, 0.12);
  border-radius: 12px;
  background: #fff;
}
.ea-line__row {
  display: grid;
  gap: 0.4rem;
  align-items: end;
}
.ea-line__row--meta {
  grid-template-columns: 1.15fr 1fr;
}
.ea-line__row--content {
  grid-template-columns: 1fr auto;
  align-items: end;
}
.ea-line__field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.ea-line__field span {
  font-size: 0.72rem;
  font-weight: 700;
  color: #5a6c70;
}
.ea-line input {
  width: 100%;
  box-sizing: border-box;
  min-height: 2.4rem;
  border: 1px solid #c5d0d3;
  border-radius: 8px;
  padding: 0.3rem 0.45rem;
  font-size: 0.92rem;
  background: #fff;
}
.ea-line input[type="date"] {
  font-size: 0.78rem;
  padding: 0.25rem 0.25rem;
}
.ea-line input.ea-line__amt {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.ea-line__ops {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  flex-shrink: 0;
}
.ea-line__add,
.ea-line__del {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 8px;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ea-line__add {
  border: 1px solid #2a7a86;
  background: #eef7f8;
  color: #1a4a55;
}
.ea-line__add:active {
  background: #d6eef1;
}
.ea-line__del {
  border: 1px solid #b45309;
  background: #fff7ed;
  color: #9a3412;
}
.ea-line__del:active {
  background: #ffedd5;
}
.ea-line__add[hidden],
.ea-line__del[hidden] {
  display: none !important;
}
.ea-submit__total {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 0.65rem;
  padding: 0.45rem 0.15rem;
  border-top: 1px solid #c5d0d3;
  font-size: 0.95rem;
  color: #5a6c70;
}
.ea-submit__total strong {
  font-size: 1.25rem;
  color: #143239;
  font-variant-numeric: tabular-nums;
}

.ea-payee {
  margin: 0.55rem 0 0.35rem;
  padding: 0.65rem 0.6rem 0.7rem;
  border: 1px solid var(--ea-line);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.55);
}
.ea-payee__head {
  font-size: 0.92rem;
  color: #143239;
  margin-bottom: 0.45rem;
}
.ea-payee__field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.72rem;
  color: #5a6c70;
}
.ea-payee__field span {
  font-size: 0.68rem;
}
.ea-payee__namebox {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.ea-payee__namebox select,
.ea-payee__namebox input,
.ea-payee__bankline input {
  width: 100%;
  box-sizing: border-box;
  font-size: 0.88rem;
  padding: 0.35rem 0.45rem;
  border: 1px solid #c5d0d3;
  border-radius: 0.35rem;
  background: #fff;
}
.ea-payee__bankline input[readonly] {
  background: #f3f6f5;
}
.ea-payee__bankline {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.45rem;
  align-items: center;
}
.ea-payee__bankline #eaPayeeBank {
  flex: 0 0 5.2rem;
  min-width: 0;
}
.ea-payee__bankline #eaPayeeAcct {
  flex: 1 1 auto;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}

.ea-attach {
  margin: 0.75rem 0 0.35rem;
  padding: 0.7rem 0.65rem 0.8rem;
  border: 1px solid var(--ea-line);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.55);
}
.ea-attach__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: #143239;
}
.ea-attach__head span {
  font-size: 0.78rem;
  color: #5a6c70;
  font-variant-numeric: tabular-nums;
}
.ea-attach__hint {
  margin: 0.35rem 0 0.55rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #6a7a7e;
}
.ea-attach__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  min-height: 0;
}
.ea-attach__item {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 0.4rem;
  overflow: hidden;
  background: #0c2e36;
  border: 1px solid #c5d0d3;
}
.ea-attach__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ea-attach__item--pdf {
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: stretch;
}
.ea-attach__pdf {
  flex: 1;
  border: 0;
  background: #123740;
  color: #e8f4f6;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.35;
  padding: 0.6rem;
  cursor: pointer;
  text-align: center;
}
.ea-attach__pdf span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  font-weight: 500;
  word-break: break-all;
  opacity: 0.9;
}
.ea-attach__del {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  width: 1.55rem;
  height: 1.55rem;
  border: 0;
  border-radius: 999px;
  background: rgba(12, 30, 34, 0.72);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.ea-attach__actions {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.55rem;
}
.ea-attach__btn {
  flex: 1;
  text-align: center;
  font-size: 0.72rem !important;
  padding: 0.5rem 0.25rem !important;
  margin: 0;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
}
.ea-attach__btn[aria-disabled="true"],
.ea-attach__btn:disabled {
  opacity: 0.45;
  pointer-events: none;
}
.ea-photo-tip {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem;
  background: rgba(8, 18, 20, 0.78);
}
.ea-photo-tip[hidden] {
  display: none !important;
}
.ea-photo-tip__box {
  width: min(100%, 20rem);
  max-height: min(88vh, 36rem);
  overflow: auto;
  background: #fffef8;
  border: 2px solid #c45c1a;
  border-radius: 14px;
  padding: 0.95rem 0.8rem 0.85rem;
  box-shadow: 0 14px 36px rgba(12, 46, 54, 0.35);
  text-align: center;
}
.ea-photo-tip__title {
  margin: 0 0 0.7rem;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #9a3412;
  line-height: 1.25;
}
.ea-photo-tip__list {
  margin: 0 0 0.85rem;
  padding: 0;
  list-style: none;
  text-align: left;
}
.ea-photo-tip__list li {
  position: relative;
  margin: 0 0 0.55rem;
  padding: 0.5rem 0.6rem 0.5rem 1.75rem;
  border-radius: 9px;
  background: #fff3e6;
  color: #1a2e32;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
  word-break: keep-all;
}
.ea-photo-tip__list li:last-child {
  margin-bottom: 0;
}
.ea-photo-tip__list li::before {
  content: "!";
  position: absolute;
  left: 0.45rem;
  top: 0.5rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #c45c1a;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1rem;
  text-align: center;
}
.ea-photo-tip__list strong {
  color: #9a3412;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ea-photo-tip__ok {
  width: 100%;
  min-height: 2.35rem;
  border-radius: 11px;
  font-size: 0.95rem;
  font-weight: 700;
}
.ea-exit-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(8, 18, 20, 0.78);
}
.ea-exit-modal[hidden] {
  display: none !important;
}
.ea-exit-modal__box {
  width: min(100%, 20rem);
  background: #fffef8;
  border: 3px solid #0f6b62;
  border-radius: 18px;
  padding: 1.4rem 1.15rem 1.15rem;
  box-shadow: 0 18px 48px rgba(12, 46, 54, 0.35);
  text-align: center;
}
.ea-exit-modal__title {
  margin: 0 0 0.55rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f4c47;
  line-height: 1.3;
  word-break: keep-all;
}
.ea-exit-modal__desc {
  margin: 0 0 1.15rem;
  font-size: 1rem;
  font-weight: 600;
  color: #486a6c;
  line-height: 1.45;
  word-break: keep-all;
}
.ea-exit-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.ea-exit-modal__actions .btn {
  min-height: 3rem;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 700;
}
.ea-cam-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: #0a1618;
  padding: 0;
}
.ea-cam-modal[hidden] {
  display: none !important;
}
.ea-cam-modal__box {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0.75rem 0.75rem 1.1rem;
  box-sizing: border-box;
}
.ea-cam-modal__video {
  flex: 1 1 auto;
  width: 100%;
  min-height: 55vh;
  max-height: 72vh;
  object-fit: cover;
  background: #000;
  border-radius: 0.5rem;
}
.ea-cam-modal__hint {
  margin: 0.55rem 0 0.25rem;
  font-size: 0.78rem;
  color: #c9d6d9;
  text-align: center;
  line-height: 1.35;
}
.ea-cam-modal__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.45rem;
}
.ea-cam-modal__actions .btn {
  flex: 1;
}
.ea-attach-view {
  position: fixed;
  inset: 0;
  z-index: 2100; /* 상신조회 모달(88)·청구일(1200)보다 위 — 확대 뷰어가 가려지지 않게 */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: rgba(8, 18, 20, 0.94);
  touch-action: none;
}
.ea-attach-view[hidden] {
  display: none !important;
}
.ea-attach-view__stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
}
.ea-attach-view img {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 0;
  transform-origin: center center;
  will-change: transform;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
}
.ea-attach-view.is-zoomed img {
  cursor: grab;
}
.ea-attach-view.is-zoomed img.is-dragging {
  cursor: grabbing;
}
.ea-attach-view__bar {
  position: absolute;
  top: 0.65rem;
  left: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}
.ea-attach-view__bar > * {
  pointer-events: auto;
}
.ea-attach-view__count {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.35rem 0.55rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 0.35rem;
}
.ea-attach-view__nav,
.ea-attach-view__close {
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #143239;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 0.7rem;
  border-radius: 0.4rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.ea-attach-view__nav:disabled {
  opacity: 0.4;
  cursor: default;
}
.ea-attach-view__close {
  background: #e8f2f4;
}
.ea-status-attach {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin: 0.35rem 0 0.2rem;
}
.ea-status-attach button {
  appearance: none;
  border: 1px solid #c5d0d3;
  border-radius: 0.35rem;
  padding: 0;
  overflow: hidden;
  background: #0c2e36;
  aspect-ratio: 3 / 4;
  cursor: pointer;
}
.ea-status-attach img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ea-status-attach__pdf {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #e8f4f6;
  font-weight: 700;
  font-size: 0.95rem;
  background: #123740;
}
.ea-status-modal__empty {
  margin: 0.15rem 0 0.45rem;
  font-size: 0.82rem;
  color: #7a8a8e;
}

.ea-sign-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  background: rgba(12, 30, 34, 0.45);
}
.ea-sign-modal[hidden] {
  display: none !important;
}
.ea-sign-modal__box {
  width: min(100%, 24rem);
  background: #fff;
  border-radius: 16px 16px 12px 12px;
  padding: 1rem 1rem 1.1rem;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.18);
}
.ea-sign-modal__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}
.ea-sign-modal__hint {
  margin: 0.25rem 0 0.65rem;
  color: #6b7c80;
  font-size: 0.86rem;
}
.ea-sign-canvas {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  border: 1px solid #c5d0d3;
  border-radius: 10px;
  background: #fff;
}
.ea-sign-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 0.4rem;
  margin-top: 0.75rem;
}
.ea-sign-modal__actions .btn {
  min-height: 2.55rem;
}

/* —— 관항목 예산조회 —— */
.ea-budget {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.ea-budget__bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: end;
}
.ea-budget__dept {
  margin: 0;
}
.ea-budget__go {
  min-height: 2.65rem;
  min-width: 4.5rem;
  border-radius: 10px;
  font-size: 0.98rem;
}
.ea-budget__table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border: 1px solid rgba(12, 46, 54, 0.12);
  border-radius: 12px;
  background: #fff;
  scrollbar-width: thin;
}
.ea-budget__table {
  /* 4열을 화면폭에 맞춤 — 남은잔액도 일부 이상 노출 */
  width: 100%;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.924rem;
  table-layout: fixed;
}
.ea-budget__table th,
.ea-budget__table td {
  padding: 0.48rem 0.2rem;
  border-bottom: 1px solid rgba(12, 46, 54, 0.08);
  vertical-align: middle;
  box-sizing: border-box;
}
.ea-budget__table th:first-child,
.ea-budget__table td.ea-ellip {
  width: 22%;
  min-width: 0;
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
  box-shadow: 2px 0 0 rgba(12, 46, 54, 0.06);
  padding-left: 0.35rem;
  padding-right: 0.15rem;
  /* 숫자열 대비 항목명이 커서 20% 축소 (0.924 → 0.739) */
  font-size: 0.739rem;
}
.ea-budget__table thead th:first-child {
  background: #f3efe6;
  z-index: 3;
}
.ea-budget__table tfoot td:first-child {
  background: #f8f6f1;
  z-index: 3;
}
.ea-budget__table td.ea-ellip {
  cursor: pointer;
  color: #0c2e36;
  -webkit-tap-highlight-color: rgba(42, 122, 134, 0.15);
}
.ea-budget__table th {
  background: #f3efe6;
  color: #1a4a55;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
  font-size: 0.748rem;
}
.ea-budget__table th:first-child {
  font-size: 0.598rem; /* 헤더 항목명도 동일 비율 축소 */
}
.ea-budget__table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  width: 26%;
  min-width: 0;
  font-size: 0.739rem;
  letter-spacing: 0;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ea-budget__table th.num {
  font-size: 0.704rem;
  width: 26%;
  min-width: 0;
}
/* 남은잔액 열 */
.ea-budget__table th.num:last-child,
.ea-budget__table td.num:last-child {
  width: 26%;
  min-width: 0;
  padding-left: 0.25rem;
  padding-right: 0.3rem;
}
.ea-budget__table tr.ea-bud-hang--parent td {
  font-weight: 700;
  background: #f7fafb;
}
.ea-budget__table tr.ea-bud-hang--parent td.ea-ellip {
  background: #f7fafb;
}
.ea-budget__table tr.ea-bud-mok td.ea-ellip {
  padding-left: 0.7rem;
  color: #3a555c;
  font-weight: 500;
}
.ea-budget__table tr.ea-bud-mok td.num {
  color: #3a555c;
  font-weight: 400;
}
.ea-budget__table tfoot td {
  font-weight: 700;
  background: #f8f6f1;
  border-bottom: none;
}
.ea-budget__table tfoot .num {
  font-size: 0.739rem;
  font-weight: 700;
}

.ea-name-modal {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(12, 30, 34, 0.45);
}
.ea-name-modal[hidden] {
  display: none !important;
}
.ea-name-modal__box {
  width: min(100%, 22rem);
  background: #fff;
  border-radius: 16px;
  padding: 1.35rem 1.2rem 1.15rem;
  box-shadow: 0 16px 40px rgba(12, 46, 54, 0.2);
  text-align: center;
}
.ea-name-modal__text {
  margin: 0 0 1.1rem;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.45;
  color: #0c2e36;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.ea-name-modal__ok {
  width: 100%;
  min-height: 2.75rem;
  border-radius: 12px;
  font-size: 1.05rem;
}

/* —— 결의서 상신.조회 —— */
.ea-status {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.ea-status__row {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.4rem;
  align-items: center;
}
.ea-status__lab {
  font-size: 0.78rem;
  font-weight: 700;
  color: #5a6c70;
}
.ea-status__row--hint .ea-status__count {
  font-size: 0.78rem;
  font-weight: 700;
  color: #5a6c70;
  line-height: 1.2;
  min-height: 1.2rem;
}
.ea-status__row--hint .ea-status__count.is-err {
  color: #9b3b3b;
}
.ea-status__row--hint .ea-status__count.is-msg {
  grid-column: 1 / -1;
  font-weight: 600;
  font-size: 0.84rem;
  line-height: 1.45;
  white-space: pre-line;
  padding: 0.15rem 0 0.25rem;
}
.ea-status__row--hint.has-msg {
  grid-template-columns: 1fr;
}
.ea-status__include-done {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  justify-self: start;
  box-sizing: border-box;
  min-height: 2.35rem;
  padding: 0.2rem 0.65rem 0.2rem 0.45rem;
  border: 1px solid #c5d0d3;
  border-radius: 10px;
  background: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  color: #1a4a55;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.ea-status__include-done[hidden] {
  display: none !important;
}
.ea-status__include-done input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  flex: 0 0 auto;
  accent-color: #1a4a55;
}
.ea-status__tabs,
.ea-status__presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
}
.ea-status__tab,
.ea-status__preset {
  min-height: 2.35rem;
  border: 1px solid #c5d0d3;
  border-radius: 10px;
  background: #fff;
  color: #3a555c;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem 0.15rem;
  line-height: 1.15;
}
.ea-status__tab.is-on {
  background: #1a4a55;
  border-color: #1a4a55;
  color: #fff;
}
.ea-status__preset {
  border-color: #e0c4a0;
  background: #fffaf4;
  color: #8a5a28;
  font-size: 0.86rem;
}
.ea-status__preset.is-on {
  background: #d9782c;
  border-color: #c56620;
  color: #fff;
}
.ea-status__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 0.45rem;
}
.ea-status__bar[hidden] {
  display: none !important;
}
.ea-status__all {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a4a55;
}
.ea-status__all input {
  width: 1.15rem;
  height: 1.15rem;
}
.ea-status__bar .btn {
  min-height: 2.4rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
}
.ea-status__item--check {
  grid-template-columns: 1.5rem 5.4rem 1fr auto;
}
.ea-status__check {
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ea-status__check input {
  width: 1.15rem;
  height: 1.15rem;
}
.ea-status__list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.ea-status__item {
  position: relative;
  display: grid;
  grid-template-columns: 5.4rem 1fr auto;
  gap: 0.35rem 0.5rem;
  align-items: center;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(12, 46, 54, 0.12);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ea-status__item:has(.ea-status__auto-tag) {
  padding-right: 4.2rem;
}
.ea-status__auto-tag {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 1;
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
  color: #fff;
  background: #e11d48;
  border: 1px solid #be123c;
  box-shadow: 0 1px 3px rgba(190, 18, 60, 0.35);
  pointer-events: none;
}
.ea-status__item:active {
  background: #f3f8f9;
}
.ea-status__date {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1a4a55;
}
.ea-status__sum {
  font-size: 0.88rem;
  color: #0c2e36;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ea-status__note {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  color: #5a6c70;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: -0.15rem;
}
.ea-status__amt {
  font-size: 0.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #143239;
  white-space: nowrap;
}
.ea-status__meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.ea-status__badge {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #eef2f3;
  color: #3a555c;
}
.ea-status__badge--acct { background: #e7f3f5; color: #1a4a55; }
.ea-status__badge--head { background: #f3efe6; color: #5a4a2a; }
.ea-status__badge--lead { background: #eef0f8; color: #2a3a6a; }
.ea-status__badge--action { background: #dceee8; color: #1a5a45; }
.ea-status__badge--waiting { background: #f5f0e8; color: #6a5530; }
.ea-status__badge--current {
  background: #e7f0f8;
  color: #1a3a6a;
  border: 1px solid rgba(40, 80, 140, 0.25);
}
.ea-status__badge--mine-wait {
  background: #fff3e0;
  color: #b45309;
  border: 1px solid rgba(180, 83, 9, 0.35);
  font-weight: 700;
}
.ea-status__badge--mine-done {
  background: #e6f4ea;
  color: #1b5e3a;
  border: 1px solid rgba(27, 94, 58, 0.28);
  font-weight: 600;
}
.ea-status__badge--final-wait {
  background: #e7eef8;
  color: #1a3a7a;
  border: 1px solid rgba(26, 58, 122, 0.35);
  font-weight: 700;
}
.ea-status__badge--agree-wait {
  background: #dceee8;
  color: #146c43;
  border: 1px solid rgba(20, 108, 67, 0.35);
  font-weight: 700;
}
.ea-status__badge--finance {
  background: #f3efe6;
  color: #5a4a2a;
  border: 1px solid rgba(140, 110, 40, 0.28);
}
.ea-status__badge--done {
  background: #e8eee9;
  color: #3a5545;
}
.ea-status__badge--wait-submit {
  background: #ff6b4a;
  color: #fff;
  border: 1px solid #e8482a;
  box-shadow: 0 0 0 0 rgba(255, 107, 74, 0.55);
  animation: ea-badge-sparkle 1.1s ease-in-out infinite;
}
.ea-status__badge--auto {
  background: #e8f0fe;
  color: #1a4a8a;
  border: 1px solid rgba(40, 90, 180, 0.3);
  font-weight: 700;
}
.ea-status__badge--rejected {
  background: #c44a4a;
  color: #fff;
  border: 1px solid #a03030;
  font-weight: 700;
}
.ea-status__item--wait-submit {
  border-color: rgba(232, 72, 42, 0.35);
  background: linear-gradient(180deg, #fff8f6 0%, #fff 70%);
}
.ea-status__item--rejected {
  border-color: rgba(160, 48, 48, 0.35);
  background: linear-gradient(180deg, #fff6f6 0%, #fff 70%);
}
@keyframes ea-badge-sparkle {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 107, 74, 0.5);
  }
  50% {
    opacity: 0.82;
    transform: scale(1.06);
    box-shadow: 0 0 10px 2px rgba(255, 140, 90, 0.65);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ea-status__badge--wait-submit {
    animation: none;
  }
}

.ea-status-modal {
  position: fixed;
  inset: 0;
  z-index: 88;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(12, 30, 34, 0.45);
}
.ea-status-modal[hidden] {
  display: none !important;
}
.ea-status-modal__box {
  width: min(100%, 28rem);
  max-height: 88vh;
  overflow: auto;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 1rem 1rem 1.15rem;
  box-shadow: 0 -8px 28px rgba(12, 46, 54, 0.18);
}
.ea-status-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.ea-status-modal__head strong {
  font-size: 1.05rem;
  color: #0c2e36;
}
.ea-status-modal__body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: #1a2b2e;
}
.ea-status-modal__row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(12, 46, 54, 0.08);
}
.ea-status-modal__row span:first-child {
  color: #5a6c70;
  flex-shrink: 0;
}
.ea-status-modal__row strong {
  text-align: right;
  word-break: keep-all;
}
.ea-status-modal__agree {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}
.ea-status-agree-sign {
  height: 1.35rem;
  max-width: 3.4rem;
  object-fit: contain;
}
.ea-status-modal__sec {
  margin: 0.55rem 0 0.25rem;
  color: #5a6c70;
  font-size: 0.8rem;
  font-weight: 700;
}
.ea-status-stamps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.3rem;
}
.ea-status-stamps--top {
  margin-bottom: 0.15rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(12, 46, 54, 0.1);
}
.ea-status-stamps--3 {
  grid-template-columns: repeat(3, 1fr);
}
.ea-status-stamps--2 {
  grid-template-columns: repeat(2, 1fr);
}
.ea-status-stamp {
  aspect-ratio: 1 / 1.05;
  display: grid;
  grid-template-rows: 1fr 2.6fr 1fr;
  border: 1.5px solid #1a3a42;
  background: #fff;
  overflow: hidden;
}
.ea-status-stamp.is-done {
  border-color: #2a7a86;
}
.ea-status-stamp__title,
.ea-status-stamp__name {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
  color: #143239;
  border-bottom: 1px solid #c5d0d3;
  padding: 0 0.1rem;
  text-align: center;
  line-height: 1.1;
}
.ea-status-stamp__name {
  border-bottom: none;
  border-top: 1px solid #c5d0d3;
  font-weight: 600;
  font-size: 0.58rem;
  word-break: keep-all;
}
.ea-status-stamp__sign {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafbfb;
  min-height: 0;
}
.ea-status-stamp__sign img {
  max-width: 96%;
  max-height: 96%;
  object-fit: contain;
}
.ea-status-stamp__skip,
.ea-status-stamp__ok,
.ea-status-stamp__wait {
  font-size: 0.72rem;
  font-weight: 700;
}
.ea-status-stamp__skip { color: #6a5530; }
.ea-status-stamp__ok { color: #1a5a45; }
.ea-status-stamp__wait { color: #8a9a9e; }
.ea-status-modal__lines {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ea-status-modal__lines li {
  display: grid;
  grid-template-columns: 5.2rem 1fr auto;
  gap: 0.35rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(12, 46, 54, 0.1);
  font-size: 0.86rem;
}
.ea-status-modal__msg {
  margin: 0.85rem 0 0.55rem;
  padding: 0.7rem 0.75rem;
  border-radius: 10px;
  background: #f3efe6;
  color: #3a3220;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  word-break: keep-all;
}
.ea-status-modal__msg:empty {
  display: none;
}
.ea-status-modal__actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.3rem;
  margin-top: 0.35rem;
}
.ea-status-modal__actions[hidden] {
  display: none !important;
}
.ea-status-modal__actions--submit {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.28rem;
}
.ea-status-modal__actions .btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 2.35rem;
  padding: 0.35rem 0.2rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.ea-status-modal__actions--submit .btn {
  flex: unset;
  min-height: 2.2rem;
  padding: 0.35rem 0.15rem;
  font-size: 0.78rem;
  border-radius: 8px;
}
.ea-status-btn--danger {
  color: #a33 !important;
  border-color: #e0b4b4 !important;
}
.ea-status-btn--agree {
  background: #1a7a4c !important;
  border-color: #1a7a4c !important;
  color: #fff !important;
}
.ea-status-btn--final {
  background: #1a4a8a !important;
  border-color: #1a4a8a !important;
  color: #fff !important;
}

#eaDashSignReg[hidden],
#eaDashAgree[hidden],
#eaDashFinal[hidden] {
  display: none !important;
}

.ea-status__date--edit {
  color: #1a5a6a;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.ea-status-modal__row--claim-edit button.ea-claim-edit {
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: #1a5a6a;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.ea-claim-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.45);
}

.ea-claim-modal[hidden] {
  display: none !important;
}

.ea-claim-modal__box {
  width: min(100%, 360px);
  background: #fff;
  border-radius: 12px;
  padding: 18px 16px 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.ea-claim-modal__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
}

.ea-claim-modal__hint {
  margin: 0 0 14px;
  font-size: 0.82rem;
  color: #667;
  line-height: 1.45;
}

.ea-claim-modal__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 0.88rem;
}

.ea-claim-modal__field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccd6da;
  border-radius: 8px;
  font-size: 1rem;
}

.ea-claim-modal__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.ea-claim-modal__actions .btn {
  min-width: 72px;
}
