/* =====================================
   全体レイアウトと共通スタイル
   ===================================== */
body {
  background-color: #f9f9f9;
  font-family: "Hiragino Sans", "Meiryo", sans-serif;
}

h3 {
  margin-top: 20px;
  color: #333;
}

.table {
  background: white;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* =====================================
   パンくずリスト
   ===================================== */
.breadcrumb {
  background: none;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.breadcrumb a {
  text-decoration: none;
  color: #0d6efd;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

/

/* =====================================
   印刷（PDF化）用設定
   ===================================== */
@media print {

  /* --- 非表示対象 --- */
  nav.navbar,
  .offcanvas,
  .breadcrumb,
  header,
  footer,
  .no-print,
  .navbar,
  #mainMenu {
    display: none !important;
  }

  /* --- 印刷対象を明示 --- */
  body * {
    visibility: hidden;
  }

  /* report-container のみ印刷対象 */
  .report-container, .report-container * {
    visibility: visible;
  }

  .report-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 210mm;
    min-height: 297mm;
    margin: 0;
    padding: 10mm 12mm;
    border: none;
    box-shadow: none;
  }

  /* A4固定・余白 */
  @page {
    size: A4 portrait;
    margin: 10mm;
  }

  /* 色再現 */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* 背景白固定 */
  body {
    background: #fff !important;
  }
}

<style>
  .navbar-nav .nav-item {
    margin-right: 1.8em; /* 約全角2スペース */
  }
  .navbar-nav .nav-item:last-child {
    margin-right: 0;
  }
</style>


/* ============================
   フォームプレースホルダ（例文）をより淡く
   ============================ */

/* 全フォーム共通 */
::placeholder {
  color: rgba(0, 0, 0, 0.2) !important;  /* 非常に薄いグレー */
}

/* 各ブラウザ対応 */
::-webkit-input-placeholder {
  color: rgba(0, 0, 0, 0.2) !important;
}
:-ms-input-placeholder {
  color: rgba(0, 0, 0, 0.2) !important;
}
::-ms-input-placeholder {
  color: rgba(0, 0, 0, 0.2) !important;
}

/* Firefox対応 */
::-moz-placeholder {
  color: rgba(0, 0, 0, 0.2) !important;
  opacity: 1 !important;
}

/* ============================= */
/* WorkItem カード UI 専用 CSS   */
/* ============================= */

.wi-card {
  transition: all .2s ease;
  border-radius: 10px;
  background: #fff;
  padding: 0;
}
.wi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 12px rgba(0,0,0,0.18);
}

.wi-header {
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
  font-weight: 600;
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.wi-section {
  padding: 10px 14px;
  font-size: .85rem;
}

.wi-block {
  margin-bottom: 8px;
}

.wi-cost-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.wi-cost-col {
  flex: 1;
  padding: 6px;
  background: #fafafa;
  border-radius: 6px;
  text-align: center;
  font-size: .82rem;
  color: #666;
}

.wi-cost-col.active {
  background: #e7f1ff;
  color: #0d6efd;
  font-weight: 700;
}

.wi-cost-col.total {
  background: #fff3f8;
  color: #d63384;
  font-weight: 700;
}

.wi-profit {
  font-weight: 800;
  font-size: 1.05rem;
  text-align: center;
}
.wi-profit.positive {
  color: #0d6efd;
}
.wi-profit.negative {
  color: #dc3545;
}
