@charset "utf-8";

/* ==========================================================================
   CSS CUSTOM VARIABLES (LIGHT/DARK THEME DEFINITIONS)
   ========================================================================== */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f9f9f9;
  --bg-tertiary: #f0f0f0;
  --bg-accent: #393f4b;
  --bg-navbar: #ffffff;
  --bg-button-gray: #474747;
  --bg-button-light: #eeeeee;

  --border-color: #dddddd;
  --border-accent: #6d819c;
  --border-button-light: #cacece;
  --border-input: #ced4da;

  --text-primary: #212529;
  --text-secondary: #495057;
  --text-muted: #6a6b6b;
  --text-light: #ffffff;
  --text-dark: #000000;
  --text-error: #c03546;

  --brand-yellow: #f2cc0c;
  --brand-blue: #6d819c;
  --brand-dark: #393f4b;

  --highlight-bg: #fcf8e3;
  --highlight-text: #212529;

  --dropdown-bg: #f9f9f9;
  --dropdown-hover-bg: #dddddd;

  --scrollbar-track: #efefef;
  --scrollbar-thumb: rgba(0, 0, 0, 0.2);
}

.dark-mode {
  --bg-primary: #121214;
  --bg-secondary: #1e1e24;
  --bg-tertiary: #25252d;
  --bg-accent: #1e1e24;
  --bg-navbar: #121214;
  --bg-button-gray: #2d3238;
  --bg-button-light: #2d3238;

  --border-color: #383844;
  --border-accent: #526682;
  --border-button-light: #383844;
  --border-input: #495057;

  --text-primary: #d1d5db;
  --text-secondary: #aeb5bc;
  --text-muted: #8e959b;
  --text-light: #e0e0e0;
  --text-dark: #d1d5db;
  --text-error: #ff6b6b;

  --brand-yellow: #ffd43b;
  --brand-blue: #526682;
  --brand-dark: #1a1b1e;

  --highlight-bg: #3d3b30;
  --highlight-text: #ffd43b;

  --dropdown-bg: #1e1e24;
  --dropdown-hover-bg: #2d3238;

  --scrollbar-track: #1e1e24;
  --scrollbar-thumb: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   SECTION 1: bootstrap_v2_1.css (Used parts only, filtered by Antigravity)
   ========================================================================== */

.close {
  float: right;
  height: 57px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: white;
  text-shadow: none;
  opacity: .5;
}

.close:hover,
.close:focus {
  color: var(--brand-yellow);
  text-decoration: none;
  opacity: .75;
}

.close:not(:disabled):not(.disabled) {
  cursor: pointer;
}

button.close {
  padding: 0;
  background-color: transparent;
  border: 0;
  -webkit-appearance: none;
}

.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  top: 200px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1050;
  display: none;
  overflow: hidden;
  outline: 0;
}

.modal-open .modal {
  overflow-x: hidden;
  overflow-y: auto;
}

.modal-dialog {
  position: relative;
  width: auto;
  margin: 0.5rem;
  pointer-events: none;
}

.modal.fade .modal-dialog {
  -webkit-transition: -webkit-transform 0.3s ease-out;
  transition: -webkit-transform 0.3s ease-out;
  transition: transform 0.3s ease-out;
  transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out;
  -webkit-transform: translate(0, -25%);
  transform: translate(0, -25%);
}

@media screen and (prefers-reduced-motion: reduce) {
  .modal.fade .modal-dialog {
    -webkit-transition: none;
    transition: none;
  }
}

.modal.show .modal-dialog {
  -webkit-transform: translate(0, 0);
  transform: translate(0, 0);
}

.modal-content {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: var(--bg-primary);
  background-clip: padding-box;
  border: 0;
  outline: 0;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  background-color: var(--text-primary);
}

.modal-backdrop.fade {
  opacity: 0;
}

.modal-backdrop.show {
  opacity: 0.5;
}

.dark-mode .modal-backdrop {
  background-color: #272727;
}

.dark-mode .modal-backdrop.show {
  opacity: 0.8;
}

.modal-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding: 0 auto;
  background-color: var(--brand-dark);
  border-bottom: 1px solid var(--border-color);
  height: auto;
  text-align: center;
}

.modal-header .close {
  padding: 0.5rem;
  margin: 0;
}

.modal-title {
  width: 100%;
  padding-left: 26px;
  margin: auto 0;
  line-height: 4;
  color: white;
  font-size: 14px;
  font-weight: 700;
}

.modal-body {
  position: relative;
  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  padding: 1rem 0;
  font-size: 14px;
  text-align: center;
  font-weight: 700;
}

.modal-body input[type="checkbox"] {
  display: inline-block;
  width: 19px;
  height: 19px;
  margin: -2px 10px 0 0;
  vertical-align: middle;
  background: url(check_radio_sheet.png) left top no-repeat;
  cursor: pointer;
}

.modal-body p {
  margin: 0 !important;
  line-height: 200% !important;
}

.fullbutton {
  display: inline-block;
  font-weight: 700;
  width: 100%;
  margin: 10px auto;
  background-color: var(--bg-button-light);
  border: 2px solid var(--border-button-light);
  color: var(--text-primary);
  padding: 5px 0;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  cursor: pointer;
  border-radius: 0.25rem;
  height: 40px;
}

.fullbutton:hover {
  background-color: var(--text-muted);
  color: white;
  border: 2px solid black;
}

.modal-footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
  padding: 0.5rem;
  margin: auto 0;
}

.modal-footer form {
  text-align: center;
  width: 100%;
  padding: auto 0;
}

.modal-footer .fullbutton {
  display: inline-block;
  font-weight: 700;
  width: 85%;
  margin: 10px auto;
  background-color: var(--bg-button-light);
  border: 2px solid var(--border-button-light);
  color: var(--text-primary);
  padding: 5px 0;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  cursor: pointer;
  border-radius: 0.25rem;
  height: 40px;
}

.modal-footer .fullbutton:hover {
  background-color: var(--text-muted);
  color: white;
  border: 2px solid black;
}

.modal-footer> :not(:first-child) {
  margin-left: .25rem;
}

.modal-footer> :not(:last-child) {
  margin-right: .25rem;
}

.modal-scrollbar-measure {
  position: absolute;
  top: -9999px;
  width: 50px;
  height: 50px;
  overflow: scroll;
}

@media (min-width: 576px) {
  .modal-dialog {
    max-width: 275px;
    margin: 1.75rem auto;
  }

  .modal-sm {
    max-width: 300px;
  }
}

/* ==========================================================================
   SECTION 2: publicdef_v2_3.css (Original core stylesheet)
   ========================================================================== */

/* RESET */

img,
legend {
  border: 0
}

legend,
td,
th {
  padding: 0
}

html {
  font-family: sans-serif;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%
}

body {
  margin: 0
}

aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
icle,
main,
menu,
nav,
section,
summary {
  display: block
}

audio,
canvas,
progress,
video {
  display: inline-block;
  vertical-align: baseline
}

audio:not([controls]) {
  display: none;
  height: 0
}

[hidden],
template {
  display: none
}

a {
  background-color: transparent
}

a:active,
a:hover {
  outline: 0
}

abbr[title] {
  border-bottom: 1px dotted
}

b,
optgroup,
strong {
  font-weight: 700
}

dfn {
  font-style: italic
}

h1 {
  font-size: 2em;
  margin: .67em 0
}

mark {
  background: #ff0;
  color: var(--text-primary)
}

small {
  font-size: 80%
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline
}

sup {
  top: -.5em
}

sub {
  bottom: -.25em
}

svg:not(:root) {
  overflow: hidden
}

figure {
  margin: 1em 40px
}

hr {
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  height: 0
}

pre,
textarea {
  overflow: auto
}

code,
kbd,
pre,
samp {
  font-family: monospace, monospace;
  font-size: 1em
}

button,
input,
optgroup,
select,
textarea {
  color: inherit;
  font: inherit;
  margin: 0
}

button {
  overflow: visible
}

button,
select {
  text-transform: none
}

button,
html input[type=button],
input[type=reset],
input[type=submit] {
  -webkit-appearance: button;
  cursor: pointer
}

button[disabled],
html input[disabled] {
  cursor: default
}

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0
}

input {
  line-height: normal
}

input[type=checkbox],
input[type=radio] {
  box-sizing: border-box;
  padding: 0
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  height: auto
}

input[type=search] {
  -webkit-appearance: textfield;
  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box;
  box-sizing: content-box
}

input[type=search]::-webkit-search-cancel-button,
input[type=search]::-webkit-search-decoration {
  -webkit-appearance: none
}

fieldset {
  border: 1px solid silver;
  margin: 0 2px;
  padding: .35em .625em .75em
}

table {
  border-collapse: collapse;
  border-spacing: 0
}

/* ipad, mac 등 Safari를 위한 초기화 css */

