/*共通デザイン変数*/
:root{
  --g-1000:#27523b;/*main*/
  --g-900:#183629;
  --g-800:#1f4634;
  --g-700:#2f6a4b;   
  --g-500:#4e9a6a;   /* accent */
  --g-200:#dff2e7;   /* pale */
  --g-100:#eef8f2;

  --ink-900:#1a1a1a;
  --ink-600:#5a5a5a;
  --line:#d8d8d8;
  --bg:#f3f6f4;
  --white:#ffffff;


  --shadow-1: 0 10px 22px rgba(0,0,0,.12);
  --shadow-2: 0 16px 44px rgba(0,0,0,.14);

  --r-12:12px;
  --r-10:10px;
  --r-8:8px;
  --r-4:4px;
  

  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

html,
body{
  margin:0;
  padding:0;
}

body{
  min-width:1280px;
  background:var(--bg);
  color:var(--ink-900);
  font-family:var(--sans);
  font-size:14px;
  line-height:1.4;
}

*,
*::before,
*::after{
  box-sizing:border-box;
}

button,
select,
input{
  font:inherit;
}

button{
  cursor:pointer;
}

table{
  border-collapse:collapse;
  border-spacing:0;
}

/* =========================================================
  ヘッダー
========================================================= */
.screen-header{
  background:var(--white);
  border:1px solid var(--line);
}

.screen-header__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:56px;
  padding:0 18px;
  border-bottom: 2px solid var(--g-700);
}

.screen-header__titleWrap{
  display:flex;
  align-items:center;
  gap:12px;
}

.screen-header__title{
  margin:0;
  font-size:18px;
  font-weight:700;
  color:var(--ink-900);
}

.screen-header__close{
  border:none;
  background:transparent;
  color:#b9b9b9;
  font-size:28px;
  line-height:1;
  padding:0;
  cursor:default;
}

/* =========================================================
  ツールバー
========================================================= */
.toolbar{
  padding:8px 16px;
  background:#f4f4f4;
  border-top:1px solid #ececec;
}

.toolbar__row{
  display:grid;
  grid-template-columns:220px 1fr 160px;
  align-items:start;
  column-gap:18px;
}

.toolbar__row + .toolbar__row{
  margin-top:8px;
}

.toolbar__date{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:44px;
}

.toolbar__unit{
  font-size:14px;
  font-weight:600;
  color:var(--ink-900);
}

.toolbar__actions{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}

.toolbar__actions--main{
  justify-content:flex-start;
}

.toolbar__actions--sub{
  justify-content:flex-start;
}

.toolbar__closeArea{
  display:flex;
  justify-content:flex-end;
}

.toolbar__date--dummy,
.toolbar__closeArea--dummy{
  visibility:hidden;
}

/* =========================================================
  メイン
========================================================= */
/* .screen-main{
  padding:10px 12px 0;
} */

/* =========================================================
  UIパーツ
========================================================= */
.ui-select{
  height:40px;
  min-width:72px;
  padding:0 24px 0 12px;
  border:1px solid #c9c9c9;
  border-radius:var(--r-4);
  background-color:var(--white);
  color:var(--ink-900);
  font-size:14px;
}

.ui-select--month{
  min-width:56px;
}

/*各ボタン*/
.ui-btn{
  min-width:160px;
  height:40px;
  padding:0 14px;
  letter-spacing: 0.2em;
  border:1px solid var(--line);
  border-radius:var(--r-4);
  background:var(--white);
  color:var(--ink-900);
  font-weight:600;
  transition: all .18s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
}
.ui-btn:hover{
  transform: translateY(-2px);
  border-color: var(--g-700);
  background: var(--g-200);
  color: var(--g-700);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

/*閉じるボタン*/
.ui-btn--close{
min-width:140px;
  background: var(--g-700);
  color: var(--white);
  border: none;
  border-radius: var(--r-4);
  box-shadow: 0 4px 10px rgba(0,0,0,.18);
  transition: all .18s ease;
}

.ui-btn--close:hover{
 transform:translateY(-2px);
 background: #fff;
 color:var(--g-700);
 border:solid 1px var(--g-700);
 box-shadow: 0 10px 22px  rgba(0,0,0,.22);
 transition: all .18s ease;
}
/*ダイアログボタン*/
.screen-main--dialog .ui-btn{
  height: 48px;
}

/* =========================================================
テーブル
========================================================= */

/* テーブル */
.table{
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  table-layout:fixed;/*⇀このページ専用*/
}

.table th{
  background: var(--g-700);
  color: var(--white);
  font-size: 13px;
  padding: 8px;
  border: 1px solid var(--line);
}

.table td{
  padding: 8px;
  font-size: 13px;
  border: 1px solid var(--line);
  height: 30px;
}

/* ストライプ表示（行の判別性を高めるための背景切替） */
.table--stripe tbody tr:nth-child(even){
  background: #f7f7f7;
}

/*行ホバー */
.table tbody tr:hover td {
  background: var(--g-100);
  transition: background .15s ease;
}


/*レコードセレクタ*/
.col-selector{
  width: 26px;
}

.th-selector,
.td-selector{
  width: 26px;
  background: #f3f3f3;
  border-right: 1px solid var(--line);
}

/* 差額色 */
.is-minus{
  background: #fcdee3;
}

.is-plus{
  color: var(--g-700);
  font-weight: 600;
}
/*テキスト位置*/
.ta-right {
    text-align: right;
}
.ta-center {
    text-align: center;
}

/* =========================================================
  画面全体
========================================================= */
.screen{
  width:100%;
  margin:0;
  background:var(--bg);
}

/* =========================================================
フッター（下部ステータスバー部分）
========================================================= */

.statusbar {
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 8px 10px;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 10px;
}

.statusbar__left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.statusbar__label {
    font-size: 12px;
    color: var(--muted);
}

.statusbar__page {
    font-size: 12px;
    color: var(--text);
    padding: 0 6px;
}

.statusbar__center {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}

.statusbar__right {
    display: flex;
    justify-content: flex-end;
}
.iconBtn {
    height: 28px;
    min-width: 34px;
    padding: 0 8px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
}

.iconBtn:hover {
   border-color: var(--g-500);
  background: var(--g-100);
  color: var(--g-700);
    /* background: rgba(201, 175, 99, .10);
    border-color: var(--g-500); */
}
