/* Desktop-only booking card. The mobile card has its own stylesheet. */
@media (min-width: 761px) {
  .admin-hour-grid { gap: 12px; }

  .admin-hour-row--booking {
    display: block;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #e7e7e2;
    border-left: 6px solid #f1ad80;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(31, 39, 46, .06);
  }

  .admin-hour-row--booking.is-paid { border-left-color: #70bd63; }

  .admin-hour-row--booking summary {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 250px minmax(0, 1fr) auto 32px;
    gap: 22px;
    align-items: center;
    min-height: 78px;
    padding: 14px 52px 14px 24px !important;
    background: #fff;
    cursor: pointer;
  }

  .admin-hour-row--booking[open] summary { border-bottom: 1px solid #e9e9e5; }

  .admin-hour-row--booking summary::after {
    right: 22px;
    color: #263144;
    font-size: 20px;
    line-height: 1;
  }

  .admin-hour-row--booking summary > span {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    padding-right: 22px;
    border-right: 1px solid #e8e8e4;
    color: #202938;
    font-size: 19px !important;
    white-space: nowrap;
  }

  .admin-hour-row--booking summary > span::before,
  .admin-hour-row--booking summary b::before,
  .admin-hour-row--booking summary em::before {
    content: "";
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    background-color: #f0f8ee;
    background-repeat: no-repeat;
    background-position: center;
  }

  .admin-hour-row--booking summary > span::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='21' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='8.2' fill='none' stroke='%234f9449' stroke-width='1.8'/%3E%3Cpath d='M12 7.5V12l3 2' fill='none' stroke='%234f9449' stroke-linecap='round' stroke-width='1.8'/%3E%3C/svg%3E");
  }

  .admin-hour-row--booking.is-pending summary > span::before,
  .admin-hour-row--booking.is-pending summary b::before { background-color: #fff3ea; }

  .admin-hour-row--booking summary b {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    color: #202938;
    font-size: 16px !important;
    line-height: 1.35;
  }

  .admin-hour-row--booking summary b::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='21' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='3.4' fill='none' stroke='%234f9449' stroke-width='1.8'/%3E%3Cpath d='M5.5 19c.8-3.2 3.2-5 6.5-5s5.7 1.8 6.5 5' fill='none' stroke='%234f9449' stroke-linecap='round' stroke-width='1.8'/%3E%3C/svg%3E");
  }

  .admin-hour-row--booking.is-pending summary b::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='21' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='3.4' fill='none' stroke='%23e87825' stroke-width='1.8'/%3E%3Cpath d='M5.5 19c.8-3.2 3.2-5 6.5-5s5.7 1.8 6.5 5' fill='none' stroke='%23e87825' stroke-linecap='round' stroke-width='1.8'/%3E%3C/svg%3E");
  }

  .admin-hour-row--booking .admin-hour-phone {
    display: block;
    margin-top: 2px;
    color: #77808d;
    font-size: 15px;
    white-space: nowrap;
  }

  .admin-hour-row--booking summary em {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #283243;
    font-size: 16px;
    white-space: nowrap;
  }

  .admin-hour-row--booking summary em::before {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 50%;
    background-image: url("/icons/studio.svg");
    background-size: 20px;
  }

  .admin-hour-details {
    display: grid !important;
    grid-column: auto;
    grid-template-columns: 125px 140px minmax(125px, .85fr) minmax(220px, 1.5fr) minmax(220px, 1fr) !important;
    grid-template-rows: auto auto auto;
    gap: 10px 28px !important;
    align-items: start !important;
    padding: 24px !important;
    border-top: 0;
  }

  /* Desktop-only: these two values are already shown in the header.
     To restore the columns, remove this rule and restore the five-column grid above. */
  .admin-hour-details > .admin-hour-client-detail,
  .admin-hour-details > div:nth-child(2) {
    display: none !important;
  }

  .admin-hour-details {
    grid-template-columns: minmax(150px, .8fr) minmax(360px, 2.3fr) minmax(240px, 1fr) !important;
  }

  .admin-hour-details > div:nth-child(3) { grid-column: 1; grid-row: 1 / 3; }
  .admin-hour-details > div:nth-child(4) { grid-column: 2; grid-row: 1 / 3; }
  .admin-hour-details > div:nth-child(5) { grid-column: 3; grid-row: 1; }
  .admin-hour-details > .admin-hour-status { grid-column: 3; grid-row: 2; }

  .admin-hour-details > div {
    gap: 9px;
    min-width: 0;
  }

  .admin-hour-details small {
    color: #818791;
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
  }

  .admin-hour-details > .admin-hour-client-detail { grid-column: 1; grid-row: 1 / 3; }
  .admin-hour-details > div:nth-child(2) { grid-column: 2; grid-row: 1 / 3; }
  .admin-hour-details > div:nth-child(3) { grid-column: 3; grid-row: 1 / 3; }
  .admin-hour-details > div:nth-child(4) { grid-column: 4; grid-row: 1 / 3; }
  .admin-hour-details > div:nth-child(5) {
    grid-column: 5;
    grid-row: 1;
    padding-left: 26px;
    border-left: 1px solid #e9e9e5;
  }

  .admin-hour-details > .admin-hour-status {
    grid-column: 5;
    grid-row: 2;
    align-items: flex-start;
    padding-left: 26px;
    border-left: 1px solid #e9e9e5;
  }

  /* Three-column desktop layout after hiding duplicated client and hall fields. */
  .admin-hour-details > div:nth-child(3) { grid-column: 1 !important; grid-row: 1 / 3 !important; }
  .admin-hour-details > div:nth-child(4) { grid-column: 2 !important; grid-row: 1 / 3 !important; }
  .admin-hour-details > div:nth-child(5) {
    grid-column: 3 !important;
    grid-row: 1 !important;
    padding-left: 26px;
    border-left: 1px solid #e9e9e5;
  }

  .admin-hour-details > .admin-hour-status {
    grid-column: 3 !important;
    grid-row: 2 !important;
    padding-left: 26px;
    border-left: 1px solid #e9e9e5;
  }

  .admin-hour-details strong,
  .admin-hour-details > div:nth-child(4) span {
    color: #202938;
    font-size: 16px;
    line-height: 1.4;
  }

  .admin-hour-details > div:nth-child(5) strong { font-size: 24px; line-height: 1.1; }

  .admin-hour-details > div:nth-child(3) a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: max-content;
    max-width: 100%;
    color: #354154;
    text-decoration: none;
    border: 0;
  }

  .admin-hour-details .admin-contact-link::before {
    content: "";
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
  }

  .admin-hour-details .admin-contact-link--telegram::before { background-image: url("/icons/telegram.svg"); }
  .admin-hour-details .admin-contact-link--instagram::before { background-image: url("/icons/instagram.svg"); }

  .admin-hour-comment-empty span { color: #737b85 !important; }

  .admin-hour-details > div:nth-child(4):not(.admin-hour-comment-empty) > span {
    padding: 10px 12px;
    border: 1px solid #dce8d8;
    border-radius: 7px;
    background: #f6faf4;
  }

  .admin-hour-addons {
    display: grid;
    gap: 5px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e8eee5;
  }

  .admin-hour-addons small {
    color: #6f7c6e;
    font-size: 12px;
  }

  .admin-hour-addons span {
    color: #344635;
    font-size: 14px;
    line-height: 1.4;
  }

  .admin-hour-status .booking-status {
    padding: 7px 13px;
    border-radius: 18px;
    font-size: 14px;
  }

  .admin-hour-status form { margin-top: 8px; }
  .admin-hour-status .timeline-paid-button { padding: 10px 13px; border-radius: 7px; }

  .admin-hour-details > .admin-hour-actions {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin: 10px -24px -24px;
    padding: 18px 24px;
    border-top: 1px solid #e9e9e5;
  }

  .admin-hour-actions a,
  .admin-hour-actions button.danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 158px;
    min-height: 42px;
    padding: 9px 16px !important;
    border: 1px solid #c8cdd3 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #384456 !important;
    text-decoration: none !important;
  }

  .admin-hour-actions a::before { content: "✎"; margin-right: 8px; }

  .admin-hour-actions button.danger {
    border-color: #f05c55 !important;
    color: #d7443c !important;
  }

  .admin-hour-actions button.danger::before { content: "⌫"; margin-right: 8px; }
}
