/*
 * 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;
  /* マウスでなぞって文字を選べないようにする（ドラッグや連打で画面の文字が青く選ばれてしまわないように） */
  -webkit-user-select: none;
  user-select: none;
}

/* 入力欄は、いままでどおり文字を選んで直せる */
input,
textarea,
select,
[contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}

/* 共通のコンテンツコンテナ */
.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;
}

/* 警告アイコン。ボタンの「!」は読み上げ用に残し、見た目は warning.svg にする */
.slot-rule-help--warning {
  width: 18px;
  height: 16px;
  border: 0;
  border-radius: 0;
  color: transparent;
  background: url("/assets/warning-e9d8fd05.svg") center / contain no-repeat;
  box-shadow: none;
  font-size: 0;
}

.slot-rule-help--warning:hover,
.slot-rule-help--warning:focus {
  color: transparent;
  background: url("/assets/warning-e9d8fd05.svg") center / contain no-repeat;
  filter: brightness(0.92) drop-shadow(0 0 3px rgba(234, 88, 12, 0.45));
}

.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;
  }
}

/* 月の残業時間合計の色分け（20時間〜黄色、30時間〜赤）。勤務実績・勤務記録・本人の出勤一覧で共通 */
.overtime-alert--caution { background-color: #fff3c4; color: #7a4b00; }
.overtime-alert--danger { background-color: #fde2df; color: #b42318; }
.overtime-alert { font-weight: 700; }
