/* Meeting Minutes -> Action Items — page-specific styles only.
   Shared UI (.tool-input, .btn-tool, .tool-textarea, .stat-card, .tool-toast, etc.)
   comes from tools-common.css. */

.mm-card .mm-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.mm-hint {
    font-size: 13px;
    margin: 12px 0 0;
    line-height: 1.6;
}

.mm-stats {
    grid-template-columns: repeat(4, 1fr);
}

.mm-section {
    /* uses .card base */
}

.mm-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.mm-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 14px;
}

.mm-section-head .mm-section-title {
    margin: 0;
}

/* Editable action table */
.mm-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mm-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.mm-table thead th {
    text-align: start;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    padding: 8px 10px;
    border-bottom: 2px solid var(--border-light);
}

.mm-table .mm-col-task { width: 45%; }
.mm-table .mm-col-owner { width: 18%; }
.mm-table .mm-col-due { width: 17%; }
.mm-table .mm-col-type { width: 15%; }
.mm-table .mm-col-x { width: 44px; }

.mm-table tbody td {
    padding: 6px 8px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.mm-cell-type,
.mm-cell-x {
    text-align: center;
}

/* Contenteditable fields — look like inputs, feel inline */
.mm-editable {
    min-height: 40px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-dark);
    background: var(--bg-light);
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    word-break: break-word;
}

.mm-editable:hover {
    border-color: var(--border-light);
}

.mm-editable:focus {
    border-color: #5f7cff;
    background: var(--bg-white);
}

.mm-editable:empty::before {
    content: attr(data-placeholder);
    color: var(--text-light);
    pointer-events: none;
}

.mm-type-select {
    padding: 8px 10px;
    font-size: 13px;
    cursor: pointer;
    width: auto;
    min-width: 108px;
}

.mm-del {
    font-size: 14px;
    line-height: 1;
}

/* Decisions / notes lists */
.mm-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mm-list-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mm-list-text {
    flex: 1 1 auto;
}

.mm-empty {
    font-size: 14px;
    color: var(--text-light);
    background: var(--bg-light);
    border: 1px dashed var(--border-light);
    border-radius: 8px;
    padding: 16px;
    margin: 0;
    text-align: center;
}

/* Outputs */
.mm-output-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.mm-preview {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 16px;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-dark);
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 420px;
    overflow: auto;
    margin: 0;
}

/* RTL: preview and editable content read right-to-left, but the Markdown/plain
   output stays logically start-aligned which is correct for both directions. */
[dir="rtl"] .mm-table thead th { text-align: start; }

@media (max-width: 768px) {
    .mm-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .mm-type-select {
        min-width: 92px;
    }
}

@media print {
    .mm-card,
    .mm-output-bar,
    .mm-section-head #mmAddActionBtn,
    .mm-del,
    .mm-type-select,
    .tour-help-btn {
        display: none !important;
    }
    .mm-empty { display: none !important; }
}
