/* ============================================================
   Smart Billing Service - style_new.css
   Modern Clean SaaS UI
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700&display=swap');

:root {
  --primary:        #1a56db;
  --primary-hover:  #1040a8;
  --primary-light:  #ebf2ff;
  --primary-muted:  #bfdbfe;
  --surface:        #ffffff;
  --bg:             #f1f5f9;
  --bg-sidebar:     #ffffff;
  --bg-sidebar-hover: #f1f5f9;
  --bg-sidebar-active: #ebf2ff;
  --border:         #e2e8f0;
  --border-strong:  #cbd5e1;
  --text-h:         #0f172a;
  --text-body:      #334155;
  --text-sub:       #64748b;
  --text-muted:     #94a3b8;
  --text-on-dark:   #f1f5f9;
  --text-on-primary:#ffffff;
  --green:          #059669;
  --green-bg:       #ecfdf5;
  --green-border:   #6ee7b7;
  --red:            #dc2626;
  --red-bg:         #fef2f2;
  --yellow:         #d97706;
  --yellow-bg:      #fffbeb;
  --yellow-border:  #fcd34d;
  --teal:           #0e7490;
  --teal-bg:        #ecfeff;
  --teal-border:    #67e8f9;
  --radius:         10px;
  --radius-sm:      6px;
  --radius-xs:      4px;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:      0 4px 16px rgba(0,0,0,.09);
  --shadow-lg:      0 8px 32px rgba(0,0,0,.12);
  --transition:     150ms cubic-bezier(.4,0,.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-width: 320px;
  overflow-x: auto;
}

/* ── Layout Shell ── */
#container {
  display: flex;
  flex-direction: column;  
  width: 100%;
}

/* 헤더 아래 본문 래퍼 */
#body-wrap {
  display: flex;
  flex: 1;
}

/* ── Sidebar ── */
#left {
  width: 220px;
  min-height: 820px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  padding: 0;
  border-right: 1px solid #e2e8f0;
}

.sidebar-logo {
  padding: 24px 20px 20px;
  border-bottom: 1px solid #e2e8f0;
}

.sidebar-logo .logo-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -.3px;
}

.sidebar-logo .logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  letter-spacing: .4px;
}

.sidebar-nav {
  padding: 16px 12px 12px;
  flex: 0;
}

.sidebar-nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #94a3b8;
  text-transform: uppercase;
  padding: 0 8px;
  margin-bottom: 6px;
}

/* Override global ul/li for sidebar only */
#left ul {
  padding: 0;
  margin: 0 0 24px 0;
}

#left li {
  list-style: none;
  height: auto;
  width: auto;
  overflow: visible;
  display: block;
  background: transparent;
  box-shadow: none;
  border-left: none;
  margin-bottom: 2px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

#left li:hover {
  background: var(--bg-sidebar-hover);
}

#left li.active {
  background: var(--bg-sidebar-active);
  border-left: 3px solid var(--primary);
  box-shadow: 0 1px 4px rgba(26,86,219,.08);
}

#left li a {
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  width: 100%;
  height: auto;
  position: static;
  letter-spacing: -.1px;
}

.menu-icon {
  font-size: 14px;
  width: 18px;
  text-align: center;
  color: var(--primary);
  flex-shrink: 0;
}

#left li:hover a {
  color: var(--primary);
}

#left li.active a {
  color: var(--primary);
  font-weight: 700;
}
#left li.active .menu-icon {
  color: var(--primary);
}

.sidebar-downloads {
  padding: 0 0 4px 0;
  border-top: 1px solid #e2e8f0;
  margin-top: 8px;
  padding-top: 14px;
}

.sidebar-downloads .dl-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 8px;
  padding: 0 4px;
}

.dl-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition);
  margin-bottom: 6px;
}

.dl-btn:hover {
  background: #ebf2ff;
  border-color: #bfdbfe;
  color: #1a56db;
}

