.customer-card-view{
  position:relative;
  z-index:1;
  min-height:100%;
  height:100%;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:transparent;
}

.customer-card-workspace{
  flex:1 1 auto;
  min-height:0;
  height:100%;
  display:flex;
  direction:rtl;
  align-items:stretch;
  overflow:hidden;
}

.customer-card-workspace__form-pane{
  position:relative;
  flex:0 0 42%;
  max-width:42%;
  min-width:390px;
  min-height:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid rgba(47,103,243,.34);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.58);
  background:linear-gradient(180deg, rgba(255,255,255,.44), rgba(255,255,255,.16));
}

.customer-card-workspace__form-scroll{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  padding:12px 18px 12px;
  display:grid;
  gap:16px;
  scrollbar-width:thin;
  scrollbar-color:var(--taif-scrollbar-thumb) var(--taif-scrollbar-track);
}

.customer-card-workspace__form-scroll::-webkit-scrollbar,
.customer-card-records__scroll::-webkit-scrollbar{
  width:9px;
}

.customer-card-workspace__form-scroll::-webkit-scrollbar-track,
.customer-card-records__scroll::-webkit-scrollbar-track{
  background:var(--taif-scrollbar-track);
}

.customer-card-workspace__form-scroll::-webkit-scrollbar-thumb,
.customer-card-records__scroll::-webkit-scrollbar-thumb{
  border-radius:999px;
  background:var(--taif-scrollbar-thumb);
}

.customer-card-workspace__records-pane{
  flex:1 1 auto;
  min-width:0;
  min-height:0;
  padding:0;
  background:
    radial-gradient(520px 240px at 18% 12%, rgba(47,103,243,.05), transparent 62%),
    radial-gradient(760px 360px at 72% 100%, rgba(15,23,42,.03), transparent 65%),
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0));
}

.customer-card-records{
  height:100%;
  min-height:0;
  display:flex;
  flex-direction:column;
  gap:0;
}

.customer-card-records__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:4px 0 2px;
}

.customer-card-records__head-copy{
  display:grid;
  gap:5px;
}

.customer-card-records__title{
  margin:0;
  color:#0f172a;
  font-size:16px;
  font-weight:900;
  letter-spacing:.01em;
}

.customer-card-records__subtitle{
  margin:0;
  color:#64748b;
  font-size:12px;
  line-height:1.75;
}

.customer-card-records__count{
  flex:0 0 auto;
  min-width:78px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(37,99,235,.12);
  background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(247,250,255,.88));
  display:grid;
  justify-items:center;
  gap:3px;
  box-shadow:0 12px 30px rgba(15,23,42,.05);
}

.customer-card-records__count-number{
  color:#2563eb;
  font-size:19px;
  font-weight:900;
  line-height:1;
}

.customer-card-records__count-label{
  color:#64748b;
  font-size:11px;
  font-weight:800;
}

.customer-card-records__scroll{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  display:block;
  padding-inline-end:0;
  scrollbar-width:thin;
  scrollbar-color:var(--taif-scrollbar-thumb) var(--taif-scrollbar-track);
}

.customer-card-records__footer{
  order:-1;
  flex:0 0 auto;
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:5px 10px 6px;
  border-top:0;
  border-bottom:1px solid rgba(148,163,184,.14);
  background:linear-gradient(180deg, rgba(248,251,255,.95), rgba(241,246,255,.98));
  box-shadow:inset 0 -1px 0 rgba(255,255,255,.88);
}

.customer-card-records__search{
  flex:0 1 286px;
  width:min(100%, 286px);
  min-width:200px;
  max-width:286px;
  --entries-search-font-size:13.5px;
  --entries-search-input-height:40px;
  --entries-search-padding-inline-start:42px;
  --entries-search-padding-inline-end:15px;
  --entries-search-clear-size:28px;
}

.customer-card-records__search .entries-search{
  position:relative;
  width:100%;
}

.customer-card-records__search .entries-search__input{
  direction:rtl;
  text-align:right;
  border-radius:8px;
  border:1px solid rgba(15,23,42,.10);
  background:rgba(255,255,255,.92);
  box-shadow:none;
}

.customer-card-records__search .entries-search__input:focus,
.customer-card-records__search .entries-search__input:focus-visible{
  border-color:rgba(37,99,235,.24);
  box-shadow:0 0 0 1px rgba(37,99,235,.12);
  background:#fff;
}

