@charset 'UTF-8';
/*! normalize.css v8.0.1 */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
}
main {
  display: block;
}
h1 {
  margin: 0.67em 0;
  font-size: 2em;
}
hr {
  height: 0;
  overflow: auto;
  box-sizing: content-box;
}
pre {
  font-family: monospace, monospace;
  font-size: 1em;
}
a {
  background-color: transparent;
}
abbr[title] {
  text-decoration: underline;
  text-decoration: underline dotted;
  border-bottom: none;
}
b,
strong {
  font-weight: bolder;
}
code,
kbd,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}
small {
  font-size: 80%;
}
sub,
sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
img {
  border-style: none;
}
button,
input,
optgroup,
select,
textarea {
  margin: 0;
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
}
button,
input {
  overflow: visible;
}
button,
select {
  text-transform: none;
}
button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  padding: 0;
  border-style: none;
}
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}
fieldset {
  padding: 0.35em 0.75em 0.625em;
}
legend {
  display: table;
  max-width: 100%;
  padding: 0;
  box-sizing: border-box;
  color: inherit;
  white-space: normal;
}
progress {
  vertical-align: baseline;
}
textarea {
  overflow: auto;
}
[type="checkbox"],
[type="radio"] {
  padding: 0;
  box-sizing: border-box;
}
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}
[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}
::-webkit-file-upload-button {
  font: inherit;
  -webkit-appearance: button;
}
details {
  display: block;
}
summary {
  display: list-item;
}
template {
  display: none;
}
[hidden] {
  display: none;
}
html,
body {
  margin: 0;
  padding: 0;
  background-color: #F4F0E8;
  color: #111417;
  font-family: 'Josefin Sans', 'Hiragino Kaku Gothic Pro W3', 'Meiryo', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.05em;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
button,
input,
select,
textarea {
  border: none;
  background-color: transparent;
}
button {
  cursor: pointer;
}
#container {
  margin-left: 220px;
  min-height: 100vh;
  background-color: #F4F0E8;
}
#content {
  padding: 40px 48px 72px;
}
#footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 52px;
  margin-left: 220px;
  background-color: #FFFFFF;
  border-top: 1px solid #E8E1D6;
}
#footer .footer-block {
  padding: 0 20px;
  color: #6F6A61;
  font-family: 'Josefin Sans', 'Hiragino Kaku Gothic Pro W3', 'Meiryo', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}
#sidebar {
  z-index: 200;
}
.dialog {
  z-index: 500;
}
.modal {
  z-index: 600;
}
.dragging {
  z-index: 1000;
}
#saveSortOrder {
  z-index: 1000;
}
@media (max-width: 991.98px) {
  #sidebar {
    transform: translateX(-220px);
    transition: transform 0.3s ease;
  }
  #sidebar.open {
    transform: translateX(0);
  }
  #sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 190;
  }
  #sidebar-overlay.active {
    display: block;
  }
  #container {
    margin-left: 0;
    padding-top: 52px;
  }
  #footer {
    margin-left: 0;
  }
  #content {
    padding: 24px 16px 48px;
  }
  .mobile-header {
    display: flex;
  }
}
@media (min-width: 992px) {
  #sidebar-overlay {
    display: none !important;
  }
  .mobile-header {
    display: none !important;
  }
}
@media (min-width: 1200px) {
  #content {
    padding: 44px 56px 72px;
  }
}
#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  background: linear-gradient(180deg, #17191a 0%, #101213 100%);
  border-right: 1px solid rgba(184, 160, 106, 0.24);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
#sidebar::-webkit-scrollbar {
  display: none;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  border-bottom: 1px solid rgba(184, 160, 106, 0.2);
}
.sidebar-logo img {
  width: auto;
  height: 48px;
}
.sidebar-nav {
  flex: 1;
  padding: 18px 0;
}
.sidebar-nav-section {
  padding: 16px 20px 6px;
  color: rgba(255, 255, 255, 0.28);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sidebar-nav-divider {
  height: 1px;
  background-color: rgba(184, 160, 106, 0.18);
  margin: 12px 16px;
}
.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  height: 46px;
  border-left: 3px solid transparent;
  border-radius: 0 4px 4px 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.sidebar-nav-link .sidebar-icon {
  width: 20px;
  text-align: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.sidebar-nav-link .sidebar-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-nav-link .sidebar-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #8F7A4D;
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  min-width: 28px;
  text-align: center;
  vertical-align: middle;
  line-height: 1.4;
  box-sizing: border-box;
  white-space: nowrap;
  padding: 2px 7px;
  flex-shrink: 0;
}
.sidebar-nav-link:hover {
  color: #FFFFFF;
  background-color: rgba(184, 160, 106, 0.1);
}
.sidebar-nav-link.active {
  color: #FFFFFF;
  background: linear-gradient(90deg, rgba(184, 160, 106, 0.32), rgba(184, 160, 106, 0.14));
  border-left-color: #B8A06A;
}
.sidebar-nav-link.active .sidebar-icon {
  color: #B8A06A;
}
.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(184, 160, 106, 0.2);
  flex-shrink: 0;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #8F7A4D;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  flex-shrink: 0;
}
.sidebar-user-info {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}
.sidebar-user-name {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.65rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-role {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 1px;
}
.sidebar-nav-toggle {
  background: none;
  border: none;
  border-left: 5px solid transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  height: 46px;
  border-radius: 0 4px 4px 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.sidebar-nav-toggle .sidebar-icon {
  width: 20px;
  text-align: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.sidebar-nav-toggle .sidebar-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-nav-toggle .sidebar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #8F7A4D;
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  min-width: 28px;
  text-align: center;
  vertical-align: middle;
  line-height: 1.4;
  box-sizing: border-box;
  white-space: nowrap;
  padding: 2px 7px;
  flex-shrink: 0;
}
.sidebar-nav-toggle .sidebar-arrow {
  font-size: 0.6rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  opacity: 0.5;
}
.sidebar-nav-toggle:hover {
  color: #FFFFFF;
  background-color: rgba(184, 160, 106, 0.1);
}
.sidebar-nav-group.open > .sidebar-nav-toggle {
  color: #FFFFFF;
}
.sidebar-nav-group.open > .sidebar-nav-toggle .sidebar-arrow {
  transform: rotate(90deg);
}
.sidebar-nav-group.open > .sidebar-nav-toggle .sidebar-badge {
  display: none;
}
.sidebar-nav-group.active-group > .sidebar-nav-toggle {
  color: #FFFFFF;
  background: linear-gradient(90deg, rgba(184, 160, 106, 0.28), rgba(184, 160, 106, 0.1));
  border-left-color: #B8A06A;
}
.sidebar-nav-group:not(.open) .sidebar-sub-link .sidebar-badge {
  display: none;
}
.sidebar-sub {
  list-style: none;
  padding: 0;
  margin: 1px 5px 1px 5px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
  background: rgba(0, 0, 0, 0.15);
}
.sidebar-nav-group.open .sidebar-sub {
  max-height: 600px;
}
.sidebar-sub-link {
  display: flex;
  align-items: center;
  padding: 10px 12px 10px 34px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.48);
  text-decoration: none;
  transition: color 0.15s;
}
.sidebar-sub-link .sidebar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #8F7A4D;
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  min-width: 28px;
  text-align: center;
  vertical-align: middle;
  line-height: 1.4;
  box-sizing: border-box;
  white-space: nowrap;
  padding: 2px 7px;
  flex-shrink: 0;
  margin-left: auto;
}
.sidebar-sub-link:hover {
  color: rgba(255, 255, 255, 0.88);
}
.sidebar-sub-link.active {
  font-weight: 500;
  border-left: 3px solid #B8A06A;
  border-radius: 0;
  padding-left: 32px;
  color: #B8A06A;
}
.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  z-index: 300;
  background-color: #111417;
  align-items: center;
  padding: 0 12px;
  gap: 12px;
}
.mobile-header-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #FFFFFF;
  font-size: 1.1rem;
  cursor: pointer;
}
.mobile-header-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}
.mobile-header-logo {
  flex-shrink: 0;
}
.mobile-header-logo img {
  height: 28px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}
