/* MES 폼·버튼: shared styles grouped by publishing role. */

/* resources/css/common.css */
@scope (html:has(meta[name="mes-style-surface"][content="app"], meta[name="mes-style-surface"][content="login"])) {
/* 🔥 검색 영역 */
.search-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);

    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;

    display: flex;
    gap: 20px;
    align-items: center;
}

/* 🔥 input */
.form-control {
    background-color: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
}

/* 🔥 버튼 */
.btn-search {
    background: #2f6fed;
    color: #ffffff;
    font-weight: 700;
    border: none;
    padding: 8px 25px;
    border-radius: 6px;
}
}

/* resources/css/common.css */
@scope (html:has(meta[name="mes-style-surface"][content="app"], meta[name="mes-style-surface"][content="login"])) {
.mes-filter-panel {
    padding: 12px;
    display: grid;
    gap: 10px;
    align-items: end;
    justify-content: start;
}

.mes-filter-panel label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-dim);
    margin-bottom: 4px;
}
}

/* resources/css/common.css */
@scope (html:has(meta[name="mes-style-surface"][content="app"], meta[name="mes-style-surface"][content="login"])) {
.mes-grid-search {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0;
}

.mes-grid-search input {
    width: 260px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    outline: none;
}

.mes-grid-search input::placeholder {
    color: #94a3b8;
}

.mes-grid-search input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.14);
}

.mes-grid-search button {
    min-width: 80px;
    height: 34px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
}
}

/* resources/css/button.css */
@scope (html:has(meta[name="mes-style-surface"][content="app"], meta[name="mes-style-surface"][content="login"])) {
/* =========================================
   🔥 네온 버튼 스타일 (추가)
========================================= */

/* 기본 버튼 */
.neon-btn {
    background: transparent !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;

    width: 70px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;
    transition: all 0.25s ease;

    padding: 0; /* 🔥 bootstrap 패딩 제거 */
}

/* 아이콘 */
.neon-btn i {
    font-size: 14px;
    pointer-events: none;
}

/* hover 네온 효과 */
.neon-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);

    box-shadow:
        0 0 5px var(--accent-cyan),
        0 0 10px var(--accent-cyan),
        0 0 20px rgba(34, 211, 238, 0.5);

    transform: translateY(-1px);
}

/* 클릭 효과 */
.neon-btn:active {
    transform: scale(0.95);
    box-shadow:
        0 0 5px var(--accent-cyan),
        inset 0 0 10px rgba(34, 211, 238, 0.4);
}

/* 등록 (파랑) */
.neon-btn.btn-primary:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);

    box-shadow:
        0 0 5px var(--accent-blue),
        0 0 10px var(--accent-blue),
        0 0 20px rgba(59, 130, 246, 0.5);
}

/* 수정 (노랑) */
.neon-btn.btn-warning:hover {
    border-color: #facc15;
    color: #facc15;

    box-shadow:
        0 0 5px #facc15,
        0 0 10px #facc15,
        0 0 20px rgba(250, 204, 21, 0.5);
}

/* 삭제 (빨강) */
.neon-btn.btn-danger:hover {
    border-color: #ef4444;
    color: #ef4444;

    box-shadow:
        0 0 5px #ef4444,
        0 0 10px #ef4444,
        0 0 20px rgba(239, 68, 68, 0.5);
}


/* hover 시 표시 */
.neon-btn:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(3px);
}



/* =========================================
   🔥 최종 색상 통일 (등록=저장 / 삭제=닫기)
========================================= */

/* 👉 등록 + 저장 = 파랑 */
.neon-btn.btn-primary:hover,
.neon-btn.btn-success:hover {
    border-color: var(--accent-blue) !important;
    color: var(--accent-blue) !important;

    box-shadow:
        0 0 5px var(--accent-blue),
        0 0 10px var(--accent-blue),
        0 0 20px rgba(59, 130, 246, 0.5) !important;
}

/* 👉 삭제 + 닫기 = 빨강 */
.neon-btn.btn-danger:hover,
.neon-btn.btn-secondary:hover {
    border-color: #ef4444 !important;
    color: #ef4444 !important;

    box-shadow:
        0 0 5px #ef4444,
        0 0 10px #ef4444,
        0 0 20px rgba(239, 68, 68, 0.5) !important;
}

