@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
}
@media print {
  body {
    background: white;
    font-size: 12pt;
  }
  h1 {
    font-size: 18pt;
  }
  h2 {
    font-size: 16pt;
  }
  h3 {
    font-size: 14pt;
  }
}
.badge {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
  display: inline-block;
  line-height: 1.2;
}

.badge--info {
  background: #cce5ff;
  color: #004085;
}

.badge--muted {
  background: #e2e3e5;
  color: #383d41;
}

.badge--default {
  background: #e2e3e5;
  color: #383d41;
}

.badge--success {
  background: #d4edda;
  color: #155724;
}

.badge--warning {
  background: #fff3cd;
  color: #856404;
}

.badge--danger {
  background: #f8d7da;
  color: #721c24;
}

.badge--ml {
  margin-left: 0.5rem;
}

.badge--mr {
  margin-right: 5px;
}

.badge--system {
  margin-left: 4px;
  background: none;
  color: inherit;
  border-radius: 0;
  padding: 0;
  font-size: 1em;
  vertical-align: middle;
}

.badge--active {
  margin-left: 8px;
  background-color: #28a745;
  color: white;
}

.badge--inactive {
  margin-left: 8px;
  background-color: #6c757d;
  color: white;
}

.badge--item-one-time {
  background: #cce5ff;
  color: #004085;
}

.badge--item-recurring {
  background: #d4edda;
  color: #155724;
}

.badge--item-usage-based {
  background: #fff3cd;
  color: #856404;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  margin: 2px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}
.btn:hover {
  color: white;
}

.btn--small {
  padding: 6px 12px;
  font-size: 0.875rem;
}

.btn--success {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}
.btn--success:hover {
  background: linear-gradient(135deg, #1e7e34 0%, #186429 100%);
}

.btn--toggle {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}
.btn--toggle:hover {
  background: linear-gradient(135deg, #f57c00 0%, #ef6c00 100%);
}

.btn--toggle-enable {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
}
.btn--toggle-enable:hover {
  background: linear-gradient(135deg, #45a049 0%, #388e3c 100%);
}

.btn-group {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  align-items: center;
}
.btn-group__icons {
  display: flex;
  gap: 0.125rem;
  align-items: center;
}
.btn-group__actions {
  display: flex;
  gap: 0.375rem;
  align-items: center;
}

.icon-btn {
  background: none;
  border: none;
  padding: 4px 6px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1.4;
  border-radius: 4px;
  text-decoration: none;
}

.icon-btn--edit:hover {
  background-color: rgba(102, 126, 234, 0.1);
}

.icon-btn--delete:hover {
  background-color: rgba(244, 67, 54, 0.1);
}

.search-icon-btn {
  background: none;
  border: none;
  padding: 0;
  margin-left: 6px;
  cursor: pointer;
  font-size: 1em;
}

.name-link {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.name-link:hover {
  color: #0052a3;
  text-decoration: underline;
}

.admin-access-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid #d0d0d0;
  border-radius: 20px;
  background: #f5f5f5;
  color: #888;
  font-size: 0.85em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.admin-access-toggle:hover {
  border-color: #667eea;
  color: #667eea;
  background: #f0f0ff;
}
.admin-access-toggle.is-on {
  background: #e8f5e9;
  border-color: #2e7d32;
  color: #2e7d32;
}
.admin-access-toggle.is-on:hover {
  background: #ffebee;
  border-color: #b71c1c;
  color: #b71c1c;
}

.btn--secondary {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}
.btn--secondary:hover {
  background: linear-gradient(135deg, #495057 0%, #343a40 100%);
}

.btn--danger {
  background: linear-gradient(135deg, #dc3545 0%, #bd2130 100%);
}
.btn--danger:hover {
  background: linear-gradient(135deg, #bd2130 0%, #a71d2a 100%);
}

.btn--reapply {
  background: #6f42c1;
  color: white;
}
.btn--reapply:hover {
  background: #5a32a3;
}

.logout-btn {
  background: #dc3545;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
.logout-btn:hover {
  opacity: 0.85;
  color: white;
}
.logout-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.new-btn-group {
  margin-bottom: 15px;
}

.new-action-btn {
  margin-bottom: 15px;
}

.reply-submit-btn {
  margin-top: 12px;
}

.btn-group--right {
  display: flex;
  justify-content: flex-end;
}

.icon-add-row {
  display: flex;
  justify-content: center;
  margin: 8px 0;
}

.icon-btn--add:hover {
  background-color: rgba(102, 126, 234, 0.1);
}

.btn-group--between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 8px;
  margin: 16px 0;
}

.btn-group--between > div {
  display: flex;
  gap: 4px;
  align-items: center;
}

.btn-group--mt {
  margin-top: 1rem;
}

.form-expand-row td {
  padding: 0 !important;
  border-bottom: 1px solid #e0e0e0 !important;
}

.inline-form {
  margin: 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

.form-required::after {
  content: " *";
  color: #f44336;
  font-weight: bold;
}

.form-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
  min-height: 44px;
  box-sizing: border-box;
}
.form-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input--readonly {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

.form-text {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #666;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1rem;
  row-gap: 0;
  margin-bottom: 15px;
}

.form-row--gap-sm {
  gap: 8px;
}

.form-group-inline {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.form-group-inline label {
  margin-bottom: 0.25rem;
  font-weight: bold;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
}

.form-check-label {
  font-weight: 500;
  margin-bottom: 0;
}

.price-edit-inline {
  display: flex;
  gap: 4px;
  align-items: center;
}

.price-edit-input {
  width: 100px;
}

.price-clickable {
  cursor: pointer;
  text-decoration: underline dotted;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.textarea {
  resize: vertical;
  min-height: 80px;
}

.form-closable {
  position: relative;
}

.form-close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #e53935;
  line-height: 1;
  padding: 4px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.form-close-btn:hover {
  background: rgba(229, 57, 53, 0.1);
  color: #b71c1c;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 12px;
}

.filter-label {
  font-size: 0.875rem;
  color: #555;
  white-space: nowrap;
}

.filter-select {
  max-width: 160px;
  height: 32px;
  padding: 0 8px;
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
.edit-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #333;
}

.edit-label-required::after {
  content: " *";
  color: #dc3545;
}

.edit-select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 1rem;
  background-color: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: auto;
  min-height: 40px;
  box-sizing: border-box;
}
.edit-select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.edit-static {
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #495057;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  min-height: 40px;
}

.edit-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: #6c757d;
}

.form-hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #6c757d;
}

.day-type-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.radio-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  cursor: pointer;
}

.form-input--inline {
  width: auto;
  min-width: 120px;
}

.card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #ddd;
}
.card p {
  margin-top: 5px;
  margin-bottom: 5px;
}
.card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.card-title {
  margin-top: 0;
  font-size: 1.25rem;
  font-weight: bold;
  border-bottom: 2px solid #667eea;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.card-body {
  padding: 20px;
  background-color: #f8f9fa;
}

.card-body--large {
  padding: 40px;
}

.card-body--mb {
  margin-bottom: 10px;
}

.card--error {
  border-left: 4px solid #dc3545;
  margin-bottom: 1.5rem;
}

.card--warning {
  border-left: 4px solid #f57c00;
  margin-bottom: 1.5rem;
}

.detail-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #ddd;
}
.detail-card p {
  margin-top: 5px;
  margin-bottom: 5px;
}
.detail-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.new-form-wrapper {
  margin-bottom: 10px;
}
.new-form-wrapper--large {
  margin-bottom: 20px;
}

.entity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.entity-card {
  background: #f9f9f9;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.entity-card .entity-info {
  flex: 1;
}

.entity-access-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.entity-access-btn:hover:not(:disabled) {
  transform: translateY(-2px);
}
.entity-access-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #667eea;
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.card-header .card-header__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: bold;
}
.card-header .card-header__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

@media (max-width: 768px) {
  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .card-header__actions {
    flex-wrap: wrap;
  }
}
.detail-info-section {
  margin-bottom: 30px;
  padding: 10px 0;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}
.detail-info-section:last-child {
  border-bottom: none;
}

.detail-info-title {
  font-size: 16px;
  font-weight: bold;
  color: #667eea;
  margin-bottom: 15px;
  padding-left: 10px;
  border-left: 3px solid #667eea;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.detail-info-grid--center {
  align-items: center;
}

.detail-info-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 15px;
  align-items: start;
}
.detail-info-item:has(.input-unit-row-stretch) {
  grid-template-columns: minmax(auto, 180px) minmax(100px, 1fr);
}

.detail-info-label {
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.detail-info-value {
  font-size: 14px;
  color: #333;
}

.calc-basis-card {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 15px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}
.table thead th {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  font-weight: bold;
}
.table tbody tr {
  border-bottom: 1px solid #eee;
}
.table tbody td {
  padding: 8px;
  vertical-align: middle;
}

.table-scroll {
  overflow-x: auto;
  margin: 20px 0;
}

.scroll-mt {
  margin-top: 0.5rem;
  overflow-x: auto;
}

.scroll-mb {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.td-sm {
  font-size: 0.9rem;
}

.td-bold {
  font-weight: bold;
  vertical-align: middle;
}

.td-nowrap {
  font-size: 0.85rem;
  white-space: nowrap;
}

.empty-message {
  text-align: center;
  padding: 40px 20px;
  color: #888;
}
.empty-message p {
  margin: 5px 0;
}

.stats-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 1rem;
  border-right: 1px solid #e0e0e0;
}
.stat-item:last-child {
  border-right: none;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}
.data-table thead {
  background: #f8f9fa;
}
.data-table thead th {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
  background-color: #f5f5f5;
  font-weight: bold;
  color: #333;
}
.data-table tbody tr:hover {
  background: #f8f9fa;
  transition: background 0.2s;
}
.data-table tbody td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.th--right,
.td--right {
  text-align: right;
}

.th--center,
.td--center {
  text-align: center;
}

.table--mt {
  margin-top: 1rem;
}

.table-responsive {
  overflow-x: auto;
}

.csv-spec-table th:nth-child(1) {
  width: 25%;
}
.csv-spec-table th:nth-child(2) {
  width: 25%;
}
.csv-spec-table th:nth-child(3) {
  width: 50%;
}

.salary-allowance-table th:nth-child(1) {
  width: 20%;
}
.salary-allowance-table th:nth-child(2) {
  width: 15%;
}
.salary-allowance-table th:nth-child(3) {
  width: 15%;
}
.salary-allowance-table th:nth-child(4) {
  width: 25%;
}
.salary-allowance-table th:nth-child(5) {
  width: 12%;
}
.salary-allowance-table th:nth-child(6) {
  width: 13%;
}

.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}

.alert--danger {
  padding: 14px;
  background: #f8d7da;
  color: #842029;
  margin-bottom: 20px;
  border-radius: 8px;
  border-left: 4px solid #dc3545;
  border: 1px solid #f5c2c7;
}
.alert--danger ul {
  margin: 0.5rem 0 0;
  padding-left: 1.4rem;
}

.alert--success {
  padding: 14px;
  background: #d4edda;
  color: #155724;
  margin-bottom: 20px;
  border-radius: 8px;
  border-left: 4px solid #28a745;
  border: 1px solid #c3e6cb;
}

.alert--warning {
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffc107;
  border-radius: 0.25rem;
}

.alert--info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

.flash {
  padding: 14px;
  margin-bottom: 20px;
  border-radius: 8px;
  list-style: none;
}

.flash--error {
  background: #f8d7da;
  color: #842029;
  border-left: 4px solid #dc3545;
  border: 1px solid #f5c2c7;
}

.flash--success {
  background: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
  border: 1px solid #c3e6cb;
}

.flash--info {
  background: #d1ecf1;
  color: #0c5460;
  border-left: 4px solid #17a2b8;
  border: 1px solid #bee5eb;
}

.flash__count {
  font-weight: bold;
  margin-bottom: 8px;
}

.flash__message {
  margin: 0;
}

.flash__list {
  margin: 0;
  padding-left: 1.2rem;
}
.flash__list li {
  margin-bottom: 2px;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: bold;
}

.badge--secondary {
  background: #e2e3e5;
  color: #383d41;
}

.info-banner {
  padding: 10px 14px;
  background: #f0f4ff;
  border-radius: 4px;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.info-sub {
  margin-left: 10px;
  color: #555;
}

.note-box {
  margin-top: 1rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 4px;
  font-size: 0.9rem;
}

.help-text strong {
  color: #d32f2f;
  font-weight: 600;
}

.summary-trigger {
  cursor: pointer;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.details-list {
  margin-top: 0.5rem;
  padding-left: 1.4rem;
  font-size: 0.9rem;
}

.warning-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #ffe69c;
}

.warning-icon {
  font-size: 24px;
}

.warning-hint {
  color: #856404;
  font-size: 14px;
  margin-left: auto;
}

@keyframes reactModalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes reactModalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: reactModalFadeIn 0.2s ease-out;
}

.modal-dialog {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 560px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  animation: reactModalSlideIn 0.3s ease-out;
}

.modal-dialog--xs {
  max-width: 400px;
  width: 95%;
}

.modal-dialog--sm {
  max-width: 480px;
  width: 95%;
}

.modal-dialog--lg {
  max-width: 720px;
  width: 95%;
}

.modal-dialog--xl {
  max-width: 960px;
  width: 95%;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #dee2e6;
  flex-shrink: 0;
}
.modal-header h3 {
  margin: 0;
  color: #333;
  font-size: 1.1rem;
  font-weight: bold;
}

.modal-header__title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #6c757d;
  line-height: 1;
  padding: 4px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.modal-close:hover {
  background: #f1f1f1;
  color: #333;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}
.modal-body .modal-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid #e5e7eb;
}

.block-editor {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.block-editor__toolbar-wrap {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  border-bottom: 1px solid #ebebeb;
  background: #fafafa;
  border-radius: 8px 8px 0 0;
  gap: 4px;
}

.block-editor__toolbar {
  display: flex;
  gap: 2px;
  flex: 1;
}

.block-editor__body {
  padding: 12px 8px;
  min-height: 320px;
}

.block-type-selector {
  position: relative;
  flex-shrink: 0;
}

.block-type-selector__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  padding: 4px 0;
  z-index: 200;
  min-width: 110px;
}

.add-block-btn {
  height: 20px;
  display: flex;
  align-items: center;
  margin-left: 68px;
  cursor: pointer;
}

.add-block-btn__inner {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 6px;
}

.filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.filter-tab {
  padding: 6px 16px;
  border: 1px solid #dee2e6;
  border-radius: 20px;
  background: #fff;
  color: #495057;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-tab:hover {
  border-color: #667eea;
  color: #667eea;
}
.filter-tab.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
}

@media (max-width: 768px) {
  .filter-tabs {
    gap: 4px;
  }
  .filter-tab {
    padding: 4px 10px;
    font-size: 0.8rem;
  }
}
.progress-bar-track {
  background: #e9ecef;
  border-radius: 4px;
  height: 24px;
  position: relative;
  margin: 8px 0;
}

.progress-bar-fill {
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 4px;
  height: 100%;
  transition: width 0.3s ease;
}

.progress-bar-label {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  color: #333;
}

.data-area {
  position: relative;
}

.data-area--loading {
  pointer-events: none;
}

.data-area__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.6);
  z-index: 5;
  font-size: 0.9rem;
  color: #6b7280;
}