input {
  -webkit-border-radius: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

button {
  -webkit-border-radius: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  height: 0;
}

select::-ms-expand {
  display: none;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

::-moz-selection {
  background: var(--brand-yellow);
  color: var(--text-primary);
}

::selection {
  background: var(--brand-yellow);
  color: var(--text-primary);
}

body.modal-open {
  overflow: auto;
}

body.modal-open[style] {
  padding-right: 0px !important;
}

.modal::-webkit-scrollbar {
  width: 0 !important;
}

mark {
  background-color: var(--brand-yellow);
}

.blinking {
  -webkit-animation: blink 0.5s ease-in-out infinite alternate;
  -moz-animation: blink 0.5s ease-in-out infinite alternate;
  animation: blink 0.5s ease-in-out infinite alternate;
}

@-webkit-keyframes blink {
  0% {
    background-color: var(--bg-primary);
    ;
  }

  100% {
    background-color: var(--brand-yellow);
  }
}

@-moz-keyframes blink {
  0% {
    background-color: var(--bg-primary);
    ;
  }

  100% {
    background-color: var(--brand-yellow);
  }
}

@keyframes blink {
  0% {
    background-color: var(--bg-primary);
    ;
  }

  100% {
    background-color: var(--brand-yellow);
  }
}

body {
  font-family: "Noto Sans KR";
  margin: 0;
  height: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6,
a,
button,
span {
  font-family: "Noto Sans KR";
}

/* container width 설정 */

.container {
  padding-top: 15px;
  padding-right: 0;
  padding-left: 0;
  margin-right: auto;
  margin-left: auto;
  width: 1100px;
  min-height: 100%;
  position: relative;
  padding-bottom: 80px;
}

.container:after {
  content: "";
  clear: both;
  display: block;
}

.nav {
  min-width: 1100px;
}



.popper,
.tooltip {
  position: absolute;
  z-index: 9999;
  background: #FFC107;
  color: var(--text-primary);
  font-weight: 700;
  width: 200px;
  border-radius: 3px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
  padding: 10px;
  text-align: left;
  font-size: 12px;
}

.popper .popper__arrow,
.tooltip .tooltip-arrow {
  width: 0;
  height: 0;
  border-style: solid;
  position: absolute;
  margin: 5px;
}

.tooltip .tooltip-arrow,
.popper .popper__arrow {
  border-color: #FFC107;
}

.popper[x-placement^="top"],
.tooltip[x-placement^="top"] {
  margin-bottom: 5px;
}

.popper[x-placement^="top"] .popper__arrow,
.tooltip[x-placement^="top"] .tooltip-arrow {
  border-width: 5px 5px 0 5px;
  border-left-color: transparent;
  border-right-color: transparent;
  border-bottom-color: transparent;
  bottom: -5px;
  left: calc(50% - 5px);
  margin-top: 0;
  margin-bottom: 0;
}

.popper[x-placement^="bottom"],
.tooltip[x-placement^="bottom"] {
  margin-top: 5px;
}

.tooltip[x-placement^="bottom"] .tooltip-arrow,
.popper[x-placement^="bottom"] .popper__arrow {
  border-width: 0 5px 5px 5px;
  border-left-color: transparent;
  border-right-color: transparent;
  border-top-color: transparent;
  top: -5px;
  left: calc(50% - 5px);
  margin-top: 0;
  margin-bottom: 0;
}

.tooltip[x-placement^="right"],
.popper[x-placement^="right"] {
  margin-left: 5px;
}

.popper[x-placement^="right"] .popper__arrow,
.tooltip[x-placement^="right"] .tooltip-arrow {
  border-width: 5px 5px 5px 0;
  border-left-color: transparent;
  border-top-color: transparent;
  border-bottom-color: transparent;
  left: -5px;
  top: calc(50% - 5px);
  margin-left: 0;
  margin-right: 0;
}

.popper[x-placement^="left"],
.tooltip[x-placement^="left"] {
  margin-right: 5px;
}

.popper[x-placement^="left"] .popper__arrow,
.tooltip[x-placement^="left"] .tooltip-arrow {
  border-width: 5px 0 5px 5px;
  border-top-color: transparent;
  border-right-color: transparent;
  border-bottom-color: transparent;
  right: -5px;
  top: calc(50% - 5px);
  margin-left: 0;
  margin-right: 0;
}

/* 모달창 */
.modallink {
  display: inline-block;
  float: right;
}

.modallink>a {
  font-size: 12px;
  text-decoration: none;
  vertical-align: middle;
  margin: 0;
  text-align: center;
  display: inline-block;
  padding: 0 8px;
  color: #fff;
  font-weight: 500;
  line-height: 250%;
  background: var(--brand-dark);
  border-radius: 0.25rem;
}

.modallink>a:hover {
  background-color: var(--brand-yellow);
  color: var(--text-primary);
}



.nav {
  margin: 0 auto;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 110px;
  position: fixed;
  width: 1100px;
  padding-right: 0;
  padding-left: 0;
  background-color: var(--bg-primary);
}

.topnav {
  width: 100%;
  padding-top: 20px;
  overflow: hidden;
  background-color: var(--bg-primary);
  border-bottom: solid;
  border-color: var(--brand-blue);
}

.icon_login {
  margin-top: 2%;
  float: left;
  width: 50%;
  font-weight: 800;
}

.icon_login h1 {
  display: inline-block;
  margin: 0;
  font-size: 20px;
  margin-left: 18px;
}

.icon_login h2 {
  display: block;
  text-align: left;
  color: var(--text-primary);
  margin: 0;
  padding-top: 0px;
  text-decoration: none;
  font-size: 32px;
  margin-left: 16px;
  margin-bottom: 10px;
}

.icon {
  float: left;
  width: 50%;
  font-weight: 800;
}

.icon h1 {
  display: inline-block;
  margin: 0;
  font-size: 15px;
  margin-left: 18px;
}

.icon h2 {
  display: block;
  text-align: left;
  color: var(--text-primary);
  margin: 0;
  padding-top: 0px;
  text-decoration: none;
  font-size: 24px;
  margin-left: 16px;
  margin-bottom: 10px;
}

.topnav a {
  text-decoration: none;
  color: var(--text-primary);
}

.topnav a.active {
  background-color: #2196F3;
  color: white;
}

.topnav .search-container {
  float: right;
  margin-top: 10px;
}

.topnav input {
  border: none;
}

.topnav input[type=text] {
  padding: 6px;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
  outline: none;
}

.topnav input[placeholder] {
  border-bottom: solid;
  border-width: thin;
}

.topnav .search-container button {
  float: right;
  padding: 6px 10px;
  margin-top: 8px;
  margin-right: 8px;
  background: var(--bg-primary);
  font-size: 17px;
  border: none;
  cursor: pointer;
}

.topnav .search-container button:hover {
  color: var(--text-error);
}

.navbar {
  width: 100%;
  overflow: hidden;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  padding-left: 4px;
  padding-right: 4px;
  font-weight: 800;
  border-radius: 0.25rem;
}

.navbar a {
  float: left;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  padding: 14px 8px;
  text-decoration: none;
  border-radius: 0.25rem;
}

.navbar i {
  width: 14px;
  height: 14px;
}

.navbar .logout {
  float: right;
}

.dropdown {
  float: left;
  overflow: hidden;
}

.dropdown .dropbtn {
  letter-spacing: 1px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 0.25rem;
  outline: none;
  color: var(--text-primary);
  padding: 14px 8px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
}

.navbar a:hover,
.dropdown:hover .dropbtn {
  background-color: var(--brand-yellow);
  color: var(--text-primary);
}

#drop_active {
  border-radius: 0.25rem;
  background-color: var(--brand-dark);
  color: white;
}

#SettingButton {
  border-radius: 0.25rem;
  float: right;
  text-decoration: none;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  width: 200px;
  height: 50px;
  line-height: 50px;
  background: var(--brand-yellow);
  padding: 0;
  text-align: center;
  color: var(--text-primary);
  border: 0;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
  font-size: 14px;
  display: none;
  position: absolute;
  background-color: var(--bg-secondary);
  min-width: 120px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 0.25rem;
}

/* Links inside the dropdown */
.dropdown-content a {
  font-size: 14px;
  float: none;
  color: var(--text-primary);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
  border-radius: 0.25rem;
}

.dropdown-content i {
  width: 16px;
  height: auto;
}

/* Add a grey background color to dropdown links on hover */
.dropdown-content a:hover {
  background-color: var(--border-color);
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}



.calendar {
  margin-top: 150px;
  z-index: 10;
}

footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding-left: 0;
  padding-right: 0;
}

.foot {
  box-sizing: border-box;
  margin: 0 auto;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 100%;
  height: 80px;
  border-top: solid;
  border-color: var(--brand-blue);
  text-align: right;
  font-size: 14px;
  font-weight: 400;
  line-height: 180%;
  padding-top: 10px;
  padding-right: 20px;
}

.foot>span {
  font-size: 12px;
}

article .firstpage {
  margin-top: 150px;
}

article .firstpage a {
  text-decoration: none;
  border-radius: 0.25rem;
  float: right;
  margin: 0 auto;
  font-size: 13px;
  display: inline-block;
  padding: 0 10px;
  color: #fff;
  font-weight: 700;
  line-height: 250%;
  background: var(--brand-blue);
  letter-spacing: 1px;
  margin-left: 40px;
  margin-top: 10px;
}

article .firstpage .guide {
  padding-top: 100px;
  position: relative;
  height: 100%;
}

article .firstpage .guide>img {
  position: absolute;
  vertical-align: bottom;
}

article .firstpage .guide>h2 {
  border-radius: 0.25rem;
  text-decoration: none;
  margin: 0 auto;
  font-size: 20px;
  display: inline-block;
  padding: 0 10px;
  color: white;
  font-weight: 700;
  line-height: 250%;
  background: var(--brand-dark);
  letter-spacing: 1px;
}

article .firstpage .guide>p {
  font-size: 16px;
  letter-spacing: -0.5px;
}

.guide .maintext {
  font-family: 'Noto Sans KR';
  margin-left: 5%;
  text-decoration: none;
  line-height: 180%;
}

.guide .maintext p {
  font-size: 14px;
  font-weight: normal;
}

.casedetail {
  margin-top: 135px;
}

.casedetail .detail_title {
  margin-bottom: 16px;
  padding-left: 30px;
  padding-right: 20px;
  padding-top: 5px;
  padding-bottom: 20px;
  background-color: var(--bg-tertiary);
  border-radius: 0.5rem;
}

.casedetail .detail_title>h1 {
  font-size: 24px;
  display: inline-block;
  font-weight: 900;
}

.casedetail .detail_text .detail_title>h2 {
  text-align: left;
  margin: 2px 0;
  font-size: 18px;
  font-weight: 700;
  display: block;
}

.casedetail .detail_text .detail_title>h3 {
  border: 0;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  padding: 0 8px;
  font-size: 20px;
  color: white;
  font-weight: 700;
  line-height: 250%;
  background: var(--brand-blue);
}

.casedetail .detail_text .detail_title h1>a {
  color: inherit;
  text-decoration: none;
}

.casedetail .detail_text .detail_title>a.back {
  float: right;
  display: inline-block;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  background: var(--brand-dark);
  padding: 8px 15px;
  text-align: center;
  color: white;
  border: 0;
}

.casedetail .detail_title>h2 {
  text-align: left;
  margin: 2px 0;
  font-size: 18px;
  font-weight: 700;
}

.casedetail .detail_text .detail_title h2>span {
  margin: 0;
  text-align: center;
  display: inline-block;
  padding: 0 4px;
  font-size: 16px;
  color: #fff;
  font-weight: 700;
  line-height: 250%;
  background: var(--brand-dark);
}

.casedetail .divline {
  height: 2px;
  background-color: #76828e;
  margin-top: 5px;
  margin-bottom: 5px;
}

.casedetail .detail_text table {
  width: 100%;
  font-size: 14px;
  line-height: 220%;
}

.casedetail .detail_text .basictable th {
  height: 2.5rem;
  padding-right: 5px;
  background-color: var(--bg-button-light);
  text-align: right;
  border-bottom: 1px solid var(--border-color);
}

.casedetail .detail_text .basictable td {
  font-weight: 500;
  height: 2.5rem;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom: 1px solid var(--border-color);
}

.casedetail .detail_text .basictable td:hover {
  background-color: var(--border-color);
}

.casedetail .detail_text .basictable .btn-notice {
  border: 0;
  margin: 0;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  padding: 0 8px;
  font-size: 12px;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 250%;
  background: var(--brand-yellow);
}

.casedetail .detail_text .basictable a {
  text-decoration: none;
}

.casedetail .detail_text .basictable .btn-red {
  border: 0;
  border-radius: 0.25rem;
  margin: 0;
  text-align: center;
  display: inline-block;
  padding: 0 8px;
  font-size: 12px;
  color: white;
  font-weight: 500;
  line-height: 250%;
  background: var(--text-error);
}

.casedetail .detail_text .detailtable .btn-red {
  border: 0;
  border-radius: 0.25rem;
  margin: 0;
  text-align: center;
  display: inline-block;
  padding: 0 8px;
  font-size: 12px;
  color: white;
  font-weight: 500;
  line-height: 250%;
  background: var(--text-error);
}

.casedetail .detail_text .basictable .btn-blue {
  border: 0;
  border-radius: 0.25rem;
  margin: 0;
  text-align: center;
  display: inline-block;
  padding: 0 8px;
  font-size: 12px;
  color: white;
  font-weight: 500;
  line-height: 250%;
  background: var(--brand-blue);
}

.casedetail .detail_text .basictable .btn-blue-hover {
  border: 0;
  border-radius: 0.25rem;
  margin: 0;
  text-align: center;
  display: inline-block;
  padding: 0 8px;
  font-size: 12px;
  color: white;
  font-weight: 500;
  line-height: 250%;
  background: var(--brand-blue);
}

.casedetail .detail_text .basictable .btn-blue-hover:hover {
  color: var(--text-primary);
  background: var(--brand-yellow);
}

.casedetail .detail_text .detailtable .btn-blue {
  border: 0;
  margin: 0;
  text-align: center;
  display: inline-block;
  padding: 0 8px;
  font-size: 12px;
  color: white;
  font-weight: 700;
  line-height: 250%;
  background: var(--brand-blue);
}

.casedetail .detail_text .basictable .btn-yel {
  border-radius: 0.25rem;
  border: 0;
  margin: 0;
  text-align: center;
  display: inline-block;
  padding: 0 8px;
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 250%;
  background: var(--brand-yellow);
}

.casedetail .detail_text .detailtable th {
  height: 2.5rem;
  padding-left: 10px;
  padding-right: 10px;
  background-color: var(--bg-button-light);
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.casedetail .detail_text .detailtable td {
  height: 2.5rem;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom: 1px solid var(--border-color);
  font-weight: 500;
}

.casedetail .detail_text .detailtable .appeal {
  font-size: 0.4em;
  line-height: 100%;
  font-weight: normal;
  text-decoration: none;
  margin: auto;
  text-align: center;
  display: inline-block;
  padding: 5px;
  color: white;
  background: var(--text-error);
  border-radius: 0.25rem;
}

.casedetail .detail_text .detailtable .table-primary {
  background-color: #eceff2;
}

.casedetail .detail_text .detailtable .table-warning {
  background-color: #fae9eb;
}

.casedetail .detail_text .detailtable .table-secondary {
  background-color: var(--bg-button-light);
}

.casedetail .detail_text .detailtable td>a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
}