/* 👉 수정 (노랑 유지할거면 그대로 두고, 아니면 파랑으로 통일 가능) */
.neon-btn.btn-warning:hover {
    border-color: #facc15 !important;
    color: #facc15 !important;

    box-shadow:
        0 0 5px #facc15,
        0 0 10px #facc15,
        0 0 20px rgba(250, 204, 21, 0.5) !important;
}

/* 👉 신규 생성 / 적용 (초록 네온) */
.neon-btn.btn-add:hover {
    border-color: #22c55e !important;
    color: #22c55e !important;

    box-shadow:
        0 0 5px #22c55e,
        0 0 10px #22c55e,
        0 0 20px rgba(34, 197, 94, 0.5) !important;
}

.neon-link {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);  
    color: var(--text-dim);
    transition: all 0.25s ease;
}

/* 🔥 hover 네온 */
.neon-link:hover {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);

    box-shadow:
        0 0 6px rgba(34, 211, 238, 0.4),
        0 0 12px rgba(34, 211, 238, 0.2);
}

/* 클릭 느낌 */
.neon-link:active {
    transform: scale(0.96);
}

/* 아이콘도 같이 */
.neon-link:hover i {
    color: var(--accent-cyan);
}

/* 🔥 기본 상태에서도 색 유지 */
.neon-btn.btn-primary {
    color: #2f6fed !important;
}

.neon-btn.btn-warning {
    color: #f59e0b !important;
}

.neon-btn.btn-danger {
    color: #ef4444 !important;
}

/* 아이콘도 같이 */
.neon-btn.btn-primary i {
    color: #2f6fed;
}

.neon-btn.btn-warning i {
    color: #f59e0b;
}

.neon-btn.btn-danger i {
    color: #ef4444;
}

/* 🔥 엑셀 버튼 전용 */
.reset-btn {
    width: 80px !important;
    height: 36px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    font-size: 13px;
    font-weight: 700;
    color: #64748b !important;
    background: transparent !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.reset-btn:hover {
    color: #64748b !important;
    border-color: #94a3b8 !important;
    box-shadow:
        0 0 5px rgba(148, 163, 184, 0.8),
        0 0 10px rgba(148, 163, 184, 0.55),
        0 0 20px rgba(148, 163, 184, 0.35) !important;
    transform: translateY(-1px);
}

.reset-btn:active {
    transform: scale(0.96);
    box-shadow:
        0 0 5px rgba(148, 163, 184, 0.75),
        inset 0 0 10px rgba(148, 163, 184, 0.3) !important;
}

.excel-btn {
    width: 118px;
    color: #22c55e !important; /* 녹색 */
    border: 1px solid #22c55e !important;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

/* hover 효과 */
.excel-btn:hover {
    background: rgba(34, 197, 94, 0.15);
    box-shadow: 0 0 6px #14d159;
    color: #00e654 !important;
}

/* 통합 등록 버튼은 수정·삭제 버튼과 같은 너비를 사용합니다. */
.excel-btn.registration-btn {
    width: 70px;
}
}

/* resources/css/user-autocomplete.css */
@scope (html:has(meta[name="mes-style-surface"][content="app"])) {
.worker-select-wrap {

    position: relative;

    width: 100%;
}

.worker-dropdown {

    position: absolute;

    top: calc(100% + 4px);

    left: 0;

    right: 0;

    width: 100%;
    height: 150px;

    max-height: 220px;

    overflow-y: auto;

    background: #ffffff;

    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 10px;

    z-index: 9999;

    display: none;

    box-shadow:
        0 4px 12px rgba(0,0,0,0.25);
}

.worker-option {

    padding: 3px 14px;

    cursor: pointer;

    background: #ffffff;

    border-bottom: 2px solid #f1f5f9;

    transition:
        background 0.15s ease,
        transform 0.12s ease;
}

.worker-option:hover {

    background: #f8fafc;
}

/* 메인 텍스트 */
.worker-option-name {

    color: #0f172a;

    font-weight: 700;

    font-size: 14px;
}

/* 서브 텍스트 */
.worker-option-sub {

    font-size: 12px;

    color: #64748b;

    margin-top: 4px;
}

/* 마지막 라인 제거 */
.worker-option:last-child {

    border-bottom: none;
}
}
