/* CCH Native V3 structural module CSS: modules/admin/css/admin.css
   Old visual skin removed. Uses core/css/cch-design-v3.css. */
body.cch-page-cch-admin-interface {
  overflow-x: hidden;
}

body.cch-page-cch-admin-interface .module-header {
  margin-bottom: 16px;
}

body.cch-page-cch-admin-interface .module-header-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

body.cch-page-cch-admin-interface .module-header h1 {
  margin: 0 0 8px;
}

body.cch-page-cch-admin-interface .module-header #status {
  margin-top: 10px;
}

body.cch-page-cch-admin-interface .layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

body.cch-page-cch-admin-interface aside.card {
  position: sticky;
  top: 18px;
  z-index: 10;
  padding: 18px;
  backdrop-filter: blur(18px);
}

body.cch-page-cch-admin-interface main {
  min-width: 0;
}

body.cch-page-cch-admin-interface .tabs {
  display: grid;
  gap: 8px;
}

body.cch-page-cch-admin-interface .tabbtn {
  width: 100%;
  min-height: 42px;
  font-weight: 850;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.15s ease,
          color 0.15s ease,
          border-color 0.15s ease,
          transform 0.15s ease;
}

body.cch-page-cch-admin-interface .tabbtn:hover {
  transform: translateX(2px);
}

body.cch-page-cch-admin-interface .panel[data-tab] {
  display: none !important;
}

body.cch-page-cch-admin-interface .panel[data-tab].active {
  display: block !important;
}

body.cch-page-cch-admin-interface .card {
  padding: 18px;
  box-sizing: border-box;
}

body.cch-page-cch-admin-interface .entity {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 18px;
  align-items: start;
}

body.cch-page-cch-admin-interface h2 {
  margin: 0 0 12px;
  letter-spacing: -0.025em;
}

body.cch-page-cch-admin-interface .small,
      body.cch-page-cch-admin-interface .status.small {
  font-size: 12px;
  line-height: 1.45;
}

body.cch-page-cch-admin-interface .status.small {
  padding: 10px 12px;
}

body.cch-page-cch-admin-interface .filter-card {
  margin: 12px 0 14px;
  padding: 14px;
}

body.cch-page-cch-admin-interface .admin-filters label {
  margin-top: 0;
}

body.cch-page-cch-admin-interface .field-note {
  margin: 6px 0 0;
}

body.cch-page-cch-admin-interface .tableWrap {
  width: 100%;
  max-width: 100%;
  overflow: auto;
  max-height: 62vh;
  -webkit-overflow-scrolling: touch;
}

body.cch-page-cch-admin-interface table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

body.cch-page-cch-admin-interface th {
  position: sticky;
  top: 0;
  z-index: 1;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  text-align: left;
  padding: 11px 12px;
  white-space: nowrap;
}

body.cch-page-cch-admin-interface td {
  padding: 11px 12px;
  vertical-align: top;
}

body.cch-page-cch-admin-interface label {
  display: block;
  margin: 10px 0 6px;
  font-size: 12px;
  font-weight: 850;
}

body.cch-page-cch-admin-interface input,
      body.cch-page-cch-admin-interface select,
      body.cch-page-cch-admin-interface textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  font: inherit;
  box-sizing: border-box;
}

body.cch-page-cch-admin-interface textarea {
  min-height: 92px;
  resize: vertical;
}

body.cch-page-cch-admin-interface input[disabled] {
  cursor: not-allowed;
}

body.cch-page-cch-admin-interface input[type="checkbox"] {
  width: 18px !important;
  min-width: 18px;
  height: 18px !important;
  min-height: 18px !important;
  padding: 0;
  cursor: pointer;
}

body.cch-page-cch-admin-interface .grid2,
      body.cch-page-cch-admin-interface .grid3,
      body.cch-page-cch-admin-interface .grid4 {
  display: grid;
  gap: 12px;
}

