/* ==========================================================================
   comp.css
   组件层 - 表单控件、车牌键盘、弹窗与通知、岗亭选择、按钮状态与 loading、
           通用表格（页面表格 / 弹窗表格 / 查询表单 / 分页 / 表格 loading）
   合并自: comp-ui.css + comp-table.css
   ========================================================================== */


.form-control,
.form-control-detail {
  border-radius: 0px;
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
  color: #fff;
}
.form-control-detail {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 11px 0;
  flex: 1;
}
.form-control {
  height: 36px;
  background-color: #09152d !important;
  border: 1px solid rgba(47, 102, 242, 0.8);
}
.form-control::placeholder {
  color: rgba(212, 237, 253, 0.8);
}
.form-control:focus {
  border: 1px solid rgba(47, 102, 242, 1);
  box-shadow: inset 0 1px 1px rgba(47, 102, 242, 0.075),
    0 0 8px rgba(47, 102, 242, 0.6);
}
.control-label-5em .control-label {
  width: 5em;
}
.form-item-mb-19 .form-item-flex {
  margin-bottom: 19px;
}
.form-item-flex .form-control {
  flex: 1;
}
.form-horizontal-flex-cols-2 {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
}
.form-horizontal-flex-cols-2 .form-item-flex {
  width: calc((100% - 12px) / 2);
}
.form-item-flex textarea.form-control {
  min-height: 36px;
  height: auto;
}

.has-success {
  padding: 0 20px;
}
.has-success .checkbox,
.has-success .checkbox-inline,
.has-success .control-label,
.has-success .help-block,
.has-success .radio,
.has-success .radio-inline,
.has-success.checkbox label,
.has-success.checkbox-inline label,
.has-success.radio label,
.has-success.radio-inline label,
label {
  font-size: 16px;
  color: #fff;
}

.form-group .control-label,
.form-group .form-control-static {
  font-weight: 400;
  font-size: 16px;
  color: #ffffff;
}
.form-inline-flex {
  display: flex;
  width: 100%;
}
.form-inline-flex .form-group {
  margin-right: 12px;
}
.form-item-flex {
  display: flex !important;
  align-items: center;
  position: relative;
}
.form-item-flex label {
  flex: 0 0 auto;
  padding-right: 10px;
  margin: 0 0 auto 0 !important;
  padding-top: 0 !important;
  font-weight: 400;
  line-height: 36px;
}
.form-vertical .form-item-flex {
  flex-direction: column;
  align-items: flex-start;
}
.form-item-flex input[type='checkbox'] {
  margin: 0;
}