.casedetail .detail_text .detailtable .btn-primary {
  border: 0;
  margin: 0;
  text-align: center;
  display: inline-block;
  padding: 0 8px;
  font-size: 12px;
  color: #fff;
  font-weight: 700;
  line-height: 250%;
  background: var(--brand-dark);
  border-radius: 0.25rem;
}

.casedetail .detail_text .detailtable .btn-danger {
  border: 0;
  border-radius: 0.25rem;
  margin: 0;
  text-align: center;
  display: inline-block;
  padding: 0 8px;
  font-size: 12px;
  color: #fff;
  font-weight: 700;
  line-height: 250%;
  background: var(--text-error);
}

.casedetail .detail_text .detailtable .btn-notice {
  border-radius: 0.25rem;
  border: 0;
  margin: 0;
  text-align: center;
  display: inline-block;
  padding: 0 8px;
  font-size: 12px;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 250%;
  background: var(--brand-yellow);
}

.casedetail .detail_text .detailtable .btn-blue {
  border: 0;
  border-radius: 0.25rem;
  margin: 0;
  text-align: center;
  display: inline-block;
  padding: 0 8px;
  font-size: 12px;
  color: white;
  font-weight: 700;
  line-height: 250%;
  background: var(--brand-blue);
}

.casedetail .detail_text .detailtable .btn-blue-small {
  border: 1px solid var(--brand-blue);
  border-radius: 0.25rem;
  margin-top: 7px;
  margin-bottom: 7px;
  display: inline-block;
  padding: 0 5px;
  font-size: 12px;
  color: var(--brand-blue);
  font-weight: 700;
  line-height: 200%;
}

.casedetail .detail_text .detailtable .btn-blue-small:hover {
  background-color: #55739c;
  color: white;
}

.casedetail .detail_text .detailtable .btn-red-small {
  border: 1px solid #dc143c;
  border-radius: 0.25rem;
  margin-top: 7px;
  margin-bottom: 7px;
  display: inline-block;
  padding: 0 5px;
  font-size: 12px;
  color: #dc143c;
  font-weight: 700;
  line-height: 200%;
}

.casedetail .detail_text .detailtable .btn-red-small:hover {
  background-color: #dc143c;
  color: white;
}

.casedetail .detail_text .basictable .btn-blue-small {
  float: right;
  border: 1px solid var(--brand-blue);
  border-radius: 0.25rem;
  margin-top: 7px;
  margin-bottom: 7px;
  display: inline-block;
  padding: 0 5px;
  font-size: 12px;
  color: var(--brand-blue);
  font-weight: 700;
  line-height: 200%;
}

.casedetail .detail_text .basictable .btn-blue-small:hover {
  background-color: #55739c;
  color: white;
}

.casedetail .detail_text .detailtable .btn-blue:hover {
  background-color: #55739c;
}

.casedetail .detail_text .detailtable .btn-notice:hover {
  background: #cbaa00;
}

.casedetail .detail_text .detailtable .btn-modify {
  border: 0;
  margin: 0;
  text-align: center;
  display: inline-block;
  padding: 0 8px;
  font-size: 12px;
  color: white;
  font-weight: 700;
  line-height: 250%;
  background: var(--brand-blue);
}

.casedetail .detail_text .detailtable tr:hover {
  background-color: var(--border-color);
}

.casedetail .detail_text .detail_text_title {
  width: 100%;
  height: 40px;
}

.casedetail .detail_text .detailtable .casedetail_td>tr>td {
  font-weight: normal;
}

.casedetail .detail_text h2 {
  display: inline-block;
  margin-left: 8px;
  margin-right: 2px;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 22px;
}

.casedetail .detail_text h4 {
  display: inline-block;
  margin: 4px 8px;
  font-size: 16px;
}

.casedetail .detail_text h5 {
  display: block;
  margin: 4px 8px;
  font-size: 14px;
  font-weight: 700;
  margin-left: 20px;
  line-height: 200%;
}

.casedetail .detail_text p {
  margin: 4px 8px;
  margin-left: 20px;
  font-size: 14px;
  line-height: 200%;
}

.casedetail .detail_text h6 {
  margin: 0;
  text-align: center;
  display: inline-block;
  padding: 0 4px;
  font-size: 16px;
  color: #fff;
  font-weight: 700;
  line-height: 250%;
  background: var(--brand-dark);
}

.casedetail .detail_text .detail_text_title>a {
  font-size: 10px;
  font-weight: normal;
  text-decoration: none;
  margin: auto;
  text-align: center;
  padding: 4px 5px;
  color: #fff;
  background: var(--brand-dark);
  border-radius: 0.25rem;
}

.casedetail .detail_text .detail_text_title>a:hover {
  background-color: var(--brand-yellow);
  color: var(--text-primary);
}

.casedetail .detail_text .button {
  text-decoration: none;
  margin-top: 10px;
  font-size: 14px;
  display: inline-block;
  width: 50px;
  height: 25px;
  background: crimson;
  padding: 0;
  text-align: center;
  color: white;
  font-weight: bold;
}

.casedetail .savebutton {
  border-radius: 0.25rem;
  float: right;
  text-decoration: none;
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  width: 100px;
  height: 50px;
  padding: 0;
  text-align: center;
  border: 0;
  background-color: var(--text-muted);
  color: white;
}

.casedetail .savebutton:hover {
  background: var(--brand-yellow);
  color: var(--text-primary);
}

.casedetail .savebutton2 {
  float: right;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  width: 100%;
  height: auto;
  background: var(--brand-yellow);
  padding: auto;
  margin: 0 auto;
  text-align: center;
  color: var(--text-primary);
  border: 0;
  border-radius: 0.25rem;
}

.casedetail .savebutton_cell {
  border-radius: 0.25rem;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  width: 100%;
  height: 80%;
  background: var(--brand-yellow);
  margin: 0 auto;
  text-align: center;
  color: var(--text-primary);
  border: 0;
}

.casedetail button.savebutton_td {
  border-radius: 0.25rem;
  border: 0;
  margin: 0;
  text-align: center;
  display: inline-block;
  padding: 0 8px;
  font-size: 12px;
  color: white;
  font-weight: 700;
  line-height: 250%;
  background: var(--brand-blue);
}

.badge {
  margin: 0;
  text-align: center;
  display: inline-block;
  padding: 4px;
  font-size: 11px;
  color: #fff;
  font-weight: 700;
  line-height: 1;
  border-radius: 0.25em;
}

.badge-danger {
  background: var(--text-error);
}

.badge-primary {
  background: var(--brand-blue);
}

.badge-dark {
  background: #5c5f56;
}

#id_memo_imprison {
  display: inline-block;
  width: 19px;
  height: 19px;
  vertical-align: middle;
  cursor: pointer;
}

#id_memo_book {
  display: inline-block;
  width: 19px;
  height: 19px;
  vertical-align: middle;
  cursor: pointer;
}

.login {
  margin-top: 150px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.login form {
  margin-top: 10px;
}

.login h1 {
  font-size: 15px;
  display: inline-block;
  padding: 0 10px;
  color: #fff;
  font-weight: 700;
  line-height: 250%;
  background: var(--brand-blue);
  letter-spacing: 1px;
}

.login input {
  display: inline-block;
  padding: 6px;
  margin-top: 8px;
  font-size: 15px;
  outline: none;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: solid;
  border-width: thin;
}

.login button {
  margin-top: 15px;
  width: 300px;
  height: 300px;
  border: none;
  background: var(--bg-primary);
  color: #fff;
}

/*공지사항 */
.note {
  margin-top: 150px;
}

.note h1 {
  font-size: 16px;
  display: inline-block;
  padding: 0 10px;
  color: #fff;
  font-weight: 700;
  line-height: 250%;
  background: var(--brand-blue);
  letter-spacing: 1px;
}

.note h2 {
  margin-left: 20px;
  font-size: 16px;
  font-weight: 400;
  line-height: 200%;
  letter-spacing: -1px;
}

/* paginator */

.pagination {
  margin: 0 auto;
  padding-top: 30px;
  text-align: center;
  font-family: "NotoSansKR";
  font-weight: 700;
  color: var(--text-secondary);
}

.pagination a {
  margin: 0 5px;
  text-decoration: none;
  color: var(--text-secondary);
}

.pagination a::after {
  color: var(--text-secondary);
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  background-clip: padding-box;
  border: 1px solid var(--border-input);
  border-radius: 0.25rem;
  -webkit-transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
  transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
}

#login_modal_width {
  width: 40%;
}

#id_username {
  display: inline-block;
  padding: 6px;
  margin-top: 8px;
  font-size: 15px;
  outline: none;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: solid;
  border-width: thin;
  width: 80%;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border-input);
}

#id_password {
  display: inline-block;
  padding: 6px;
  margin-top: 8px;
  font-size: 15px;
  outline: none;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: solid;
  border-width: thin;
  width: 80%;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border-input);
}

#loginbutton {
  padding: 8px;
  margin-top: 8px;
  width: 80%;
}

@media screen and (prefers-reduced-motion: reduce) {
  .form-control {
    -webkit-transition: none;
    transition: none;
  }
}

.form-control::-ms-expand {
  background-color: transparent;
  border: 0;
}

.form-control:focus {
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  border-color: #6f9dca;
  outline: 0;
  -webkit-box-shadow: 0 0 0 0.2rem rgba(50, 93, 136, 0.25);
  box-shadow: 0 0 0 0.2rem rgba(50, 93, 136, 0.25);
}

.form-control::-webkit-input-placeholder {
  color: #8E8C84;
  opacity: 1;
}

.form-control:-ms-input-placeholder {
  color: #8E8C84;
  opacity: 1;
}

.form-control::-ms-input-placeholder {
  color: #8E8C84;
  opacity: 1;
}

.form-control::placeholder {
  color: #8E8C84;
  opacity: 1;
}

.form-control:disabled,
.form-control[readonly] {
  height: calc(2.0625rem + 2px);
  background-color: #F8F5F0;
  opacity: 1;
}

select.form-control:not([size]):not([multiple]) {
  height: calc(2.0625rem + 2px);
}

select.form-control:focus::-ms-value {
  color: var(--text-secondary);
  background-color: var(--bg-primary);
}

.casedetail .stat100 {
  width: 100%;
  content: "";
  clear: both;
  display: block;
}

.casedetail .stat50 {
  width: 50%;
  min-height: 650px;
  float: left;
}

.casedetail .meeting100 {
  width: 100%;
  height: auto;
  content: "";
  clear: both;
  display: inline-block;
}

.casedetail .meeting50 {
  width: 50%;
  float: left;
  margin-bottom: 10px;
  padding-bottom: 10px;
}

.scrolltbody {
  display: block;
  width: 100%;
  border-collapse: collapse;
  border: 0px solid #000;
}

.scrolltbody th {
  border: 0px solid #000;
}

.scrolltbody td {
  border: 0px solid #000;
  border-top: 0;
}

.scrolltbody thead {
  width: 100%;
}

.scrolltbody tbody {
  display: block;
  height: 394px;
  overflow: auto;
}

.scrolltbody th:nth-of-type(1),
.scrolltbody td:nth-of-type(1) {
  width: 20%;
}

.scrolltbody th:nth-of-type(2),
.scrolltbody td:nth-of-type(2) {
  width: 60%;
}

.scrolltbody th:nth-of-type(3),
.scrolltbody td:nth-of-type(3) {
  width: 20%;
}

.scrolltbody th:last-child {
  width: 118px;
}

.scrolltbody td:last-child {
  width: calc(100px - 19px);
}

.detail_text_title .search-container {
  margin-top: 10px;
}

.detail_text_title input {
  margin-left: 20px;
  border: none;
}

