:root {
    --mvno-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

/* 폼 전용 보정: 원본 테마, 업무 속성, 숨김 및 플러그인 DOM은 유지한다. */
.mvno-forms {
    --mvno-border: #ccd0d7;
    --mvno-label: #5a738e;
    --mvno-focus: #1abb9c;
    font-family: var(--mvno-font);
    font-size: 13px;
}
.mvno-forms :is(input, select, textarea, button, .btn, .select2-container) {
    font-family: var(--mvno-font);
    font-size: 13px;
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
}
.mvno-forms :is(input:not([type]), input[type="text"], input[type="number"], input[type="password"], input[type="email"], input[type="tel"], input[type="url"], input[type="search"], input[type="date"], input[type="datetime-local"], input[type="time"], select, textarea) {
    height: 36px;
    padding: 7px 10px;
    color: #555;
    background-color: #fff;
    border: 1px solid var(--mvno-border);
    border-radius: 4px;
    box-shadow: none;
    vertical-align: middle;
}
.mvno-forms :is(input, select, textarea):not(:disabled):not([readonly]):hover {
    border-color: #9da8b6;
}
.mvno-forms select:not([multiple]):not(.select2-hidden-accessible) { height: 36px !important; font-size: 13px !important; }
.mvno-forms :is(input, select, textarea, button, .btn):focus-visible,
.mvno-forms :is(.icheckbox_flat-green, .iradio_flat-green).focus,
.mvno-forms .select2-container--focus .select2-selection,
.mvno-forms .select2-container--open .select2-selection {
    border-color: var(--mvno-focus);
    outline: 2px solid var(--mvno-focus);
    outline-offset: 2px;
    box-shadow: none;
}
.mvno-forms :is(input, select, textarea):disabled {
    background-color: #eee;
    color: #727b87;
    cursor: not-allowed;
    opacity: 1;
}
.mvno-forms :is(input, textarea)[readonly] { background-color: #f5f7f9; }
.mvno-forms .has-error :is(input, select, textarea),
.mvno-forms :is(input, select, textarea):is(.parsley-error, .invalid, [aria-invalid="true"]),
.mvno-forms .bad :is(input, select, textarea) { border-color: #a94442; }
.mvno-forms .has-error .select2-selection { border-color: #a94442; }
.mvno-forms textarea {
    width: 100%;
    height: auto;
    min-height: 88px;
    resize: vertical;
}
.mvno-forms :is(input[type="checkbox"], input[type="radio"]) {
    accent-color: var(--mvno-focus);
    vertical-align: middle;
}
.mvno-forms input[type="file"]:not(.fakeInput) { width: 100%; height: auto; padding: 6px 0; }
.mvno-forms input[type="file"]::file-selector-button {
    font: inherit;
    padding: 6px 10px;
    margin-right: 10px;
    border: 1px solid var(--mvno-border);
    border-radius: 4px;
    background: #f5f7f9;
    cursor: pointer;
}
/* 업무 버튼만 보정하고 닫기·달력·페이지·파일 전용 컨트롤은 제외한다. */
.mvno-forms :is(.btn, button, input[type="button"], input[type="submit"], input[type="reset"]):where(:not(.close):not(.fileinput-button):not(.paginate_button):not(.datepicker-switch):not(.prev):not(.next)) {
    height: 36px;
    min-height: 36px;
    padding: 7px 10px;
    border-radius: 4px;
    line-height: 20px;
    vertical-align: middle;
    margin: 0 0 8px;
    white-space: nowrap;
    text-overflow: clip;
}
/* 클래스 없는 동적 업무 버튼도 Bootstrap 기본 버튼과 같은 중립 외형을 사용한다. */
.mvno-forms :is(button:not(.btn):not(.close):not(.button), input[type="button"]:not(.btn):not(.button), input[type="submit"]:not([class]), input[type="reset"]:not([class])) {
    color: #333;
    background: #fff;
    border: 1px solid #ccc;
    font-weight: 400;
    cursor: pointer;
}
.mvno-forms :is(button:not(.btn):not(.close):not(.button), input[type="button"]:not(.btn):not(.button), input[type="submit"]:not([class]), input[type="reset"]:not([class])):hover:not(:disabled) {
    background-color: #e6e6e6;
    border-color: #adadad;
}
.mvno-forms :is(button, input[type="button"], input[type="submit"], input[type="reset"], .btn):disabled,
.mvno-forms .btn.disabled {
    cursor: not-allowed;
    opacity: .65;
    box-shadow: none;
}
.mvno-forms td { vertical-align: middle; }
.mvno-forms td > :is(.btn, button:not(.close), input[type="button"], input[type="submit"]) {
    margin: 4px 8px 4px 0;
}
.mvno-forms :is(.mvno-memo-cell, .mvno-charge-cell) > :is(input, select, .btn) {
    vertical-align: middle;
    margin: 4px 8px 4px 0;
}
.mvno-forms .mvno-memo-cell > input[type="text"] {
    width: calc(100% - 76px) !important;
}
.mvno-forms .mvno-charge-cell > input[type="text"] { width: 150px; }
.mvno-forms .mvno-charge-cell > select { width: auto; max-width: 100%; }
@media (max-width: 767px) {
    .mvno-forms .mvno-memo-cell > input[type="text"] { width: 100% !important; }
    .mvno-forms .mvno-charge-cell > :is(input[type="text"], select:not(.select2-hidden-accessible)) { width: 100% !important; }
}
.mvno-forms :is(.form-inline, .form-group) { min-width: 0; margin-bottom: 12px; }
.mvno-forms :is(.form-inline > label, .control-label) {
    color: var(--mvno-label);
    font-family: var(--mvno-font);
    font-size: 13px;
    line-height: 20px;
}
/* 검색 영역은 JSP에 명시한 클래스만으로 배치한다. */
.mvno-forms .mvno-search-panel {
    box-sizing: border-box;
    position: relative;
    display: flow-root;
    width: 100%;
    padding: 10px 17px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #e6e9ed;
}
.mvno-forms .mvno-search-title { border-bottom: 2px solid #e6e9ed; padding: 1px 5px 6px; margin-bottom: 10px; }
.mvno-forms .mvno-search-title h2 { color: var(--mvno-label); font: 400 18px/1.1 var(--mvno-font); margin: 5px 0 6px; }
.mvno-forms .mvno-search-panel > .x_content { padding: 0 5px 6px; margin-top: 5px; }
.mvno-forms .mvno-search-body { container-type: inline-size; }
.mvno-forms .mvno-search-grid,
.mvno-forms .mvno-search-grid > form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 16px;
    margin: 0;
}
.mvno-forms .mvno-search-grid > form { grid-column: 1 / -1; }
.mvno-forms .mvno-search-field {
    display: flex;
    flex-wrap: wrap;
    align-content: start;
    align-items: center;
    gap: 6px;
    float: none;
    left: auto;
    right: auto;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
}
.mvno-forms .mvno-search-field label {
    flex: 0 0 100%;
    display: block;
    width: 100% !important;
    margin: 0;
    padding: 0;
    color: var(--mvno-label);
    font-family: var(--mvno-font);
    line-height: 20px;
    text-align: left;
}
.mvno-forms .mvno-search-field > :is(input:not([type=hidden]), select:not(.select2-hidden-accessible), .select2-container) {
    flex: 1 1 140px;
    width: 100% !important;
}
.mvno-forms .mvno-search-pair { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; width: 100%; min-width: 0; }
.mvno-forms .mvno-search-unit { display: flex; flex: 1 1 160px; min-width: 0; }
.mvno-forms .mvno-search-unit:empty { display: none; }
.mvno-forms .mvno-search-unit > :is(input, select:not(.select2-hidden-accessible), div) { width: 100% !important; }
.mvno-forms .mvno-search-field .input-group { margin: 0; width: 100%; }
.mvno-forms .mvno-search-field .date { display: flex; position: relative; flex: 1 1 160px; }
.mvno-forms .mvno-search-field .date > input { flex: 1 1 120px; width: 100% !important; min-width: 0; height: 36px; }
.mvno-forms .mvno-search-field .input-group-addon { display: flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; border-left: 0; }
.mvno-forms .mvno-search-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    grid-column: 1 / -1;
    border-top: 1px solid #e6e9ed;
    margin-top: 16px;
    padding-top: 16px;
}
.mvno-forms .mvno-search-footer :is(.btn, button, input[type=button], input[type=submit]) {
    height: 36px;
    min-height: 36px;
    min-width: 96px;
    margin: 0;
    padding: 7px 10px;
}
@container (min-width: 456px) {
    .mvno-forms .mvno-search-compound { grid-column: span 2; }

}
.mvno-forms .form-horizontal .form-group:has(> label)::before,
.mvno-forms .form-horizontal .form-group:has(> label)::after { display: none; }
.mvno-forms .form-horizontal .form-group:has(> label) {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-left: 0;
    margin-right: 0;
}
.mvno-forms .form-horizontal .form-group > label {
    flex: 0 0 120px;
    width: 120px;
    padding: 8px 0 0;
    margin: 0;
    text-align: left;
}
.mvno-forms .form-horizontal .form-group:has(> label) > div {
    flex: 1 1 0;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
}
.mvno-forms .form-horizontal .form-group :is(input.form-control, select.form-control, textarea) { width: 100%; }
.mvno-forms .form-horizontal .select2-container { width: 100% !important; }
.mvno-forms .form-horizontal .form-control-feedback { right: 0; }
.mvno-forms .form-horizontal .form-group:has(> label) > div { overflow-wrap: anywhere; }
.mvno-forms .form-horizontal .form-group > [class*="-offset-"] { margin-left: 132px; max-width: calc(100% - 132px); }
.mvno-forms .form-horizontal .ln_solid { margin: 16px 0; }
.mvno-forms .input-group { min-width: 0; max-width: 100%; }
.mvno-forms .input-group.date { width: 100%; }
.mvno-forms .input-group .form-control { height: 36px; }
.mvno-forms .input-group-btn > .btn { max-width: none; margin-bottom: 0; white-space: nowrap; }
.mvno-forms .input-group-addon { height: 36px; padding: 7px 10px; border-color: var(--mvno-border); }
.mvno-forms .input-group > .form-control:first-child { border-radius: 4px 0 0 4px; }
.mvno-forms .input-group > .input-group-addon:last-child { border-radius: 0 4px 4px 0; }
/* body에 붙는 dropdown도 같은 범위 안에서 처리한다. */
.mvno-forms .select2-container { max-width: 100%; }
.mvno-forms .select2-selection {
    min-height: 36px;
    border: 1px solid var(--mvno-border);
    border-radius: 4px;
    background: #fff;
}
.mvno-forms .select2-container .select2-selection--single { height: 36px; }
.mvno-forms .select2-container .select2-selection--single .select2-selection__rendered { line-height: 34px; padding-left: 10px; padding-right: 28px; }
.mvno-forms .select2-container .select2-selection--single .select2-selection__arrow { height: 34px; }
.mvno-forms .select2-container--disabled .select2-selection { background: #eee; cursor: not-allowed; }
.mvno-forms .select2-dropdown { border-color: var(--mvno-border); font: inherit; }
.mvno-forms .select2-search--dropdown .select2-search__field { width: 100%; height: 36px; }
.mvno-forms .select2-search--inline .select2-search__field { height: auto; min-height: 24px; }
.mvno-forms .select2-container--default .select2-results__option--highlighted[aria-selected] { background: #168d76; }
.mvno-forms .table-responsive { max-width: 100%; overflow-x: auto; }
.mvno-forms :is(.x_content, .x_panel, .modal-body, .tab-content) { min-width: 0; }
.mvno-forms .login_wrapper { width: calc(100% - 32px); max-width: 350px; }
.mvno-forms .login_content form input { text-shadow: none; box-shadow: none; }
.mvno-forms .login_content img { max-width: 100%; height: auto; }
.mvno-forms .mid_center { max-width: 100%; box-sizing: border-box; }
.mvno-forms.mvno-popup > div > .row { margin-left: 0; margin-right: 0; }
.mvno-forms .modalContents { box-sizing: border-box; max-width: calc(100vw - 24px); min-width: 0; }
.mvno-forms.mvno-popup .main section .row { margin-left: 0; margin-right: 0; }
/* 결과 표는 기본 table 배치를 유지하고 가로 스크롤은 바깥 래퍼가 담당한다. */
.mvno-forms.mvno-popup .main section > .table-responsive { width: 100%; }
.mvno-forms #fixedWrap { min-width: 0; max-width: 100%; box-sizing: border-box; }
.mvno-forms #fixedWrap > div { width: 100%; }
.mvno-forms #fixedWrap :is(.messageCategoryInput, .messageCategoryPhone) { max-width: 100%; box-sizing: border-box; }
.mvno-forms #fixedWrap .backgroundPhone { max-width: 100%; }
.mvno-forms #fixedWrap .textPreviewContainer { max-width: calc(100% - 24px); }
@media (max-width: 767px) {
    .mvno-forms .form-horizontal .form-group > label { flex-basis: 100%; width: 100%; padding-top: 0; }
    .mvno-forms .form-horizontal .form-group:has(> label) > div { flex-basis: 100%; width: 100%; }
    .mvno-forms .form-horizontal .form-group > [class*="col-"] { margin-left: 0; max-width: 100%; }
    .mvno-forms #fixedWrap { padding: 16px; }
    .mvno-forms #fixedWrap .rowList > tbody > tr > td { display: block; width: 100%; box-sizing: border-box; }
    .mvno-forms #fixedWrap .row { margin-left: 0; margin-right: 0; }
    .mvno-forms #fixedWrap .row > * { padding-left: 0; padding-right: 0; max-width: 100%; }
    .mvno-forms.mvno-popup :is(.customerTable, .serviceStatusTable, .rowList) { table-layout: fixed; overflow-wrap: anywhere; }
    .mvno-forms.mvno-popup :is(.customerTable, .serviceStatusTable, .rowList) :is(th, td) { width: auto; min-width: 0; }
    .mvno-forms.mvno-popup td :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), select, .select2-container) { max-width: 100%; }
    .mvno-forms.mvno-popup td > :is(input[type="text"], input[type="number"], select:not(.select2-hidden-accessible), .select2-container) { width: 100% !important; margin-bottom: 6px; }
    .mvno-forms.mvno-popup .main { max-width: 100%; }
}

.mvno-forms .mvno-search-separator { flex: 0 0 auto; }
.mvno-forms .mvno-search-label-unit { flex: 0 0 100%; }
.mvno-forms .mvno-search-pair > input { flex: 1 1 160px; width: 100% !important; }

/* 입력에 직접 연결된 달력도 복합 필드의 왼쪽 경계를 기준으로 연다. */
.mvno-forms .mvno-search-pair > .bootstrap-datetimepicker-widget.dropdown-menu {
    left: 0 !important;
    right: auto !important;
    max-width: calc(100vw - 24px);
}

/* 검색용 추측 규칙을 제거해도 공유판매점 등록 폼의 기존 배치는 유지한다. */
.mvno-forms #createForm > .row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, max(280px, calc((100% - 32px) / 3))), 1fr));
    gap: 0 16px;
    margin: 0;
}
.mvno-forms #createForm > .row::before,
.mvno-forms #createForm > .row::after { display: none; }
.mvno-forms #createForm > .row > div { width: auto; min-width: 0; padding: 0; float: none; }
.mvno-forms #createForm .form-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mvno-forms #createForm .form-inline > label { flex: 0 0 100%; width: 100% !important; margin: 0; padding: 0; text-align: left; }
.mvno-forms #createForm .form-inline > :is(select:not(.select2-hidden-accessible), .select2-container) { flex: 1 1 120px; width: 100% !important; }

/* 기간·검색어와 연관 분류를 별도 행으로 배치한다. */
.mvno-forms .mvno-search-group { min-width: 0; }
.mvno-forms .mvno-consult-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 16px;
}
.mvno-forms .mvno-consult-period { grid-area: period; }
.mvno-forms .mvno-consult-keyword { grid-area: keyword; }
.mvno-forms .mvno-consult-categories { grid-area: categories; }
.mvno-forms .mvno-consult-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "period" "keyword" "categories"; }
@container (min-width: 456px) {
    .mvno-forms .mvno-consult-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "period keyword" "categories categories"; }
    .mvno-forms .mvno-consult-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.mvno-forms .mvno-search-unit > div > :is(input, select:not(.select2-hidden-accessible)) { width: 100% !important; }