.form-item-flex .input-group-btn {
  position: absolute;
  right: 30px;
  top: 0;
  z-index: 1000;
  height: 100%;
}
.form-item-flex .input-group-btn .btn {
  background-color: transparent;
  height: 100%;
  border: none;
}
.form-item-flex .input-group-btn .btn:focus {
  background-color: transparent;
}
.caret {
  border-top-color: #2f66f2;
}
.plate-input-group {
  background-color: #091128;
  border: 1px solid #2f66f2;
  padding: 20px 20px 10px;
  max-width: 936px;
  width: 50vw;
  min-width: 400px;
  height: max-content;
  max-height: 60vh;
  overflow-y: auto;
  transform: translate(-50%);
}
.plate-keyboard-container {
  max-height: 80vh;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
}
.out_in_plate_box {
  cursor: pointer;
  font-weight: 400;
  font-size: 16px;
  color: #ffffff;
  padding: 0 5px;
  width: calc(100% / 13);
  display: inline-block;
  box-sizing: border-box;
}
.out_in_plate_box div {
  width: 100%;
  background: #11204a;
  border-radius: 4px;
  border: 1px solid #2f66f2;
  height: 40px;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* 1200以下 */
@media screen and (max-width: 1200px) {
  .out_in_plate_box {
    width: calc(100% / 8);
    display: block;
  }
}

/* modal */
.modal-dialog {
  background: var(--modal-bg-color);
  /* 边框 + 阴影 + 圆角统一在 .modal-dialog 上，.modal-content 不再叠加 border */
  border: 2px solid var(--modal-border-color);
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(0, 158, 255, 0.45);
  /* 圆角裁剪 ::before 顶部渐变与 .modal-content，避免内容溢出尖角 */
  margin: 0;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  -webkit-transform: translate(-50%, -50%) !important;
  -moz-transform: translate(-50%, -50%) !important;
  -ms-transform: translate(-50%, -50%) !important;
  -o-transform: translate(-50%, -50%) !important;
}
.modal-sm {
  width: 400px;
  max-width: 90vw;
}
.modal-dialog::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 126px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(
    0deg,
    rgba(4, 28, 46, 0) 0%,
    rgba(3, 28, 46, 0) 0.3%,
    rgba(2, 46, 82, 0.31) 18.4%,
    rgba(1, 61, 112, 0.56) 36.4%,
    rgba(1, 73, 135, 0.75) 53.9%,
    rgba(0, 82, 152, 0.89) 70.6%,
    rgba(0, 87, 162, 0.97) 86.3%,
    #0059a6 100%
  );
  pointer-events: none;
  opacity: 0.5;
}
.modal-content {
  background: transparent;
  padding-bottom: 20px;
  /* 边框/阴影/圆角已移到 .modal-dialog，这里清掉避免双层 */
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.modal-header {
  padding: 4px 18px 0px;
  position: relative;
  border-bottom: none;
  min-height: 39px;
}
.modal-header::before {
  position: absolute;
  content: '';
  left: 18px;
  top: 21px;
  width: calc(100% - 36px);
  height: 16px;
  background: url(../img/ui/modal-header.png) no-repeat;
  z-index: 0;
  opacity: 0.1;
}
.modal-title {
  font-weight: 400;
  font-size: 18px;
  color: #ffffff;
  line-height: 35px;
  text-align: left;
  position: relative;
  z-index: 1;
}
.close {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  cursor: pointer;
  opacity: 1;
  position: absolute;
  right: 14px;
  top: 14px;
  cursor: pointer;
  z-index: 10;
}
.close::before,
.close::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}
.close::before {
  transform: rotate(45deg);
}
.close::after {
  transform: rotate(-45deg);
}
.close:focus,.close:hover{
  opacity: 1;
}


.modal-body {
  padding: 17px 18px 0px;
  box-shadow: none !important;
}
.modal-footer {
  padding: 20px 18px 0px;
  border: none;
  text-align: center;
}
.modal-message {
  padding: 46px 0 44px;
  font-weight: 400;
  font-size: 16px;
  color: #ffffff;
  line-height: 18px;
  text-align: left;
}
.btn {
  font-weight: 400;
  font-size: 16px;
  line-height: 16px;
}
.modal-footer .btn {
  color: #ffffff;
}
.btn.btn-info.cancel {
  min-width: 88px;
  height: 36px;
  background: #11204a;
  border-radius: 4px;
  border: none;
}
.btn.ok.btn-success {
  min-width: 88px;
  height: 36px;
  background: #0091ff;
  border-radius: 4px;
  border: none;
}
.btn.btn-primary {
  min-width: 88px;
  height: 36px;
  background: #0d3f80;
  border-radius: 4px;
  border: none;
}
.modal-footer .btn + .btn {
  margin-left: 20px;
}