body.cch-page-cch-admin-interface .grid2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.cch-page-cch-admin-interface .grid3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.cch-page-cch-admin-interface .grid4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.cch-page-cch-admin-interface .toolbar,
      body.cch-page-cch-admin-interface .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

body.cch-page-cch-admin-interface .toolbar {
  margin-top: 14px;
}

body.cch-page-cch-admin-interface .measure-tools-card {
  display: grid;
  gap: 10px;
}

body.cch-page-cch-admin-interface .measure-tool-picker {
  align-items: end;
}

body.cch-page-cch-admin-interface .measure-tool-picker-action button {
  width: 100%;
}

body.cch-page-cch-admin-interface .measure-tool-source-card {
  display: grid;
  gap: 10px;
  padding: 12px;
}

body.cch-page-cch-admin-interface .measure-tool-source-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.cch-page-cch-admin-interface .measure-tool-source-head strong {
  display: block;
  margin-bottom: 2px;
}

body.cch-page-cch-admin-interface .measure-tool-source-head small {
  display: block;
  opacity: 0.78;
}

body.cch-page-cch-admin-interface .measure-tool-picker-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(90px, 120px) minmax(180px, 220px);
  gap: 10px;
  align-items: end;
}

body.cch-page-cch-admin-interface .measure-tool-picker-main,
      body.cch-page-cch-admin-interface .measure-tool-picker-qty,
      body.cch-page-cch-admin-interface .measure-tool-picker-action {
  min-width: 0;
}

body.cch-page-cch-admin-interface .measure-tool-selection-list {
  min-height: 72px;
  resize: vertical;
}

body.cch-page-cch-admin-interface .measure-tool-other textarea {
  min-height: 72px;
}

body.cch-page-cch-admin-interface #roomFloorTypes {
  min-height: 148px;
  padding: 7px 9px;
}

body.cch-page-cch-admin-interface #roomFloorTypes option {
  padding: 6px 8px;
}

body.cch-page-cch-admin-interface .room-work-steps-card {
  display: grid;
  gap: 10px;
  padding: 12px;
}

body.cch-page-cch-admin-interface .room-work-steps-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

body.cch-page-cch-admin-interface .room-work-step-builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

body.cch-page-cch-admin-interface .room-work-step-list {
  display: grid;
  gap: 8px;
}

body.cch-page-cch-admin-interface .room-work-step-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

body.cch-page-cch-admin-interface .room-work-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  font-size: 12px;
  font-weight: 900;
}

body.cch-page-cch-admin-interface .room-work-step-row input {
  min-width: 0;
}

body.cch-page-cch-admin-interface .room-work-step-empty {
  padding: 10px 12px;
}

body.cch-page-cch-admin-interface .room-inventory-card {
  display: grid;
  gap: 10px;
  padding: 12px;
}

body.cch-page-cch-admin-interface .room-inventory-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

body.cch-page-cch-admin-interface .room-inventory-builder {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 120px auto;
  gap: 8px;
  align-items: end;
}

body.cch-page-cch-admin-interface .room-inventory-list {
  display: grid;
  gap: 8px;
}

body.cch-page-cch-admin-interface .room-inventory-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 110px auto;
  gap: 8px;
  align-items: center;
}

body.cch-page-cch-admin-interface .room-inventory-row input {
  min-width: 0;
}

body.cch-page-cch-admin-interface .room-inventory-qty {
  text-align: center;
}

body.cch-page-cch-admin-interface .room-inventory-empty {
  padding: 10px 12px;
}

body.cch-page-cch-admin-interface button,
      body.cch-page-cch-admin-interface .primary,
      body.cch-page-cch-admin-interface .ghost,
      body.cch-page-cch-admin-interface .soft,
      body.cch-page-cch-admin-interface .danger {
  min-height: 38px;
  padding: 8px 12px;
  font-weight: 850;
  cursor: pointer;
}

body.cch-page-cch-admin-interface .inactive-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 900;
  margin-left: 6px;
}

body.cch-page-cch-admin-interface .module-permissions-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

body.cch-page-cch-admin-interface .module-permissions-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
}