.customer-card-records__search .entries-search__clear{
  inset-inline-end:6px;
  width:28px;
  height:28px;
  border-radius:8px;
}

.customer-card-records__search .entries-search__clear[hidden]{
  display:grid !important;
}

.customer-card-records__footer-group{
  display:flex;
  direction:rtl;
  align-items:center;
  justify-content:flex-start;
  gap:7px;
  flex:0 0 auto;
}

.customer-card-records__footer-group--controls{
  flex:1 1 auto;
  min-width:0;
  flex-wrap:wrap;
}

.customer-card-records__footer-group--meta{
  margin-inline-start:auto;
}

.customer-card-records__empty{
  min-height:100%;
  display:grid;
  align-content:center;
  justify-items:center;
  text-align:center;
  gap:8px;
  padding:32px 20px;
  border-radius:22px;
  border:1px dashed rgba(148,163,184,.34);
  background:linear-gradient(180deg, rgba(255,255,255,.72), rgba(247,250,255,.54));
}

.customer-card-records__empty--search{
  border-style:solid;
  border-color:rgba(37,99,235,.12);
  background:linear-gradient(180deg, rgba(255,255,255,.82), rgba(244,248,255,.62));
}

.customer-card-records__empty-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:0 12px;
  border-radius:999px;
  background:rgba(37,99,235,.10);
  color:#1d4ed8;
  font-size:11px;
  font-weight:900;
}

.customer-card-records__empty-title{
  margin:0;
  color:#0f172a;
  font-size:18px;
  font-weight:900;
}

.customer-card-records__empty-text{
  max-width:460px;
  margin:0;
  color:#64748b;
  font-size:13px;
  line-height:1.9;
}

.customer-card-ledger{
  width:100%;
  max-width:100%;
  min-width:0;
  min-height:100%;
}

.customer-card-ledger__grid{
  display:grid;
  grid-template-columns:56px minmax(0, 1.01fr) minmax(0, 1.07fr) minmax(0, 1.17fr) minmax(0, 1.17fr) minmax(0, 1.10fr);
  align-items:stretch;
  width:100%;
  min-width:0;
}

.customer-card-ledger__head{
  position:sticky;
  top:0;
  z-index:4;
  min-height:42px;
  margin-bottom:8px;
  border:1px solid rgba(148,163,184,.24);
  background:linear-gradient(180deg, rgba(233,237,243,.98) 0%, rgba(223,229,237,.98) 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.56);
}

