/* --- 申請承認画面 (admin_application_approval.html) --- */

.approval-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: flex-start;
}

.application-details-card,
.approval-action-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.application-details-card .card-header,
.approval-action-card .card-header {
    border-bottom: 1px solid #eef2f6;
    padding: 20px 25px;
}

.application-details-card .card-body,
.approval-action-card .card-body {
    padding: 25px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.detail-item {
    font-size: 0.95rem;
}

.detail-item label {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-color);
    margin-bottom: 5px;
    font-weight: 500;
}

.detail-item p {
    margin: 0;
    font-weight: 500;
    color: var(--dark-color);
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-divider {
    border: none;
    border-top: 1px solid #eef2f6;
    margin: 25px 0;
}

.attachment-list {
    margin-top: 5px;
}

.attachment-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #f4f7fa;
    border-radius: 6px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: background-color 0.2s;
}

.attachment-item:hover {
    background-color: #e6f0ff;
}

.attachment-item i {
    color: #e53e3e; /* PDF icon color */
}

/* 承認アクションカード */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Noto Sans JP', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .approval-layout {
        grid-template-columns: 1fr;
    }
}

/* --- 申請詳細閲覧画面 (application-detail.html) --- */

.detail-view-layout {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 30px;
    align-items: flex-start;
}

.application-summary-card,
.history-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.application-summary-card .card-header,
.history-card .card-header {
     border-bottom: 1px solid #eef2f6;
    padding: 20px 25px;
}

.application-summary-card .card-body,
.history-card .card-body {
    padding: 25px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
}
.status-indicator.status-approved {
    background-color: #e6f7f2;
    color: #0d8a66;
}
/* 他のステータス用のクラスも追加可能 */
/* .status-indicator.status-pending { background-color: #fffbe6; color: #d46b08; } */
/* .status-indicator.status-rejected { background-color: #fff1f0; color: #cf1322; } */


.summary-item {
    margin-bottom: 20px;
}

.summary-item label {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-color);
    margin-bottom: 5px;
    font-weight: 500;
}

.summary-item p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-color);
}

.summary-item.full-width {
    grid-column: 1 / -1;
}

.attachment-item .download-icon {
    margin-left: auto;
    font-size: 0.9em;
    opacity: 0.7;
}

/* 履歴カード */
.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    bottom: 15px;
    width: 2px;
    background-color: #eef2f6;
}


.timeline-item {
    display: flex;
    gap: 20px;
    position: relative;
}

.timeline-item:not(:last-child) {
    padding-bottom: 30px;
}

.timeline-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 1;
    flex-shrink: 0;
}

.timeline-icon.icon-approved { background-color: #10b981; }
.timeline-icon.icon-submitted { background-color: #3b82f6; }
.timeline-icon.icon-draft { background-color: #a0aec0; }


.timeline-content {
    padding-top: 5px;
}

.timeline-title {
    margin: 0 0 8px 0;
    font-weight: 500;
}

.status-text-approved {
    color: #0d8a66;
    font-weight: 700;
}

.timeline-comment {
    background-color: #f4f7fa;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 0.9rem;
    margin: 0 0 8px 0;
    position: relative;
    border: 1px solid #eef2f6;
}
.timeline-comment::before {
    content: '';
    position: absolute;
    top: 12px;
    left: -8px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #f4f7fa;
}


.timeline-date {
    font-size: 0.8rem;
    color: var(--gray-color);
}


/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .detail-view-layout {
        grid-template-columns: 1fr;
    }
}

/* --- 個別周知履歴閲覧画面 (notification-history.html) --- */

.notification-list-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.notification-list-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eef2f6;
    padding: 20px 25px;
}

.form-control-sm {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #fff;
}

.card-body.no-padding {
    padding: 0;
}

.notification-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.notification-item a {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #eef2f6;
    transition: background-color 0.2s;
}

.notification-item:last-child a {
    border-bottom: none;
}

.notification-item a:hover {
    background-color: #f8fafc;
}

.notification-item.unread {
    font-weight: 700;
}

.notification-item.unread a {
    border-left: 4px solid var(--primary-color);
    padding-left: 21px; /* 25px - 4px */
}

.notification-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.notification-icon.icon-legal { background-color: #8b5cf6; } /* Purple */
.notification-icon.icon-procedure { background-color: #3b82f6; } /* Blue */
.notification-icon.icon-info { background-color: #10b981; } /* Green */


.notification-content {
    flex-grow: 1;
}

.notification-title {
    margin: 0 0 4px 0;
    font-size: 1.05rem;
    color: var(--dark-color);
}

.notification-item.read .notification-title {
    font-weight: 500;
}

.notification-excerpt {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-color);
    font-weight: 400;
}

.notification-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--gray-color);
    font-size: 0.9rem;
    flex-shrink: 0;
    min-width: 120px;
    text-align: right;
}

/* --- 通知詳細画面 (notification-detail.html) --- */

.main-header .header-actions {
    margin-left: auto;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.notification-detail-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden; /* for footer */
}

.notification-detail-card .card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #f8fafc;
    border-bottom: 1px solid #eef2f6;
    padding: 25px;
}