body.cch-page-cch-admin-interface .module-permissions-chip strong {
  font-size: 13px;
}

body.cch-page-cch-admin-interface .module-permissions-help {
  min-height: 40px;
  display: flex;
  align-items: center;
}

body.cch-page-cch-admin-interface .module-permissions-select {
  min-width: 190px;
}

body.cch-page-cch-admin-interface .module-permissions-role-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 310px;
}

body.cch-page-cch-admin-interface .module-permissions-role {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}

body.cch-page-cch-admin-interface .module-permissions-role:hover {
  transform: translateY(-1px);
}

body.cch-page-cch-admin-interface .module-permissions-role.is-locked {
  cursor: not-allowed;
  opacity: .72;
}

body.cch-page-cch-admin-interface .module-permissions-role input {
  width: 16px;
  height: 16px;
  margin: 0;
}

body.cch-page-cch-admin-interface .module-permissions-reset {
  min-width: 110px;
}

body.cch-page-cch-admin-interface .module-permissions-lock {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
}

body.cch-page-cch-admin-interface .color-field {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
}

body.cch-page-cch-admin-interface .color-field input[type="color"] {
  width: 58px;
  min-width: 58px;
  height: 42px;
  min-height: 42px;
  padding: 4px;
  cursor: pointer;
}

body.cch-page-cch-admin-interface .color-field input[type="text"] {
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
          "Liberation Mono", monospace;
  font-weight: 850;
  letter-spacing: 0.02em;
}

body.cch-page-cch-admin-interface .color-preview {
  width: 42px;
  height: 42px;
}

body.cch-page-cch-admin-interface .shift-color-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 850;
}

