@import "./lib/page.scss";
@import "./lib/table.css";

@import "@patternfly/patternfly/components/Alert/alert.scss";
@import "./lib/ct-card.scss";

/* Style the list cards as ct-cards */
.pf-c-page__main-section > .pf-c-card {
    @extend .ct-card;
}

/* Create a hybrid popover with an alert style */
.ct-popover-alert .pf-c-popover__content {
    @extend .pf-c-alert;
    @extend .pf-m-danger;
    display: block;
    box-shadow: none;
}

/* Also style the hybrid popover alert title like an alert */
.ct-popover-alert .pf-c-title {
    @extend .pf-c-alert__title;
    font-size: inherit;
}

.machines-multivalue-column {
    &-label {
        border-radius: var(--pf-global--BorderRadius--sm);
        margin-right: var(--pf-global--spacer--md);
        background: var(--pf-global--BackgroundColor--300);
        color: var(--pf-global--Color--300);
    }

    &-label,
    &-value {
        font-size: var(--pf-global--FontSize--sm);
    }
}

.machines-network-source-descr {
    color: var(--ct-color-subtle-copy);
    text-align: right;
    padding: 5px 10px 5px 10px !important;
}

.machines-network-source-value {
    padding: 5px 10px 5px 10px !important;
    text-align: left !important;
}

.machines-listing-actions {
    display: flex;
    justify-content: flex-end;
    margin: -0.25rem 0;
}

.machines-listing-actions > button {
    margin: 0.25rem 0 0.25rem 0.5rem;
}

#vcpus-tooltip.pficon-pending, #boot-order-tooltip.pficon-pending,
.machines-disks .pficon-pending, .pficon-ok{
    margin-left: 0.5rem;
}

.pficon-pending {
    color: #ec7a08;
    font-size: 16px;
}

.pf-c-modal-box__footer .pficon-pending, .pficon-warning-triangle-o, .pficon-ok {
    line-height: inherit;
    margin-right: 0.5rem;
}

.pf-c-dropdown__menu-item.pf-m-danger {
    color: var(--pf-global--danger-color--200);
}

.pf-c-table {
    .btn-group {
        align-items: center;
    }

    > tbody > tr:not(.pf-c-table__expandable-row) > [data-label=Actions] .pf-c-button {
        // vertical: compensate for padding; fixing alignment
        // horizontal: add some needed padding
        margin:  -0.25rem 0.25rem;
    }
}

.machines-connection-selector > .pf-c-radio:first-child {
    padding-right: var(--pf-global--spacer--md);
}

// Limit width for GiB/MiB dropdowns and inputs
.ct-machines-select-unit, .ct-machines-size-input {
    max-width: 5rem;
}
