/* DVTV 休日出勤管理 CSS - v3.1 */

/* ====== 共通 ====== */
.dvtv-hm-form-wrapper,
.dvtv-hm-list-wrapper,
.dvtv-hm-settings-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.dvtv-hm-form-wrapper h3,
.dvtv-hm-list-wrapper h3,
.dvtv-hm-settings-wrapper h3 {
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #2271b1;
    color: #1d2327;
    font-size: 18px;
}

.dvtv-hm-settings-wrapper h4 {
    margin: 24px 0 12px;
    color: #1d2327;
    font-size: 15px;
}

/* 一覧日付リンク */
.dvtv-hm-table td.col-date a {
    color: #2271b1;
    text-decoration: none;
}
.dvtv-hm-table td.col-date a:hover {
    text-decoration: underline;
    color: #135e96;
}

/* ゴミ箱の行（グレーアウト） */
.dvtv-hm-row-trashed {
    background: #f0f0f1 !important;
    opacity: 0.6;
    pointer-events: none;
}
.dvtv-hm-row-trashed td {
    color: #8c8f94 !important;
}
.dvtv-hm-row-trashed .dvtv-hm-badge {
    background: #dcdcde !important;
    color: #8c8f94 !important;
}
.dvtv-hm-trashed-label {
    display: inline-block;
    margin-left: 6px;
    font-size: 11px;
    color: #d63638;
    font-weight: 500;
}

/* ====== フォーム ====== */
.dvtv-hm-form-row {
    margin-bottom: 16px;
}

.dvtv-hm-form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #1d2327;
    font-size: 13px;
}