.detail_text_title input[type=text] {
  padding: 6px;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
  outline: none;
}

.detail_text_title input[placeholder] {
  border-bottom: solid;
  border-width: thin;
}

.detail_text_title .search-container button {
  padding: 6px 10px;
  margin-top: 8px;
  margin-right: 8px;
  background: var(--bg-primary);
  font-size: 17px;
  border: none;
  cursor: pointer;
}

.detail_text_title .search-container button:hover {
  background: var(--brand-blue);
  color: #fff;
}

#post_count {
  font-size: 12px;
  background: crimson;
  border-radius: 0.8em;
  -moz-border-radius: 0.8em;
  -webkit-border-radius: 0.8em;
  color: #ffffff;
  display: inline-block;
  font-weight: bold;
  line-height: 1.3em;
  text-align: center;
  margin-left: 3px;
}

.sms_bar {
  height: 40px;
  background: var(--bg-button-light);
  border-bottom: 1px solid var(--border-color);
}

.tablink {
  white-space: normal;
  padding: 9.5px 16px;
  float: left;
  width: auto;
  border: none;
  display: block;
  outline: 0;
  font-size: 14px;
  font-weight: 700;
}

.tablink:hover {
  background-color: var(--brand-yellow);
  color: var(--text-primary);
}

.tabblue {
  background-color: var(--brand-blue);
  color: white;
}

.msgcon {
  margin-top: 5px;
}

.casedetail .detail_text .basictable input[type=text] {
  border-radius: 0.25rem;
  padding: 0 0.5rem;
  width: 100%;
  margin-top: 2px;
  margin-bottom: 2px;
  font-size: 14px;
  font-weight: 700;
  outline: none;
  background: var(--bg-primary);
  line-height: 250%;
  border: 1px solid var(--border-input);
}

.casedetail .detail_text .detailtable input[type=text] {
  width: 100%;
  padding: 0 0.5rem;
  margin-top: 2px;
  margin-bottom: 2px;
  font-size: 14px;
  font-weight: 700;
  outline: none;
  border: 1px solid var(--border-input);
  background: var(--bg-primary);
  line-height: 250%;
}

.casedetail .detail_text textarea {
  width: 100%;
  padding: 0.3rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  outline: none;
  background: var(--bg-primary);
  margin-top: 2px;
  margin-bottom: 2px;
}

.checks {
  position: relative;
}

.checks input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  outline: 0;
}

.checks input[type="checkbox"]+label {
  display: inline-block;
  position: relative;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.checks input[type="checkbox"]+label:before {
  content: ' ';
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 18px;
  margin: auto;
  text-align: center;
  vertical-align: middle;
  background: #fafafa;
  border: 1px solid var(--border-button-light);
}

.checks input[type="checkbox"]:checked+label:before {
  content: '\2713';
  color: #314ca2;
  text-shadow: 1px 1px white;
  background: #f1f4ff;
  border-color: #adb8c0;
}

.sms-check-cell.sms-checked {
  background-color: #6d819c;
}

.sms-check-cell.sms-unchecked {
  background-color: #c03546;
}

.dark-mode table td.sms-check-cell.sms-checked,
.dark-mode table tr:hover td.sms-check-cell.sms-checked,
.dark-mode .casedetail .detail_text .detailtable td.sms-check-cell.sms-checked {
  background-color: #6d819c !important;
}

.dark-mode table td.sms-check-cell.sms-unchecked,
.dark-mode table tr:hover td.sms-check-cell.sms-unchecked,
.dark-mode .casedetail .detail_text .detailtable td.sms-check-cell.sms-unchecked {
  background-color: #c03546 !important;
}

.meetModal1 {
  height: 40px;
  display: inline-block;
  width: 75%;
  border: 2px solid var(--border-button-light);
  margin: 10px 0;
  border-radius: 0.25rem;
}

.meetModal1:hover {
  background-color: var(--text-muted);
  color: white;
  border: 2px solid black;
}

.meetModal2 {
  height: 40px;
  display: inline-block;
  width: 25%;
  border: 2px solid var(--border-button-light);
  color: #8b0029;
  margin: 10px 0;
  border-radius: 0.25rem;
}

.meetModal2:hover {
  background-color: #8b0029;
  color: white;
  border: 2px solid black;
}

.tel_rel {
  border: 0;
  border-radius: 0.25rem;
  text-align: center;
  display: inline-block;
  padding: 0 5px;
  font-size: 12px;
  color: white;
  font-weight: 500;
  line-height: 200%;
  background: var(--text-muted);
}

.tel_num {
  height: 39px;
}

.add_icon {
  border: 1px solid var(--brand-blue);
  text-align: center;
  width: 24px;
  border-radius: 0.25rem;
  margin-top: 6px;
  margin-bottom: 6px;
  margin-left: 5px;
  display: inline-block;
  padding: 0 5px;
  font-size: 12px;
  color: var(--brand-blue);
  line-height: 200%;
}

.add_icon:hover {
  color: white;
  background: var(--brand-blue);
}

.add_icon_red {
  border: 1px solid var(--text-error);
  margin-left: 5px;
  text-align: center;
  width: 24px;
  border-radius: 0.25rem;
  margin-top: 6px;
  margin-bottom: 6px;
  display: inline-block;
  padding: 0 5px;
  font-size: 12px;
  color: var(--text-error);
  line-height: 200%;
}

.add_icon_red:hover {
  color: white;
  background: var(--text-error);
}

.add_icon_grey {
  border: 1px solid var(--text-muted);
  margin-left: 5px;
  text-align: center;
  width: 24px;
  border-radius: 0.25rem;
  margin-top: 6px;
  margin-bottom: 6px;
  display: inline-block;
  padding: 0 5px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 200%;
}

.add_icon_grey:hover {
  color: white;
  background: var(--text-muted);
}

.badge1 {
  border: 0;
  border-radius: 0.25rem;
  margin-top: 7.5px;
  margin-bottom: 7.5px;
  display: inline-block;
  padding: 0 5px;
  font-size: 12px;
  color: white;
  font-weight: 500;
  line-height: 200%;
  background: var(--brand-blue);
}

.badge2 {
  border: 0;
  border-radius: 0.25rem;
  margin-top: 7.5px;
  margin-bottom: 7.5px;
  display: inline-block;
  padding: 0 5px;
  font-size: 12px;
  color: white;
  font-weight: 500;
  line-height: 200%;
  background: var(--text-error);
}

.badge3 {
  border: 0;
  border-radius: 0.25rem;
  margin-top: 7.5px;
  margin-bottom: 7.5px;
  display: inline-block;
  padding: 0 5px;
  font-size: 12px;
  color: white;
  font-weight: 500;
  line-height: 200%;
  background: var(--text-muted);
}

.casedetail .divide {
  width: 100%;
  height: auto;
  display: inline-block;
  content: "";
  clear: both;
}

.casedetail .divide1 {
  width: 50%;
  float: left;
}

.casedetail .divide2 {
  width: 50%;
  float: left;
}


/* ==========================================================================
   SECTION 3: private.css (Scoped under .textbook-body for textbook base)
   ========================================================================== */


body.textbook-body img,
body.textbook-body legend {
  border: 0
}

body.textbook-body legend,
body.textbook-body td,
body.textbook-body th {
  padding: 0
}

html {
  font-family: sans-serif;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%
}

body.textbook-body {
  margin: 0
}

body.textbook-body aside,
body.textbook-body details,
body.textbook-body figcaption,
body.textbook-body figure,
body.textbook-body footer,
body.textbook-body header,
body.textbook-body hgroup,
body.textbook-body icle,
body.textbook-body main,
body.textbook-body menu,
body.textbook-body nav,
body.textbook-body section,
body.textbook-body summary {
  display: block
}

body.textbook-body audio,
body.textbook-body canvas,
body.textbook-body progress,
body.textbook-body video {
  display: inline-block;
  vertical-align: baseline
}

body.textbook-body audio:not([controls]) {
  display: none;
  height: 0
}

body.textbook-body [hidden],
body.textbook-body template {
  display: none
}

body.textbook-body a {
  background-color: transparent
}

body.textbook-body a:active,
body.textbook-body a:hover {
  outline: 0
}

body.textbook-body abbr[title] {
  border-bottom: 1px dotted
}

body.textbook-body b,
body.textbook-body optgroup,
body.textbook-body strong {
  font-weight: 700
}

body.textbook-body dfn {
  font-style: italic
}

body.textbook-body h1 {
  font-size: 2em;
  margin: .67em 0
}

body.textbook-body mark {
  background: #ff0;
  color: var(--text-primary)
}

body.textbook-body small {
  font-size: 80%
}

body.textbook-body sub,
body.textbook-body sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline
}

body.textbook-body sup {
  top: -.5em
}

body.textbook-body sub {
  bottom: -.25em
}

body.textbook-body svg:not(:root) {
  overflow: hidden
}

body.textbook-body figure {
  margin: 1em 40px
}

body.textbook-body hr {
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  height: 0
}

body.textbook-body pre,
body.textbook-body textarea {
  overflow: auto
}

body.textbook-body code,
body.textbook-body kbd,
body.textbook-body pre,
body.textbook-body samp {
  font-family: monospace, monospace;
  font-size: 1em
}

body.textbook-body button,
body.textbook-body input,
body.textbook-body optgroup,
body.textbook-body select,
body.textbook-body textarea {
  color: inherit;
  font: inherit;
  margin: 0
}

body.textbook-body button {
  overflow: visible
}

body.textbook-body button,
body.textbook-body select {
  text-transform: none
}

body.textbook-body button,
html .textbook-body input[type=button],
body.textbook-body input[type=reset],
body.textbook-body input[type=submit] {
  -webkit-appearance: button;
  cursor: pointer
}

body.textbook-body button[disabled],
html .textbook-body input[disabled] {
  cursor: default
}

body.textbook-body button::-moz-focus-inner,
body.textbook-body input::-moz-focus-inner {
  border: 0;
  padding: 0
}

body.textbook-body input {
  line-height: normal
}

body.textbook-body input[type=checkbox],
body.textbook-body input[type=radio] {
  box-sizing: border-box;
  padding: 0
}

body.textbook-body input[type=number]::-webkit-inner-spin-button,
body.textbook-body input[type=number]::-webkit-outer-spin-button {
  height: auto
}

body.textbook-body input[type=search] {
  -webkit-appearance: textfield;
  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box;
  box-sizing: content-box
}

body.textbook-body input[type=search]::-webkit-search-cancel-button,
body.textbook-body input[type=search]::-webkit-search-decoration {
  -webkit-appearance: none
}

body.textbook-body fieldset {
  border: 1px solid silver;
  margin: 0 2px;
  padding: .35em .625em .75em
}

body.textbook-body table {
  border-collapse: collapse;
  border-spacing: 0
}

body.textbook-body

/* ipad, body.textbook-body mac 등 Safari를 위한 초기화 css */
input {
  -webkit-border-radius: 0;
  appearance: none;
}

body.textbook-body select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  height: 0;
}

body.textbook-body select::-ms-expand {
  display: none;
}

body.textbook-body * {
  box-sizing: border-box;
}

body.textbook-body ::-moz-selection {
  background: #e0d6c6;
  color: var(--text-primary);
}

body.textbook-body ::selection {
  background: #e0d6c6;
  color: var(--text-primary);
}

html,
body.textbook-body {
  font-family: "Noto Sans KR";
  line-height: 1.5;
}

body.textbook-body h1,
body.textbook-body h2,
body.textbook-body h3,
body.textbook-body h4,
body.textbook-body h5,
body.textbook-body h6,
body.textbook-body a,
body.textbook-body button,
body.textbook-body span {
  font-family: "Noto Sans KR";
}

body.textbook-body main {
  flex: 1;
  display: flex;
  flex-direction: row;
}

body.textbook-body #container {
  margin: 0 auto;
  margin-top: 155px;
  margin-bottom: 100px;
  display: flex;
  position: relative;
  height: calc(100% - 255px);
  width: 1100px;
  z-index: 1;
}