.mobile-header-spacer {
  flex: 1;
}
.mobile-header-bell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #FFFFFF;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s;
}
.mobile-header-bell:hover {
  background: rgba(255, 255, 255, 0.25);
}
.mobile-header-bell-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  background: #B8A06A;
  color: #FFFFFF;
  font-size: 0.55rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  border-radius: 8px;
  box-sizing: border-box;
}
* {
  box-sizing: border-box;
}
*::before,
*::after {
  box-sizing: border-box;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #111417;
  font-family: 'Cormorant Garamond', 'Hiragino Mincho Pro', 'Yu Mincho', serif;
  font-weight: 400;
  letter-spacing: 0.1em;
}
p {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #111417;
}
/* pre */
pre[class*="language-"].line-numbers {
  position: relative;
  padding-left: 3.8em;
  counter-reset: linenumber;
}
pre[class*="language-"].line-numbers > code {
  position: relative;
  white-space: inherit;
}
.line-numbers .line-numbers-rows {
  position: absolute;
  top: 0;
  left: -3.8em;
  width: 3em;
  font-size: 100%;
  letter-spacing: -1px;
  pointer-events: none;
  border-right: 1px solid #5E584F;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.line-numbers-rows > span {
  display: block;
  counter-increment: linenumber;
}
.line-numbers-rows > span:before {
  display: block;
  padding-right: 0.8em;
  color: #5E584F;
  text-align: right;
  content: counter(linenumber);
}
/* FORM */
input,
textarea,
select {
  box-sizing: border-box;
  background-color: #FFFFFF;
  color: #111417;
  font-family: 'Josefin Sans', 'Hiragino Kaku Gothic Pro W3', 'Meiryo', sans-serif;
}
input,
select {
  -webkit-appearance: none;
  appearance: none;
}
input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
}
select {
  cursor: pointer;
  background-color: #FFFFFF;
  color: #111417;
}
input[type="checkbox"],
input[type="radio"] {
  vertical-align: middle;
  -webkit-appearance: radio;
  appearance: radio;
}
label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.form-group {
  margin-bottom: 1rem;
  color: #111417;
}
.form-group .form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  border: 1px solid #D8C7A5;
  background-color: #FFFFFF;
  color: #111417;
  font-size: 0.9rem;
  line-height: 1.85;
}
.form-group .form-control nav {
  display: flex;
  margin-bottom: 20px;
  gap: 20px;
}
@media (max-width: 575.98px) {
  .form-group input[type="date"],
  .form-group input[type="datetime-local"] {
    display: block;
    width: 100%;
    height: 2.4rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    box-sizing: border-box;
    font-size: 1rem;
    vertical-align: middle;
    -webkit-appearance: none;
  }
  .form-group input[type="date"]::-webkit-date-and-time-value,
  .form-group input[type="datetime-local"]::-webkit-date-and-time-value {
    text-align: left;
  }
  .form-group .form-control {
    width: 100%;
  }
  .form-group .form-control nav {
    display: flex;
    margin-bottom: 20px;
    gap: 10px;
  }
  .form-group .form-control nav label {
    flex: 1;
  }
}
/* BUTTON */
.button-group {
  display: grid;
  align-items: center;
  align-items: stretch;
  width: 100%;
  background-color: #eeeeee;
  border-top: 1px solid #D8C7A5;
}
@media (max-width: 575.98px) {
  .button-group {
    margin-top: 20px;
    padding: 5px;
    gap: 5px;
  }
  .button-group .btn {
    width: 100%;
  }
  .button-group .btn:last-child {
    margin: 0;
  }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  .button-group {
    margin-top: 20px;
    padding: 10px;
    gap: 10px;
  }
  .button-group .btn {
    width: 100%;
  }
  .button-group .btn:last-child {
    margin: 0;
  }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .button-group {
    display: grid;
    margin-top: 25px;
    padding: 10px;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .button-group {
    display: grid;
    margin-top: 25px;
    padding: 25px;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
  }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .button-group {
    display: grid;
    margin-top: 25px;
    padding: 25px;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
  }
}
@media (min-width: 1400px) {
  .button-group {
    display: grid;
    margin-top: 25px;
    padding: 25px;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
  }
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border: 1px solid #D8C7A5;
  background: #FFFFFF;
  color: #111417;
  font-family: 'Josefin Sans', 'Hiragino Kaku Gothic Pro W3', 'Meiryo', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border-radius: 3px;
  box-sizing: border-box;
  transition: all 0.25s ease;
}
.btn:hover {
  border-color: #B8A06A;
  color: #B8A06A;
  background: #F3EEDF;
  text-decoration: none;
}
.btn:disabled,
.btn.disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.btn-dark,
.btn-primary {
  background: #111417;
  color: #FFFFFF;
  border-color: #111417;
}
.btn-dark:hover,
.btn-primary:hover {
  background: #000;
  border-color: #000;
  color: #FFFFFF;
}
.btn-danger,
.btn-danger-outline {
  background: #FFFFFF;
  color: #CC2200;
  border-color: rgba(204, 34, 0, 0.4);
}
.btn-danger:hover,
.btn-danger-outline:hover {
  background: rgba(204, 34, 0, 0.06);
  border-color: #CC2200;
  color: #CC2200;
}
.btn-sm {
  height: 30px;
  padding: 0 10px;
  font-size: 0.68rem;
}
button {
  font-family: 'Josefin Sans', 'Hiragino Kaku Gothic Pro W3', 'Meiryo', sans-serif;
}
/* PAGEMORE */
.readmore {
  margin-top: 20px;
  text-align: right;
}
.nextmore {
  margin: 20px 0;
  text-align: left;
}
@media (max-width: 575.98px) {
  .readmore,
  .nextmore {
    width: 100%;
  }
  .readmore .btn,
  .nextmore .btn {
    width: 100%;
  }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  .readmore,
  .nextmore {
    width: 100%;
  }
  .readmore .btn,
  .nextmore .btn {
    width: 100%;
  }
}
/* WEEKLY */
#weekly {
  width: 100%;
  padding: 16px 20px;
}
#weekly ul {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 8px;
}
#weekly ul li {
  flex: 1;
}
#weekly ul li a {
  display: block;
  padding: 0.575rem 0.75rem;
  border: 1px solid #D8C7A5;
  background-color: #FFFFFF;
  color: #111417;
  text-align: center;
  text-decoration: none;
  font-family: 'Josefin Sans', 'Hiragino Kaku Gothic Pro W3', 'Meiryo', sans-serif;
  font-size: 0.8rem;
  border-radius: 4px;
  transition: all 0.25s ease;
}
#weekly ul li a:hover {
  border-color: #B8A06A;
  color: #B8A06A;
}
#weekly ul li a.active {
  background-color: #B8A06A;
  border-color: #B8A06A;
  color: #FFFFFF;
}
@media (max-width: 575.98px) {
  #weekly ul {
    display: grid;
    flex-direction: column;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }
  #weekly ul li:first-child {
    grid-column: span 2;
  }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  #weekly ul {
    display: grid;
    flex-direction: column;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }
  #weekly ul li:first-child {
    grid-column: span 2;
  }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  #weekly ul {
    display: grid;
    flex-direction: column;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }
  #weekly ul li:first-child {
    grid-column: span 2;
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  #weekly ul {
    display: flex;
    justify-content: space-between;
    gap: 10px;
  }
  #weekly ul li {
    flex: 1;
    /* すべての li を均等幅に */
  }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  #weekly ul {
    display: flex;
    justify-content: space-between;
    gap: 10px;
  }
  #weekly ul li {
    flex: 1;
    /* すべての li を均等幅に */
  }
}
@media (min-width: 1400px) {
  #weekly ul {
    display: flex;
    justify-content: space-between;
    gap: 10px;
  }
  #weekly ul li {
    flex: 1;
    /* すべての li を均等幅に */
  }
}
/* TABLE */
.table {
  width: 100%;
  color: #111417;
}
.table th,
.table td {
  padding: 0.75rem;
  color: #111417;
  vertical-align: top;
  border-top: 1px solid #D8C7A5;
}
.table thead th {
  background-color: #111417;
  color: #FFFFFF;
  vertical-align: bottom;
  font-family: 'Josefin Sans', 'Hiragino Kaku Gothic Pro W3', 'Meiryo', sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid #D8C7A5;
  border-bottom: 2px solid #B8A06A;
}
.table tbody + tbody {
  color: #111417;
  border-top: 1px solid #D8C7A5;
}
/* list-view */
.table.list-view table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
.table.list-view table th,
.table.list-view table td {
  box-sizing: border-box;
  border: 1px solid #D8C7A5;
  font-size: 0.75rem;
  text-align: center;
  vertical-align: middle;
}
.table.list-view table th img,
.table.list-view table td img {
  display: inherit;
}
.table.list-view table thead th {
  background-color: #111417;
  color: #FFFFFF;
  font-family: 'Josefin Sans', 'Hiragino Kaku Gothic Pro W3', 'Meiryo', sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid #D8C7A5;
  border-bottom: 2px solid #B8A06A;
}
.table.list-view table tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.05);
}
.table.list-view table .table-hover tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.075);
}
.table.list-view table td {
  text-align: center;
}
.table.list-view table td:last-child .btn {
  width: 100%;
}
@media (max-width: 575.98px) {
  .table.list-view {
    overflow-x: scroll;
  }
  .table.list-view table {
    min-width: 1400px;
  }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  .table.list-view {
    overflow-x: scroll;
  }
  .table.list-view table {
    min-width: 1400px;
  }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .table.list-view {
    overflow-x: scroll;
  }
  .table.list-view table {
    min-width: 1400px;
  }
}
/* list-view-responsive */
.table.list-view-responsive table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
.table.list-view-responsive table th,
.table.list-view-responsive table td {
  box-sizing: border-box;
  border: 1px solid #D8C7A5;
  font-size: 0.75rem;
  vertical-align: middle;
}
.table.list-view-responsive table thead th {
  background-color: #111417;
  color: #FFFFFF;
  font-family: 'Josefin Sans', 'Hiragino Kaku Gothic Pro W3', 'Meiryo', sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid #D8C7A5;
  border-bottom: 2px solid #B8A06A;
}
.table.list-view-responsive table .table-hover tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.075);
}
.table.list-view-responsive figure {
  margin: 0;
  padding: 0;
}
.table.list-view-responsive figcaption {
  font-size: 0.8rem;
  font-weight: bold;
  text-align: center;
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .table.list-view-responsive table {
    table-layout: fixed;
    border-collapse: collapse;
  }
  .table.list-view-responsive td {
    width: 100%;
  }
  .table.list-view-responsive td:last-child .btn {
    width: 100%;
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .table.list-view-responsive table {
    table-layout: fixed;
    border-collapse: collapse;
  }
  .table.list-view-responsive td {
    width: 100%;
  }
  .table.list-view-responsive td:last-child .btn {
    width: 100%;
  }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .table.list-view-responsive table {
    table-layout: fixed;
    border-collapse: collapse;
  }
  .table.list-view-responsive td {
    width: 100%;
  }
  .table.list-view-responsive td:last-child .btn:first-child {
    margin-bottom: 10px;
  }
}
@media (min-width: 1400px) {
  .table.list-view-responsive table {
    table-layout: fixed;
    border-collapse: collapse;
  }
  .table.list-view-responsive td {
    width: 100%;
  }
  .table.list-view-responsive td:last-child .btn {
    width: 100%;
  }
}
.table.list-view tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.05);
}
/* detail-view */
.table.detail-view table {
  width: 100%;
  border: 1px solid #D8C7A5;
  color: #111417;
  border-collapse: collapse;
}
.table.detail-view table th,
.table.detail-view table td {
  box-sizing: border-box;
  border: 1px solid #D8C7A5;
  font-size: 0.75rem;
  text-align: center;
  vertical-align: middle;
}
.table.detail-view table th img,
.table.detail-view table td img {
  display: inherit;
}
.table.detail-view table th {
  width: 25%;
  background-color: rgba(0, 0, 0, 0.075);
}
.table.detail-view table td {
  width: 75%;
}
@media (max-width: 575.98px) {
  .table.detail-view table {
    display: block;
    border: none;
  }
  .table.detail-view table tbody,
  .table.detail-view table tr {
    display: block;
    width: 100%;
  }
  .table.detail-view table th,
  .table.detail-view table td {
    display: block;
    width: 100% !important;
  }
  .table.detail-view table th {
    background-color: rgba(0, 0, 0, 0.075);
    text-align: left;
  }
  .table.detail-view table td {
    border-top: none;
  }
}
/* モーダル関連スタイル */
.modal {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  display: none;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}
.modal-content {
  width: 300px;
  margin: 15% auto;
  padding: 25px;
  border-radius: 8px;
  background-color: #111417;
  text-align: center;
}
.modal-content img {
  display: inline;
  margin-bottom: 15px;
}
.modal-content p {
  margin: 10px 0;
  color: #eeeeee;
  font-size: 0.9rem;
}
/* プログレスバー */
.progress-container {
  width: 100%;
  height: 20px;
  margin: 15px 0;
  overflow: hidden;
  border-radius: 10px;
  background-color: #5E584F;
}
.progress-bar {
  width: 0;
  height: 100%;
  background-color: #4caf50;
  transition: width 0.3s ease;
}
.progress-text {
  color: #eeeeee;
  font-size: 0.8rem;
}
/* Dialog */
.dialog {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}
.dialog > div {
  position: relative;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: #FFFFFF;
}
.dialog h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #111417;
  font-size: 1.2rem;
}
.dialog p {
  line-height: 1.6;
}
.dialog label {
  font-size: 0.8rem;
}
.dialog .btn {
  width: 100%;
  padding: 0.575rem 0.75rem;
  background-color: #111417;
  color: #FFFFFF;
}
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #111417;
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  display: none;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}
/* ドラッグ＆ドロップ関連のスタイル */
.search-active .item,
.search-active {
  cursor: default !important;
}
/* SECTION */
.section {
  position: relative;
  display: -ms-flexbox;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  box-sizing: border-box;
  border: 1px solid #eeeeee;
  background-color: #FFFFFF;
  background-clip: border-box;
  color: #111417;
  word-wrap: break-word;
  -ms-flex-direction: column;
}
@media (max-width: 575.98px) {
  .section {
    margin-bottom: 10px;
    padding: 10px;
  }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  .section {
    margin-bottom: 10px;
    padding: 10px;
  }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .section {
    margin-bottom: 15px;
    padding: 20px;
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .section {
    margin-bottom: 20px;
    padding: 20px;
  }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .section {
    margin-bottom: 25px;
    padding: 20px;
  }
}
@media (min-width: 1400px) {
  .section {
    margin-bottom: 25px;
    padding: 20px;
  }
}
.one-day {
  border: 5px solid #28A745 !important;
}
.three-days {
  border: 3px solid #F39C12 !important;
}
.one-week {
  border: 3px solid #CC2200 !important;
}
/* チェックボックスのスタイル */
.cast-checkbox,
.site-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
}
/* 選択された行のスタイル */
tr.selected {
  background-color: #e8f0fe !important;
}
/* 全選択チェックボックスのスタイル */
#selectAllCheckbox {
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  cursor: pointer;
}
.sortable {
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
}
.sort-icon {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  opacity: 0.4;
}
.table thead th.sortable:hover,
.table.list-view thead th.sortable:hover,
.table.list-view-responsive thead th.sortable:hover {
  background-color: #22282e;
}
thead .sortable:hover .sort-icon,
thead .sortable.active .sort-icon {
  opacity: 1;
}
thead .sortable.active .sort-icon.asc {
  border-bottom: 5px solid #FFFFFF;
  border-top: none;
}
thead .sortable.active .sort-icon.desc {
  border-top: 5px solid #FFFFFF;
  border-bottom: none;
}
.sortable:hover .sort-icon,
.sortable.active .sort-icon {
  opacity: 1;
}
.sortable.active .sort-icon.asc {
  border-bottom: 5px solid #5E584F;
  border-top: none;
}
.sortable.active .sort-icon.desc {
  border-top: 5px solid #5E584F;
  border-bottom: none;
}
tr.disabled {
  pointer-events: none;
  opacity: 0.6;
  cursor: not-allowed;
}
/* TITLE */
.title-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 18px;
  color: #111417;
}
.title-block:not(:has(.title-line))::before {
  content: "";
  display: block;
  width: 3px;
  min-height: 40px;
  align-self: stretch;
  background: #B8A06A;
  flex-shrink: 0;
}
.title-block .title-line {
  width: 3px;
  height: 52px;
  background: #B8A06A;
  flex-shrink: 0;
}
.title-block .title-text {
  flex: 1;
}
.title-block h2.title,
.title-block h3.title {
  margin: 0;
  font-family: 'Cormorant Garamond', 'Hiragino Mincho Pro', 'Yu Mincho', serif;
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #111417;
}
.title-block .title-sub {
  margin-top: 6px;
  font-size: 0.75rem;
  color: #6F6A61;
  letter-spacing: 0.04em;
}
.title-block::after {
  display: block;
  clear: both;
  content: "";
}
@media (max-width: 767.98px) {
  .title-block {
    margin-bottom: 22px;
  }
}
/* Pagenavi */
#pagenavi {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  color: #111417;
}
#pagenavi .pagination {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
}
#pagenavi .pagination ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
#pagenavi .pagination ul li {
  margin: 0 5px 0 0;
}
#pagenavi .pagination ul li a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #D8C7A5;
  border-radius: 0;
  background-color: #FFFFFF;
  color: #111417;
  font-size: 0.75rem;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  user-select: none;
}
#pagenavi .pagination ul li a:hover {
  background-color: #111417;
  color: #FFFFFF;
}
#pagenavi .pagination ul li.active a {
  background-color: #111417;
  color: #FFFFFF;
  pointer-events: none;
}
#pagenavi .pagination ul .first a {
  width: 64px;
  border-color: #111417;
  background-color: #FFFFFF;
  font-weight: bold;
}
#pagenavi .pagination ul .first a:hover {
  background-color: #111417;
  color: #FFFFFF;
}
#pagenavi .pagination ul .last a {
  width: 64px;
  border: 1px solid #D8C7A5;
  background-color: #FFFFFF;
  font-weight: bold;
}
#pagenavi .pagination ul .last a:hover {
  background-color: #111417;
  color: #FFFFFF;
}
#pagenavi .pagination ul .prev a {
  border-color: #111417;
  background-color: #FFFFFF;
}
#pagenavi .pagination ul .prev a:hover {
  background-color: #111417;
  color: #FFFFFF;
}
#pagenavi .pagination ul .next a {
  border-color: #111417;
  background-color: #FFFFFF;
}
#pagenavi .pagination ul .next a:hover {
  background-color: #111417;
  color: #FFFFFF;
}
@media (max-width: 575.98px) {
  #pagenavi .pagination-controls,
  #pagenavi .pagination {
    display: block;
    width: 100%;
  }
  #pagenavi .pagination-controls {
    margin-bottom: 10px;
  }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  #pagenavi .pagination-controls,
  #pagenavi .pagination {
    display: block;
    width: 100%;
  }
  #pagenavi .pagination-controls {
    margin-bottom: 10px;
  }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  #pagenavi .pagination-controls,
  #pagenavi .pagination {
    display: block;
    width: 100%;
  }
  #pagenavi .pagination-controls {
    margin-bottom: 10px;
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  #pagenavi .pagination-controls,
  #pagenavi .pagination {
    display: block;
    width: 100%;
  }
  #pagenavi .pagination-controls {
    margin-bottom: 10px;
  }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  #pagenavi .pagination-controls,
  #pagenavi .pagination {
    display: block;
    width: 100%;
  }
  #pagenavi .pagination-controls {
    margin-bottom: 10px;
  }
}
@media (min-width: 1400px) {
  #pagenavi .pagination-controls,
  #pagenavi .pagination {
    display: block;
    width: 100%;
  }
  #pagenavi .pagination-controls {
    margin-bottom: 10px;
  }
}
#calendar table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
#calendar th {
  padding: 10px 4px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border: 1px solid #D8C7A5;
}
#calendar th.sat {
  color: #4778b8;
}
#calendar th.sun {
  color: #c85d63;
}
#calendar td {
  vertical-align: top;
  border: 1px solid #e2d8ca;
  font-size: 0.75rem;
}
#calendar td.today {
  background: rgba(184, 160, 106, 0.07);
}
#calendar td.empty-day {
  background: #F4F0E8;
}
#calendar td.sat .date i {
  color: #4778b8;
}
#calendar td.sun .date i {
  color: #c85d63;
}
#calendar .cell-inner {
  display: flex;
}
#calendar .date {
  flex-shrink: 0;
  width: 25%;
}
#calendar .date i {
  font-style: normal;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #111417;
}
@media (max-width: 767.98px) {
  #calendar thead {
    display: none;
  }
  #calendar th,
  #calendar td {
    display: block;
    width: 100%;
    padding: 0;
  }
  #calendar td {
    height: auto;
  }
  #calendar .date {
    flex: 0 0 25%;
    text-align: center;
  }
  #calendar .schedule-cell {
    flex: 0 0 75%;
    padding: 0.25rem;
  }
  #calendar td i:after {
    position: relative;
    left: 0.25rem;
    font-size: 0.5rem;
  }
  #calendar td:nth-child(1) i:after {
    content: "(日)";
  }
  #calendar td:nth-child(2) i:after {
    content: "(月)";
  }
  #calendar td:nth-child(3) i:after {
    content: "(火)";
  }
  #calendar td:nth-child(4) i:after {
    content: "(水)";
  }
  #calendar td:nth-child(5) i:after {
    content: "(木)";
  }
  #calendar td:nth-child(6) i:after {
    content: "(金)";
  }
  #calendar td:nth-child(7) i:after {
    content: "(土)";
  }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .schedule-cell {
    padding: 10px;
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .schedule-cell {
    padding: 10px;
  }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .schedule-cell {
    padding: 10px;
  }
}
@media (min-width: 1400px) {
  .schedule-cell {
    padding: 10px;
  }
}
.button-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 0 8px;
}
.button-group .btn {
  min-width: 160px;
  justify-content: center;
}
.cast-section-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #D8C7A5;
}
.cast-section-header--card {
  margin-bottom: 0;
  padding: 12px 20px;
}
.cast-section-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #F3EEDF;
  color: #B8A06A;
  font-size: 0.68rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.cast-section-title {
  font-family: 'Cormorant Garamond', 'Hiragino Mincho Pro', 'Yu Mincho', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #111417;
  margin: 0;
}
.cast-section-note {
  font-size: 0.68rem;
  color: #6F6A61;
  margin: 4px 0 0;
}
.cast-section {
  background: #FFFFFF;
  border: 1px solid #D8C7A5;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 16px;
}
.cast-section--mt {
  margin-top: 16px;
}
.cast-form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.cast-form-2col > .cast-section {
  margin-bottom: 0;
}
.cast-form-2col--mt {
  margin-top: 16px;
}
.cast-form-4sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "basic   comment" "profile option";
  gap: 16px;
  margin-bottom: 16px;
}
.cast-form-4sections > .cast-section {
  margin-bottom: 0;
}
.cast-form-4sections .cast-section--basic {
  grid-area: basic;
}
.cast-form-4sections .cast-section--comment {
  grid-area: comment;
}
.cast-form-4sections .cast-section--profile {
  grid-area: profile;
}
.cast-form-4sections .cast-section--option {
  grid-area: option;
}
@media (max-width: 991.98px) {
  .cast-form-4sections {
    display: flex;
    flex-direction: column;
  }
  .cast-form-4sections .cast-section--basic {
    order: 1;
  }
  .cast-form-4sections .cast-section--profile {
    order: 2;
  }
  .cast-form-4sections .cast-section--comment {
    order: 3;
  }
  .cast-form-4sections .cast-section--option {
    order: 4;
  }
}
.cast-field {
  margin-bottom: 12px;
}
.cast-field:last-child {
  margin-bottom: 0;
}
.cast-field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #111417;
  margin-bottom: 4px;
}
.cast-field-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #D8C7A5;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #111417;
  background: #FFFFFF;
  box-sizing: border-box;
  letter-spacing: 0.08em;
  line-height: 2;
  transition: border-color 0.15s;
}
.cast-field-input:focus {
  outline: none;
  border-color: #B8A06A;
}
.cast-field-input::placeholder {
  color: #a29d94;
}
select.cast-field-input {
  height: 38px;
  padding-top: 0;
  padding-bottom: 0;
}
.cast-field-textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #D8C7A5;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #111417;
  background: #FFFFFF;
  box-sizing: border-box;
  resize: vertical;
  letter-spacing: 0.08em;
  line-height: 2;
  transition: border-color 0.15s;
}
.cast-field-textarea:focus {
  outline: none;
  border-color: #B8A06A;
}
.cast-field-radios {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 2px;
}
.cast-radio {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: #111417;
  cursor: pointer;
}
.cast-radio input[type="radio"],
.cast-radio input[type="checkbox"] {
  cursor: pointer;
  accent-color: #B8A06A;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin: 0;
}
.cast-field-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cast-field-row .cast-field-input {
  flex: 1;
  min-width: 0;
}
.title-block {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.title-line {
  width: 3px;
  height: 28px;
  background: #B8A06A;
  flex-shrink: 0;
  border-radius: 2px;
}
.title-text {
  flex: 1;
  min-width: 0;
}
.title-text .title {
  margin: 0;
}
.title-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}
.title-sub {
  display: block;
  margin-top: 2px;
  font-size: 0.68rem;
  color: #6F6A61;
  letter-spacing: 0.04em;
}
.castList {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.castList .section {
  overflow: visible;
}
.castList .section #saveSortOrder {
  position: sticky;
  right: 25px;
  bottom: 25px;
  padding: 10px;
  text-align: right;
}
.castList .item {
  display: block;
  position: relative;
  margin: 0;
  padding: 5px;
  box-sizing: border-box;
  background: #FFFFFF;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.15s, transform 0.15s;
}
.castList .item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}
.castList .item a {
  display: block;
  text-align: center;
}
.castList .item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  height: auto;
  border-radius: 2px;
}
.castList .item .new-label {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #B8A06A;
  color: #FFFFFF;
  font-size: 0.55rem;
  padding: 2px 5px;
  border-radius: 0 2px 0 2px;
  letter-spacing: 0.1em;
  font-weight: 700;
  z-index: 3;
  line-height: 1.4;
}
.castList .item .name,
.castList .item .next-work-date,
.castList .item .schedule-time,
.castList .item .title {
  display: block;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.castList .item .title {
  font-weight: bold;
}
.castList .item .next-work-date {
  display: inline-block;
  vertical-align: middle;
}
.castList .item div.filter {
  margin-top: 10px;
  text-align: left;
}
.castList .item div.filter span {
  display: block;
  width: 100%;
  overflow: hidden;
  font-size: 0.75rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.castList .item .thumb-checkbox {
  display: none;
  margin: -5px 0 5px 0;
  text-align: left;
}
.castList .item .thumb-checkbox input[type="checkbox"] {
  margin: 0;
}
.castList.show-checkboxes .thumb-checkbox {
  display: block;
}
.castList .castList.show-checkboxes .item .thumb-checkbox {
  display: block;
}
.castList .item:last-child {
  margin-right: auto;
}
.castList::after {
  flex: auto;
  content: "";
}
.castList:not(.sortable)::after {
  flex: auto;
  content: "";
}
@media (max-width: 575.98px) {
  .castList .item {
    flex: 1 1 calc(100% / 3 - 4px);
    max-width: calc(100% / 3 - 4px);
    margin: 2px;
    padding: 5px;
  }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  .castList .item {
    flex: 1 1 calc(100% / 5 - 4px);
    max-width: calc(100% / 5 - 4px);
    margin: 2px;
    padding: 5px;
  }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .castList .item {
    flex: 1 1 calc(100% / 6 - 10px);
    max-width: calc(100% / 6 - 10px);
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .castList .item {
    flex: 1 1 calc(100% / 10 - 10px);
    max-width: calc(100% / 10 - 10px);
  }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .castList .item {
    flex: 1 1 calc(100% / 12 - 10px);
    max-width: calc(100% / 12 - 10px);
  }
}
@media (min-width: 1400px) {
  .castList .item {
    flex: 1 1 calc(100% / 14 - 10px);
    max-width: calc(100% / 14 - 10px);
  }
}
.cast-card-info {
  padding: 6px 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
}
.cast-card-id {
  font-size: 0.65rem;
  color: #6F6A61;
  letter-spacing: 0.04em;
}
.cast-card-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: #111417;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.cast-card-status {
  display: block;
  width: 100%;
  font-size: 0.55rem;
  padding: 1px 0;
  line-height: 1.6;
  border-radius: 2px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-align: center;
}
.cast-card-days {
  font-size: 0.6rem;
  color: #6F6A61;
}
.next-work-date {
  display: block;
  width: 100%;
  font-size: 0.6rem;
  color: #B8A06A;
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  line-height: 1.6;
  width: 7em;
  text-align: center;
  box-sizing: border-box;
}
.badge.badge--success {
  background: #28A745;
  color: #FFFFFF;
}
.badge.badge--warning {
  background: #F39C12;
  color: #111417;
}
.badge.badge--danger {
  background: #CC2200;
  color: #FFFFFF;
}
.badge.badge--active {
  background: #B8A06A;
  color: #FFFFFF;
}
.badge.badge--neutral {
  background: #F4F0E8;
  color: #6F6A61;
  border: 1px solid #D8C7A5;
}
.badge.badge--info {
  background: #17A2B8;
  color: #FFFFFF;
}
.status-working {
  background: #B8A06A;
  color: #FFFFFF;
}
.status-standby {
  background: #B8A06A;
  color: #FFFFFF;
}
.status-off {
  border: 1px solid #CC2200;
  color: #CC2200;
}
.status-late {
  border: 1px solid #F39C12;
  color: #F39C12;
}
.status-early {
  border: 1px solid #D8C7A5;
  color: #6F6A61;
}
.status-none {
  border: 1px solid #D8C7A5;
  color: #6F6A61;
}
.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #8F7A4D;
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  min-width: 28px;
  text-align: center;
  vertical-align: middle;
  line-height: 1.4;
  box-sizing: border-box;
  white-space: nowrap;
}
.filter-card {
  background: #FFFFFF;
  border: 1px solid #D8C7A5;
  border-radius: 6px;
  margin-bottom: 20px;
  overflow: hidden;
}
.filter-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-bottom: 1px solid #D8C7A5;
  font-family: 'Cormorant Garamond', 'Hiragino Mincho Pro', 'Yu Mincho', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #111417;
  background: #FFFFFF;
}
.filter-card-header i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #F3EEDF;
  color: #B8A06A;
  font-size: 0.68rem;
  flex-shrink: 0;
}
.filter-card-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
}
.filter-card-body + .filter-card-body {
  border-top: 1px solid #D8C7A5;
}
.filter-card-body--block {
  display: block;
  padding: 20px;
}
.filter-card-col {
  flex: 1;
  min-width: 0;
  padding: 20px;
}
.filter-card-col + .filter-card-col {
  border-left: 1px solid #D8C7A5;
}
.filter-col-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #B8A06A;
  letter-spacing: 0.05em;
  margin: 0 0 14px;
}
.filter-col-title:not(:first-of-type) {
  margin-top: 24px;
}
.filter-card-footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid #D8C7A5;
  background: #FFFFFF;
}
.filter-option-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #D8C7A5;
}
.filter-option-row:last-child {
  border-bottom: none;
}
.filter-option-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #111417;
  min-width: 72px;
  flex-shrink: 0;
  padding-top: 3px;
}
.filter-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.filter-row-sep {
  font-size: 0.75rem;
  color: #6F6A61;
  flex-shrink: 0;
}
.magu-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #B8A06A;
  white-space: nowrap;
  width: 64px;
  flex-shrink: 0;
}
.magu-add-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1;
}
.magu-filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  flex: 1;
}
.magu-filter-field {
  display: flex;
  align-items: center;
  gap: 6px;
}
.magu-filter-field label {
  font-size: 0.75rem;
  color: #6F6A61;
  white-space: nowrap;
}
.magu-filter-field select,
.magu-filter-field input[type="text"],
.magu-filter-field input[type="email"] {
  height: 36px;
  padding: 0 12px;
  border: 1px solid #D8C7A5;
  font-size: 0.8rem;
  min-width: 200px;
  color: #111417;
  background: #FFFFFF;
  outline: none;
  border-radius: 3px;
  min-width: 0;
}
.magu-filter-field select:focus,
.magu-filter-field input[type="text"]:focus,
.magu-filter-field input[type="email"]:focus {
  border-color: #B8A06A;
}
.magu-filter-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
  align-items: center;
}
.magu-filter-actions .btn {
  height: 34px;
  line-height: 32px;
  padding: 0 14px;
  box-sizing: border-box;
  border-radius: 3px;
}
.btn-active {
  background: #B8A06A !important;
  color: #FFFFFF !important;
  border-color: #B8A06A !important;
}
.cast-show-all-row {
  margin: 8px 0 12px;
}
.select-all-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  color: #6F6A61;
}
.select-all-label input[type="checkbox"] {
  accent-color: #B8A06A;
  width: 14px;
  height: 14px;
  cursor: pointer;
}
.castList {
  display: grid !important;
  grid-template-columns: repeat(14, 1fr);
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: unset;
  justify-content: unset;
}
.castList::after {
  display: none;
}
.castList .item {
  display: block !important;
  position: relative !important;
  margin: 0 !important;
  padding: 5px !important;
  max-width: none !important;
  width: auto !important;
  flex: none !important;
  border: none !important;
  background: #FFFFFF !important;
}
@media (max-width: 1399px) {
  .castList {
    grid-template-columns: repeat(12, 1fr);
  }
}
@media (max-width: 1199px) {
  .castList {
    grid-template-columns: repeat(10, 1fr);
  }
}
@media (max-width: 991px) {
  .castList {
    grid-template-columns: repeat(8, 1fr);
  }
}
@media (max-width: 767px) {
  .castList {
    grid-template-columns: repeat(6, 1fr);
  }
}
@media (max-width: 575px) {
  .castList {
    grid-template-columns: repeat(3, 1fr);
  }
}
.castList .item .last-work-days {
  display: block;
  width: 100%;
  padding: 0.15rem 0.35rem;
  background-color: #111417;
  color: #FFFFFF;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}
.castList .item .last-work-days.text-notice {
  color: #28A745;
  font-weight: 400;
}
.castList .item .last-work-days.text-warning {
  color: #F39C12;
  font-weight: 400;
}
.castList .item .last-work-days.text-danger {
  color: #CC2200;
  font-weight: 400;
}
.cast-search-area {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.cast-search-form {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cast-search-input {
  height: 36px;
  padding: 0 12px;
  border: 1px solid #D8C7A5;
  font-size: 0.8rem;
  min-width: 200px;
  color: #111417;
  background: #FFFFFF;
  outline: none;
  border-radius: 3px;
}
.cast-search-input:focus {
  border-color: #B8A06A;
}
.cast-search-clear {
  height: 36px;
  padding: 0 10px;
  font-size: 0.75rem;
  background: transparent;
  border: 1px solid #D8C7A5;
  color: #6F6A61;
  border-radius: 3px;
  cursor: pointer;
}
.cast-counts {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.cast-counts .status-card {
  flex: 0 0 auto;
  min-width: 200px;
}
.status-cards {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 22px;
  gap: 12px;
}
.status-card {
  flex: 1;
  min-width: 150px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  box-sizing: border-box;
  border: 1px solid #D8C7A5;
  border-radius: 4px;
  background: #FFFFFF;
  color: #6F6A61;
  text-decoration: none;
  box-shadow: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.status-card:hover {
  border-color: #B8A06A;
  background: #fefcf9;
}
.status-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid #D8C7A5;
  background: #F3EEDF;
  color: #B8A06A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.status-card-icon--inactive {
  background: #F4F0E8;
  color: #6F6A61;
}
.status-card-body {
  flex: 1;
  min-width: 0;
}
.status-title {
  margin-bottom: 3px;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #6F6A61;
}
.status-count {
  color: #111417;
  font-family: 'Cormorant Garamond', 'Hiragino Mincho Pro', 'Yu Mincho', serif;
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.status-count small {
  font-size: 0.8rem;
  font-family: inherit;
  font-weight: inherit;
}
.status-count.status-complete {
  color: #B8A06A;
}
.cast-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
  background: #FFFFFF;
  border: 1px solid #D8C7A5;
  border-radius: 4px;
  padding: 10px 14px;
}
.cast-action-nav,
.cast-action-ops {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.cast-action-nav .btn {
  min-width: 136px;
  justify-content: center;
}
.cast-action-nav--top {
  margin-top: 16px;
}
.cast-action-nav--top-sm {
  margin-top: 8px;
}
.cast-action-nav--gap-lg {
  gap: 12px;
}
.cast-action-ops {
  flex-wrap: nowrap;
}
.cast-action-ops .btn {
  min-width: 0;
  justify-content: center;
}
.cast-action-bar--inline {
  border: none;
  padding: 0;
  background: none;
  margin: 0;
}
.cast-action-bar--inline .cast-action-nav .btn {
  min-width: 80px;
}
.cast-perpage-form {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cast-perpage-label {
  font-size: 0.75rem;
  color: #6F6A61;
  white-space: nowrap;
}
.cast-perpage-select {
  font-size: 0.75rem;
  padding: 4px 8px;
  border: 1px solid #D8C7A5;
  border-radius: 4px;
  background: #FFFFFF;
  color: #111417;
  cursor: pointer;
}
.cast-perpage-select:focus {
  outline: none;
  border-color: #B8A06A;
}
.list-empty {
  padding: 48px 20px;
  text-align: center;
  font-size: 0.8rem;
  color: #6F6A61;
}
.cast-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.cast-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.cast-toggle .toggle-track {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  background: #6F6A61;
  border-radius: 11px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.cast-toggle .toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}
.cast-toggle input:checked + .toggle-track {
  background: #B8A06A;
}
.cast-toggle input:checked + .toggle-track::after {
  transform: translateX(18px);
}
.cast-toggle .toggle-text {
  font-size: 0.9rem;
  color: #111417;
}
.image-active-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  user-select: none;
}
.image-active-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  border: none !important;
  font-size: inherit;
}
.image-active-toggle .toggle-track {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 18px;
  background: #6F6A61;
  border: none !important;
  border-radius: 9px;
  transition: background 0.2s;
  flex-shrink: 0;
  box-sizing: content-box;
}
.image-active-toggle .toggle-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}
.image-active-toggle input:checked + .toggle-track {
  background: #B8A06A;
}
.image-active-toggle input:checked + .toggle-track::after {
  transform: translateX(20px);
}
.image-active-toggle .toggle-text {
  font-size: 0.68rem;
  color: #6F6A61;
  font-weight: normal;
}
.mail-card {
  border: 1px solid #D8C7A5;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
  background: #FFFFFF;
}
.mail-card > .cast-section {
  border: none;
  border-radius: 0;
  margin-bottom: 0;
  padding: 20px 24px;
}
.mail-card--padded {
  padding: 24px 28px;
}
.mail-card--overflow {
  overflow: auto !important;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 767.98px) {
  .mail-card--overflow .mail-table {
    width: max-content;
    min-width: 100%;
  }
}
.mail-card--padded > .cast-section {
  border: none;
  border-radius: 0;
  padding: 0;
  background: none;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  border-bottom: 1px solid #D8C7A5;
  background: #FFFFFF;
}
.mail-record-count {
  font-size: 0.8rem;
  color: #6F6A61;
}
.mail-record-count i {
  margin-right: 6px;
  color: #B8A06A;
}
.mail-record-count strong {
  color: #B8A06A;
  font-weight: 400;
  margin-left: 4px;
}
.mail-table-scroll,
.tbl-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 767.98px) {
  .mail-table-scroll .mail-table,
  .tbl-scroll-wrap .mail-table {
    width: max-content;
    min-width: 100%;
  }
}
.mail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.mail-table--fixed {
  table-layout: fixed;
}
.mail-table--center th,
.mail-table--center td {
  text-align: center;
}
.mail-table .text-center {
  text-align: center;
}
.mail-table thead tr {
  background: #F4F0E8;
}
.mail-table th {
  padding: 10px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6F6A61;
  text-align: center;
  border-bottom: 1px solid #D8C7A5;
  white-space: nowrap;
}
.mail-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #D8C7A5;
  color: #111417;
  vertical-align: middle;
}
.mail-table tbody tr:last-child td {
  border-bottom: none;
}
.mail-table tbody tr:nth-child(even) td {
  background: rgba(0, 0, 0, 0.025);
}
.mail-table tbody tr:hover td {
  background: rgba(184, 160, 106, 0.08);
}
.mail-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}
.mail-actions .btn {
  padding: 0 14px;
  height: 32px;
  line-height: 30px;
  font-size: 0.75rem;
  font-weight: 500;
  min-width: 0;
  white-space: nowrap;
  box-sizing: border-box;
}
.alert {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 0.8rem;
}
.alert-warning {
  background: #fff8e1;
  border: 1px solid #ffe082;
  color: #7a5f00;
}
.alert-danger {
  background: #fdecea;
  border: 1px solid #f5c6cb;
  color: #7a1f1f;
}
.alert-success {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #1b5e20;
}
.card-header .badge {
  margin-left: 10px;
}
.field-note {
  color: #6F6A61;
  font-size: 0.75rem;
}
.date-range-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.date-range-row input {
  width: 160px;
}
.date-range-sep {
  color: #6F6A61;
  font-size: 0.8rem;
  white-space: nowrap;
  flex-shrink: 0;
}
select.cast-cup-select {
  width: 64px;
  padding: 7px 6px;
  border: 1px solid #D8C7A5;
  border-radius: 4px;
  font-size: 0.75rem;
}
.cast-question-grid {
  margin-top: 12px;
}
.token-url-row {
  margin-top: 10px;
}
.text-mono {
  font-family: monospace;
  word-break: break-all;
}
.form-inline {
  display: contents;
}
.fw-bold {
  font-weight: bold;
}
.td-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 767.98px) {
  .filter-check-group .cast-search-input {
    min-width: 0;
    flex: 1;
  }
  .title-block {
    flex-wrap: wrap;
    gap: 10px;
  }
  .title-actions {
    width: 100%;
    margin-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .title-actions .btn {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
  }
  .cast-search-area {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
    gap: 6px;
  }
  .cast-search-form {
    flex: 1;
    min-width: 0;
  }
  .cast-search-input {
    min-width: 0;
    width: 100%;
    flex: 1;
  }
  .cast-counts {
    flex-direction: column;
    gap: 8px;
  }
  .cast-counts .status-card {
    min-width: 0;
    width: 100%;
  }
  .cast-action-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .cast-action-nav {
    flex-wrap: wrap;
  }
  .cast-action-nav .btn {
    min-width: 0;
    flex: 1 1 calc(50% - 4px);
  }
  .cast-action-ops {
    flex-wrap: wrap;
  }
  .cast-action-ops .btn {
    min-width: 0;
    flex: 1 1 calc(50% - 4px);
  }
  .filter-card-body {
    flex-direction: column;
    align-items: stretch;
  }
  .magu-section-label {
    width: auto;
  }
  .magu-add-form {
    flex: none;
  }
  .magu-filter-form {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .magu-filter-field {
    display: grid;
    grid-template-columns: 3fr 7fr;
    align-items: center;
    width: 100%;
  }
  .magu-filter-field select,
  .magu-filter-field input[type="text"],
  .magu-filter-field input[type="email"] {
    width: 100%;
    min-width: 0;
  }
  .magu-filter-actions {
    margin-left: 0;
  }
  .magu-filter-actions .btn {
    flex: 1;
  }
  .magu-table-header {
    flex-wrap: wrap;
  }
}
/* Controls */
#controls {
  width: 100%;
  background-color: #eeeeee;
}
#controls .row {
  align-items: center;
  font-size: 0.75rem;
}
@media (max-width: 575.98px) {
  #controls {
    display: grid;
    gap: 5px;
  }
  .row {
    display: grid;
    gap: 5px;
  }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  #controls {
    display: grid;
    gap: 10px;
  }
  .row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  #controls {
    display: grid;
    gap: 10px;
  }
  .row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  #controls {
    display: grid;
    gap: 10px;
  }
  .row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  #controls {
    display: grid;
    gap: 10px;
  }
  .row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}