/* mymodal notification */
.mymodal-notification-container {
  position: fixed;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  z-index: 9999;
}
.mymodal-notification-container--top-left {
  top: 97px;
  left: 16px;
  align-items: flex-start;
}
.mymodal-notification-container--bottom-left {
  bottom: 16px;
  left: 16px;
  align-items: flex-start;
  flex-direction: column-reverse;
}
.mymodal-notification-container--top-right {
  top: 97px;
  right: 16px;
  align-items: flex-end;
}
.mymodal-notification-container--bottom-right {
  bottom: 16px;
  right: 16px;
  align-items: flex-end;
  flex-direction: column-reverse;
}
.mymodal-notification-container--center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  align-items: center;
}
.mymodal-notification {
  position: relative;
  width: 330px;
  max-width: 90vw;
  margin-bottom: 12px;
  padding-bottom: 20px;
  background: var(--modal-bg-color);
  border: 2px solid var(--modal-border-color);
  border-radius: 8px;
  pointer-events: all;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
}
/* 右侧弹出动画 */
.mymodal-notification-container--top-right .mymodal-notification,
.mymodal-notification-container--bottom-right .mymodal-notification {
  transform: translateX(100%);
}
.mymodal-notification-container--top-right .mymodal-notification--visible,
.mymodal-notification-container--bottom-right .mymodal-notification--visible {
  transform: translateX(0);
}
/* 左侧弹出动画 */
.mymodal-notification-container--top-left .mymodal-notification,
.mymodal-notification-container--bottom-left .mymodal-notification {
  transform: translateX(-100%);
}
.mymodal-notification-container--top-left .mymodal-notification--visible,
.mymodal-notification-container--bottom-left .mymodal-notification--visible {
  transform: translateX(0);
}
/* 中间弹出动画 */
.mymodal-notification-container--center .mymodal-notification {
  transform: scale(0.8);
}
.mymodal-notification-container--center .mymodal-notification--visible {
  transform: scale(1);
}
.mymodal-notification--visible {
  opacity: 1;
}
/* 渐变背景装饰 */
.mymodal-notification::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 126px;
  top: 0;
  left: 0;
  background: linear-gradient(
    0deg,
    rgba(4, 28, 46, 0) 0%,
    rgba(3, 28, 46, 0) 0.3%,
    rgba(2, 46, 82, 0.31) 18.4%,
    rgba(1, 61, 112, 0.56) 36.4%,
    rgba(1, 73, 135, 0.75) 53.9%,
    rgba(0, 82, 152, 0.89) 70.6%,
    rgba(0, 87, 162, 0.97) 86.3%,
    #0059a6 100%
  );
  pointer-events: none;
  opacity: 0.5;
}
/* 标题栏装饰线 */
.mymodal-notification__title::after {
  position: absolute;
  content: '';
  left: 18px;
  top: 21px;
  width: calc(100% - 36px);
  height: 16px;
  background: url(../img/ui/modal-header.png) no-repeat;
  z-index: 0;
  opacity: 0.1;
}
.mymodal-notification__close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  z-index: 10;
}
.mymodal-notification__close::before,
.mymodal-notification__close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}
.mymodal-notification__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.mymodal-notification__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.mymodal-notification__close:hover::before,
.mymodal-notification__close:hover::after {
  background: var(--modal-border-color);
}
.mymodal-notification__title {
  font-weight: 400;
  font-size: 18px;
  color: #ffffff;
  line-height: 35px;
  text-align: left;
  padding: 4px 18px 0;
  position: relative;
  z-index: 1;
}
.mymodal-notification__body {
  font-weight: 400;
  font-size: 16px;
  color: #ffffff;
  line-height: 18px;
  text-align: left;
  padding: 17px 18px 0;
  position: relative;
  z-index: 1;
}

.col-lg-1,
.col-lg-10,
.col-lg-11,
.col-lg-12,
.col-lg-2,
.col-lg-3,
.col-lg-4,
.col-lg-5,
.col-lg-6,
.col-lg-7,
.col-lg-8,
.col-lg-9,
.col-md-1,
.col-md-10,
.col-md-11,
.col-md-12,
.col-md-2,
.col-md-3,
.col-md-4,
.col-md-5,
.col-md-6,
.col-md-7,
.col-md-8,
.col-md-9,
.col-sm-1,
.col-sm-10,
.col-sm-11,
.col-sm-12,
.col-sm-2,
.col-sm-3,
.col-sm-4,
.col-sm-5,
.col-sm-6,
.col-sm-7,
.col-sm-8,
.col-sm-9,
.col-xs-1,
.col-xs-10,
.col-xs-11,
.col-xs-12,
.col-xs-2,
.col-xs-3,
.col-xs-4,
.col-xs-5,
.col-xs-6,
.col-xs-7,
.col-xs-8,
.col-xs-9 {
  padding-left: 10px;
  padding-right: 10px;
}

/* 岗亭选择 */
.park-switch {
  margin-bottom: 10px;
}
.park-switch_content {
  display: flex;
}
.park-switch_left,
.park-switch_right {
  display: inline-block;
  width: 50%;
  box-sizing: border-box;
}
.park-switch_left {
  max-height: 400px;
  overflow-y: auto;
}
.park-switch_right {
  background: rgba(2, 49, 100, 0.3);
  padding: 10px 0;
}
.park-switch_list {
  overflow: auto;
  padding-right: 20px;
}
.park-switch-item {
  width: 100%;
  height: 36px;
  font-weight: 400;
  font-size: 16px;
  color: #ffffff;
  line-height: 36px;
  text-align: left;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    rgba(0, 146, 255, 0.24) 0%,
    rgba(0, 126, 231, 0.176) 35.5%,
    rgba(0, 84, 180, 0.032) 100%
  );
  margin-bottom: 10px;
}
.park-switch-item:hover,
.park-switch-item-choose {
  background-color: rgba(0, 145, 255, 0.8);
}
.park-switch-item-name {
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: 10px;
  float: left;
  cursor: pointer;
  color: #fff;
}

