/* Verwaltung → Microsoft 365 (m365.js) */

.m365-state {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand-gray);
    border-radius: var(--radius);
    background: var(--surface);
    display: grid;
    gap: 0.35rem;
}

.m365-state-on {
    border-left-color: var(--brand-red);
}

.m365-state p {
    margin: 0;
}

.m365-state .badge {
    margin-right: 0.4rem;
}

.m365-form h3,
.m365-guide h3 {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
}

.m365-form h3:not(:first-child) {
    margin-top: 1.25rem;
}

.m365-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.m365-check input {
    width: auto;
    min-height: 0;
    margin: 0;
}

.m365-actions {
    padding: 1rem 0 0;
}

.m365-test {
    margin: 1rem 0 0;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-muted, var(--surface));
}

.m365-test-ok {
    border-left: 4px solid #2e7d32;
}

.m365-test-bad {
    border-left: 4px solid var(--brand-red);
}

.m365-test ul {
    margin: 0.4rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.35rem;
}

.m365-test li {
    display: grid;
    grid-template-columns: 1.4rem 1fr;
    gap: 0.4rem;
}

.m365-test li small {
    display: block;
    color: var(--muted, #6d6e70);
}

.m365-step-ok::before {
    content: "✓";
    color: #2e7d32;
    font-weight: 700;
}

.m365-step-warn::before {
    content: "!";
    color: #b26a00;
    font-weight: 700;
}

.m365-step-error::before {
    content: "✗";
    color: var(--brand-red);
    font-weight: 700;
}

.m365-step-skip::before {
    content: "–";
    color: var(--brand-gray);
}

.m365-guide {
    margin-top: 1.25rem;
}

.m365-guide ol {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.6rem;
}

.m365-code {
    margin: 0.4rem 0;
    padding: 0.6rem 0.8rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    border-radius: var(--radius);
    background: var(--surface-muted, #f4f4f4);
    border: 1px solid var(--line);
    font-size: 0.85rem;
}

.m365-calendar {
    margin-top: 1.25rem;
}

.m365-calendar > p.muted {
    margin: 0 0 0.75rem;
}

.m365-cal-users-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0 0.4rem;
}

.m365-cal-users {
    width: 100%;
}

.m365-cal-users input {
    width: auto;
    min-height: 0;
    margin: 0;
}

.m365-cal-error {
    display: block;
    color: var(--brand-red);
}

.m365-cal-status {
    margin: 0.75rem 0 0;
}