.dvtv-hm-form-row input[type="text"],
.dvtv-hm-form-row input[type="date"],
.dvtv-hm-form-row input[type="number"],
.dvtv-hm-form-row select,
.dvtv-hm-form-row textarea {
    width: 100%;
    max-width: 360px;
    padding: 10px 12px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.dvtv-hm-form-row input:focus,
.dvtv-hm-form-row select:focus,
.dvtv-hm-form-row textarea:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

.dvtv-hm-form-row textarea {
    max-width: 100%;
    resize: vertical;
}

.dvtv-hm-form-row .required {
    color: #d63638;
}

.dvtv-hm-readonly {
    display: inline-block;
    padding: 10px 12px;
    background: #f0f0f1;
    border-radius: 4px;
    color: #50575e;
    font-size: 14px;
}

.dvtv-hm-input-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dvtv-hm-input-inline input {
    width: 100px !important;
}

.dvtv-hm-input-inline span {
    color: #50575e;
    font-size: 13px;
}

.dvtv-hm-form-actions {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f1;
}

/* ====== ボタン ====== */
.dvtv-hm-btn-primary {
    display: inline-block;
    padding: 10px 20px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.dvtv-hm-btn-primary:hover {
    background: #135e96;
}

.dvtv-hm-btn-outline {
    display: inline-block;
    padding: 10px 20px;
    background: #fff;
    color: #2271b1;
    border: 1px solid #2271b1;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.dvtv-hm-btn-outline:hover {
    background: #f6f7f7;
}

.dvtv-hm-btn-danger {
    display: inline-block;
    padding: 10px 20px;
    background: #d63638;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.dvtv-hm-btn-danger:hover {
    background: #b32d2e;
}

.dvtv-hm-back-btn {
    padding: 8px 16px;
    background: #f0f0f1;
    color: #50575e;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    cursor: pointer;
}

.dvtv-hm-submit-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.dvtv-hm-submit-btn:hover {
    background: #135e96;
}

/* ====== 結果・メッセージ ====== */
.dvtv-hm-result {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 4px;
    font-size: 14px;
}

.dvtv-hm-result.dvtv-hm-success {
    background: #edfaef;
    border: 1px solid #68de7c;
    color: #1e4620;
}

.dvtv-hm-result.dvtv-hm-error {
    background: #fcf0f1;
    border: 1px solid #d63638;
    color: #8a2424;
}

.dvtv-hm-hidden {
    display: none !important;
}

.dvtv-hm-error {
    color: #d63638;
    padding: 12px;
    background: #fcf0f1;
    border-left: 4px solid #d63638;
    border-radius: 0 4px 4px 0;
}

.dvtv-hm-empty {
    color: #646970;
    padding: 24px;
    text-align: center;
    background: #f6f7f7;
    border-radius: 4px;
}

.dvtv-hm-hint {
    color: #646970;
    font-size: 12px;
    margin-top: 4px;
}

.dvtv-hm-muted {
    color: #a7aaad;
    font-size: 12px;
}

.dvtv-hm-loading {
    color: #646970;
    font-style: italic;
    padding: 16px;
    text-align: center;
}

/* ====== サマリー ====== */
.dvtv-hm-summary {
    padding: 16px;
    background: #f0f6fc;
    border-radius: 6px;
    margin-bottom: 20px;
}

.dvtv-hm-summary p {
    margin: 0;
    font-size: 14px;
}

.dvtv-hm-summary-bar {
    display: flex;
    gap: 24px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    margin-bottom: 20px;
}

.dvtv-hm-summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dvtv-hm-summary-label {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
}

.dvtv-hm-summary-value {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

/* ====== フィルターバー ====== */
.dvtv-hm-filter-bar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: #f6f7f7;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* 管理画面: 3列×2行 */
.dvtv-hm-filter-admin .dvtv-hm-filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

/* 個人画面: 3列1行 */
.dvtv-hm-filter-user .dvtv-hm-filter-row-single {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* ボタン行センター配置 */
.dvtv-hm-filter-actions-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.dvtv-hm-filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.dvtv-hm-filter-group .dvtv-hm-filter-select {
    flex: 1;
    min-width: 80px;
}

.dvtv-hm-filter-select {
    padding: 10px 14px;
    border: 2px solid #c3c4c7;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    min-width: 100px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* ブルーネオン点滅アニメーション */
@keyframes blueNeonPulse {
    0%, 100% {
        border-color: #2271b1;
        box-shadow: 0 0 5px rgba(34, 113, 177, 0.5), 0 0 10px rgba(34, 113, 177, 0.3);
    }
    50% {
        border-color: #00bfff;
        box-shadow: 0 0 10px rgba(0, 191, 255, 0.8), 0 0 20px rgba(0, 191, 255, 0.5), 0 0 30px rgba(0, 191, 255, 0.3);
    }
}

/* 選択時のブルーネオン点滅 */
.dvtv-hm-filter-select.neon-active {
    animation: blueNeonPulse 1.5s ease-in-out infinite;
    outline: none;
}

.dvtv-hm-filter-select:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.3);
}

.dvtv-hm-filter-actions {
    display: flex;
    gap: 8px;
}

/* ====== テーブル ====== */
.dvtv-hm-table-wrap {
    overflow-x: auto;
    margin: 0 -8px;
    padding: 0 8px;
}

.dvtv-hm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.dvtv-hm-table th,
.dvtv-hm-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #f0f0f1;
}

.dvtv-hm-table th {
    background: #f6f7f7;
    font-weight: 600;
    color: #1d2327;
    white-space: nowrap;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dvtv-hm-table tbody tr:hover {
    background: #f9f9f9;
}

.dvtv-hm-table .col-date {
    white-space: nowrap;
}

.dvtv-hm-table .col-type,
.dvtv-hm-table .col-hours,
.dvtv-hm-table .col-usage,
.dvtv-hm-table .col-payout {
    text-align: center;
}

.dvtv-hm-table .payout-done {
    color: #00a32a;
    font-weight: 600;
}

.usage-dates {
    font-size: 11px;
    color: #646970;
    margin-top: 4px;
}

/* ====== バッジ ====== */
.dvtv-hm-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.dvtv-hm-badge.status-available {
    background: #edfaef;
    color: #1e4620;
}

.dvtv-hm-badge.status-used {
    background: #f0f0f1;
    color: #50575e;
}

.dvtv-hm-badge.status-partial {
    background: #fcf9e8;
    color: #8a6d14;
}

.dvtv-hm-badge.status-payout {
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 600;
}

.dvtv-hm-badge.status-salary {
    background: #fff3e0;
    color: #e65100;
    font-weight: 600;
}

.dvtv-hm-badge.status-pending {
    background: #fce4ec;
    color: #c62828;
    font-weight: 600;
}

.payout-date {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

/* ====== リストヘッダー ====== */
.dvtv-hm-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
}

.dvtv-hm-count {
    font-size: 13px;
    color: #50575e;
}

.dvtv-hm-page-info {
    font-size: 13px;
    color: #646970;
}

/* ====== ページネーション ====== */
.dvtv-hm-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f1;
}

.dvtv-hm-page-btn {
    padding: 8px 16px;
    background: #fff;
    color: #2271b1;
    border: 1px solid #2271b1;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.dvtv-hm-page-btn:hover {
    background: #2271b1;
    color: #fff;
}

.dvtv-hm-page-num {
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
}

/* ====== チェックボックスラベル ====== */
.dvtv-hm-checkbox-label {
    display: block;
    padding: 10px 12px;
    margin-bottom: 6px;
    background: #f6f7f7;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 13px;
}

.dvtv-hm-checkbox-label:hover {
    background: #e9e9ea;
}

.dvtv-hm-checkbox-label input {
    margin-right: 10px;
}

/* ====== スイッチ ====== */
.dvtv-hm-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.dvtv-hm-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.dvtv-hm-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #c3c4c7;
    transition: 0.3s;
    border-radius: 24px;
}

.dvtv-hm-switch .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.dvtv-hm-switch input:checked + .slider {
    background-color: #2271b1;
}

.dvtv-hm-switch input:checked + .slider:before {
    transform: translateX(20px);
}

.dvtv-hm-switch input:disabled + .slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ====== 設定セクション ====== */
.dvtv-hm-settings-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f1;
}