body.textbook-body #header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 1100px;
  max-width: 1100px;
  height: 145px;
  z-index: 99;
  padding-left: 0;
  padding-right: 0;
}

body.textbook-body #aside {
  width: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  display: block;
  font-size: 14px;
  padding-left: 10px;
  padding-right: 5px;
  letter-spacing: -1px;
}

body.textbook-body #article {
  flex: 1;
  width: 880px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 5px 0;
}

body.textbook-body #footer {
  z-index: 98;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 1100px;
  height: 100px;
  padding-left: 0;
  padding-right: 0;
}


body.textbook-body #login_modal_width {
  width: 40%;
}

body.textbook-body #id_username {
  font-weight: 700;
  display: inline-block;
  padding: 6px;
  margin-top: 8px;
  font-size: 16px;
  outline: none;
  border: none;
  width: 80%;
  padding: 0.375rem 0.75rem;
  border-bottom: 1px solid var(--border-input);
}

body.textbook-body #id_password {
  font-weight: 700;
  display: inline-block;
  padding: 6px;
  margin-top: 8px;
  font-size: 16px;
  outline: none;
  border: none;
  width: 80%;
  padding: 0.375rem 0.75rem;
  border-bottom: 1px solid var(--border-input);
}

body.textbook-body #loginbutton {
  padding: 8px;
  margin-top: 8px;
  width: 80%;
}

body.textbook-body ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  border: 3px solid #fff;
}

body.textbook-body ::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  -webkit-border-radius: 10px;
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 4px rgba(0, 0, 0, .2)
}

body.textbook-body ::-webkit-scrollbar-thumb {
  height: 50px;
  width: 50px;
  background: var(--scrollbar-thumb);
  -webkit-border-radius: 8px;
  border-radius: 8px;
  -webkit-box-shadow: inset 0 0 4px rgba(0, 0, 0, .1)
}

body.textbook-body .nav {
  font-family: "NotoSansKR";
  margin-top: 12px;
  left: 0;
  right: 0;
  z-index: 1;
  width: 1100px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  background-color: var(--bg-primary);
}

body.textbook-body .topnav {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  background-color: var(--bg-primary);
  border-bottom: solid;
  border-color: var(--brand-blue);
  border-width: 3px;
}

body.textbook-body .icon_login {
  margin-top: 10px;
  float: left;
  width: 50%;
  font-weight: 800;
}

body.textbook-body .icon_login h1 {
  display: inline-block;
  margin: 0;
  font-size: 20px;
  margin-left: 18px;
}

body.textbook-body .icon_login h2 {
  display: block;
  text-align: left;
  color: var(--text-primary);
  margin: 0;
  padding-top: 0px;
  text-decoration: none;
  font-size: 32px;
  margin-left: 16px;
  margin-bottom: 10px;
}

body.textbook-body .icon {
  float: left;
  width: 50%;
  font-weight: 800;
  color: var(--text-primary);
}

body.textbook-body .icon h1 {
  display: inline-block;
  margin: 0;
  font-size: 15px;
  margin-left: 18px;
  line-height: 100%;
  margin-top: 12px;
}

body.textbook-body .icon h2 {
  display: block;
  text-align: left;
  color: var(--text-primary);
  margin: 0;
  padding-top: 0px;
  text-decoration: none;
  font-size: 24px;
  margin-left: 16px;
  line-height: 190%;
}

body.textbook-body .topnav a {
  text-decoration: none;
  color: var(--text-primary);
}

body.textbook-body .topnav a.active {
  background-color: #2196F3;
  color: white;
}

body.textbook-body .topnav .search-container {
  float: right;
  margin-top: 15px;
}

body.textbook-body .topnav input {
  border: none;
}

body.textbook-body .topnav input[type=text] {
  padding: 6px;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
  outline: none;
}

body.textbook-body .topnav input[placeholder] {
  border-bottom: solid;
  border-width: thin;
}

body.textbook-body .topnav .search-container button {
  float: right;
  padding: 6px 10px;
  margin-top: 8px;
  margin-right: 8px;
  background: var(--bg-primary);
  font-size: 17px;
  border: none;
  cursor: pointer;
}

body.textbook-body .navbar {
  width: 100%;
  margin: auto;
  overflow: hidden;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  font-family: Arial;
  padding-left: 4px;
  padding-right: 4px;
  font-weight: 800;
}

body.textbook-body .navbar a {
  float: left;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  padding: 14px 8px;
  text-decoration: none;
}

body.textbook-body .navbar i {
  width: 14px;
  height: 14px;
}

body.textbook-body .navbar .logout {
  float: right;
}

body.textbook-body .dropdown {
  float: left;
  overflow: hidden;
}

body.textbook-body .dropdown .dropbtn {
  letter-spacing: 1px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 0.25rem;
  outline: none;
  color: var(--text-primary);
  padding: 14px 8px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
}

body.textbook-body .navbar a:hover,
body.textbook-body .dropdown:hover .dropbtn {
  background-color: var(--brand-yellow);
  color: var(--text-primary);
}

body.textbook-body #drop_active {
  border-radius: 0.25rem;
  background-color: var(--brand-dark);
  color: white;
}

body.textbook-body #SettingButton {
  border-radius: 0.25rem;
  float: right;
  text-decoration: none;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  width: 200px;
  height: 50px;
  line-height: 50px;
  background: var(--brand-yellow);
  padding: 0;
  text-align: center;
  color: var(--text-primary);
  border: 0;
}

body.textbook-body

/* Dropdown content (hidden by default) */
.dropdown-content {
  font-size: 14px;
  display: none;
  position: absolute;
  background-color: var(--bg-secondary);
  min-width: 120px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 0.25rem;
}

body.textbook-body

/* Links inside the dropdown */
.dropdown-content a {
  font-size: 14px;
  float: none;
  color: var(--text-primary);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
  border-radius: 0.25rem;
}

body.textbook-body .dropdown-content i {
  width: 16px;
  height: auto;
}

body.textbook-body

/* Add a grey background color to dropdown links on hover */
.dropdown-content a:hover {
  background-color: var(--border-color);
}

body.textbook-body

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

body.textbook-body .foot {
  box-sizing: border-box;
  margin: 0 auto;
  margin-top: 1.5vh;
  z-index: 2;
  width: 100%;
  height: 80px;
  border-top: solid;
  border-color: var(--brand-blue);
  text-align: left;
  font-size: 14px;
  font-weight: 400;
  line-height: 180%;
  padding-top: 10px;
}

body.textbook-body .foot>span {
  font-size: 12px;
}

body.textbook-body #show_loading {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 100;
  width: 100%;
  height: 100%;
  margin: -75px 0 0 -75px;
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 16px solid var(--text-muted);
  width: 120px;
  height: 120px;
  background-color: var(--bg-primary);
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

body.textbook-body #gotoTop {
  position: fixed;
  font-size: 30px;
  bottom: 30px;
  right: 40px;
  color: var(--text-primary);
  z-index: 999;
}

body.textbook-body #aside a {
  text-decoration: none;
  color: var(--text-primary);
}

body.textbook-body #aside span.h1 {
  font-weight: 700;
  font-size: 14px;
}

body.textbook-body #aside span.h2 {
  padding-left: 5px;
  font-weight: 700;
  font-size: 14px;
}

body.textbook-body #aside span.h3 {
  padding-left: 10px;
  font-weight: 400;
  font-size: 14px;
}

body.textbook-body #aside span.h4 {
  padding-left: 15px;
  font-weight: 400;
  font-size: 14px;
}

body.textbook-body #aside span.h5 {
  padding-left: 20px;
  font-weight: 400;
  font-size: 14px;
}

body.textbook-body #aside span.h6 {
  padding-left: 24px;
  font-weight: 400;
  font-size: 14px;
}

body.textbook-body .article_title {
  font-family: "NotoSansKR";
  padding: 5px 10px;
  font-size: 18px;
  font-weight: 700;
}

body.textbook-body .article_cont {
  font-family: "NotoSansKR";
  font-size: 14px;
  padding: 5px 10px;
  line-height: 220%;
  text-align: justify;
  letter-spacing: -0.6px;
  word-break: keep-all;
  word-spacing: 2px;
  text-indent: 20px;
}

body.textbook-body .article_cont>p {
  font-weight: 700;
}

body.textbook-body .article_cont span {
  font-size: 12px;
  color: var(--bg-button-gray);
  margin: 0;
}

body.textbook-body .article_cont span>p {
  margin: 0;
}

body.textbook-body p.subPid {
  color: var(--text-muted);
  font-weight: 700;
}

body.textbook-body .article_cont table {
  text-indent: 0;
  font-size: inherit;
}

body.textbook-body .article_title span.h1 {
  font-weight: 700;
  font-size: 22px;
}

body.textbook-body .article_title span.h2 {
  margin-left: 15px;
  font-weight: 700;
  font-size: 20px;
}

body.textbook-body .article_title span.h3 {
  margin-left: 30px;
  font-weight: 700;
  font-size: 18px;
}

body.textbook-body .article_title span.h4 {
  margin-left: 45px;
  font-weight: 700;
  font-size: 18px;
}

body.textbook-body .article_title span.h5 {
  margin-left: 60px;
  font-weight: 700;
  font-size: 16px;
}

body.textbook-body .article_title span.h6 {
  margin-left: 75px;
  font-weight: 700;
  font-size: 16px;
}

body.textbook-body .text_title {
  margin-top: 5px;
  width: 98%;
  margin: 0 auto;
}

body.textbook-body .text_title h2 {
  display: inline-block;
  margin: 2px 8px;
  font-size: 22px;
}

body.textbook-body .text_title_line {
  height: 3px;
  background-color: var(--text-muted);
  margin-bottom: 5px;
  margin-top: 0px;
}

body.textbook-body .text_body {
  height: auto;
}

body.textbook-body .text_body table {
  width: 98%;
  margin: 0 auto;
  font-size: 14px;
  line-height: 200%;
}

body.textbook-body .text_body table th {
  padding: 2px;
  padding-right: 10px;
  background-color: var(--bg-secondary);
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

body.textbook-body .text_body table td {
  padding: 5px 0;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

body.textbook-body .text_body table td>a {
  text-decoration: none;
  font-weight: 700;
  color: var(--bg-button-gray);
}

body.textbook-body .text_body table input[type=text] {
  width: 98%;
  padding: 0;
  font-weight: 700;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid var(--border-color);
}

body.textbook-body .pagination {
  font-size: 14px;
  margin: 0 auto;
  padding-top: 30px;
  padding-bottom: 20px;
  text-align: center;
  font-family: "NotoSansKR";
  font-weight: 700;
  color: var(--bg-button-gray);
}

body.textbook-body .pagination a {
  margin: 0 5px;
  text-decoration: none;
  color: var(--bg-button-gray);
}

body.textbook-body .pagination a::after {
  color: var(--bg-button-gray);
}

body.textbook-body a.searchTitle {
  font-size: 18px;
  display: inline-block;
  padding-left: 20px;
  margin: 14px 0;
  color: var(--text-muted) !important;
}

body.textbook-body mark {
  background: var(--brand-yellow);
  color: var(--text-primary);
}

body.textbook-body #post_count {
  font-size: 12px;
  background: crimson;
  border-radius: 0.8em;
  -moz-border-radius: 0.8em;
  -webkit-border-radius: 0.8em;
  color: #ffffff;
  display: inline-block;
  font-weight: bold;
  line-height: 1.3em;
  text-align: center;
  margin-left: 3px;
}

body.textbook-body .blinking {
  -webkit-animation: blink 0.5s ease-in-out infinite alternate;
  -moz-animation: blink 0.5s ease-in-out infinite alternate;
  animation: blink 0.5s ease-in-out infinite alternate;
}

@-webkit-keyframes blink {
  0% {
    background-color: var(--bg-primary);
    ;
  }

  100% {
    background-color: var(--brand-yellow);
  }
}

@-moz-keyframes blink {
  0% {
    background-color: var(--bg-primary);
    ;
  }

  100% {
    background-color: var(--brand-yellow);
  }
}

@keyframes blink {
  0% {
    background-color: var(--bg-primary);
    ;
  }

  100% {
    background-color: var(--brand-yellow);
  }
}


/* ==========================================================================
   SECTION 5: COMPREHENSIVE DARK MODE OVERRIDES
   ========================================================================== */

/* ---- Global body & container ---- */
.dark-mode,
.dark-mode body {
  background-color: #121214 !important;
  color: #c2c2c2 !important;
}

.dark-mode .container {
  background-color: #121214 !important;
  color: #c2c2c2 !important;
}

/* ---- Nav, Topnav, Navbar ---- */
.dark-mode .nav {
  background-color: #121214 !important;
}

.dark-mode .topnav {
  background-color: #121214 !important;
  border-color: #3a3f4b !important;
}

.dark-mode .navbar {
  background-color: #121214 !important;
  color: #c2c2c2 !important;
}

.dark-mode .navbar a {
  color: #d0d4da !important;
}

.dark-mode .navbar a:hover,
.dark-mode .dropdown:hover .dropbtn {
  background-color: #ffd43b !important;
  color: #121214 !important;
}

.dark-mode .icon h1,
.dark-mode .icon h2,
.dark-mode .icon h2 a,
.dark-mode .icon_login h1,
.dark-mode .icon_login h2,
.dark-mode .icon_login h2 a {
  color: #c2c2c2 !important;
}

.dark-mode .topnav a {
  color: #d0d4da !important;
}

.dark-mode .topnav input[type=text] {
  background-color: #121214 !important;
  color: #c2c2c2 !important;
  border-color: #3a3f4b !important;
}

.dark-mode .topnav .search-container button {
  background: #121214 !important;
  color: #d0d4da !important;
}

.dark-mode .dropdown .dropbtn {
  color: #d0d4da !important;
}

.dark-mode #drop_active {
  background-color: #ffd43b !important;
  color: #121214 !important;
}

