/* 緊湊模式列表 */
.compact_style_list .table .btn{
    padding: 0.25rem 0.5rem;
}
.compact_style_list .table td{
    padding: 0.25rem 0.5rem;
}
.compact_style_list .card .pro-img {
    width: 100%;
    max-width: 100px;
    max-height: 35px;
}



.compact_style_list .table-text{
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis; /* 如果內容超出，顯示省略號 */
    white-space: nowrap;
}

/* 側邊選單底部：開啟前台 / 會員名稱 / 登出 */
#kt_aside {
    height: 100%;
}

#kt_aside .aside-menu-wrapper {
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#kt_aside #kt_aside_menu {
    height: auto !important;
    max-height: none;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.aside-user-panel {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 15px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #1e1e2d;
}

.aside-user-frontend {
    display: block;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 4px;
    background: #25b7aa;
    transition: background 0.15s ease, color 0.15s ease;
}

.aside-user-frontend:hover {
    color: #fff;
    background: #1ea79b;
    text-decoration: none;
}

.aside-user-frontend-short {
    display: none;
}

.aside-user-name {
    color: #a2a3b7;
    font-size: 0.85rem;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aside-user-logout {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
}

@media (min-width: 992px) {
    .aside-minimize .aside-user-panel {
        padding: 10px 4px 14px;
        align-items: stretch;
    }

    .aside-minimize .aside-user-frontend-full {
        display: none;
    }

    .aside-minimize .aside-user-frontend-short {
        display: inline;
    }

    /* 收折時不顯示帳號名稱 */
    .aside-minimize .aside-user-name {
        display: none;
    }

    .aside-minimize .aside-user-frontend,
    .aside-minimize .aside-user-logout {
        width: 100%;
        font-size: 0.75rem;
        padding: 6px 2px;
    }

    /* hover 展開側邊欄時還原完整文字與帳號 */
    .aside-fixed.aside-minimize-hover .aside-user-panel {
        padding: 12px 15px 16px;
        align-items: stretch;
    }

    .aside-fixed.aside-minimize-hover .aside-user-frontend-full {
        display: inline;
    }

    .aside-fixed.aside-minimize-hover .aside-user-frontend-short {
        display: none;
    }

    .aside-fixed.aside-minimize-hover .aside-user-name {
        display: block;
        font-size: 0.85rem;
        padding: 0;
    }

    .aside-fixed.aside-minimize-hover .aside-user-frontend,
    .aside-fixed.aside-minimize-hover .aside-user-logout {
        width: 100%;
        font-size: 0.9rem;
        padding: 6px 8px;
    }
}

/* 側邊選單：收折 / hover 展開 / 完全展開統一緊湊間距 */
.aside-menu .menu-nav > .menu-item > .menu-link .menu-text-short {
    display: none;
}

@media (min-width: 992px) {
    .aside-menu.my-4 {
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    .aside-menu .menu-nav {
        padding: 6px 0;
    }

    .aside-menu .menu-nav > .menu-item > .menu-link {
        box-sizing: border-box;
        height: 32px;
        min-height: 32px;
        padding: 4px 15px;
    }

    .aside-menu .menu-nav > .menu-item > .menu-link .menu-text,
    .aside-menu .menu-nav > .menu-item > .menu-link .menu-text-short {
        font-size: 0.9rem;
        font-weight: 400;
        line-height: 1.2;
    }

    /* 收折狀態 */
    .aside-minimize .aside-menu .menu-nav > .menu-item > .menu-link {
        display: flex;
        align-items: center;
        justify-content: center;
        padding-left: 2px;
        padding-right: 2px;
    }

    .aside-minimize .aside-menu .menu-nav > .menu-item > .menu-link .menu-text {
        display: none !important;
    }

    .aside-minimize .aside-menu .menu-nav > .menu-item > .menu-link .menu-text-short {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin: 0;
        padding: 0;
        white-space: nowrap;
    }

    /* hover 展開側邊欄 */
    .aside-fixed.aside-minimize-hover .aside-menu .menu-nav > .menu-item > .menu-link {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        height: 32px;
        min-height: 32px;
        padding: 4px 15px;
    }

    .aside-fixed.aside-minimize-hover .aside-menu .menu-nav > .menu-item > .menu-link .menu-text {
        display: flex !important;
        align-items: center;
    }

    .aside-fixed.aside-minimize-hover .aside-menu .menu-nav > .menu-item > .menu-link .menu-text-short {
        display: none !important;
    }

    /* 收折時 hover 單一項目（子選單彈出）維持對齊 */
    .aside-minimize .aside-menu .menu-nav > .menu-item.menu-item-hover > .menu-link {
        height: 32px;
        min-height: 32px;
        padding-top: 4px;
        padding-bottom: 4px;
    }
}

/* 禮服行事曆 */
.dress-calendar-card .card-body {
    padding: 1.25rem;
}

.dress-calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.dress-calendar-toolbar-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.dress-calendar-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dress-calendar-view-toggle .btn {
    min-width: 56px;
}

.dress-calendar-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dress-calendar-title {
    min-width: 120px;
    text-align: center;
    font-weight: 600;
}

.dress-calendar-grid {
    border: 1px solid #ebedf3;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.dress-calendar-weekdays,
.dress-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    user-select: none;
}

.dress-calendar-weekday {
    padding: 10px 6px;
    text-align: center;
    font-weight: 600;
    background: #f3f6f9;
    border-bottom: 1px solid #ebedf3;
    color: #3f4254;
}

.dress-calendar-day {
    min-height: 110px;
    border-right: 1px solid #ebedf3;
    border-bottom: 1px solid #ebedf3;
    padding: 6px;
    cursor: pointer;
    background: #fff;
    transition: background-color 0.15s ease;
}

.dress-calendar-day:nth-child(7n) {
    border-right: none;
}

.dress-calendar-day.is-other-month {
    background: #fafafa;
    cursor: pointer;
}

.dress-calendar-day.is-other-month .dress-calendar-day-num {
    color: #b5b5c3;
}

.dress-calendar-day.is-other-month:hover {
    background: #f3f6f9;
}

.dress-calendar-day.is-today {
    background: #eef6ff;
}

.dress-calendar-day:not(.is-other-month):hover {
    background: #f8fbff;
}

.dress-calendar-day.is-in-range {
    background: #e8f4ff;
}

.dress-calendar-day.is-range-start,
.dress-calendar-day.is-range-end {
    background: #d0ebff;
}

.dress-calendar-day.is-in-range.is-other-month {
    background: #edf5ff;
}

.dress-calendar-day.is-drag-over {
    background: #e1f0ff;
    outline: 2px dashed #3699ff;
    outline-offset: -2px;
}

.dress-calendar-day.is-rented {
    background: #fee2e2 !important;
    cursor: not-allowed;
}

.dress-calendar-day.is-rented.is-other-month {
    background: #fef2f2 !important;
}

.dress-calendar-day.is-rented:not(.is-other-month):hover,
.dress-calendar-day.is-rented.is-other-month:hover {
    background: #fecaca !important;
}

.dress-calendar-day.is-rented .dress-calendar-day-num {
    color: #b91c1c;
    font-weight: 700;
}

.dress-calendar-day.is-rented.is-today .dress-calendar-day-num {
    background: #dc2626;
    color: #fff;
}

.dress-calendar-day.is-rented.is-in-range,
.dress-calendar-day.is-rented.is-range-start,
.dress-calendar-day.is-rented.is-range-end {
    background: #fee2e2 !important;
}

.dress-calendar-grid.is-year-view .dress-calendar-day.is-rented {
    background: #fecaca !important;
}

.dress-calendar-grid.is-year-view .dress-calendar-day.is-rented.is-other-month {
    background: #fee2e2 !important;
}

.dress-calendar-day-num {
    font-size: 13px;
    font-weight: 600;
    color: #3f4254;
    margin-bottom: 4px;
}

.dress-calendar-day.is-today .dress-calendar-day-num {
    display: inline-block;
    min-width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    background: #3699ff;
    color: #fff;
}

.dress-calendar-events {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dress-calendar-event {
    font-size: 11px;
    line-height: 1.3;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.dress-calendar-event.is-dragging {
    opacity: 0.6;
    cursor: grabbing;
}

.dress-calendar-hint {
    margin-top: 12px;
    font-size: 12px;
}

.dress-calendar-grid.is-year-view {
    border: none;
    background: transparent;
    overflow: visible;
}

.dress-calendar-year-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.dress-calendar-year-month {
    border: 1px solid #ebedf3;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.dress-calendar-year-month-title {
    display: block;
    width: 100%;
    border: 0;
    border-bottom: 1px solid #ebedf3;
    background: #f3f6f9;
    color: #3f4254;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 10px;
    text-align: center;
    cursor: pointer;
}

.dress-calendar-year-month-title:hover {
    background: #e8f4ff;
    color: #3699ff;
}

.dress-calendar-grid.is-year-view .dress-calendar-weekday {
    padding: 4px 2px;
    font-size: 11px;
}

.dress-calendar-grid.is-year-view .dress-calendar-day {
    min-height: 34px;
    padding: 2px;
}

.dress-calendar-grid.is-year-view .dress-calendar-day-num {
    font-size: 10px;
    margin-bottom: 1px;
}

.dress-calendar-grid.is-year-view .dress-calendar-day.is-today .dress-calendar-day-num {
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    font-size: 10px;
}

.dress-calendar-grid.is-year-view .dress-calendar-day.is-in-range {
    background: #e8f4ff;
}

.dress-calendar-grid.is-year-view .dress-calendar-day.is-range-start,
.dress-calendar-grid.is-year-view .dress-calendar-day.is-range-end {
    background: #d0ebff;
}

.dress-calendar-grid.is-year-view .dress-calendar-day.is-in-range.is-other-month {
    background: #edf5ff;
}

.dress-calendar-event-dots {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
    min-height: 8px;
}

.dress-calendar-event-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.dress-calendar-tooltip {
    position: absolute;
    z-index: 1060;
    max-width: 320px;
    padding: 10px 12px;
    background: #1e1e2d;
    color: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    font-size: 12px;
    line-height: 1.5;
    pointer-events: none;
}

.dress-calendar-tooltip-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #fff;
}

.dress-calendar-tooltip-row {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}

.dress-calendar-tooltip-row:last-child {
    margin-bottom: 0;
}

.dress-calendar-tooltip-label {
    flex: 0 0 64px;
    color: #a1a5b7;
}

.dress-calendar-tooltip-value {
    flex: 1 1 auto;
    word-break: break-word;
}

.dress-calendar-tooltip-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 8px 0;
}

.dress-calendar-tooltip-hint {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
    font-size: 12px;
    color: #7ec8ff;
}

.dress-calendar-tooltip-block + .dress-calendar-tooltip-divider {
    margin-top: 0;
}

.dress-calendar-event-more {
    font-size: 9px;
    color: #7e8299;
    line-height: 1;
}

@media (max-width: 1199px) {
    .dress-calendar-year-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .dress-calendar-year-grid {
        grid-template-columns: 1fr;
    }
}

/* 總禮服行事曆：工具列禮服篩選 */
.dress-all-calendar-page .dress-calendar-toolbar-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.dress-all-calendar-page .dress-calendar-filter {
    min-width: 220px;
    max-width: 280px;
}

.dress-all-calendar-page .dress-calendar-filter .chosen-container {
    width: 100% !important;
    font-size: 0.875rem;
}

.dress-all-calendar-page .dress-calendar-filter .chosen-container .chosen-single {
    min-height: 32px;
    line-height: 30px;
    border-radius: 0.42rem;
    border-color: #E4E6EF;
}

.dress-all-calendar-page .dress-calendar-filter .chosen-container .chosen-drop {
    z-index: 1050;
}

.dress-all-calendar-page .dress-calendar-toolbar-right .btn {
    margin-right: 0 !important;
}

/* 總禮服行事曆：隱藏上選單、進頁收折側選單 */
body.dress-all-calendar-body.header-fixed.subheader-fixed.subheader-enabled .wrapper,
body.dress-all-calendar-body .wrapper.header-hidden,
.dress-all-calendar-page.header-hidden,
body.dress-spec-body.header-fixed.subheader-fixed.subheader-enabled .wrapper,
body.dress-spec-body .wrapper.header-hidden,
.dress-spec-page.header-hidden {
    padding-top: 0 !important;
}

body.dress-all-calendar-body #kt_header,
body.dress-all-calendar-body #kt_subheader,
.dress-all-calendar-page.header-hidden #kt_header,
.dress-all-calendar-page.header-hidden #kt_subheader,
body.dress-spec-body #kt_header,
body.dress-spec-body #kt_subheader,
.dress-spec-page.header-hidden #kt_header,
.dress-spec-page.header-hidden #kt_subheader {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* 規格管理：避免 .header-hidden .table-responsive { height:auto } 造成表格高度跳動 */
body.dress-spec-body .p-member_category .table-responsive,
.dress-spec-page .table-responsive,
.dress-spec-page.header-hidden .table-responsive {
    height: calc(100vh - 180px) !important;
}

/* 總禮服行事曆：填滿螢幕剩餘高度 */
.dress-all-calendar-page .dress-all-calendar-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.dress-all-calendar-page .dress-all-calendar-card {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    margin-bottom: 0;
}

.dress-all-calendar-page .dress-all-calendar-card > .card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.dress-all-calendar-page .dress-all-calendar-grid {
    flex: 1 1 auto;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dress-all-calendar-page #kt_footer,
body:has(.dress-all-calendar-page) #kt_footer {
    flex-shrink: 0;
}

.dress-all-calendar-page .dress-all-calendar-grid .dress-calendar-weekdays {
    flex: 0 0 auto;
}

.dress-all-calendar-page .dress-all-calendar-grid .dress-calendar-days {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    align-content: stretch;
    grid-auto-rows: 1fr;
}

.dress-all-calendar-page .dress-all-calendar-grid .dress-calendar-day {
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.dress-all-calendar-page .dress-all-calendar-grid .dress-calendar-events {
    min-height: 0;
    overflow: auto;
}

.dress-all-calendar-page .dress-all-calendar-grid.is-year-view {
    overflow: auto;
    display: block;
}

.dress-all-calendar-page .dress-all-calendar-grid.is-day-view {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dress-all-calendar-page .dress-all-calendar-grid.is-day-view .dress-calendar-day-view {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dress-all-calendar-page .dress-all-calendar-grid.is-day-view .dress-calendar-day-view-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.dress-all-calendar-page .dress-all-calendar-grid.is-week-view .dress-calendar-day {
    min-height: 0;
}

.dress-all-calendar-page .dress-calendar-day-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    margin-bottom: 4px;
    min-height: 24px;
}

.dress-all-calendar-page .dress-calendar-day-head .dress-calendar-day-num {
    margin-bottom: 0;
    flex-shrink: 0;
}

.dress-all-calendar-page .dress-calendar-day-count {
    font-size: 11px;
    line-height: 1.2;
    color: #a1a5b7;
    white-space: nowrap;
    font-weight: 600;
}

.dress-all-calendar-page .dress-calendar-day-count.has-count {
    color: #5e6278;
}

.dress-all-calendar-page .dress-calendar-day.is-other-month .dress-calendar-day-count {
    color: #c4cada;
}

.dress-all-calendar-page .dress-calendar-day.is-other-month .dress-calendar-day-count.has-count {
    color: #a1a5b7;
}

.dress-all-calendar-page .dress-all-calendar-grid.is-year-view .dress-calendar-day-head {
    min-height: auto;
    margin-bottom: 2px;
}

.dress-all-calendar-page .dress-all-calendar-grid.is-year-view .dress-calendar-day-count.is-compact {
    font-size: 10px;
    min-width: 14px;
    height: 14px;
    line-height: 14px;
    text-align: center;
    border-radius: 7px;
    background: #eef0f8;
    color: #5e6278;
    padding: 0 3px;
}

/* 總禮服行事曆：有行程時不使用紅底 */
.dress-all-calendar-page .dress-calendar-day.has-rentals,
.dress-all-calendar-page .dress-calendar-day.has-rentals.is-other-month,
.dress-all-calendar-page .dress-calendar-day.has-rentals:not(.is-other-month):hover,
.dress-all-calendar-page .dress-calendar-day.has-rentals.is-other-month:hover,
.dress-all-calendar-page .dress-calendar-grid.is-year-view .dress-calendar-day.has-rentals,
.dress-all-calendar-page .dress-calendar-grid.is-year-view .dress-calendar-day.has-rentals.is-other-month {
    background: transparent !important;
}

.dress-all-calendar-page .dress-calendar-day.has-rentals .dress-calendar-day-num {
    color: inherit;
    font-weight: inherit;
}

.dress-all-calendar-page .dress-calendar-day.has-rentals.is-today .dress-calendar-day-num {
    background: #3699ff;
    color: #fff;
}

.dress-calendar-grid.is-week-view .dress-calendar-day {
    min-height: 220px;
}

.dress-all-calendar-page .dress-calendar-events {
    position: relative;
    overflow: hidden !important;
}

.dress-calendar-event-more-text {
    font-size: 11px;
    color: #3699ff;
    font-weight: 600;
    padding: 1px 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.dress-calendar-event-more-text:hover {
    text-decoration: underline;
}

/* 總禮服行事曆：衝突行程 */
.dress-all-calendar-page .dress-calendar-event.is-conflict,
.dress-all-calendar-page .dress-calendar-event-dot.is-conflict {
    background-color: #F64E60 !important;
    border-color: #F64E60 !important;
    color: #fff;
}

.dress-all-calendar-page .dress-calendar-day-view-item.is-conflict {
    background: #fff5f8;
    border-color: #ffc5ce;
}

.dress-all-calendar-page .dress-calendar-day-view-item.is-conflict .dress-calendar-day-view-title {
    color: #f64e60;
    font-weight: 700;
}

.dress-calendar-grid.is-day-view {
    border: none;
    background: transparent;
    overflow: visible;
}

.dress-calendar-day-view {
    border: 1px solid #ebedf3;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

.dress-calendar-day-view.is-today {
    border-color: #3699ff;
}

.dress-calendar-day-view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #f3f6f9;
    border-bottom: 1px solid #ebedf3;
}

.dress-calendar-day-view-date {
    font-size: 16px;
    font-weight: 700;
    color: #3f4254;
}

.dress-calendar-day-view-count {
    font-size: 13px;
    font-weight: 600;
    color: #b91c1c;
}

.dress-calendar-day-view-empty {
    padding: 48px 16px;
    text-align: center;
    color: #a1a5b7;
}

.dress-calendar-day-view-list {
    display: flex;
    flex-direction: column;
}

.dress-calendar-day-view-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #ebedf3;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.dress-calendar-day-view-item:last-child {
    border-bottom: none;
}

.dress-calendar-day-view-item:hover {
    background: #f8fbff;
}

.dress-calendar-day-view-bar {
    width: 4px;
    border-radius: 4px;
    flex-shrink: 0;
    align-self: stretch;
}

.dress-calendar-day-view-body {
    min-width: 0;
    flex: 1;
}

.dress-calendar-day-view-title {
    font-size: 15px;
    font-weight: 700;
    color: #181c32;
    margin-bottom: 4px;
}

.dress-calendar-day-view-meta {
    font-size: 12px;
    color: #7e8299;
    line-height: 1.5;
}

#scheduleModal {
    padding-top: 72px;
    padding-bottom: 1rem;
}

#scheduleModal .modal-dialog.dress-schedule-modal {
    margin: 0 auto;
}

.dress-schedule-modal {
    max-width: 460px;
    width: calc(100% - 2rem);
}

.dress-schedule-modal .modal-content {
    max-height: calc(100vh - 88px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dress-schedule-modal .modal-header {
    padding: 0.65rem 1rem;
}

.dress-schedule-modal .modal-footer {
    padding: 0.65rem 1rem;
}

.dress-schedule-modal-body {
    overflow-y: auto;
    padding: 0.65rem 1rem;
    flex: 1 1 auto;
}

.dress-schedule-modal-body label {
    margin-bottom: 0.2rem;
    font-size: 0.875rem;
}

.dress-schedule-modal #schedule_form .dress-schedule-field {
    margin-bottom: 0.55rem;
}

.dress-schedule-conflict-msg {
    display: none;
    margin: 0 0 0.45rem;
    padding: 0.4rem 0.55rem;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
    color: #f64e60;
    background: #fff5f8;
    border: 1px solid #ffc5ce;
    border-radius: 4px;
}

/* 禮服搜尋下拉（Chosen）在 modal 內正常展開 */
#scheduleModal .dress-schedule-modal .modal-content {
    overflow: visible;
    max-height: none;
}

#scheduleModal .dress-schedule-modal-body {
    overflow: visible;
}

#scheduleModal #dress_code + .chosen-container {
    width: 100% !important;
}