/* ---- 岗亭列表项（左名称 + 右对号） ---- */
.box-item {
  display: flex;
  align-items: center;
  padding: 0 40px 0 20px;
  min-height: 36px;
  cursor: pointer;
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  user-select: none;
  position: relative;
}
.box-item::after {
  content: '';
  content: '';
  position: absolute;
  right: 10px;
  top: calc(50% - 10px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #020d29;
  border-radius: 4px;
  border: 1px solid #384870;
  flex-shrink: 0;
}
.box-item-active {
  color: #0091ff;
}
.box-item-active::before {
  content: '';
  position: absolute;
  right: 17px;
  top: calc(50% - 2px);
  z-index: 10;
  transform: translateY(-50%) rotate(45deg);
  width: 6px;
  height: 10px;
  border: solid #0091ff;
  border-width: 0 2px 2px 0;
}

/* ---- 自定义复选框（参考岗亭选择样式） ---- */
.custom-checkbox {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  user-select: none;
  position: relative;
  padding-left: 28px;
}
.custom-checkbox::before {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 20px;
  background: #020d29;
  border-radius: 2px;
  border: 1px solid #384870;
  flex-shrink: 0;
}
.custom-checkbox[checked]::after {
  content: '';
  position: absolute;
  left: 7px;
  top: calc(50% - 8px);
  width: 6px;
  height: 10px;
  border: solid #0091ff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.btn:focus,
.btn:active:focus,
.btn.active:focus,
.btn.focus,
.btn:active.focus,
.btn.active.focus {
  outline: none;
  box-shadow: none;
}

.qrcode-wrapper-bg {
  background: url('../img/ui/qrcode-bg.png') no-repeat center center;
  border-radius: 8px;
}

.need-loading,
.btn.loading {
  position: relative;
}
.need-loading.loading::before,
.btn.loading::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(9, 17, 40, 0.6);
  z-index: 1000;
  pointer-events: none;
}

.modal-content.need-loading::before{
  top: 43px;
  left: 0;
  right: 0;
  bottom: 0;
}

.btn.loading {
  cursor: not-allowed;
}

.need-loading.loading::after,
.btn.loading::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  margin-top: -9px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.8s linear infinite;
  z-index: 2000;
  pointer-events: none;
}
@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}


/* ========== 表格横向滚动包裹 ========== */
.table-scroll-wrapper {
  overflow: auto;
}
.table-scroll-wrapper table {
  min-width: 100%;
}

