/*
 * VM-Operator
 * Copyright (C) 2023 Michael N. Lipp
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

/*
 * Conlet specific styles.
 */
 
.jdrupes-vmoperator-vmconlet-preview {
  form {
    float: right;
    padding: 0.15em 0.3em;
    border: 1px solid var(--panel-border);
    border-radius: var(--corner-radius);    
  }

  table {
    margin-bottom: 1em;
  }

  .vmsChart-wrapper {
    height: 12em;
  }    
}
 
.jdrupes-vmoperator-vmconlet-view-search {
  display: flex;
  justify-content: flex-end;
  
  form {
    white-space: nowrap;
  }
}

.jdrupes-vmoperator-vmconlet-view-table {
  td {
    vertical-align: top;

    &[tabindex] {
      outline: 1px solid var(--primary);
      cursor: text;
    }
    
    &:not([colspan]):first-child {
      white-space: nowrap;
    }

    &.column-running {
      text-align: center;

      span {
        &.fa-check {
          color: var(--success);
        }

        &.fa-close {
          color: var(--danger);
        }
      }
    }
  }
  
  td.details {
    padding-left: 1em;

    table {
      td:nth-child(2) {
        min-width: 7em;

        input {
          max-width: 5em;
        }  
      }
      
      input~span {
        margin-left: 0.5em;
        color: var(--danger);
      }
    }
  }
}

.jdrupes-vmoperator-vmconlet-view-action-list {
  white-space: nowrap;

  [role=button]:not(:last-child) {
    margin-right: 0.5em;
  }
}