.dvtv-hm-settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.dvtv-hm-sync-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.dvtv-hm-sync-month {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dvtv-hm-sync-month select {
    padding: 8px 12px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 13px;
}

/* ====== 一括処理 ====== */
.dvtv-hm-bulk-form {
    margin-bottom: 20px;
}

.dvtv-hm-bulk-select-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    background: #f6f7f7;
    border-radius: 6px;
}

.dvtv-hm-bulk-select-actions .dvtv-hm-btn-outline {
    padding: 8px 16px;
    font-size: 12px;
}

.dvtv-hm-selected-count {
    font-weight: 600;
    color: #2271b1;
    font-size: 14px;
}

.dvtv-hm-table .col-check {
    width: 40px;
    text-align: center;
}

.dvtv-hm-table .col-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.dvtv-hm-table .col-days {
    text-align: center;
    white-space: nowrap;
    color: #646970;
    font-size: 12px;
}

/* ====== 実働警告ボックス ====== */
.dvtv-hm-warning-box {
    margin-bottom: 20px;
    padding: 0;
    background: #fff8e1;
    border: 1px solid #ffcc02;
    border-left: 4px solid #f0a000;
    border-radius: 6px;
    overflow: hidden;
}

.dvtv-hm-warning-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: rgba(240, 160, 0, 0.08);
    border-bottom: 1px solid rgba(240, 160, 0, 0.15);
}

.dvtv-hm-warning-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.dvtv-hm-warning-header strong {
    color: #7a4f01;
    font-size: 14px;
}

.dvtv-hm-warning-sub {
    flex-basis: 100%;
    color: #8a6d3b;
    font-size: 12px;
    line-height: 1.5;
}

.dvtv-hm-warning-list {
    padding: 8px 0;
    max-height: 300px;
    overflow-y: auto;
}

.dvtv-hm-warning-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    font-size: 13px;
    transition: background 0.2s;
}

.dvtv-hm-warning-item:hover {
    background: rgba(240, 160, 0, 0.06);
}

.dvtv-hm-warning-user {
    font-weight: 600;
    color: #1d2327;
    min-width: 80px;
}

.dvtv-hm-warning-date {
    flex: 1;
}

.dvtv-hm-warning-date a {
    color: #2271b1;
    text-decoration: none;
}

.dvtv-hm-warning-date a:hover {
    text-decoration: underline;
    color: #135e96;
}

.dvtv-hm-warning-type {
    color: #646970;
    font-size: 12px;
    min-width: 40px;
    text-align: center;
}