.data-area--page-transition {
  min-height: 200px;
}

.data-area__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #6b7280;
  font-size: 0.9rem;
}
.data-area__loading--page {
  min-height: 240px;
}
.data-area__loading p {
  margin: 0;
}

.data-area__spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(107, 114, 128, 0.25);
  border-top-color: #6b7280;
  border-radius: 50%;
  animation: data-area-spin 0.7s linear infinite;
}

@keyframes data-area-spin {
  to {
    transform: rotate(360deg);
  }
}
.login-checking {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.breadcrumb-nav {
  margin-bottom: 12px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 14px;
  color: #666;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  padding: 0 8px;
  color: #999;
}

.breadcrumb-item a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb-item a:hover {
  color: #0052a3;
  text-decoration: underline;
}

.breadcrumb-item.active span {
  color: #333;
  font-weight: 500;
}

.page-header {
  margin-bottom: 28px;
}
.page-header .page-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 15px;
  border-bottom: 2px solid #e0e0e0;
}
.page-header .page-header-content h1 {
  margin: 0;
  font-size: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.detail-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.detail-row:has(> :nth-child(4)) {
  grid-template-columns: 180px 1fr 180px 1fr;
  column-gap: 1rem;
  row-gap: 0;
}
.detail-row:last-of-type {
  border-bottom: none;
}

.detail-label {
  font-weight: bold;
  color: #555;
}

.detail-value {
  color: #333;
}

@media (max-width: 768px) {
  .page-header .page-header-content h1 {
    font-size: 22px;
  }
}
.navbar {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: visible;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  gap: 20px;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}
.navbar-brand:hover {
  background-color: #f5f5f5;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-direct-btn {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
.navbar-direct-btn:hover {
  opacity: 0.85;
  color: white;
}
.navbar-direct-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.navbar-inquiry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.navbar-inquiry-btn:hover {
  background-color: #f0f0f0;
}

.navbar-launcher {
  position: relative;
}

.navbar-launcher-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}
.navbar-launcher-btn:hover {
  background-color: #f0f0f0;
}

.navbar-launcher-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(3, 96px);
  gap: 8px;
  z-index: 1000;
}

.navbar-launcher-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  text-decoration: none;
  color: #333;
  border-radius: 8px;
  transition: background-color 0.15s ease;
}
.navbar-launcher-item:hover {
  background-color: #f5f5f5;
}

.navbar-launcher-icon {
  font-size: 28px;
  line-height: 1;
}

.navbar-launcher-label {
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .navbar-container {
    padding: 10px 16px;
  }
  .navbar-brand {
    font-size: 16px;
  }
  .navbar-launcher-panel {
    grid-template-columns: repeat(3, 80px);
    padding: 12px;
  }
  .navbar-launcher-icon {
    font-size: 24px;
  }
}
.container:has(.login-container) {
  background: transparent;
  box-shadow: none;
  padding: 0;
  display: block;
}

.login-container {
  width: 100%;
  max-width: 400px;
  margin: 5vh auto;
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.login-container h1 {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  color: #222;
  margin: 0 0 40px 0;
}
.login-container .form-group {
  margin-bottom: 20px;
}
.login-container .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}
.login-container .form-group input[type=text],
.login-container .form-group input[type=password] {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}
.login-container .form-group input[type=text]:focus,
.login-container .form-group input[type=password]:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.login-container .btn-group {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}
.login-container .btn-group .login-btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  transition: transform 0.2s ease;
}
.login-container .btn-group .login-btn:hover {
  transform: translateY(-2px);
}
.login-container .btn-group .login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 768px) {
  .login-container {
    margin: 3vh 20px;
    padding: 30px 24px;
  }
  .login-container h1 {
    font-size: 20px;
    margin-bottom: 30px;
  }
  .login-container .form-group {
    margin-bottom: 16px;
  }
  .login-container .form-group input {
    padding: 10px;
    font-size: 15px;
  }
  .login-container .btn-group {
    margin-top: 24px;
  }
  .login-container .btn-group .login-btn {
    padding: 10px 20px;
    font-size: 15px;
  }
}
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-muted {
  color: #6c757d;
}

.text-warning {
  color: #f57c00;
}

.pre-wrap {
  white-space: pre-wrap;
}

.m-0 {
  margin: 0;
}

.mt-0 {
  margin-top: 0;
}

.mt-4 {
  margin-top: 4px;
}

.mt-8 {
  margin-top: 8px;
}

.mt-12 {
  margin-top: 12px;
}

.mt-15 {
  margin-top: 15px;
}

.mt-16 {
  margin-top: 1rem;
}

.mt-20 {
  margin-top: 20px;
}

.mt-24 {
  margin-top: 24px;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-12 {
  margin-bottom: 12px;
}

.mb-15 {
  margin-bottom: 15px;
}

.mb-16 {
  margin-bottom: 1rem;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-24 {
  margin-bottom: 24px;
}

.mr-8 {
  margin-right: 8px;
}

.mr-4 {
  margin-right: 4px;
}

.ml-4 {
  margin-left: 4px;
}

.ml-8 {
  margin-left: 8px;
}

.ml-10 {
  margin-left: 10px;
}

.ml-12 {
  margin-left: 12px;
}

.ml-16 {
  margin-left: 16px;
}

.pl-20 {
  padding-left: 20px;
}

.pb-20 {
  padding-bottom: 20px;
}

.u-w-80 {
  width: 80px;
}

.u-w-100 {
  width: 100px;
}

.u-w-110 {
  width: 110px;
}

.u-w-150 {
  width: 150px;
}

.u-w-200 {
  width: 200px;
}

.fs-sm {
  font-size: 12px;
}

.flex-center {
  display: flex;
  justify-content: center;
}

.u-overflow-auto {
  overflow-x: auto;
}

.divider {
  margin: 20px 0;
  border: none;
  border-top: 1px solid #ddd;
}

.divider--large {
  margin: 30px 0;
  border: none;
  border-top: 1px solid #e0e0e0;
}

.disabled {
  opacity: 0.7;
}

.clickable {
  cursor: pointer;
}

.icon-mr {
  margin-right: 5px;
}

.centered-block {
  padding: 20px;
  text-align: center;
}

.empty-text {
  color: #666;
  padding: 10px;
}

.empty-text--center {
  color: #666;
  padding: 10px;
  text-align: center;
}

.label-block {
  display: block;
  margin-bottom: 8px;
}

.canary-heading {
  margin-top: 10px;
  margin-bottom: 15px;
}

.text-caption {
  font-size: 0.85rem;
  color: #6c757d;
}

.text-caption--mt {
  font-size: 0.85rem;
  color: #6c757d;
  margin-top: 4px;
}

.text-danger {
  color: #dc3545;
}

.text-danger-text {
  color: #721c24;
}

.text-success {
  color: #28a745;
}

.text-success-text {
  color: #155724;
}

.separator {
  margin: 0 4px;
  color: #6c757d;
  font-weight: normal;
}

.tag {
  display: inline-block;
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 2px;
  margin-left: 4px;
  font-weight: 500;
}
.tag.next {
  background-color: #f8d7da;
  color: #842029;
}

.flex-wrap-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.flex-wrap-row--sm {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.flex-check-label {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.flex-row-center {
  display: flex;
  align-items: center;
  gap: 8px;
}

.p-0 {
  padding: 0;
}

.p-24 {
  padding: 24px;
}

.u-opacity-75 {
  opacity: 0.75;
}

.ml-8-self-end {
  margin-left: 8px;
  align-self: flex-end;
}

.section-divider-top {
  border-top: 1px solid #e5e7eb;
  margin-top: 12px;
  padding-top: 12px;
}

.pe-unit-label {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-left: none;
  border-radius: 0 4px 4px 0;
  font-size: 14px;
  color: #666;
  white-space: nowrap;
}

.empty-state {
  text-align: center;
  padding: 20px 0;
  color: #666;
}

.label-block--lg {
  font-size: 1.05em;
}

.pe-ml-8-self-end {
  margin-left: 8px;
  align-self: flex-end;
}

.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 0 8px;
  border-bottom: 2px solid #eee;
  margin-bottom: 16px;
}

.dashboard-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 4px;
}

.module-card .module-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}
.module-card .module-card-header .module-desc {
  font-size: 12px;
  color: #6c757d;
  margin: 4px 0 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.pe-stat-card {
  border-radius: 4px;
  padding: 12px 14px;
  text-align: center;
  border: 1px solid transparent;
}
.pe-stat-card--primary {
  background: #e7f3ff;
  border-color: #b3d9ff;
}
.pe-stat-card--primary .pe-stat-value {
  color: rgb(57.1551724138, 88.1896551724, 227.8448275862);
}
.pe-stat-card--success {
  background: #d4edda;
  border-color: #c3e6cb;
}
.pe-stat-card--success .pe-stat-value {
  color: #155724;
}
.pe-stat-card--warning {
  background: #fff3cd;
}
.pe-stat-card--warning .pe-stat-value {
  color: #856404;
}
.pe-stat-card--info {
  background: #d1ecf1;
}
.pe-stat-card--info .pe-stat-value {
  color: #0c5460;
}
.pe-stat-card--secondary {
  background: #f8f9fa;
}
.pe-stat-card--secondary .pe-stat-value {
  color: #666;
}
.pe-stat-card--muted {
  background: #f8f9fa;
  border-color: #e0e0e0;
}
.pe-stat-card--muted .pe-stat-value {
  color: #333;
}

.pe-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
}

.pe-stat-label {
  font-size: 11px;
  color: #6c757d;
  white-space: nowrap;
}

.progress-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
}

.progress-track {
  position: relative;
  height: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #eee;
}