body.cch-page-cch-admin-interface .shift-color-dot {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

@media (max-width: 760px) {
body.cch-page-cch-admin-interface .color-field {
  grid-template-columns: 54px minmax(0, 1fr) 38px;
}

body.cch-page-cch-admin-interface .color-field input[type="color"] {
  width: 54px;
  min-width: 54px;
}

body.cch-page-cch-admin-interface .color-preview {
  width: 38px;
  height: 38px;
}
}

@media (max-width: 1180px) {
body.cch-page-cch-admin-interface .layout {
  grid-template-columns: 1fr;
}

body.cch-page-cch-admin-interface aside.card {
  position: relative;
  top: auto;
}

body.cch-page-cch-admin-interface .tabs {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

body.cch-page-cch-admin-interface .tabbtn {
  text-align: center;
}

body.cch-page-cch-admin-interface .entity {
  grid-template-columns: 1fr;
}
}

body.cch-page-cch-admin-interface .entity {
  grid-template-columns: minmax(0, 1fr) !important;
}

body.cch-page-cch-admin-interface .entity > div:nth-child(2) {
  display: none;
}

body.cch-page-cch-admin-interface .panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

body.cch-page-cch-admin-interface .admin-table-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 10px 2px;
  color: var(--muted, #9fb1c3);
  font-size: 0.86rem;
}

body.cch-page-cch-admin-interface .admin-table-pager button {
  min-height: 38px;
}

@media (max-width: 640px) {
  body.cch-page-cch-admin-interface .admin-table-pager {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }
}

body.cch-page-cch-admin-interface .panel-head h2 {
  margin-bottom: 2px;
}

body.cch-page-cch-admin-interface .new-entry-btn {
  white-space: nowrap;
}

body.cch-page-cch-admin-interface .cch-admin-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

body.cch-page-cch-admin-interface .cch-admin-modal.is-open {
  display: block;
}

body.cch-page-cch-admin-interface .cch-admin-modal__backdrop {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(10px);
}

body.cch-page-cch-admin-interface .cch-admin-modal__dialog {
  position: relative;
  width: min(1080px, calc(100vw - 18px));
  max-height: calc(100vh - 18px);
  overflow: auto;
  margin: 9px auto;
  padding: 18px 20px 22px;
  box-sizing: border-box;
}

body.cch-page-cch-admin-interface .cch-admin-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 2;
  padding-top: 2px;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

body.cch-page-cch-admin-interface .cch-admin-modal__body > div {
  display: block !important;
}

body.cch-page-cch-admin-interface .cch-admin-modal__body h2 {
  display: none;
}

body.cch-page-cch-admin-interface .cch-admin-modal__body .toolbar {
  position: sticky;
  bottom: 0;
  padding-top: 12px;
}

body.cch-page-cch-admin-interface.modal-open {
  overflow: hidden;
}

@media (max-width: 760px) {
body.cch-page-cch-admin-interface .panel-head {
  display: grid;
  grid-template-columns: 1fr;
}

body.cch-page-cch-admin-interface .new-entry-btn {
  width: 100%;
}

body.cch-page-cch-admin-interface .cch-admin-modal__dialog {
  width: calc(100vw - 18px);
  max-height: calc(100vh - 18px);
  margin: 9px auto;
  padding: 14px;
}

body.cch-page-cch-admin-interface .cch-admin-modal__header {
  display: grid;
  grid-template-columns: 1fr;
}

body.cch-page-cch-admin-interface .cch-admin-modal__close {
  width: 100%;
}
}

@media (max-width: 760px) {
body.cch-page-cch-admin-interface .grid2,
        body.cch-page-cch-admin-interface .grid3,
        body.cch-page-cch-admin-interface .grid4 {
  grid-template-columns: 1fr;
}

body.cch-page-cch-admin-interface .tableWrap {
  max-height: none;
}

body.cch-page-cch-admin-interface table {
  min-width: 620px;
}

body.cch-page-cch-admin-interface .toolbar,
        body.cch-page-cch-admin-interface .actions {
  display: grid;
  grid-template-columns: 1fr;
}

body.cch-page-cch-admin-interface .measure-tool-picker,
        body.cch-page-cch-admin-interface .measure-tool-picker-row {
  grid-template-columns: 1fr;
}

body.cch-page-cch-admin-interface .room-inventory-builder,
        body.cch-page-cch-admin-interface .room-inventory-row,
        body.cch-page-cch-admin-interface .toolbar button,
        body.cch-page-cch-admin-interface .actions button {
  width: 100%;
}

body.cch-page-cch-admin-interface .room-work-step-builder,
        body.cch-page-cch-admin-interface .room-work-step-row {
  grid-template-columns: 1fr;
}

body.cch-page-cch-admin-interface .room-inventory-builder,
        body.cch-page-cch-admin-interface .room-inventory-row {
  grid-template-columns: 1fr;
}
}

body.cch-page-cch-admin-interface.cch-theme-tech {
  min-height: 100vh;
}

body.cch-page-cch-admin-interface .admin-usage-toggle {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 74px;
  margin: 12px 0 12px;
  padding: 12px;
  cursor: pointer;
}

body.cch-page-cch-admin-interface
  .admin-usage-toggle
  input[type="checkbox"] {
  width: 18px !important;
  height: 18px;
  margin: 2px 0 0;
}

body.cch-page-cch-admin-interface .admin-usage-toggle span {
  display: grid;
  gap: 4px;
}

body.cch-page-cch-admin-interface .admin-usage-toggle strong {
  font-size: 13px;
}

body.cch-page-cch-admin-interface .admin-usage-toggle small {
  font-size: 11px;
  line-height: 1.4;
}

body.cch-page-cch-admin-interface .shift-rule-card {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 10px;
}

body.cch-page-cch-admin-interface .shift-rule-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body.cch-page-cch-admin-interface .shift-rule-toggle {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 30px;
  margin: 0;
  padding: 5px 9px;
  font-size: 12px;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
}

body.cch-page-cch-admin-interface .shift-rule-toggle input[type="checkbox"] {
  width: 16px !important;
  min-width: 16px;
  height: 16px !important;
  min-height: 16px !important;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}

body.cch-page-cch-admin-interface .shift-rule-toggle span {
  display: inline;
  min-width: 0;
}

body.cch-page-cch-admin-interface .shift-rule-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

body.cch-page-cch-admin-interface .shift-rule-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 720px) {
body.cch-page-cch-admin-interface .room-inventory-builder,
  body.cch-page-cch-admin-interface .room-inventory-row,
  body.cch-page-cch-admin-interface .room-work-step-builder,
  body.cch-page-cch-admin-interface .room-work-step-row {
  grid-template-columns: 1fr;
}

body.cch-page-cch-admin-interface .room-inventory-row .room-work-step-index,
  body.cch-page-cch-admin-interface .room-work-step-index {
  display: none;
}

body.cch-page-cch-admin-interface .shift-rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.cch-page-cch-admin-interface .shift-rule-toggle {
  justify-content: flex-start;
  white-space: normal;
}
}

body.cch-page-cch-admin-interface .admin-category-release {
  display: grid;
  grid-template-columns: minmax(170px, 240px) minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
}

body.cch-page-cch-admin-interface .admin-legacy-inspection-toggle {
  display: none !important;
}

body.cch-page-cch-admin-interface .admin-inspection-picker {
  display: grid;
  gap: 7px;
  margin: 12px 0;
  padding: 12px;
}

body.cch-page-cch-admin-interface .admin-inspection-picker select[multiple] {
  min-height: 150px;
}

body.cch-page-cch-admin-interface .admin-inspection-picker small {
  line-height: 1.4;
}

body.cch-page-cch-admin-interface .admin-category-release .field-note {
  margin: 0;
  max-width: 720px;
}

body.cch-page-cch-admin-interface .admin-category-release button {
  flex: 0 0 auto;
}

body.cch-page-cch-admin-interface .admin-category-release button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

body.cch-page-cch-admin-interface #meaSubCustomWrap,
body.cch-page-cch-admin-interface #meaObjectCustomWrap,
body.cch-page-cch-admin-interface #actObjectCustomWrap {
  margin-top: 10px;
}