.dvtv-hm-warning-dismiss {
    padding: 4px 10px;
    background: transparent;
    color: #8a6d3b;
    border: 1px solid #d4a843;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}

.dvtv-hm-warning-dismiss:hover {
    background: #f0a000;
    color: #fff;
    border-color: #f0a000;
}

.dvtv-hm-warning-dismiss:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ====== 使用日・手当リンク ====== */
.usage-dates a {
    color: #2271b1;
    text-decoration: none;
    font-size: 11px;
}

.usage-dates a:hover {
    text-decoration: underline;
    color: #135e96;
}

.dvtv-hm-table td.col-payout a {
    color: #2271b1;
    text-decoration: none;
    font-weight: 600;
}

.dvtv-hm-table td.col-payout a:hover {
    text-decoration: underline;
    color: #135e96;
}

.dvtv-hm-table td.payout-done a {
    color: #00a32a;
}

.dvtv-hm-table td.payout-done a:hover {
    color: #007017;
}

/* ====== 取消ボタン ====== */
.dvtv-hm-cancel-record {
    padding: 3px 10px;
    background: #fff;
    color: #d63638;
    border: 1px solid #d63638;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.dvtv-hm-cancel-record:hover {
    background: #d63638;
    color: #fff;
}

.dvtv-hm-cancel-record:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dvtv-hm-table th.col-action,
.dvtv-hm-table td.col-action {
    text-align: center;
    width: 60px;
}

/* ====== レスポンシブ ====== */
@media (max-width: 768px) {
    .dvtv-hm-form-wrapper,
    .dvtv-hm-list-wrapper,
    .dvtv-hm-settings-wrapper {
        padding: 16px;
    }
    
    .dvtv-hm-filter-bar {
        padding: 12px;
    }
    
    /* 管理画面: モバイルは1列 */
    .dvtv-hm-filter-admin .dvtv-hm-filter-row {
        grid-template-columns: 1fr;
    }
    
    /* 個人画面: モバイルは1列 */
    .dvtv-hm-filter-user .dvtv-hm-filter-row-single {
        grid-template-columns: 1fr;
    }
    
    .dvtv-hm-filter-select {
        width: 100%;
    }
    .dvtv-hm-filter-group .dvtv-hm-filter-select {
        width: auto;
        flex: 1;
    }
    
    .dvtv-hm-filter-actions-center {
        flex-direction: row;
    }
    
    .dvtv-hm-filter-actions-center button {
        flex: 1;
    }
    
    .dvtv-hm-summary-bar {
        flex-direction: column;
        gap: 12px;
    }
    
    .dvtv-hm-table {
        font-size: 12px;
    }
    
    .dvtv-hm-table th,
    .dvtv-hm-table td {
        padding: 8px 6px;
    }
    
    .dvtv-hm-sync-actions,
    .dvtv-hm-sync-month {
        flex-direction: column;
    }
    
    .dvtv-hm-bulk-select-actions {
        flex-wrap: wrap;
    }
    
    .dvtv-hm-warning-item {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .dvtv-hm-warning-user {
        min-width: auto;
    }
    
    .dvtv-hm-warning-dismiss {
        margin-left: auto;
    }
}

/* ====== ユーザー集計 ====== */
.dvtv-hm-user-summary {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.dvtv-hm-user-summary h3 {
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #2271b1;
    color: #1d2327;
    font-size: 18px;
}

.dvtv-hm-summary-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.dvtv-hm-summary-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 10px;
    background: #f8f9fa;
    transition: transform 0.2s, box-shadow 0.2s;
}

.dvtv-hm-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.dvtv-hm-summary-card.main {
    grid-column: span 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.dvtv-hm-summary-card.main .card-label,
.dvtv-hm-summary-card.main .card-sub {
    color: rgba(255,255,255,0.85);
}

.dvtv-hm-summary-card.available {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
}

.dvtv-hm-summary-card.available .card-label {
    color: rgba(255,255,255,0.85);
}

.dvtv-hm-summary-card.used {
    background: #f0f0f1;
}

.dvtv-hm-summary-card.payout {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
}

.dvtv-hm-summary-card.payout .card-label {
    color: rgba(255,255,255,0.85);
}

.dvtv-hm-summary-card .card-icon {
    font-size: 28px;
    opacity: 0.9;
}

.dvtv-hm-summary-card .card-content {
    flex: 1;
}

.dvtv-hm-summary-card .card-label {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 4px;
}

.dvtv-hm-summary-card .card-value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.dvtv-hm-summary-card .card-value .unit {
    font-size: 14px;
    font-weight: 500;
    margin-left: 2px;
}

.dvtv-hm-summary-card .card-sub {
    font-size: 11px;
    margin-top: 4px;
    opacity: 0.8;
}

.dvtv-hm-summary-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
}

.dvtv-hm-summary-details .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e2e4e7;
}

.dvtv-hm-summary-details .detail-row:last-child {
    border-bottom: none;
}

.dvtv-hm-summary-details .detail-row.highlight {
    background: #fff8e1;
    margin: 0 -16px;
    padding: 10px 16px;
    border-radius: 6px;
    border-bottom: none;
}

.dvtv-hm-summary-details .detail-label {
    color: #50575e;
    font-size: 13px;
}

.dvtv-hm-summary-details .detail-value {
    color: #1d2327;
    font-weight: 600;
    font-size: 14px;
}

/* サマリー内 一覧セクション */
.dvtv-hm-summary-list-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.dvtv-hm-summary-list-section h4 {
    margin: 0 0 16px;
    font-size: 15px;
    color: #1d2327;
    font-weight: 600;
}

/* コンパクト表示 */
.dvtv-hm-user-summary-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
}