.progress-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.4s ease;
}
.progress-fill--primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.progress-fill--success {
  background: linear-gradient(90deg, #28a745, rgb(30.1449275362, 125.8550724638, 52));
}
.progress-fill--warning {
  background: linear-gradient(90deg, #ffc107, rgb(211, 158.25, 0));
}

.progress-label {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 600;
  color: #333;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

.batch-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}
.batch-row:last-child {
  border-bottom: none;
}

.batch-name {
  flex: 1;
  font-size: 12px;
  color: #666;
}

.batch-progress {
  font-size: 12px;
  font-weight: 600;
  color: #333;
}

.table-attendance {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  font-size: 14px;
}

.table-attendance th.timeline-cell {
  min-width: 500px;
}

.table-attendance th,
.table-attendance td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
  background-color: #fff;
}

.table-attendance th {
  background-color: #f9f9f9;
  font-weight: bold;
  color: #333;
}

.table-attendance tr:hover {
  background-color: #f1f1f1;
}

.table-attendance th.col--date {
  width: 150px;
}

.table-attendance th.col--status {
  width: 100px;
}

.table-attendance th.col--calendar {
  width: 100px;
}

.table-attendance th:nth-child(1) {
  width: 100px;
}

.table-attendance th:nth-child(2) {
  width: 100px;
}

.table-attendance th:nth-child(3) {
  width: 40px;
}

.table-attendance th:nth-child(4) {
  width: 70px;
}

.table-attendance th:nth-child(5) {
  width: 70px;
}

.table-attendance th:nth-child(6) {
  width: 80px;
}

.table-attendance th:nth-child(7) {
  width: 80px;
}

.table-attendance th:nth-child(8) {
  width: 70px;
}

.table-attendance th:nth-child(9) {
  width: 100px;
}

.table-attendance th:nth-child(10) {
  width: 120px;
}

.table-attendance th:nth-child(11) {
  width: 100px;
}

.table-attendance tbody tr {
  background-color: white;
}

.table-attendance tbody tr:hover {
  background-color: #f5f5f5;
}

.table-attendance tr.row--on-leave td {
  background-color: #f0f0f0 !important;
  color: #999;
}

.table-attendance tr.row--on-leave:hover td {
  background-color: #e8e8e8 !important;
}

.timeline-graph {
  width: 100%;
  min-width: 400px;
}

.timeline-hours-top {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #6b7280;
  margin-bottom: 4px;
  padding: 0 4px;
  font-weight: 500;
}
.timeline-hours-top span {
  flex: 1;
  text-align: center;
}
.timeline-hours-top .hour-major {
  font-weight: 700;
  color: #374151;
}
.timeline-hours-top .hour-minor {
  color: #9ca3af;
}

.timeline-container {
  position: relative;
  height: 50px;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  overflow: hidden;
}

.timeline-segment {
  position: absolute;
  border-radius: 0;
  font-size: 11px;
  font-weight: 500;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
}
.timeline-segment:hover {
  transform: translateY(-2px);
  z-index: 10;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  filter: brightness(1.1);
}

.segment-work-daytime {
  background: #2063a0;
}
.segment-work-daytime.class-scheduled {
  background: #2063a0;
}
.segment-work-daytime.class-pre-schedule {
  background: #1a5276;
}
.segment-work-daytime.class-post-schedule {
  background: #1a5276;
}
.segment-work-daytime.class-non-statutory-holiday {
  background: #1a5276;
}
.segment-work-daytime.class-break-shortage {
  background: #1a5276;
}
.segment-work-daytime.class-unscheduled {
  background: #1a5276;
}
.segment-work-daytime.class-holiday-work {
  background: #b03a2e;
}
.segment-work-daytime.class-daily-legal-overtime {
  background: #922b21;
}
.segment-work-daytime.class-weekly-legal-overtime {
  background: #7b241c;
}
.segment-work-daytime.class-monthly-legal-overtime {
  background: #641e16;
}
.segment-work-daytime.class-yearly-legal-overtime {
  background: #4a1410;
}

.segment-work-midnight {
  background: #1a2530;
}
.segment-work-midnight.class-scheduled {
  background: #1a2530;
}
.segment-work-midnight.class-pre-schedule {
  background: #0f1a2e;
}
.segment-work-midnight.class-post-schedule {
  background: #0f1a2e;
}
.segment-work-midnight.class-non-statutory-holiday {
  background: #0f1a2e;
}
.segment-work-midnight.class-break-shortage {
  background: #0f1a2e;
}
.segment-work-midnight.class-unscheduled {
  background: #0f1a2e;
}
.segment-work-midnight.class-holiday-work {
  background: #6e2c24;
}
.segment-work-midnight.class-daily-legal-overtime {
  background: #4a1410;
}
.segment-work-midnight.class-weekly-legal-overtime {
  background: #3b110d;
}
.segment-work-midnight::after {
  content: "🌙";
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-size: 14px;
  opacity: 0.8;
}

.segment-break-daytime {
  background: #1d7741;
}
.segment-break-daytime.class-scheduled {
  background: #1d7741;
}
.segment-break-daytime.class-pre-schedule, .segment-break-daytime.class-post-schedule {
  background: #229954;
}
.segment-break-daytime.class-deduction {
  background: #6c7a89;
}

.segment-break-midnight {
  background: #11573a;
}
.segment-break-midnight.class-scheduled {
  background: #11573a;
}
.segment-break-midnight.class-pre-schedule, .segment-break-midnight.class-post-schedule {
  background: #186a3b;
}
.segment-break-midnight::after {
  content: "🌙";
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-size: 14px;
  opacity: 0.8;
}

.segment-deduction-daytime {
  background: #6c7a89;
}
.segment-deduction-daytime.class-late-arrival {
  background: #6c7a89;
}
.segment-deduction-daytime.class-early-leave {
  background: #6c7a89;
}
.segment-deduction-daytime.class-break-excess {
  background: #6c7a89;
}

.segment-deduction-midnight {
  background: #4a5568;
}
.segment-deduction-midnight.class-late-arrival {
  background: #4a5568;
}
.segment-deduction-midnight.class-early-leave {
  background: #4a5568;
}
.segment-deduction-midnight.class-break-excess {
  background: #4a5568;
}
.segment-deduction-midnight::after {
  content: "🌙";
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-size: 14px;
  opacity: 0.8;
}

.segment-leave-daytime {
  background: #c29d0b;
  color: #4a3e08;
}
.segment-leave-daytime.class-leave {
  background: #c29d0b;
}
.segment-leave-daytime.class-leave-on-break {
  background: #a88309;
}

.segment-leave-midnight {
  background: #8b7209;
  color: #4a3e08;
}
.segment-leave-midnight.class-leave {
  background: #8b7209;
}
.segment-leave-midnight.class-leave-on-break {
  background: #6b5407;
}
.segment-leave-midnight::after {
  content: "🌙";
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-size: 14px;
  opacity: 0.8;
}

.timeline-segment::before {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  margin-bottom: 4px;
  z-index: 100;
}

.timeline-segment:hover::before {
  opacity: 1;
}

.timeline-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #374151;
}

.legend-color {
  width: 32px;
  height: 16px;
  border-radius: 2px;
  border: 1px solid #d1d5db;
  flex-shrink: 0;
}

.legend-color.regular {
  background: #2063a0;
}

.legend-color.overtime {
  background: #1a5276;
}

.legend-color.legal-overtime {
  background: #922b21;
}

.legend-color.holiday-work {
  background: #b03a2e;
}

.legend-color.break {
  background: #1d7741;
}

.legend-color.deduction {
  background: #6c7a89;
}

.legend-color.leave {
  background: #c29d0b;
}

.legend-color.midnight {
  background: #1a2530;
  position: relative;
}
.legend-color.midnight::after {
  content: "🌙";
  position: absolute;
  top: -2px;
  right: -4px;
  font-size: 12px;
}

@media (max-width: 768px) {
  .timeline-container {
    height: 40px;
  }
  .timeline-legend {
    grid-template-columns: 1fr;
  }
  .timeline-segment {
    font-size: 9px;
  }
}
.procedure-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.procedure-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  transition: border-color 0.15s, background-color 0.15s;
}
.procedure-item:hover {
  border-color: #90caf9;
  background-color: #f5f9ff;
}
.procedure-item.selected {
  border-color: #1976d2;
  background-color: #e3f2fd;
}

.procedure-label {
  font-weight: 500;
  color: #333;
}

.modal-selected-procedure {
  padding: 10px 14px;
  background: #f5f5f5;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 12px;
}

.employee-select-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 4px;
}

.employee-select-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  transition: background-color 0.15s, border-color 0.15s;
}
.employee-select-item:hover {
  background-color: #f5f5f5;
}
.employee-select-item.selected {
  background-color: #e3f2fd;
  border-color: #1976d2;
}

.employee-number {
  font-size: 12px;
  color: #757575;
  min-width: 72px;
  font-family: monospace;
}

.employee-name {
  font-weight: 500;
  color: #222;
}

.ne-input-unit-row {
  display: flex;
  align-items: stretch;
}

.ne-unit-label {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-left: none;
  border-radius: 0 4px 4px 0;
  font-size: 14px;
  color: #666;
  white-space: nowrap;
}

.js-group__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.js-group__meta {
  margin: 0;
  color: #666;
}

.js-group__actions {
  display: flex;
  gap: 8px;
}

.js-heading {
  margin: 0 0 4px;
}

.org-chart-wrap {
  overflow-x: auto;
  padding: 24px 16px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  margin-bottom: 32px;
}

.org-tree-root {
  display: flex;
  flex-direction: row;
  gap: 24px;
  flex-wrap: wrap;
}

.org-node-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.org-node-card {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 16px;
  min-width: 160px;
  font-size: 13px;
  text-align: center;
}
.org-node-card.is-root {
  border-color: #6366f1;
}

.org-node-name {
  font-weight: 700;
  color: #1e293b;
}

.org-node-head {
  font-size: 11px;
  color: #64748b;
  margin-top: 3px;
}