.dl-btn .dl-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.dl-btn.green  { border-left: 3px solid var(--green); }
.dl-btn.purple { border-left: 3px solid #8b5cf6; }
.dl-btn.teal   { border-left: 3px solid var(--teal); }

/* ── Main Area ── */
#main-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

/* ── Header: 전체 가로 상단 바 ── */
#header {
  width: 100%;
  height: 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  z-index: 100;
}

#header #logo {
  height: 28px;
  vertical-align: middle;
  border: none;
  display: block;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-h);
  letter-spacing: -.4px;
  white-space: nowrap;
}

.header-title .accent { color: var(--primary); }

/* ── Content Area ── */
#content {
  flex: 1;
  padding: 25px 32px;
  min-width: 0;
}

/* ── Page Header ── */
.page-header {
  margin-bottom: 20px;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.step {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

.step.active {
  background: var(--primary);
  color: #fff;
}

.step.inactive {
  background: var(--border);
  color: var(--text-muted);
}

.step-arrow {
  color: var(--text-muted);
  font-size: 12px;
}

.page-title-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-h);
  letter-spacing: -.5px;
}

/* ── Card ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafbfc;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-h);
}

.card-body {
  padding: 20px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-ghost {
  background: transparent;
  color: var(--text-sub);
  border: 1px solid var(--border);
  padding: 6px 14px;
  font-size: 13px;
}

.btn-ghost:hover {
  background: var(--bg);
  color: var(--text-h);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 9px 20px;
  font-size: 13.5px;
  box-shadow: 0 1px 3px rgba(26,86,219,.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(26,86,219,.35);
  transform: translateY(-1px);
}

.btn-next {
  background: var(--primary);
  color: #fff;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(26,86,219,.3);
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}

.btn-next:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(26,86,219,.35);
}

/* ── Table ── */
.table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 16px;
}

.table-toolbar {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafbfc;
}

.table-toolbar-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-h);
}

.unit-label {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--border);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
}

.table-scroll {
  overflow-x: auto;
  max-height: 340px;
  overflow-y: auto;
}

/* Scrollbar */
.table-scroll::-webkit-scrollbar { width: 5px; height: 5px; }
.table-scroll::-webkit-scrollbar-track { background: var(--bg); }
.table-scroll::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }

table {
  border-collapse: collapse;
  border: none;
  width: 100%;
}

thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

thead th {
  padding: 11px 14px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-sub);
  letter-spacing: .5px;
  text-transform: uppercase;
  background: #f8fafc;
  border-bottom: 2px solid var(--border);
  border-right: 1px solid var(--border);
  border-top: none;
  border-left: none;
  text-align: center;
  white-space: nowrap;
}

thead th:last-child { border-right: none; }

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

tbody tr:last-child { border-bottom: none; }

tbody tr.row0 { background: #ffffff; }
tbody tr.row1 { background: #f8fafc; }

tbody tr:hover { background: var(--primary-light) !important; }

td {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-body);
  border-right: 1px solid var(--border);
  border-top: none;
  border-bottom: none;
  border-left: none;
  text-align: center;
  vertical-align: middle;
}

td:last-child { border-right: none; }

/* Row striping override */
.row0, .row0 input[type=text] { background: #ffffff; }
.row1, .row1 input[type=text] { background: #f8fafc; }

/* ── Table Inputs ── */
td input[type=text] {
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 4px 8px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--text-body);
  text-align: center;
  outline: none;
  background: transparent;
  transition: border-color var(--transition);
}

td input[type=text]:focus {
  border-color: var(--primary);
  background: var(--surface);
}

td input[type=checkbox] {
  accent-color: var(--primary);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

/* ── Datepicker input ── */
.datepicker {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-xs) !important;
  padding: 4px 8px !important;
  font-size: 12.5px !important;
  color: var(--text-body) !important;
  text-align: center !important;
  background: transparent !important;
  cursor: pointer;
}

.ui-datepicker { font-size: 13px; z-index: 9999 !important; border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 260px; }
.ui-datepicker-header { display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: nowrap; }
.ui-datepicker-title { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.ui-datepicker select.ui-datepicker-year { width: auto !important; }
.ui-datepicker select.ui-datepicker-month { width: auto !important; }
.ui-datepicker th { background: var(--primary-light); color: var(--primary); border: none; }
.ui-datepicker-trigger { cursor: pointer; vertical-align: middle; margin-left: 4px; opacity: .6; transition: opacity var(--transition); }
.ui-datepicker-trigger:hover { opacity: 1; }

/* ── Amount Cells ── */
.amount-paid {
  color: var(--text-muted);
  font-style: italic;
  font-size: 12px;
}

.amount-value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-h);
}

/* ── Total Bar ── */
.total-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.total-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-h);
}