@media (min-width: 1400px) {
  #controls {
    display: grid;
    gap: 10px;
  }
  .row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}
#controls #CountTotal,
#controls #FilterButtons,
#controls #ImportButtons,
#controls #OperationsButtons,
#controls #PageNavigation {
  display: grid;
  align-items: stretch;
}
#controls #CountTotal .active,
#controls #FilterButtons .active,
#controls #ImportButtons .active,
#controls #OperationsButtons .active,
#controls #PageNavigation .active {
  background-color: rgba(184, 160, 106, 0.3);
}
#controls #CountTotal input,
#controls #FilterButtons input,
#controls #ImportButtons input,
#controls #OperationsButtons input,
#controls #PageNavigation input,
#controls #CountTotal select,
#controls #FilterButtons select,
#controls #ImportButtons select,
#controls #OperationsButtons select,
#controls #PageNavigation select {
  padding: 0.575rem 0.75rem;
  font-size: 0.75rem;
}
#controls #AddForm label,
#controls #FilterForm label,
#controls #SearchForm label {
  margin: 0;
  font-size: 0.75rem;
}
#controls #AddForm input,
#controls #FilterForm input,
#controls #SearchForm input,
#controls #AddForm select,
#controls #FilterForm select,
#controls #SearchForm select {
  display: inline-block;
  padding: 0.425rem 0.75rem;
  box-sizing: border-box;
  border: 1px solid #111417;
  background-color: #eeeeee;
  color: #111417;
  font-size: 0.75rem;
}
#controls #AddForm .btn,
#controls #FilterForm .btn,
#controls #SearchForm .btn {
  white-space: nowrap;
}
#controls #AddForm .btn:last-of-type,
#controls #FilterForm .btn:last-of-type,
#controls #SearchForm .btn:last-of-type {
  margin-right: 0;
}
#controls #AddForm form,
#controls #SearchForm form {
  display: flex;
  align-items: center;
  gap: 10px;
}
#controls #AddForm form input,
#controls #SearchForm form input {
  flex: 1;
  align-self: stretch;
  width: 75%;
}
#controls #AddForm form button,
#controls #SearchForm form button,
#controls #AddForm form a.btn,
#controls #SearchForm form a.btn {
  width: 25%;
}
#controls #CountTotal {
  padding: 0.425rem 0.75rem;
  background-color: #eeeeee;
  font-size: 0.9rem;
  text-align: left;
}
#controls #CountTotal p {
  margin: 0;
  padding: 0;
}
#controls #FilterButtons {
  font-size: 0.75rem;
  gap: 10px;
}
#controls #sortButtons {
  justify-content: space-between;
}
#controls #sortButtons .btn {
  flex: 0 0 40%;
}
#controls #sortButtons .checkbox-toggle {
  flex: 0 0 20%;
}
#controls #PageNavigation .btn {
  box-sizing: border-box;
  background-color: #111417;
  color: #FFFFFF;
}
#controls #ImportButtons .checkbox-toggle,
#controls #OperationsButtons .checkbox-toggle {
  flex: 0 0 20%;
}
#controls #ImportButtons .btn {
  flex: 1;
  align-self: stretch;
  height: auto;
}
@media (max-width: 575.98px) {
  #controls {
    margin-bottom: 25px;
    padding: 5px;
  }
  #controls .row:first-child {
    margin: 0;
  }
  #controls #CountTotal {
    padding: 5px;
  }
  #controls #SearchForm form {
    gap: 5px;
  }
  #controls #FilterForm form > div {
    display: flex;
    margin-bottom: 5px;
    gap: 5px;
  }
  #controls #FilterForm label {
    align-self: stretch;
    width: 25%;
    height: auto;
  }
  #controls #FilterForm select,
  #controls #FilterForm input[type="text"] {
    flex: 1;
    align-self: stretch;
    width: 75%;
    height: auto;
  }
  #controls #FilterForm button,
  #controls #FilterForm a.btn {
    flex: 1;
    max-width: 50%;
  }
  #controls #FilterButtons {
    gap: 5px;
  }
  #controls #FilterButtons .btn {
    position: relative;
    display: flex;
    flex: 1 1 calc(50% - 5px);
    justify-content: center;
    align-items: center;
    align-self: stretch;
    height: auto;
    margin: 0;
    padding: 0.575rem 0.75rem;
  }
  #controls #sortButtons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }
  #controls #sortButtons .btn {
    flex: 1 1 calc(50% - 5px);
  }
  #controls #sortButtons .checkbox-toggle {
    flex: 1;
    width: 100%;
  }
  #controls #ImportButtons,
  #controls #OperationsButtons,
  #controls #PageNavigation {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
  }
  #controls #OperationsButtons .checkbox-toggle {
    flex: 1;
    width: 100%;
  }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  #controls {
    margin-bottom: 25px;
    padding: 10px;
  }
  #controls .row:first-child {
    margin: 0;
  }
  #controls #CountTotal {
    margin-bottom: 5px;
    padding: 5px;
  }
  #controls #SearchForm form {
    gap: 5px;
  }
  #controls #FilterForm form > div {
    display: flex;
    margin-bottom: 5px;
    gap: 5px;
  }
  #controls #FilterForm form > div:last-child {
    margin: 0;
  }
  #controls #FilterForm label {
    align-self: stretch;
    width: 25%;
    height: auto;
  }
  #controls #FilterForm select,
  #controls #FilterForm input[type="text"] {
    flex: 1;
    align-self: stretch;
    width: 75%;
    height: auto;
  }
  #controls #FilterForm button,
  #controls #FilterForm a.btn {
    flex: 1;
    max-width: 50%;
  }
  #controls #FilterButtons {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
  }
  #controls #FilterButtons .btn {
    position: relative;
    display: flex;
    flex: 1 1 calc(50% - 5px);
    justify-content: center;
    align-items: center;
    align-self: stretch;
    height: auto;
    margin: 0;
    padding: 0.575rem 0.75rem;
  }
  #controls #OperationsButtons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }
  #controls #OperationsButtons .btn {
    flex: 1 1 calc(50% - 5px);
    margin: 0;
    padding: 0.575rem 0.75rem;
    box-sizing: border-box;
  }
  #controls #OperationsButtons .checkbox-toggle {
    flex: 1;
    width: 100%;
  }
  #controls #sortButtons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
  }
  #controls #sortButtons .btn {
    margin: 0;
  }
  #controls #sortButtons .checkbox-toggle {
    flex: 1;
    width: 100%;
  }
  #controls #PageNavigation {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
  }
  #controls #PageNavigation .btn {
    margin: 0;
  }
  #controls #ImportButtons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
  }
  #controls #ImportButtons .btn {
    margin: 0;
  }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  #controls {
    margin-bottom: 25px;
    padding: 10px;
  }
  #controls .row:first-child {
    margin: 0;
  }
  #controls #CountTotal {
    margin-bottom: 5px;
    padding: 5px;
  }
  #controls #FilterButtons,
  #controls #ImportButtons,
  #controls #PageNavigation,
  #controls #sortButtons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
  }
  #controls #FilterButtons .btn,
  #controls #ImportButtons .btn,
  #controls #PageNavigation .btn,
  #controls #sortButtons .btn {
    margin: 0;
  }
  #controls #FilterButtons .btn {
    position: relative;
    display: flex;
    flex: 1 1 calc(50% - 5px);
    justify-content: center;
    align-items: center;
    align-self: stretch;
    height: auto;
    padding: 0.575rem 0.75rem;
  }
  #controls #FilterForm form > div {
    display: flex;
    margin-bottom: 5px;
    gap: 5px;
  }
  #controls #FilterForm label {
    align-self: stretch;
    width: 25%;
    height: auto;
  }
  #controls #FilterForm select,
  #controls #FilterForm input[type="text"] {
    flex: 1;
    align-self: stretch;
    width: 75%;
    height: auto;
  }
  #controls #FilterForm button,
  #controls #FilterForm a.btn {
    flex: 1;
    max-width: 50%;
  }
  #controls #OperationsButtons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }
  #controls #OperationsButtons .btn {
    flex: 1 1 calc(50% - 5px);
    margin: 0;
    padding: 0.575rem 0.75rem;
    box-sizing: border-box;
  }
  #controls #OperationsButtons .checkbox-toggle {
    flex: 1;
    width: 100%;
  }
  #controls #SearchForm form {
    gap: 5px;
  }
  #controls #sortButtons .checkbox-toggle {
    flex: 1;
    width: 100%;
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  #controls {
    margin-bottom: 25px;
    padding: 25px;
  }
  #controls .active {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
  }
  #controls a {
    position: relative;
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    height: 100%;
  }
  #controls .btn {
    margin: 0;
    padding: 0.575rem 0.75rem;
    text-align: center;
  }
  #controls .checkbox-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  #controls #FilterButtons,
  #controls #ImportButtons,
  #controls #OperationsButtons,
  #controls #PageNavigation {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  #controls form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }
  #controls .row:first-child {
    margin: 0;
  }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  #controls {
    margin-bottom: 25px;
    padding: 25px;
  }
  #controls .active {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
  }
  #controls a {
    position: relative;
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    height: 100%;
  }
  #controls .btn {
    margin: 0;
    padding: 0.575rem 0.75rem;
    text-align: center;
  }
  #controls .checkbox-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  #controls #FilterButtons,
  #controls #ImportButtons,
  #controls #OperationsButtons,
  #controls #PageNavigation {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  #controls form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }
  #controls .row:first-child {
    margin: 0;
  }
}
@media (min-width: 1400px) {
  #controls {
    margin-bottom: 25px;
    padding: 25px;
  }
  #controls .row:first-child {
    margin: 0;
  }
  #controls .btn {
    margin: 0;
    padding: 0.575rem 0.75rem;
    text-align: center;
  }
  #controls a {
    position: relative;
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    height: 100%;
  }
  #controls .active {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
  }
  #controls #FilterButtons,
  #controls #ImportButtons,
  #controls #OperationsButtons,
  #controls #PageNavigation {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  #controls .checkbox-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
  }
}
/* Page */
@media (max-width: 575.98px) {
  #analytics #controls .row {
    grid-template-columns: repeat(1, 1fr);
  }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  #analytics #controls .row {
    grid-template-columns: repeat(1, 1fr);
  }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  #analytics #controls .row {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  #analytics #controls .row {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  #analytics #controls .row {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1400px) {
  #analytics #controls .row {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 575.98px) {
  #analyticsCast #controls .row {
    grid-template-columns: repeat(1, 1fr);
  }
  #analyticsCast #controls .row #ImportButtons {
    grid-template-columns: repeat(1, 1fr);
  }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  #analyticsCast #controls .row {
    grid-template-columns: repeat(1, 1fr);
  }
  #analyticsCast #controls .row #ImportButtons {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  #analyticsCast #controls .row {
    grid-template-columns: repeat(1, 1fr);
  }
  #analyticsCast #controls .row #ImportButtons {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  #analyticsCast #controls .row {
    grid-template-columns: repeat(2, 1fr);
  }
  #analyticsCast #controls .row #ImportButtons {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  #analyticsCast #controls .row {
    grid-template-columns: repeat(2, 1fr);
  }
  #analyticsCast #controls .row #ImportButtons {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 1400px) {
  #analyticsCast #controls .row {
    grid-template-columns: repeat(2, 1fr);
  }
  #analyticsCast #controls .row #ImportButtons {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  #banner #banner #controls .row {
    grid-template-columns: repeat(2, 1fr);
  }
  #banner #banner #controls .row #FilterButtons {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  #banner #banner #controls .row {
    grid-template-columns: repeat(2, 1fr);
  }
  #banner #banner #controls .row #FilterButtons {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  #banner #banner #controls .row {
    grid-template-columns: repeat(2, 1fr);
  }
  #banner #banner #controls .row #FilterButtons {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 1400px) {
  #banner #banner #controls .row {
    grid-template-columns: repeat(2, 1fr);
  }
  #banner #banner #controls .row #FilterButtons {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  #cast #controls .row {
    grid-template-columns: repeat(1, 1fr);
  }
  #cast #controls .row #PageNavigation {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  #cast #controls .row {
    grid-template-columns: repeat(1, 1fr);
  }
  #cast #controls .row #PageNavigation {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  #cast #controls .row {
    grid-template-columns: repeat(1, 1fr);
  }
  #cast #controls .row #PageNavigation {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  #cast #controls .row #PageNavigation {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 1400px) {
  #cast #controls .row #PageNavigation {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 992px) {
  #castList #controls .row:first-child {
    grid-template-columns: repeat(4, 1fr);
  }
  #castList #controls .row:first-child > div:first-child {
    grid-column: 1;
  }
  #castList #controls .row:first-child > div:last-child {
    grid-column: 4;
  }
  #castList #controls .row:last-child {
    grid-template-columns: repeat(2, 1fr);
  }
  #castList #OperationsButtons button:nth-of-type(1) {
    grid-column: 2;
  }
  #castList #OperationsButtons button:nth-of-type(2) {
    grid-column: 3;
  }
  #castList #OperationsButtons label {
    grid-column: 4;
  }
}
@media (max-width: 575.98px) {
  #enquete #controls .row {
    grid-template-columns: repeat(1, 1fr);
  }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  #enquete #controls .row {
    grid-template-columns: repeat(1, 1fr);
  }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  #enquete #controls .row {
    grid-template-columns: repeat(1, 1fr);
  }
  #enquete #controls .row p {
    margin: 0;
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  #enquete #controls .row {
    grid-template-columns: repeat(1, 1fr);
  }
  #enquete #controls .row #FilterForm form {
    display: flex;
    gap: 10px;
  }
  #enquete #controls .row #FilterForm form > div {
    display: flex;
  }
  #enquete #controls .row #FilterForm form .form-buttons {
    display: flex;
    gap: 10px;
  }
  #enquete #controls .row #FilterForm form a.btn {
    flex-grow: 0;
  }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  #enquete #controls .row {
    grid-template-columns: repeat(1, 1fr);
  }
  #enquete #controls .row #FilterForm form {
    display: flex;
    gap: 10px;
  }
  #enquete #controls .row #FilterForm form > div {
    display: flex;
  }
  #enquete #controls .row #FilterForm form .form-buttons {
    display: flex;
    gap: 10px;
  }
  #enquete #controls .row #FilterForm form a.btn {
    flex-grow: 0;
  }
}
@media (min-width: 1400px) {
  #enquete #controls .row {
    grid-template-columns: repeat(1, 1fr);
  }
  #enquete #controls .row #FilterForm form {
    display: flex;
    gap: 10px;
  }
  #enquete #controls .row #FilterForm form > div {
    display: flex;
  }
  #enquete #controls .row #FilterForm form .form-buttons {
    display: flex;
    gap: 10px;
  }
  #enquete #controls .row #FilterForm form a.btn {
    flex-grow: 0;
  }
}
@media (max-width: 575.98px) {
  #mailmagazine #controls .row {
    grid-template-columns: repeat(1, 1fr);
  }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  #mailmagazine #controls .row {
    grid-template-columns: repeat(1, 1fr);
  }
  #mailmagazine #controls .row #OperationsButtons {
    margin: 0;
  }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  #mailmagazine #controls {
    margin-bottom: 25px;
  }
  #mailmagazine #controls .row {
    grid-template-columns: repeat(1, 1fr);
  }
  #mailmagazine #controls .row #OperationsButtons {
    margin: 0;
    padding: 10px;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  #mailmagazine #controls .row {
    grid-template-columns: repeat(1, 1fr);
  }
  #mailmagazine #controls .row #OperationsButtons {
    margin: 0;
  }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  #mailmagazine #controls .row {
    grid-template-columns: repeat(2, 1fr);
  }
  #mailmagazine #controls .row #OperationsButtons {
    margin: 0;
  }
}
@media (min-width: 1400px) {
  #mailmagazine #controls .row {
    grid-template-columns: repeat(2, 1fr);
  }
  #mailmagazine #controls .row #OperationsButtons {
    margin: 0;
  }
}
@media (max-width: 575.98px) {
  #mailmagazineUser #controls .row {
    grid-template-columns: repeat(1, 1fr);
  }
  #mailmagazineUser #controls .row p {
    margin: 0;
  }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  #mailmagazineUser #controls .row {
    grid-template-columns: repeat(1, 1fr);
  }
  #mailmagazineUser #controls .row p {
    margin: 0;
  }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  #mailmagazineUser #controls .row {
    grid-template-columns: repeat(2, 1fr);
  }
  #mailmagazineUser #controls .row p {
    margin: 0;
  }
  #mailmagazineUser .row:last-child {
    grid-template-columns: repeat(1, 1fr) !important;
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  #mailmagazineUser #controls .row {
    grid-template-columns: repeat(2, 1fr);
  }
  #mailmagazineUser #controls .row p {
    margin: 0;
  }
  #mailmagazineUser #controls .row #FilterForm form {
    display: flex;
    gap: 10px;
  }
  #mailmagazineUser #controls .row #FilterForm form > div {
    display: flex;
  }
  #mailmagazineUser #controls .row #FilterForm form .form-buttons {
    display: flex;
    gap: 10px;
  }
  #mailmagazineUser #controls .row #FilterForm form a.btn {
    flex-grow: 0;
  }
  #mailmagazineUser #controls .row:last-child {
    grid-template-columns: repeat(1, 1fr);
  }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  #mailmagazineUser #controls .row {
    grid-template-columns: repeat(4, 1fr);
  }
  #mailmagazineUser #controls .row p {
    margin: 0;
  }
  #mailmagazineUser #controls .row #FilterForm form {
    display: flex;
    gap: 10px;
  }
  #mailmagazineUser #controls .row #FilterForm form > div {
    display: flex;
  }
  #mailmagazineUser #controls .row #FilterForm form .form-buttons {
    display: flex;
    gap: 10px;
  }
  #mailmagazineUser #controls .row #FilterForm form a.btn {
    flex-grow: 0;
  }
  #mailmagazineUser #controls .row:last-child {
    grid-template-columns: repeat(1, 1fr);
  }
}
@media (min-width: 1400px) {
  #mailmagazineUser #controls .row {
    grid-template-columns: repeat(4, 1fr);
  }
  #mailmagazineUser #controls .row p {
    margin: 0;
  }
  #mailmagazineUser #controls .row #FilterForm form {
    display: flex;
    gap: 10px;
  }
  #mailmagazineUser #controls .row #FilterForm form > div {
    display: flex;
  }
  #mailmagazineUser #controls .row #FilterForm form .form-buttons {
    display: flex;
    gap: 10px;
  }
  #mailmagazineUser #controls .row #FilterForm form a.btn {
    flex-grow: 0;
  }
  #mailmagazineUser #controls .row:last-child {
    grid-template-columns: repeat(1, 1fr);
  }
}
@media (max-width: 575.98px) {
  #mypage #controls .row #ImportButtons {
    grid-template-columns: repeat(1, 1fr);
  }
}
@media (min-width: 1400px) {
  #mypage #controls .row {
    grid-template-columns: repeat(2, 1fr);
  }
  #mypage #controls .row > div {
    grid-column: 1;
  }
  #mypage #controls .row:first-child > div:last-child {
    grid-column: 4;
  }
}
#profileApprove .profile-filter-tabs {
  display: flex;
  gap: 6px;
}
#profileApprove .profile-filter-tabs .btn {
  position: relative;
}
#profileApprove .profile-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 18px;
  padding: 0 6px;
  border-radius: 3px;
  background: #8F7A4D;
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 700;
  margin-left: 4px;
  vertical-align: middle;
}
#profileApprove .profile-search-form {
  display: flex;
  align-items: center;
  gap: 6px;
}
#profileApprove .profile-search-form input[type="text"] {
  height: 36px;
  padding: 0 10px;
  border: 1px solid #D8C7A5;
  border-radius: 3px;
  font-size: 0.75rem;
  color: #1F1F1F;
  background: #FFFFFF;
  box-sizing: border-box;
}
#profileApprove .profile-search-form input[type="text"]:focus {
  outline: none;
  border-color: #B8A06A;
}
#profileApprove .castList .item {
  text-align: center !important;
}
#profileApprove .cast-card-date {
  display: block;
  font-size: 0.55rem;
  color: #6F6A61;
  margin-top: 2px;
}
#profileApprove .item.one-week,
#profileApprove .item.three-days,
#profileApprove .item.one-day {
  border: none !important;
}
#profileApprove .item.one-week {
  box-shadow: 0 0 0 2px #8090c0 !important;
}
#profileApprove .item.three-days {
  box-shadow: 0 0 0 2px #CC2200 !important;
}
#profileApprove .item.one-day {
  box-shadow: 0 0 0 2px #F39C12 !important;
}
@media (max-width: 767px) {
  #profileApprove .title-actions {
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }
  #profileApprove .profile-filter-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }
  #profileApprove .profile-filter-tabs .btn {
    justify-content: center;
  }
  #profileApprove .profile-search-form {
    width: 100%;
  }
  #profileApprove .profile-search-form input[type="text"] {
    flex: 1;
    width: 0;
  }
}
@media (min-width: 992px) {
  #schedule #controls .row:first-child {
    grid-template-columns: repeat(4, 1fr);
  }
  #schedule #controls .row:first-child > div:first-child {
    grid-column: 1;
  }
  #schedule #controls .row:first-child > div:last-child {
    grid-column: 4;
  }
  #schedule #controls .row:last-child {
    grid-template-columns: repeat(2, 1fr);
  }
  #schedule #OperationsButtons button:nth-of-type(1) {
    grid-column: 2;
  }
  #schedule #OperationsButtons button:nth-of-type(2) {
    grid-column: 3;
  }
  #schedule #OperationsButtons label {
    grid-column: 4;
  }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  #status #controls .row {
    grid-template-columns: repeat(1, 1fr);
  }
  #status #FilterButtons {
    grid-template-columns: repeat(5, 1fr);
  }
  #status #SearchForm {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  #status #SearchForm form {
    grid-column: 2;
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  #status #controls .row {
    grid-template-columns: repeat(2, 1fr);
  }
  #status #FilterButtons {
    grid-template-columns: repeat(5, 1fr);
  }
  #status #OperationsButtons {
    grid-template-columns: repeat(3, 1fr);
  }
  #status #SearchForm {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  #status #SearchForm form {
    grid-column: 2;
  }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  #status #controls .row {
    grid-template-columns: repeat(2, 1fr);
  }
  #status #FilterButtons {
    grid-template-columns: repeat(5, 1fr);
  }
  #status #OperationsButtons {
    grid-template-columns: repeat(3, 1fr);
  }
  #status #SearchForm {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  #status #SearchForm form {
    grid-column: 2;
  }
}
@media (min-width: 1400px) {
  #status #controls .row {
    grid-template-columns: repeat(2, 1fr);
  }
  #status #FilterButtons {
    grid-template-columns: repeat(5, 1fr);
  }
  #status #OperationsButtons {
    grid-template-columns: repeat(3, 1fr);
  }
  #status #SearchForm {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  #status #SearchForm form {
    grid-column: 2;
  }
}
#statusFilter #controls .row select {
  border: 1px solid #111417;
  color: #111417;
  background-color: #eeeeee;
}
#task-tracking #controls #FilterButtons {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 575.98px) {
  #task-tracking #controls #FilterButtons {
    grid-template-columns: repeat(1, 1fr);
  }
  #task-tracking #controls #OperationsButtons {
    grid-template-columns: repeat(1, 1fr);
  }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  #task-tracking #controls .row:first-child {
    grid-template-columns: repeat(1, 1fr);
  }
  #task-tracking #controls .row:last-child {
    grid-template-columns: repeat(1, 1fr);
  }
  #task-tracking #controls #FilterButtons {
    grid-template-columns: repeat(3, 1fr);
  }
  #task-tracking #controls #OperationsButtons {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  #task-tracking #controls .row:first-child {
    grid-template-columns: repeat(2, 1fr);
  }
  #task-tracking #controls .row:first-child > div:first-child {
    grid-column: 1;
  }
  #task-tracking #controls .row:first-child > div:last-child {
    grid-column: 4;
  }
  #task-tracking #controls .row:last-child {
    grid-template-columns: repeat(1, 1fr);
  }
  #task-tracking #controls #OperationsButtons {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  #task-tracking #controls .row:first-child {
    grid-template-columns: repeat(4, 1fr);
  }
  #task-tracking #controls .row:first-child > div:first-child {
    grid-column: 1;
  }
  #task-tracking #controls .row:first-child > div:last-child {
    grid-column: 4;
  }
  #task-tracking #controls .row:last-child {
    grid-template-columns: repeat(2, 1fr);
  }
  #task-tracking #controls #OperationsButtons {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  #task-tracking #controls .row:first-child {
    grid-template-columns: repeat(4, 1fr);
  }
  #task-tracking #controls .row:first-child > div:first-child {
    grid-column: 1;
  }
  #task-tracking #controls .row:first-child > div:last-child {
    grid-column: 4;
  }
  #task-tracking #controls .row:last-child {
    grid-template-columns: repeat(2, 1fr);
  }
  #task-tracking #controls #OperationsButtons {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1400px) {
  #task-tracking #controls .row:first-child {
    grid-template-columns: repeat(4, 1fr);
  }
  #task-tracking #controls .row:first-child > div:first-child {
    grid-column: 1;
  }
  #task-tracking #controls .row:first-child > div:last-child {
    grid-column: 4;
  }
  #task-tracking #controls .row:last-child {
    grid-template-columns: repeat(2, 1fr);
  }
  #task-tracking #controls #OperationsButtons {
    grid-template-columns: repeat(2, 1fr);
  }
}
.btn-outline {
  background: #FFFFFF;
  color: #111417;
  border-color: #D8C7A5;
}
.btn-outline:hover {
  border-color: #B8A06A;
  color: #B8A06A;
  background: #F3EEDF;
}
.btn-accent {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 18px;
  background: #F3EEDF;
  color: #B8A06A;
  border: 1px solid #B8A06A;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: none;
  gap: 4px;
  border-radius: 3px;
  transition: background 0.15s, color 0.15s;
}
.btn-accent:hover {
  background: #B8A06A;
  color: #FFFFFF;
  border-color: #B8A06A;
}
.pagination {
  display: flex;
  justify-content: center;
  margin: 24px 0 8px;
}
.pagination ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pagination li a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #D8C7A5;
  border-radius: 4px;
  background: #FFFFFF;
  color: #111417;
  font-size: 0.75rem;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pagination li a:hover {
  background: #F3EEDF;
  border-color: #B8A06A;
  color: #B8A06A;
}
.pagination li.active a {
  background: #B8A06A;
  border-color: #B8A06A;
  color: #FFFFFF;
  font-weight: 700;
  pointer-events: none;
}
.pagination li.first a,
.pagination li.last a {
  font-size: 0.65rem;
  color: #6F6A61;
}
.pagination li.prev a,
.pagination li.next a {
  font-size: 0.75rem;
}
#castList .castList .ui-sortable-placeholder {
  visibility: visible !important;
  background: #F3EEDF;
  border: 2px dashed #B8A06A;
  border-radius: 4px;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0.6;
}
#castList .castList .item {
  display: block !important;
  position: relative !important;
  margin: 0 !important;
  padding: 5px !important;
  max-width: none !important;
  width: auto !important;
  flex: none !important;
  text-align: center !important;
  vertical-align: unset !important;
  border: none !important;
  background: #FFFFFF !important;
  border-radius: 4px;
  overflow: hidden;
  cursor: grab;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.15s, transform 0.15s;
}
#castList .castList .item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}
#castList .castList .item:active {
  cursor: grabbing;
}
#castList .castList .item a {
  display: block;
  text-align: center;
}
#castList .castList .item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  height: auto;
  border-radius: 2px;
}
#castList .castList .item .new-label {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #B8A06A;
  color: #FFFFFF;
  font-size: 0.55rem;
  padding: 2px 5px;
  border-radius: 0 2px 0 2px;
  letter-spacing: 0.1em;
  font-weight: 700;
  z-index: 3;
  line-height: 1.4;
}
#castList .castList .item .thumb-checkbox {
  position: absolute;
  top: 0;
  left: 5px;
  display: none;
  z-index: 4;
  margin: 0;
  width: 15px;
  height: 15px;
  accent-color: #B8A06A;
  cursor: pointer;
}
#castList .castList.show-checkboxes .thumb-checkbox {
  display: block;
}
#castList .days-notice {
  color: #28a745;
}
#castList .days-warning {
  color: #d4600a;
  font-weight: 500;
}
#castList .days-danger {
  color: #cc2200;
  font-weight: 600;
}
#castList .cast-edit-toggle.active {
  border-color: #B8A06A;
  color: #B8A06A;
}
#castList #saveSortOrderTop,
#castList #saveSortOrder {
  min-width: 140px;
  justify-content: center;
}
#castList .button-group {
  width: auto;
  padding: 0;
  margin: 16px 0 0;
  text-align: left;
}
#castList .cast-empty {
  grid-column: 1 / -1;
}
#recommend .recommend-section {
  background: #FFFFFF;
  border: 1px solid #D8C7A5;
  border-radius: 6px;
  padding: 20px 20px 24px;
  margin-bottom: 16px;
}
#recommend .recommend-save-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
#recommend .recommend-save-bar .btn {
  min-width: 120px;
  justify-content: center;
}
#recommend #currentRecommendList {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 8px !important;
  width: 40%;
  margin: 0 auto !important;
  position: relative;
  flex-wrap: unset !important;
  justify-content: unset !important;
  min-height: 80px;
}
#recommend #currentRecommendList::after {
  display: none !important;
}
#recommend #currentRecommendList .ui-sortable-placeholder {
  visibility: visible !important;
  background: #F3EEDF !important;
  border: 2px dashed #B8A06A !important;
  border-radius: 4px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0.6 !important;
}
@media (max-width: 991px) {
  #recommend #currentRecommendList {
    width: 70%;
  }
}
@media (max-width: 767px) {
  #recommend #currentRecommendList {
    width: 100%;
  }
}
@media (max-width: 575px) {
  #recommend #currentRecommendList {
    width: 100%;
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
#recommend #currentRecommendList .item.recommend-item {
  display: block !important;
  position: relative !important;
  margin: 0 !important;
  padding: 5px !important;
  border: 1px solid #E8E1D6 !important;
  background: #FFFFFF !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  cursor: grab !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06) !important;
  transition: box-shadow 0.15s, transform 0.15s !important;
  vertical-align: unset !important;
  text-align: center !important;
  font-size: inherit !important;
}
#recommend #currentRecommendList .item.recommend-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
  transform: translateY(-2px) !important;
}
#recommend #currentRecommendList .item.recommend-item:active {
  cursor: grabbing !important;
}
#recommend #currentRecommendList .item.recommend-item img {
  width: 100% !important;
  aspect-ratio: 3/4 !important;
  object-fit: cover !important;
  display: block !important;
  height: auto !important;
  margin-bottom: 0 !important;
  border-radius: 2px !important;
}
#recommend #currentRecommendList .item.recommend-item .cast-card-info {
  padding: 6px 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
}
#recommend #currentRecommendList .item.recommend-item .cast-card-name {
  display: block !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  color: #111417 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  width: 100% !important;
  text-align: center !important;
}
#recommend #currentRecommendList .item.recommend-item .thumb-checkbox {
  display: none !important;
}
#recommend .recommend-num {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #B8A06A;
  color: #FFFFFF;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
