/*
 * @package   solo
 * @copyright Copyright (c)2014-2025 Nicholas K. Dionysopoulos / Akeeba Ltd
 * @license   GNU General Public License version 3, or later
 */

@use "sass:color";

/**
 * Database tables filters
 */
#ak_databases_container {
  padding: 2px 0 6px 0;
}

#ak_tables_header {
  height: 2em;
}

#ak_tables_container {
  display: block;
  width: 100%;
  position: relative;
}

#tables {
  display: flex;
  flex-direction: column;
  //gap: .5em;
  padding: .25em;
  //margin: 0 auto;
  max-width: min(100%, 50em);
  background-color: $white;
  color: $grey;

  .table-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5em;
    padding: .5em .25em .5em .25em;

    font-weight: normal;
    font-family: "Berkeley Mono", "Menlo", "Roboto Mono", "Consolas", "Courier New", monospace;
    font-size: 105%;
    border-bottom: 1px solid lighten($teal, 10%);

    &:last-of-type {
      border-bottom: none;
    }

    &:hover {
      background: $light-grey;
    }

    span.table-icon-container {
      span.ak-toggle-button:before {
        margin-left: -0.45em;
      }
    }

    span.table-name {
      padding-left: 4px;
      flex-grow: 1;
      overflow-x: scroll;
    }

    span.table-rowcount {
      color: $green;
    }

    span.table-icon-noclick {
      cursor: default;
    }

    span.table-icon-small {
      margin-right: 0;
    }

    .btn-danger {
      cursor: not-allowed !important;
    }
  }
}