.dark-mode .dropdown-content {
  background-color: #1e1e24 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
}

.dark-mode .dropdown-content a {
  color: #d0d4da !important;
}

.dark-mode .dropdown-content a:hover {
  background-color: #2d3238 !important;
  color: #ffd43b !important;
}

/* ---- Footer ---- */
.dark-mode footer,
.dark-mode .foot {
  background-color: #121214 !important;
  color: #adb5bd !important;
  border-color: #3a3f4b !important;
}

.dark-mode .foot b,
.dark-mode .foot span {
  color: #adb5bd !important;
}

/* ---- Scrollbar ---- */
.dark-mode ::-webkit-scrollbar {
  border-color: #1e1e24 !important;
}

.dark-mode ::-webkit-scrollbar-track {
  background: #1e1e24 !important;
}

.dark-mode ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15) !important;
}

/* ---- General Links & Text ---- */
.dark-mode a {
  color: #d0d4da;
}

.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode h4,
.dark-mode h5,
.dark-mode h6 {
  color: #c2c2c2 !important;
}

.dark-mode b,
.dark-mode strong {
  color: #c2c2c2;
}

.dark-mode mark {
  background-color: #ffd43b !important;
  color: #121214 !important;
}

.dark-mode ::selection {
  background: #ffd43b !important;
  color: #121214 !important;
}

/* ---- Tables (general) ---- */
.dark-mode table {
  color: #c2c2c2 !important;
}

.dark-mode table th {
  background-color: #1e1e24 !important;
  color: #c2c2c2 !important;
  border-color: #3a3f4b !important;
}

.dark-mode table td {
  background-color: #121214 !important;
  color: #c2c2c2 !important;
  border-color: #3a3f4b !important;
}

.dark-mode table tr:hover td {
  background-color: #1e1e24 !important;
}

/* 사건 진행내역: inline color를 다크모드에서도 유지 */
.dark-mode .casedetail .detailtable tr[style] td,
.dark-mode .casedetail .detail_text .detailtable tr[style] td {
  color: inherit !important;
}

.dark-mode table a {
  color: #d0d4da !important;
}

/* ---- Modal ---- */
.dark-mode .modal-content {
  color: #c2c2c2 !important;
}

.dark-mode .modal-header {
  background-color: #25252d !important;
  border-color: #3a3f4b !important;
}

.dark-mode .modal-title {
  color: #c2c2c2 !important;
}

.dark-mode .modal-body {
  color: #c2c2c2 !important;
}

.dark-mode .modal-footer {
  border-color: #3a3f4b !important;
}

.dark-mode .modal-backdrop {
  background-color: #000 !important;
}

.dark-mode .modal-backdrop.show {
  opacity: 0.8 !important;
}

.dark-mode .close {
  color: #adb5bd !important;
}

.dark-mode .close:hover {
  color: #ffd43b !important;
}

/* ---- Buttons (fullbutton, a_button, general) ---- */
.dark-mode .fullbutton {
  background-color: #2d3238 !important;
  color: #c2c2c2 !important;
  border-color: #3a3f4b !important;
}

.dark-mode .fullbutton:hover {
  background-color: #ffd43b !important;
  color: #121214 !important;
  border-color: #ffd43b !important;
}

.dark-mode #SettingButton {
  background: #ffd43b !important;
  color: #121214 !important;
}

.dark-mode button,
.dark-mode input[type=submit],
.dark-mode input[type=button] {
  color: #c2c2c2;
}

/* ---- Forms & Inputs ---- */
.dark-mode input[type=text],
.dark-mode input[type=password],
.dark-mode input[type=number],
.dark-mode input[type=date],
.dark-mode input[type=email],
.dark-mode textarea,
.dark-mode select {
  background-color: #1e1e24 !important;
  color: #c2c2c2 !important;
  border-color: #3a3f4b !important;
}

.dark-mode input::placeholder,
.dark-mode textarea::placeholder {
  color: #6c757d !important;
}

.dark-mode #id_username,
.dark-mode #id_password {
  background-color: #1e1e24 !important;
  color: #c2c2c2 !important;
  border-color: #3a3f4b !important;
}

/* ---- Firstpage / Guide ---- */
.dark-mode .firstpage a {
  background: #526682 !important;
  color: #c2c2c2 !important;
}

.dark-mode .guide .maintext {
  color: #d0d4da !important;
}

.dark-mode .guide .maintext p {
  color: #d0d4da !important;
}

.dark-mode article .firstpage .guide>h2 {
  background: #25252d !important;
  color: #c2c2c2 !important;
}

/* ---- Case Detail ---- */
.dark-mode .casedetail {
  color: #c2c2c2 !important;
}

.dark-mode .casedetail .detail_title {
  background-color: #1e1e24 !important;
  color: #c2c2c2 !important;
}

.dark-mode .casedetail .detail_title h1,
.dark-mode .casedetail .detail_title h2 {
  color: #c2c2c2 !important;
}

.dark-mode .casedetail .detail_text .detail_title>a.back {
  background: #2d3238 !important;
  color: #c2c2c2 !important;
}

.dark-mode .casedetail .detail_text .detail_title>h3 {
  background: #526682 !important;
  color: #c2c2c2 !important;
}

.dark-mode .casedetail .detail_text .detailtable th {
  background-color: #1e1e24 !important;
  color: #c2c2c2 !important;
  border-color: #3a3f4b !important;
}

.dark-mode .casedetail .detail_text .detailtable td {
  color: #c2c2c2 !important;
  border-color: #3a3f4b !important;
}

.dark-mode .casedetail .detail_text .detailtable a {
  color: #d0d4da !important;
}

.dark-mode .casedetail .detail_text .detailtable .btn-notice {
  color: #121214 !important;
}

/* ---- Detail buttons (blue, red, etc.) ---- */
.dark-mode .btn-blue-small {
  border-color: #526682 !important;
  color: #74a0d4 !important;
}

.dark-mode .btn-blue-small:hover {
  background-color: #526682 !important;
  color: #c2c2c2 !important;
}

.dark-mode .btn-red-small {
  border-color: #ff6b6b !important;
  color: #ff6b6b !important;
}

.dark-mode .btn-red-small:hover {
  background-color: #ff6b6b !important;
  color: #121214 !important;
}

.dark-mode .btn-blue {
  background-color: #526682 !important;
  color: #c2c2c2 !important;
}

.dark-mode .btn-blue:hover {
  background-color: #6a82a0 !important;
}

.dark-mode .btn-notice {
  color: #c2c2c2 !important;
}

.dark-mode .btn-notice:hover {
  background: #d4a800 !important;
}

.dark-mode .btn-modify {
  color: #c2c2c2 !important;
}

/* ---- Tooltips & Popper ---- */
.dark-mode .popper,
.dark-mode .tooltip {
  background: #ffd43b !important;
  color: #121214 !important;
}

/* ---- Modallink ---- */
.dark-mode .modallink>a {
  background: #2d3238 !important;
  color: #c2c2c2 !important;
}

.dark-mode .modallink>a:hover {
  background-color: #ffd43b !important;
  color: #121214 !important;
}

/* ---- Calendar page ---- */
.dark-mode .calendar {
  background-color: #121214 !important;
}

/* ---- Pagination ---- */
.dark-mode .pagination {
  color: #d0d4da !important;
}

.dark-mode .pagination a {
  color: #d0d4da !important;
}

.dark-mode .pagination a:hover {
  color: #ffd43b !important;
}

/* ---- Notification / Post-it Badge ---- */
.dark-mode #post_count {
  background: #ff6b6b !important;
  color: #fff !important;
}

/* ---- Catch-all: any remaining white/light backgrounds ---- */
.dark-mode .detail_text {
  color: #c2c2c2 !important;
}

.dark-mode .basictable th {
  background-color: #1e1e24 !important;
  color: #c2c2c2 !important;
  border-color: #3a3f4b !important;
}

.dark-mode .basictable td {
  background-color: #121214 !important;
  color: #c2c2c2 !important;
  border-color: #3a3f4b !important;
}

.dark-mode .basictable a {
  color: #d0d4da !important;
}

/* ---- Textbook (body.textbook-body) dark mode ---- */
.dark-mode.textbook-body,
.dark-mode .textbook-body {
  background-color: #121214 !important;
  color: #c2c2c2 !important;
}

.dark-mode.textbook-body #container,
.dark-mode.textbook-body #header,
.dark-mode.textbook-body #footer {
  background-color: #121214 !important;
}

.dark-mode.textbook-body #article {
  background-color: #121214 !important;
  color: #c2c2c2 !important;
}

.dark-mode.textbook-body #aside {
  color: #d0d4da !important;
}

.dark-mode.textbook-body #aside a {
  color: #d0d4da !important;
}

.dark-mode.textbook-body .article_title {
  color: #c2c2c2 !important;
}

.dark-mode.textbook-body .article_cont {
  color: #d0d4da !important;
}

.dark-mode.textbook-body .text_title_line {
  background-color: #3a3f4b !important;
}

.dark-mode.textbook-body .text_body table th {
  background-color: #1e1e24 !important;
  color: #c2c2c2 !important;
  border-color: #3a3f4b !important;
}

.dark-mode.textbook-body .text_body table td {
  border-color: #3a3f4b !important;
  color: #d0d4da !important;
}

.dark-mode.textbook-body .foot {
  background-color: #121214 !important;
  border-color: #3a3f4b !important;
  color: #adb5bd !important;
}

/* ---- Flatpickr Dark Mode Overrides ---- */
.dark-mode .flatpickr-calendar {
  background: #1e1e24 !important;
  border-color: #3a3f4b !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
  color: #c2c2c2 !important;
}

.dark-mode .flatpickr-day {
  color: #c2c2c2 !important;
}

.dark-mode .flatpickr-day.nextMonthDay,
.dark-mode .flatpickr-day.prevMonthDay {
  color: #6c757d !important;
}

.dark-mode .flatpickr-day:hover,
.dark-mode .flatpickr-day.today:hover {
  background: #25252d !important;
}

.dark-mode .flatpickr-day.selected {
  background: #ffd43b !important;
  border-color: #ffd43b !important;
  color: #121214 !important;
}

