@layer erp-reconstruction {
  body.entry-card-open { overflow: hidden !important; }
  .entry-card-overlay {
    position: fixed;
    inset: 0;
    z-index: 122;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgb(15 27 48 / 42%);
    overscroll-behavior: contain;
  }
  .entry-card-overlay .entry-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: min(1120px, 100%);
    max-width: 100%;
    height: min(720px, calc(100dvh - 40px));
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: #213047;
    box-shadow: 0 22px 64px rgb(10 25 48 / 26%);
    font: 15px/1.5 "Microsoft YaHei", sans-serif;
    animation: entry-card-enter 160ms cubic-bezier(.16, 1, .3, 1);
  }
  .entry-card-overlay .entry-card[data-entry-kind="document"] { width: min(1440px, 100%); height: calc(100dvh - 40px); }
  .entry-card-overlay .entry-card-host {
    box-sizing: border-box;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    overflow: hidden;
    background: #fff;
  }
  .entry-card-overlay .entry-card-host[hidden] { display: none !important; }
  /* Existing business pickers remain usable above the entry card. */
  body.entry-card-open > :is(.detail-mask, .security-mask) { z-index: 200 !important; }
  .entry-card-overlay :is(input, select, textarea) { caret-color: #4f5dbe; }
  .entry-card-overlay :is(button, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid #5668bd; outline-offset: 2px; }
  .entry-card-overlay ::selection { background: #dce2ff; color: #24324a; }
  @keyframes entry-card-enter { from { opacity: .6; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
  @media (max-width: 900px) {
    .entry-card-overlay { padding: 8px; }
    .entry-card-overlay .entry-card,
    .entry-card-overlay .entry-card[data-entry-kind="document"] { width: 100%; height: calc(100dvh - 16px); border-radius: 10px; }
  }
  @media (prefers-reduced-motion: reduce) { .entry-card-overlay .entry-card { animation: none; } }
}

@layer erp-table-standard{@media screen{
:is(#unified-print-close,#pwa-install-guide-close,button).erp-close-icon:not([hidden]){display:grid!important;place-items:center!important;position:relative;box-sizing:border-box!important;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;max-width:40px!important;max-height:40px!important;padding:0!important;line-height:1!important;flex:0 0 40px!important;text-indent:0!important;transform:none!important}
:is(#unified-print-close,#pwa-install-guide-close,button).erp-close-icon>svg[data-close-glyph]{display:block!important;position:static!important;inset:auto!important;width:20px!important;height:20px!important;min-width:20px!important;max-width:20px!important;margin:0!important;padding:0!important;transform:none!important;pointer-events:none}
:is(#unified-print-close,#pwa-install-guide-close,button).erp-close-icon::before,:is(#unified-print-close,#pwa-install-guide-close,button).erp-close-icon::after{content:none!important;display:none!important}
@media(max-width:900px){:is(#unified-print-close,#pwa-install-guide-close,button).erp-close-icon:not([hidden]){width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;max-width:44px!important;max-height:44px!important;flex-basis:44px!important}}
}}