.total-vat {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.total-value-wrap {
  flex: 1;
  min-width: 200px;
}

input[name=total] {
  width: 100%;
  max-width: 260px;
  border: 2px solid var(--primary-muted);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  text-align: right;
  background: var(--primary-light);
  outline: none;
  letter-spacing: -.5px;
  transition: border-color var(--transition);
}

input[name=total]:focus { border-color: var(--primary); }

.total-notice {
  font-size: 13px;
  color: var(--text-sub);
  font-weight: 500;
}

.total-notice::before {
  content: '* ';
  color: var(--primary);
  font-weight: 700;
}

/* ── Notice Box ── */
.notice-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--text-body);
}

.notice-box .notice-warn {
  color: var(--red);
  font-weight: 700;
  font-size: 13px;
}

.notice-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-weight: 600;
  color: var(--primary);
  font-size: 13px;
}

/* ── Legacy overrides (ensure nothing breaks) ── */
hr { display: none; }

h3 { font-size: 16px; font-weight: 700; color: var(--text-h); margin: 0 0 12px; }
h4 { display: none; }
h5 { margin: 0 0 10px; }

#taxdown { display: none !important; }
#correctdown, #refunddown, #manualdown { all: unset; }

.info {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-xs);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

#mask {
  background-color: #0f172a !important;
  opacity: .45 !important;
}

#loadingImg {
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.4));
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.search-card  { animation: fadeUp .3s ease both; }
.table-card   { animation: fadeUp .3s .08s ease both; }
.total-bar    { animation: fadeUp .3s .14s ease both; }
.notice-box   { animation: fadeUp .3s .18s ease both; }

/* 컨테이너번호+반출일자 합쳐서 한 줄 표시 */
.cntr-date-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  flex-wrap: nowrap;
}

.cntr-date-cell input[type=text] { min-width: 0; }

.date-sep {
  color: #cbd5e1;
  font-size: 11px;
  flex-shrink: 0;
}

/* ── 새 검색폼 레이아웃 ── */
.search-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px 20px 14px;
  margin-bottom: 16px;
}

.search-top-row {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.search-seg-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.seg-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
  white-space: nowrap;
  letter-spacing: .2px;
}

/* 세그먼트 버튼 */
.seg-buttons {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}

.seg-btn {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.seg-btn input[type=radio] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.seg-btn span {
  display: block;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
  transition: all var(--transition);
  white-space: nowrap;
  user-select: none;
}

.seg-btn input[type=radio]:checked + span {
  background: var(--surface);
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0,0,0,.10);
}

.seg-btn:hover span { color: var(--text-h); }

.search-bottom-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.search-input-wrap {
  flex: 1;
  min-width: 0;
}

.search-input-wrap textarea,
.search-input-wrap input[type=text].search-text-input {
  width: 100%;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-body);
  background: var(--bg);
  resize: vertical;
  min-height: 76px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  line-height: 1.6;
}

.search-input-wrap textarea:focus,
.search-input-wrap input[type=text].search-text-input:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(26,86,219,.10);
}

.btn-search {
  flex-shrink: 0;
  height: 76px;
  padding: 0 22px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .5px;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(26,86,219,.25);
  white-space: nowrap;
}

.btn-search:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26,86,219,.35);
}

.search-bottom-row .hint-box {
  flex-shrink: 0;
  background: #fffbeb;
  border: 1px solid var(--yellow-border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 11.5px;
  color: #78350f;
  line-height: 1.9;
  align-self: flex-start;
  white-space: nowrap;
}

.search-bottom-row .hint-box strong {
  display: block;
  margin-bottom: 5px;
  color: #92400e;
  font-size: 12px;
}

.search-radio-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-radio-group .radio-group {
  display: flex;
  gap: 18px;
  align-items: center;
}

.search-radio-group .radio-option {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-body);
}