#recommend .recommend-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 0;
  margin-bottom: 16px;
  color: #B8A06A;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}
#recommend .recommend-separator i {
  font-size: 0.9rem;
}
#recommend .castList.recommend-castlist {
  display: grid !important;
  grid-template-columns: repeat(14, 1fr);
  gap: 10px;
  flex-wrap: unset;
  justify-content: unset;
}
#recommend .castList.recommend-castlist::after {
  display: none;
}
@media (max-width: 1399px) {
  #recommend .castList.recommend-castlist {
    grid-template-columns: repeat(12, 1fr);
  }
}
@media (max-width: 1199px) {
  #recommend .castList.recommend-castlist {
    grid-template-columns: repeat(10, 1fr);
  }
}
@media (max-width: 991px) {
  #recommend .castList.recommend-castlist {
    grid-template-columns: repeat(8, 1fr);
  }
}
@media (max-width: 767px) {
  #recommend .castList.recommend-castlist {
    grid-template-columns: repeat(6, 1fr);
  }
}
@media (max-width: 575px) {
  #recommend .castList.recommend-castlist {
    grid-template-columns: repeat(3, 1fr);
  }
}
#recommend .item.recommend-cast-item {
  display: block !important;
  position: relative !important;
  margin: 0 !important;
  padding: 5px !important;
  max-width: none !important;
  width: auto !important;
  flex: none !important;
  text-align: center !important;
  vertical-align: unset !important;
  border: 1px solid #E8E1D6 !important;
  background: #FFFFFF !important;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.15s, transform 0.15s;
}
#recommend .item.recommend-cast-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}
#recommend .item.recommend-cast-item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  height: auto;
  border-radius: 2px;
}
#recommend .item.recommend-cast-item .cast-card-info {
  padding: 6px 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
}
#recommend .item.recommend-cast-item .cast-card-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: #111417;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  text-align: center;
}
#recommend .item.recommend-cast-item .thumb-checkbox {
  position: absolute;
  top: 0;
  left: 5px;
  display: block;
  z-index: 4;
  width: 15px;
  height: 15px;
  pointer-events: none;
}
#recommend .item.recommend-cast-item .thumb-checkbox input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #B8A06A;
  cursor: pointer;
}
#cast .cast-section {
  background: #FFFFFF;
  border: 1px solid #D8C7A5;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 16px;
}
#cast .cast-edit-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
#cast .cast-form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 0;
}
#cast .cast-form-2col > .cast-section {
  margin-bottom: 0;
}
#cast .cast-field {
  margin-bottom: 12px;
}
#cast .cast-field:last-child {
  margin-bottom: 0;
}
#cast .cast-field-label {
  display: block;
  font-family: 'Josefin Sans', 'Hiragino Kaku Gothic Pro W3', 'Meiryo', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #111417;
  margin-bottom: 4px;
}
#cast .cast-field-label .required {
  color: #cc3333;
  margin-left: 2px;
  font-weight: 700;
}
#cast .cast-field-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #D8C7A5;
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #111417;
  background: #FFFFFF;
  box-sizing: border-box;
  transition: border-color 0.15s;
  vertical-align: middle;
}
#cast .cast-field-input:focus {
  outline: none;
  border-color: #B8A06A;
}
#cast .cast-field-input::placeholder {
  color: #a29d94;
}
#cast select.cast-field-input {
  height: 38px;
  padding-top: 0;
  padding-bottom: 0;
}
#cast .cast-field-textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #D8C7A5;
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #111417;
  background: #FFFFFF;
  box-sizing: border-box;
  resize: vertical;
  transition: border-color 0.15s;
}
#cast .cast-field-textarea:focus {
  outline: none;
  border-color: #B8A06A;
}
#cast .cast-field-textarea::placeholder {
  color: #a29d94;
}
#cast #cast_comment3,
#cast #cast_comment1 {
  min-height: 200px;
}
#cast #cast_comment2 {
  min-height: unset;
  height: auto;
  resize: none;
}
#cast .cast-field-count {
  text-align: right;
  font-size: 0.68rem;
  color: #6F6A61;
  margin-top: 3px;
}
#cast .cast-field-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
#cast .cast-field-row .cast-field-input {
  flex: 1;
}
#cast .cast-field-unit {
  display: flex;
  align-items: center;
  gap: 6px;
}
#cast .cast-field-unit input {
  flex: 1;
}
#cast .cast-field-unit span {
  font-size: 0.75rem;
  color: #6F6A61;
  white-space: nowrap;
}
#cast .cast-time-row {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-bottom: 12px;
}
#cast .cast-time-row > .cast-field {
  flex: 1;
  margin-bottom: 0;
}
#cast .cast-time-sep {
  font-size: 0.75rem;
  color: #6F6A61;
  padding-bottom: 9px;
  flex-shrink: 0;
}
#cast .cast-field-radios {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 2px;
}
#cast .cast-radio {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Josefin Sans', 'Hiragino Kaku Gothic Pro W3', 'Meiryo', sans-serif;
  font-size: 0.75rem;
  color: #111417;
  cursor: pointer;
}
#cast .cast-radio input[type="radio"] {
  cursor: pointer;
  accent-color: #B8A06A;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin: 0;
  vertical-align: middle;
}
#cast .cast-field-bwh {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
#cast .cast-field-bwh label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #111417;
}
#cast .cast-field-bwh label input {
  width: 64px;
  padding: 7px 8px;
  border: 1px solid #D8C7A5;
  border-radius: 4px;
  font-size: 0.8rem;
  line-height: 1.5;
}
#cast .cast-field-bwh label input:focus {
  outline: none;
  border-color: #B8A06A;
}
#cast .cast-fetch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #111417;
  background: #FFFFFF;
  border: 1px solid #111417;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  line-height: 1.4;
}
#cast .cast-fetch-btn i {
  font-size: 0.75rem;
}
#cast .cast-fetch-btn:hover {
  background: #111417;
  color: #FFFFFF;
}
#cast .cast-profile-grid,
#cast .cast-question-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
}
#cast .cast-photo-layout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
#cast .cast-photo-main {
  flex: 0 0 75%;
  min-width: 0;
}
#cast .cast-photo-dropzone {
  flex: 0 0 calc(25% - 16px);
  border: 2px dashed #D8C7A5;
  border-radius: 6px;
  padding: 24px 12px;
  text-align: center;
  color: #6F6A61;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
