/* OPIS_CARD_CAPTURE_LAYOUT_V1 */
.card-capture-page{padding:20px;min-width:0;overflow-y:auto;max-height:calc(100dvh - 100px);touch-action:pan-y;overscroll-behavior-y:contain}
.card-capture-page h1{margin:8px 0}.card-capture-page>p{color:#676a7c}
.card-capture-form{max-width:600px;display:grid;gap:14px;background:#fff;border:1px solid #e2e3ec;border-radius:16px;padding:20px;margin:20px 0}
.card-capture-form label{display:grid;gap:8px;color:#484b62;font-weight:700}
.card-capture-form input{width:100%;box-sizing:border-box;padding:13px;border:1px solid #d7d9e4;border-radius:10px;font:inherit;min-width:0}
.card-capture-form [name=cardNumber]{text-transform:uppercase}.card-capture-times{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.card-capture-range{margin:0;font-size:13px;color:#65697b;line-height:1.6}
.card-capture-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}
.card-capture-card{display:flex;flex-direction:column;border:1px solid #dadce8;border-radius:16px;background:#fff;overflow:hidden}
.card-capture-card.is-tracking{border:2px solid #c9363e;background:#fff3f3}
.card-capture-open{display:flex;flex-direction:column;align-items:flex-start;gap:10px;background:transparent;border:0;padding:18px;text-align:left;color:#33364d;font:inherit;cursor:pointer;flex:1;overflow-wrap:anywhere}
.card-capture-open>strong{font-size:23px}.card-capture-status{font-size:12px;font-weight:800;color:#8e344a}.card-capture-open>span:not(.card-capture-status){font-size:13px;line-height:1.6}.card-capture-open small{font-size:12px;color:#777b8e}
.card-capture-actions{display:flex;justify-content:space-between;gap:12px;padding:0 18px 16px}.card-capture-error{color:#a02d28!important}
#modal:has(.card-capture-detail) .modal-card{height:auto!important;max-height:calc(100dvh - 28px)!important;overflow-y:auto!important;touch-action:pan-y!important}
.card-capture-detail{min-width:min(760px,75vw)}.card-capture-detail p{font-size:13px;line-height:1.6}
.card-capture-detail-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.card-capture-detail-summary span{display:grid;gap:10px;padding:14px;background:#f5f5fa;border-radius:10px;font-size:12px}.card-capture-detail-summary strong{font-size:20px}
.card-capture-table-wrap{overflow-x:auto;touch-action:pan-x pan-y}.card-capture-table{width:100%;border-collapse:collapse;min-width:570px;font-size:13px}.card-capture-table td,.card-capture-table th{padding:12px 8px;border-bottom:1px solid #dddfe8;text-align:left;white-space:nowrap}
@media(max-width:760px){.card-capture-page{padding:14px;max-height:calc(100dvh - 80px)}.card-capture-form{padding:16px}.card-capture-list{grid-template-columns:1fr}.card-capture-detail{min-width:0}.card-capture-detail-summary strong{font-size:17px}.card-capture-actions button{min-height:42px}}

/* OPIS_CARD_CAPTURE_COMPACT_WIDE_V2 */
.main-shell:has(#cardCapturePage:not(.hidden)) {
  height:100dvh!important;min-height:0!important;display:grid!important;
  grid-template-rows:auto minmax(0,1fr) auto!important;overflow:hidden!important;
}
.workspace:has(#cardCapturePage:not(.hidden)) {
  padding:16px 24px!important;min-height:0!important;overflow-y:auto!important;
  overflow-x:hidden!important;scrollbar-width:none!important;-ms-overflow-style:none;
  -webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;
}
.workspace:has(#cardCapturePage:not(.hidden))::-webkit-scrollbar,
#cardCapturePage::-webkit-scrollbar,
#modal:has(.card-capture-detail) .modal-card::-webkit-scrollbar,
.card-capture-table-wrap::-webkit-scrollbar {display:none!important;width:0!important;height:0!important}
#cardCapturePage {width:100%;max-width:none;padding:0!important;max-height:none!important;overflow:visible!important;margin:0!important;scrollbar-width:none}
#cardCapturePage>h1{margin:6px 0 10px;font-size:clamp(28px,3vw,38px)}
#cardCapturePage>.eyebrow{display:block;margin:0}
#cardCaptureRange{display:none!important}
#cardCaptureForm{width:100%;max-width:none;grid-template-columns:minmax(300px,1fr) minmax(240px,1fr) 150px;align-items:end;gap:22px;padding:22px 24px;margin:18px 0;border-radius:18px;box-shadow:0 8px 26px rgba(32,32,96,.04)}
#cardCaptureForm .card-capture-times{gap:16px}
#cardCaptureForm .primary-button{min-height:50px}
#cardCaptureList{grid-template-columns:repeat(auto-fill,minmax(310px,1fr));align-items:start}
#modal:has(.card-capture-detail) .modal-card,.card-capture-table-wrap{scrollbar-width:none}
@media(max-width:1000px){#cardCaptureForm{grid-template-columns:1fr 1fr}#cardCaptureForm .card-capture-times{grid-column:1/-1}#cardCaptureForm .primary-button{width:100%}}
@media(max-width:760px){
 .workspace:has(#cardCapturePage:not(.hidden)){padding:12px 16px!important}
 #cardCapturePage>p:not([id]){display:none!important}
 #cardCaptureForm{display:grid;grid-template-columns:1fr;gap:16px;padding:16px;margin:14px 0}
 #cardCaptureForm .card-capture-times{grid-column:auto;gap:12px}
 #cardCaptureList{grid-template-columns:1fr}
 #cardCaptureFeedback:empty{display:none}
}

/* CARD_CAPTURE_MOBILE_FULL_WIDTH_V3 */
@media (max-width: 760px) {
  .main-shell:has(#cardCapturePage:not(.hidden)) > .workspace {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    justify-self: stretch !important;
    box-sizing: border-box !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  #cardCapturePage,
  #cardCaptureForm,
  #cardCaptureList {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }
}

/* CARD_CAPTURE_DIALOG_WIDTH_AND_CONFIRM_V4 */
@media(min-width:761px){
 body #modal.modal:has(.card-capture-detail) > .modal-card {
  width:min(1100px,calc(100vw - 64px))!important;
  max-width:calc(100vw - 64px)!important;
  min-width:0!important;
 }
 body #modal .card-capture-detail{width:100%!important;min-width:0!important;max-width:100%!important}
 body #modal .card-capture-table{width:100%;table-layout:auto}
 body #modal .card-capture-table th:nth-child(2),
 body #modal .card-capture-table td:nth-child(2){white-space:normal;overflow-wrap:anywhere}
}
body #modal.modal:has(.card-capture-confirm) > .modal-card {
 display:block!important;width:min(460px,calc(100vw - 32px))!important;
 max-width:calc(100vw - 32px)!important;min-width:0!important;
 height:auto!important;min-height:0!important;max-height:calc(100dvh - 32px)!important;
 overflow-y:auto!important;padding:26px!important;margin:auto!important;touch-action:pan-y!important;
}
.card-capture-confirm h2{margin:8px 28px 14px 0;font-size:23px}
.card-capture-confirm p{line-height:1.6;color:var(--muted)}
.card-capture-confirm-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:22px}
.card-capture-confirm-error{color:#a02d28!important}
.card-capture-confirm-error:empty{display:none}
@media(max-width:760px){body #modal.modal:has(.card-capture-confirm){align-items:center!important;justify-content:center!important;padding:16px!important}}

/* CARD_CAPTURE_SHARED_HOURS_WIDE_V5 */
.main-shell:has(#cardCapturePage:not(.hidden)) > .workspace {
 width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;
 justify-self:stretch!important;box-sizing:border-box!important;
}
#cardCapturePage,#cardCaptureForm,#cardCaptureList{width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box!important}
#cardCaptureForm{grid-template-columns:minmax(260px,1fr) auto minmax(220px,1fr) 140px}
#cardCaptureScheduleSave{min-height:50px;align-self:end;white-space:nowrap}
@media(min-width:761px){
 .main-shell:has(#cardCapturePage:not(.hidden))>.workspace{padding-left:24px!important;padding-right:24px!important}
}
@media(max-width:1100px){
 #cardCaptureForm{grid-template-columns:minmax(0,1fr) auto}
 #cardCaptureForm .card-capture-times{grid-column:1!important}
 #cardCaptureForm>label{grid-column:1}
 #cardCaptureForm>.primary-button{grid-column:2}
}
@media(max-width:760px){
 .main-shell:has(#cardCapturePage:not(.hidden))>.workspace{padding-left:14px!important;padding-right:14px!important}
 #cardCaptureForm{grid-template-columns:minmax(0,1fr) auto;gap:14px}
 #cardCaptureForm .card-capture-times{grid-column:1/-1!important}
 #cardCaptureScheduleSave{grid-column:2;justify-self:end;min-height:42px}
 #cardCaptureForm>label,#cardCaptureForm>.primary-button{grid-column:1/-1}
}

/* CARD_CAPTURE_BUTTON_COLORS_V6 */
#cardCaptureScheduleSave {
  background: linear-gradient(135deg, #202060, #3b3585) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 8px 22px rgba(32,32,96,.18);
}
#cardCaptureForm > button[type="submit"] {
  background: linear-gradient(135deg, #d5223f, #ef233c) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 8px 22px rgba(213,34,63,.18);
}
