/* Milestone 11 grouped Month directory and Employee hierarchy refinements */
.m11-month-directory { display: grid; gap: 14px; }
.m11-month-service {
    overflow: hidden;
    border: 1px solid var(--dq-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(23, 63, 77, .05);
}
.m11-month-service-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--dq-line);
    background: #fbfcfd;
}
.m11-month-service-head h2 { margin: 2px 0 0; font-size: 18px; }
.m11-month-service-head > span { color: var(--dq-muted); font-size: 9px; font-weight: 800; }
.m11-month-client-stack { display: grid; gap: 12px; padding: 12px; }
.m11-month-client { border: 1px solid #e3e7ea; border-radius: 8px; overflow: hidden; }
.m11-month-client-head { padding: 10px 12px; background: #fff; border-bottom: 1px solid #eef0f2; }
.m11-month-client-title { display: flex; align-items: center; gap: 9px; }
.m11-month-client-title > div { display: grid; gap: 1px; }
.m11-month-client-title strong { color: var(--dq-text); font-size: 12px; }
.m11-month-client-title small { color: var(--dq-muted); font-size: 8px; }
.m11-month-year-row {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    padding: 11px 12px;
    border-top: 1px solid #f0f2f3;
}
.m11-month-year-row:first-of-type { border-top: 0; }
.m11-month-year { display: flex; flex-direction: column; gap: 2px; padding-top: 5px; }
.m11-month-year strong { font-size: 14px; }
.m11-month-year span { color: var(--dq-muted); font-size: 8px; }
.m11-month-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 8px;
}
.m11-month-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 58px;
    padding: 8px 9px;
    border: 1px solid #dfe4e7;
    border-left: 4px solid #9ca6ad;
    border-radius: 7px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color .12s ease, transform .12s ease, box-shadow .12s ease;
}
.m11-month-card:hover { transform: translateY(-1px); border-color: #b7c5cb; box-shadow: 0 5px 14px rgba(23, 63, 77, .08); }
.m11-month-card.is-active { border-left-color: var(--dq-green); }
.m11-month-card.is-inactive { border-left-color: #d6a02e; background: #fffdf8; }
.m11-month-card.is-closed { border-left-color: #8b949b; background: #f7f8f9; }
.m11-month-card-period { display: grid; justify-items: center; gap: 0; padding-right: 8px; border-right: 1px solid #edf0f1; }
.m11-month-card-period span { color: var(--dq-blue); font-size: 16px; font-weight: 900; line-height: 1; }
.m11-month-card-period strong { margin-top: 2px; color: var(--dq-muted); font-size: 8px; }
.m11-month-card-copy { min-width: 0; display: grid; gap: 2px; }
.m11-month-card-copy strong { overflow: hidden; color: var(--dq-text); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.m11-month-card-copy span { color: var(--dq-muted); font-size: 8px; }
.m11-month-card-state { display: grid; justify-items: end; gap: 2px; }
.m11-month-card-state span { color: #40505a; font-size: 8px; font-weight: 800; }
.m11-month-card-state small { color: var(--dq-muted); font-size: 7px; }

.employee-tree-nav { padding-bottom: 4px; }
.employee-tree-nav > .sidebar-tree-node { margin-top: 3px; }
.employee-tree-month > summary { padding-left: 0; }
.employee-tree-month > summary .sidebar-tree-month { flex: 1; min-width: 0; }
.employee-tree-categories { margin-left: 11px; }
.employee-tree-category > summary { min-height: 27px; }
.employee-tree-category > summary .sidebar-tree-label { font-size: 8px; }
.employee-tree-tasks { margin: 1px 0 4px 9px; border-left: 1px solid rgba(255,255,255,.08); }
.employee-tree-task {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 5px;
    min-height: 27px;
    padding: 4px 6px 4px 9px;
    border-radius: 4px;
    color: rgba(255,255,255,.72);
    font-size: 7.5px;
    text-decoration: none;
}
.employee-tree-task:hover,
.employee-tree-task.is-current { background: rgba(43,156,141,.16); color: #fff; }
.employee-tree-task span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.employee-tree-task small { color: rgba(255,255,255,.52); font-size: 7px; }

@media (max-width: 900px) {
    .m11-month-year-row { grid-template-columns: 1fr; }
    .m11-month-year { flex-direction: row; align-items: baseline; gap: 6px; }
}
