.bulk-toolbar{padding:16px 24px;border-bottom:1px solid var(--border);background:#f6fbfd}
.bulk-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start}
.bulk-actions .btn{font-size:12px;min-height:40px}
.bulk-selection{display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin-top:14px;font-size:12px}
.bulk-selection label{display:flex;align-items:center;gap:8px;min-height:36px;cursor:pointer}
.bulk-selection input,.office-pick input,.bulk-confirm-box input{width:18px;height:18px;accent-color:#026890;flex-shrink:0}
.office-pick{display:flex;align-items:center;justify-content:center;min-width:32px;min-height:44px;cursor:pointer}
.bulk-template-menu{position:relative;z-index:5}
.bulk-template-menu summary{list-style:none;cursor:pointer}
.bulk-template-menu summary::-webkit-details-marker{display:none}
.bulk-template-menu>div{position:absolute;right:0;min-width:190px;display:grid;gap:7px;background:white;border:1px solid var(--border);padding:10px;border-radius:12px;box-shadow:0 8px 24px #013d571a}
.bulk-dialog{box-sizing:border-box;width:min(1050px,calc(100vw - 40px));height:min(880px,calc(100dvh - 40px));max-height:calc(100dvh - 40px);padding:0;border:1px solid var(--border);border-radius:18px;background:white;color:var(--ink);box-shadow:0 24px 80px #013d5733;overflow:hidden}
.bulk-dialog[open]{display:flex;flex-direction:column}
.bulk-dialog::backdrop{background:#0c263b80;backdrop-filter:blur(3px)}
.bulk-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 28px;border-bottom:1px solid var(--border);flex-shrink:0}
.bulk-header h2{margin:6px 0 0;font-size:23px;line-height:1.25}
.bulk-header .icon-btn{flex-shrink:0;min-width:44px;min-height:44px}
.bulk-body{padding:24px 28px;overflow:auto;min-height:0;overscroll-behavior:contain;flex:1}
.bulk-footer{border-top:1px solid var(--border);padding:16px 28px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0;background:white}
.bulk-footer>p{font-size:11px;color:var(--muted);line-height:1.6;margin:0;max-width:270px}
.bulk-footer>div{display:flex;gap:10px;flex-wrap:wrap}
.bulk-dialog .btn{min-height:44px;white-space:normal;text-align:center;justify-content:center}
.bulk-dialog .field input,.bulk-dialog .field select,.bulk-dialog .field textarea{width:100%;min-width:0;box-sizing:border-box}
.bulk-dialog .field label{display:block;margin-bottom:7px;font-size:12px;font-weight:600}
.bulk-dialog .field textarea{min-height:100px;resize:vertical}
.bulk-dialog .field input,.bulk-dialog .field select{min-height:44px}
.bulk-dialog .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.bulk-note{background:#edf8ff;border:1px solid #cbe7fb;border-radius:12px;padding:16px;display:flex;gap:12px;align-items:flex-start;font-size:13px;line-height:1.65;margin-bottom:20px}
.bulk-note svg{width:20px;height:20px;flex-shrink:0;margin-top:2px}
.bulk-section{border:1px solid var(--border);border-radius:12px;padding:0 20px;margin:16px 0;background:white}
.bulk-section>summary{cursor:pointer;font-size:15px;font-weight:650;padding:18px 0;min-height:44px}
.bulk-section[open]{padding-bottom:20px}
.bulk-help{font-size:12px;color:var(--muted);line-height:1.7;margin:12px 0}
.bulk-section h3{font-size:14px;margin:18px 0 8px}
.bulk-day{display:grid;grid-template-columns:100px 1.1fr 1fr 1fr;gap:14px;align-items:center;padding:14px 0;border-bottom:1px solid var(--border)}
.bulk-day>strong{font-size:13px}
.bulk-day .field{margin:0;min-width:0}
.bulk-repeat{padding:16px;background:#f7fafc;border:1px solid var(--border);border-radius:10px;margin:12px 0}
.bulk-repeat-heading{display:flex;gap:12px;align-items:flex-end}
.bulk-repeat-heading .field{flex:1;min-width:0}
.bulk-repeat .bulk-day{grid-template-columns:1.1fr 1fr 1fr;border-bottom:0;padding-bottom:0}
.bulk-repeat .bulk-day>strong{display:none}
.bulk-photo-actions{display:grid;grid-template-columns:190px 1fr;gap:14px;align-items:center;font-size:12px}
.bulk-photo-actions span{overflow-wrap:anywhere}
.bulk-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:22px}
.bulk-counts>div{border:1px solid var(--border);padding:20px 14px;border-radius:12px;background:#f7fbfd;display:flex;flex-direction:column;gap:6px}
.bulk-counts strong{font-size:28px}.bulk-counts span{font-size:12px;color:var(--muted)}
.bulk-changes>details{border:1px solid var(--border);border-radius:10px;margin:10px 0;overflow:hidden}
.bulk-changes summary{padding:16px;font-size:13px;font-weight:600;cursor:pointer;background:#f8fafc}
.bulk-changes summary small{color:var(--muted);margin-left:10px}
.bulk-diff{display:grid;grid-template-columns:130px 1fr 1fr;gap:14px;padding:16px;border-top:1px solid var(--border);font-size:12px}
.bulk-diff small{display:block;color:var(--muted);margin-bottom:6px}.bulk-diff p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;max-height:230px;overflow:auto}
.bulk-confirm-box{border:1px solid #badce9;background:#eefaff;border-radius:12px;padding:20px;margin-top:24px;font-size:13px;line-height:1.7}
.bulk-confirm-box h3{margin:0 0 10px;font-size:17px}.bulk-confirm-box label{display:flex;gap:10px;align-items:center;font-weight:650;min-height:44px}
.bulk-errors{border:1px solid #ebc5bf;border-radius:12px;padding:0 16px;max-height:320px;overflow:auto;font-size:13px;line-height:1.6}
.bulk-errors p{padding-bottom:12px;border-bottom:1px solid #eee}
.bulk-import-card{text-align:center;border:2px dashed #c2dce8;border-radius:16px;padding:30px 24px;background:#f8fcfe}
.bulk-import-card h3{font-size:21px;margin:14px 0 8px}.bulk-import-card p{max-width:550px;margin:0 auto 20px;font-size:13px;line-height:1.7;color:var(--muted)}
.bulk-import-card .btn{display:inline-flex;cursor:pointer}.bulk-import-icon svg{width:35px;height:35px;color:#026890}
.bulk-import-card strong,.bulk-import-card small{display:block;overflow-wrap:anywhere;margin-top:14px;font-size:12px}.bulk-import-card small{color:var(--muted)}
.bulk-downloads{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}
.bulk-instructions{font-size:13px;line-height:1.8;padding-left:20px}.bulk-instructions li{margin-bottom:10px}
.bulk-working{display:flex;align-items:center;gap:12px;padding:14px;background:#edf8ff;margin-bottom:16px;font-size:13px}
.bulk-history-row{display:flex;justify-content:space-between;align-items:center;gap:20px;border:1px solid var(--border);padding:20px;border-radius:12px;margin:12px 0}
.bulk-history-row strong,.bulk-history-row small{display:block;margin-bottom:10px}.bulk-history-row small,.bulk-history-row p{font-size:12px;color:var(--muted);line-height:1.7}.bulk-history-actions{display:flex;gap:8px;flex-shrink:0}
.bulk-result{text-align:center;max-width:580px;padding:45px 10px;margin:auto}.bulk-result p{font-size:14px;line-height:1.8;color:var(--muted)}.bulk-result-icon svg{width:48px;height:48px;color:#026890}
@media(max-width:760px){.bulk-toolbar{padding:16px}.bulk-actions>.btn,.bulk-actions>.bulk-template-menu{flex:1 1 140px}.bulk-template-menu>.btn{justify-content:center}.bulk-selection{gap:10px 16px}.bulk-dialog{width:calc(100vw - 20px);height:calc(100dvh - 20px);max-height:calc(100dvh - 20px);border-radius:14px}.bulk-header,.bulk-body{padding:18px}.bulk-header h2{font-size:20px}.bulk-footer{padding:14px 18px;flex-direction:column;align-items:stretch;gap:8px}.bulk-footer>p{max-width:none;font-size:10px}.bulk-footer>div{justify-content:flex-end}.bulk-footer .btn{font-size:12px;flex:1;min-width:0;padding:10px}.bulk-day{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.bulk-day>strong{grid-column:1/-1}.bulk-dialog .field input,.bulk-dialog .field select,.bulk-dialog .field textarea{font-size:16px;padding:10px}.bulk-section{padding-inline:12px}.bulk-diff{grid-template-columns:1fr 1fr;gap:10px}.bulk-diff>strong{grid-column:1/-1}.bulk-counts{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.bulk-counts>div{padding:14px}.bulk-counts strong{font-size:24px}.bulk-repeat{padding:10px}.bulk-history-row{align-items:stretch;flex-direction:column;gap:10px}.bulk-history-actions .btn{flex:1}.bulk-photo-actions{grid-template-columns:1fr}.bulk-dialog .form-grid{gap:14px}.bulk-import-card{padding:24px 15px}}
@media(max-width:480px){.bulk-dialog .form-grid{grid-template-columns:1fr}.bulk-day,.bulk-repeat .bulk-day{grid-template-columns:1fr 1fr}.bulk-day .field:first-of-type{grid-column:1/-1}.bulk-repeat-heading{flex-wrap:wrap}.bulk-repeat-heading .field{flex:1 1 130px}.bulk-downloads{display:grid}.bulk-diff{grid-template-columns:1fr}.bulk-note{padding:12px;font-size:12px}.bulk-import-card h3{font-size:18px}}
