/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* グローバルリセット - スクロールバーを完全に制御 */
* {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #f8f9fa;
}

/* 共通のコンテンツコンテナ */
.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* スタッフ・職務編集で共通利用する内部ラッパー */
.staff-page__content {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.slot-rule-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 6px;
  border: 1px solid #8ea1b8;
  border-radius: 50%;
  color: #475569;
  background-color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  vertical-align: text-top;
  cursor: help;
  flex: 0 0 auto;
  padding: 0;
  font-family: inherit;
}

.slot-rule-help:hover,
.slot-rule-help:focus {
  color: #1d4ed8;
  border-color: #3b82f6;
  background-color: #eff6ff;
  outline: none;
}

.slot-rule-help--warning {
  width: 18px;
  height: 16px;
  border: 0;
  border-radius: 0;
  color: #78350f;
  background-color: #f59e0b;
  box-shadow: none;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  font-size: 10px;
  padding-top: 5px;
}

.slot-rule-help--warning:hover,
.slot-rule-help--warning:focus {
  color: #431407;
  background-color: #f97316;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.22);
}

.slot-rule-popover {
  position: fixed;
  z-index: 5000;
  max-width: min(420px, calc(100vw - 24px));
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  color: #1f2937;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  white-space: pre-line;
}

@media (min-width: 992px) {
  .staff-page__content {
    min-width: 600px;
  }
}