#cast .cast-photo-dropzone:hover,
#cast .cast-photo-dropzone.drag-over {
  border-color: #B8A06A;
  background: #F3EEDF;
}
#cast .cast-photo-dropzone.drag-over {
  border-style: solid;
}
#cast .cast-photo-dropzone i {
  font-size: 1.6rem;
  color: #B8A06A;
}
#cast .cast-photo-dropzone p {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.5;
}
#cast .cast-thumb-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #111417;
  margin: 0 0 10px;
}
#cast .cast-options-list {
  display: flex;
  flex-direction: column;
}
#cast .cast-option-text {
  margin: 10px 0 0;
  padding: 8px 10px;
  background: #eeeeee;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #111417;
  line-height: 1.6;
  word-break: break-all;
}
#cast .cast-option-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #D8C7A5;
}
#cast .cast-option-row:last-child {
  border-bottom: none;
}
#cast .cast-option-name {
  font-size: 0.8rem;
  color: #111417;
}
#cast .cast-option-radios {
  display: flex;
  gap: 8px;
}
#cast .cast-option-radios label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: 'Josefin Sans', 'Hiragino Kaku Gothic Pro W3', 'Meiryo', sans-serif;
  font-size: 0.75rem;
  color: #6F6A61;
  white-space: nowrap;
  cursor: pointer;
}
#cast .cast-option-radios label input[type="radio"] {
  accent-color: #B8A06A;
  cursor: pointer;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin: 0;
  vertical-align: middle;
}
#cast .cast-others-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 24px;
}
#cast .cast-other-item .cast-other-radios {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
#cast .cast-other-item textarea {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #D8C7A5;
  border-radius: 4px;
  font-size: 0.68rem;
  color: #111417;
  background: #FFFFFF;
  box-sizing: border-box;
  resize: vertical;
  min-height: 52px;
}
#cast .cast-other-item textarea:focus {
  outline: none;
  border-color: #B8A06A;
}
#cast .cast-other-item textarea::placeholder {
  color: #a29d94;
}
#cast .cast-profile-url-section .token-history {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
#cast .cast-profile-url-section .token-history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 4px;
  background: #F4F0E8;
  border: 1px solid #D8C7A5;
  flex-wrap: wrap;
}
#cast .cast-profile-url-section .token-history-item.is-expired {
  opacity: 0.6;
}
#cast .cast-profile-url-section .token-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
  color: #111417;
}
#cast .cast-profile-url-section .token-status-badge::before {
  content: '';
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}
#cast .cast-profile-url-section .token-status-badge.badge-valid::before {
  background: #B8A06A;
}
#cast .cast-profile-url-section .token-status-badge.badge-expired::before {
  background: #6F6A61;
}
#cast .cast-profile-url-section .token-status-badge.badge-replied::before {
  background: #F39C12;
}
#cast .cast-profile-url-section .token-status-badge.badge-approved::before {
  background: #28A745;
}
#cast .cast-profile-url-section .token-history-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  flex: 1;
  min-width: 0;
}
#cast .cast-profile-url-section .token-meta-text {
  font-size: 0.75rem;
  color: #6F6A61;
  white-space: nowrap;
}
#cast .cast-profile-url-section .token-meta-sep {
  display: inline-block;
  width: 1px;
  height: 10px;
  background: #D8C7A5;
  margin: 0 10px;
  vertical-align: middle;
}
#cast .cast-profile-url-section .token-action {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
#cast .cast-profile-url-section .token-action input {
  width: 260px;
  font-size: 0.75rem;
}
#cast .cast-profile-url-section .token-action .btn {
  margin-bottom: 0;
}
#cast .cast-profile-url-section .token-controls .btn {
  margin-bottom: 0;
}
#cast .cast-form-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 0 8px;
}
#cast .cast-form-footer .btn {
  min-width: 160px;
  justify-content: center;
}
@media (min-width: 992px) {
  #cast #cast_comment3,
  #cast #cast_comment1 {
    min-height: 240px;
  }
}
@media (max-width: 991.98px) {
  #cast .cast-form-2col {
    grid-template-columns: 1fr;
  }
  #cast .cast-others-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  #cast .cast-profile-grid,
  #cast .cast-question-grid {
    grid-template-columns: 1fr;
  }
  #cast #cast_comment3,
  #cast #cast_comment1 {
    min-height: 140px;
  }
}
@media (max-width: 767.98px) {
  #cast #cast_comment3,
  #cast #cast_comment1 {
    min-height: 120px;
  }
}
@media (max-width: 575.98px) {
  #cast .cast-others-grid {
    grid-template-columns: 1fr;
  }
  #cast .cast-time-row {
    flex-wrap: wrap;
  }
}
@media (max-width: 767.98px) {
  #cast .title-block .cast-edit-nav {
    width: 100%;
    margin-bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  #cast .title-block .cast-edit-nav .btn {
    justify-content: center;
    white-space: nowrap;
    font-size: 0.68rem;
    padding: 0 8px;
  }
  #cast .cast-photo-layout {
    flex-direction: column;
  }
  #cast .cast-photo-main {
    flex: none;
    width: 100%;
  }
  #cast .cast-photo-dropzone {
    flex: none;
    width: 100%;
    padding: 16px 12px;
  }
  #cast .cast-form-2col {
    grid-template-columns: 1fr;
  }
  #cast .cast-profile-grid,
  #cast .cast-question-grid {
    grid-template-columns: 1fr;
  }
}
/* Login Page */
.auth {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: #111417;
  color: #111417;
}
.auth .auth-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
  width: 450px;
  min-height: 330px;
  background-color: #111417;
  color: #111417;
  -webkit-transform: translateY(-50%) translateX(-50%);
}
.auth .auth-container .section {
  border: 1px solid #D8C7A5;
  background-image: url("/img/logo.svg");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  color: #111417;
}
.auth .auth-container .auth-header {
  color: #111417;
  text-align: center;
  border-bottom: 1px solid #8F7A4D;
}
.auth .auth-container .auth-title {
  margin: 0;
  padding: 20px;
  color: #111417;
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 30px;
}
.auth .auth-container .auth-content {
  min-height: 260px;
  padding: 30px 50px;
  color: #111417;
}
.auth .btn {
  width: 100%;
  margin-top: 2rem;
  padding: 0.75rem 0.75rem;
}
@media (max-width: 575.98px) {
  .auth .auth-container .section {
    border: none;
  }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  .auth .auth-container .section {
    border: none;
  }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .section {
    margin-bottom: 15px;
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .section {
    margin-bottom: 20px;
  }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  #header,
  #footer {
    left: 0;
  }
}
@media (min-width: 1400px) {
  .section {
    margin-bottom: 25px;
  }
}
/* DASHBOARD Page */
#dashboard .section {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  margin-bottom: 32px;
}
#dashboard .status-summary {
  background: transparent;
}
#dashboard .status-summary h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #111417;
  font-family: 'Josefin Sans', 'Hiragino Kaku Gothic Pro W3', 'Meiryo', sans-serif;
}
#dashboard .status-summary h3::before {
  content: "";
  width: 20px;
  height: 1px;
  background: #B8A06A;
  flex-shrink: 0;
}
#dashboard .status-summary h3:first-child {
  margin-top: 0;
}
#dashboard .ranking-section {
  background: transparent;
}
#dashboard .ranking-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  align-items: stretch;
}
#dashboard .ranking-block {
  flex: 1;
  min-width: 0;
  background: #FFFFFF;
  border: 1px solid #D8C7A5;
  border-radius: 4px;
  box-shadow: none;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
}
#dashboard .ranking-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #E8E1D6;
  gap: 6px;
}
#dashboard .ranking-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111417;
  display: flex;
  align-items: center;
  gap: 8px;
}
#dashboard .ranking-title .ranking-icon {
  color: #B8A06A;
  font-size: 1.2rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
#dashboard .ranking-date {
  font-size: 0.68rem;
  color: #6F6A61;
  white-space: nowrap;
}
#dashboard .ranking-tabs {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
#dashboard .ranking-tab {
  font-size: 0.75rem;
  color: #6F6A61;
  text-decoration: none;
  padding: 2px 12px;
  border: 1px solid #D8C7A5;
  border-radius: 2px;
  line-height: 1.6;
}
#dashboard .ranking-tab.active {
  color: #111417;
  border-color: #B8A06A;
  font-weight: 500;
}
#dashboard .ranking-tab:hover {
  color: #111417;
}
#dashboard .ranking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  table-layout: fixed;
}
#dashboard .ranking-table thead tr {
  border-bottom: 1px solid #D8C7A5;
}
#dashboard .ranking-table th {
  padding: 6px 8px;
  font-weight: 500;
  color: #6F6A61;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-align: left;
}
#dashboard .ranking-table th.col-val {
  text-align: right;
}
#dashboard .ranking-table td {
  padding: 9px 8px;
  border-bottom: 1px solid rgba(216, 199, 165, 0.5);
  color: #6F6A61;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#dashboard .ranking-table tr:last-child td {
  border-bottom: none;
}
#dashboard .ranking-table .rank-num {
  width: 60px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #6F6A61;
  white-space: nowrap;
  padding-right: 4px;
}
#dashboard .ranking-table .rank-1,
#dashboard .ranking-table .rank-2,
#dashboard .ranking-table .rank-3 {
  color: #8F7A4D;
}
#dashboard .ranking-table .rank-1 {
  color: #B8A06A;
}
#dashboard .ranking-table .rank-name {
  overflow: hidden;
  text-overflow: ellipsis;
}
#dashboard .ranking-table .rank-name .working-dot {
  display: inline-block;
  width: 13px;
  font-size: 0.55rem;
  color: #27ae60;
  opacity: 0;
  vertical-align: middle;
}
#dashboard .ranking-table .rank-name .working-dot.is-working {
  opacity: 1;
}
#dashboard .ranking-table .rank-name a {
  color: inherit;
  text-decoration: none;
}
#dashboard .ranking-table .rank-name a:hover {
  text-decoration: underline;
}
#dashboard .ranking-table .rank-val {
  text-align: right;
  white-space: nowrap;
  color: #111417;
  font-size: 0.9rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
#dashboard .ranking-footer {
  display: none;
}
#dashboard #schedule {
  background: #FFFFFF;
  border: 1px solid #D8C7A5;
  border-radius: 4px;
  padding: 24px 26px;
}
#dashboard .calendar-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}
#dashboard .calendar-title-area {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
}
#dashboard .calendar-month {
  font-family: 'Cormorant Garamond', 'Hiragino Mincho Pro', 'Yu Mincho', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: #111417;
  letter-spacing: 0.06em;
  margin: 0;
}
#dashboard .calendar-note {
  font-size: 0.75rem;
  color: #6F6A61;
}
#dashboard .calendar-legend {
  display: flex;
  gap: 18px;
  font-size: 0.75rem;
  align-items: center;
  color: #6F6A61;
}
#dashboard .calendar-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
#dashboard .calendar-legend .legend-item::before {
  content: "●";
  font-size: 0.7em;
}
#dashboard .calendar-legend .legend-early::before {
  color: #c8913c;
}
#dashboard .calendar-legend .legend-late::before {
  color: #4778b8;
}
#dashboard .calendar-legend .legend-new::before {
  color: #c85d63;
}
#dashboard .calendar-nav {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}
#dashboard .calendar-nav .btn {
  display: inline-flex;
  align-items: center;
  background: #FFFFFF;
  color: #111417;
  border: 1px solid #D8C7A5;
  border-radius: 3px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: none;
}
#dashboard .calendar-nav .btn:hover {
  background: #F4F0E8;
  border-color: #B8A06A;
  color: #111417;
}
#dashboard #calendar th {
  background: #F4F0E8;
  color: #111417;
}
#dashboard #calendar td {
  padding: 12px 14px;
  line-height: 1.6;
}
#dashboard #calendar .cell-inner {
  align-items: flex-start;
  gap: 8px;
  height: 100%;
}
#dashboard #calendar .date {
  padding-top: 2px;
}
#dashboard #calendar .schedule-cell {
  flex: 1;
  min-width: 0;
}
#dashboard #calendar .total {
  font-size: 0.75rem;
  font-weight: 700;
  color: #111417;
  margin-bottom: 3px;
  white-space: nowrap;
}
#dashboard #calendar .badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: center;
}
#dashboard #calendar .start {
  font-size: 0.68rem;
  color: #111417;
  white-space: nowrap;
}
#dashboard #calendar .start::before {
  content: "●";
  color: #c8913c;
  margin-right: 2px;
}
#dashboard #calendar .end {
  font-size: 0.68rem;
  color: #111417;
  white-space: nowrap;
}
#dashboard #calendar .end::before {
  content: "●";
  color: #4778b8;
  margin-right: 2px;
}
#dashboard #calendar .newcomer {
  font-size: 0.68rem;
  color: #111417;
  font-weight: 600;
  white-space: nowrap;
}
#dashboard #calendar .newcomer::before {
  content: "●";
  color: #c85d63;
  margin-right: 2px;
}
#dashboard #calendar a {
  color: inherit;
  text-decoration: none;
}
#dashboard #calendar a:hover .total {
  text-decoration: underline;
}
@media (max-width: 767.98px) {
  #dashboard #schedule {
    padding: 14px 10px;
  }
  #dashboard #schedule #calendar td {
    padding: 6px 4px 4px 0;
  }
  #dashboard #schedule #calendar .date i {
    font-size: 0.9rem;
  }
  #dashboard #schedule #calendar .total {
    font-size: 0.65rem;
  }
  #dashboard #schedule #calendar .start,
  #dashboard #schedule #calendar .end,
  #dashboard #schedule #calendar .newcomer {
    font-size: 0.55rem;
  }
}
@media (max-width: 575.98px) {
  #dashboard #schedule {
    padding: 10px 8px;
  }
  #dashboard #schedule #calendar td {
    padding: 4px 2px 2px 0;
  }
  #dashboard #schedule #calendar .date i {
    font-size: 0.8rem;
  }
  #dashboard .status-cards {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  #dashboard .status-card {
    width: 100%;
  }
  #dashboard .ranking-container {
    flex-direction: column;
  }
  #dashboard .ranking-container .table.list-view {
    width: 100%;
    overflow-x: visible;
  }
  #dashboard .ranking-container .table.list-view table {
    min-width: 100% !important;
  }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  #dashboard .status-cards {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  #dashboard .status-card {
    width: 100%;
  }
  #dashboard .ranking-container {
    flex-direction: column;
  }
  #dashboard .ranking-container .table.list-view {
    width: 100%;
    overflow-x: visible;
  }
  #dashboard .ranking-container .table.list-view table {
    min-width: 100% !important;
  }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .status-cards {
    gap: 20px;
  }
  #dashboard .ranking-container {
    flex-direction: column;
  }
  #dashboard .ranking-container .table.list-view {
    width: 100%;
    overflow-x: visible;
  }
  #dashboard .ranking-container .table.list-view table {
    min-width: 100% !important;
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .status-cards {
    gap: 20px;
  }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .status-cards {
    gap: 20px;
  }
}
@media (min-width: 1400px) {
  .status-cards {
    gap: 20px;
  }
}
/* Cast Add & Cast Edit Page */
#cast .dialog > div {
  width: 100%;
  max-width: 360px;
  padding: 20px;
}
#cast .dialog .btn {
  margin-top: 10px;
}
#cast .section {
  font-size: 0.75rem;
}
#cast .form-group .form-control-label {
  font-weight: bold;
  line-height: 2rem;
}
#cast .form-group:last-child {
  margin: 0;
}
#cast .form-group.size {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
}
#cast .form-group.size label {
  flex-shrink: 0;
  margin: 0 5px 0 0;
  white-space: nowrap;
}
#cast .form-group.size input {
  display: block;
  flex-shrink: 0;
  width: 60px;
  margin: 0;
  box-sizing: border-box;
}
#cast .form-group .btn {
  width: 100%;
  margin-top: 10px;
}
#cast input,
#cast select {
  border: 1px solid #111417;
  color: #111417;
  font-size: 1rem;
}
#cast input:disabled {
  background-color: #eeeeee;
  color: #111417;
}
#cast .token-controls .btn {
  margin-bottom: 10px;
}
#cast #imageList {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
#cast #imageList .image-item {
  position: relative;
  flex: 1 1 calc(100% / 6 - 10px);
  max-width: calc(100% / 6 - 10px);
  border: 1px solid #D8C7A5;
  border-radius: 6px;
  overflow: hidden;
  background: #FFFFFF;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
#cast #imageList .image-item .image-item-header {
  display: flex;
  align-items: center;
  padding: 6px 8px 7px;
  background: #6F6A61;
  border-bottom: none;
}
#cast #imageList .image-item .image-item-header .toggle-text {
  color: #FFFFFF;
}
#cast #imageList .image-item > img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  flex: 1;
}
#cast #imageList .image-item.inactive > img {
  opacity: 0.35;
}
#cast #imageList .image-item.image-item-add {
  border: 1px dashed #D8CCB8;
  background: #F4F0E8;
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  color: #6F6A61;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
#cast #imageList .image-item.image-item-add i {
  font-size: 1.6rem;
}
#cast #imageList .image-item.image-item-add span {
  font-size: 0.68rem;
}
#cast #imageList .image-item.image-item-add:hover {
  border-color: #B8A06A;
  background: #F3EEDF;
  color: #B8A06A;
}
#cast #imageList .image-item .image-item-footer {
  display: flex;
}
#cast #imageList .image-item .image-item-footer button {
  flex: 1;
  padding: 7px 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border: none !important;
  background: #6F6A61;
  color: #FFFFFF;
  cursor: pointer;
  transition: background 0.15s;
  line-height: 1;
}
#cast #imageList .image-item .image-item-footer button + button {
  border-left: 1px solid #59554e !important;
}
#cast #imageList .image-item .image-item-footer button:hover {
  background: #5E584F;
}
#cast #imageList .image-item .image-item-footer .delete-image img {
  display: none;
}
#cast #data-grid {
  width: 100%;
}
#cast #data-grid table {
  width: 100%;
  border-collapse: collapse;
}
#cast #data-grid table tr {
  width: 100%;
}
#cast #data-grid table th,
#cast #data-grid table td {
  padding: 0.75rem;
  box-sizing: border-box;
  vertical-align: middle;
}
#cast #data-grid table td {
  font-size: 0.75rem;
  line-height: 1.4rem;
}
#cast #data-grid table td .radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
#cast #data-grid table td .radio-group label {
  text-align: left;
}
#cast #data-grid .comment-area {
  margin-top: 10px;
}
#cast #data-grid .comment-area textarea {
  width: 100%;
  min-height: 60px;
  resize: vertical;
}
#cast .table.detail-view:first-child {
  margin-bottom: 25px;
}
@media (max-width: 575.98px) {
  #cast #imageList .image-item {
    flex: 1 1 calc(100% / 3 - 10px);
    max-width: calc(100% / 3 - 10px);
  }
  #cast #data-grid th,
  #cast #data-grid td {
    text-align: left;
  }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  #cast #imageList .image-item {
    flex: 1 1 calc(100% / 4 - 10px);
    max-width: calc(100% / 4 - 10px);
  }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  #cast #imageList .image-item {
    flex: 1 1 calc(100% / 5 - 10px);
    max-width: calc(100% / 5 - 10px);
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  #cast #imageList .image-item {
    flex: 1 1 calc(100% / 6 - 10px);
    max-width: calc(100% / 6 - 10px);
  }
}
@media (min-width: 1200px) {
  #cast #imageList .image-item {
    flex: 1 1 calc(100% / 8 - 10px);
    max-width: calc(100% / 8 - 10px);
  }
  #cast .detail-view {
    margin: 0;
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  #data-grid {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    gap: 20px;
  }
  #data-grid.section {
    flex-direction: row !important;
  }
  #data-grid .table {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  #data-grid {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    gap: 20px;
  }
  #data-grid.section {
    flex-direction: row !important;
  }
  #data-grid .table {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}
@media (min-width: 1400px) {
  #data-grid {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    gap: 20px;
  }
  #data-grid.section {
    flex-direction: row !important;
  }
  #data-grid .table {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}
