.gma-songs {
  margin: 1rem 0;
  color: #262626;
  font:
    14px/1.45 Arial,
    "Microsoft JhengHei",
    sans-serif;
}
.gma-song-step {
  border-radius: 5px;
  padding: 11px 15px;
  color: #fff;
  background: linear-gradient(100deg, #8a763b, #a38c55, #89773f);
}
.gma-song-step h2 {
  margin: 0;
  color: inherit;
  font-size: 16px;
  font-weight: 700;
}
.gma-song-step p {
  margin: 3px 0 0;
  color: #fff;
  font-size: 13px;
  font-style: italic;
}
.gma-song-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 10px 0 5px;
}
.gma-song-add {
  border: 0;
  border-radius: 3px;
  padding: 9px 28px;
  color: #fff;
  background: #769b3d;
  font-weight: 700;
  cursor: pointer;
}
.gma-song-people {
  margin: 0;
  border-radius: 3px;
  padding: 8px 12px;
  color: #fff;
  background: #31578b;
  font-weight: 700;
}
.gma-song-scroll {
  overflow-x: auto;
  border: 1px solid #3d3523;
}
.gma-song-table {
  width: 100%;
  min-width: 1050px;
  border-collapse: collapse;
  font-size: 13px;
}
.gma-song-table th {
  padding: 10px 7px;
  color: #fff;
  background: #4e452d;
  text-align: center;
  white-space: nowrap;
}
.gma-song-table td {
  padding: 8px 7px;
  border-top: 1px solid #d3d3d3;
  text-align: center;
  vertical-align: middle;
  word-break: break-word;
}
.gma-song-empty {
  text-align: left !important;
}
.gma-song-icon {
  border: 0;
  padding: 3px;
  color: #4d6f23;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}
.gma-song-delete {
  color: #9b3930;
}
.gma-song-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 20px 0 8px;
  color: #666;
}
.gma-song-pagination button {
  min-width: 22px;
  border: 0;
  padding: 2px 4px;
  color: #777;
  background: transparent;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
}
.gma-song-pagination .is-current {
  color: #333;
  text-decoration: underline;
  font-weight: 700;
}
.gma-song-pagination select {
  width: auto;
  min-height: 27px;
  border: 1px solid #a5a5a5;
  border-radius: 0;
  padding: 1px 3px;
  background: #fff;
}
.gma-song-pagination button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
.gma-song-dialog {
  width: min(780px, calc(100vw - 24px));
  max-height: min(90vh, 800px);
  border: 0;
  padding: 0;
  color: #333;
  background: #fff;
  box-shadow: 0 12px 36px rgb(0 0 0 / 0.48);
}
.gma-song-dialog::backdrop {
  background: rgb(0 0 0 / 0.7);
}
.gma-song-modal > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 85px;
  padding: 20px 25px;
  color: #fff;
  background: linear-gradient(105deg, #947a35, #aa9159, #8d783c);
}
.gma-song-modal > header h2 {
  margin: 0;
  color: inherit;
  font-size: 19px;
}
.gma-song-close {
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
}
.gma-song-modal-body {
  overflow: auto;
  max-height: calc(min(90vh, 800px) - 152px);
  padding: 20px 24px 0;
}
.gma-song-modal-note {
  margin: 0 0 15px;
  color: #bd6b26;
  font-size: 16px;
  font-weight: 700;
}
.gma-song-error {
  margin: 0 0 10px;
  padding: 7px 10px;
  border: 1px solid #ca594f;
  color: #9b2a24;
  background: #fff3f1;
}
.gma-song-form {
  width: 698px;
  max-width: 100%;
  border: 1px solid #d6d6d6;
  padding: 16px;
}
.gma-song-form-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  min-height: 46px;
  padding: 6px 17px;
}
.gma-song-form-row:nth-child(odd) {
  background: #f5f5f5;
}
.gma-song-form-row > label,
.gma-song-label {
  text-align: right;
  font-weight: 400;
  white-space: nowrap;
}
.gma-song-form-row input {
  height: 34px;
  border: 1px solid #bdbdbd;
  border-radius: 3px;
  padding: 6px 9px;
  color: #333;
  background: #f7f7f7;
  font: inherit;
}
.gma-song-form-row > input {
  width: 508px;
  max-width: 100%;
  margin-left: 17px;
}
.gma-song-spinner {
  display: flex;
  margin-left: 17px;
}
.gma-song-spinner > input {
  width: 31px;
  height: 41px;
  padding: 4px;
  border-radius: 3px 0 0 3px;
  text-align: center;
}
.gma-song-spinner > span {
  display: grid;
}
.gma-song-spinner button {
  width: 40px;
  height: 20.5px;
  border: 0;
  border-bottom: 1px solid #fff;
  color: #fff;
  background: #769b45;
  cursor: pointer;
  font-size: 20px;
  line-height: 14px;
}
.gma-song-spinner button:first-child {
  border-radius: 0 3px 0 0;
}
.gma-song-spinner button:last-child {
  border-radius: 0 0 3px 0;
}
.gma-song-date {
  display: flex;
  gap: 8px;
  margin-left: 17px;
}
.gma-song-date > input {
  width: 174px;
}
.gma-song-date button {
  width: 40px;
  height: 34px;
  border: 0;
  border-radius: 3px;
  color: #fff;
  background: #769b45;
  cursor: pointer;
  font-size: 18px;
}
.gma-song-pair {
  display: grid;
  grid-template-columns: 233px 14px 233px;
  align-items: center;
  gap: 5px;
  margin-left: 17px;
}
.gma-song-pair input {
  width: 100%;
}
.gma-song-pair span {
  text-align: center;
  font-size: 18px;
}
.gma-song-required {
  margin-right: 2px;
  color: #d5483e;
  font-weight: 700;
}
.gma-song-form-row.has-error input {
  border-color: #c64a43;
  box-shadow: 0 0 0 1px #c64a43;
}
.gma-song-proof {
  align-items: start;
}
.gma-song-proof > .gma-song-label {
  padding-top: 6px;
}
.gma-song-file-list {
  min-height: 32px;
  margin-left: 17px;
}
.gma-song-file-list ul {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gma-song-file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  max-width: 508px;
  padding: 3px 7px;
  border: 1px solid #d1d1d1;
  background: #fff;
}
.gma-song-file-list .is-queued {
  background: #fff7df;
}
.gma-song-file-list button {
  border: 0;
  color: #9b3930;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
}
.gma-song-no-file {
  color: #777;
  font-size: 13px;
}
.gma-song-file-actions {
  display: flex;
  gap: 8px;
  margin: 8px 0 0 17px;
}
.gma-song-file-actions button,
.gma-song-file-pick {
  border: 1px solid #789244;
  border-radius: 2px;
  padding: 6px 13px;
  color: #526d27;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.gma-song-file-actions [data-upload] {
  color: #fff;
  background: #789b45;
}
.gma-song-modal footer {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 15px 24px 40px;
}
.gma-song-modal footer button {
  min-width: 102px;
  border: 1px solid #6e8542;
  border-radius: 3px;
  padding: 9px 20px;
  color: #5e7337;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}
.gma-song-modal footer .gma-song-confirm {
  color: #fff;
  background: #789b45;
}
.gma-song-modal footer button:disabled {
  opacity: 0.55;
  cursor: wait;
}
@media (max-width: 620px) {
  .gma-song-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .gma-song-people {
    font-size: 12px;
  }
  .gma-song-form {
    padding: 8px;
  }
  .gma-song-form-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 9px;
  }
  .gma-song-form-row > label,
  .gma-song-label {
    text-align: left;
  }
  .gma-song-spinner,
  .gma-song-date,
  .gma-song-pair,
  .gma-song-file-list,
  .gma-song-file-actions {
    margin-left: 0;
  }
  .gma-song-pair {
    grid-template-columns: minmax(0, 1fr) 10px minmax(0, 1fr);
  }
  .gma-song-modal-body {
    padding: 16px 12px 0;
  }
}

