/* OneDrive Picker Mode Styles */
.onedrive-mode-active {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 2px 4px rgba(31, 79, 214, 0.3);
}

.onedrive-item-row {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.onedrive-item-row:hover {
    background: #f8fafc;
}

.onedrive-item-row.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.onedrive-item-row.disabled:hover {
    background: transparent;
}

.onedrive-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.onedrive-checkbox:disabled {
    cursor: not-allowed;
}

.onedrive-item-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.onedrive-item-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.onedrive-item-meta {
    font-size: 12px;
    color: #64748b;
}

.onedrive-item-date {
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
    flex-shrink: 0;
}

.onedrive-selected-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #fef9c3;
    border: 1px solid #fde047;
    border-radius: 6px;
    font-size: 12px;
    max-width: 200px;
}

.onedrive-selected-chip span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.onedrive-selected-chip button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    line-height: 1;
    color: #92400e;
}

.onedrive-selected-chip button:hover {
    color: #dc2626;
}

/* Google Drive Picker Mode Styles */
.googledrive-mode-active {
    background: #1a73e8;
    color: #fff;
    box-shadow: 0 2px 4px rgba(26, 115, 232, 0.3);
}

.googledrive-item-row {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.googledrive-item-row:hover {
    background: #f8fafc;
}

.googledrive-item-row.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.googledrive-item-row.disabled:hover {
    background: transparent;
}

.googledrive-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1a73e8;
}

.googledrive-checkbox:disabled {
    cursor: not-allowed;
}

.googledrive-item-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.googledrive-item-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.googledrive-item-meta {
    font-size: 12px;
    color: #64748b;
}

.googledrive-item-date {
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
    flex-shrink: 0;
}

.googledrive-selected-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #fef9c3;
    border: 1px solid #fde047;
    border-radius: 6px;
    font-size: 12px;
    max-width: 200px;
}

.googledrive-selected-chip span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.googledrive-selected-chip button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    line-height: 1;
    color: #92400e;
}

.googledrive-selected-chip button:hover {
    color: #dc2626;
}

/* Dropbox Picker Mode Styles */
.dropbox-mode-active {
    background: #0061FF;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 97, 255, 0.3);
}

.dropbox-item-row {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.dropbox-item-row:hover {
    background: #f8fafc;
}

.dropbox-item-row.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dropbox-item-row.disabled:hover {
    background: transparent;
}

.dropbox-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #0061FF;
}

.dropbox-checkbox:disabled {
    cursor: not-allowed;
}

.dropbox-item-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.dropbox-item-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropbox-item-meta {
    font-size: 12px;
    color: #64748b;
}

.dropbox-item-date {
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
    flex-shrink: 0;
}

.dropbox-selected-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #e0ecff;
    border: 1px solid #80b3ff;
    border-radius: 6px;
    font-size: 12px;
    max-width: 200px;
}

.dropbox-selected-chip span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropbox-selected-chip button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    line-height: 1;
    color: #0047b3;
}

.dropbox-selected-chip button:hover {
    color: #dc2626;
}

/* Box Picker Mode Styles */
.box-mode-active {
    background: #0061D5;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 97, 213, 0.3);
}

.box-item-row {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.box-item-row:hover {
    background: #f8fafc;
}

.box-item-row.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.box-item-row.disabled:hover {
    background: transparent;
}

.box-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #0061D5;
}

.box-checkbox:disabled {
    cursor: not-allowed;
}

.box-item-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.box-item-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.box-item-meta {
    font-size: 12px;
    color: #64748b;
}

.box-item-date {
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
    flex-shrink: 0;
}

.box-selected-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #e0ecff;
    border: 1px solid #80b3ff;
    border-radius: 6px;
    font-size: 12px;
    max-width: 200px;
}

.box-selected-chip span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.box-selected-chip button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    line-height: 1;
    color: #0047b3;
}

.box-selected-chip button:hover {
    color: #dc2626;
}

/* Cloud storage dropdown in tenant rows */
select.btn.btn-ghost {
    appearance: auto;
    padding: 6px 8px;
    font-size: 13px;
}

.grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 16px;
    margin-top: 18px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.card-header h2,
.card-header h3 {
    margin: 0;
}

.hint {
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
}

.section-title {
    font-size: 15px;
    margin: 12px 0 8px;
    color: #0f172a;
}
