/* Styling for The Master Ledger Gutenberg Block */

.master-ledger-wrapper-9a5ad459 {
    margin: 2rem 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    color: #2c3338;
}

.master-ledger-title-9a5ad459 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e1e1e;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.master-ledger-table-container-9a5ad459 {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.master-ledger-table-9a5ad459 {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.master-ledger-table-9a5ad459 th,
.master-ledger-table-9a5ad459 td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.master-ledger-table-9a5ad459 th {
    background-color: #f9f9f9;
    font-weight: 600;
    color: #50575e;
    white-space: nowrap;
}

.master-ledger-table-9a5ad459 tbody tr:last-child td {
    border-bottom: none;
}

.master-ledger-table-9a5ad459 tbody tr:hover {
    background-color: #fcfcfc;
}

/* Badges for CV Drift */
.badge-9a5ad459 {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-low {
    background-color: #e6f4ea;
    color: #137333;
}

.badge-med {
    background-color: #fef7e0;
    color: #b06000;
}

.badge-high {
    background-color: #fce8e6;
    color: #c5221f;
}

.no-entries-9a5ad459 {
    text-align: center;
    color: #8c8c8c;
    font-style: italic;
    padding: 24px !important;
}

/* Editor Specific Styles */
.master-ledger-editor-block-9a5ad459 {
    background: #ffffff;
    border: 1px dashed #cccccc;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.editor-alert-info-9a5ad459 {
    background-color: #f0f6fc;
    border-left: 4px solid #007cba;
    padding: 10px 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border-radius: 0 4px 4px 0;
}

.ledger-add-form-9a5ad459 {
    background: #fdfdfd;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 25px;
}

.ledger-add-form-9a5ad459 h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #1e293b;
    font-size: 1.1rem;
}

.form-grid-9a5ad459 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* Inner inputs inside editor table */
.master-ledger-table-9a5ad459 input[type="text"],
.master-ledger-table-9a5ad459 input[type="date"],
.master-ledger-table-9a5ad459 select {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.85rem;
}

.editor-date-picker-9a5ad459 {
    padding: 4px 6px !important;
}

@media (max-width: 768px) {
    .master-ledger-table-9a5ad459, 
    .master-ledger-table-9a5ad459 thead, 
    .master-ledger-table-9a5ad459 tbody, 
    .master-ledger-table-9a5ad459 th, 
    .master-ledger-table-9a5ad459 td, 
    .master-ledger-table-9a5ad459 tr {
        display: block;
    }

    .master-ledger-table-9a5ad459 thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .master-ledger-table-9a5ad459 tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
        border-radius: 4px;
    }

    .master-ledger-table-9a5ad459 td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        text-align: right;
    }

    .master-ledger-table-9a5ad459 td:before {
        position: absolute;
        top: 12px;
        left: 16px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        content: attr(data-label);
        font-weight: bold;
        text-align: left;
        color: #50575e;
    }
}
