.poll-form {
    display: grid;
    gap: 10px;
}

.poll-option {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
}

.poll-form.has-voted .poll-option {
    grid-template-columns: 1fr;
}

.poll-option.selected {
    border-color: #00acc1;
    background: #f0fbfd;
}

.poll-option-text {
    font-weight: bold;
}

.poll-option small {
    grid-column: 2;
    opacity: .75;
}

.poll-form.has-voted .poll-option small,
.poll-form.has-voted .poll-bar {
    grid-column: 1;
}

.poll-bar {
    grid-column: 2;
    display: block;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef3f5;
}

.poll-bar span {
    display: block;
    height: 100%;
    min-width: 2px;
    border-radius: inherit;
    background: #00acc1;
}

.poll-total,
.poll-voted {
    margin: 10px 0 0;
    opacity: .8;
}

.poll-admin,
.poll-admin-tools {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.poll-admin label {
    display: grid;
    gap: 4px;
    margin-bottom: 8px;
    font-weight: bold;
}

.poll-admin input {
    padding: 8px;
}

.poll-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
}

.poll-feedback {
    padding: 10px;
    margin-bottom: 12px;
}


/* r559: exacte actieve dropdownlayout van prikbord.html. */
.welcome-poll-panel,
.welcome-poll-panel .welcome-card-header {
    overflow: visible;
}

.welcome-poll-admin-menu.status-post-actions {
    position: relative;
    z-index: 30;
    flex: 0 0 auto;
    margin-left: auto;
}

.welcome-poll-admin-toggle.status-action-toggle {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border: 1px solid #e1e5e8 !important;
    border-radius: 8px !important;
    background: #f7f8f8 !important;
    color: #59615a !important;
    box-shadow: none !important;
    cursor: pointer;
}

.welcome-poll-admin-toggle.status-action-toggle:hover,
.welcome-poll-admin-toggle.status-action-toggle:focus-visible,
.welcome-poll-admin-toggle.status-action-toggle[aria-expanded="true"] {
    border-color: #c9d5c3 !important;
    background: #eef5ea !important;
    color: #3f642f !important;
    outline: 0 !important;
}

.welcome-poll-admin-toggle .dashboard-more-icon {
    width: 22px;
    height: 22px;
}

.welcome-poll-admin-menu .dashboard-ui-icon {
    display: block;
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.welcome-poll-admin-dropdown.status-action-menu {
    position: absolute;
    top: 42px;
    right: 0;
    z-index: 80;
    min-width: 260px;
    padding: 8px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .20), 0 2px 4px rgba(0, 0, 0, .10);
    color: #050505;
}

.welcome-poll-admin-dropdown.status-action-menu[hidden] {
    display: none !important;
}

.welcome-poll-admin-dropdown.status-action-menu button {
    width: 100%;
    min-height: 40px;
    display: flex !important;
    align-items: center !important;
    gap: 12px;
    margin: 0;
    padding: 8px;
    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: #050505 !important;
    font: inherit;
    font-size: .94rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
    box-shadow: none !important;
    cursor: pointer;
}

.welcome-poll-admin-dropdown.status-action-menu button:hover,
.welcome-poll-admin-dropdown.status-action-menu button:focus-visible {
    background: #f0f2f5 !important;
    color: #050505 !important;
    outline: 0;
}

.welcome-poll-admin-dropdown.status-action-menu button:disabled {
    opacity: .45;
    cursor: default;
}

.welcome-poll-admin-dropdown.status-action-menu button:disabled:hover {
    background: transparent !important;
}

.welcome-poll-admin-dropdown.status-action-menu .dashboard-ui-icon {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    padding: 5px;
    border-radius: 50%;
    background: #f0f2f5;
    box-sizing: border-box;
}

@media (max-width: 800px) {
    .welcome-poll-admin-dropdown.status-action-menu {
        right: -4px;
        min-width: min(260px, calc(100vw - 48px));
    }
}

.poll-submit.button {
    width: max-content;
    min-height: 38px;
    margin: 2px 0 0;
    padding: 7px 16px;
}

.poll-total-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.poll-total-row .poll-total {
    margin: 0;
}

.poll-voted-label {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #eaf3e5;
    color: #456b32;
    font-size: .9em;
    font-weight: 700;
}
