/* ===========================================================================
   MOM (minutes of meeting) page — matched to the approved Carisma design.
   =========================================================================== */

.mom-page { display: flex; flex-direction: column; gap: 18px; }

/* -------------------------------- banner --------------------------------- */
.mom-banner {
    background: linear-gradient(120deg, #f7ecef 0%, #faf3ee 55%, #fdfbfa 100%);
    border: 1px solid #f1e6e8; border-radius: 18px; padding: 12px 24px;
}
.mom-crumb { display: flex; align-items: center; gap: 8px; font-size: .8rem; margin-bottom: 4px; color: #9a7b82; }
.mom-crumb a { color: #9a7b82; text-decoration: none; }
.mom-crumb a:hover { color: var(--primary-color); text-decoration: underline; }
.mom-crumb strong { color: var(--ink); font-weight: 700; }
.mom-crumb__sep { color: #cdbfc3; }
.mom-title { font-size: 1.5rem; font-weight: 800; color: #1c1416; margin: 0 0 2px; }
.mom-sub { color: #6b5f63; font-size: .85rem; margin: 0; }

/* --------------------------------- cards --------------------------------- */
.mom-card {
    background: #fff; border: 1px solid #eef0f3; border-top: 3px solid #e9c7d2;
    border-radius: 16px; box-shadow: 0 1px 2px rgba(20, 20, 40, .04); overflow: hidden;
}

/* date range */
.mom-range { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 20px; overflow: visible; }
.mom-range__fields { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.mom-field { display: flex; flex-direction: column; gap: 5px; }
.mom-field label { font-size: .75rem; font-weight: 600; color: #4b4145; }
.mom-field input[type="date"] {
    border: 1px solid #d9dde3; border-radius: 9px; padding: 8px 10px;
    font-size: .86rem; color: var(--ink); background: #fff; outline: none; min-width: 150px;
}
.mom-field input[type="date"]:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(122, 31, 43, .12); }
.mom-btn {
    border: 1px solid #d9dde3; background: #fff; cursor: pointer; border-radius: 9px;
    font-size: .86rem; font-weight: 600; color: var(--ink); padding: 8px 16px;
}
.mom-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }
.mom-count { display: flex; align-items: baseline; gap: 6px; padding-bottom: 6px; }
.mom-count strong { font-size: 1.7rem; font-weight: 800; color: var(--primary-color); line-height: 1; }
.mom-count span { font-size: .82rem; color: #6b5f63; }

/* table card header */
.mom-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 20px; }
.mom-head__title { display: flex; align-items: center; gap: 10px; font-size: .98rem; font-weight: 700; color: #1c1416; }
.mom-accent { width: 4px; height: 18px; border-radius: 3px; background: var(--primary-color); }
.mom-head__actions { display: flex; align-items: center; gap: 14px; }
.mom-link { border: none; background: transparent; cursor: pointer; font-size: .86rem; font-weight: 600; color: var(--primary-color); }
.mom-link:hover { text-decoration: underline; }
.mom-export {
    display: inline-flex; align-items: center; gap: 7px; cursor: pointer; white-space: nowrap;
    border: 1px solid var(--primary-color); background: var(--primary-color); color: #fff;
    border-radius: 10px; font-size: .86rem; font-weight: 600; padding: 9px 16px;
}
.mom-export:hover { background: var(--primary-color-dark); border-color: var(--primary-color-dark); }
.mom-export .material-symbols-rounded { font-size: 18px; }

/* -------------------------------- table ---------------------------------- */
.mom-scroll { overflow-x: auto; }
.mom-table { width: 100%; min-width: 980px; border-collapse: collapse; font-size: .86rem; color: #2b2f36; }
.mom-table th, .mom-table td { padding: 12px 14px; text-align: left; vertical-align: middle; }

.mom-cols th {
    background: #f6e9ed; font-size: .68rem; font-weight: 700; letter-spacing: .05em; color: #6b5f63;
    padding-top: 11px; padding-bottom: 11px; white-space: nowrap;
}
.mom-filters th { background: #fbf6f7; border-bottom: 1px solid #ECE6E2; padding-top: 8px; padding-bottom: 8px; font-weight: 400; }
.mom-sno { width: 64px; color: #6B5F63; }
.mom-cols .mom-sno { color: #6b5f63; }
.mom-c { text-align: center !important; }

.mom-table tbody tr { border-bottom: 1px solid #f2eeef; }
.mom-table tbody tr.is-alt { background: #FCF8F9; }
.mom-table tbody tr:hover { background: #f6eaee; }
.mom-client { font-weight: 700; color: #1c1416; }
.mom-empty { text-align: center !important; padding: 40px 14px !important; color: #6b5f63; }

/* eye button */
.mom-eye {
    width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid #d9dde3; background: #fff; border-radius: 9px; cursor: pointer; color: #4b4145;
}
.mom-eye:hover { border-color: var(--primary-color); color: var(--primary-color); }
.mom-eye .material-symbols-rounded { font-size: 19px; }

/* vertical badges */
.mom-badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 11px; border-radius: 999px; white-space: nowrap; }
.mom-badge.is-bs   { background: #fbe3e8; color: #a31f3f; }
.mom-badge.is-bk   { background: #e3ecfb; color: #2251b5; }
.mom-badge.is-smsf { background: #e3f4ea; color: #1c6b3c; }
.mom-badge.is-all  { background: #eceef1; color: #5b6270; }

/* footer */
.mom-foot {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 20px; font-size: .8rem; color: #6B5F63; border-top: 1px solid #f0eaec;
}
.mom-foot__right { display: flex; align-items: center; gap: 14px; }
.mom-perpage {
    border: 1px solid #d9dde3; border-radius: 9px; padding: 7px 10px;
    font-size: .82rem; color: var(--ink); background: #fff; cursor: pointer;
}
.mom-pager { display: inline-flex; align-items: center; gap: 4px; }
.mom-pager__pg, .mom-pager__nav {
    min-width: 32px; height: 32px; border-radius: 9px; border: 1px solid #e3e6ea; background: #fff; cursor: pointer;
    font-size: .84rem; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
}
.mom-pager__pg:hover, .mom-pager__nav:hover:not(:disabled) { border-color: var(--primary-color); color: var(--primary-color); }
.mom-pager__pg.is-active { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.mom-pager__nav:disabled { opacity: .4; cursor: default; }

/* ---------------------------- description popup --------------------------- */
.mom-overlay {
    position: fixed; inset: 0; z-index: 3000; background: rgba(28, 20, 22, .5);
    display: flex; align-items: center; justify-content: center; padding: 24px;
}
.mom-dialog {
    width: 100%; max-width: 920px; max-height: 90vh; background: #fff; border-radius: 16px; overflow: hidden;
    display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}
.mom-dialog__top {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: var(--primary-color); color: #fff; padding: 16px 22px;
}
.mom-dialog__top h2 { margin: 0; font-size: 1.02rem; font-weight: 700; }
.mom-dialog__close {
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer;
    background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 10px; padding: 7px 13px; font-size: .86rem; font-weight: 600;
}
.mom-dialog__close:hover { background: rgba(255, 255, 255, .24); }
.mom-dialog__close .material-symbols-rounded { font-size: 18px; }
.mom-dialog__meta {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px;
    padding: 18px 22px; border-bottom: 1px solid #ECE6E2;
}
.mom-dialog .k { font-size: .68rem; font-weight: 700; letter-spacing: .05em; color: #9a9095; margin-bottom: 4px; }
.mom-dialog .v { font-size: .92rem; font-weight: 600; color: #1c1416; }
.mom-dialog__body { padding: 18px 22px 22px; overflow-y: auto; }
.mom-dialog__body p { white-space: pre-wrap; margin: 4px 0 0; font-size: .92rem; line-height: 1.55; color: #3d3236; }

@media (max-width: 560px) { .mom-dialog__meta { grid-template-columns: 1fr; } }

.mom-export:disabled { opacity: .5; cursor: default; }
.mom-export:disabled:hover { background: var(--primary-color); border-color: var(--primary-color); }
