.photo7-planning-calendar,
.photo7-planning-events {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
}
.photo7-planning-calendar button,
.photo7-admin .button-primary {
    border-radius: 8px;
    padding: 6px 14px;
    cursor: pointer;
}
.photo7-admin .photo7-panel {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0 24px;
}
.photo7-admin .photo7-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    align-items: end;
}
.photo7-admin label span {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}
.photo7-admin input,
.photo7-admin select,
.photo7-admin textarea {
    width: 100%;
    max-width: 100%;
}
.photo7-admin textarea {
    min-height: 70px;
}
.photo7-admin tr[onclick] {
    cursor: pointer;
}
.photo7-color-dot {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,.15);
    vertical-align: middle;
}
.photo7-pill {
    display: inline-block;
    border-radius: 999px;
    padding: 4px 9px;
    color: #111;
    border: 1px solid rgba(0,0,0,.15);
}
.photo7-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 16px 0;
}
.photo7-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 12px;
    padding: 16px;
}
.photo7-card strong {
    display: block;
    font-size: 28px;
}
.photo7-card span {
    color: #646970;
}
@media (max-width: 700px) {
    .photo7-planning-calendar,
    .photo7-planning-events {
        font-size: 15px;
        padding: 12px;
    }
    .photo7-admin .photo7-grid {
        grid-template-columns: 1fr;
    }
}
.photo7-toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin: 14px 0;
}
.photo7-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    border-bottom: 1px solid #c3c4c7;
    margin: 12px 0 18px;
}
.photo7-tab {
    display: inline-block;
    padding: 9px 12px;
    border: 1px solid #c3c4c7;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    background: #f6f7f7;
    text-decoration: none;
    color: #1d2327;
    font-weight: 600;
}
.photo7-tab.active {
    background: #fff;
    color: #2271b1;
}
.photo7-excel-board {
    display: grid;
    gap: 18px;
}
.photo7-week-sheet {
    display: grid;
    grid-template-columns: minmax(720px, 1fr) 360px;
    gap: 14px;
    align-items: start;
    padding: 12px;
    background: #fff;
    border: 3px solid #111;
    overflow-x: auto;
}
.photo7-sheet-main,
.photo7-sheet-sidebar {
    min-width: 0;
}
.photo7-excel-table,
.photo7-employee-summary {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 12px;
    background: #fff;
}
.photo7-excel-table th,
.photo7-excel-table td,
.photo7-employee-summary th,
.photo7-employee-summary td {
    border: 1px solid #222;
    padding: 4px;
    vertical-align: middle;
    text-align: center;
}
.photo7-excel-table thead th,
.photo7-employee-summary thead th {
    background: #f3f3f3;
    font-weight: 700;
}
.photo7-excel-table .photo7-week-title {
    color: #0645ad;
    background: #fff;
    width: 170px;
}
.photo7-poste-cell {
    background: #f9f9f9;
    text-align: center;
    font-weight: 600;
    width: 170px;
}
.photo7-poste-cell small {
    font-weight: 400;
    font-size: 11px;
}
.photo7-click-cell {
    min-height: 42px;
    height: 42px;
    background-image: linear-gradient(#fff, #fff), linear-gradient(90deg, transparent 97%, rgba(0,0,0,.05) 97%);
    cursor: pointer;
}
.photo7-click-cell:hover {
    outline: 2px solid #2271b1;
    outline-offset: -2px;
}
.photo7-assignment {
    display: block;
    min-height: 32px;
    padding: 3px 4px;
    margin: 1px 0;
    color: #111;
    border: 1px solid rgba(0,0,0,.25);
    text-align: left;
    overflow: hidden;
}
.photo7-assignment strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11px;
}
.photo7-assignment em {
    display: block;
    text-align: right;
    color: #fff;
    font-style: normal;
    text-shadow: 0 1px 1px rgba(0,0,0,.5);
}
.photo7-total-cell,
.photo7-day-totals td,
.photo7-day-totals th {
    font-weight: 700;
    background: #fbfbfb;
}
.photo7-empty-cell {
    height: 54px;
    color: #646970;
    background: #f6f7f7;
}
.photo7-employee-name {
    display: block;
    padding: 5px 6px;
    font-weight: 700;
    border: 1px solid rgba(0,0,0,.25);
}
.photo7-off-cell {
    background: #f5f5f5;
}
.photo7-notes {
    margin-top: 10px;
    min-height: 94px;
    border: 1px solid #222;
    background: #fff2cc;
    padding: 8px;
    font-size: 12px;
}
@media (max-width: 1100px) {
    .photo7-week-sheet {
        grid-template-columns: 1fr;
    }
    .photo7-sheet-sidebar {
        min-width: 760px;
    }
}
@media (max-width: 760px) {
    .photo7-week-sheet {
        padding: 8px;
    }
    .photo7-excel-table,
    .photo7-employee-summary {
        font-size: 11px;
    }
}
