﻿
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: white;
    margin: 0;
    /*padding: 24px;*/
    color: #2c3e44;
}

.panel {
    /*background: #fff;*/
    /*border: 1px solid #d8e0e2;*/
    border-radius: 6px;
    margin-bottom: 20px;
    overflow: hidden;
}

.panel-header {
    background: #075dac;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.4px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-body {
    padding: 11px 11px;
    /*border: solid 1px #075dac;*/
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: white;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 600;
    font-size: 13px;
    color: #3c5a58;
    width: 110px;
    flex-shrink: 0;
}

.radio-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

    .radio-group label {
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 13px;
        cursor: pointer;
        color: #3c5a58;
    }

    .radio-group input[type="radio"] {
        accent-color: #5b8a87;
        cursor: pointer;
    }

input[type="text"], input[type="date"], select {
    border: 1px solid #c7d2d4;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 13px;
    color: #2c3e44;
}

    input[type="text"]:focus, input[type="date"]:focus, select:focus {
        outline: none;
        border-color: #5b8a87;
    }

.btn-go {
    background: linear-gradient(180deg,#6fc4c0,#4ba6a1);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .btn-go:hover {
        background: linear-gradient(180deg,#5fb4b0,#3b9691);
    }

.btn-reset {
    background: #eef1f1;
    color: #3c5a58;
    border: 1px solid #c7d2d4;
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

table.dataTable {
    border-collapse: collapse !important;
    width: 100% !important;
}

    table.dataTable thead th {
        background: #e9eef0;
        color: #2c4543;
        font-size: 12.5px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        padding: 10px 12px !important;
        border-bottom: 2px solid #c7d2d4 !important;
    }

    table.dataTable tbody td {
        padding: 9px 12px !important;
        font-size: 13px;
        border-bottom: 1px solid #e8edee !important;
        vertical-align: top;
    }

    table.dataTable tbody tr:hover {
        background: #f3f8f8;
    }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11.5px;
    font-weight: 700;
    color: #fff;
}

.badge-success {
    background: #3fa86f;
}

.badge-fail {
    background: #d9534f;
}

.badge-db {
    background: #2f7d8c;
}

.badge-general {
    background: #8a7bc6;
}

.cell-wrap {
    max-width: 320px;
    white-space: pre-wrap;
    word-break: break-word;
}

.sql-code {
    font-family: Consolas, monospace;
    font-size: 11.5px;
    color: #555;
}

.btn-excel {
    background: #2f7d4f;
    color: #fff;
    border: none;
    padding: 9px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-back {
    background: linear-gradient(180deg,#6fc4c0,#4ba6a1);
    color: #fff;
    border: none;
    padding: 9px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.actions-row {
    text-align: center;
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 14px;
}


.clickable-cell {
    cursor: pointer;
}

    .clickable-cell:hover {
        background: #eaf4f3;
        text-decoration: underline;
        text-decoration-color: #5b8a87;
    }

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

    .modal-overlay.active {
        display: flex;
    }

.modal-box {
    background: #fff;
    border-radius: 6px;
    width: 600px;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.modal-header {
    background: #075dac;
    color: #fff;
    padding: 12px 16px;
    border-radius: 6px 6px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
}

.modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}

    .modal-close:hover {
        opacity: 0.7;
    }

.modal-body {
    padding: 16px;
    overflow-y: auto;
}

#modalContent {
    white-space: pre-wrap;
    word-break: break-word;
    font-family: Consolas, 'Segoe UI', monospace;
    font-size: 13px;
    color: #2c3e44;
    margin: 0;
}

input[type="date"] {
    border: 1px solid #c7d2d4;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 13px;
    color: #2c3e44;
    background: #fff;
    transition: border-color 0.15s ease, background 0.15s ease;
}

    input[type="date"]:focus {
        outline: none;
        border-color: #5b8a87;
        box-shadow: 0 0 0 2px rgba(91,138,135,0.15);
    }

    input[type="date"]:disabled {
        background: #eef1f1;
        color: #9aa6a7;
        border-color: #dde3e4;
        cursor: not-allowed;
    }

    input[type="date"]::-webkit-calendar-picker-indicator {
        cursor: pointer;
        opacity: 0.6;
    }

        input[type="date"]::-webkit-calendar-picker-indicator:hover {
            opacity: 1;
        }

.view-link {
    color: #2f7d8c;
    font-weight: 600;
    font-size: 12.5px;
    cursor: pointer;
    white-space: nowrap;
}

    .view-link:hover {
        text-decoration: underline;
    }

.text-muted {
    color: #aab4b5;
}

.modal-box-wide {
    width: 700px;
}

.detail-row {
    margin-bottom: 14px;
}

    .detail-row strong {
        display: block;
        margin-bottom: 4px;
        color: #3c5a58;
        font-size: 13px;
    }

    .detail-row pre {
        white-space: pre-wrap;
        word-break: break-word;
        font-family: Consolas, 'Segoe UI', monospace;
        font-size: 13px;
        margin: 0;
        background: #f7f9f9;
        padding: 8px 10px;
        border-radius: 4px;
        border: 1px solid #e8edee;
    }

table.dataTable thead th {
    background: #e9eef0;
    color: #2c4543;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 6px 10px !important;
    border-bottom: 2px solid #c7d2d4 !important;
}

table.dataTable tbody td {
    padding: 5px 10px !important;
    font-size: 12px;
    line-height: 1.35;
    border-bottom: 1px solid #e8edee !important;
    vertical-align: middle;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10.5px;
    font-weight: 700;
    color: #fff;
}

.view-link {
    color: #2f7d8c;
    font-weight: 600;
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
}

.cell-wrap {
    max-width: 260px;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 12px;
}

.panel-body {
    padding: 12px 14px;
}

.btn-reset {
    background: linear-gradient(180deg,#f0a85c,#e08e3a);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

    .btn-reset:hover {
        background: linear-gradient(180deg,#e29849,#cf7e2d);
        color: #fff;
    }

.filter-row.justify-content-center {
    display: flex;
    justify-content: center;
    gap: 14px;
}