.notification-title-large {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    color: var(--dark-color);
}

.notification-meta-detail {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin: 0;
}

.notification-body-content {
    line-height: 1.8;
    font-size: 1rem;
    color: #333;
}

.notification-body-content h3 {
    font-size: 1.2rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    margin: 30px 0 15px 0;
}

.notification-body-content ul {
    list-style: none;
    padding-left: 20px;
}

.notification-body-content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.notification-body-content ul li::before {
    content: '\f058'; /* FontAwesome check-circle icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 4px;
}
.notification-body-content .attachment-list {
    margin-top: 25px;
}
.attachment-item i.fa-file-powerpoint {
    color: #d35400; /* PowerPoint icon color */
}

.notification-detail-card .card-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px 25px;
    background-color: #f8fafc;
    border-top: 1px solid #eef2f6;
}

.btn-primary-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-primary-outline:hover {
    background-color: #e6f0ff;
}

/* --- 育休取得状況公表レポート画面 (admin_report_childcare_leave.html) --- */

.report-filters {
    display: flex;
    gap: 30px;
    align-items: flex-end;
    margin-bottom: 25px;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.report-filters .form-group {
    margin-bottom: 0;
}
.report-filters .form-group p {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    padding: 8px 0;
}

.report-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.report-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.report-card.full-width {
    grid-column: 1 / -1;
}

.report-card .card-header {
    border-bottom: 1px solid #eef2f6;
    padding: 20px 25px;
}

.report-card .card-body {
    padding: 25px;
}

.report-main-figure {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    line-height: 1;
}
.report-main-figure .unit {
    font-size: 1.5rem;
    font-weight: 500;
    margin-left: 8px;
}
.report-sub-text {
    margin: 10px 0 0 0;
    font-size: 0.95rem;
    color: var(--gray-color);
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}
.report-table th,
.report-table td {
    padding: 15px;
    border-bottom: 1px solid #eef2f6;
}
.report-table th {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--gray-color);
    background-color: #f8fafc;
}
.report-table td {
    font-size: 1.1rem;
    font-weight: 500;
}
.report-table tbody tr:last-child td {
    border-bottom: none;
}
.report-table tbody tr:last-child {
    background-color: #f8fafc;
}
.report-table td .icon-male { color: #3b82f6; }
.report-table td .icon-female { color: #ec4899; }
.report-table td i {
    margin-right: 8px;
}

/* --- コンプライアンス監査レポート画面 (admin_audit_report.html) --- */

.audit-report-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.audit-report-card .card-header {
    border-bottom: 1px solid #eef2f6;
    padding: 20px 25px;
}

.audit-report-card .card-body {
    padding: 25px;
}

.filter-area {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: flex-end;
}
.filter-area .form-group {
    margin-bottom: 0;
    min-width: 200px;
}
.filter-area .form-group:nth-child(1) { flex: 2; }
.filter-area .form-group:nth-child(2) { flex: 1.5; }
.filter-area .form-group:nth-child(3) { flex: 1.5; }

.date-range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}
.date-range-inputs span {
    color: var(--gray-color);
}

.audit-log-table {
    width: 100%;
    border-collapse: collapse;
}

.audit-log-table th,
.audit-log-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eef2f6;
    text-align: left;
    font-size: 0.95rem;
}

