@use '../global/common' as global;

/* ------------------------------
 メニュー管理
------------------------------- */
#js-admin-menu-edit {
  // ヘッダー
  .acms-menu-lane-sort {
    margin: 0 5px 0 0;

    @include global.font-size(10);
  }

  .acms-menu-lane-title-inner {
    position: relative;
    z-index: 1;
    display: inline-block;
    min-width: 100px;
    min-height: 10px;
  }

  .acms-menu-lane-title-edit-icon {
    display: none;
  }

  .acms-menu-lane-title-inner:hover .acms-menu-lane-title-edit-icon {
    display: inline;
    margin: 0 0 0 10px;
  }

  .acms-menu-lane-done-btn {
    margin: 0 0 0 5px;
  }

  .acms-menu-card-item {
    display: flex;
  }

  .acms-menu-card-sort {
    margin-top: 5px;
    margin-right: 5px;
    color: global.$acms-color-gray90;

    @include global.font-size(16);
  }

  .acms-menu-card-edit-btn {
    position: absolute;
    top: 5px;
    right: 5px;
  }

  .acms-menu-card-icon {
    margin-right: 5px;
  }

  .acms-menu-card-name {
    font-weight: bold;
    line-height: 2;

    @include global.font-size(13);
  }

  .acms-menu-field-label {
    display: block;
    margin-bottom: 2px;
    font-weight: bold;

    @include global.font-size(12);
  }

  // カード表示（折りたたみ時のタイトル行）
  .acms-menu-card-title {
    padding: 5px 50px 5px 5px;

    @include global.font-size(14);

    line-height: 1.8;
  }

  // 編集フォーム共通
  .acms-menu-card-inner {
    padding: 5px;
  }

  .acms-menu-card-row {
    margin-bottom: 8px;
  }

  // レーンヘッダーの削除ボタン・タイトル編集トグル
  .acms-menu-lane-remove-btn {
    position: absolute;
    top: 8px;
    right: 5px;
    color: global.$acms-color-gray70;
    appearance: none;
    background-color: transparent;
    border: none;

    @include global.font-size(16);

    &:hover {
      color: global.$acms-color-gray80;
    }
  }

  .acms-menu-lane-title-toggle {
    position: relative;
    display: inline-block;
    padding: 0;
    font-weight: bold;
    line-height: 1.3;
    color: inherit;
    text-align: left;
    outline: none;
    background: transparent;
    border: none;
    transition: background-color linear 0.15s;

    @include global.font-size(11);

    &:disabled {
      opacity: 1;
    }
  }
}