.dvtv-hm-user-summary-compact .summary-item {
    color: #fff;
    font-size: 14px;
}

.dvtv-hm-user-summary-compact .summary-item strong {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    margin-right: 4px;
}

@media (max-width: 768px) {
    .dvtv-hm-summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dvtv-hm-summary-card.main {
        grid-column: span 2;
    }
    
    .dvtv-hm-user-summary-compact {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .dvtv-hm-summary-cards {
        grid-template-columns: 1fr;
    }
    
    .dvtv-hm-summary-card.main {
        grid-column: span 1;
    }
}

/* 手当申請 対象休日出勤一覧（投稿内・フォーム結果共通） */
.dvtv-hm-payout-details {
    margin-top: 24px;
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}
.dvtv-hm-payout-details h4 {
    margin: 0 0 12px 0;
    font-size: 15px;
    color: #333;
}
.dvtv-hm-payout-details-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}
.dvtv-hm-payout-details-table th {
    background: #495057;
    color: #fff;
    padding: 8px 12px;
    text-align: left;
    font-weight: 500;
    font-size: 13px;
}
.dvtv-hm-payout-details-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #e9ecef;
}
.dvtv-hm-payout-details-table tr:last-child td {
    border-bottom: none;
}
.dvtv-hm-payout-details-table tr:hover {
    background: #f1f3f5;
}
.dvtv-hm-payout-details-table a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
}
.dvtv-hm-payout-details-table a:hover {
    text-decoration: underline;
}
/* 成功メッセージ内の詳細テーブル */
.dvtv-hm-success .dvtv-hm-payout-details-table {
    margin: 12px 0;
}
/* 一括手当のページネーションボタン */
.dvtv-hm-bulk-page-btn {
    padding: 6px 16px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.2s;
}
.dvtv-hm-bulk-page-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}
/* 手当一括: 行背景色 */
.dvtv-hm-row-payout {
    background: #e8f5e9 !important;
}
.dvtv-hm-row-payout:hover {
    background: #c8e6c9 !important;
}
.dvtv-hm-row-used {
    background: #e3f2fd !important;
}
.dvtv-hm-row-used:hover {
    background: #bbdefb !important;
}

/* ===================================
   全社員サマリー一覧
   =================================== */
.dvtv-hm-admin-summary-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}
.dvtv-hm-as-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding: 0 4px;
}
.dvtv-hm-as-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
}
.dvtv-hm-as-filter {
    display: flex;
    align-items: center;
    gap: 8px;
}
.dvtv-hm-as-filter .dvtv-hm-btn-primary {
    white-space: nowrap;
    padding: 10px 24px;
    letter-spacing: 0.5px;
}

/* テーブルラッパー */
.dvtv-hm-as-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.1);
    background: #fff;
}

/* テーブル本体 */
.dvtv-hm-as-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    line-height: 1.5;
}
.dvtv-hm-as-table-wrap .dvtv-hm-as-table thead tr {
    background: #1a56db !important;
}
.dvtv-hm-as-table-wrap .dvtv-hm-as-table thead th {
    padding: 14px 16px !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-align: center;
    white-space: nowrap;
    border: none !important;
    background: transparent !important;
    position: relative;
}
.dvtv-hm-as-table-wrap .dvtv-hm-as-table thead th:first-child {
    border-radius: 12px 0 0 0;
    text-align: left;
    padding-left: 20px !important;
}
.dvtv-hm-as-table-wrap .dvtv-hm-as-table thead th:last-child {
    border-radius: 0 12px 0 0;
}
.dvtv-hm-as-table-wrap .dvtv-hm-as-table thead th .th-sub {
    display: block;
    font-size: 11px;
    font-weight: 400;
    opacity: 0.85;
    margin-top: 2px;
}