.audit-log-table th {
    font-weight: 500;
    color: var(--gray-color);
    background-color: #f8fafc;
}
.audit-log-table tbody tr:last-child td {
    border-bottom: none;
}
.audit-log-table tbody tr:hover {
    background-color: #f8fafc;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.status-read {
    background-color: #eef2ff;
    color: #4338ca;
}
.status-badge.status-confirmed {
    background-color: #e6f7f2;
    color: #0d8a66;
}

/* --- admin_application_list.html --- */

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.application-list-table tbody tr {
    cursor: pointer;
    transition: background-color 0.2s;
}

.application-list-table tbody tr:hover {
    background-color: #f8fafc;
}

/* ステータスバッジのスタイル */
.status-badge.status-pending {
    background-color: #fffbe6;
    color: #d46b08;
    border: 1px solid #ffe58f;
}

.status-badge.status-approved {
    background-color: #f6ffed;
    color: #389e0d;
    border: 1px solid #b7eb8f;
}

.status-badge.status-rejected {
    background-color: #fff1f0;
    color: #cf1322;
    border: 1px solid #ffa39e;
}

/* --- admin_age40_careinfo.html --- */

/* 新しいステータスバッジのスタイル */
.status-badge.status-confirmed {
    background-color: #f0f5ff;
    color: #1d39c4;
    border: 1px solid #adc6ff;
}

/* テーブル内のボタンを少し小さく調整 */
.btn-sm {
    padding: .25rem .5rem;
    font-size: .875rem;
    line-height: 1.5;
    border-radius: .2rem;
}

.btn-outline-primary {
    color: #4A90E2;
    background-color: transparent;
    border-color: #4A90E2;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #4A90E2;
    border-color: #4A90E2;
}

.btn-outline-secondary {
    color: #6c757d;
    background-color: transparent;
    border-color: #6c757d;
}

.application-list-table th:first-child,
.application-list-table td:first-child {
    width: 40px;
    text-align: center;
}

/*
 * admin_intention_sending_process.html specific styles
 * --------------------------------------------------
 * Individual Notification Sending Screen
*/

/* サイドバーなしのメインコンテンツエリアの調整 */
.main-content-no-sidebar {
  padding-left: 1rem;
  padding-right: 1rem;
  width: 100%;
}

/* ステップインジケーター */
.nav-pills .nav-link {
    background-color: #f8f9fc;
    color: #858796;
    border: 1px solid #e3e6f0;
}

.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    color: #fff;
    background-color: #4e73df;
    border-color: #4e73df;
}

.nav-pills .nav-link.disabled {
    background-color: #f8f9fc;
    color: #b7b9cc;
    border: 1px solid #e3e6f0;
}


/* 従業員リストテーブル */
.employee-list-table th, 
.employee-list-table td {
    vertical-align: middle;
    text-align: center;
}

.employee-list-table thead th {
    background-color: #f8f9fc;
}

.employee-list-table td:nth-child(2) {
    text-align: left; /* 氏名は左寄せ */
}

/* メッセージテンプレートセレクター */
.message-template-selector {
    margin-bottom: 1.5rem;
}

/*
 * admin_intention_sending_confirm.html specific styles
 * --------------------------------------------------
 * Individual Notification Confirmation Screen
*/

.confirmation-section {
    margin-bottom: 2rem;
}

.confirmation-section .section-title {
    font-size: 1.2rem;
    color: #4e73df;
    margin-bottom: 1rem;
    border-left: 4px solid #4e73df;
    padding-left: 0.75rem;
}

.confirmation-list .list-group-item {
    border-left: none;
    border-right: none;
    border-radius: 0;
}
.confirmation-list .list-group-item:first-child {
    border-top: none;
}
.confirmation-list .list-group-item:last-child {
    border-bottom: none;
}


.message-preview-box {
    background-color: #f8f9fc;
    border: 1px solid #e3e6f0;
    padding: 1.5rem;
    border-radius: 0.35rem;
}

.message-preview-box p {
    margin-bottom: 0.5rem;
}

.message-body-preview {
    white-space: pre-wrap; /* 改行をそのまま表示 */
    line-height: 1.6;
    font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', Meiryo, メイリオ, Osaka, 'MS PGothic', sans-serif;
}

.message-body-preview p {
    margin-bottom: 1em;
}