html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/*
 * Receipts Edit Page Layout
 */
@media (min-width: 992px) { /* lg breakpoint */
    .preview-pane {
        position: sticky;
        top: 20px; /* Adjust based on header height */
        height: calc(100vh - 40px); /* Adjust to fit viewport */
        overflow-y: auto;
    }

    .preview-pane img,
    .preview-pane iframe {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: top;
    }

    .preview-pane iframe {
        min-height: calc(100vh - 40px); /* Ensure iframe also respects the height */
    }
}

/* Credit Card Transaction Detail selection modal */
.linked-to-another {
    background-color: #f0f0f0; /* 薄いグレーの背景 */
    color: #888; /* 文字色を少し暗く */
    text-decoration: line-through; /* 打消し線 */
    cursor: not-allowed;
}

.linked-to-another input[type="radio"] {
    cursor: not-allowed;
}

.clickable-row:hover,
.clickable-cell:hover {
    background-color: #f8ffbb; /* 薄いグレー */
    cursor: pointer;
}

.col-actions {
    width: 150px; /* 固定幅を設定 */
    text-align: right; /* ボタンを右寄せ */
    white-space: nowrap; /* ボタンが改行されないようにする */
}

/*
 * Select2 Width Adjustment
 */
.select2-container {
    width: 100% !important;
}

.col-expense-category {
    width: 170px !important;
}

.col-opposing-subaccount {
    width: 130px !important;
}

/* Custom width for Item Summary and Note columns */
.col-item-summary,
.col-note {
    width: 200px;
}