/* 문자 수신 목록의 기존 고정 폭 때문에 업무 버튼 글자가 잘리지 않게 한다. */
.mvno-forms #rcvPhoneNoListTableResetBtn { width: auto; min-width: 64px; }
.mvno-forms td > :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), select) { vertical-align: middle; margin-top: 4px; margin-bottom: 4px; }

/* 일반 체크박스는 radio와 크기를 맞추고 iCheck와 기존 커스텀 체크박스는 유지한다. */
.mvno-forms input[type="checkbox"]:not(.flat):not(.checkbox input) {
    appearance: auto;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 0;
    padding: 0;
    accent-color: #16806a;
    vertical-align: middle;
    cursor: pointer;
}
.mvno-forms label:has(input[type="checkbox"]:not(.flat)):not(.checkbox),
.mvno-forms .mvno-search-field label:has(input[type="checkbox"]:not(.flat)) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    cursor: pointer;
}
.mvno-forms input[type="checkbox"]:not(.flat):not(.checkbox input):hover:not(:disabled) { outline: 1px solid #16806a; outline-offset: 2px; }
.mvno-forms input[type="checkbox"]:not(.flat):not(.checkbox input):disabled { opacity: .55; cursor: not-allowed; }
.mvno-forms label:has(input[type="checkbox"]:disabled):not(.checkbox) { color: #727b87; cursor: not-allowed; }

/* 일반 radio는 기본 원형을 복구하고 iCheck와 탭 입력은 그대로 둔다. */
.mvno-forms input[type="radio"]:not(.flat):not(.tabRadio):not(.radioTabs input) {
    appearance: auto;
    display: inline-block;
    position: static;
    float: none;
    width: 18px !important;
    height: 18px !important;
    min-height: 0;
    flex: 0 0 18px;
    margin: 0 8px 0 0;
    padding: 0;
    opacity: 1;
    z-index: auto;
    accent-color: #16806a;
    vertical-align: middle;
    cursor: pointer;
}
.mvno-forms label:has(input[type="radio"]:not(.tabRadio)),
.mvno-forms input[type="radio"]:not(.flat):not(.tabRadio) + label {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    max-width: 100%;
    padding: 0;
    margin: 0 8px 0 0;
    line-height: 20px;
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
}
.mvno-forms .radio-inline:has(input[type="radio"]) { padding-left: 0; margin-left: 0; vertical-align: middle; }
.mvno-forms input[type="radio"]:not(.flat):not(.tabRadio) + label::before,
.mvno-forms input[type="radio"]:not(.flat):not(.tabRadio) + label::after { content: none; display: none; }
.mvno-forms input[type="radio"]:not(.flat):not(.tabRadio):hover:not(:disabled) { outline: 1px solid #16806a; outline-offset: 2px; }
.mvno-forms input[type="radio"]:not(.flat):not(.tabRadio):focus-visible { outline: 2px solid var(--mvno-focus); outline-offset: 2px; }
.mvno-forms input[type="radio"]:not(.flat):not(.tabRadio):disabled { opacity: .55; cursor: not-allowed; }
.mvno-forms label:has(input[type="radio"]:disabled),
.mvno-forms input[type="radio"]:disabled + label { color: #727b87; cursor: not-allowed; }
.mvno-forms .iradio_flat-green { flex: 0 0 20px; vertical-align: middle; margin: 0 8px 0 0; }
.mvno-forms .iradio_flat-green:focus-within { outline: 2px solid var(--mvno-focus); outline-offset: 2px; }
.mvno-forms .iradio_flat-green.disabled { opacity: .55; cursor: not-allowed; }