.customer-card-ledger__head-cell{
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px 8px;
  text-align:center;
  color:#475569;
  font:800 12px/1.15 var(--taif-font-family);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.customer-card-ledger__head-cell + .customer-card-ledger__head-cell{
  border-inline-start:1px solid rgba(148,163,184,.18);
}

.customer-card-ledger__body{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.customer-card-row{
  position:relative;
  overflow:hidden;
  cursor:default;
  border:1px solid rgba(15,23,42,.08);
  border-radius:12px;
  background:linear-gradient(180deg, rgba(255,255,255,.97) 0%, rgba(247,249,252,.98) 100%);
  box-shadow:0 14px 26px rgba(15,23,42,.05);
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.customer-card-row:nth-child(even){
  background:linear-gradient(180deg, rgba(251,252,254,.98) 0%, rgba(245,247,250,.98) 100%);
}

.customer-card-row:hover{
  border-color:rgba(59,130,246,.16);
  box-shadow:0 16px 28px rgba(15,23,42,.06);
}

.customer-card-row.is-latest{
  border-color:rgba(22,163,74,.20);
  box-shadow:0 16px 30px rgba(22,163,74,.08);
}

.customer-card-row.is-selected{
  border-color:rgba(15,23,42,.70);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  box-shadow:0 12px 24px rgba(15,23,42,.08);
}

.customer-card-row.is-selected:hover{
  border-color:rgba(15,23,42,.82);
  box-shadow:0 14px 28px rgba(15,23,42,.10);
}

.customer-card-row__grid{
  position:relative;
}

.customer-card-row__cell{
  min-width:0;
  min-height:78px;
  padding:10px 8px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  text-align:right;
}

.customer-card-row__cell + .customer-card-row__cell{
  border-inline-start:1px solid rgba(148,163,184,.16);
}

.customer-card-row__cell--index{
  justify-content:center;
  text-align:center;
  padding-inline:4px;
}

.customer-card-row__stack{
  width:100%;
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:4px;
}

.customer-card-row__stack--index{
  align-items:center;
  justify-content:center;
  gap:7px;
}

.customer-card-row__primary{
  min-width:0;
  color:#0f172a;
  font:800 12.35px/1.42 var(--taif-font-family);
  white-space:normal;
  overflow-wrap:anywhere;
}

.customer-card-row__secondary,
.customer-card-row__meta{
  min-width:0;
  color:#64748b;
  font:700 10.85px/1.55 var(--taif-font-family);
  white-space:normal;
  overflow-wrap:anywhere;
}

.customer-card-row__secondary[dir="ltr"]{
  text-align:left;
}

.customer-card-row__selector{
  display:grid;
  place-items:center;
  width:18px;
  height:18px;
  padding:0;
  margin:0;
  border:none;
  background:transparent;
  cursor:pointer;
}

.customer-card-row__selector:focus,
.customer-card-row__selector:focus-visible{
  outline:2px solid rgba(37,99,235,.20);
  outline-offset:2px;
  border-radius:999px;
}

.customer-card-row__selector .customer-card-row__state-dot{
  pointer-events:none;
}

.customer-card-row__state-dot{
  width:16px;
  height:16px;
  position:relative;
  border-radius:10px;
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(241,245,249,.96));
  border:1px solid rgba(148,163,184,.46);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.96), 0 5px 12px rgba(15,23,42,.08);
  transition:transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.customer-card-row__state-dot::after{
  content:'';
  position:absolute;
  left:50%;
  top:50%;
  width:4px;
  height:7px;
  border-right:2px solid #2563eb;
  border-bottom:2px solid #2563eb;
  transform:translate(-50%, -60%) rotate(45deg);
  opacity:0;
}

.customer-card-row__state-dot.is-active{
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(239,246,255,.98));
  border-color:rgba(37,99,235,.42);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.98), 0 6px 14px rgba(15,23,42,.10);
}

.customer-card-row__state-dot.is-active::after{
  opacity:1;
}

.customer-card-row:hover .customer-card-row__state-dot{
  transform:scale(1.04);
  border-color:rgba(96,165,250,.38);
}

.customer-card-row:hover .customer-card-row__state-dot.is-active{
  border-color:rgba(37,99,235,.46);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.98), 0 7px 16px rgba(15,23,42,.10);
}

.customer-card-row.is-selected:hover .customer-card-row__state-dot{
  border-color:rgba(148,163,184,.52);
}

.customer-card-row.is-selected:hover .customer-card-row__state-dot.is-active{
  border-color:rgba(37,99,235,.46);
}

.customer-card-row__index{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:28px;
  min-height:28px;
  padding:0 6px;
  border-radius:999px;
  background:rgba(15,23,42,.06);
  color:#0f172a;
  font-size:11px;
  font-weight:900;
}

.customer-card-actions{
  flex:0 0 auto;
  min-height:38px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding:4px 10px 5px;
  border-top:1px solid rgba(148,163,184,.14);
  background:linear-gradient(180deg, rgba(248,251,255,.95), rgba(241,246,255,.98));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.88);
}

.customer-card-actions__group{
  display:flex;
  direction:rtl;
  align-items:center;
  justify-content:flex-start;
  gap:7px;
  flex-wrap:wrap;
  margin-inline-start:auto;
}

.customer-card-action-btn{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  min-width:112px;
  min-height:32px;
  height:32px;
  padding:0 13px;
  border-radius:9px;
  border:1px solid rgba(148,163,184,.22);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
  cursor:pointer;
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.78));
  color:#0b1220;
  font:800 12px/1 var(--taif-font-family);
  box-shadow:0 10px 18px rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,.34);
  transition:border-color .16s ease, box-shadow .16s ease, background .16s ease, filter .16s ease, opacity .16s ease;
}

.customer-card-action-btn::before{
  content:'';
  position:absolute;
  inset:1px 1px auto;
  height:54%;
  border-radius:inherit;
  background:linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0));
  pointer-events:none;
  z-index:0;
}

.customer-card-action-btn__text{
  position:relative;
  z-index:1;
}