@media (max-width: 760px) {
body.cch-page-cch-admin-interface .admin-category-release {
  align-items: stretch;
  flex-direction: column;
  grid-template-columns: 1fr;
}
}

body.cch-page-cch-admin-interface .admin-status-block {
  margin-top: 14px;
}

body.cch-page-cch-admin-interface .admin-reload-toolbar {
  margin-top: 12px;
}

body.cch-page-cch-admin-interface .cch-label-with-help {
  display: flex;
  align-items: center;
  gap: 7px;
}

body.cch-page-cch-admin-interface .cch-help-dot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  cursor: help;
  flex: 0 0 auto;
}

body.cch-page-cch-admin-interface .cch-help-dot::after {
  content: attr(data-tooltip-text);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  width: min(320px, calc(100vw - 42px));
  min-width: 220px;
  padding: 11px 12px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  z-index: 2147483000;
  transition: opacity .15s ease, transform .15s ease;
}

body.cch-page-cch-admin-interface .cch-help-dot::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  z-index: 2147483001;
  transition: opacity .15s ease;
}

body.cch-page-cch-admin-interface .cch-help-dot:hover::after,
body.cch-page-cch-admin-interface .cch-help-dot:hover::before,
body.cch-page-cch-admin-interface .cch-help-dot:focus-visible::after,
body.cch-page-cch-admin-interface .cch-help-dot:focus-visible::before,
body.cch-page-cch-admin-interface .cch-help-dot.is-open::after,
body.cch-page-cch-admin-interface .cch-help-dot.is-open::before {
  opacity: 1;
}

body.cch-page-cch-admin-interface .cch-help-dot:hover::after,
body.cch-page-cch-admin-interface .cch-help-dot:focus-visible::after,
body.cch-page-cch-admin-interface .cch-help-dot.is-open::after {
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 760px) {
body.cch-page-cch-admin-interface .cch-help-dot::after {
  left: auto;
  right: -10px;
  transform: translateY(4px);
  min-width: min(280px, calc(100vw - 34px));
}

body.cch-page-cch-admin-interface .cch-help-dot:hover::after,
  body.cch-page-cch-admin-interface .cch-help-dot:focus-visible::after,
  body.cch-page-cch-admin-interface .cch-help-dot.is-open::after {
  transform: translateY(0);
}
}