.dark-mode .flatpickr-day.today {
  border-color: #ffd43b !important;
}

.dark-mode .flatpickr-months .flatpickr-month,
.dark-mode .flatpickr-weekdays {
  background: #1e1e24 !important;
  color: #c2c2c2 !important;
}

.dark-mode .flatpickr-current-month .flatpickr-monthDropdown-months,
.dark-mode .numInputWrapper span,
.dark-mode .flatpickr-current-month input.cur-year {
  color: #c2c2c2 !important;
  background: transparent !important;
}

.dark-mode .flatpickr-weekday {
  color: #adb5bd !important;
}

.dark-mode .flatpickr-time {
  border-top: 1px solid #3a3f4b !important;
}

.dark-mode .flatpickr-time input {
  color: #c2c2c2 !important;
}

.dark-mode .flatpickr-time .flatpickr-time-separator,
.dark-mode .flatpickr-time .flatpickr-am-pm {
  color: #c2c2c2 !important;
}

.dark-mode span.flatpickr-prev-month,
.dark-mode span.flatpickr-next-month {
  color: #c2c2c2 !important;
  fill: #c2c2c2 !important;
}

.dark-mode span.flatpickr-prev-month svg,
.dark-mode span.flatpickr-next-month svg {
  fill: #c2c2c2 !important;
}

.dark-mode span.flatpickr-prev-month:hover svg,
.dark-mode span.flatpickr-next-month:hover svg {
  fill: #ffd43b !important;
}



/* ---- Misc universal remaining overrides ---- */
.dark-mode .loading,
.dark-mode #show_loading {
  border-color: #3a3f4b !important;
  border-top-color: #ffd43b !important;
  background-color: #1e1e24 !important;
}

.dark-mode .blinking {
  animation: blink-dark 0.5s ease-in-out infinite alternate !important;
}

@keyframes blink-dark {
  0% {
    background-color: #121214;
  }

  100% {
    background-color: #ffd43b;
  }
}

.dark-mode .form-control {
  background-color: #1e1e24 !important;
  color: #c2c2c2 !important;
  border-color: #3a3f4b !important;
}

/* ---- Dark Mode Toggle Switch styling ---- */
.dark-mode-toggle {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
  vertical-align: middle;
}

.dark-mode-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.dark-mode-toggle .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ced4da;
  transition: .3s;
  border-radius: 20px;
  border: 1px solid #ddd;
}

.dark-mode-toggle .slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.dark-mode-toggle input:checked+.slider {
  background-color: #ffd43b;
  border-color: #ffd43b;
}

.dark-mode-toggle input:checked+.slider:before {
  transform: translateX(18px);
  background-color: #121214;
}

/* ==========================================================================
   FullCalendar Overrides (토요일/일요일 색상 및 마우스 호버 방지)
   ========================================================================== */

/* 1. 기본 구조 투명도 설정 (배경색이 투과되어 보이도록 설정) */
.fc-content-skeleton td,
.fc-mirror-skeleton td,
.fc-highlight-skeleton td {
  background-color: transparent !important;
}

.dark-mode .fc-content-skeleton td,
.dark-mode .fc-mirror-skeleton td,
.dark-mode .fc-highlight-skeleton td {
  background-color: transparent !important;
}

.dark-mode .fc-bg td {
  background-color: transparent !important;
}

/* 2. 라이트 모드 (일요일: 옅은 붉은색 / 토요일: 옅은 푸른색) */
.fc-sun,
th.fc-day-header.fc-sun,
td.fc-day-top.fc-sun,
td.fc-day.fc-sun {
  color: #d9534f !important;
  background-color: #ffebeb !important;
}

.fc-sat,
th.fc-day-header.fc-sat,
td.fc-day-top.fc-sat,
td.fc-day.fc-sat {
  color: #325d88 !important;
  background-color: #e8f0fe !important;
}

/* 오늘(Today) 라이트 모드 배경색 - 주말이어도 오늘 표시 우선 */
.fc-unthemed td.fc-today,
.fc-today,
th.fc-day-header.fc-today,
td.fc-day-top.fc-today,
td.fc-day.fc-today,
.fc-bg td.fc-today,
td.fc-day.fc-today.fc-sun,
td.fc-day-top.fc-today.fc-sun,
td.fc-day.fc-today.fc-sat,
td.fc-day-top.fc-today.fc-sat {
  background-color: var(--highlight-bg) !important;
}

/* 3. 다크 모드 (일요일: 짙은 붉은색 / 토요일: 짙은 푸른색) */
.dark-mode .fc-sun,
.dark-mode th.fc-day-header.fc-sun,
.dark-mode td.fc-day-top.fc-sun,
.dark-mode td.fc-day.fc-sun,
.dark-mode .fc-bg td.fc-sun {
  color: #ff6b6b !important;
  background-color: #2a1a1a !important;
}

.dark-mode .fc-sat,
.dark-mode th.fc-day-header.fc-sat,
.dark-mode td.fc-day-top.fc-sat,
.dark-mode td.fc-day.fc-sat,
.dark-mode .fc-bg td.fc-sat {
  color: #74c0fc !important;
  background-color: #132030 !important;
}

/* 오늘(Today) 다크 모드 배경색 및 색상 유지 - 주말이어도 오늘 표시 우선 */
.dark-mode .fc-unthemed td.fc-today,
.dark-mode .fc-today,
.dark-mode th.fc-day-header.fc-today,
.dark-mode td.fc-day-top.fc-today,
.dark-mode td.fc-day.fc-today,
.dark-mode .fc-bg td.fc-today,
.dark-mode td.fc-day.fc-today.fc-sun,
.dark-mode td.fc-day-top.fc-today.fc-sun,
.dark-mode td.fc-day.fc-today.fc-sat,
.dark-mode td.fc-day-top.fc-today.fc-sat {
  background-color: #2a2820 !important;
  color: #ffd43b !important;
}

/* 4. 마우스 호버 시 어떠한 색상 변화도 방지 */
/* 호버 시 평일/일반 셀은 투명 유지 */
.fc table tr:hover td {
  background-color: transparent !important;
}

.dark-mode .fc table tr:hover td {
  background-color: transparent !important;
}

/* 호버 시 일요일/토요일/오늘 색상 고정 */
.fc table tr:hover td.fc-sun,
.fc table tr:hover th.fc-sun,
.fc td.fc-sun:hover,
.fc th.fc-sun:hover {
  background-color: #ffebeb !important;
}

.fc table tr:hover td.fc-sat,
.fc table tr:hover th.fc-sat,
.fc td.fc-sat:hover,
.fc th.fc-sat:hover {
  background-color: #e8f0fe !important;
}

.fc table tr:hover td.fc-today,
.fc table tr:hover th.fc-today,
.fc td.fc-today:hover,
.fc th.fc-today:hover,
.fc table tr:hover td.fc-today.fc-sun,
.fc table tr:hover td.fc-today.fc-sat,
.fc td.fc-today.fc-sun:hover,
.fc td.fc-today.fc-sat:hover {
  background-color: var(--highlight-bg) !important;
}

/* 다크모드 호버 시 일요일/토요일/오늘 색상 고정 */
.dark-mode .fc table tr:hover td.fc-sun,
.dark-mode .fc table tr:hover th.fc-sun,
.dark-mode .fc td.fc-sun:hover,
.dark-mode .fc th.fc-sun:hover {
  background-color: #2a1a1a !important;
}

.dark-mode .fc table tr:hover td.fc-sat,
.dark-mode .fc table tr:hover th.fc-sat,
.dark-mode .fc td.fc-sat:hover,
.dark-mode .fc th.fc-sat:hover {
  background-color: #132030 !important;
}

.dark-mode .fc table tr:hover td.fc-today,
.dark-mode .fc table tr:hover th.fc-today,
.dark-mode .fc td.fc-today:hover,
.dark-mode .fc th.fc-today:hover,
.dark-mode .fc table tr:hover td.fc-today.fc-sun,
.dark-mode .fc table tr:hover td.fc-today.fc-sat,
.dark-mode .fc td.fc-today.fc-sun:hover,
.dark-mode .fc td.fc-today.fc-sat:hover {
  background-color: #2a2820 !important;
}