.search-radio-group .radio-option input[type=radio] {
  accent-color: var(--primary);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.search-single-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.search-single-row .seg-buttons {
  flex-shrink: 0;
  height: 56px;
  display: flex;
  align-items: center;
  padding: 4px;
}

.search-single-row .search-input-wrap {
  flex: 1;
  min-width: 160px;
}

.search-single-row .search-input-wrap textarea,
.search-single-row .search-input-wrap input[type=text].search-text-input {
  width: 100%;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-body);
  background: var(--bg);
  resize: none;
  height: 56px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  line-height: 1.5;
  display: block;
}

.search-single-row .search-input-wrap textarea:focus,
.search-single-row .search-input-wrap input[type=text].search-text-input:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(26,86,219,.10);
}

.search-single-row .btn-search {
  flex-shrink: 0;
  height: 56px;
  padding: 0 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(26,86,219,.25);
  white-space: nowrap;
}

.search-single-row .btn-search:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26,86,219,.35);
}

.search-card .hint-box {
  background: #fffbeb;
  border: 1px solid var(--yellow-border);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-size: 11.5px;
  color: #78350f;
  line-height: 1.8;
  white-space: nowrap;
  overflow-x: auto;
}

.search-card .hint-box strong {
  font-size: 12px;
  color: #92400e;
  margin-right: 8px;
}

/* ── Search Layout: 좌(조회조건) + 우(힌트박스) ── */
.search-layout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.search-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

/* 1행: 세그먼트 버튼들 */
.search-seg-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* 2행: 입력박스 + 조회버튼 */
.search-input-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.search-input-row .search-input-wrap {
  flex: 1;
  min-width: 200px;
}

.search-input-row .btn-search {
  flex-shrink: 0;
  height: 56px;
  padding: 0 22px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(26,86,219,.25);
  white-space: nowrap;
}

.search-input-row .btn-search:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26,86,219,.35);
}

.search-controls .search-input-wrap {
  flex: 1;
  min-width: 200px;
}

.search-controls .search-input-wrap textarea,
.search-controls .search-input-wrap input[type=text].search-text-input {
  width: 100%;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-body);
  background: var(--bg);
  resize: none;
  height: 56px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  line-height: 1.5;
  display: block;
}

.search-controls .search-input-wrap textarea:focus,
.search-controls .search-input-wrap input[type=text].search-text-input:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(26,86,219,.10);
}

.search-controls .seg-buttons {
  height: 56px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.search-controls .btn-search {
  flex-shrink: 0;
  height: 56px;
  padding: 0 22px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(26,86,219,.25);
  white-space: nowrap;
}

.search-controls .btn-search:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26,86,219,.35);
}

.search-layout .hint-box {
  flex-shrink: 0;
  width: 340px;
  min-width: 240px;
  background: #fffbeb;
  border: 1px solid var(--yellow-border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 11.5px;
  color: #78350f;
  line-height: 1.8;
  white-space: normal;
  overflow: visible;
}

.search-layout .hint-box strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: #92400e;
}

/* ── 입력 폼 테이블 (cashCompany_new) ── */
.form-table {
  width: 100%;
  border-collapse: collapse;
}

.form-table th {
  width: 160px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  background: #f8fafc;
  border: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.form-table td {
  padding: 4px 14px;
  border: 1px solid var(--border);
  vertical-align: middle;
  background: var(--surface);
  text-align: left;
}

.form-input {
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-xs);
  padding: 6px 10px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-body);
  background: var(--bg);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  vertical-align: middle;
}

.form-input:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(26,86,219,.10);
}

.form-input[readonly] {
  background: #f1f5f9;
  color: var(--text-sub);
  cursor: default;
}

.form-sub-label {
  font-size: 12.5px;
  color: var(--text-sub);
  margin: 0 6px;
}

.btn-virt {
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  vertical-align: middle;
}

.btn-virt:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}