.admin-employee-filters {
  display: grid;
  grid-template-columns: minmax(220px,1fr) minmax(260px,1.35fr) auto;
  gap: 14px;
  align-items: start;
  margin: 14px 0 18px;
}

.admin-employee-filters select[multiple] {
  min-height: 112px;
  padding: 8px;
}

.admin-employee-filter-actions {
  display: flex;
  align-items: flex-start;
  padding-top: 25px;
}

@media (max-width:900px) {
.admin-employee-filters {
  grid-template-columns: 1fr;
}

.admin-employee-filter-actions {
  padding-top: 0;
}
}

body.cch-page-cch-admin-interface [data-tab="rooms"] .entity > div {
  padding: 20px;
}

body.cch-page-cch-admin-interface [data-tab="rooms"] #roomAreaCustom {
  margin-top: 8px;
}

body.cch-page-cch-admin-interface [data-tab="rooms"] .toolbar {
  position: sticky;
  bottom: 0;
  z-index: 4;
  padding: 12px;
  margin: 12px -8px -8px;
  backdrop-filter: blur(12px);
}

.admin-mail-optout {
  margin: 12px 0 16px;
}

.admin-switch {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
}

.admin-switch input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 2px 0 0;
}

.admin-switch span {
  display: grid;
  gap: 3px;
}

.admin-switch small {
  font-weight: 600;
  line-height: 1.4;
}