/* FullCalendar: 툴바 중앙의 화살표 버튼과 연월 텍스트 가로 정렬 */
.fc-center {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.fc-center>h2 {
  display: inline-block !important;
  margin: 0 15px !important;
  vertical-align: middle !important;
  font-size: 1.5em !important;
}

.fc-center>.fc-button {
  display: inline-block !important;
  vertical-align: middle !important;
  margin: 0 !important;
}

/* ---- FullCalendar Dark Mode Event Colors ---- */

/* 1. 접견 일정 (원래색: #294662) -> 어둡고 부드러운 청색 */
.dark-mode .fc-event[style*="#294662"],
.dark-mode .fc-event[style*="rgb(41, 70, 98)"],
.dark-mode .fc-event[style*="rgb(41,70,98)"] {
  background-color: #1a2d3f !important;
  border-color: #1a2d3f !important;
}

/* 2. 서류 일정 (원래색: #594545) -> 어두운 갈색/적색 */
.dark-mode .fc-event[style*="#594545"],
.dark-mode .fc-event[style*="rgb(89, 69, 69)"],
.dark-mode .fc-event[style*="rgb(89,69,69)"] {
  background-color: #382a2a !important;
  border-color: #382a2a !important;
}

/* 3. 선고 일정 (원래색: #8399a1) -> 차분한 어두운 청회색 */
.dark-mode .fc-event[style*="#8399a1"],
.dark-mode .fc-event[style*="rgb(131, 153, 161)"],
.dark-mode .fc-event[style*="rgb(131,153,161)"] {
  background-color: #47555a !important;
  border-color: #47555a !important;
}

/* 4. 개인 일정 (원래색: #f19035) -> 어두운 오렌지/황토색 */
.dark-mode .fc-event[style*="#f19035"],
.dark-mode .fc-event[style*="rgb(241, 144, 53)"],
.dark-mode .fc-event[style*="rgb(241,144,53)"] {
  background-color: #995c20 !important;
  border-color: #995c20 !important;
}

/* 5. 공지 일정 (원래색: #df5f66) -> 어두운 붉은색 */
.dark-mode .fc-event[style*="#df5f66"],
.dark-mode .fc-event[style*="rgb(223, 95, 102)"],
.dark-mode .fc-event[style*="rgb(223,95,102)"] {
  background-color: #8c3a3e !important;
  border-color: #8c3a3e !important;
}

/* 6. 취소/종결/보류/연기 일정 (원래색: #696768) -> 매우 어두운 회색 */
.dark-mode .fc-event[style*="#696768"],
.dark-mode .fc-event[style*="rgb(105, 103, 104)"],
.dark-mode .fc-event[style*="rgb(105,103,104)"] {
  background-color: #3e3d3e !important;
  border-color: #3e3d3e !important;
}

/* 7. 기일표 일정 (원래색: 배경 #fff, 선/글자 #df5f66) -> 다크모드에 맞춰 반전 */
.dark-mode .fc-event[style*="#fff"],
.dark-mode .fc-event[style*="rgb(255, 255, 255)"],
.dark-mode .fc-event[style*="rgb(255,255,255)"] {
  background-color: #2b1212 !important;
  border-color: #8c3a3e !important;
  color: #ff6b6b !important;
}

/* 8. 일반 공판/기일 일정들의 다양한 적색/자주색 계열 다크모드 최적화 */
.dark-mode .fc-event[style*="#900C3F"],
.dark-mode .fc-event[style*="rgb(144, 12, 63)"],
.dark-mode .fc-event[style*="rgb(144,12,63)"] {
  background-color: #5c0828 !important;
  border-color: #5c0828 !important;
}

.dark-mode .fc-event[style*="#9d0208"],
.dark-mode .fc-event[style*="rgb(157, 2, 8)"],
.dark-mode .fc-event[style*="rgb(157,2,8)"] {
  background-color: #610105 !important;
  border-color: #610105 !important;
}

.dark-mode .fc-event[style*="#9e2a2b"],
.dark-mode .fc-event[style*="rgb(158, 42, 43)"],
.dark-mode .fc-event[style*="rgb(158,42,43)"] {
  background-color: #661b1c !important;
  border-color: #661b1c !important;
}

.dark-mode .fc-event[style*="#cb4335"],
.dark-mode .fc-event[style*="rgb(203, 67, 53)"],
.dark-mode .fc-event[style*="rgb(203,67,53)"] {
  background-color: #852b21 !important;
  border-color: #852b21 !important;
}

.dark-mode .fc-event[style*="#C70039"],
.dark-mode .fc-event[style*="rgb(199, 0, 57)"],
.dark-mode .fc-event[style*="rgb(199,0,57)"] {
  background-color: #800024 !important;
  border-color: #800024 !important;
}

.dark-mode .fc-event[style*="#c44536"],
.dark-mode .fc-event[style*="rgb(196, 69, 54)"],
.dark-mode .fc-event[style*="rgb(196,69,54)"] {
  background-color: #802d23 !important;
  border-color: #802d23 !important;
}

.dark-mode .fc-event[style*="#d81159"],
.dark-mode .fc-event[style*="rgb(216, 17, 89)"],
.dark-mode .fc-event[style*="rgb(216,17,89)"] {
  background-color: #8f0c3b !important;
  border-color: #8f0c3b !important;
}

/* ---- Dark Mode Inline Color Overrides (Universal) ---- */

/* 1. 검은색 글씨 (#000000, black) -> 다크모드 주 텍스트 색상 (--text-primary) */
.dark-mode a[style*="color:black"],
.dark-mode a[style*="color: black"],
.dark-mode span[style*="color:black"],
.dark-mode span[style*="color: black"],
.dark-mode td[style*="color:black"],
.dark-mode td[style*="color: black"],
.dark-mode font[color="black"],
.dark-mode font[color="black"] * {
  color: var(--text-primary) !important;
}

/* 2. 회색 글씨 (#6a6b6b, #818181) -> 다크모드 보조 텍스트 색상 (--text-muted) */
.dark-mode [style*="color:#6a6b6b"],
.dark-mode [style*="color: #6a6b6b"],
.dark-mode [style*="color:#818181"],
.dark-mode [style*="color: #818181"] {
  color: var(--text-muted) !important;
}

/* 3. 강조 적색 (#c03546) -> 다크모드 에러/강조 텍스트 색상 (--text-error) */
.dark-mode [style*="color:#c03546"],
.dark-mode [style*="color: #c03546"] {
  color: var(--text-error) !important;
}

/* 4. 보조 청색 (#6d819c) -> 다크모드 보조 강조 색상 (--border-accent) */
.dark-mode [style*="color:#6d819c"],
.dark-mode [style*="color: #6d819c"] {
  color: var(--border-accent) !important;
}

/* 5. 중요도 별 아이콘 노란색 (#f2cc0c) -> 다크모드 브랜드 노란색 (--brand-yellow) */
.dark-mode [style*="color:#f2cc0c"],
.dark-mode [style*="color: #f2cc0c"] {
  color: var(--brand-yellow) !important;
}

/* 6. 레거시 <font> 태그 색상 다크모드 대응 */
.dark-mode font[color="blue"],
.dark-mode font[color="blue"] * {
  color: var(--border-accent) !important;
}

.dark-mode font[color="crimson"],
.dark-mode font[color="crimson"] * {
  color: var(--text-error) !important;
}

.dark-mode font[color="grey"],
.dark-mode font[color="grey"] * {
  color: var(--text-muted) !important;
}

/* 사건 진행내역: 다크모드에서 어두운 진행내역 글자색을 가독성 좋은 밝은 색상으로 매핑 */
.dark-mode .detailtable tr[style*="#003399"],
.dark-mode .detailtable tr[style*="rgb(0, 51, 153)"],
.dark-mode .detailtable tr[style*="rgb(0,51,153)"] {
  color: #7191b5 !important;
}

.dark-mode .detailtable tr[style*="#660000"],
.dark-mode .detailtable tr[style*="rgb(102, 0, 0)"],
.dark-mode .detailtable tr[style*="rgb(102,0,0)"] {
  color: #8e3e3e !important;
}

.dark-mode .detailtable tr[style*="#006600"],
.dark-mode .detailtable tr[style*="rgb(0, 102, 0)"],
.dark-mode .detailtable tr[style*="rgb(0,102,0)"] {
  color: #396f37 !important;
}

.dark-mode .detailtable tr[style*="#CC6600"] {
  color: #b4742f !important;
}

.dark-mode .detailtable tr[style*="#336633"] {
  color: #396f37 !important;
}

.dark-mode .detailtable tr[style*="#000000"],
.dark-mode .detailtable tr[style*="black"],
.dark-mode .detailtable tr[style*="rgb(0, 0, 0)"],
.dark-mode .detailtable tr[style*="rgb(0,0,0)"],
.dark-mode .detailtable tr[style*="#333333"],
.dark-mode .detailtable tr[style*="rgb(51, 51, 51)"],
.dark-mode .detailtable tr[style*="rgb(51,51,51)"] {
  color: var(--text-primary) !important;
}

/* SMS 보내기 탭 다크모드 대응 */
.dark-mode .tablink {
  background-color: #1e1e24 !important;
  color: #d0d4da !important;
  border-color: #3a3f4b !important;
}

.dark-mode .tablink:hover {
  background-color: #ffd43b !important;
  color: #121214 !important;
}

.dark-mode .tabblue {
  background-color: #526682 !important;
  color: #c2c2c2 !important;
}

/* 각종 버튼 다크모드 대응 */
.dark-mode .casedetail .savebutton,
.dark-mode .savebutton {
  background-color: #2d3238 !important;
  color: #c2c2c2 !important;
  border-color: #3a3f4b !important;
}

.dark-mode .casedetail .savebutton:hover,
.dark-mode .savebutton:hover {
  background-color: #ffd43b !important;
  color: #121214 !important;
  border-color: #ffd43b !important;
}

/* badge3, tel_rel 다크모드 대응 (조금 더 짙은 회색) */
.dark-mode .badge3,
.dark-mode .tel_rel {
  background-color: #495057 !important;
  color: #c2c2c2 !important;
}

/* btn-red 다크모드 대응 (톤다운된 적색) */
.dark-mode .btn-red {
  background-color: #8c3a3e !important;
  color: #c2c2c2 !important;
  border-color: #8c3a3e !important;
}

.dark-mode .btn-red:hover {
  background-color: #ff6b6b !important;
  color: #121214 !important;
}

/* 항소이유서 기한표 다크모드 대응 */
/* 1. 초일 배경색 (#e3ecf8) -> 어두운 파란색 계열 */
.dark-mode .casedetail .detail_text .detailtable td[style*="background:#e3ecf8"],
.dark-mode .casedetail .detail_text .detailtable td[style*="background: #e3ecf8"] {
  background-color: #1a2d3f !important;
}

/* 2. 파란색 글씨 (토요일) -> 밝은 파란색 */
.dark-mode .casedetail .detail_text .detailtable td[style*="color:blue"],
.dark-mode .casedetail .detail_text .detailtable td[style*="color: blue"] {
  color: #74c0fc !important;
}

/* 3. 크림슨 글씨 (일요일) -> 밝은 붉은색 */
.dark-mode .casedetail .detail_text .detailtable td[style*="color:crimson"],
.dark-mode .casedetail .detail_text .detailtable td[style*="color: crimson"] {
  color: #ff6b6b !important;
}

/* 4. 20일째 붉은색 행/셀 배경 (table-warning) */
.dark-mode .casedetail .detail_text .detailtable tr.table-warning td {
  background-color: #8c3a3e !important;
  color: #c2c2c2 !important;
}

/* savebutton2 다크모드 대응 (노란색 배경에 어두운 글자색) */
.dark-mode .casedetail .savebutton2,
.dark-mode .savebutton2 {
  color: #121214 !important;
}

/* appeal 뱃지 다크모드 대응 */
.dark-mode .casedetail .detail_text .detailtable .appeal,
.dark-mode a.appeal {
  background-color: var(--text-error) !important;
  color: #121214 !important;
}

/* 접수문건 부분 #660000 색상 다크모드 대응 (조금 더 밝게) */
.dark-mode [style*="#660000"],
.dark-mode font[color="#660000"],
.dark-mode font[color="rgb(102, 0, 0)"],
.dark-mode font[color="rgb(102,0,0)"] {
  color: #ff8787 !important;
}

/* 모달창 수정/삭제 버튼 다크모드 대응 */
.dark-mode .meetModal1 {
  background-color: #2b3a4a !important;
  color: #74c0fc !important;
  border-color: #526682 !important;
}

.dark-mode .meetModal1:hover {
  background-color: #526682 !important;
  color: #ffffff !important;
  border-color: #74c0fc !important;
}

.dark-mode .meetModal2 {
  background-color: #3d1b1b !important;
  color: #ff6b6b !important;
  border-color: #8c3a3e !important;
}

.dark-mode .meetModal2:hover {
  background-color: #8c3a3e !important;
  color: #ffffff !important;
  border-color: #ff6b6b !important;
}

/* 로그아웃 버튼 다크모드 대응 (hover 시 검은 글씨) */
.dark-mode .navbar .logout button {
  color: #d0d4da !important;
}

.dark-mode .navbar .logout a:hover button,
.dark-mode .navbar .logout button:hover {
  color: #121214 !important;
}

/* 오늘 진행 사건(modal_button) 다크모드 대응 */
.dark-mode .modal_button {
  background-color: #2d3238 !important;
  color: #c2c2c2 !important;
  border-color: #3a3f4b !important;
}

.dark-mode .modal_button:hover {
  background-color: #ffd43b !important;
  color: #121214 !important;
  border-color: #ffd43b !important;
}

/* btn-blue-hover 다크모드 대응 */
.dark-mode .casedetail .detail_text .basictable .btn-blue-hover,
.dark-mode a.btn-blue-hover {
  background-color: var(--brand-blue) !important;
  color: #c2c2c2 !important;
}

.dark-mode .casedetail .detail_text .basictable .btn-blue-hover:hover,
.dark-mode a.btn-blue-hover:hover {
  background-color: var(--brand-yellow) !important;
  color: #121214 !important;
}

/* btn-yel 다크모드 대응 */
.dark-mode .casedetail .detail_text .basictable .btn-yel,
.dark-mode a.btn-yel,
.dark-mode .btn-yel {
  color: #121214 !important;
}

/* btn-danger 다크모드 대응 */
.dark-mode .casedetail .detail_text .detailtable .btn-danger,
.dark-mode a.btn-danger,
.dark-mode .btn-danger {
  
}

/* 선고기일 지정사건 목록 rowspan 색상 다크모드 대응 */
.dark-mode table tr:hover td[style*="background-color:#b6d2e8"],
.dark-mode td[style*="background-color:#b6d2e8"] { background-color: #2c3e50 !important; }

.dark-mode table tr:hover td[style*="background-color:#c9ddee"],
.dark-mode td[style*="background-color:#c9ddee"] { background-color: #34495e !important; }

.dark-mode table tr:hover td[style*="background-color:#e3ecf8"],
.dark-mode td[style*="background-color:#e3ecf8"] { background-color: #3b5269 !important; }

.dark-mode table tr:hover td[style*="background-color:#c2c9d3"],
.dark-mode td[style*="background-color:#c2c9d3"] { background-color: #455a64 !important; }

.dark-mode table tr:hover td[style*="background-color:#b6b9c4"],
.dark-mode td[style*="background-color:#b6b9c4"] { background-color: #546e7a !important; }

.dark-mode table tr:hover td[style*="background-color:#949494"],
.dark-mode td[style*="background-color:#949494"] { background-color: #424242 !important; }

.dark-mode table tr:hover td[style*="background-color:#818181"],
.dark-mode td[style*="background-color:#818181"] { background-color: #303030 !important; }