/* Schedule Date Nav — shared between #schedule and #scheduleFilter */
.schedule-date-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.schedule-date-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}
.schedule-date-btn {
  padding: 5px 16px;
  font-size: 0.75rem;
  white-space: nowrap;
  color: #B8A06A;
  border-color: #B8A06A;
}
.schedule-date-btn:hover {
  background: #B8A06A;
  color: #FFFFFF;
}
.schedule-date-display {
  font-size: 1.25rem;
  font-weight: 500;
  color: #111417;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.schedule-date-display .schedule-date-dow {
  font-size: 0.8rem;
  color: #6F6A61;
  font-weight: 400;
  margin-left: 4px;
}
.schedule-today-btn {
  white-space: nowrap;
  margin-left: auto;
}
.schedule-today-btn.is-today {
  opacity: 0.45;
}
@media (max-width: 767.98px) {
  .schedule-date-nav {
    gap: 10px;
  }
  .schedule-date-controls {
    width: 100%;
    flex: none;
    justify-content: space-between;
  }
  .schedule-today-btn {
    margin-left: 0;
  }
}
/* Schedule Page */
body#schedule .dialog {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 80px 16px 16px;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  box-sizing: border-box;
  background-color: rgba(0, 0, 0, 0.5);
}
body#schedule .dialog .form-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #111417;
}
body#schedule .dialog .form-group label {
  width: 25%;
  text-align: left;
}
body#schedule .dialog .form-group input,
body#schedule .dialog .form-group select {
  width: 75%;
  padding: 5px;
  box-sizing: border-box;
  border: 1px solid #111417;
  color: #111417;
  font-size: 0.75rem;
}
body#schedule .dialog .form-group input:disabled,
body#schedule .dialog .form-group select:disabled {
  background-color: #eeeeee;
  color: #111417;
}
body#schedule .dialog #cast_name {
  color: #111417;
  font-size: 1.2rem;
  font-weight: bold;
}
body#schedule .dialog .form-control-label {
  color: #111417;
}
body#schedule .dialog #edit_mode_container {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: #FFFFFF;
  border-radius: 4px;
  border: 1px solid #D8C7A5;
}
body#schedule .dialog #edit_mode_container > div {
  display: flex;
  align-items: center;
}
body#schedule .dialog #edit_mode_container label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  color: #1F1F1F;
  white-space: nowrap;
}
body#schedule .dialog #edit_mode_container label input[type="radio"] {
  margin: 0;
  accent-color: #B8A06A;
  width: auto;
}
body#schedule .dialog #individual_edit_container {
  margin-bottom: 10px;
}
body#schedule .dialog #individual_edit_container label {
  display: flex;
  align-items: center;
}
body#schedule .dialog #individual_edit_container label input[type="checkbox"] {
  margin-right: 8px;
}
body#schedule .dialog #individual_edit_container label span {
  font-size: 0.75rem;
}
body#schedule .dialog #reason_container {
  display: block;
  width: 100%;
}
body#schedule .dialog #reason_container textarea {
  height: auto;
  margin-top: 5px;
}
body#schedule .dialog p {
  font-size: 0.75rem;
}
body#schedule .dialog .btn {
  width: 100%;
  margin-top: 10px;
}
body#schedule .dialog[style*="display: none"] {
  display: none !important;
}
body#schedule .dialog > div {
  width: 100%;
  max-width: 360px;
  padding: 20px;
}
body#schedule h3 {
  margin: 0 0 20px 0;
}
body#schedule #FilterButtons {
  grid-template-columns: repeat(2, 1fr);
}
body#schedule .cast-edit-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
body#schedule .cast-section {
  background: #FFFFFF;
  border: 1px solid #D8C7A5;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 16px;
}
body#schedule .calendar-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}
body#schedule .calendar-title-area {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
}
body#schedule .calendar-month {
  font-family: 'Cormorant Garamond', 'Hiragino Mincho Pro', 'Yu Mincho', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: #1F1F1F;
  letter-spacing: 0.06em;
  margin: 0;
}
body#schedule .calendar-nav {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}
body#schedule .calendar-nav .btn {
  display: inline-flex;
  align-items: center;
  background: #FFFFFF;
  color: #1F1F1F;
  border: 1px solid #D8C7A5;
  border-radius: 3px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
body#schedule .calendar-nav .btn:hover {
  background: #FFFFFF;
  border-color: #B8A06A;
  color: #1F1F1F;
}
body#schedule #calendar th {
  background: #FFFFFF;
}
body#schedule #calendar td {
  padding: 6px 4px;
  height: 120px;
  min-height: 36px;
  line-height: 1.4;
}
body#schedule #calendar td.today {
  background: rgba(184, 160, 106, 0.07);
}
body#schedule #calendar td.empty-day {
  background: #FFFFFF;
}
body#schedule #calendar .cell-inner {
  align-items: stretch;
  height: 100%;
}
body#schedule #calendar .date {
  min-width: 36px;
  text-align: center;
  padding-top: 4px;
  pointer-events: none;
}
body#schedule #calendar .schedule-cell {
  flex: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px 4px 4px 2px;
  min-width: 0;
}
body#schedule #calendar td.calendar-day .schedule-cell:hover {
  background: rgba(184, 160, 106, 0.05);
}
body#schedule .dialog > div {
  width: 100%;
  max-width: 380px;
  padding: 24px 20px;
  background: #FFFFFF;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}
@media (min-width: 768px) and (max-width: 991.98px) {
  h3 {
    width: 100%;
    font-size: 1.2rem;
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  body#schedule h3 {
    font-size: 1.4rem;
  }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  body#schedule h3 {
    font-size: 1.4rem;
  }
}
@media (min-width: 1400px) {
  body#schedule h3 {
    font-size: 1.4rem;
  }
}
/* Schedule Page — Mobile Responsive */
@media (max-width: 767.98px) {
  body#schedule .cast-edit-nav {
    width: 100%;
    margin-left: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  body#schedule .cast-edit-nav .btn {
    justify-content: center;
    text-align: center;
  }
  body#schedule .cast-section {
    padding: 14px 12px;
  }
  body#schedule .calendar-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
  }
  body#schedule .calendar-month {
    font-size: 1.2rem;
  }
  body#schedule .calendar-nav {
    width: 100%;
    justify-content: space-between;
  }
  body#schedule .calendar-nav .btn {
    flex: 1;
    text-align: center;
    justify-content: center;
  }
  body#schedule #calendar th {
    padding: 6px 2px;
    font-size: 0.68rem;
    letter-spacing: 0;
  }
  body#schedule #calendar td {
    padding: 12px 14px;
    height: auto;
    min-height: 60px;
  }
  body#schedule #calendar .date {
    min-width: 28px;
  }
  body#schedule .dialog > div {
    max-width: calc(100vw - 32px);
    padding: 18px 16px;
  }
}
@media (max-width: 575.98px) {
  body#schedule .cast-edit-nav {
    grid-template-columns: repeat(2, 1fr);
  }
  body#schedule .cast-edit-nav .btn:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  body#schedule .cast-section {
    padding: 10px 8px;
  }
  body#schedule #calendar th {
    padding: 5px 1px;
    font-size: 0.6rem;
  }
  body#schedule #calendar td {
    padding: 10px;
    min-height: 50px;
  }
  body#schedule #calendar .date {
    font-size: 0.62rem;
    min-width: 22px;
  }
  body#schedule .dialog {
    align-items: flex-end;
  }
  body#schedule .dialog > div {
    max-width: 100%;
    width: 100%;
    border-radius: 12px 12px 0 0;
    padding: 20px 16px 28px;
    max-height: 90vh;
    overflow-y: auto;
  }
  body#schedule .dialog .form-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  body#schedule .dialog .form-group label {
    width: 100%;
  }
  body#schedule .dialog .form-group input,
  body#schedule .dialog .form-group select {
    width: 100%;
  }
  body#schedule .dialog #edit_mode_container {
    flex-direction: column;
    gap: 6px;
  }
  body#schedule .dialog #edit_mode_container > div {
    max-width: 100%;
    flex: none;
  }
}
/* STATUS FILTER PAGE */
#statusFilter .thumb-checkbox {
  display: block !important;
}
#statusFilter .thumb-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
#statusFilter .item .cast-info .badge-warning {
  background-color: #F39C12;
  color: #111417;
}
#statusFilter .mode-selector {
  margin-bottom: 1rem;
}
#statusFilter .status-badges {
  margin-top: 0.5rem;
}
#statusFilter .status-badges .badge {
  display: block;
  padding: 0.25em 0.5em;
  font-size: 0.75rem;
}
#statusFilter .badge-info {
  background-color: #17A2B8;
  color: white;
}
#statusFilter .badge-warning {
  background-color: #F39C12;
  color: #111417;
}
/* scheduleFilter Page */
#scheduleFilter .filter-option-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #D8C7A5;
}
#scheduleFilter .filter-option-row:last-child {
  border-bottom: none;
}
#scheduleFilter .filter-option-label {
  font-family: 'Josefin Sans', 'Hiragino Kaku Gothic Pro W3', 'Meiryo', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #111417;
  min-width: 72px;
  flex-shrink: 0;
  padding-top: 3px;
}
#scheduleFilter .filter-check-group {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
}
#scheduleFilter .filter-check-group--wrap {
  flex-wrap: wrap;
}
#scheduleFilter .filter-check-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Josefin Sans', 'Hiragino Kaku Gothic Pro W3', 'Meiryo', sans-serif;
  font-size: 0.8rem;
  color: #111417;
  cursor: pointer;
  white-space: nowrap;
}
#scheduleFilter .filter-check-label input[type="checkbox"],
#scheduleFilter .filter-check-label input[type="radio"] {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  cursor: pointer;
  vertical-align: middle;
  margin: 0;
}
#scheduleFilter .filter-check-label input[type="radio"] {
  accent-color: #B8A06A;
}
#scheduleFilter .filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
#scheduleFilter .filter-row:last-child {
  margin-bottom: 0;
}
#scheduleFilter .filter-row-label {
  font-family: 'Josefin Sans', 'Hiragino Kaku Gothic Pro W3', 'Meiryo', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #111417;
  min-width: 56px;
  flex-shrink: 0;
}
#scheduleFilter .filter-row-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}
#scheduleFilter .filter-row-controls select {
  flex: 1;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #D8C7A5;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #111417;
  background: #FFFFFF;
  cursor: pointer;
}
#scheduleFilter .filter-row-controls select:focus {
  outline: none;
  border-color: #B8A06A;
}
#scheduleFilter .filter-row-sep {
  font-size: 0.75rem;
  color: #6F6A61;
  flex-shrink: 0;
}
@media (max-width: 767px) {
  #scheduleFilter .filter-card-body {
    flex-direction: column;
  }
  #scheduleFilter .filter-card-col + .filter-card-col {
    border-left: none;
    border-top: 1px solid #D8C7A5;
  }
  #scheduleFilter .filter-option-row {
    flex-wrap: wrap;
  }
}
.cast-empty {
  text-align: center;
  font-family: 'Cormorant Garamond', 'Hiragino Mincho Pro', 'Yu Mincho', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #111417;
  padding: 48px 20px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.9), 0 0 40px rgba(255, 255, 255, 0.5);
}
@media (max-width: 575.98px) {
  .filter-container {
    flex-direction: column;
  }
  .filter-container .filter-column {
    width: 100%;
  }
  .filter-container .filter-column .filter-row {
    width: 100% !important;
  }
  .button-group {
    flex-direction: column;
  }
  .button-group .btn {
    width: 100% !important;
  }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  .filter-container {
    flex-direction: column;
  }
  .filter-container .filter-column {
    width: 100%;
  }
  .filter-container .filter-column .filter-row {
    width: 100% !important;
  }
  .button-group {
    flex-direction: column;
  }
  .button-group .btn {
    width: 100% !important;
  }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .filter-container {
    flex-direction: column;
  }
  .filter-container .filter-column {
    width: 100%;
  }
  .filter-container .filter-column .filter-row {
    width: 100% !important;
  }
  .button-group {
    flex-direction: column;
  }
  .button-group .btn {
    width: 100% !important;
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .filter-container .filter-column {
    width: 100%;
  }
  .filter-container .filter-column .filter-row {
    width: 100% !important;
  }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .filter-container .filter-column {
    width: 100%;
  }
  .filter-container .filter-column .filter-row {
    width: 100% !important;
  }
}
/* Status Page */
#status {
  /* CastStatus.php (legacy) */
}
#status .castList .item.one-day {
  box-shadow: 0 0 0 2px #F39C12;
}
#status .castList .item.three-days {
  box-shadow: 0 0 0 2px #CC2200;
}
#status .castList .item.one-week {
  box-shadow: 0 0 0 2px #8090c0;
}
#status .cast-status-profile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
  align-items: stretch;
}
#status .cast-status-profile > .cast-section {
  height: 100%;
  box-sizing: border-box;
}
#status .cast-status-thumb {
  text-align: center;
  margin-bottom: 0;
}
#status .cast-status-thumb img {
  width: 100%;
  max-width: 150px;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  margin: 0 auto;
}
#status .cast-status-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #111417;
  margin: 6px 0 0;
  text-align: center;
}
#status .cast-section--with-thumb {
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: 0 16px;
  align-items: start;
}
#status .cast-section--with-thumb > .cast-section-header {
  grid-column: 1 / -1;
}
#status .mail-card > .cast-section--with-thumb {
  padding: 20px 24px;
}
#status #workHistoryTable td:nth-child(1),
#status #workHistoryTable td:nth-child(2),
#status #workHistoryTable td:nth-child(3) {
  text-align: center;
}
#status #statusHistoryTable td:nth-child(1),
#status #statusHistoryTable td:nth-child(2),
#status #statusHistoryTable td:nth-child(4),
#status #statusHistoryTable td:nth-child(5) {
  text-align: center;
}
#status .cast-status-right {
  display: flex;
  flex-direction: column;
}
#status .cast-status-actions {
  padding: 12px 0 4px;
}
#status .cast-status-dl {
  display: grid;
  gap: 0;
  margin: 0;
}
#status .cast-status-dl > div {
  display: flex;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #D8C7A5;
  font-size: 0.75rem;
}
#status .cast-status-dl > div:last-child {
  border-bottom: none;
}
#status .cast-status-dl dt {
  color: #6F6A61;
  white-space: nowrap;
  min-width: 90px;
  flex-shrink: 0;
}
#status .cast-status-dl dd {
  margin: 0;
  color: #111417;
}
#status .mail-card--padded--bordered {
  border-top: 1px solid #D8C7A5;
}
#status .badge-below {
  margin-top: 4px;
}
#status .cast-section--mb {
  margin-bottom: 16px;
}
#status .mt-sm {
  margin-top: 8px;
}
#status .cast-status-edit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 20px;
}
#status .cast-status-edit-row > .mail-card {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}
#status .cast-status-edit-row .mail-card--padded {
  flex: 1;
}
#status .cast-status-thread {
  padding: 12px 0;
  border-bottom: 1px solid #D8C7A5;
}
#status .cast-status-thread:last-child {
  border-bottom: none;
}
#status .cast-status-thread-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
#status .cast-status-thread-user {
  font-size: 0.75rem;
  font-weight: 600;
  color: #111417;
}
#status .cast-status-thread-user i {
  color: #B8A06A;
  margin-right: 4px;
}
#status .cast-status-thread-body {
  font-size: 0.8rem;
  color: #111417;
  margin: 0;
  line-height: 1.6;
}
#status .cast-status-readmore {
  padding: 12px 20px;
  text-align: center;
  border-top: 1px solid #D8C7A5;
}
#status .cast-status-empty {
  padding: 20px;
  color: #6F6A61;
  font-size: 0.8rem;
  text-align: center;
}
#status .cast-status-date {
  font-size: 0.68rem;
  color: #6F6A61;
}
#status tr[data-status="processing"] td {
  background: rgba(243, 156, 18, 0.08);
}
#status tr[data-status="completed"] td {
  background: rgba(184, 160, 106, 0.05);
}
#status .cast-action-nav .btn.active {
  background: #B8A06A;
  color: #FFFFFF;
  border-color: #B8A06A;
}
@media (max-width: 575px) {
  #status .cast-status-profile {
    grid-template-columns: 1fr;
  }
}
#status .list .list-view-responsive td {
  text-align: center;
}
#status .list .list-view-responsive td:last-child .btn:first-child {
  margin-bottom: 10px;
}
#status .detail .list-view-responsive td {
  text-align: left;
}
#status .detail .section #information figure {
  margin: 0;
  padding: 0;
  text-align: center;
}
#status .detail .section #information figure img {
  display: inline !important;
}
#status .detail .section #information figcaption {
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
}
#status .detail .section #information .block ul {
  padding: 0;
}
#status .detail .section #information .block ul li {
  margin-bottom: 10px;
  padding: 10px;
  font-size: 0.75rem;
  border-bottom: 1px solid #8F7A4D;
}
#status .detail .section #information .block ul li:last-child {
  margin: 0;
}
#status .detail .section nav ul {
  display: flex;
  align-items: center;
  list-style-type: none;
  gap: 10px;
}
#status .detail .section .button-group label {
  font-size: 0.75rem;
}
@media (max-width: 575.98px) {
  #status .detail #information {
    flex-direction: column;
  }
  #status .detail nav ul {
    flex-direction: column;
    padding: 0;
  }
  #status .detail nav ul li {
    width: 100%;
  }
  #status .detail nav ul li a {
    width: 100%;
  }
  #status .History table,
  #status .History tbody,
  #status .History tr,
  #status .History th,
  #status .History td {
    display: block;
    width: 100%;
    font-size: 0.75rem;
  }
  #status .History tr {
    margin-bottom: 10px;
  }
  #status .History th {
    display: none;
  }
  #status .History .btn {
    width: 100%;
  }
  #status .History td {
    display: block;
    min-height: 2.5rem;
    margin-top: -1px;
    padding: 10px;
    text-align: left;
  }
  #status .History td:first-child {
    font-weight: bold;
  }
  #status .History td:last-child {
    border-top: none;
  }
  #status .button-group {
    flex-direction: column;
  }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  #status .detail #information {
    flex-direction: column;
    gap: 0;
  }
  #status .detail #information ul {
    padding: 0;
  }
  #status .detail nav ul {
    flex-direction: column;
    padding: 0;
  }
  #status .detail nav ul li {
    width: 100%;
  }
  #status .detail nav ul li a {
    width: 100%;
  }
  #status .History table,
  #status .History tbody,
  #status .History tr,
  #status .History th,
  #status .History td {
    display: block;
    width: 100%;
    font-size: 0.75rem;
  }
  #status .History tr {
    margin-bottom: 10px;
  }
  #status .History th {
    display: none;
  }
  #status .History .btn {
    width: 100%;
  }
  #status .History td {
    display: block;
    min-height: 2.5rem;
    margin-top: -1px;
    padding: 10px;
    text-align: left;
  }
  #status .History td:first-child {
    font-weight: bold;
  }
  #status .History td:last-child {
    border-top: none;
  }
  #status .button-group {
    flex-direction: column;
  }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  #status .detail #information {
    flex-direction: column;
    gap: 0;
  }
  #status .detail #information ul {
    padding: 0;
  }
  #status .detail nav ul {
    flex-direction: column;
    padding: 0;
  }
  #status .detail nav ul li {
    width: 100%;
  }
  #status .detail nav ul li a {
    width: 100%;
  }
  #status .History table,
  #status .History tbody,
  #status .History tr,
  #status .History th,
  #status .History td {
    display: block;
    width: 100%;
    font-size: 0.75rem;
  }
  #status .History tr {
    margin-bottom: 10px;
  }
  #status .History th {
    display: none;
  }
  #status .History .btn {
    width: 100%;
  }
  #status .History td {
    display: block;
    min-height: 2.5rem;
    margin-top: -1px;
    padding: 10px;
    text-align: left;
  }
  #status .History td:first-child {
    font-weight: bold;
  }
  #status .History td:last-child {
    border-top: none;
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  #status .detail #information {
    flex-direction: column;
    gap: 0;
  }
  #status .detail #information ul {
    padding: 0;
  }
  #status .detail nav ul {
    flex: 1;
    padding: 0;
  }
  #status .detail nav ul li {
    width: 100%;
  }
  #status .detail nav ul li a {
    width: 100%;
  }
  #status .History table th,
  #status .History table td {
    text-align: center !important;
  }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  #status .detail {
    display: flex;
    flex-wrap: wrap;
  }
  #status .detail .title-block {
    width: 100%;
  }
  #status .detail .section:first-of-type {
    width: calc((100% / 2) - 10px);
    margin-right: auto;
    /* 左寄せ */
  }
  #status .detail .section:nth-of-type(2) {
    width: calc((100% / 2) - 10px);
    margin-left: auto;
    /* 右寄せ */
  }
  #status .detail .section:nth-of-type(3) {
    width: 100%;
  }
  #status .detail nav ul {
    flex: 1;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  #status .detail nav ul li {
    width: 100%;
  }
  #status .detail nav ul li a {
    width: 100%;
  }
  #status .History table th,
  #status .History table td {
    text-align: center !important;
  }
}
@media (min-width: 1400px) {
  #status .detail {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  #status .detail .title-block {
    width: 100%;
  }
  #status .detail .section:first-of-type {
    width: calc((100% / 2) - 10px);
    margin-right: auto;
    /* 左寄せ */
  }
  #status .detail .section:nth-of-type(2) {
    width: calc((100% / 2) - 10px);
    margin-left: auto;
    /* 右寄せ */
  }
  #status .detail .section:nth-of-type(3) {
    width: 100%;
  }
  #status .detail #information {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  #status .detail #information .block:first-child {
    flex: 1 1 100%;
  }
  #status .detail #information .block:nth-child(2),
  #status .detail #information .block:nth-child(3) {
    flex: 1;
  }
  #status .detail nav ul {
    flex: 1;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  #status .detail nav ul li {
    width: 100%;
  }
  #status .detail nav ul li a {
    width: 100%;
  }
  #status .History table th,
  #status .History table td {
    text-align: center !important;
  }
}
/* MyPage */
#mypage #SearchForm {
  display: flex;
  align-items: center;
  gap: 6px;
}
#mypage #SearchForm input[type="text"] {
  height: 36px;
  padding: 0 10px;
  border: 1px solid #D8C7A5;
  border-radius: 3px;
  font-size: 0.75rem;
  color: #1F1F1F;
  background: #FFFFFF;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}