.customer-card-action-btn:hover{
  border-color:rgba(37,99,235,.20);
  box-shadow:0 12px 22px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.38);
  filter:saturate(1.03) brightness(1.012);
}

.customer-card-action-btn:active{
  box-shadow:0 7px 14px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.24);
}

.customer-card-action-btn:focus,
.customer-card-action-btn:focus-visible{
  outline:none;
  border-color:rgba(37,99,235,.24);
  box-shadow:0 0 0 1px rgba(37,99,235,.18);
}

.customer-card-action-btn[disabled]{
  cursor:default;
  pointer-events:none;
  opacity:.48;
  filter:grayscale(.08);
  box-shadow:none;
}

.customer-card-action-btn--success{
  background:linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color:#fff;
  border-color:rgba(22,163,74,.34);
  box-shadow:none;
}

.customer-card-action-btn--danger{
  background:linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color:#fff;
  border-color:rgba(220,38,38,.34);
  box-shadow:none;
}

.customer-card-toolbar-btn{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  min-width:82px;
  height:40px;
  padding:0 14px;
  border-radius:10px;
  border:1px solid rgba(148,163,184,.22);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
  cursor:pointer;
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.78));
  color:#0b1220;
  font:800 12px/1 var(--taif-font-family);
  box-shadow:0 10px 18px rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,.34);
  transition:border-color .16s ease, box-shadow .16s ease, background .16s ease, filter .16s ease, opacity .16s ease;
}

.customer-card-toolbar-btn::before{
  content:'';
  position:absolute;
  inset:1px 1px auto;
  height:54%;
  border-radius:inherit;
  background:linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0));
  pointer-events:none;
  z-index:0;
}

.customer-card-toolbar-btn__text{
  position:relative;
  z-index:1;
}

.customer-card-toolbar-btn:hover{
  filter:saturate(1.03) brightness(1.012);
}

.customer-card-toolbar-btn:active{
  box-shadow:0 7px 14px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.24);
}

.customer-card-toolbar-btn:focus,
.customer-card-toolbar-btn:focus-visible{
  outline:none;
  box-shadow:0 0 0 1px rgba(37,99,235,.18);
}

.customer-card-toolbar-btn[disabled]{
  cursor:default;
  pointer-events:none;
  opacity:.48;
  filter:grayscale(.08);
  box-shadow:none;
}

.customer-card-toolbar-btn--edit{
  background:linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color:#fff;
  border-color:rgba(37,99,235,.34);
  box-shadow:none;
}

.customer-card-toolbar-btn--delete{
  background:linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color:#fff;
  border-color:rgba(220,38,38,.34);
  box-shadow:none;
}


.panel[data-view="customer-card"]{
  --cc-button-lift-y:-2px;
  --cc-button-lift-scale:1.045;
  --cc-button-press-scale:1.065;
  --cc-button-transition:transform .18s cubic-bezier(.22,1,.36,1), box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease, filter .18s ease;
}

.panel[data-view="customer-card"] :is(.customer-card-action-btn, .customer-card-toolbar-btn){
  --cc-button-hover-border:rgba(15,23,42,.20);
  --cc-button-hover-shadow:0 14px 26px rgba(15,23,42,.14);
  --cc-button-active-shadow:0 12px 22px rgba(15,23,42,.16);
  --cc-button-focus-ring:0 0 0 2px rgba(15,23,42,.10);
  --cc-button-cue-color:currentColor;
  --cc-button-hover-filter:none;
  --cc-button-active-filter:none;
  position:relative;
  isolation:isolate;
  transform-origin:center center;
  backface-visibility:hidden;
  will-change:transform, box-shadow, filter;
  transition:var(--cc-button-transition) !important;
  outline:none;
}

.panel[data-view="customer-card"] .customer-card-action-btn--success{
  --cc-button-hover-border:rgba(34,197,94,.44);
  --cc-button-hover-shadow:0 16px 30px rgba(21,128,61,.24);
  --cc-button-active-shadow:0 18px 34px rgba(21,128,61,.28);
  --cc-button-focus-ring:0 0 0 2px rgba(34,197,94,.16);
  --cc-button-cue-color:#ffffff;
  --cc-button-hover-filter:brightness(1.06) saturate(1.03);
  --cc-button-active-filter:brightness(1.10) saturate(1.04);
}

