/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.button.mode_on {
  border: 3px solid var(--color-brand);
  font-weight: bold;
}

.button.block {
  width: 100%;
  padding:0;
}

.error {
  input {
    border: 1px solid var(--color-error);
  }

  label {
    color: var(--color-error);
  }
}


.action.link_action a{
  display: inline-block;
  padding: 4px 8px;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  text-decoration: none;
  color: var(--color-text);
}

.formtastic .actions {
  padding:0;
  ol {
    display: block;
  }
  .action {
    display: inline-block;
    width: auto;
  }
}

.box .actions {
  ol {
    display: flex;
    flex-direction: row-reverse;
    gap: 10px;
  }

  .action a,
  .action input,
  .action button {
    box-sizing: border-box;
    min-height: 34px;
    padding: 0 12px;
    border: 2px solid var(--color-overlay);
    border-radius: 8px;
    background: var(--color-disabled-surface);
    color: var(--color-text);
    cursor: pointer;
    font-size: 11px;
    line-height: 30px;
    text-decoration: none;
    text-transform: uppercase;
  }

  .action a:hover,
  .action input:hover,
  .action button:hover {
    border-color: var(--color-brand);
    background: var(--color-hover-surface);
    color: var(--color-brand);
  }

  .action input[type="submit"]:hover,
  .action button[type="submit"]:hover {
    border-color: #0e5636;
    background: #0e5636;
    color: var(--color-white);
  }
}

input:disabled, textarea:disabled, select:disabled {
  border: 1px solid var(--color-border);
  background-color: var(--color-disabled-surface);
  color: var(--color-text);
  cursor: not-allowed;
}

.bottom-note {
  border-top: 1px solid var(--color-border);
  padding: 0.5em 0;
  margin-top: 2em;
}


select {
  width: 100%;
  max-width: calc(100% - 10px);
}