/* PrimeFaces uses a fixed-height, independently scrollable field pane on wide screens. */
.gma-song-dialog {
  max-height: calc(100dvh - 24px);
  font:
    400 13px/1.4 Arial,
    "Microsoft JhengHei",
    sans-serif;
}
.gma-song-dialog::backdrop {
  background: rgb(0 0 0 / 80%);
}
.gma-song-modal > header {
  background: linear-gradient(100deg, #57431e, #a28a4c);
  box-shadow: inset 0 0 16px #705326;
  border-radius: 4px 4px 0 0;
}
.gma-song-close {
  color: white;
  font: 24px/1 Arial;
  margin-right: 6px;
}
.gma-song-modal-body {
  max-height: none;
  padding: 24px 24px 0;
  overflow: visible;
}
.gma-song-modal-note {
  line-height: 22px;
  font-weight: 650;
  margin: 0 0 16px;
}
.gma-song-form {
  width: 100%;
  height: min(500px, calc(100dvh - 268px));
  overflow: auto;
  scrollbar-width: thin;
  padding: 16px;
}
.gma-song-form-row {
  padding: 6px 0;
  grid-template-columns: 180px minmax(0, 1fr);
}
.gma-song-form-row > label,
.gma-song-label {
  justify-self: end;
  padding: 0 5px;
  font: inherit;
}
.gma-song-dialog .gma-song-form-row input:not([type="file"]) {
  display: block;
  margin-top: 0;
  min-height: 0;
  height: 34px;
  padding: 6px 9px;
  font: inherit;
  color: #495057;
  background: #f2f2f2;
}
.gma-song-form-row > input,
.gma-song-spinner,
.gma-song-date,
.gma-song-pair,
.gma-song-file-list,
.gma-song-file-actions {
  margin-left: 5px;
}
.gma-song-form-row > input {
  width: calc(100% - 10px);
}
.gma-song-dialog .gma-song-spinner input {
  width: 31px;
  height: 41px;
  padding: 4px;
}
.gma-song-spinner {
  gap: 2px;
}
.gma-song-spinner button {
  display: grid;
  align-items: center;
  justify-content: center;
  font-size: 0;
}
.gma-song-spinner button::before {
  content: "";
  width: 7px;
  height: 7px;
  border: solid #fff;
  border-width: 2px 0 0 2px;
  transform: translateY(2px) rotate(45deg);
}
.gma-song-spinner button[data-spin="down"]::before {
  transform: translateY(-2px) rotate(225deg);
}
.gma-song-form-row[data-row="isrc"],
.gma-song-form-row[data-row="mvUrl"] {
  min-height: 64px;
}
.gma-song-form-row[data-row="isrc"] input,
.gma-song-form-row[data-row="mvUrl"] input {
  align-self: start;
}
.gma-song-date input::-webkit-calendar-picker-indicator {
  display: none;
}
.gma-song-date input[data-empty="true"]:not(:focus)::-webkit-datetime-edit {
  opacity: 0;
}
.gma-song-dialog .gma-song-date input {
  width: 174px;
}
.gma-song-pair {
  grid-template-columns: minmax(0, 233px) 13px minmax(0, 233px);
  gap: 0;
  margin-right: 5px;
}
.gma-song-pair span {
  font-size: 14px;
}
.gma-song-modal footer {
  align-items: start;
  min-height: 97px;
  padding: 15px 24px 40px;
}
.gma-song-modal footer button {
  min-height: 40px;
  font-size: 14px;
}
.gma-song-file-actions {
  border: 1px solid #ddd;
  margin-top: 0;
  background: #f7f8fa;
  padding: 16px;
  flex-wrap: wrap;
}
.gma-song-file-list {
  min-height: 54px;
  border: 1px solid #ddd;
  padding: 8px;
}
.gma-song-file-actions button,
.gma-song-file-actions .gma-song-file-pick {
  background: #789848;
  color: white;
  min-height: 45px;
}
.gma-song-file-actions button:disabled {
  opacity: 0.55;
}
.gma-songs {
  margin: 8px 0 0;
}
.gma-song-step {
  min-height: 70px;
  background: #8a7952;
  box-shadow: inset 0 0 9px #63533699;
}
.gma-song-step p {
  margin-top: 6px;
  font-size: 14px;
}
.gma-song-add {
  min-width: 128px;
  min-height: 40px;
  background: #79984c;
}
.gma-song-people {
  background: #39517e;
}
.gma-song-toolbar {
  margin-top: 8px;
}
.gma-song-table {
  min-width: 1360px;
  table-layout: fixed;
}
.gma-song-table th,
.gma-song-table td {
  text-align: left;
}
.gma-song-table th {
  height: 62px;
  background: #574d37;
  white-space: normal;
}
.gma-song-table th:first-child {
  width: 49px;
}
.gma-song-table th:nth-child(2) {
  width: 77px;
}
.gma-song-table th:nth-child(3) {
  width: 99px;
}
.gma-song-table th:nth-child(5) {
  width: 260px;
}
.gma-song-pagination {
  min-height: 79px;
  padding: 18px 0;
  border-bottom: 1px solid #e5e5e5;
}
.gma-song-pagination select {
  appearance: auto;
}
@media (max-width: 720px) {
  .gma-song-form-row {
    grid-template-columns: 1fr;
    padding: 6px;
  }
  .gma-song-form-row > label,
  .gma-song-label {
    justify-self: start;
    padding-left: 0;
  }
  .gma-song-pair {
    grid-template-columns: minmax(0, 1fr) 13px minmax(0, 1fr);
  }
  .gma-song-form {
    padding: 8px;
  }
  .gma-song-modal-body {
    padding: 15px 12px 0;
  }
  .gma-song-modal footer {
    min-height: 60px;
    padding-bottom: 10px;
  }
}