.panel[data-view="customer-card"] .customer-card-toolbar-btn--edit{
  --cc-button-hover-border:rgba(147,197,253,.46);
  --cc-button-hover-shadow:0 16px 30px rgba(37,99,235,.24);
  --cc-button-active-shadow:0 18px 34px rgba(37,99,235,.28);
  --cc-button-focus-ring:0 0 0 2px rgba(59,130,246,.16);
  --cc-button-cue-color:#ffffff;
  --cc-button-hover-filter:brightness(1.06) saturate(1.04);
  --cc-button-active-filter:brightness(1.10) saturate(1.05);
}

.panel[data-view="customer-card"] :is(.customer-card-action-btn--danger, .customer-card-toolbar-btn--delete){
  --cc-button-hover-border:rgba(239,68,68,.44);
  --cc-button-hover-shadow:0 16px 30px rgba(185,28,28,.26);
  --cc-button-active-shadow:0 18px 34px rgba(185,28,28,.30);
  --cc-button-focus-ring:0 0 0 2px rgba(239,68,68,.15);
  --cc-button-cue-color:#ffffff;
  --cc-button-hover-filter:brightness(1.06) saturate(1.03);
  --cc-button-active-filter:brightness(1.10) saturate(1.04);
}

.panel[data-view="customer-card"] :is(.customer-card-action-btn, .customer-card-toolbar-btn):is(:hover, :focus-visible):not([disabled]){
  transform:translateY(var(--cc-button-lift-y)) scale(var(--cc-button-lift-scale)) !important;
  border-color:var(--cc-button-hover-border) !important;
  box-shadow:var(--cc-button-focus-ring), var(--cc-button-hover-shadow) !important;
  color:var(--cc-button-cue-color) !important;
  filter:var(--cc-button-hover-filter) !important;
  outline:none !important;
  z-index:3;
}

.panel[data-view="customer-card"] :is(.customer-card-action-btn, .customer-card-toolbar-btn):active:not([disabled]){
  transform:translateY(var(--cc-button-lift-y)) scale(var(--cc-button-press-scale)) !important;
  border-color:var(--cc-button-hover-border) !important;
  box-shadow:var(--cc-button-focus-ring), var(--cc-button-active-shadow) !important;
  color:var(--cc-button-cue-color) !important;
  filter:var(--cc-button-active-filter) !important;
  outline:none !important;
  z-index:4;
}

.panel[data-view="customer-card"] :is(.customer-card-action-btn, .customer-card-toolbar-btn)[disabled]{
  transform:none !important;
  box-shadow:none !important;
  filter:none !important;
}

.customer-card-group{
  display:grid;
  gap:7px;
}

.customer-card-group__head{
  display:flex;
  align-items:center;
  justify-content:center;
}

.customer-card-group__title{
  margin:0;
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  padding:0 18px 9px;
  color:#1d4ed8;
  font-size:13px;
  font-weight:900;
  letter-spacing:.01em;
  text-align:center;
}

.customer-card-group__title::after{
  content:'';
  position:absolute;
  left:50%;
  bottom:0;
  width:58px;
  height:2px;
  border-radius:999px;
  transform:translateX(-50%);
  background:linear-gradient(90deg, rgba(47,103,243,.96), rgba(126,165,255,.22));
}

.customer-card-group__grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:7px;
}

.customer-card-group__row{
  display:flex;
  direction:rtl;
  align-items:flex-start;
  gap:7px;
}

.customer-card-group__row > .customer-card-field{
  flex:1 1 0;
}

.customer-card-group__row > .customer-card-field[data-customer-card-field-wrap="nationality"],
.customer-card-group__row > .customer-card-field[data-customer-card-field-wrap="gender"],
.customer-card-group__row > .customer-card-field[data-customer-card-field-wrap="entityType"],
.customer-card-group__row > .customer-card-field[data-customer-card-field-wrap="idType"],
.customer-card-group__row > .customer-card-field[data-customer-card-field-wrap="issueDate"],
.customer-card-group__row > .customer-card-field[data-customer-card-field-wrap="expiryDate"],
.customer-card-group__row > .customer-card-field[data-customer-card-field-wrap="birthDate"]{
  flex:0.84 1 0;
}

.customer-card-field{
  min-width:0;
  display:grid;
  gap:3px;
}

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