.org-node-count {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.org-connector-v {
  width: 2px;
  height: 20px;
  background: #cbd5e1;
  margin: 0 auto;
}

.org-children-row {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: flex-start;
}

.org-empty {
  text-align: center;
  color: #94a3b8;
  padding: 32px;
}

.assignment-row {
  display: grid;
  grid-template-columns: 1fr 1fr 4em;
  column-gap: 1rem;
  align-items: center;
  margin-bottom: 8px;
}

.assignment-row .assignment-suffix {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.assignment-status {
  font-size: 14px;
  line-height: 1.8;
}

.assignment-line--prev {
  color: #9ca3af;
}

.assignment-line--current {
  color: #111827;
  font-weight: 500;
}

.assignment-line--scheduled {
  color: #6366f1;
}

.assignment-date {
  font-size: 11px;
  color: #9ca3af;
  margin-left: 4px;
}

.dept-item {
  padding: 8px 0;
}

.dept-item__header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.department-index-table th:nth-child(1) {
  width: 30%;
}
.department-index-table th:nth-child(2) {
  width: 25%;
}
.department-index-table th:nth-child(3) {
  width: 15%;
}
.department-index-table th:nth-child(4) {
  width: 15%;
}
.department-index-table th:nth-child(5) {
  width: 15%;
}

.organization-member-table th:nth-child(1) {
  width: 20%;
}
.organization-member-table th:nth-child(2) {
  width: 30%;
}
.organization-member-table th:nth-child(3) {
  width: 30%;
}
.organization-member-table th:nth-child(4) {
  width: 20%;
}

.position-index-table th:nth-child(1) {
  width: 15%;
}
.position-index-table th:nth-child(2) {
  width: 35%;
}
.position-index-table th:nth-child(3) {
  width: 25%;
}
.position-index-table th:nth-child(4) {
  width: 25%;
}

.detail-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #ddd;
}

.input-unit-row-stretch {
  display: flex;
  align-items: stretch;
}

.year-header-inner {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.year-header h3,
.year-header-inner h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.dashboard-container {
  padding: 0;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.header-top h1 {
  margin: 0;
}

.welcome-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.welcome-section h2 {
  margin: 0 0 10px 0;
  font-size: 28px;
}
.welcome-section p {
  margin: 0;
  font-size: 16px;
  opacity: 0.9;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-card .stat-icon {
  font-size: 48px;
  line-height: 1;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-card .stat-content {
  flex: 1;
}
.stat-card .stat-label {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 4px;
}
.stat-card .stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.header h1 {
  margin: 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.entity-card .expert-info {
  flex: 1;
}
.entity-card .expert-firm {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin-bottom: 4px;
}
.entity-card .expert-name {
  font-size: 14px;
  color: #555;
  margin-bottom: 2px;
}

.inquiry-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #f9f9f9;
  border-radius: 6px;
}

.inquiry-stat-item {
  font-size: 14px;
  color: #555;
}
.inquiry-stat-item strong {
  color: #222;
}

.inquiries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.inquiry-card {
  background: #f9f9f9;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.inquiry-card .inquiry-card-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.inquiry-card .inquiry-badges {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.inquiry-card .inquiry-subject {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: #222;
  line-height: 1.4;
}
.inquiry-card .inquiry-updated-at {
  font-size: 13px;
  color: #888;
  white-space: nowrap;
  flex-shrink: 0;
}
.inquiry-card .inquiry-firm-expert {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.inquiry-card .inquiry-firm {
  font-size: 14px;
  font-weight: 600;
  color: #555;
}
.inquiry-card .inquiry-view-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.inquiry-card .inquiry-view-btn:hover {
  transform: translateY(-2px);
  color: #ffffff;
}

.entity-card .tenant-name {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin-bottom: 4px;
}
.entity-card .tenant-role {
  font-size: 13px;
  color: #888;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.app-card {
  background: white;
  border-radius: 8px;
  border: 1px solid #d0d0d0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  padding: 28px;
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: default;
}
.app-card .app-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.app-card .app-icon {
  font-size: 36px;
  flex-shrink: 0;
}
.app-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  margin: 0;
}
.app-card p {
  font-size: 14px;
  color: #555;
  margin: 0 0 20px 0;
  line-height: 1.6;
}
.app-card .app-action-btn {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.app-card .app-action-btn:hover {
  transform: translateY(-2px);
}

.dashboard-stats-wrap {
  overflow-x: auto;
}

.dashboard-stats-table {
  min-width: 100%;
  font-size: 0.85rem;
}

.dashboard-stats-table__th-firm {
  position: sticky;
  left: 0;
  background: var(--color-bg-secondary, #f8f9fa);
  z-index: 2;
  min-width: 140px;
}

.dashboard-stats-table__th-month {
  text-align: center;
  border-left: 2px solid var(--color-border, #dee2e6);
}

.dashboard-stats-table__th-count {
  text-align: right;
  border-left: 2px solid var(--color-border, #dee2e6);
  white-space: nowrap;
  font-size: 0.75rem;
}

.dashboard-stats-table__th-count--last {
  text-align: right;
  white-space: nowrap;
  font-size: 0.75rem;
}

.dashboard-stats-table__td-firm {
  position: sticky;
  left: 0;
  background: var(--color-bg-primary, #fff);
  z-index: 1;
  font-weight: 600;
}

.dashboard-stats-table__td-count {
  text-align: right;
  border-left: 2px solid var(--color-border, #dee2e6);
}

.dashboard-stats-table__td-count--last {
  text-align: right;
}

.inquiry-badge {
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.inquiry-badge-status {
  background-color: #e3f2fd;
  color: #1976d2;
}

.inquiry-badge-priority {
  background-color: #fff3e0;
  color: #f57c00;
}

.inquiry-badge--pending {
  background-color: rgba(243, 156, 18, 0.1254901961);
  color: #f39c12;
}

.inquiry-badge--in-progress {
  background-color: rgba(52, 152, 219, 0.1254901961);
  color: #3498db;
}

.inquiry-badge--waiting-reply {
  background-color: rgba(155, 89, 182, 0.1254901961);
  color: #9b59b6;
}

.inquiry-badge--completed {
  background-color: rgba(39, 174, 96, 0.1254901961);
  color: #27ae60;
}

.inquiry-badge--normal {
  background-color: rgba(52, 152, 219, 0.1254901961);
  color: #3498db;
}

.inquiry-badge--urgent {
  background-color: rgba(231, 76, 60, 0.1254901961);
  color: #e74c3c;
}

.inquiry-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e0e0e0;
}
.inquiry-detail-header h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: #222;
}

.inquiry-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.inquiry-message {
  border-radius: 6px;
  padding: 14px;
  border: 1px solid #e0e0e0;
}
.inquiry-message.expert-message {
  background-color: #f5f5f5;
  border-left: 4px solid #9e9e9e;
}
.inquiry-message.admin-message {
  background-color: #e3f2fd;
  border-left: 4px solid #2196f3;
}

.inquiry-message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.inquiry-message-sender {
  font-weight: 600;
  font-size: 14px;
  color: #222;
}

.inquiry-message-time {
  font-size: 12px;
  color: #666;
}

.inquiry-message-body {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  white-space: pre-wrap;
}

.inquiry-reply-form {
  background-color: #fff;
  padding: 16px;
  border-radius: 6px;
  border: 1px solid #ddd;
}
.inquiry-reply-form h4 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: #222;
}
.inquiry-reply-form form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inquiry-control-buttons {
  display: flex;
  gap: 8px;
}

.inquiry-control-btn {
  padding: 8px 16px;
  border: 1px solid #d0d0d0;
  background-color: #fff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.inquiry-control-btn:hover:not(:disabled) {
  background-color: #f5f5f5;
}
.inquiry-control-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.inquiry-control-btn.active {
  border-color: transparent;
  color: white;
}
.inquiry-control-btn.active--pending {
  background-color: #f39c12;
  border-color: #f39c12;
}
.inquiry-control-btn.active--in-progress {
  background-color: #3498db;
  border-color: #3498db;
}
.inquiry-control-btn.active--waiting-reply {
  background-color: #9b59b6;
  border-color: #9b59b6;
}
.inquiry-control-btn.active--completed {
  background-color: #27ae60;
  border-color: #27ae60;
}
.inquiry-control-btn.active--normal {
  background-color: #3498db;
  border-color: #3498db;
}
.inquiry-control-btn.active--urgent {
  background-color: #e74c3c;
  border-color: #e74c3c;
}

.inquiry-error {
  background-color: #fee;
  border: 1px solid #fcc;
  color: #c00;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 14px;
}

@media (max-width: 768px) {
  .inquiry-detail-header {
    flex-direction: column;
    gap: 12px;
  }
}
.inquiry-index-table th:nth-child(1) {
  width: 30%;
}
.inquiry-index-table th:nth-child(2) {
  width: 20%;
}
.inquiry-index-table th:nth-child(3) {
  width: 15%;
}
.inquiry-index-table th:nth-child(4) {
  width: 15%;
}
.inquiry-index-table th:nth-child(5) {
  width: 20%;
}

.tooltip-trigger {
  cursor: help;
  color: #666;
  font-size: 0.9em;
  margin-left: 4px;
  position: relative;
}

.tooltip-trigger:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  padding: 8px 12px;
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
}

.tooltip-trigger:hover::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 2px;
  border: 6px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  pointer-events: none;
}

.cutoff-tabs-container {
  margin: 30px 0 0 0;
}

.cutoff-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 3px solid #e0e0e0;
  padding-bottom: 0;
  flex-wrap: wrap;
}

.cutoff-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: white;
  border: 2px solid #e0e0e0;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  text-decoration: none;
  color: #666;
  transition: all 0.3s ease;
  position: relative;
  bottom: -3px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  margin-right: -2px;
}

.cutoff-tab:first-child {
  border-top-left-radius: 12px;
}

.cutoff-tab:last-child {
  border-top-right-radius: 12px;
  margin-right: 0;
}

.cutoff-tab:hover {
  background: #f8f9fa;
  color: #333;
  transform: translateY(-2px);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  z-index: 1;
}

.cutoff-tab.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  border-bottom: 3px solid white;
  color: white;
  font-weight: 600;
  box-shadow: 0 -4px 16px rgba(102, 126, 234, 0.3);
  z-index: 2;
}

.cutoff-tab.active:last-child {
  margin-right: 0;
}

.cutoff-tab.active:hover {
  transform: translateY(-2px);
}

.tab-icon {
  font-size: 24px;
  line-height: 1;
}

.tab-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tab-label {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.version-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #ddd;
}

.version-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.version-info strong {
  font-size: 1.1rem;
}
.version-info .text-muted {
  margin-left: 8px;
}

.version-description {
  padding: 0.75rem;
  background-color: #f0f4ff;
  border-left: 3px solid #667eea;
  border-radius: 4px;
  margin-top: 1rem;
}

.version-description-label {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.version-description-text {
  font-size: 0.95rem;
}

.past-version-item {
  padding: 1rem;
  margin-bottom: 0.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background-color: #f9f9f9;
}

.past-version-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.past-version-title strong {
  font-size: 1rem;
}
.past-version-title .text-muted {
  margin-left: 8px;
}

.past-version-description {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background-color: white;
  border-left: 3px solid #667eea;
  font-size: 0.9rem;
}

.no-description {
  margin-top: 0.5rem;
  color: #999;
  font-size: 0.85rem;
  font-style: italic;
}

.icon-system-mr {
  margin-right: 4px;
}

.icon-btn--view {
  text-decoration: none;
  margin-left: 8px;
  vertical-align: middle;
}
.icon-btn--view:hover {
  background-color: rgba(102, 126, 234, 0.1);
  text-decoration: none;
}

.icon-btn--edit {
  text-decoration: none;
  margin-left: 8px;
  vertical-align: middle;
}
.icon-btn--edit:hover {
  text-decoration: none;
}

.icon-btn--delete {
  background: none;
  border: none;
  padding: 0;
  margin-left: 8px;
  cursor: pointer;
  font-size: inherit;
  line-height: inherit;
  vertical-align: middle;
}
.icon-btn--delete:hover {
  opacity: 0.7;
}

.version-effective-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.version-effective-select {
  width: auto !important;
  flex: 0 0 auto;
}

.version-mode-text {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 6px;
  margin-left: 4px;
}
.version-mode-text.version-mode-text--update {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #28a745;
}
.version-mode-text.version-mode-text--new {
  background-color: #cce5ff;
  color: #004085;
  border: 1px solid #007bff;
}
.version-mode-text.version-mode-text--error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #dc3545;
}

.detail-pair-row {
  display: grid;
  grid-template-columns: 180px 1fr 180px 1fr;
  column-gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.detail-pair-row:last-of-type {
  border-bottom: none;
}

.detail-pair-row > .detail-pair {
  display: contents;
}

.badge--highlight {
  background: #ffc107;
  color: #856404;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 1.1rem;
}

.badge--category {
  background: #e8eaf6;
  color: #283593;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
}

.allowances-table th:nth-child(1) {
  width: 12%;
}
.allowances-table th:nth-child(2) {
  width: 28%;
}
.allowances-table th:nth-child(3) {
  width: 15%;
}
.allowances-table th:nth-child(4) {
  width: 12%;
}
.allowances-table th:nth-child(5) {
  width: 15%;
}
.allowances-table th:nth-child(6) {
  width: 18%;
}
.allowances-table .badge {
  font-size: inherit;
  font-weight: normal;
}
.allowances-table .text-muted {
  font-size: inherit;
  font-weight: normal;
}

.leaves-table th:nth-child(1) {
  width: 12%;
}
.leaves-table th:nth-child(2) {
  width: 30%;
}
.leaves-table th:nth-child(3) {
  width: 18%;
}
.leaves-table th:nth-child(4) {
  width: 22%;
}
.leaves-table th:nth-child(5) {
  width: 18%;
}
.leaves-table .badge {
  font-size: inherit;
  font-weight: normal;
}
.leaves-table .text-muted {
  font-size: inherit;
  font-weight: normal;
}

.code {
  font-family: monospace;
  font-size: inherit;
  font-weight: normal;
  color: #495057;
  background: #f1f3f5;
  padding: 2px 6px;
  border-radius: 3px;
}

.code--ml {
  font-family: monospace;
  font-size: 0.85em;
  color: #495057;
  background: #f1f3f5;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 6px;
}

.radio-row {
  display: flex;
  gap: 1.5rem;
}

.patterns-table th:nth-child(1) {
  width: 12%;
}
.patterns-table th:nth-child(2) {
  width: 20%;
}
.patterns-table th:nth-child(3) {
  width: 12%;
}
.patterns-table th:nth-child(4) {
  width: 12%;
}
.patterns-table th:nth-child(5) {
  width: 26%;
}
.patterns-table th:nth-child(6) {
  width: 18%;
}
.patterns-table .badge {
  font-size: inherit;
  font-weight: normal;
}
.patterns-table .text-muted {
  font-size: inherit;
  font-weight: normal;
}

.edit-form-section {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #ddd;
}

.edit-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1.25rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #667eea;
}

.edit-form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.edit-form-col {
  flex: 1;
  min-width: 0;
}

.edit-form-group {
  margin-bottom: 1rem;
}

.edit-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-weight: normal;
}
.edit-checkbox-label input[type=checkbox] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: #667eea;
}

.calendar-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.calendar-row .edit-select {
  flex: 1;
}

.calendar-add-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
}
.calendar-add-btn:hover {
  background: #5a6fd6;
  transform: translateY(-1px);
}
.calendar-add-btn:active {
  transform: translateY(0);
}

.calendar-save-btn {
  padding: 0.5rem 1.2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
}
.calendar-save-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.calendar-save-btn:not(:disabled):hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.calendar-save-btn:not(:disabled):active {
  transform: translateY(0);
}

.calendar-cancel-btn {
  padding: 0.5rem 1.2rem;
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.calendar-cancel-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.calendar-cancel-btn:not(:disabled):hover {
  background: linear-gradient(135deg, #5a6268 0%, #3d4349 100%);
  transform: translateY(-1px);
}
.calendar-cancel-btn:not(:disabled):active {
  transform: translateY(0);
}

.calendar-create-btns {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.inline-create-form {
  margin: 0.75rem 0 1rem;
  padding: 1.25rem;
  background: #f0f4ff;
  border: 1px solid #d0d9f5;
  border-left: 3px solid #667eea;
  border-radius: 6px;
}

.inline-form-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #4a5568;
}

.calendar-create-form {
  margin-top: 1rem;
  padding: 1.25rem;
  background: #f0f4ff;
  border: 1px solid #d0d9f5;
  border-left: 3px solid #667eea;
  border-radius: 6px;
}
.calendar-create-form h4 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #4a5568;
}

.legal-hours-box {
  padding: 12px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
}

.legal-hours-inline {
  display: flex;
  gap: 24px;
}

.legal-hours-monthly {
  max-width: 250px;
}

.legal-hours-monthly-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid #eee;
}
.legal-hours-monthly-row:last-child {
  border-bottom: none;
}

.input-unit-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.input-unit-row .edit-select {
  flex: 1;
}

.unit-label {
  font-size: 0.95rem;
  color: #495057;
  white-space: nowrap;
}

.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.75rem;
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem 0.5rem;
  border-radius: 4px;
  transition: background-color 0.15s ease;
}
.checkbox-item input[type=checkbox] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: #667eea;
}
.checkbox-item:hover {
  background-color: #f5f7ff;
}