#scheduleModal #dress_code + .chosen-container .chosen-single {
    min-height: 34px;
    line-height: 32px;
    border-radius: 0.42rem;
    border-color: #E4E6EF;
}

#scheduleModal #dress_code + .chosen-container .chosen-drop {
    z-index: 1060;
    border-color: #E4E6EF;
}

#scheduleModal #dress_code + .chosen-container .chosen-search input {
    width: 100%;
}

.dress-schedule-modal #schedule_form .dress-schedule-field.mb-0 {
    margin-bottom: 0;
}

.dress-schedule-modal .modal-header,
.dress-schedule-modal .modal-footer {
    flex-shrink: 0;
}

.dress-schedule-modal #schedule_form,
.dress-schedule-datetime-group {
    width: 100%;
}

.dress-schedule-modal #schedule_form .form-control {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 34px;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

.dress-schedule-datetime-group .dress-schedule-date,
.dress-schedule-datetime-group .dress-schedule-time,
#scheduleModal #start_date,
#scheduleModal #start_clock,
#scheduleModal #end_date,
#scheduleModal #end_clock {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 34px;
    display: block;
    box-sizing: border-box;
}

.dress-schedule-datetime-group .dress-schedule-date {
    margin-bottom: 4px;
}

#scheduleModal #contract_id {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 34px;
}