.customer-card-field__label{
  color:#334155;
  font-size:12px;
  font-weight:800;
  text-align:center;
}

.customer-card-field__control-wrap{
  position:relative;
}


.customer-card-field__control-wrap--picker{
  position:relative;
}

.customer-card-field__control-wrap--picker :is(.entries-voucher-choice-picker, .entries-voucher-date){
  position:relative;
  width:100%;
}

.customer-card-field__control-wrap--picker :is(.entries-voucher-choice-picker.is-open, .entries-voucher-date.is-open){
  z-index:30;
}

.customer-card-field__control--picker{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:0 10px;
  cursor:pointer;
  text-align:right;
}

.customer-card-field__control-wrap--picker .entries-voucher-choice-picker__value{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.customer-card-field__control-wrap--picker .entries-voucher-choice-picker__value,
.customer-card-field__control-wrap--picker .entries-voucher-choice-popover__label,
.customer-card-field__control-wrap--picker .entries-voucher-choice-picker__text{
  font-size:12.15px;
  font-weight:800;
}

.customer-card-field__control-wrap--picker .entries-voucher-choice-popover__label{
  text-align:right;
}

.customer-card-field__control-wrap--picker .entries-voucher-choice-picker__icon{
  width:13px;
  height:13px;
  color:#2563eb;
}

.customer-card-field__control-wrap--picker .entries-voucher-date__trigger{
  direction:ltr;
}

.customer-card-field__control-wrap--picker .entries-voucher-date__trigger-icon{
  flex:0 0 14px;
  width:14px;
  height:14px;
}

.customer-card-field__control-wrap--picker .entries-voucher-date__trigger-value{
  font-size:12.25px;
  font-weight:850;
}

.customer-card-field__control-wrap--picker .entries-voucher-choice-picker.is-open .entries-voucher-choice-picker__trigger,
.customer-card-field__control-wrap--picker .entries-voucher-date.is-open .entries-voucher-date__trigger{
  border-color:rgba(47,103,243,.28);
  background:linear-gradient(180deg, rgba(255,255,255,.996), rgba(249,251,255,.988));
  box-shadow:0 0 0 2px rgba(96,165,250,.12), inset 0 1px 0 rgba(255,255,255,.92);
}

.customer-card-field__control-wrap--picker .entries-voucher-choice-popover{
  top:calc(100% + 5px);
  z-index:34;
  max-height:212px;
}

.customer-card-field__control-wrap--picker .entries-voucher-choice-popover__option{
  min-height:34px;
}

.customer-card-field__control-wrap--picker .entries-voucher-date__popover{
  top:calc(100% + 5px);
  left:0;
  z-index:34;
  width:min(206px, calc(100vw - 56px));
}

.customer-card-phone-field{
  display:flex;
  direction:ltr;
  align-items:stretch;
  gap:6px;
}

.customer-card-phone-field__picker{
  flex:0 0 98px;
  min-width:98px;
}

.customer-card-phone-field__number{
  flex:1 1 auto;
  min-width:0;
  letter-spacing:.02em;
}

.customer-card-phone-country__trigger{
  direction:ltr;
  justify-content:space-between;
  gap:6px;
  padding-inline:8px;
}

.customer-card-phone-country__trigger .entries-voucher-choice-picker__icon{
  order:-1;
}

.customer-card-phone-country__trigger-content{
  min-width:0;
  flex:1 1 auto;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:6px;
}

.customer-card-phone-country__trigger-content.is-placeholder{
  justify-content:center;
  width:100%;
}

.customer-card-phone-country__trigger-label{
  color:#94a3b8;
  font-size:11.5px;
  font-weight:850;
}

.customer-card-phone-country__trigger-code{
  color:#0f172a;
  font-size:12px;
  font-weight:900;
  letter-spacing:.02em;
}

.customer-card-phone-country__flag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  border-radius:999px;
  overflow:hidden;
  background:rgba(226,232,240,.72);
  box-shadow:0 2px 8px rgba(15,23,42,.08);
}

.customer-card-phone-country__flag--placeholder{
  color:#2563eb;
  font-size:12px;
  font-weight:900;
}