.checkbox-item-label {
  line-height: 1.4;
}
.checkbox-item-label .edit-hint {
  display: inline;
  margin-left: 6px;
  margin-top: 0;
}

.time-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.time-select {
  padding: 0.5rem 0.5rem;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 0.95rem;
  background-color: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.time-select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.time-separator {
  margin: 0 0.5rem;
  color: #495057;
}

.break-add-btn-wrap {
  margin-top: 0.5rem;
}

.break-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #f8f9fa;
  border: 1px solid #eef0f2;
  border-radius: 6px;
  flex-wrap: wrap;
}

.break-label {
  min-width: 60px;
  font-size: 0.9rem;
  color: #495057;
  font-weight: 500;
}

.break-remove-btn {
  padding: 0.25rem 0.5rem;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  margin-left: auto;
  transition: background 0.2s ease;
}
.break-remove-btn:hover {
  background: #c82333;
}

.threshold-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 1rem;
  background-color: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 40px;
  box-sizing: border-box;
}
.threshold-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.salary-item {
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  transition: box-shadow 0.2s ease;
}
.salary-item:hover {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.salary-item-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}
.salary-item-header > div:first-child {
  flex: 1;
}

.salary-item-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-top: 1.6rem;
  flex-shrink: 0;
}

.move-btn {
  padding: 0.25rem 0.6rem;
  background: #e9ecef;
  border: 1px solid #ced4da;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  transition: background 0.15s ease;
}
.move-btn:hover:not(:disabled) {
  background: #dee2e6;
}
.move-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.delete-btn {
  padding: 0.25rem 0.6rem;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  transition: background 0.2s ease;
}
.delete-btn:hover {
  background: #c82333;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.section-editor {
  border: 2px solid #dee2e6;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #fafafa;
}

.section-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.section-editor-name {
  flex: 1;
  margin-right: 1rem;
}

.section-editor-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.display-item-name {
  flex: 1;
}

.display-item-rounding {
  min-width: 140px;
  margin-left: 0.5rem;
}

.wildcard-static {
  padding: 6px 0;
  color: #666;
  font-style: italic;
}

.source-label {
  font-size: 0.875rem;
}

.salary-tab-bar {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #dee2e6;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.salary-tab {
  padding: 8px 20px;
  border: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;
  background: #f8f9fa;
  font-weight: normal;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  margin-right: -1px;
  position: relative;
  bottom: -1px;
  z-index: 0;
  transition: background 0.15s ease;
}
.salary-tab:hover {
  background: #eef1f6;
}

.salary-tab--active {
  background: #fff;
  border-bottom-color: transparent;
  font-weight: bold;
  z-index: 1;
}

.salary-tab-bar-actions {
  margin-left: auto;
  margin-bottom: 1px;
}

.past-versions-body {
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .cutoff-tabs {
    gap: 8px;
  }
  .cutoff-tab {
    padding: 12px 16px;
    gap: 8px;
  }
  .tab-icon {
    font-size: 20px;
  }
  .tab-label {
    font-size: 14px;
  }
  .version-header {
    flex-direction: column;
    gap: 1rem;
  }
  .past-version-header {
    flex-direction: column;
    gap: 0.5rem;
  }
  .edit-form-row {
    flex-direction: column;
  }
  .section-editor-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .section-editor-name {
    margin-right: 0;
  }
  .salary-item-header {
    flex-wrap: wrap;
  }
  .display-item-rounding {
    min-width: 100%;
    margin-left: 0;
    margin-top: 0.5rem;
  }
  .salary-tab-bar {
    flex-wrap: wrap;
  }
}
.rules-index-page .page-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mount-hidden {
  display: none;
}

.disabled-link {
  color: #999;
  cursor: not-allowed;
}

.salary-section-note {
  font-size: 0.85em;
}

.version-badge {
  margin-left: 12px;
  font-size: 0.7em;
  vertical-align: middle;
}

.calendar-create-form-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr auto;
  gap: 1rem;
  align-items: flex-end;
}

.calendar-edit-form-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

.calendar-btn-group--mt {
  margin-top: 0.75rem;
}

.calendar-month-table {
  border-collapse: separate;
  border-spacing: 2px;
}

.calendar-cell-td {
  width: 14%;
  height: 60px;
  padding: 2px;
  cursor: pointer;
}

.calendar-hint-text {
  margin-bottom: 0.75rem;
}

.calendar-wday-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.calendar-error--mt {
  margin-top: 1rem;
}

.calendar-legend-item + .calendar-legend-item {
  margin-left: 1rem;
}

.calendar-cell-hint {
  margin-top: 0.5rem;
}

.modal-date {
  font-weight: bold;
  margin-bottom: 1rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.calendar-month {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
.calendar-month table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
}

.month-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #dee2e6;
  text-align: center;
}

.calendar-cell {
  transition: opacity 0.2s;
}
.calendar-cell:hover {
  opacity: 0.8;
}

.calendar-cell-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0.5rem;
  width: 100%;
}

.calendar-day {
  font-weight: bold;
  font-size: 0.875rem;
}

.calendar-label {
  font-weight: bold;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.calendar-legend {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 4px;
}

.current-month {
  font-size: 1.25rem;
  min-width: 120px;
  text-align: center;
}

.next-year-badge {
  font-size: 0.75rem;
  color: #6c757d;
  font-weight: normal;
  margin-left: 0.5rem;
}

/* 平日（所定労働日） - 白 */
.calendar-normal {
  background-color: #ffffff;
}

/* 法定休日 - 薄い赤 */
.calendar-statutory {
  background-color: #fde8e8;
}

/* 所定休日 - 薄い青 */
.calendar-non-statutory {
  background-color: #dbeafe;
}

/* 未設定 - グレー */
.calendar-unset {
  background-color: #e9ecef;
}

.calendar-index-table th:nth-child(1) {
  width: 20%;
}
.calendar-index-table th:nth-child(2) {
  width: 50%;
}
.calendar-index-table th:nth-child(3) {
  width: 15%;
}
.calendar-index-table th:nth-child(4) {
  width: 15%;
}

.wfdef-inline-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wfdef-select--wide {
  min-width: 200px;
}

.wfdef-saved-msg {
  color: #16a34a;
  font-size: 0.85rem;
}

.wfdef-step-body {
  padding-left: 32px;
}

.wfdef-days-input {
  width: 80px;
}

.wfdef-approver-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wfdef-approver-label {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.portal-accesses-index-page .page-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.workflow-definitions-page .page-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.month-navigation {
  margin: 20px 0;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.month-nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.current-month {
  font-size: 1.5em;
  font-weight: bold;
  color: #333;
}

.period-warning-container {
  margin: 20px 0;
  background: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: 8px;
  padding: 20px;
}

.period-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.period-tab {
  flex: 1;
  min-width: 250px;
  padding: 16px;
  background: white;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s;
  display: block;
}
.period-tab:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
  transform: translateY(-2px);
  text-decoration: none;
  color: #333;
}
.period-tab.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  color: white;
}

.period-tab-header {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.period-tab-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.period-tab-meta span {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  background: #e9ecef;
  color: #495057;
}

.period-tab.active .period-tab-meta span {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.current-period-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #ddd;
}
.current-period-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.period-range {
  font-size: 1rem;
  color: #555;
  margin-bottom: 8px;
}

.period-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.period-type-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.period-type-badge.regular {
  background: #e3f2fd;
  color: #1976d2;
}
.period-type-badge.irregular {
  background: #fff3e0;
  color: #f57c00;
}
.period-type-badge.initial {
  background: #e8f5e9;
  color: #388e3c;
}
.period-type-badge.final {
  background: #fce4ec;
  color: #c2185b;
}

.category-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  background: #e3f2fd;
  color: #1976d2;
}

.no-period-card {
  margin: 20px 0;
  padding: 30px;
  background: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.no-period-icon {
  font-size: 48px;
  flex-shrink: 0;
}

.no-period-message strong {
  display: block;
  font-size: 18px;
  color: #856404;
  margin-bottom: 8px;
}
.no-period-message p {
  margin: 0;
  color: #856404;
  font-size: 14px;
}

.attendance-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #ddd;
}
.attendance-card h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: bold;
}

.table-attendance {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
}
.table-attendance th {
  white-space: nowrap;
  font-size: 0.9em;
  padding: 8px 4px;
  vertical-align: middle;
  border: 1px solid #dee2e6;
}
.table-attendance td {
  font-size: 0.85em;
  padding: 6px 4px;
  vertical-align: middle;
  border: 1px solid #dee2e6;
}
.table-attendance tr.row--locked td {
  background-color: #f0fff4;
}
.table-attendance tr.row--on-leave td {
  background-color: #f0f0f0;
  color: #999;
}
.table-attendance tr.row--statutory-holiday td {
  background-color: #fde8e8;
}
.table-attendance tr.row--non-statutory-holiday td {
  background-color: #dbeafe;
}
.table-attendance .action-btn {
  display: inline-block;
  padding: 2px 6px;
  margin: 1px;
  font-size: 1.1em;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s;
  text-decoration: none;
}
.table-attendance .action-btn:hover {
  transform: scale(1.2);
}
.table-attendance .status-icon {
  display: inline-block;
  font-size: 1.2em;
  margin: 0 2px;
  cursor: help;
}

.dual-cell {
  padding: 4px 6px !important;
}

.dual-scheduled,
.dual-actual {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.dual-scheduled {
  padding-bottom: 3px;
  margin-bottom: 3px;
  border-bottom: 1px dashed #dee2e6;
}

.dual-label {
  display: inline-block;
  font-size: 0.7em;
  font-weight: 700;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 3px;
  flex-shrink: 0;
}

.dual-label--scheduled {
  background: #f0f0f0;
  color: #888;
}

.dual-label--actual {
  background: #e0e0e0;
  color: #333;
}

.leave-item {
  text-align: center;
  padding: 0.25rem 0;
}
.leave-item strong {
  display: block;
  font-size: 0.85em;
}
.leave-item small {
  color: #666;
  font-size: 0.8em;
  display: block;
}

.attendance-period-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1rem;
}
.attendance-period-header h2 {
  margin: 0;
  font-size: 1.1rem;
  color: #333;
}

.attendance-period-range {
  color: #667eea;
  font-weight: 600;
}

.btn--batch-confirm {
  white-space: nowrap;
  flex-shrink: 0;
}

.batch-status-panel {
  background: white;
  border: 2px solid #667eea;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.batch-status-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.batch-status-title {
  font-weight: 700;
  font-size: 1rem;
}

.batch-status-counts {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 8px;
  font-size: 0.9rem;
}

.batch-status-hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: #666;
}