#scheduleModal #remark {
    min-height: 56px;
    resize: vertical;
}

/* ace bootstrap.js (BS3) 使用 .tooltip.in；Metronic 主題僅定義 .tooltip.show */
.tooltip.in {
    opacity: 1 !important;
}

.tooltip {
    z-index: 12000 !important;
    pointer-events: none;
}

#dressTable .dress-row-datetime input[type="date"],
#dressTable .dress-row-datetime input[type="time"] {
    width: 100%;
    min-height: 32px;
    box-sizing: border-box;
}

#dressTable .dress-row-datetime input[type="date"] {
    margin-bottom: 4px;
}

/* 禮服規格手風琴（表格內分類列） */
.dress-spec-accordion .dress-spec-group-row {
    background: #f3f6f9;
    cursor: pointer;
    user-select: none;
}

.dress-spec-accordion .dress-spec-group-row > td {
    vertical-align: middle !important;
    border-top: 1px solid #ebedf3;
}

.dress-spec-accordion .dress-spec-group-icon-cell {
    width: 48px;
}

.dress-spec-accordion .dress-spec-group-icon {
    display: inline-block;
    min-width: 1rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    color: #7e8299;
    font-family: Consolas, Monaco, monospace;
}

.dress-spec-accordion .dress-spec-group-toggle {
    font-weight: 600;
    color: #3f4254;
    white-space: nowrap;
}

