/**
 * Frontend Styles for BIMB Maintenance Notices
 * Matches Bank Islam Brand & Maintenance Page Styling
 * Font: Montserrat, Sans-Serif
 * Brand Red: #dc2a54, Borders: #2b2b2b
 */

.bimb-mn-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 2em 0;
    box-sizing: border-box;
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #2b2b2b;
}

/* Scroll indicator on mobile */
.bimb-mn-scroll-indicator {
    display: none;
    font-size: 12px;
    color: #dc2a54;
    font-weight: 600;
    text-align: right;
    margin-bottom: 8px;
    padding-right: 4px;
}

@media (max-width: 767px) {
    .bimb-mn-scroll-indicator {
        display: block;
    }
}

/* Scrollable Container - Strictly 100% of parent width, never overflows page */
.bimb-mn-table-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    border-radius: 4px;
    position: relative;
    background: #ffffff;
}

/* Table element */
.bimb-mn-table {
    width: 100%;
    min-width: 640px; /* Guarantees readable columns on small screens without breaking layout */
    border-collapse: collapse;
    table-layout: fixed;
    margin: 0;
    padding: 0;
    border: 1px solid #2b2b2b;
}

/* Table Header */
.bimb-mn-table thead tr {
    background-color: #dc2a54;
    color: #ffffff;
}

.bimb-mn-table thead th {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
    color: #ffffff;
    text-align: center;
    padding: 1.1em 1em;
    border: 1px solid #2b2b2b;
    vertical-align: middle;
}

.bimb-mn-col-from {
    width: 25%;
}

.bimb-mn-col-to {
    width: 25%;
}

.bimb-mn-col-services {
    width: 50%;
}

/* Table Body Cells */
.bimb-mn-table tbody td {
    padding: 1.2em 1.2em;
    border: 1px solid #2b2b2b;
    vertical-align: middle;
    font-size: 14px;
    line-height: 1.5;
    background-color: #ffffff;
    color: #2b2b2b;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* From & To Cells are Centered */
.bimb-mn-cell-from,
.bimb-mn-cell-to {
    text-align: center;
    font-weight: 400;
}

.bimb-mn-cell-inner {
    margin: 0 auto;
}

.bimb-mn-cell-inner p {
    margin: 0;
    font-weight: 400;
}

/* Services Maintenance Cell is Left-Aligned and supports rich WYSIWYG */
.bimb-mn-cell-services {
    text-align: left;
    background-color: #ffffff;
}

.bimb-mn-service-content {
    font-size: 14px;
    line-height: 1.6;
}

.bimb-mn-service-content p {
    margin: 0 0 0.8em 0;
}

.bimb-mn-service-content p:last-child {
    margin-bottom: 0;
}

.bimb-mn-service-content ul {
    margin: 0.5em 0;
    padding-left: 1.5em;
    list-style-type: disc;
}

.bimb-mn-service-content ol {
    margin: 0.5em 0;
    padding-left: 1.5em;
}

.bimb-mn-service-content li {
    margin-bottom: 0.4em;
    line-height: 1.5;
}

.bimb-mn-service-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: inline-block;
    margin: 0.5em 0;
}

.bimb-mn-service-content strong {
    font-weight: 700;
}

.bimb-mn-service-content a {
    color: #dc2a54;
    text-decoration: underline;
}

.bimb-mn-service-content a:hover {
    color: #ba1e42;
}

/* Empty State */
.bimb-mn-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3em 1.5em;
    background: #fafafa;
    border: 1px dashed #cccccc;
    border-radius: 8px;
    text-align: center;
}

.bimb-mn-empty-icon {
    font-size: 32px;
    color: #dc2a54;
    margin-bottom: 10px;
}

.bimb-mn-empty-text {
    font-size: 15px;
    color: #666666;
    margin: 0;
}

/* Mobile Portrait Tweaks */
@media (max-width: 767px) {
    .bimb-mn-wrapper {
        margin: 1em 0;
    }

    .bimb-mn-table thead th {
        font-size: 14px;
        padding: 0.9em 0.6em;
    }

    .bimb-mn-table tbody td {
        font-size: 13px;
        padding: 1em 0.8em;
    }

    .bimb-mn-service-content {
        font-size: 13px;
    }
}