#mypage #SearchForm input[type="text"]:focus {
  border-color: #B8A06A;
}
#mypage #SearchForm .btn {
  height: 36px;
  padding: 0 12px;
  font-size: 0.75rem;
  white-space: nowrap;
}
#mypage .mail-card:not(.mail-card--overflow) {
  overflow: visible;
}
#mypage .mail-card--overflow {
  overflow: auto !important;
}
#mypage .mail-table {
  table-layout: fixed;
  width: 100%;
}
#mypage .mail-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #F4F0E8;
}
#mypage .mail-table th,
#mypage .mail-table td {
  text-align: center;
}
#mypage .mail-table th:first-child,
#mypage .mail-table td:first-child {
  width: 160px;
  text-align: center;
  word-break: break-word;
  white-space: normal;
}
#mypage .mail-table th:nth-child(2),
#mypage .mail-table td:nth-child(2) {
  width: 44px;
}
#mypage .mail-table figure {
  display: block;
  margin: 0 auto 4px;
}
#mypage .mail-table figcaption {
  display: block;
  font-size: 0.75rem;
  line-height: 1.4;
}
#mypage .mail-table figcaption a {
  font-weight: 600;
  color: #111417;
  text-decoration: none;
}
#mypage .mail-table figcaption a:hover {
  color: #B8A06A;
}
#mypage .mail-table figcaption small {
  display: block;
  color: #6F6A61;
  font-size: 0.68rem;
  line-height: 1.5;
}
#mypage .mail-table .stats-retrieved,
#mypage .mail-table .stats-not-retrieved {
  margin: 0.25rem 0;
  color: #6F6A61;
  font-size: 0.68rem;
}
#mypage .mail-table .select-all-sites {
  background: none;
  border: none;
  cursor: pointer;
  color: #B8A06A;
  padding: 4px;
  transition: color 0.2s;
}
#mypage .mail-table .select-all-sites:hover {
  color: #8F7A4D;
}
#mypage .mail-table .select-all-sites .fa-check-square {
  font-size: 1.8rem;
}
#mypage .list-view-responsive .site-cell {
  padding: 10px;
  cursor: pointer;
  transition: background 0.2s;
}
#mypage .list-view-responsive .site-cell:not(.has-data):hover {
  background-color: rgba(40, 167, 69, 0.1);
}
#mypage .list-view-responsive .site-cell:not(.has-data):hover .status-icon {
  transform: scale(1.1);
}
#mypage .list-view-responsive .site-cell.has-data {
  cursor: not-allowed;
}
#mypage .list-view-responsive .site-cell.error span[data-retrieved="false"]::after {
  position: absolute;
  bottom: -1.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: #CC2200;
  font-size: 0.68rem;
  white-space: nowrap;
  content: "失敗";
}
#mypage .list-view-responsive .site-cell.selected-site {
  border: 2px solid #28A745 !important;
}
#mypage .list-view-responsive .site-cell.selected-site span::after {
  position: absolute;
  bottom: -1.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: #28A745;
  font-size: 0.68rem;
  white-space: nowrap;
  content: "取得中";
}
#mypage .list-view-responsive .site-cell:not(.selected-site) span[data-retrieved="true"]::after {
  position: absolute;
  bottom: -1.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: #28A745;
  font-size: 0.68rem;
  white-space: nowrap;
  content: "取得済";
}
#mypage .list-view-responsive .site-cell span {
  position: relative;
  display: inline-block;
}
#mypage .list-view-responsive .site-cell span img {
  width: 1.8rem;
  height: 1.8rem;
  margin-bottom: 0.25rem;
  vertical-align: middle;
  transition: transform 0.2s ease;
}
#mypage .list-view-responsive .site-cell span .status-icon {
  width: 1.8rem;
  height: 1.8rem;
  vertical-align: middle;
}
#mypage .list-view-responsive .site-cell .update-time {
  margin-top: 0.25rem;
  color: #6F6A61;
  font-size: 0.75rem;
}
@media (max-width: 767.98px) {
  #status .cast-form-2col {
    grid-template-columns: 1fr;
  }
  #status .cast-status-profile {
    grid-template-columns: 1fr;
  }
  #status .cast-status-edit-row {
    grid-template-columns: 1fr;
  }
  #mypage .title-actions {
    flex-wrap: wrap;
    width: 100%;
  }
  #mypage #SearchForm {
    width: 100%;
  }
  #mypage #SearchForm input[type="text"] {
    flex: 1;
  }
  #mypage .list-view-responsive .site-cell {
    padding: 10px 0 25px;
  }
  #mypage .tbl-scroll-wrap .mail-table {
    width: max-content;
    min-width: 100%;
  }
  #mypagecount .tbl-scroll-wrap .mail-table {
    width: max-content;
    min-width: 100%;
  }
}
/* MyPageCount */
#mypagecount .mail-card--overflow {
  overflow: auto !important;
}
#mypagecount #datepicker {
  height: 36px;
  padding: 0 10px;
  border: 1px solid #D8C7A5;
  border-radius: 3px;
  font-size: 0.75rem;
  color: #1F1F1F;
  background: #FFFFFF;
  box-sizing: border-box;
  cursor: pointer;
}
#mypagecount #datepicker:focus {
  outline: none;
  border-color: #B8A06A;
}
#mypagecount .mail-card:not(.mail-card--overflow) {
  overflow: visible;
}
#mypagecount .mail-card--overflow {
  overflow: auto !important;
}
#mypagecount .mail-table {
  table-layout: fixed;
  width: 100%;
}
#mypagecount .mail-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #F4F0E8;
}
#mypagecount .mail-table th {
  text-align: center;
}
#mypagecount .mail-table td {
  text-align: center;
  vertical-align: middle;
}
#mypagecount .mail-table thead .sortable .sort-icon.asc {
  border-bottom-color: rgba(17, 20, 23, 0.12) !important;
}
#mypagecount .mail-table thead .sortable .sort-icon.desc {
  border-top-color: rgba(17, 20, 23, 0.12) !important;
}
#mypagecount .mail-table thead .sortable.active .sort-icon.asc {
  border-bottom-color: #111417 !important;
}
#mypagecount .mail-table thead .sortable.active .sort-icon.desc {
  border-top-color: #111417 !important;
}
#mypagecount .mail-table thead .sortable:hover .sort-icon {
  opacity: 1;
}
#mypagecount .mail-table .col-status {
  width: 10%;
}
#mypagecount .mail-table .col-cast {
  width: 10%;
}
#mypagecount .mail-table .col-diary {
  width: 20%;
}
#mypagecount .mail-table .col-note {
  width: 10%;
}
#mypagecount .mail-table td.col-diary {
  text-align: left;
}
#mypagecount .mail-table .cast-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
#mypagecount .mail-table .cast-thumb {
  flex-shrink: 0;
  margin: 0;
}
#mypagecount .mail-table figcaption {
  font-size: 0.75rem;
  line-height: 1.6;
  text-align: left;
}
#mypagecount .mail-table figcaption .cast-name {
  display: block;
  max-width: 5em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#mypagecount .mail-table figcaption a {
  color: #111417;
  text-decoration: none;
}
#mypagecount .mail-table figcaption a:hover {
  color: #B8A06A;
}
#mypagecount .mail-table figcaption small {
  color: #6F6A61;
  font-size: 0.68rem;
}
#mypagecount .mail-table .status-cell {
  font-size: 0.75rem;
}
#mypagecount .mail-table .status-cell p {
  margin: 0;
}
#mypagecount .mail-table .status-cell .update-time {
  font-size: 0.68rem;
  color: #6F6A61;
}
#mypagecount .mail-table .status-cell a {
  color: #111417;
  text-decoration: none;
}
#mypagecount .mail-table .status-cell a:hover {
  color: #B8A06A;
}
#mypagecount .mail-table .status-count {
  display: block;
  font-size: 1.6em;
  font-weight: 700;
  color: #28A745;
  line-height: 1.2;
}
#mypagecount .mail-table .diary-entries {
  font-size: 0.75rem;
  word-break: break-all;
}
#mypagecount .mail-table .diary-entries a {
  display: block;
  color: #17A2B8;
  text-decoration: none;
  margin-bottom: 2px;
}
#mypagecount .mail-table .diary-entries a:hover {
  text-decoration: underline;
}
#mypagecount .mail-table .editbox {
  width: 100%;
  min-height: 60px;
  padding: 6px 8px;
  border: 1px solid #D8C7A5;
  border-radius: 3px;
  font-size: 0.75rem;
  resize: vertical;
  box-sizing: border-box;
}
#mypagecount .mail-table .editbox:focus {
  outline: none;
  border-color: #B8A06A;
}
@media (max-width: 767.98px) {
  #mypagecount .title-actions {
    flex-wrap: wrap;
    width: 100%;
  }
  #mypagecount .title-actions #datepicker {
    flex: 1;
  }
}
/* MailMagazine Page */
#mailmagazine {
  /* ベースフォームスタイル */
  /* エディタスタイル */
  /* 閲覧モード用のスタイル */
  /* Dialog Page */
  /* フォーム閲覧モードのスタイル */
}
#mailmagazine .mail-table {
  min-width: 850px;
}
#mailmagazine .dialog {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}
#mailmagazine .dialog > div {
  width: 100%;
  max-width: 640px;
  background: #FFFFFF;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}
#mailmagazine .dialog-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  background: #111417;
  border-bottom: 1px solid #D8C7A5;
}
#mailmagazine .dialog-header .dialog-header-icon {
  color: #B8A06A;
  font-size: 16px;
  flex-shrink: 0;
}
#mailmagazine .dialog-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.04em;
}
#mailmagazine .dialog-body {
  padding: 0 4px;
  max-height: 55vh;
  overflow-y: auto;
}
#mailmagazine .dialog-footer {
  display: flex;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid #D8C7A5;
  background: #F4F0E8;
}
#mailmagazine .dialog-footer .btn {
  flex: 1;
  text-align: center;
  justify-content: center;
  border-radius: 3px;
}
#mailmagazine td.title {
  text-align: left;
}
#mailmagazine .reserve-row {
  background-color: rgba(184, 160, 106, 0.3);
}
#mailmagazine .form-group {
  margin-bottom: 1.5rem;
}
#mailmagazine .form-control {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  background-color: #FFFFFF;
  color: #495057;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
#mailmagazine .form-control:focus {
  border-color: #B8A06A;
  box-shadow: 0 0 0 0.2rem rgba(184, 160, 106, 0.2);
  outline: 0;
}
#mailmagazine #editor-container {
  margin-bottom: 1rem;
}
#mailmagazine .mm-template-btns {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
#mailmagazine .editor-toolbar {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  border: 1px solid #D8C7A5;
  border-radius: 0.25rem;
  background-color: #F4F0E8;
  gap: 0.5rem;
}
#mailmagazine .editor-btn-group {
  display: flex;
  gap: 2px;
}
#mailmagazine .editor-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  min-width: 30px;
  padding: 0 8px;
  background: transparent;
  border: 1px solid #D8C7A5;
  border-radius: 3px;
  color: #6F6A61 !important;
  font-size: 0.8rem;
  cursor: pointer;
  line-height: 1;
}
#mailmagazine .editor-btn:hover {
  background: #FFFFFF;
  border-color: #6F6A61;
  color: #111417;
}
#mailmagazine .editor-btn.editor-btn-toggle {
  white-space: nowrap;
  padding: 0 12px;
}
#mailmagazine .editor-select {
  height: 30px;
  padding: 0 6px;
  border: 1px solid #D8C7A5;
  border-radius: 3px;
  background: transparent;
  color: #6F6A61 !important;
  font-size: 0.8rem;
  cursor: pointer;
}
#mailmagazine .editor-select:focus {
  outline: none;
  border-color: #6F6A61;
}
#mailmagazine #editor-container.view-mode #preview-area {
  min-height: 400px;
  padding: 10px;
  overflow-y: auto;
  border: 1px solid #E8E1D6;
  border-radius: 0.25rem;
  background-color: #F4F0E8;
}
#mailmagazine #editor-container.view-mode .editor-toolbar {
  display: none;
}
#mailmagazine #preview-area,
#mailmagazine #source-editor {
  width: 100%;
  min-height: 400px;
  padding: 10px;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  background-color: #FFFFFF;
}
#mailmagazine #source-editor {
  display: none;
  font-family: monospace;
  resize: vertical;
}
#mailmagazine .template-content {
  padding: 1rem;
}
#mailmagazine .ui-dialog {
  padding: 0;
  border-radius: 0.3rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}