.customer-card-phone-country__flag-image{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.customer-card-phone-country__popover{
  top:calc(100% + 5px);
  left:0;
  z-index:34;
  width:min(152px, calc(100vw - 56px));
  height:252px;
  max-height:252px;
  padding:6px;
  box-sizing:border-box;
  display:grid;
  grid-template-rows:auto minmax(0, 1fr);
  gap:6px;
  overflow:hidden;
}

.customer-card-phone-country__popover::-webkit-scrollbar{
  width:0;
  height:0;
}

.customer-card-phone-country__search-wrap{
  position:relative;
  display:block;
}

.customer-card-phone-country__search{
  width:100%;
  min-height:34px;
  padding:0 10px 0 40px;
  border-radius:10px;
  border:1px solid rgba(148,163,184,.26);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92);
  color:#0f172a;
  font:800 10.8px/1 var(--taif-font-family);
  outline:none;
  text-align:start;
  unicode-bidi:plaintext;
}

.customer-card-phone-country__search.is-empty{
  padding-inline:12px;
  text-align:center;
  font-size:10px;
  letter-spacing:0;
}

.customer-card-phone-country__search-clear{
  left:11px !important;
  right:auto !important;
  inset-inline-start:11px !important;
  inset-inline-end:auto !important;
  width:22px;
  height:22px;
  border-radius:7px;
  box-shadow:0 2px 6px rgba(185,28,28,.12), inset 0 1px 0 rgba(255,255,255,.14);
}

.customer-card-phone-country__search:focus,
.customer-card-phone-country__search:focus-visible{
  border-color:rgba(47,103,243,.28);
  box-shadow:0 0 0 2px rgba(96,165,250,.12), inset 0 1px 0 rgba(255,255,255,.96);
  background:#fff;
}

.customer-card-phone-country__search::placeholder{
  color:#94a3b8;
}

.customer-card-phone-country__options{
  height:100%;
  max-height:none;
  overflow-y:auto;
  overflow-x:hidden;
  display:grid;
  gap:4px;
  direction:rtl;
  align-content:start;
  grid-auto-rows:max-content;
  padding-inline-start:2px;
  padding-inline-end:0;
  scrollbar-width:thin;
  scrollbar-color:var(--taif-scrollbar-thumb) transparent;
  scrollbar-gutter:stable;
}

.customer-card-phone-country__options::-webkit-scrollbar{
  width:6px;
}

.customer-card-phone-country__options::-webkit-scrollbar-track{
  background:transparent;
}

.customer-card-phone-country__options::-webkit-scrollbar-thumb{
  border-radius:999px;
  background:var(--taif-scrollbar-thumb);
}

.customer-card-phone-country__option{
  direction:ltr;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  min-height:40px;
  padding-inline:10px;
}

.customer-card-phone-country__option-leading{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}

.customer-card-phone-country__option-code{
  color:#2563eb;
  font-size:11.6px;
  font-weight:900;
  letter-spacing:.02em;
}

.customer-card-field__control{
  width:100%;
  min-height:34px;
  padding:0 10px;
  border-radius:8px;
  border:1px solid rgba(148,163,184,.26);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92), 0 8px 20px rgba(15,23,42,.04);
  color:#0f172a;
  font:700 12.15px/1.1 var(--taif-font-family);
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.customer-card-field__control:not(.customer-card-field__control--select):not([type="date"]){
  text-align:center;
}

.customer-card-field__control::placeholder{
  color:#94a3b8;
}

.customer-card-field__control:focus,
.customer-card-field__control:focus-visible,
.customer-card-segmented:focus-within{
  border-color:rgba(15,23,42,.72);
  box-shadow:0 0 0 1px rgba(15,23,42,.18), inset 0 1px 0 rgba(255,255,255,.92);
  background:linear-gradient(180deg, rgba(255,255,255,.995), rgba(249,250,251,.985));
}

.customer-card-field__control[type="date"]{
  padding-inline:10px;
}

.customer-card-field__control--textarea{
  min-height:88px;
  padding:6px 10px;
  resize:vertical;
  line-height:1.65;
}

.customer-card-field__control--select{
  appearance:none;
  -webkit-appearance:none;
  cursor:pointer;
  padding-inline:10px 34px;
}

.customer-card-field__control-wrap--select::after{
  content:'';
  position:absolute;
  left:13px;
  top:50%;
  width:9px;
  height:9px;
  margin-top:-5px;
  border-right:2px solid #5b6b85;
  border-bottom:2px solid #5b6b85;
  transform:rotate(45deg);
  pointer-events:none;
}