.batch-status-failed {
  margin-top: 12px;
  padding: 10px 14px;
  background: #fff3f3;
  border: 1px solid #f5c6cb;
  border-radius: 6px;
  font-size: 0.9rem;
}
.batch-status-failed ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.attendance-index-table {
  width: 100%;
  border-collapse: collapse;
}
.attendance-index-table th {
  padding: 10px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  border-bottom: 2px solid #dee2e6;
  white-space: nowrap;
  text-align: left;
}
.attendance-index-table td {
  padding: 10px 12px;
  font-size: 0.9rem;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}
.attendance-index-table tbody tr:hover {
  background-color: #f5f7ff;
}

.td--notes {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.85rem;
  color: #555;
}

.attendance-delete-wrap {
  display: inline-block;
  margin-left: 5px;
}

.attendance-empty {
  text-align: center;
  padding: 3rem 1rem;
}
.attendance-empty p:first-child {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.attendance-empty-hint {
  font-size: 0.9em;
  color: #666;
}

.attendance-select--hour {
  width: 120px;
}

.attendance-select--minute {
  width: 80px;
}

@media (max-width: 768px) {
  .btn-group--between {
    flex-direction: column;
    align-items: stretch;
  }
  .period-tab {
    min-width: 100%;
  }
  .attendance-index-table {
    font-size: 0.85rem;
  }
  .attendance-index-table th,
  .attendance-index-table td {
    padding: 8px 6px;
  }
}
.attendance-period-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.attendance-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.attendance-rule-label {
  font-size: 0.82rem;
  color: #6b7280;
  margin-top: 4px;
}

.attendance-setup-hint {
  color: #6b7280;
  font-size: 0.9rem;
  padding: 24px 0;
  text-align: center;
}

.th-xs {
  font-size: 0.75rem;
  white-space: nowrap;
}

.td-xs {
  font-size: 0.8rem;
  white-space: nowrap;
}

.detail-desc {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.p-sm {
  margin: 0 0 8px;
}

.status__icon {
  display: inline-block;
  font-size: 1.2em;
  margin: 0 2px;
  cursor: help;
}

.status--locked {
  color: #28a745;
}

tr.status--locked td {
  background-color: #f0fff4;
}

.period-notes {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #555;
}

.employee-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #667eea;
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.employee-card-header .card-title {
  flex: 1;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 4px;
}
.employee-card-header .btn-group {
  flex-shrink: 0;
  padding-top: 2px;
}

.year-block {
  margin-bottom: 1rem;
  background: #f8f9fa;
  border-radius: 6px;
  padding: 0.75rem 1rem;
}

.year-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.year-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.premium-cell {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem;
}

.premium-cell-label {
  margin-bottom: 4px;
}

.premium-cell--wide {
  text-align: left;
  vertical-align: top;
  padding: 1rem;
}

.premium-cell--wide-edit {
  padding: 1rem;
  vertical-align: top;
}

.resident-tax-month {
  display: inline-block;
  width: 8em;
  text-align: left;
}

.resident-tax-amount {
  margin-left: 1em;
}

.resident-tax-input {
  display: inline-block;
  width: 120px;
  margin-left: 1em;
}

.family-summary {
  margin-top: 15px;
  background: #f8f9fa;
  padding: 10px;
  border-radius: 4px;
}

.input--sm {
  width: 120px;
}

.premium-table {
  width: 100%;
  table-layout: fixed;
}
.premium-table td {
  vertical-align: top;
}

.premium-amounts {
  font-size: 0.95rem;
  padding-left: 1em;
}
.premium-amounts div {
  margin-bottom: 2px;
}

.premium-amount-large {
  font-size: 1.1rem;
}

.text-muted--ml {
  margin-left: 10px;
}

.salary-time-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.salary-time-input--hours {
  width: 150px;
}

.salary-time-input--minutes {
  width: 100px;
}

.salary-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.salary-allowance-label {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .employee-card-header {
    flex-direction: column;
    gap: 0.5rem;
  }
  .year-header {
    flex-direction: column;
    gap: 0.5rem;
  }
  .premium-cell,
  .premium-cell--wide {
    padding: 0.5rem;
  }
}
.csv-dropdown {
  position: relative;
  display: inline-block;
}

.csv-dropdown__menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 100;
  min-width: 200px;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.csv-dropdown__item {
  display: block;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}
.csv-dropdown__item:hover {
  background: #f0f4ff;
  color: #667eea;
}
.csv-dropdown__item + .csv-dropdown__item {
  border-top: 1px solid #f0f0f0;
}

.edit-select--disabled {
  background-color: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
}

.csv-step-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.employee-index-table th:nth-child(1) {
  width: 15%;
}
.employee-index-table th:nth-child(2) {
  width: 25%;
}
.employee-index-table th:nth-child(3) {
  width: 25%;
}
.employee-index-table th:nth-child(4) {
  width: 15%;
}
.employee-index-table th:nth-child(5) {
  width: 20%;
}

.sale-table th:nth-child(1) {
  width: 18%;
}
.sale-table th:nth-child(2) {
  width: 12%;
}
.sale-table th:nth-child(3) {
  width: 20%;
}
.sale-table th:nth-child(4) {
  width: 12%;
}
.sale-table th:nth-child(5) {
  width: 12%;
}
.sale-table th:nth-child(6) {
  width: 10%;
}
.sale-table th:nth-child(7),
.sale-table td:nth-child(7) {
  width: 16%;
  white-space: nowrap;
}

.sale-item-row {
  border: 1px solid #dde0e7;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 10px;
  background: #fff;
  transition: box-shadow 0.15s ease;
}
.sale-item-row:hover {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

.sale-item-fields {
  display: grid;
  grid-template-columns: 1fr 90px 110px 110px 60px;
  gap: 8px;
  align-items: flex-end;
}

.sale-item-desc {
  margin-top: 8px;
}

.sale-amount-display {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background-color: #f5f5f5;
  font-size: 14px;
  line-height: 1.5;
  min-height: 44px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  font-weight: 600;
  color: #333;
}

.sale-total {
  text-align: right;
  font-weight: 600;
}

.badge--invoice {
  margin-left: 8px;
  background-color: #d4edda;
  color: #155724;
}

.badge--shared {
  background-color: #cce5ff;
  color: #004085;
}

.badge--draft {
  background-color: #e2e3e5;
  color: #383d41;
}

@media (max-width: 768px) {
  .sale-item-fields {
    grid-template-columns: 1fr 1fr;
    row-gap: 8px;
  }
  .sale-item-fields > :last-child {
    grid-column: 2;
    justify-self: end;
  }
}
.sales-page .page-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.opportunity-create-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
  align-items: flex-end;
}

.opportunity-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: bold;
  white-space: nowrap;
}
.opportunity-status--new-lead {
  background-color: #e3f2fd;
  color: #1565c0;
}
.opportunity-status--first-contact {
  background-color: #fff8e1;
  color: #f57f17;
}
.opportunity-status--negotiated {
  background-color: #ede7f6;
  color: #6a1b9a;
}
.opportunity-status--lost {
  background-color: #fce4ec;
  color: #b71c1c;
}
.opportunity-status--won {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.opportunity-timeline {
  position: relative;
  padding-left: 24px;
}
.opportunity-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 0;
  width: 2px;
  background: #e0e0e0;
}

.opportunity-timeline-item {
  position: relative;
  margin-bottom: 20px;
}
.opportunity-timeline-item::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #667eea;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #667eea;
}

.opportunity-timeline-date {
  font-size: 0.8em;
  color: #888;
  margin-bottom: 4px;
}

.opportunity-timeline-content {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.9em;
  line-height: 1.6;
  color: #333;
  white-space: pre-wrap;
}

.opportunity-history-form .inquiry-control-btn:disabled,
.card .inquiry-control-btn:disabled {
  opacity: 1;
  cursor: default;
}
.opportunity-history-form .inquiry-control-btn.active--new-lead,
.card .inquiry-control-btn.active--new-lead {
  background-color: #1565c0;
  border-color: #1565c0;
}
.opportunity-history-form .inquiry-control-btn.active--first-contact,
.card .inquiry-control-btn.active--first-contact {
  background-color: #f57f17;
  border-color: #f57f17;
}
.opportunity-history-form .inquiry-control-btn.active--negotiated,
.card .inquiry-control-btn.active--negotiated {
  background-color: #6a1b9a;
  border-color: #6a1b9a;
}
.opportunity-history-form .inquiry-control-btn.active--lost,
.card .inquiry-control-btn.active--lost {
  background-color: #b71c1c;
  border-color: #b71c1c;
}
.opportunity-history-form .inquiry-control-btn.active--won,
.card .inquiry-control-btn.active--won {
  background-color: #2e7d32;
  border-color: #2e7d32;
}

.opportunity-history-form {
  background: #f0f4ff;
  border: 1px solid #c5cff5;
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
}
.opportunity-history-form .form-row {
  flex-direction: column;
  gap: 12px;
}
.opportunity-history-form .form-row .form-group-inline {
  width: 100%;
}
.opportunity-history-form .form-row .form-group-inline .form-input {
  width: 100%;
  box-sizing: border-box;
}

.opportunity-index-table th:nth-child(1) {
  width: 40%;
}
.opportunity-index-table th:nth-child(2) {
  width: 40%;
}
.opportunity-index-table th:nth-child(3) {
  width: 20%;
}

@media (max-width: 768px) {
  .data-table {
    font-size: 0.85rem;
  }
  .data-table thead th,
  .data-table tbody td {
    padding: 8px 6px;
  }
}
.firm-create-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
  align-items: flex-end;
}

.firm-table th:nth-child(1) {
  width: 45%;
}
.firm-table th:nth-child(2) {
  width: 30%;
}
.firm-table th:nth-child(3) {
  width: 25%;
}

.item-create-form-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 1rem;
  align-items: flex-end;
}

.item-index-table th:nth-child(1) {
  width: 35%;
}
.item-index-table th:nth-child(2) {
  width: 20%;
}
.item-index-table th:nth-child(3) {
  width: 25%;
}
.item-index-table th:nth-child(4) {
  width: 20%;
}

.payroll-category-list-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}
.payroll-category-list-table thead {
  background-color: #f5f5f5;
}
.payroll-category-list-table thead th {
  padding: 12px 8px;
  text-align: left;
  border-bottom: 2px solid #ddd;
  font-weight: bold;
  font-size: 0.9rem;
}
.payroll-category-list-table tbody tr {
  border-bottom: 1px solid #eee;
}
.payroll-category-list-table tbody tr:hover {
  background-color: #f9f9f9;
}
.payroll-category-list-table tbody td {
  padding: 10px 8px;
  vertical-align: middle;
  font-size: 0.9rem;
}

.payroll-category-edit-row td {
  padding: 0 !important;
  background-color: #f8f9fa;
}
.payroll-category-edit-row .card-body {
  padding: 20px;
}

.badge--bonus-type {
  font-weight: normal;
  background-color: #fff3e0;
  color: #f57c00;
}

.bonus-type-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}
.bonus-type-table thead {
  background-color: #f5f5f5;
}
.bonus-type-table thead th {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 2px solid #ddd;
  font-weight: bold;
  font-size: 0.9rem;
}
.bonus-type-table tbody tr {
  border-bottom: 1px solid #eee;
}
.bonus-type-table tbody tr:hover {
  background-color: #f9f9f9;
}
.bonus-type-table tbody td {
  padding: 10px 12px;
  vertical-align: middle;
  font-size: 0.9rem;
}

.bonus-type-empty {
  text-align: center;
  color: #888;
  padding: 20px 0;
}

@media (max-width: 768px) {
  .data-table {
    font-size: 0.85rem;
  }
  .data-table thead th,
  .data-table tbody td {
    padding: 8px 6px;
  }
  .payroll-category-list-table {
    font-size: 0.8rem;
  }
  .payroll-category-list-table thead th,
  .payroll-category-list-table tbody td {
    padding: 8px 4px;
  }
  .modal-dialog {
    width: 95%;
    max-height: 90vh;
  }
}
.tenant-create-form-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: flex-end;
}

.tenant-index-table th:nth-child(1) {
  width: 60%;
}
.tenant-index-table th:nth-child(2) {
  width: 15%;
}
.tenant-index-table th:nth-child(3) {
  width: 25%;
}

:root {
  --staff-card-radius: 8px;
  --staff-card-border: v.$color-border-base;
  --staff-card-padding: 20px 24px;
  --staff-label-width: 160px;
}

.staff-dashboard {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  gap: 24px;
}

.stamp-button-group {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin: 30px 0;
}

.stamp-btn {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: none;
  color: white;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s, box-shadow 0.15s;
  padding: 0;
  white-space: normal;
  text-align: center;
}
.stamp-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}
.stamp-btn:active {
  transform: scale(0.96);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}