/* === CCH Admin V3.2: horizontal tabs, blue accent, robust editor modal === */
body.cch-page-cch-admin-interface {
  --admin-v3-accent: var(--cch-v3-accent, #25bdf3);
  --admin-v3-accent-soft: var(--cch-v3-accent-soft, rgba(37,189,243,.11));
  --admin-v3-line: var(--cch-v3-line, #18344a);
  --admin-v3-surface: var(--cch-v3-surface, #0d2133);
}
body.cch-page-cch-admin-interface .wrap {
  width: min(90%, 1680px);
  max-width: 1680px;
  margin-inline: auto;
}
body.cch-page-cch-admin-interface .module-header {
  border-left: 3px solid var(--admin-v3-accent);
  background: color-mix(in srgb, var(--admin-v3-accent) 5%, var(--admin-v3-surface));
}
body.cch-page-cch-admin-interface .module-header-kicker,
body.cch-page-cch-admin-interface .module-header h1 { color: var(--admin-v3-accent); }
body.cch-page-cch-admin-interface .layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
body.cch-page-cch-admin-interface .admin-tabbar {
  position: sticky;
  top: 8px;
  z-index: 80;
  padding: 8px;
  overflow: hidden;
  backdrop-filter: blur(18px);
}
body.cch-page-cch-admin-interface .tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 1px;
}
body.cch-page-cch-admin-interface .tabbtn {
  flex: 0 0 auto;
  width: auto;
  min-height: 40px;
  padding: 8px 13px;
  text-align: center;
  border: 1px solid var(--admin-v3-line);
  border-radius: 10px;
  background: transparent;
  color: var(--cch-v3-text-soft, #c2d2df);
  transform: none;
  white-space: nowrap;
}
body.cch-page-cch-admin-interface .tabbtn:hover {
  transform: none;
  border-color: color-mix(in srgb, var(--admin-v3-accent) 42%, var(--admin-v3-line));
  background: color-mix(in srgb, var(--admin-v3-accent) 6%, transparent);
}
body.cch-page-cch-admin-interface .tabbtn.active,
body.cch-page-cch-admin-interface .tabbtn[aria-selected="true"] {
  color: var(--admin-v3-accent);
  border-color: color-mix(in srgb, var(--admin-v3-accent) 58%, var(--admin-v3-line));
  background: var(--admin-v3-accent-soft);
  box-shadow: inset 0 -2px 0 var(--admin-v3-accent);
}
body.cch-page-cch-admin-interface .tabbtn:focus-visible {
  outline: 2px solid var(--admin-v3-accent);
  outline-offset: 2px;
}
body.cch-page-cch-admin-interface .admin-scope-note {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--admin-v3-accent) 30%, var(--admin-v3-line));
  border-left: 3px solid var(--admin-v3-accent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--admin-v3-accent) 7%, transparent);
  color: var(--cch-v3-text-soft, #c2d2df);
  font-size: 12px;
}
body.cch-page-cch-admin-interface .admin-scope-note strong { color: var(--admin-v3-accent); }
body.cch-page-cch-admin-interface .panel[data-tab].active { animation: admin-v3-panel-in .16s ease-out; }
@keyframes admin-v3-panel-in { from { opacity: .65; transform: translateY(3px); } to { opacity: 1; transform: none; } }
body.cch-page-cch-admin-interface .panel-head h2 { color: var(--admin-v3-accent); }
body.cch-page-cch-admin-interface input:focus,
body.cch-page-cch-admin-interface select:focus,
body.cch-page-cch-admin-interface textarea:focus {
  border-color: var(--admin-v3-accent) !important;
  outline: 2px solid color-mix(in srgb, var(--admin-v3-accent) 18%, transparent);
  outline-offset: 1px;
}
body.cch-page-cch-admin-interface .cch-admin-modal[hidden],
body.cch-page-cch-admin-interface .cch-admin-modal[aria-hidden="true"] { display: none !important; }
body.cch-page-cch-admin-interface .cch-admin-modal.is-open,
body.cch-page-cch-admin-interface .cch-admin-modal[aria-hidden="false"] {
  display: grid !important;
  place-items: center;
  z-index: 2147483000;
}
body.cch-page-cch-admin-interface .cch-admin-modal__backdrop {
  background: rgba(2,10,18,.74);
  backdrop-filter: blur(10px);
}
body.cch-page-cch-admin-interface .cch-admin-modal__dialog {
  z-index: 1;
  width: min(1080px, calc(100vw - 32px));
  max-height: min(92vh, 980px);
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--admin-v3-accent) 30%, var(--admin-v3-line));
  border-radius: 16px;
  background: var(--admin-v3-surface);
  box-shadow: 0 30px 90px rgba(0,0,0,.52), 0 0 0 1px rgba(255,255,255,.025);
}
body.cch-page-cch-admin-interface .cch-admin-modal__header {
  background: color-mix(in srgb, var(--admin-v3-accent) 5%, var(--admin-v3-surface));
  border-bottom: 1px solid var(--admin-v3-line);
}
body.cch-page-cch-admin-interface .cch-admin-modal__header .small,
body.cch-page-cch-admin-interface #adminEditorTitle { color: var(--admin-v3-accent); }
@media (max-width: 900px) {
  body.cch-page-cch-admin-interface .wrap { width: calc(100% - 20px); }
  body.cch-page-cch-admin-interface .admin-tabbar { top: 4px; }
}