.customer-card-segmented{
  min-height:34px;
  display:flex;
  align-items:center;
  gap:4px;
  padding:3px;
  border-radius:9px;
  border:1px solid rgba(148,163,184,.24);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,247,251,.96));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.96), 0 8px 20px rgba(15,23,42,.04);
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.customer-card-segmented__option{
  flex:1 1 0;
  min-width:0;
  min-height:26px;
  border:none;
  border-radius:8px;
  background:transparent;
  color:#475569;
  font:800 12px/1 var(--taif-font-family);
  cursor:pointer;
  transition:background .18s ease, color .18s ease, box-shadow .18s ease;
}

.customer-card-segmented__option:hover{
  background:rgba(226,232,240,.64);
}

.customer-card-segmented__option.is-active{
  background:linear-gradient(135deg, #5887fb 0%, #2f67f3 54%, #2250d4 100%);
  color:#fff;
  box-shadow:none;
}

.customer-card-segmented__option:focus-visible{
  outline:2px solid rgba(15,23,42,.26);
  outline-offset:1px;
}

.customer-card-records__count--footer{
  min-width:94px;
  min-height:30px;
  padding:5px 10px;
  border-radius:10px;
  box-shadow:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
}

.customer-card-records__count--footer .customer-card-records__count-number{
  font-size:16px;
}

.customer-card-records__count--footer .customer-card-records__count-label{
  font-size:10.5px;
}

@media (max-width: 1420px){
  .customer-card-workspace__form-pane{
    flex-basis:42%;
    max-width:42%;
  }
}

@media (max-width: 1180px){
  .customer-card-workspace__form-pane{
    flex-basis:44%;
    max-width:44%;
    min-width:336px;
  }

  .customer-card-group__grid{
    grid-template-columns:minmax(0, 1fr);
  }

  .customer-card-ledger{
    min-width:0;
  }

  .customer-card-ledger__grid{
    grid-template-columns:52px minmax(0, 1fr) minmax(0, 1.04fr) minmax(0, 1.10fr) minmax(0, 1.10fr) minmax(0, 1.00fr);
  }

  .customer-card-row__cell{
    padding:9px 7px;
  }

  .customer-card-group__row{
    flex-wrap:wrap;
  }

  .customer-card-group__row > .customer-card-field{
    flex:1 1 calc(50% - 6px);
    min-width:180px;
  }

  .customer-card-group__row > .customer-card-field[data-customer-card-field-wrap="nationality"],
  .customer-card-group__row > .customer-card-field[data-customer-card-field-wrap="gender"],
  .customer-card-group__row > .customer-card-field[data-customer-card-field-wrap="entityType"],
  .customer-card-group__row > .customer-card-field[data-customer-card-field-wrap="idType"],
  .customer-card-group__row > .customer-card-field[data-customer-card-field-wrap="issueDate"],
  .customer-card-group__row > .customer-card-field[data-customer-card-field-wrap="expiryDate"],
  .customer-card-group__row > .customer-card-field[data-customer-card-field-wrap="birthDate"]{
    flex:1 1 calc(50% - 6px);
  }

  .customer-card-phone-field__picker{
    flex-basis:98px;
    min-width:98px;
  }

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

  .customer-card-records__search{
    flex-basis:250px;
    width:min(100%, 250px);
    max-width:250px;
  }
}

@media (max-width: 940px){
  .customer-card-records__footer{
    flex-wrap:wrap;
    align-items:flex-start;
  }

  .customer-card-records__search,
  .customer-card-records__footer-group{
    width:100%;
    min-width:0;
  }

  .customer-card-records__footer-group{
    margin-inline-start:0;
    justify-content:flex-start;
  }

  .customer-card-records__footer-group--controls{
    flex-wrap:wrap;
  }

  .customer-card-toolbar-btn{
    flex:0 0 auto;
  }

  .customer-card-workspace{
    flex-direction:column;
  }

  .customer-card-workspace__form-pane,
  .customer-card-workspace__records-pane{
    max-width:none;
    min-width:0;
    flex-basis:auto;
  }

  .customer-card-workspace__form-pane{
    border-left:none;
    border-bottom:none;
  }

  .customer-card-workspace__records-pane{
    min-height:280px;
  }
}