#mailmagazine .ui-dialog .ui-dialog-buttonpane {
  padding: 0.5rem 1rem;
  background: #FFFFFF;
  border-top: 1px solid #E8E1D6;
}
#mailmagazine .form-control-static {
  min-height: 38px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #E8E1D6;
  border-radius: 0.25rem;
  background-color: #F4F0E8;
}
#mailmagazine .dialog table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
#mailmagazine .dialog table thead tr {
  background: #F4F0E8;
}
#mailmagazine .dialog table th {
  padding: 10px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6F6A61;
  text-align: left;
  border-bottom: 1px solid #D8C7A5;
  white-space: nowrap;
}
#mailmagazine .dialog table td {
  padding: 10px 14px;
  border-bottom: 1px solid #D8C7A5;
  color: #111417;
  vertical-align: middle;
}
#mailmagazine .dialog table tbody tr:last-child td {
  border-bottom: none;
}
#mailmagazine .dialog table tbody tr:nth-child(even) td {
  background: rgba(0, 0, 0, 0.025);
}
#mailmagazine .dialog table tbody tr:hover td {
  background: rgba(184, 160, 106, 0.08);
  cursor: pointer;
}
#mailmagazine .dialog table td:first-child {
  width: 48px;
  text-align: center;
}
#mailmagazine .dialog table td:nth-child(2) {
  width: 60px;
  text-align: center;
}
#mailmagazine .col-date {
  width: 140px;
  white-space: nowrap;
}
#mailmagazine .col-title {
  min-width: 220px;
}
#mailmagazine .col-status {
  width: 70px;
}
#mailmagazine .col-num {
  width: 68px;
  text-align: right !important;
}
#mailmagazine .col-actions {
  width: 80px;
}
#mailmagazine .col-fixed {
  width: 120px;
}
#mailmagazine .is-reserved-row td {
  background: rgba(184, 160, 106, 0.22) !important;
}
#mailmagazine .text-danger {
  color: #CC2200;
  font-weight: 600;
}
#banner .mail-table {
  min-width: 600px;
}
#enquete .mail-table {
  min-width: 700px;
}
#user .mail-table {
  min-width: 650px;
}
#task-tracking .mail-table {
  min-width: 1000px;
}
#site .mail-table {
  min-width: 550px;
}
#mailmagazineTemplate .mail-table {
  min-width: 500px;
}
#mailmagazineUser .mail-table {
  min-width: 700px;
}
#mailmagazineUser .magu-table-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
#mailmagazineUser .magu-info-text {
  font-size: 0.75rem;
  color: #6F6A61;
}
#mailmagazineUser .col-check,
#mailmagazineUser .col-id,
#mailmagazineUser .col-quality,
#mailmagazineUser .col-num,
#mailmagazineUser .col-date {
  text-align: center !important;
}
#mailmagazineUser .col-date {
  white-space: nowrap;
}
#mailmagazineUser .inactive-user td {
  opacity: 0.45;
}
/* User Page */
#user #controls {
  justify-content: flex-start;
}
#user .list {
  width: 100%;
  border-collapse: collapse;
}
#user .list table {
  width: 100%;
}
#user .list th,
#user .list td {
  width: calc(100% / 8);
  box-sizing: border-box;
  border: 1px solid #D8C7A5;
  color: #111417;
  font-size: 80%;
  vertical-align: middle;
}
#user .detail #controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
#user .detail #controls .btn {
  width: 100%;
  font-size: 0.9rem;
}
@media (max-width: 575.98px) {
  #user .list th,
  #user .list td {
    min-width: 100px !important;
  }
  #user .detail #controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  #user .detail tr {
    display: flex;
    flex-wrap: wrap;
  }
  #user .detail th,
  #user .detail td {
    position: relative;
    display: block;
    width: 100%;
    margin-bottom: -1px;
    padding: 0.75rem;
    line-height: 1.5rem;
    text-align: left;
  }
  #user .detail th:before,
  #user .detail td:before {
    display: block;
    font-weight: bold;
    white-space: pre-wrap;
    content: attr(data-label);
  }
  #user .button-group {
    display: block;
  }
  #user .button-group .btn {
    width: 100%;
    margin-bottom: 10px;
  }
  #user .button-group .btn:last-child {
    margin-bottom: 0;
  }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  #user .list #controls {
    gap: 10px;
  }
  #user .list #controls .btn {
    flex: 1;
    font-size: 0.9rem;
  }
  #user .list tr {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  #user .list th {
    display: none;
  }
  #user .list td {
    position: relative;
    width: 100%;
    margin-bottom: -1px;
    padding: 0.75rem;
    line-height: 1.5rem;
  }
  #user .list td:before {
    display: block;
    font-weight: bold;
    white-space: pre-wrap;
    content: attr(data-label);
  }
  #user .list td:first-child,
  #user .list td:last-child {
    width: calc(100% / 2);
  }
  #user .list td:first-child {
    order: 1;
    border-right: none;
  }
  #user .list td:last-child {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    order: 2;
    border-left: none;
  }
  #user .list td:last-child .btn {
    width: 100%;
    margin-top: 10px;
  }
  #user .list td:last-child .btn:first-child {
    margin-top: 10px;
  }
  #user .list td:nth-child(2),
  #user .list td:nth-child(3),
  #user .list td:nth-child(4),
  #user .list td:nth-child(5),
  #user .list td:nth-child(6) {
    order: 3;
  }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  #user .list #controls {
    gap: 10px;
  }
  #user .list th,
  #user .list td {
    width: calc(100vw / 7);
  }
  #user .list td:last-child .btn {
    width: 100%;
    margin-top: 10px;
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  #user .list #controls {
    gap: 10px;
  }
  #user .list th,
  #user .list td {
    width: calc(100vw / 7);
  }
  #user .list td:last-child .btn {
    width: 100%;
    margin-top: 10px;
  }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  #user .list #controls {
    gap: 10px;
  }
  #user .list th,
  #user .list td {
    width: calc(100vw / 7);
  }
  #user .list td:last-child .btn {
    width: 100%;
    margin-top: 10px;
  }
}
@media (min-width: 1400px) {
  #user .list #controls {
    gap: 10px;
  }
  #user .list th,
  #user .list td {
    width: calc(100vw / 7);
  }
  #user .list td:last-child .btn {
    width: 100%;
    margin-top: 10px;
  }
}
/* Attributes Page */
#attributes .editbox {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #D8C7A5;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #111417;
  box-sizing: border-box;
}
#attributes .editbox:focus {
  outline: none;
  border-color: #B8A06A;
  box-shadow: 0 0 0 2px rgba(184, 160, 106, 0.3);
}
#attributes .table {
  width: 100%;
}
#attributes .table table {
  width: 100%;
}
#attributes .table th,
#attributes .table td {
  border: 1px solid #D8C7A5;
  color: #111417;
  font-size: 0.9rem;
  text-align: center;
  vertical-align: middle;
}
#attributes .table .editbox {
  width: 100%;
  padding: 10px;
  text-align: center;
}
#attributes .table th:nth-child(1),
#attributes .table th:nth-child(3),
#attributes .table th:nth-child(4) {
  width: 10%;
}
#attributes .col-drag {
  width: 40px;
}
#attributes .drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #D8C7A5;
  cursor: grab;
  font-size: 1rem;
}
#attributes .drag-handle:active {
  cursor: grabbing;
}
#attributes .attributes-card {
  max-width: 50%;
}
#attributes .attributes-card .mail-table {
  width: 100%;
}
#attributes .title-actions form {
  display: contents;
}
@media (max-width: 767.98px) {
  #attributes .attributes-card {
    max-width: 100%;
  }
  #attributes .mail-table th,
  #attributes .mail-table td {
    padding: 6px 8px;
  }
  #attributes .title-actions form {
    display: flex;
    width: 100%;
    gap: 6px;
  }
  #attributes .title-actions form .cast-search-input {
    flex: 1;
  }
  #attributes .title-actions form .btn {
    flex: 1;
  }
}
#attributes .mail-table td:nth-child(2),
#attributes .mail-table td:nth-child(4),
#attributes .mail-table td:nth-child(5) {
  text-align: center;
}
#attributes .mail-table td:nth-child(3) {
  text-align: left;
}
#attributes .mail-table td:last-child {
  white-space: nowrap;
}
/* MyPage Page */
#mypage .cast-profile-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
}
#mypage .cast-profile-figure {
  flex-shrink: 0;
  margin: 0;
}
#mypage .cast-profile-figure img {
  display: block;
  border-radius: 4px;
  border: 1px solid #D8C7A5;
}
#mypage .cast-profile-body {
  flex: 1;
  min-width: 0;
}
#mypage .cast-profile-name {
  margin: 0 0 12px;
  font-family: 'Cormorant Garamond', 'Hiragino Mincho Pro', 'Yu Mincho', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #111417;
}
#mypage .cast-profile-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}
#mypage .cast-profile-list li {
  padding: 6px 0;
  border-bottom: 1px solid #E8E1D6;
  font-size: 0.8rem;
  color: #1F1F1F;
}
#mypage .cast-profile-list li:last-child {
  border-bottom: none;
}
#mypage .cast-profile-note {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: #6F6A61;
}
#mypage #siteInfoForm .mail-table {
  table-layout: fixed;
  width: 100%;
}
#mypage #siteInfoForm .mail-table th,
#mypage #siteInfoForm .mail-table td {
  text-align: center;
  vertical-align: middle;
}
#mypage #siteInfoForm .mail-table th:nth-child(1),
#mypage #siteInfoForm .mail-table td:nth-child(1) {
  width: 40px;
  text-align: center;
}
#mypage #siteInfoForm .mail-table th:nth-child(2),
#mypage #siteInfoForm .mail-table td:nth-child(2) {
  width: 15%;
  text-align: left;
}
#mypage #siteInfoForm .mail-table th:nth-child(3),
#mypage #siteInfoForm .mail-table td:nth-child(3) {
  width: 15%;
}
#mypage #siteInfoForm .mail-table th:nth-child(4),
#mypage #siteInfoForm .mail-table td:nth-child(4) {
  width: 20%;
}
#mypage #siteInfoForm .mail-table th:nth-child(5),
#mypage #siteInfoForm .mail-table td:nth-child(5) {
  width: 20%;
}
#mypage #siteInfoForm .mail-table th:nth-child(6),
#mypage #siteInfoForm .mail-table td:nth-child(6) {
  width: 20%;
}
#mypage #siteInfoForm .mail-table .editbox {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #D8C7A5;
  border-radius: 3px;
  font-size: 0.75rem;
  color: #111417;
  box-sizing: border-box;
  background: #FFFFFF;
  transition: border-color 0.2s;
}
#mypage #siteInfoForm .mail-table .editbox:focus {
  outline: none;
  border-color: #B8A06A;
  box-shadow: 0 0 0 2px rgba(184, 160, 106, 0.2);
}
#mypage #siteInfoForm .mail-table .editbox:disabled {
  background: #F4F0E8;
  color: #6F6A61;
  cursor: not-allowed;
}
#mypage #siteInfoForm .mail-table .site-cell {
  font-size: 0.75rem;
  color: #6F6A61;
}
#mypage #siteInfoForm .mail-table .site-cell .update-time {
  margin-top: 4px;
  font-size: 0.68rem;
  color: #D8C7A5;
}
#mypage .form-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid #D8C7A5;
  background: #F4F0E8;
}
@media (max-width: 767.98px) {
  #mypage .cast-profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  #mypage .cast-profile-list {
    text-align: left;
  }
  #mypage .form-footer {
    flex-wrap: wrap;
  }
}
#master .form-group {
  text-align: left;
}
@media (max-width: 767.98px) {
  #master .cast-form-2col {
    grid-template-columns: 1fr;
  }
}
#user .form-group {
  text-align: left;
}
#site .form-group {
  text-align: left;
}
#analytics #monthSelector {
  display: inline-block;
  padding: 0.575rem 0.75rem;
  box-sizing: border-box;
  color: #111417;
  font-size: 0.75rem;
  font-weight: bold;
}
#analytics .list-view {
  overflow-y: auto;
}
#analytics .list-view table {
  width: 3600px;
}
#analytics .list-view table th,
#analytics .list-view table td {
  text-align: center;
}
/* Enquete Page */
#enquete .mail-card {
  overflow: visible;
}
#enquete .mail-table {
  table-layout: fixed;
}
#enquete .mail-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #F4F0E8;
}
#enquete .mail-table th,
#enquete .mail-table td {
  text-align: center;
}
#enquete .enq-col-date {
  white-space: nowrap;
}
#enquete .enq-ip-cell {
  font-size: 0.68rem;
  line-height: 1.8;
}
#enquete .enq-geo {
  color: #6F6A61;
}
#enquete .enq-unknown {
  color: #D8C7A5;
}
#enquete .enq-dup-warn {
  color: #CC2200;
  font-weight: 700;
  margin-left: 4px;
}
#enquete .enq-duplicate-row td {
  background: rgba(243, 156, 18, 0.1) !important;
}
#enquete .enq-detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  align-items: start;
}
#enquete .enq-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #111417;
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
#enquete .enq-card-header i {
  color: #B8A06A;
}
#enquete .enq-card-header--sub {
  background: #F4F0E8;
  color: #6F6A61;
  border-top: 1px solid #D8C7A5;
}
#enquete .enq-card-header--sub i {
  color: #B8A06A;
}
#enquete .enq-card-header--warn {
  background: rgba(243, 156, 18, 0.15);
  color: #1F1F1F;
  border-bottom: 1px solid rgba(243, 156, 18, 0.4);
}
#enquete .enq-card-header--warn i {
  color: #F39C12;
}
#enquete .enq-dl {
  margin: 0;
  padding: 0 20px;
}
#enquete .enq-dl-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #D8C7A5;
}
#enquete .enq-dl-row:last-child {
  border-bottom: none;
}
#enquete .enq-dl-row--full {
  grid-template-columns: 1fr;
}
#enquete .enq-dl-row--full dt {
  margin-bottom: 4px;
}
#enquete .enq-dl-row dt {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6F6A61;
  align-self: center;
}
#enquete .enq-dl-row dd {
  margin: 0;
  font-size: 0.8rem;
  color: #1F1F1F;
  align-self: center;
}
#enquete .enq-reply-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1F1F1F;
  margin-bottom: 16px;
}
#enquete .enq-reply-title i {
  color: #B8A06A;
}
#enquete .enq-whois-link {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.68rem;
  color: #B8A06A;
  border: 1px solid #D8C7A5;
  border-radius: 3px;
  padding: 1px 6px;
  text-decoration: none;
}
#enquete .enq-whois-link:hover {
  background: #F4F0E8;
}
#enquete .enq-break {
  word-break: break-all;
  font-size: 0.68rem;
}
#enquete .enq-dup-card {
  overflow: hidden;
}
#token-debug .mail-table th,
#token-debug .mail-table td {
  text-align: center;
}
#analyticsCast .mail-card {
  overflow: visible;
}
#analyticsCast .mail-table {
  table-layout: fixed;
  width: 100%;
}
#analyticsCast .mail-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #F4F0E8;
}
#analyticsCast .mail-table th,
#analyticsCast .mail-table td {
  text-align: center;
  vertical-align: middle;
}
#analyticsCast .mail-table th:first-child,
#analyticsCast .mail-table td.period-cell {
  border-right: 2px solid #D8C7A5;
}
#analyticsCast .mail-table td.schedule-status {
  cursor: pointer;
}
#analyticsCast .mail-table td.schedule-status:hover {
  text-decoration: underline;
}
#analyticsCast .mail-table td.data-cell {
  font-size: 0.8rem;
  color: #1F1F1F;
}
#analyticsCast .mail-table .col-date {
  width: 15%;
}
#analyticsCast .empty-message {
  padding: 20px;
  color: #6F6A61;
  font-size: 0.8rem;
}
#analyticsCast .dialog > div {
  width: 100%;
  max-width: 360px;
  padding: 20px;
}
#task-tracking .mail-card {
  overflow: visible;
}
#task-tracking .mail-table {
  table-layout: fixed;
}
#task-tracking .mail-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #F4F0E8;
}
#task-tracking .mail-table th,
#task-tracking .mail-table td {
  text-align: center;
  vertical-align: middle;
}
#task-tracking .mail-table th img,
#task-tracking .mail-table td img {
  margin: 0 auto;
}
#task-tracking .mail-table thead .sortable .sort-icon.asc {
  border-bottom-color: rgba(17, 20, 23, 0.12) !important;
}
#task-tracking .mail-table thead .sortable .sort-icon.desc {
  border-top-color: rgba(17, 20, 23, 0.12) !important;
}
#task-tracking .mail-table thead .sortable.active .sort-icon.asc {
  border-bottom-color: #111417 !important;
}
#task-tracking .mail-table thead .sortable.active .sort-icon.desc {
  border-top-color: #111417 !important;
}
#task-tracking .mail-table thead .sortable:hover .sort-icon {
  opacity: 1;
}
#task-tracking .one-week td {
  background-color: rgba(204, 34, 0, 0.08) !important;
}
#task-tracking .three-days td {
  background-color: rgba(243, 156, 18, 0.1) !important;
}
#task-tracking .one-day td {
  background-color: rgba(184, 160, 106, 0.08) !important;
}
#task-tracking .disabled td {
  opacity: 0.42;
}
#task-tracking .task-filter-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
}
#task-tracking .task-filter-tabs a {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border: 1px solid #D8C7A5;
  border-radius: 3px;
  font-size: 0.8rem;
  color: #6F6A61;
  text-decoration: none;
  background: #FFFFFF;
  transition: all 0.25s ease;
}
#task-tracking .task-filter-tabs a.is-active,
#task-tracking .task-filter-tabs a:hover {
  background: #111417;
  border-color: #111417;
  color: #FFFFFF;
}
#task-tracking .site-list {
  flex-wrap: wrap;
  gap: 8px 0;
  padding: 4px 0;
}
#task-tracking .site-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
#task-tracking .site-item > label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #111417;
  white-space: nowrap;
  min-width: 25%;
}
#task-tracking-stats .card-header {
  background: #FFFFFF;
}
#task-tracking-stats .ts-year-select {
  height: 36px;
  padding: 0 12px;
  border: 1px solid #D8C7A5;
  border-radius: 3px;
  font-size: 0.8rem;
  color: #111417;
  background: #FFFFFF;
  min-width: 110px;
  cursor: pointer;
  text-align: center;
}
#task-tracking-stats .ts-year-select:focus {
  outline: none;
  border-color: #B8A06A;
}
#task-tracking-stats .ts-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding: 20px 24px 24px;
}
@media (max-width: 767.98px) {
  #task-tracking-stats .ts-summary-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767.98px) {
  #task-tracking-stats .ts-year-select {
    min-width: 80px;
    flex: 1;
  }
}
#task-tracking-stats .mail-table {
  table-layout: fixed;
}
#task-tracking-stats .mail-table th,
#task-tracking-stats .mail-table td {
  text-align: center;
}
#task-tracking-stats .mail-table tfoot td {
  background: #F4F0E8;
  font-weight: 700;
}
#analytics .ts-year-select,
#analytics_data .ts-year-select {
  height: 36px;
  padding: 0 12px;
  border: 1px solid #D8C7A5;
  border-radius: 3px;
  font-size: 0.8rem;
  color: #111417;
  background: #FFFFFF;
  min-width: 120px;
  cursor: pointer;
  text-align: center;
}
#analytics .ts-year-select:focus,
#analytics_data .ts-year-select:focus {
  outline: none;
  border-color: #B8A06A;
}
#analytics .mail-table thead tr,
#analytics_data .mail-table thead tr {
  background: #F4F0E8;
}
#analytics .mail-table thead th,
#analytics_data .mail-table thead th {
  color: #6F6A61;
}
#analytics .mail-table th,
#analytics_data .mail-table th,
#analytics .mail-table td,
#analytics_data .mail-table td {
  text-align: center;
  vertical-align: middle;
  border: 1px solid #D8C7A5;
}
#analytics .mail-table td.text-right,
#analytics_data .mail-table td.text-right {
  text-align: right;
}
#analytics .dateSun,
#analytics_data .dateSun {
  color: #CC2200;
}
#analytics .dateSat,
#analytics_data .dateSat {
  color: #17A2B8;
}
#analytics .future-date td,
#analytics_data .future-date td,
#analytics .future-date th,
#analytics_data .future-date th {
  opacity: 0.45;
}
#analytics .plus,
#analytics_data .plus {
  color: #28A745;
  font-weight: 700;
}
#analytics .minus,
#analytics_data .minus {
  color: #CC2200;
  font-weight: 700;
}
#analytics .total-row td,
#analytics_data .total-row td,
#analytics .total-row th,
#analytics_data .total-row th {
  background: #F4F0E8;
  font-weight: 700;
}
#analytics .average-row td,
#analytics_data .average-row td,
#analytics .average-row th,
#analytics_data .average-row th {
  background: #FFFFFF;
  font-weight: 700;
}
#analytics .diff-row td,
#analytics_data .diff-row td,
#analytics .diff-row th,
#analytics_data .diff-row th {
  background: #F4F0E8;
  font-weight: 700;
}
#scheduleCount .CountArea {
  padding: 25px;
}
@media (max-width: 575.98px) {
  #scheduleCount #FilterButtons form {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  #scheduleCount #FilterButtons form input,
  #scheduleCount #FilterButtons form .btn {
    width: 100%;
    margin-bottom: 10px;
  }
  #scheduleCount #FilterButtons form .btn {
    margin-bottom: 0;
  }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  #scheduleCount #FilterButtons form {
    display: flex;
    align-items: stretch;
  }
  #scheduleCount #FilterButtons form input {
    margin-right: 25px;
  }
  #scheduleCount #FilterButtons form input:last-of-type {
    margin-right: 10px;
  }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  #scheduleCount #FilterButtons form {
    display: flex;
    align-items: stretch;
  }
  #scheduleCount #FilterButtons form input {
    margin-right: 25px;
  }
  #scheduleCount #FilterButtons form input:last-of-type {
    margin-right: 10px;
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  #scheduleCount #FilterButtons form {
    display: flex;
    align-items: stretch;
  }
  #scheduleCount #FilterButtons form input {
    margin-right: 25px;
  }
  #scheduleCount #FilterButtons form input:last-of-type {
    margin-right: 10px;
  }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  #scheduleCount #FilterButtons form {
    display: flex;
    align-items: stretch;
  }
  #scheduleCount #FilterButtons form input {
    margin-right: 25px;
  }
  #scheduleCount #FilterButtons form input:last-of-type {
    margin-right: 10px;
  }
}
@media (min-width: 1400px) {
  #scheduleCount #FilterButtons form {
    display: flex;
    align-items: stretch;
  }
  #scheduleCount #FilterButtons form input {
    margin-right: 25px;
  }
  #scheduleCount #FilterButtons form input:last-of-type {
    margin-right: 10px;
  }
}
#banner .banner-tabs {
  display: flex;
  border-bottom: 2px solid #D8C7A5;
  margin-bottom: 0;
}
#banner .banner-tab {
  padding: 10px 28px;
  font-size: 0.8rem;
  color: #6F6A61;
  text-decoration: none;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  margin-bottom: -2px;
  transition: color 0.15s, background 0.15s;
}
#banner .banner-tab:hover {
  color: #111417;
}
#banner .banner-tab.is-active {
  color: #111417;
  background: #FFFFFF;
  border-color: #D8C7A5;
  font-weight: 600;
}
#banner .banner-tab-body {
  background: #FFFFFF;
  border: 1px solid #D8C7A5;
  border-top: none;
  padding: 20px 24px 24px;
}
#banner .banner-tab-note {
  font-size: 0.75rem;
  color: #6F6A61;
  margin: 0 0 20px;
}
#banner .col-drag {
  width: 40px;
}
#banner .col-status {
  width: 80px;
}
#banner .col-thumb {
  width: 160px;
}
#banner .col-url {
  max-width: 260px;
  word-break: break-all;
  font-size: 0.8rem;
  color: #6F6A61;
}
#banner .col-actions {
  width: 180px;
}
#banner .drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #D8C7A5;
  cursor: grab;
  font-size: 1rem;
  border-radius: 4px;
  transition: color 0.15s;
}
#banner .drag-handle:hover {
  color: #6F6A61;
}
#banner .banner-thumb {
  display: block;
  width: 130px;
  height: auto;
  border-radius: 3px;
  border: 1px solid #D8C7A5;
}
#banner .banner-actions {
  display: flex;
  justify-content: center;
  gap: 6px;
  align-items: center;
}
#banner .banner-actions .btn {
  padding: 0 14px;
  height: 32px;
  line-height: 30px;
  font-size: 0.75rem;
  font-weight: 500;
  min-width: 0;
  white-space: nowrap;
  box-sizing: border-box;
}
#banner .banner-actions .btn-dark {
  background: #111417;
  color: #FFFFFF;
  border-color: #111417;
}
#banner .banner-actions .btn-dark:hover {
  background: #2b333a;
}
#banner .banner-actions .btn-outline {
  background: #FFFFFF;
  color: #111417;
  border-color: #D8C7A5;
}
#banner .banner-actions .btn-outline:hover {
  border-color: #6F6A61;
}
#banner .banner-no-value {
  color: #6F6A61;
}
#banner .ui-sortable-helper {
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
/* Error Page */
#error .error-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 120px);
  box-sizing: border-box;
  text-align: center;
}
#error .error-container h2 {
  color: #5E584F;
  font-size: 6rem;
  line-height: 3rem;
}
#error .error-container h3 {
  margin: 1rem 0;
  font-size: 1.2rem;
}
#error .error-container .error-message {
  margin: 1rem 0;
  font-size: 1rem;
}
#error .error-container .error-actions {
  display: flex;
  margin-top: 2rem;
  gap: 1rem;
}
#error .error-container .error-actions .btn {
  width: 180px;
  padding: 0.5rem 1.5rem;
}
@media not print {
  #cast-profile-detail .print-area {
    background: #FFFFFF;
    padding: 30px 40px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  }
}
#cast-profile-detail body {
  font-family: "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "游明朝", YuMincho, "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif !important;
}
#cast-profile-detail p {
  margin: 0 0 10px;
}
#cast-profile-detail h3 {
  width: 100%;
  font-size: 18px;
}
#cast-profile-detail h3 span {
  font-size: 13px;
  font-weight: normal;
}
#cast-profile-detail .note {
  color: red;
  font-size: 9pt;
}
#cast-profile-detail .table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
}
#cast-profile-detail .table td {
  width: 25%;
  padding: 15px;
  border: 1px solid black;
  text-align: left;
}
#cast-profile-detail .heading {
  font-size: 14pt;
  font-weight: bold;
}
#cast-profile-detail .row2,
#cast-profile-detail .row3,
#cast-profile-detail .row4,
#cast-profile-detail .row5,
#cast-profile-detail .row6,
#cast-profile-detail .row7 {
  margin-bottom: 50px;
}
#cast-profile-detail .row4,
#cast-profile-detail .row5,
#cast-profile-detail .row6,
#cast-profile-detail .row7 {
  font-size: 13px;
}
#cast-profile-detail .row1 {
  display: grid;
  font-size: 18px;
  font-weight: bold;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}
#cast-profile-detail .row1 dl {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #000;
}
#cast-profile-detail .row1 dt {
  width: 20%;
  margin-right: 10px;
}
#cast-profile-detail .row1 dd {
  flex: 1;
  margin: 0;
}
#cast-profile-detail .row2 {
  display: grid;
  font-size: 13px;
  font-weight: bold;
  grid-template-columns: repeat(3, 1fr);
}
#cast-profile-detail .row2 dl {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #000;
}
#cast-profile-detail .row3 {
  display: flex;
  flex-wrap: wrap;
  font-size: 16px;
}
#cast-profile-detail .row3 dl {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 5px;
  border-bottom: 1px solid #000;
}
#cast-profile-detail .row3 dt {
  white-space: nowrap;
}
#cast-profile-detail .row3 dd {
  margin-right: 25px;
  white-space: nowrap;
}
#cast-profile-detail .row3 dd.cm {
  margin-left: 3.6rem;
}
#cast-profile-detail .row4 div {
  display: grid;
  font-size: 13px;
  line-height: 2.4rem;
  grid-template-columns: repeat(3, 1fr);
}
#cast-profile-detail .row4 div.comment {
  display: flex;
  grid-column: 1 / -1;
  border-bottom: 1px solid #000;
}
#cast-profile-detail .row4 dl {
  margin: 0;
  padding: 5px 0;
}
#cast-profile-detail .row4 dt {
  display: inline;
  margin-right: 10px;
  white-space: normal;
}
#cast-profile-detail .row4 dd {
  display: inline;
  margin: 0;
}
#cast-profile-detail .row5 div {
  display: grid;
  font-size: 13px;
  line-height: 2.4rem;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}
#cast-profile-detail .row5 dl {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 5px 0;
  border-bottom: 1px solid #000;
}
#cast-profile-detail .row5 dt {
  width: 80px;
  margin-right: 10px;
  white-space: nowrap;
}
#cast-profile-detail .row5 dd {
  flex: 1;
  margin: 0;
  white-space: nowrap;
}
#cast-profile-detail .row6 ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  gap: 10px;
}
#cast-profile-detail .row6 ul li {
  margin: 0 25px;
  white-space: nowrap;
}
#cast-profile-detail .row7 div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
#cast-profile-detail .row7 dl {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 5px 0;
}
#cast-profile-detail .row7 dt {
  margin-right: 25px;
  white-space: nowrap;
}
#cast-profile-detail .row7 dt span.no-print {
  margin-right: 10px;
}
#cast-profile-detail .row7 dd {
  flex: 1;
  margin: 0;
}
@media print {
  @page {
    margin: 10mm;
    size: A4;
  }
  #cast-profile-detail .row1,
  #cast-profile-detail .row2,
  #cast-profile-detail .row3,
  #cast-profile-detail .row4,
  #cast-profile-detail .row5,
  #cast-profile-detail .row6,
  #cast-profile-detail .row7 {
    page-break-inside: avoid;
  }
  #cast-profile-detail body {
    font-family: "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "游明朝", YuMincho, "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
  }
  #cast-profile-detail h3 {
    font-size: 14px;
  }
  #cast-profile-detail .row1,
  #cast-profile-detail .row2,
  #cast-profile-detail .row3 {
    font-size: 13px;
  }
  #cast-profile-detail .row4,
  #cast-profile-detail .row5,
  #cast-profile-detail .row6,
  #cast-profile-detail .row7 {
    font-size: 12px;
  }
  #cast-profile-detail .row4 div {
    line-height: 1.75rem;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  #cast-profile-detail .row4 div.comment {
    border: none;
    line-height: 1.75rem;
    grid-column: span 2;
    grid-template-columns: none;
  }
  #cast-profile-detail table {
    page-break-inside: avoid;
  }
  #cast-profile-detail td {
    font-size: 12px;
  }
  #cast-profile-detail header,
  #cast-profile-detail footer,
  #cast-profile-detail nav,
  #cast-profile-detail aside,
  #cast-profile-detail #controls,
  #cast-profile-detail #OperationsButtons,
  #cast-profile-detail .title-block,
  #cast-profile-detail .no-print {
    display: none !important;
  }
  #cast-profile-detail #wrapper,
  #cast-profile-detail #content,
  #cast-profile-detail section,
  #cast-profile-detail .section {
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
  }
  #cast-profile-detail html,
  #cast-profile-detail body {
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
  }
  #cast-profile-detail .print-area {
    display: flex;
    flex-direction: column;
  }
  #cast-profile-detail .print-area .row1 {
    order: 1;
  }
  #cast-profile-detail .print-area .row2 {
    order: 2;
  }
  #cast-profile-detail .print-area .row3 {
    order: 3;
  }
  #cast-profile-detail .print-area .row5 {
    order: 4;
  }
  #cast-profile-detail .print-area .row6 {
    order: 5;
  }
  #cast-profile-detail .print-area .row7 {
    order: 6;
  }
  #cast-profile-detail .print-area .row4 {
    order: 7;
  }
}
body#user table td,
body#banner table td {
  text-align: center;
}
body#site table td {
  text-align: center;
}
body#site table td.site-name,
body#site table td.site-url {
  text-align: left;
}
body#site .site-table-cols col:nth-child(1) {
  width: 10%;
}
body#site .site-table-cols col:nth-child(2) {
  width: 10%;
}
body#site .site-table-cols col:nth-child(3) {
  width: 30%;
}
body#site .site-table-cols col:nth-child(4) {
  width: 30%;
}
body#site .site-table-cols col:nth-child(5) {
  width: 10%;
}
body#site .site-table-cols col:nth-child(6) {
  width: 10%;
}
body#scheduleFilter .filter-card-body {
  align-items: flex-start;
}
body#dashboard .schedule-cell .newcomer {
  color: #e74c3c;
  font-weight: bold;
  font-size: 12px;
}
body#dashboard .schedule-description span:last-child {
  color: #e74c3c;
}
body#dashboard .working-mark {
  color: #27ae60;
  font-weight: bold;
  margin-right: 5px;
}
body#schedule .item.working {
  background-color: rgba(0, 255, 0, 0.1);
  border: 1px solid #4CAF50;
}
body#banner #filterButtons .active {
  background-color: #81d8d0;
}
body#status #workHistoryTable td:nth-child(3) {
  text-align: left;
}
body#statusFilter .castList .item.cast-inactive {
  opacity: 0.55;
}
body#statusFilter .castList .item.cast-inactive:hover {
  transform: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