/* ボディ */
.dvtv-hm-as-table tbody tr {
    transition: background 0.15s ease;
    border-bottom: 1px solid #f0f0f5;
}
.dvtv-hm-as-table tbody tr:last-child {
    border-bottom: none;
}
.dvtv-hm-as-table tbody tr:hover {
    background: #c9b8f8 !important;
}
.dvtv-hm-as-table tbody tr:nth-child(even) {
    background: #fafafe;
}
.dvtv-hm-as-table tbody tr:nth-child(even):hover {
    background: #c9b8f8 !important;
}
.dvtv-hm-as-table tbody td {
    padding: 12px 16px;
    border: none;
    vertical-align: middle;
}

/* 社員名カラム */
.dvtv-hm-as-table .col-name {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
    padding-left: 20px;
}
.dvtv-hm-as-table .user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}
.dvtv-hm-as-table .user-name {
    font-weight: 600;
    color: #1a1a2e;
    white-space: nowrap;
}

/* 残り代休カラム */
.dvtv-hm-as-table .col-remaining {
    text-align: center;
    white-space: nowrap;
}
.dvtv-hm-as-table .remaining-main {
    display: inline-block;
    font-weight: 700;
    font-size: 15px;
    color: #1a73e8;
    padding: 3px 10px;
    border-radius: 8px;
    background: #e8f0fe;
}
.dvtv-hm-as-table .remaining-main.zero {
    color: #999;
    background: #f5f5f5;
    font-weight: 500;
}
.dvtv-hm-as-table .remaining-main.high {
    color: #d63031;
    background: #fdecea;
}
.dvtv-hm-as-table .remaining-90d {
    display: inline-block;
    margin-left: 6px;
    color: #888;
    font-size: 13px;
}

/* 数値カラム */
.dvtv-hm-as-table .col-num {
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    color: #333;
    white-space: nowrap;
}
.dvtv-hm-as-table .col-num .unit {
    font-size: 11px;
    font-weight: 400;
    color: #888;
    margin-left: 2px;
}
.dvtv-hm-as-table .col-num.used {
    color: #1a73e8;
}
.dvtv-hm-as-table .col-num.paid {
    color: #0d9488;
}
.dvtv-hm-as-table .col-num.has-eligible {
    color: #e67e22;
    font-weight: 700;
}
.dvtv-hm-as-table .elig-days {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #b45309;
    margin-top: 2px;
}
.dvtv-hm-as-table .elig-breakdown {
    display: block;
    font-size: 10px;
    font-weight: 400;
    color: #888;
    margin-top: 1px;
}

/* ローディング */
.dvtv-hm-as-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 20px;
    color: #888;
    font-size: 15px;
}
.dvtv-hm-as-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #e0e0e0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: dvtv-hm-spin 0.7s linear infinite;
}
@keyframes dvtv-hm-spin {
    to { transform: rotate(360deg); }
}

/* レスポンシブ */
@media (max-width: 768px) {
    .dvtv-hm-as-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .dvtv-hm-as-table {
        font-size: 12px;
    }
    .dvtv-hm-as-table thead th,
    .dvtv-hm-as-table tbody td {
        padding: 10px 8px;
    }
    .dvtv-hm-as-table .col-name {
        padding-left: 10px;
        min-width: 100px;
    }
    .dvtv-hm-as-table thead th:first-child {
        padding-left: 10px;
    }
    .dvtv-hm-as-table .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    .dvtv-hm-as-table .remaining-main {
        font-size: 13px;
    }
    .dvtv-hm-as-table .col-num {
        font-size: 13px;
    }
}

/* === v3.5.0 追加スタイル === */

