:root {
    --mm-primary: #059669;
    --mm-primary-hover: #047857;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --cell-bg: #f8fafc;
    --danger: #ef4444;
}

.main-content {
    padding: 2rem;
    display: flex;
    justify-content: center;
}

.mm-wrapper {
    background-color: #ffffff;
    width: 100%;
    max-width: 900px;
    padding: 3rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.doc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--mm-primary);
    padding-bottom: 1.5rem;
}

.mm-title-section h1 {
    font-size: 2rem;
    color: var(--mm-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.mm-title-input {
    font-size: 1.1rem !important;
    font-weight: 600;
    color: var(--text-main) !important;
    width: 320px;
}

.meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 2rem;
    margin-bottom: 2rem;
}

.meta-field label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.meta-field .hidden-input-inline {
    width: 100%;
    box-sizing: border-box;
    display: block;
}

.hidden-input, .hidden-input-inline {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-main);
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    padding: 0.25rem;
    border-radius: 0.25rem;
}

textarea.hidden-input { resize: none; width: 100%; }
.hidden-input:hover, .hidden-input:focus, .hidden-input-inline:hover, .hidden-input-inline:focus {
    border-color: var(--border);
    background: var(--cell-bg);
}

.attendees-section {
    margin-bottom: 2rem;
}
.attendees-section h3, .agenda-section h3, .action-section h3 {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}
.attendees-input {
    min-height: 60px;
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.5;
}

.agenda-section {
    margin-bottom: 2rem;
}

.agenda-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.agenda-item {
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem;
    background: var(--cell-bg);
    position: relative;
}

.agenda-item-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.agenda-number {
    font-weight: 700;
    color: var(--mm-primary);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.agenda-topic-input {
    flex: 1;
    font-weight: 600;
    background: #ffffff;
    border-color: var(--border) !important;
}

.agenda-notes-input {
    min-height: 70px;
    font-size: 0.875rem;
    color: var(--text-muted);
    background: #ffffff;
    border-color: var(--border) !important;
    width: 100%;
}

.agenda-item .btn-delete {
    margin-left: auto;
}

.action-section {
    margin-bottom: 2rem;
}

.table-responsive { overflow-x: auto; margin-bottom: 1rem; }

.action-table {
    width: 100%;
    border-collapse: collapse;
}

.action-table th, .action-table td {
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0.5rem;
    text-align: left;
    vertical-align: top;
}

.action-table th {
    background-color: var(--cell-bg);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

.col-task { width: 50%; }
.col-owner { width: 22%; }
.col-due { width: 22%; }
.col-action { width: 6%; border: none !important; }

.btn-delete {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
}
.btn-delete:hover { color: var(--danger); background: #fee2e2; }

.notes-section {
    margin-top: 2rem;
}
.notes-section h3 {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}
.notes-input {
    min-height: 100px;
    font-size: 0.875rem;
    color: var(--text-muted);
    width: 100%;
}

.mm-actions .btn-primary {
    background-color: var(--mm-primary);
}
.mm-actions .btn-primary:hover {
    background-color: var(--mm-primary-hover);
}

@media print {
    body { background: white; }
    .hide-in-pdf { display: none !important; }
    .main-content { padding: 0; }
    .mm-wrapper { box-shadow: none; padding: 0; }
    .hidden-input, .hidden-input-inline { border: none !important; background: transparent !important; }
    .agenda-item { background: transparent !important; border: 1px solid var(--border) !important; break-inside: avoid; }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .main-content { padding: 1rem; }
    .mm-wrapper { padding: 1.5rem; min-width: unset; }
    .doc-header { flex-direction: column; gap: 1rem; }
    .meta-grid { grid-template-columns: 1fr; }
    .agenda-item-header { flex-wrap: wrap; }
}
