﻿/* Styles used in forms */

/* Previously commented global styles from the original file:
body { font-family: Arial, Helvetica, sans-serif; max-width:1200px; margin:20px auto; padding:0 10px; }
table { border-collapse: collapse; width:100%; margin-top:10px; }
th, td { border:1px solid #ddd; padding:8px; text-align:left; }
th { background:#f2f2f2; }
*/

form {
  background:  #E8E8E8;
  border: 1px solid #eee;
  padding: 12px;
  /* border-radius: 6px; */
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.row {
  display: flex;
  flex-wrap: wrap;
  //gap: 10px;
}

.col {
  flex: 1 1 250px;
  min-width: 220px;
  padding-right:30px;
}

label {
  font-size: 13px;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

input,
textarea,
select,
button {
  font: inherit;
}

input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=url], input[type=datetime-local],textarea , select {
  // width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  /* border-radius: 10px; */
  background: #fff;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}

.check input {
  width: 20px;
  height: 20px;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  margin-top: 12px;
}

button {
  border: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #111;
  color: #fff;
}

button.btn-secondary {
  background: #444;
}

button.btn-danger {
  background: #b00020;
}

a {
  color: #0b5fff;
  text-decoration: none;
}

a:hover,
a:active {
  text-decoration: underline;
}

a.btn-secondary {
  display: inline-block;
  padding: 12px 14px;
  border-radius: 10px;
  background: #444;
  color: #fff;
  text-decoration: none;
}

.msg {
  border-radius: 12px;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid var(--line);
}

.ok {
  background: #e6ffea;
  border-color: #c6f2c6;
}

.err {
  background: #ffecec;
  border-color: #f2b2b2;
}

.hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.muted {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  vertical-align: top;
}

th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  color: #111;
  background: #fff;
}

.url {
  word-break: break-all;
}

@media (min-width: 720px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}