.stamp-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.stamp-btn--clock-in {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stamp-btn--clock-out {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stamp-gps-status {
  text-align: center;
  font-size: 14px;
}

@media (max-width: 480px) {
  .stamp-button-group {
    gap: 28px;
  }
  .stamp-btn {
    width: 140px;
    height: 140px;
  }
}
.staff-warning-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #ffe69c;
}

.staff-warning-icon {
  font-size: 24px;
}

.staff-warning-hint {
  color: #856404;
  font-size: 14px;
  margin-left: auto;
}

.staff-period-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.staff-period-tab {
  flex: 1;
  min-width: 250px;
  padding: 16px;
  background: white;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s;
}
.staff-period-tab:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
  transform: translateY(-2px);
  text-decoration: none;
}
.staff-period-tab.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  color: white;
}

.staff-tab-header {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.staff-tab-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.staff-tab-meta span {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.staff-days-badge {
  background: #e9ecef;
  color: #495057;
}
.staff-period-tab.active .staff-days-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.staff-period-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.staff-period-info-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.staff-period-info-label {
  font-weight: 600;
  color: #495057;
}

.staff-period-info-date {
  font-size: 16px;
  color: #212529;
}

.staff-period-info-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.staff-locked-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background-color: #28a745;
  color: white;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.staff-period-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.staff-confirm-btn {
  display: inline-block;
  padding: 6px 12px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s;
}
.staff-confirm-btn:hover {
  background-color: #0056b3;
  color: white;
}
.staff-confirm-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.staff-confirm-btn--sync {
  background-color: #6c757d;
}
.staff-confirm-btn--sync:hover {
  background-color: #545b62;
  color: white;
}

.staff-no-period {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}
.staff-no-period p {
  margin: 4px 0 0 0;
}

.staff-calendar-section {
  margin-top: 8px;
}

.staff-empty-cell {
  text-align: center;
  padding: 40px;
  color: #adb5bd;
}

.staff-no-period-icon {
  font-size: 24px;
}

.table--calendar {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  line-height: 1.5;
}
.table--calendar thead {
  background: #495057;
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
}
.table--calendar th {
  padding: 14px 8px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95em;
  border-bottom: 2px solid #343a40;
  background: #495057;
  color: white;
  white-space: nowrap;
}
.table--calendar td {
  padding: 10px 8px;
  border-bottom: 1px solid #e9ecef;
  text-align: center;
  font-size: 14px;
}
.table--calendar tbody tr:hover {
  background-color: #f8f9fa;
}
.table--calendar small {
  font-size: 12px;
}
.table--calendar tr.row--on-leave td {
  background-color: #f0f0f0;
  color: #999;
}
.table--calendar tr.row--statutory-holiday td {
  background-color: #fde8e8;
}
.table--calendar tr.row--non-statutory-holiday td {
  background-color: #dbeafe;
}

.table__cell--date {
  font-size: 16px;
  font-weight: 600;
  color: #495057;
}

.synced-at {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #6c757d;
}

.table__cell--stamps {
  font-size: 12px;
}

.table__cell--break {
  text-align: center;
  font-size: 12px;
}

.table__cell--leave {
  text-align: center;
  font-size: 12px;
}

.table__cell--time-range {
  text-align: center;
  font-size: 12px;
}

.schedule-row {
  background-color: #f8f9fa;
}

.schedule-cell {
  text-align: center;
  font-size: 12px;
  color: #6c757d;
}

.schedule-time {
  font-weight: 500;
  color: #6c757d;
}

.schedule-break {
  font-size: 14px;
  color: #6c757d;
  padding: 2px 0;
}

.stamps-detail {
  text-align: left;
}
.stamps-detail summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  padding: 4px 0;
  color: #0d6efd;
}
.stamps-detail summary:hover {
  text-decoration: underline;
}

.stamps-list {
  margin-top: 8px;
  padding: 8px;
  background-color: #f8f9fa;
  border-radius: 4px;
}

.stamp-pair-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.stamp-pair-row:last-child {
  margin-bottom: 0;
}

.stamp-pair-cell {
  flex: 1;
  min-width: 0;
}

.stamp-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 13px;
  color: #dc3545;
  font-weight: 500;
}

.stamp-item {
  padding: 8px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background-color: white;
  margin-bottom: 8px;
}
.stamp-item:last-child {
  margin-bottom: 0;
}

.stamp-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.stamp-type {
  font-size: 14px;
  font-weight: 500;
}

.stamp-time {
  font-size: 16px;
  font-weight: 600;
  font-family: "Courier New", monospace;
}

.stamp-message {
  display: block;
  font-size: 12px;
  color: #dc3545;
  margin-top: 4px;
}

.stamp-action-buttons {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.btn-stamp-action {
  font-size: 12px;
  padding: 4px 8px;
  border: 1px solid #dee2e6;
  background-color: white;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-stamp-action:hover {
  background-color: #f8f9fa;
  border-color: #adb5bd;
}

.time-range-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}

.time-range-display {
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.work-pairs-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.work-pair-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
}

.break-summary {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}

.leave-action-cell {
  vertical-align: middle;
  text-align: center;
  padding: 8px;
}

.leave-cell-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}

.icon-btn--sync:hover {
  background-color: rgba(40, 167, 69, 0.1);
}
.icon-btn--sync:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.leave-info {
  font-size: 14px;
  margin-bottom: 8px;
}
.leave-info small {
  font-size: 12px;
  color: #6c757d;
  margin-left: 4px;
}

.none {
  font-size: 14px;
  color: #adb5bd;
  font-weight: normal;
}

@media (max-width: 768px) {
  .table--calendar {
    font-size: 12px;
  }
  .table--calendar .stamp-time {
    font-size: 14px;
  }
}
.staff-summary-card,
.staff-section,
.staff-detail-section {
  margin-bottom: 16px;
  padding: var(--staff-card-padding);
  background: #fff;
  border: 1px solid var(--staff-card-border);
  border-radius: var(--staff-card-radius);
}

.staff-summary-card--info {
  background: #e7f3ff;
  border-color: #2196f3;
}

.staff-detail-title {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 600;
}

.staff-detail-body {
  background: white;
  padding: 12px;
  border-radius: 4px;
}

.staff-detail-row {
  display: flex;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}
.staff-detail-row:last-child {
  border-bottom: none;
}

.staff-detail-label {
  width: var(--staff-label-width);
  min-width: var(--staff-label-width);
  font-weight: 600;
  color: #495057;
}

.staff-detail-value {
  flex: 1;
  color: #212529;
}

.staff-section__title,
.staff-detail-section__title {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 10px;
}

.staff-info-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.staff-warning__list {
  margin: 0;
  padding-left: 20px;
}
.staff-warning__list li {
  margin-bottom: 8px;
  color: #856404;
  line-height: 1.5;
}
.staff-warning__list li:last-child {
  margin-bottom: 0;
}

.staff-judgement-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.staff-judgement-approve {
  flex: 2;
}

.staff-judgement-reject {
  flex: 1;
}

.staff-judgement-card {
  border: 2px solid #0056b3 !important;
}

.staff-judgement-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.staff-judgement-textarea {
  width: 100%;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #ddd;
  box-sizing: border-box;
  font-size: 14px;
  resize: vertical;
}

.staff-judgement-textarea-wrap {
  margin-bottom: 20px;
}

.staff-wf-new-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}
.staff-wf-new-buttons .btn {
  font-size: 13px;
  padding: 8px 16px;
}

.staff-wf-pair-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.staff-wf-pair-list .inline-create-form {
  position: relative;
  margin: 0;
}

.inline-create-form__remove {
  position: absolute;
  top: 8px;
  right: 8px;
}

.workflow-index-table th:nth-child(1) {
  width: 40%;
}
.workflow-index-table th:nth-child(2) {
  width: 25%;
}
.workflow-index-table th:nth-child(3) {
  width: 25%;
}
.workflow-index-table th:nth-child(4) {
  width: 10%;
}

.workflow-steps-table th:nth-child(1) {
  width: 15%;
}
.workflow-steps-table th:nth-child(2) {
  width: 25%;
}
.workflow-steps-table th:nth-child(3) {
  width: 20%;
}
.workflow-steps-table th:nth-child(4) {
  width: 25%;
}
.workflow-steps-table th:nth-child(5) {
  width: 15%;
}

.workflow-detail-table th:nth-child(1) {
  width: 30%;
}
.workflow-detail-table th:nth-child(2) {
  width: 70%;
}

.approval-index-table th:nth-child(1) {
  width: 25%;
}
.approval-index-table th:nth-child(2) {
  width: 30%;
}
.approval-index-table th:nth-child(3) {
  width: 30%;
}
.approval-index-table th:nth-child(4) {
  width: 15%;
}

.field {
  margin-bottom: 14px;
}
.field label {
  display: block;
  font-weight: 600;
  color: #343a40;
  margin-bottom: 4px;
  font-size: 14px;
}
.field input[type=text],
.field input[type=number],
.field input[type=date],
.field select,
.field textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.field input[type=text]:focus,
.field input[type=number]:focus,
.field input[type=date]:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.subfields {
  padding: 12px 16px;
  background: #f8f9fa;
  border-left: 3px solid #667eea;
  border-radius: 0 4px 4px 0;
  margin-top: 8px;
  margin-bottom: 8px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 600px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
.dependent-card {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 12px;
}
.dependent-card--selected {
  border-color: #667eea;
  background: #f0f2ff;
}

.dependent-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.dependent-header strong {
  font-size: 14px;
  color: #343a40;
}
.dependent-header small {
  color: #6c757d;
  font-size: 12px;
}

.dependent-fields {
  padding-top: 8px;
}

.year-groups {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.year-group {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.tax-year-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  cursor: pointer;
  user-select: none;
  background: #f9fafb;
  border-bottom: 1px solid transparent;
  transition: background 0.15s;
}
.tax-year-header:hover {
  background: #f3f4f6;
}

.tax-year-header__left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tax-year-header__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.year-chevron {
  font-size: 0.85rem;
  color: #6b7280;
  width: 14px;
}

.tax-year-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.year-badge {
  font-size: 0.75rem;
  color: #059669;
  font-weight: 600;
}

.year-count {
  font-size: 0.78rem;
  color: #9ca3af;
}

.year-body {
  border-top: 1px solid #e5e7eb;
}

.history-table {
  margin: 0;
}
.history-table th,
.history-table td {
  padding: 10px 16px;
}

.history-row--approved {
  background: #f0fdf4;
}

.change-reason {
  font-weight: 500;
  color: #374151;
}

.new-year-action {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

body.lp-page {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1a1a2e;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

.lp-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.lp-hero img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 560px;
}
.lp-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.9));
  pointer-events: none;
}

.lp-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  line-height: 1.9;
  font-size: 16px;
}
.lp-body h1 {
  font-size: 2.4rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  color: #1a1a2e;
}
.lp-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1a1a2e;
}
.lp-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}
.lp-body p {
  margin-bottom: 1rem;
  color: #444;
}
.lp-body a {
  color: #2563eb;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.lp-body a:hover {
  border-bottom-color: #2563eb;
}
.lp-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
}
.lp-body .lp-subtitle {
  text-align: center;
  color: #6b7280;
  font-size: 1.1rem;
  margin-bottom: 3rem;
}
.lp-body .lp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 2.5rem 0;
}
.lp-body .lp-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
  transition: box-shadow 0.25s, transform 0.25s;
}
.lp-body .lp-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.lp-body .lp-card--featured {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px #2563eb;
}
.lp-body .lp-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: #2563eb;
  margin: 0.5rem 0;
  letter-spacing: -0.02em;
}
.lp-body .lp-price-note {
  font-size: 0.85rem;
  color: #9ca3af;
}
.lp-body .lp-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.lp-body .lp-features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #444;
}
.lp-body .lp-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2563eb;
  font-weight: 700;
}
.lp-body .lp-section {
  margin: 4rem 0;
}
.lp-body .lp-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: #1a1a2e;
}
.lp-body .lp-cta {
  display: inline-block;
  padding: 16px 48px;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.02em;
}
.lp-body .lp-cta:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  text-decoration: none;
  border-bottom-color: transparent;
}
.lp-body .lp-cta:active {
  transform: translateY(0);
}
.lp-body .lp-cta--outline {
  background: transparent;
  color: #2563eb;
  border: 2px solid #2563eb;
}
.lp-body .lp-cta--outline:hover {
  background: #2563eb;
  color: #fff;
}
.lp-body .lp-cta--large {
  padding: 20px 64px;
  font-size: 1.2rem;
  border-radius: 12px;
}
.lp-body .lp-cta-wrapper {
  text-align: center;
  margin: 3rem 0;
}
.lp-body .lp-note {
  text-align: center;
  color: #9ca3af;
  margin-top: 2.5rem;
  font-size: 0.85rem;
}
.lp-body .lp-testimonial {
  background: #f9fafb;
  border-radius: 16px;
  padding: 32px;
  margin: 2rem 0;
  font-style: italic;
  color: #374151;
  position: relative;
}
.lp-body .lp-testimonial::before {
  content: "";
  font-size: 4rem;
  color: #e5e7eb;
  position: absolute;
  top: 8px;
  left: 16px;
  line-height: 1;
}
.lp-body .lp-testimonial .lp-testimonial-author {
  font-style: normal;
  font-weight: 600;
  margin-top: 1rem;
  color: #6b7280;
  font-size: 0.9rem;
}
.lp-body .lp-divider {
  border: none;
  height: 1px;
  background: #e5e7eb;
  margin: 3rem 0;
}