/* 手当申請済バッジ */
.dvtv-hm-badge.status-applied {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

/* 手当支払済バッジ（既存status-payoutを継承） */
.dvtv-hm-badge.status-payout {
    background: #d4edda;
    color: #155724;
    border: 1px solid #28a745;
}

/* 手当扱いバッジ（既存status-salaryを継承） */
.dvtv-hm-badge.status-salary {
    background: #e2e3e5;
    color: #383d41;
    border: 1px solid #6c757d;
}

/* 手当申請済列 */
.payout-applied {
    color: #856404;
    font-weight: 600;
}

/* 期間列 */
.col-period {
    font-size: 0.85em;
    color: #666;
    white-space: nowrap;
}

/* 予定残表示 */
.remaining-planned {
    display: block;
    font-size: 0.8em;
    color: #856404;
    font-style: italic;
}

/* 管理者サマリー: 申請済列 */
.dvtv-hm-as-table .col-num.applied {
    color: #856404;
}

/* === v3.5.1 追加スタイル === */

/* AND/ORトグルボタン */
.dvtv-hm-mode-and {
    background: #2B5797 !important;
    color: #fff !important;
    font-weight: bold;
    min-width: 50px;
}
.dvtv-hm-mode-or {
    background: #e67e22 !important;
    color: #fff !important;
    font-weight: bold;
    min-width: 50px;
}

/* 支払月列 */
.col-paymonth {
    font-size: 0.85em;
    color: #555;
    white-space: nowrap;
}

/* 使用列（給与表示） */
.col-usage {
    white-space: nowrap;
    font-size: 0.9em;
}

/* 給与行（グリーン背景） */
.dvtv-hm-table tr.dvtv-hm-row-kyuyo {
    background-color: #d4edda !important;
}
.dvtv-hm-table tr.dvtv-hm-row-kyuyo:hover {
    background-color: #c3e6cb !important;
}

/* === ツールバーセパレーター === */
.dvtv-hm-toolbar-sep {
    display: inline-block;
    width: 1px;
    height: 24px;
    background: #ccc;
    margin: 0 8px;
    vertical-align: middle;
}

/* === 文字サイズ切替ボタン === */
.dvtv-hm-fontsize-group {
    display: inline-flex;
    gap: 2px;
    vertical-align: middle;
}
.dvtv-hm-fontsize-btn {
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
    color: #555;
    line-height: 1;
}
.dvtv-hm-fontsize-btn:hover {
    background: #ddd;
}
.dvtv-hm-fontsize-btn.dvtv-hm-fontsize-active {
    background: #2B5797;
    color: #fff;
    border-color: #2B5797;
}

/* === 文字サイズ適用 === */
.dvtv-hm-list-wrapper.dvtv-hm-fs-small .dvtv-hm-table { font-size: 11px; }
.dvtv-hm-list-wrapper.dvtv-hm-fs-small .dvtv-hm-table th,
.dvtv-hm-list-wrapper.dvtv-hm-fs-small .dvtv-hm-table td { padding: 3px 4px; }

.dvtv-hm-list-wrapper.dvtv-hm-fs-medium .dvtv-hm-table { font-size: 13px; }

.dvtv-hm-list-wrapper.dvtv-hm-fs-large .dvtv-hm-table { font-size: 15px; }
.dvtv-hm-list-wrapper.dvtv-hm-fs-large .dvtv-hm-table th,
.dvtv-hm-list-wrapper.dvtv-hm-fs-large .dvtv-hm-table td { padding: 8px 10px; }

.dvtv-hm-list-wrapper.dvtv-hm-fs-xlarge .dvtv-hm-table { font-size: 18px; font-weight: bold; }
.dvtv-hm-list-wrapper.dvtv-hm-fs-xlarge .dvtv-hm-table th,
.dvtv-hm-list-wrapper.dvtv-hm-fs-xlarge .dvtv-hm-table td { padding: 10px 12px; }

/* === ダークモードアイコンボタン === */
.dvtv-hm-btn-icon {
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
    vertical-align: middle;
}
.dvtv-hm-btn-icon:hover {
    background: #ddd;
}

/* === ダークモード === */
.dvtv-hm-list-wrapper.dvtv-hm-dark {
    background: #1e1e2e;
    color: #cdd6f4;
    border-radius: 8px;
    padding: 16px;
}
.dvtv-hm-list-wrapper.dvtv-hm-dark h3 {
    color: #cdd6f4;
}
.dvtv-hm-list-wrapper.dvtv-hm-dark .dvtv-hm-filter-bar {
    background: #313244;
    border-color: #45475a;
}
.dvtv-hm-list-wrapper.dvtv-hm-dark .dvtv-hm-filter-select {
    background: #313244;
    color: #cdd6f4;
    border-color: #45475a;
}
.dvtv-hm-list-wrapper.dvtv-hm-dark .dvtv-hm-filter-select.neon-active {
    border-color: #89b4fa;
    box-shadow: 0 0 4px rgba(137,180,250,0.4);
}
.dvtv-hm-list-wrapper.dvtv-hm-dark .dvtv-hm-table {
    background: #1e1e2e;
    color: #cdd6f4;
}
.dvtv-hm-list-wrapper.dvtv-hm-dark .dvtv-hm-table th {
    background: #313244;
    color: #cdd6f4;
    border-color: #45475a;
}
.dvtv-hm-list-wrapper.dvtv-hm-dark .dvtv-hm-table td {
    border-color: #45475a;
}
.dvtv-hm-list-wrapper.dvtv-hm-dark .dvtv-hm-table tr:nth-child(even) {
    background: #25253a;
}
.dvtv-hm-list-wrapper.dvtv-hm-dark .dvtv-hm-table tr:hover {
    background: #313244;
}
.dvtv-hm-list-wrapper.dvtv-hm-dark .dvtv-hm-table a {
    color: #89b4fa;
}
.dvtv-hm-list-wrapper.dvtv-hm-dark .dvtv-hm-table tr.dvtv-hm-row-kyuyo {
    background-color: #1e3a2e !important;
}
.dvtv-hm-list-wrapper.dvtv-hm-dark .dvtv-hm-table tr.dvtv-hm-row-kyuyo:hover {
    background-color: #264a3a !important;
}
.dvtv-hm-list-wrapper.dvtv-hm-dark .dvtv-hm-badge.status-available {
    background: #313244;
    color: #cdd6f4;
    border-color: #585b70;
}
.dvtv-hm-list-wrapper.dvtv-hm-dark .dvtv-hm-badge.status-pending {
    background: #45475a;
    color: #a6adc8;
}
.dvtv-hm-list-wrapper.dvtv-hm-dark .dvtv-hm-btn-primary {
    background: #89b4fa;
    color: #1e1e2e;
}
.dvtv-hm-list-wrapper.dvtv-hm-dark .dvtv-hm-btn-outline {
    background: #313244;
    color: #cdd6f4;
    border-color: #585b70;
}
.dvtv-hm-list-wrapper.dvtv-hm-dark .dvtv-hm-btn-icon {
    background: #313244;
    border-color: #45475a;
    color: #cdd6f4;
}
.dvtv-hm-list-wrapper.dvtv-hm-dark .dvtv-hm-fontsize-btn {
    background: #313244;
    color: #a6adc8;
    border-color: #45475a;
}
.dvtv-hm-list-wrapper.dvtv-hm-dark .dvtv-hm-fontsize-btn.dvtv-hm-fontsize-active {
    background: #89b4fa;
    color: #1e1e2e;
    border-color: #89b4fa;
}
.dvtv-hm-list-wrapper.dvtv-hm-dark .dvtv-hm-toolbar-sep {
    background: #45475a;
}
.dvtv-hm-list-wrapper.dvtv-hm-dark .dvtv-hm-warning-box {
    background: #3a2e1e;
    border-color: #6a5a3a;
}
.dvtv-hm-list-wrapper.dvtv-hm-dark .dvtv-hm-pagination button {
    background: #313244;
    color: #cdd6f4;
    border-color: #585b70;
}
.dvtv-hm-list-wrapper.dvtv-hm-dark .dvtv-hm-count,
.dvtv-hm-list-wrapper.dvtv-hm-dark .dvtv-hm-page-info,
.dvtv-hm-list-wrapper.dvtv-hm-dark .dvtv-hm-page-num {
    color: #a6adc8;
}
.dvtv-hm-list-wrapper.dvtv-hm-dark .dvtv-hm-mode-and {
    background: #89b4fa !important;
    color: #1e1e2e !important;
}
.dvtv-hm-list-wrapper.dvtv-hm-dark .dvtv-hm-mode-or {
    background: #fab387 !important;
    color: #1e1e2e !important;
}