/* ========== 页面表格 ========== */
.table_common table {
  border-collapse: collapse;
  text-align: center;
}
.table_common table thead tr {
  height: 48px;
  line-height: 1;
  font-size: 16px;
  color: #d4edfd;
  font-weight: 400;
  text-align: center;
  background: #092650;
  word-break: keep-all;
}
.table_common table tbody tr {
  height: 48px;
  line-height: 1.2;
  font-weight: 500;
  font-size: 16px;
  color: #d8f0ff;
  word-break: break-all;
}
.table_common table thead tr th {
  text-align: center;
  white-space: nowrap;
  padding: 0 8px;
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  z-index: 1;
  background: #092650;
}
.table_common table tbody tr:nth-child(3n + 1) {
  background: url(../img/ui/table_common_bg.svg) repeat-x;
}
.table_common table tbody tr:nth-child(3n + 2) {
  background: rgba(41, 137, 255, 0.1);
}
.table_common table tbody tr:nth-child(3n + 3) {
  background: transparent;
}
.table_common table tbody tr:hover {
  background: linear-gradient(270deg, #072358 0%, #2989ff 100%);
}
.table_common_form {
  font-size: 14px;
}
.table_common_form .form-group {
  margin-bottom: 20px;
}
.table_common_form .form-group > span {
  padding: 0 10px;
}
.table_common_form .form-group span,
.table_common_form .form-group select,
.table_common_form .form-group input {
  font-weight: 400;
  font-size: 16px;
  color: #d4edfd;
  line-height: 40px;
}
.table_common_form select,
.table_common_form input {
  background: #020d29;
  border-radius: 8px;
  border: 2px solid #384870;
}
.table_common_form .form-group select,
.table_common_form .form-group input {
  padding: 0 12px;
  height: 40px;
}
.table_common_form .form-group input[type='checkbox'],
.table_common_form .form-group input[type='radio'] {
  margin: 0;
}
.table_common_form-search-btn {
  width: 96px;
  height: 40px;
  background-color: #545454;
  background-image: url(../img/ui/action-btn-bg.png);
  border-radius: 8px;
  border: none;
  margin-left: 20px;
  color: #ffffff;
}
.table_common_form-search-btn:hover,
.table_common_form-search-btn:focus {
  color: #ffffff;
}
.table_common_page {
  width: 100%;
  height: max-content;
  display: inline-block;
  overflow: hidden;
  color: #d8f0ff;
  text-align: right;
  padding: 20px 12px;
  font-size: 16px;
}
.table_common_page select {
  font-weight: 400;
  line-height: 24px;
  padding: 0 8px;
  height: 24px;
  background: rgba(41, 137, 255, 0.1);
  border-radius: 4px;
  border: 1px solid #d8f0ff;
  font-size: 16px;
  color: #d8f0ff;
}
.table_common_page_btn {
  background-color: rgba(41, 137, 255, 0.1);
  border-color: #d8f0ff;
  color: #d8f0ff;
  display: inline-block;
  height: 30px;
  padding: 0 12px;
  line-height: 30px;
  border-radius: 4px;
  cursor: pointer;
}

/* ========== 弹窗表格 ========== */
.table_modal .table-scroll-wrapper {
  max-height: 300px;
  min-height: 200px;
  overflow: auto;
}
.table_modal table {
  border-collapse: collapse;
  text-align: center;
  font-size: 16px;
}
.table_modal table thead tr {
  height: 48px;
  background: rgba(41, 137, 255, 0.1);
  opacity: 0.8;
  font-weight: 400;
  font-size: 16px;
  color: #ffffff;
}
.table_modal table tbody tr {
  height: 48px;
  line-height: 48px;
  color: #fff;
}
.table_modal table thead tr th {
  text-align: center;
  white-space: nowrap;
  padding: 0 8px;
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  z-index: 1;
  background: rgba(41, 137, 255, 0.1);
}
.table_modal table tbody tr:nth-child(3n + 1) {
  background: url(../img/ui/table_common_bg.svg) repeat-x;
}
.table_modal table tbody tr:nth-child(3n + 2) {
  background: rgba(41, 137, 255, 0.1);
}
.table_modal table tbody tr:nth-child(3n + 3) {
  background: transparent;
}
.table_modal table tbody tr:hover {
  background: linear-gradient(270deg, #072358 0%, #2989ff 100%) no-repeat;
}
.table-btn-default {
  font-weight: 400;
  font-size: 16px;
  color: #0091ff;
  line-height: 16px;
  cursor: pointer;
}

.table_loading_mask {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  height: 100%;
  z-index: 999;
  background: rgba(9, 17, 40, 0.7);
}
.table_loading {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100vw;
  pointer-events: none;
  height: 100%;
  color: #d8f0ff;
  font-size: 16px;
}
.table_loading_spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(41, 137, 255, 0.3);
  border-top-color: #2989ff;
  border-radius: 50%;
  animation: tableLoadingSpin 0.8s linear infinite;
  margin-right: 10px;
}
@keyframes tableLoadingSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ========== 表格样式 ========== */
.table-striped > tbody > tr {
  background-color: rgba(96, 178, 255, 0.2) !important;
  font-size: 14px;
}
.table-striped > tbody > tr td {
  background-color: rgba(96, 178, 255, 0.2) !important;
  font-size: 14px;
}
.table-striped > tbody > tr:nth-of-type(odd) {
  font-size: 10px;
  background-color: rgba(96, 178, 255, 0) !important;
}
.table-striped > tbody > tr:hover {
  background-color: rgba(156, 207, 255, 0.1);
}
.fixed-table-container thead th .th-inner,
.fixed-table-container tbody td .th-inner {
  padding: 0 8px !important;
}