.lp-footer {
  text-align: center;
  padding: 40px 24px;
  background: #f9fafb;
  color: #9ca3af;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .lp-hero img {
    max-height: 300px;
  }
  .lp-body {
    padding: 32px 16px 60px;
  }
  .lp-body h1 {
    font-size: 1.75rem;
  }
  .lp-body h2 {
    font-size: 1.25rem;
  }
  .lp-body .lp-price {
    font-size: 1.75rem;
  }
  .lp-body .lp-card {
    padding: 24px;
  }
  .lp-body .lp-cards {
    grid-template-columns: 1fr;
  }
  .lp-body .lp-cta {
    display: block;
    text-align: center;
    padding: 14px 24px;
  }
  .lp-body .lp-cta--large {
    padding: 16px 32px;
    font-size: 1.05rem;
  }
  .lp-body .lp-section {
    margin: 2.5rem 0;
  }
  .lp-body .lp-section-title {
    font-size: 1.4rem;
  }
}
.lp-body-preview {
  margin-top: 12px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  max-height: 400px;
  overflow: auto;
}
.lp-body-preview pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  font-size: 13px;
}

.image-asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.image-asset-card {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
}

.image-asset-card__thumb {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}

.image-asset-card__body {
  padding: 8px;
}

.image-asset-card__name {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 6px;
  word-break: break-all;
}

.lp-image-preview {
  display: block;
  max-width: 240px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.lp-image-thumb {
  max-width: 300px;
  border-radius: 4px;
}

.card .inquiry-control-btn.active--draft {
  background-color: #757575;
  border-color: #757575;
}
.card .inquiry-control-btn.active--published {
  background-color: #27ae60;
  border-color: #27ae60;
}

.experts-table th:nth-child(1) {
  width: 15%;
}
.experts-table th:nth-child(2) {
  width: 12%;
}
.experts-table th:nth-child(3) {
  width: 15%;
}
.experts-table th:nth-child(5) {
  width: 8%;
}
.experts-table th:nth-child(6) {
  width: 15%;
}

.data-migrations-progress-bar {
  display: flex;
  align-items: flex-start;
  margin-bottom: 24px;
  padding: 20px 24px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
}
.data-migrations-progress-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  min-width: 80px;
}
.data-migrations-progress-bar__node {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  background: #f8f9fa;
  border: 2px solid #ddd;
  color: #6c757d;
  transition: background 0.2s, border-color 0.2s;
}
.data-migrations-progress-bar__node--done {
  background: #28a745;
  border-color: #28a745;
  color: #fff;
}
.data-migrations-progress-bar__node--current {
  background: #fff;
  border-color: #667eea;
  color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}
.data-migrations-progress-bar__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 6px;
  text-align: center;
}
.data-migrations-progress-bar__step-num {
  font-size: 11px;
  color: #6c757d;
  line-height: 1.2;
}
.data-migrations-progress-bar__title {
  font-size: 11px;
  color: #333;
  font-weight: bold;
  line-height: 1.4;
  max-width: 72px;
}
.data-migrations-progress-bar__line {
  flex: 1;
  height: 2px;
  background: #ddd;
  margin-top: 17px;
  min-width: 16px;
  transition: background 0.2s;
}
.data-migrations-progress-bar__line--done {
  background: #28a745;
}

.data-migrations-step-content__title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #667eea;
}

.data-migrations-step-list {
  margin: 16px 0;
  padding-left: 24px;
  line-height: 2;
  color: #666;
}

.csv-step-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.data-migration-index-table th:nth-child(1) {
  width: 20%;
}
.data-migration-index-table th:nth-child(2) {
  width: 15%;
}
.data-migration-index-table th:nth-child(3) {
  width: 20%;
}
.data-migration-index-table th:nth-child(4) {
  width: 20%;
}
.data-migration-index-table th:nth-child(5) {
  width: 15%;
}
.data-migration-index-table th:nth-child(6) {
  width: 10%;
}

.mail-preview {
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 12px;
  white-space: pre-wrap;
  font-size: 13px;
}

.contract-signing-page {
  max-width: 720px;
  margin: 40px auto;
}

.text-counterparty {
  font-size: 12px;
  color: #888;
}

.mail-preview__to {
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}

.mail-preview__subject {
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 8px;
}

.contract-signing-page__title {
  text-align: center;
  margin-bottom: 8px;
}

.contract-signing-page__note {
  font-size: 13px;
  margin-bottom: 24px;
}

.contract-signing-page__confirm {
  margin-bottom: 12px;
  font-size: 14px;
}

.contract-create-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
  align-items: flex-end;
}

.meeting-form {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.meeting-form__field {
  flex: 1;
  min-width: 200px;
}

.meeting-form__field--narrow {
  min-width: 120px;
}

.meeting-form__label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  color: #64748b;
}

.meeting-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.meeting-card__title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.meeting-card__meta {
  font-size: 0.8rem;
  color: #64748b;
}

.meeting-card__actions {
  display: flex;
  gap: 0.5rem;
}

.meeting-card__link {
  text-decoration: none;
}

.meeting-empty {
  text-align: center;
  color: #64748b;
  padding: 2rem 0;
}

.meeting-room__icon {
  font-size: 2rem;
}

.meeting-room__meta {
  font-size: 0.8rem;
  color: #94a3b8;
}

.meeting-room__label {
  font-size: 0.85rem;
  color: #fff;
  font-weight: 600;
}

.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 120px);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.chat-load-more {
  text-align: center;
  margin-bottom: 12px;
}

.chat-message {
  margin-bottom: 12px;
}
.chat-message:hover .chat-message-delete {
  visibility: visible;
}

.chat-message-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.chat-message-delete {
  margin-left: auto;
  visibility: hidden;
}

.chat-message-username {
  font-weight: 600;
  font-size: 14px;
}

.chat-message-time {
  font-size: 12px;
  color: #999;
}

.chat-message-body {
  margin: 4px 0 0;
  font-size: 14px;
  white-space: pre-wrap;
}

.chat-input {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #ddd;
}
.chat-input textarea {
  flex: 1;
  resize: none;
}
.chat-input .btn {
  align-self: flex-end;
}

.transfer-data-table th:nth-child(1) {
  width: 10%;
}
.transfer-data-table th:nth-child(2) {
  width: 14%;
}
.transfer-data-table th:nth-child(3) {
  width: 7%;
}
.transfer-data-table th:nth-child(4) {
  width: 12%;
}
.transfer-data-table th:nth-child(5) {
  width: 12%;
}
.transfer-data-table th:nth-child(6) {
  width: 18%;
}
.transfer-data-table th:nth-child(7) {
  width: 12%;
}
.transfer-data-table th:nth-child(8) {
  width: 15%;
}
.transfer-data-table .text-right {
  text-align: right;
}

.marketing-lp-table th:nth-child(1) {
  width: 40%;
}
.marketing-lp-table th:nth-child(2) {
  width: 35%;
}
.marketing-lp-table th:nth-child(3) {
  width: 25%;
}

.agency-contractor-index-table th:nth-child(1) {
  width: 35%;
}
.agency-contractor-index-table th:nth-child(2) {
  width: 20%;
}
.agency-contractor-index-table th:nth-child(3) {
  width: 25%;
}
.agency-contractor-index-table th:nth-child(4) {
  width: 20%;
}

.ohs-provider-index-table th:nth-child(1) {
  width: 35%;
}
.ohs-provider-index-table th:nth-child(2) {
  width: 20%;
}
.ohs-provider-index-table th:nth-child(3) {
  width: 25%;
}
.ohs-provider-index-table th:nth-child(4) {
  width: 20%;
}

.firm-license-index-table th:nth-child(1) {
  width: 25%;
}
.firm-license-index-table th:nth-child(2) {
  width: 20%;
}
.firm-license-index-table th:nth-child(3) {
  width: 30%;
}
.firm-license-index-table th:nth-child(4) {
  width: 25%;
}

.received-invoice-index-table th:nth-child(1) {
  width: 18%;
}
.received-invoice-index-table th:nth-child(2) {
  width: 14%;
}
.received-invoice-index-table th:nth-child(3) {
  width: 14%;
}
.received-invoice-index-table th:nth-child(4) {
  width: 14%;
}
.received-invoice-index-table th:nth-child(5) {
  width: 18%;
}
.received-invoice-index-table th:nth-child(6) {
  width: 22%;
}

.portal-access-index-table th:nth-child(1) {
  width: 10%;
}
.portal-access-index-table th:nth-child(2) {
  width: 14%;
}
.portal-access-index-table th:nth-child(3) {
  width: 14%;
}
.portal-access-index-table th:nth-child(4) {
  width: 10%;
}
.portal-access-index-table th:nth-child(5) {
  width: 10%;
}
.portal-access-index-table th:nth-child(6) {
  width: 14%;
}
.portal-access-index-table th:nth-child(7) {
  width: 14%;
}
.portal-access-index-table th:nth-child(8) {
  width: 14%;
}

.workflow-definition-index-table th:nth-child(1) {
  width: 30%;
}
.workflow-definition-index-table th:nth-child(2) {
  width: 35%;
}
.workflow-definition-index-table th:nth-child(3) {
  width: 15%;
}
.workflow-definition-index-table th:nth-child(4) {
  width: 20%;
}

.workflow-definition-steps-table th:nth-child(1) {
  width: 25%;
}
.workflow-definition-steps-table th:nth-child(2) {
  width: 50%;
}
.workflow-definition-steps-table th:nth-child(3) {
  width: 25%;
}

.salary-revision-index-table th:nth-child(1) {
  width: 5%;
}
.salary-revision-index-table th:nth-child(2) {
  width: 15%;
}
.salary-revision-index-table th:nth-child(3) {
  width: 25%;
}
.salary-revision-index-table th:nth-child(4) {
  width: 20%;
}
.salary-revision-index-table th:nth-child(5) {
  width: 15%;
}
.salary-revision-index-table th:nth-child(6) {
  width: 20%;
}

.salary-revision-detail-table th {
  min-width: 100px;
}
.salary-revision-detail-table th:nth-child(1) {
  width: 12%;
}
.salary-revision-detail-table th:nth-child(2) {
  width: 12%;
}
.salary-revision-detail-table th:nth-child(3) {
  width: 10%;
}
.salary-revision-detail-table th:nth-child(4) {
  width: 10%;
}

.periodical-revision-index-table th {
  min-width: 80px;
}
.periodical-revision-index-table th:nth-child(1) {
  width: 10%;
}
.periodical-revision-index-table th:nth-child(2) {
  width: 12%;
}
.periodical-revision-index-table th:nth-child(3) {
  width: 10%;
}

.health-data-employee-table th:nth-child(1) {
  width: 5%;
}
.health-data-employee-table th:nth-child(2) {
  width: 10%;
}
.health-data-employee-table th:nth-child(3) {
  width: 12%;
}
.health-data-employee-table th:nth-child(4) {
  width: 12%;
}
.health-data-employee-table th:nth-child(5) {
  width: 10%;
}
.health-data-employee-table th:nth-child(6) {
  width: 8%;
}
.health-data-employee-table th:nth-child(7) {
  width: 12%;
}
.health-data-employee-table th:nth-child(8) {
  width: 10%;
}
.health-data-employee-table th:nth-child(9) {
  width: 11%;
}
.health-data-employee-table th:nth-child(10) {
  width: 10%;
}

.health-data-group-table th:nth-child(1) {
  width: 40%;
}
.health-data-group-table th:nth-child(2) {
  width: 60%;
}

.hr-license-index-table th:nth-child(1) {
  width: 20%;
}
.hr-license-index-table th:nth-child(2) {
  width: 20%;
}
.hr-license-index-table th:nth-child(3) {
  width: 25%;
}
.hr-license-index-table th:nth-child(4) {
  width: 20%;
}
.hr-license-index-table th:nth-child(5) {
  width: 15%;
}