/* === V3.3 Material je Objekt === */
body.cch-page-cch-admin-interface .admin-material-object-shell {
  display: grid;
  gap: 14px;
}
body.cch-page-cch-admin-interface .admin-material-object-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(280px, 1.4fr) auto;
  gap: 12px;
  align-items: end;
}
body.cch-page-cch-admin-interface .admin-material-object-bulk {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
}
body.cch-page-cch-admin-interface .admin-material-object-summary {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid color-mix(in srgb, var(--admin-v3-accent) 26%, var(--admin-v3-line));
  border-left: 3px solid var(--admin-v3-accent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--admin-v3-accent) 6%, transparent);
  color: var(--cch-v3-text-soft, #c2d2df);
}
body.cch-page-cch-admin-interface .admin-material-object-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
body.cch-page-cch-admin-interface .admin-material-object-row {
  position: relative;
  display: grid !important;
  grid-template-columns: auto 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid var(--admin-v3-line);
  border-radius: 12px;
  background: rgba(8, 27, 41, .72);
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
body.cch-page-cch-admin-interface .admin-material-object-row:hover {
  border-color: color-mix(in srgb, var(--admin-v3-accent) 45%, var(--admin-v3-line));
  background: color-mix(in srgb, var(--admin-v3-accent) 5%, rgba(8, 27, 41, .72));
  transform: translateY(-1px);
}
body.cch-page-cch-admin-interface .admin-material-object-row > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
body.cch-page-cch-admin-interface .admin-material-object-check {
  width: 22px;
  height: 22px;
  border: 1px solid color-mix(in srgb, var(--admin-v3-accent) 32%, var(--admin-v3-line));
  border-radius: 7px;
  background: rgba(1, 12, 20, .5);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.015);
}
body.cch-page-cch-admin-interface .admin-material-object-row > input:checked + .admin-material-object-check {
  border-color: var(--admin-v3-accent);
  background: var(--admin-v3-accent);
  box-shadow: inset 0 0 0 5px #0d2133;
}
body.cch-page-cch-admin-interface .admin-material-object-row > input:focus-visible + .admin-material-object-check {
  outline: 2px solid var(--admin-v3-accent);
  outline-offset: 2px;
}
body.cch-page-cch-admin-interface .admin-material-object-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
body.cch-page-cch-admin-interface .admin-material-object-copy strong {
  color: var(--cch-v3-text, #eef7fb);
  overflow-wrap: anywhere;
}
body.cch-page-cch-admin-interface .admin-material-object-copy small {
  color: var(--cch-v3-text-soft, #9fb4c3);
  overflow-wrap: anywhere;
}
body.cch-page-cch-admin-interface .admin-material-object-empty {
  grid-column: 1 / -1;
  padding: 22px;
  text-align: center;
  border: 1px dashed var(--admin-v3-line);
  border-radius: 12px;
  color: var(--cch-v3-text-soft, #9fb4c3);
}
@media (max-width: 900px) {
  body.cch-page-cch-admin-interface .admin-material-object-toolbar,
  body.cch-page-cch-admin-interface .admin-material-object-list {
    grid-template-columns: 1fr;
  }
}

/* CCH V3 modal runtime hardening · 2026-09-23
   Module-local guard against global modal/visibility overrides. */
body.cch-page-cch-admin-interface #adminEditorModal[hidden],
body.cch-page-cch-admin-interface #adminEditorModal[aria-hidden="true"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.cch-page-cch-admin-interface #adminEditorModal.is-open:not([hidden])[aria-hidden="false"] {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  display: grid !important;
  place-items: center !important;
  isolation: isolate;
  overflow: auto !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.cch-page-cch-admin-interface #adminEditorModal.is-open .cch-admin-modal__backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body.cch-page-cch-admin-interface #adminEditorModal.is-open .cch-admin-modal__dialog {
  position: relative !important;
  grid-area: 1 / 1 !important;
  align-self: center !important;
  justify-self: center !important;
  max-height: calc(100dvh - 32px) !important;
  overflow: auto !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 1 !important;
}

/* Auth-Guard und V3-Container dürfen den fixed Editor nicht in einen eigenen
   Stacking-Context einschließen. Das ist der CSS-Auslöser des unsichtbaren,
   nur als verschwommener Hintergrund wahrnehmbaren Editors. */
body.cch-page-cch-admin-interface.modal-open [data-cch-guard-root],
body.cch-page-cch-admin-interface:has(#adminEditorModal.is-open) [data-cch-guard-root] {
  transform: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  contain: none !important;
  perspective: none !important;
  overflow: visible !important;
}
.admin-dimension-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(76, 160, 202, .28);
  border-radius: 12px;
  background: rgba(5, 25, 38, .58);
}

.admin-dimension-switch .ghost {
  min-height: 34px;
  padding: 6px 10px;
}

.admin-dimension-switch .ghost.active {
  color: #03121d;
  border-color: #31c5ef;
  background: #31c5ef;
}