.dress-spec-accordion .dress-spec-group-row.is-open .dress-spec-group-toggle {
    color: #3699ff;
}

.dress-spec-accordion .dress-spec-group-row.is-open .dress-spec-group-icon {
    color: #3699ff;
}

.dress-spec-accordion .dress-spec-accordion-title {
    letter-spacing: 0.02em;
}

.dress-spec-accordion .dress-spec-group-actions {
    white-space: nowrap;
}

.dress-spec-accordion .dress-spec-item-row > td {
    background: #fff;
}

/* 禮服表單：未選擇時「請選擇」灰色 */
#validation-form select.dress-select-placeholder.is-placeholder,
#validation-form select.dress-select-placeholder:has(option[value=""]:checked) {
    color: #a1a5b7;
}

#validation-form select.dress-select-placeholder option {
    color: #3f4254;
}

#validation-form select.dress-select-placeholder option[value=""] {
    color: #a1a5b7;
}

/* 禮服表單 Chosen */
#validation-form .chosen-container {
    width: 100% !important;
}

#validation-form .chosen-container-multi .chosen-choices {
    min-height: 38px;
    border-radius: 0.42rem;
    border-color: #e4e6ef;
    padding: 4px 6px;
}

#validation-form .chosen-container-single .chosen-single {
    height: 38px;
    line-height: 36px;
    border-radius: 0.42rem;
    border-color: #e4e6ef;
    color: #3f4254;
}

#validation-form .chosen-container-single .chosen-single.chosen-default,
#validation-form .chosen-container-single .chosen-default span {
    color: #a1a5b7;
}

#validation-form .chosen-container-multi .chosen-choices li.search-field input[type="text"] {
    color: #a1a5b7;
}

#validation-form .chosen-container-multi .chosen-choices li.search-field input[type="text"]:focus {
    color: #3f4254;
}
