/* =============================================================================
  Subject: Admin common style
  Author: jehun@benife.com
  Create: 2017-10-12
  Bootstrap v4.3.1 (https://getbootstrap.com/)
  Updated: 2020-08-11
  ========================================================================== */
  
  @import url(./common.css);
  @import url(./spoqahans.css);

  /* =============================================================================
    Basic
    ========================================================================== */
  select {
    vertical-align:top !important;
  }
  .number{
    text-align: right;
  }

  a {
    cursor: pointer;
  }
  
  .bg-default{
    background-color: rgba(255,252,250,0.98);
  }
  .bg-black{
    background-color: #000 !important;
  }

  .page-content { 
    padding-top: calc(70px + 12px); /*헤더 높이 + page-content 양옆 패딩*/
  }

  /* icon */
  a.remove-icon, a.remove-icon:hover{
    color:#bd362f !important;
  }

  .material-icons{
    font-size: 13px;
  } 
  
  /* container */
  .container.lg{
    max-width: 1300px !important;
  }
  .container.sm{
    max-width: 960px !important;
  }
  .rounded-container {
    padding: 5px 20px 20px 20px;
    background: #FFFFFF;
    /* border: 1px solid #e0e0e0; */
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1);
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1);
  }
  .rounded-container.login {
    padding: 5px 30px 20px 30px;
  }
  .dropdown-arrow-none.dropdown-toggle::after {
    display:none;
  }
  .dropdown-menu a:hover{
    background-color: #007BFF;
    color: #FFFFFF !important;
  }
    
  .loader,
  .loader:before,
  .loader:after {
    color: #4691D2;
  }
  
  /* list */ 
  .list-link{
    text-decoration: none;
    color: #000000;
    cursor: pointer;
  }
  .list-link:link{
    text-decoration: none;
  }
  .list-link:hover{
    border-color: #007bff !important;
    color: #007bff !important;
  }
  
  /* list ul dl */
  .list-group.list-group-flush a{
    text-decoration: none;
  }
  .list-group.list-group-flush a.edit{
    text-decoration: none;
    color: #007bff !important;
  }
  .list-group.list-group-flush a.edit:hover{
    color: #fff !important;
  }

  dl dt{
    font-weight: normal;
  }
  dl dd{
    font-weight: bold;
  }
  dl.dl-horizontal.inline dt{
    float: none;
    text-align: left;
    width: 120px;
  }
  dl.dl-horizontal.inline dt,
  dl.dl-horizontal.inline dd{
    display: inline;
  }
  dl.dl-horizontal.inline dd{
    margin-left: 20px;
    margin-right: 60px;
  }
  
  /* Table */
  .table th{
    font-weight: bold;
  }
  .table td{
    vertical-align: middle;
  }
  .table td.btn-td, td.image-td{
    min-width: 125px;
  }

  .table-hover tbody tr:hover:not(.accordion-tr) td a:not(.btn):not(.menu-link) {
    color: #4691d2 !important;
    /* text-decoration: underline; */
  }
  .table a:not(.btn){
    color: inherit;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* nav tab */
  .nav-tabs li a{
    /* color: #000; */
  }
  .nav-tabs li.active a,
  .nav-tabs li a:hover,
  .nav-tabs li.active a:hover {
    /* color: #4691D2 !important; */
  }

  /* datepicker */
  .datepicker[readonly]{
    cursor: pointer;
    background-color: #fff;
    width: 110px;
  }

  /* profile picture */
  .profile-pic {
    width: 2.4rem;
    height: 2.4rem;
    margin: 0 0.25rem 0 0.25rem;
  }
  img.profile-pic{
    margin-top: 3px;
    object-fit: cover;
  } 
  .profile-pic.sm {
    width: 1.6rem;
    height: 1.6rem;
  }
  .profile-pic.lg {
    width: 4.5rem;
    height: 4.5rem;
  }
  .profile-pic.xl {
    width: 9rem;
    height: 9rem;
  }
  .material-icons.profile-pic{
    color: #fff;
    background-color: #888;
    font-size: 2.4rem !important;
    top: 3px;
  }
  .material-icons.profile-pic.sm{
    font-size: 1.6rem !important;
  } 
  .material-icons.profile-pic.lg{
    font-size: 4.5rem !important;
  }
  .material-icons.profile-pic.xl{
    font-size: 9rem !important;
  }
  
  /* =============================================================================
    Header (Top Navigation)
    ========================================================================== */
  #adminHeader .navbar .navbar-brand{
    display: inline-block;
    padding: 0.5rem 0;
    background-color: rgb(20,18,15); /* #4691D2; */
    text-indent: 1rem;
    font-size: 1.4rem;
    width: 12.2rem;
    line-height: 1;
    max-height: 3.53rem;
    color: #fff;
  }
  
  .navbar .navbar-brand img{
    margin-bottom: 0.3rem;
  }

  label.header-name {
    display: inline-block;
    margin: 0;
    text-indent: 20px;
    font-size: 14pt;
    font-weight: bold;
    color: #222222;
  }

  .navbar-nav{
    /* line-height: 3.45rem; */
    padding: 7px 0;
  }
  .navbar-nav .nav-item{
    line-height: normal;
  }
  
  /* Sidebar Navigation */
  .sidebar-nav{
    width: 12.2rem;
  }
  .sidebar-nav .nav > li > a { 
    color: #cdcdcd;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }
  .sidebar-nav .nav > li > a:hover {
    color: #ffffff !important;  
    background-color: #007bff;    
  }
  .sidebar-nav .nav .active a {
    background-color: #222627; /*rgba(34,38,39, 0.1)*/
    border-left: 5px solid #007bff;
    color: #ffffff;
  }
  .sidebar-nav .nav li {
    position: relative;
  }
  .sidebar-nav .nav .submenu-1 li a{
    display: block;
    padding-left: 20px;
    background-color: #292B33; /*rgb(41, 43, 51)*/
    text-decoration: none;
    color: #cdcdcd;
    font-size: 0.86rem;
  }
  .sidebar-nav .nav .submenu-1 > li.active > a{
    padding-left: 20px;
    background-color: #000; 
    color: #fff;
  }
  .sidebar-nav .nav ul.submenu-2 > li > a{
    padding-left: 35px !important;
  }
  .sidebar-nav .nav .submenu-2 > li.active > a{
    padding-left: 35px !important;
    background-color: #000 ;
    color: #fff;
  }
  .sidebar-nav .nav li a i {
    position: absolute;
    right: 10px;
    top: 1.1rem;
    font-size: 16pt;
  }
  .sidebar-nav .nav .submenu-1 a i {
    right: 15px;
    top: 7px;
  }
  
  /* admin-container */
  .admin-container{
    padding-top: 3.53rem;
    min-height: 600px;
  }
  .admin-container .content-container{
    position: relative;
    z-index: 1;
    margin-left: 195px;
    overflow: visible;
    background-color: rgba(255,253,251,0.92);
    min-height: 600px;
    min-width: 900px;
  }
  .admin-container .content-header {
    position:relative;
    padding: 20px 30px;
    margin-left: 195px;
    background-color: #fff;
    box-shadow: 0px 3px 7px -2px rgba(0,0,0,0.1);
    z-index: 2;
  }
  .admin-container .content-header p {
    margin: 0 40px 0 0;
    font-size: 1.3em;
    vertical-align: middle;
  }
  .admin-container .content-container h2 {
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
  }
  .admin-container .content-container .form-actions {
    margin-top: 3rem;
    background-color: transparent;
  }
  .admin-container .content-container .box-container {
    position: relative;
    background-color: #fff;
    padding: 1.5rem;
    min-height: 500px;
    border-radius: 3px;
    /* border: 1px solid #eee; */
    box-shadow: 0px 0px 1px 0px rgba(0,0,0,0.12);
  }

  /* =============================================================================
  Message
  ========================================================================== */
  #messageContainer {
    margin: 160px auto;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    color: #666666;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15); 
  }
  #messageContainer h1 {
    font-size: 2em;
    margin-bottom: 30px;
  }
  
  /* =============================================================================
    Footer
    ========================================================================== */
  #adminFooter{
    color:#cdcdcd;
    /* background-color: #2a3042; */
    height: unset !important;
  }

  #adminFooter .inner{
    padding: 10px 0 10px 225px;
  }

  #adminFooter .container{
    width: 100%;
  }
  #adminFooter a{
    color: #cdcdcd;
  }
  #adminFooter a:hover{
    color: #ffffff;
  }
  #adminFooter .copyright{
    color:#aaa;
  }
  #loginFooter{
    /* font-size: 0.9em; 
    background-color: rgba(255,255,255,0.8); */
    background-color: #222627;
    color: #cdcdcd;
  }
  
  #loginFooter a{
    color: #cdcdcd;
  }

  .w-91px {
    width: 91px !important
  }

  .w-140px {
    width: 140px !important
  }

  .tooltip.custom-tooltip .tooltip-inner {
    color: #ffffff;
    background-color: #191919;
    border-top-color: #191919;
    text-align: start;
    max-width: 800px;
    width: auto;
  }

  /* ==============================================================================
    Scroll bar
    ============================================================================ */
  
  .sidebar-nav::-webkit-scrollbar-track{
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    background-color: #e6e6e6;
  }
  
  .sidebar-nav::-webkit-scrollbar{
    width: 5px;
    background-color: #e6e6e6;
  }
  
  .sidebar-nav::-webkit-scrollbar-thumb{
    background-color: #343A40;
  }
  
  /* =============================================================================
    Responsive
    ========================================================================== */
  @media (min-width: 1200px){   
  }

  @media (max-width: 1200px) and (min-width: 979px){     
  }
  
  @media (max-width: 979px) and (min-width: 768px){
  }

  @media (max-width: 767px){  
  }
  
  @media (max-width: 485px){
  }

  /* 헤더 하단 우측 고정 토스트 (긴급 알림용, 전 관리자 화면 공통)
     toastr 는 컨테이너가 비면 #headerToast 를 삭제 후 재생성(body 에 부착)하므로,
     위치 스타일은 유틸 클래스가 아닌 id CSS 에 둬야 재생성돼도 동일하게 적용된다. */
  #headerToast {
    position: fixed;
    top: calc(var(--kt-app-header-height, 70px) + 12px);
    right: 12px;
    z-index: 1000;
    width: 320px;
    max-width: 80vw;
    pointer-events: none;
  }
  #headerToast > div {
    pointer-events: auto; /* 부모 pointer-events:none 무시하고 토스트 클릭(닫기) 가능하게 */
    margin-bottom: 0.5rem; /* 토스트 간 간격 (테마 margin 은 #toastr-container 스코프라 미적용) */
  }
  /* 토스트 꾸밈 (showHeaderToast 의 toastClass: header-toast-item)
     아이콘은 infoAlert 와 동일한 background-image(SVG) 방식. 위치(좌 1rem·세로 가운데)는 전역 .toastr 가 제공.
     크기·좌우패딩·테두리는 테마 .toastr 의 !important 값을 덮어쓰기 위해 !important 사용. */
  #headerToast .header-toast-item {
    position: relative; /* 가운데정렬 닫기버튼 absolute 기준 */
    width: 100% !important;
    padding: 1rem 2.5rem 1rem 2.25rem !important; /* 좌: 아이콘 자리 / 우: 닫기버튼 자리 */
    background-color: #DC3545 !important; /* 긴급 강조: 빨강 배경 */
    color: #fff !important; /* 흰색 텍스트 */
    border: 1px solid #DC3545 !important;
    /* 종 + 느낌표 SVG (빨강 배경이므로 종=흰색, 느낌표=빨강으로 반전) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M8 16a2 2 0 0 0 2-2H6a2 2 0 0 0 2 2m.995-14.901a1 1 0 1 0-1.99 0A5 5 0 0 0 3 6c0 1.098-.5 6-2 7h14c-1.5-1-2-5.902-2-7 0-2.42-1.72-4.44-4.005-4.901'/%3E%3Crect x='7.3' y='4' width='1.4' height='3.6' rx='0.7' fill='%23DC3545'/%3E%3Ccircle cx='8' cy='8.85' r='0.8' fill='%23DC3545'/%3E%3C/svg%3E");
    background-repeat: no-repeat; /* 테마 no-repeat 은 #toastr-container 스코프라 직접 지정 */
    background-size: 1.25rem !important; /* 아이콘 크기 (테마 3rem !important 덮어씀) */
  }
  /* 아이콘과 본문 사이 간격 */
  #headerToast .toastr-message {
    padding-left: 0.75rem;
  }
  /* 닫기 버튼 세로 가운데 정렬 */
  #headerToast .toastr-close-button {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    float: none;
    margin: 0;
    /* × 는 mask-image(SVG)라 색이 background-color 로 입혀짐 → 흰색으로 덮어 빨강 배경에서 보이게 */
    background-color: #fff !important;
    opacity: 0.9;
  }
  @media (max-width: 767px){
    #headerToast {
      right: 1rem;
      left: 1rem;
      width: auto;
    }
  }
      