/* =========================================================
   Shared styles for Merchant Service & System Access Service views
   ========================================================= */

.edit-element:hover {
    cursor: pointer;
    color: #1E366B;
}

.dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-style: solid;
    border-width: 4px;
    border-radius: 100%;
}

.grey-2 {
    color: #999999 !important;
}

.page-item.active .page-link {
    background-color: rgb(0, 56, 131);
    border-color: rgb(0, 56, 131);
}

.page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(181,211,52,0.25);
}

table.dataTable thead th {
    border-bottom: 0;
}

.border-top-none {
    border-top: none !important;
}

.t-data:hover {
    cursor: pointer;
}

.r {
    border-radius: 2px 2px 2px 2px;
}

.b-a {
    border: 1px solid #dee5e7;
}

.wrapper {
    padding: 15px;
}

.wrapper a {
    color: #2f2f2a;
    text-decoration: none;
    cursor: pointer;
}

input:checked + .slider {
    background-color: #e9c599;
}

/* --- Filter form --- */
.input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 7px;
}

.input-wrapper .form-group {
    margin-bottom: 0 !important;
}

.input-wrapper .form-control {
    width: 180px;
}

.input-wrapper .btn {
    margin-top: 26px !important;
}

.input-wrapper .form-group .btn {
    margin-top: 0 !important;
}

.btn-danger:focus,
.btn-danger.focus,
.btn-danger:not(:disabled):not(.disabled):active:focus {
    box-shadow: none !important;
    outline: none !important;
}

/* --- Service section list (user-menu style) --- */
.service-section-list {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
}

.service-section-list .user-nav-option {
    border-radius: 0;
}

.service-section-list .user-nav-option:first-child {
    border-radius: 12px 12px 0 0;
}

.service-section-list .user-nav-option:hover .user-nav-icon {
    background: #edf7b0;
    color: #8fa022;
}

.service-section-list .user-nav-option:hover .user-nav-label {
    color: #8fa022;
}

.service-section-list .user-nav-option:hover .user-nav-chevron {
    color: #b6d42c;
}

/* --- Developer doc styles --- */
.doc-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 28px;
}

.doc-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgb(0, 56, 131);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.doc-step-body { flex: 1; }
.doc-step-title { font-size: 0.95rem; font-weight: 700; color: #111; margin-bottom: 6px; }
.doc-step-desc { font-size: 0.85rem; color: #555; margin-bottom: 10px; }

.doc-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.doc-badge-post { background: #d4edda; color: #155724; }
.doc-badge-header { background: #fff3cd; color: #856404; }

.doc-endpoint {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f4f6fb;
    border: 1px solid #dde3f0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.82rem;
    font-family: monospace;
    margin-bottom: 10px;
    word-break: break-all;
}

.doc-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    margin-bottom: 8px;
}

pre[class*="language-"] { border-radius: 8px !important; font-size: 0.8rem !important; margin: 0 !important; }

.doc-param-table { width: 100%; font-size: 0.82rem; border-collapse: collapse; margin-bottom: 0; }

.doc-param-table th {
    background: #f4f6fb;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #555;
    padding: 8px 12px;
    border-bottom: 1px solid #e0e0e0;
}

.doc-param-table td { padding: 8px 12px; border-bottom: 1px solid #f0f0f0; vertical-align: top; }
.doc-param-table tr:last-child td { border-bottom: none; }
.doc-param-name { font-family: monospace; color: #1a1a1a; font-weight: 600; }
.doc-required { color: #dc3545; font-size: 0.7rem; font-weight: 700; }
.doc-type { color: #6c757d; font-family: monospace; font-size: 0.78rem; }

.doc-info-box {
    background: #eef3fc;
    border-left: 3px solid rgb(0, 56, 131);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.82rem;
    color: #333;
}

.doc-success-box {
    background: #f0faf2;
    border-left: 3px solid #28a745;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.82rem;
    color: #1a4a25;
}

/* -- Wakanow Airport Dropdowns ----------------------------------------------- */
.ts-wak-option { padding: 2px 0; line-height: 1.3; }
.ts-wak-name   { font-size: 0.88rem; font-weight: 600; color: #1a1a2e; }
.ts-wak-sub    { font-size: 0.76rem; color: #6c757d; margin-top: 1px; }

.wak-airport-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f0f4ff;
    border: 1px solid #c7d5f8;
    border-radius: 8px;
    padding: 10px 14px;
}
.wak-airport-code {
    font-size: 1rem;
    font-weight: 700;
    color: rgb(0, 56, 131);
    min-width: 42px;
    padding-top: 1px;
}
.wak-airport-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.3;
}
.wak-airport-meta {
    font-size: 0.78rem;
    color: #6c757d;
    margin-top: 2px;
}

/* -- Wakanow Flight Cards & Confirm Panel ------------------------------------- */
.wak-flight-card {
    background: #fff;
    border: 1px solid #dde3f0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
    margin-bottom: 6px;
}
.wak-flight-card:last-child {
    margin-bottom: 0;
}
.wak-flight-card:hover {
    border-color: rgb(0, 56, 131);
    box-shadow: 0 2px 10px rgba(0,56,131,0.14);
    background: #eef4ff;
}
.wak-flight-card--dim {
    opacity: 0.45;
}

.wak-flight-col {
    padding: 6px;
}

.wak-select-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #eef4ff;
    border: 1px solid #c7d5f8;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgb(0, 56, 131);
    margin-bottom: 12px;
}

.wak-confirm-panel {
    background: #f0f4ff;
    border: 2px solid rgb(0, 56, 131);
    border-radius: 10px;
    padding: 14px 16px;
}
.wak-confirm-panel__title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgb(0, 56, 131);
    margin-bottom: 10px;
}
.wak-confirm-panel__refund {
    font-size: 0.78rem;
    color: #6c757d;
}
.wak-confirm-panel__price {
    font-size: 1rem;
    font-weight: 700;
    color: #003883;
}

/* -- Wakanow scrollable results list ----------------------------------------- */
.wak-results-list {
    max-height: 420px;
    overflow-y: auto;
    padding: 8px;
    background: #f8f9fc;
    border: 1px solid #dde3f0;
    border-radius: 12px;
}
.wak-results-list::-webkit-scrollbar { width: 5px; }
.wak-results-list::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.wak-results-list::-webkit-scrollbar-thumb { background: #c7d5f8; border-radius: 4px; }
.wak-results-list::-webkit-scrollbar-thumb:hover { background: rgb(0,56,131); }

/* -- Wakanow Flight Card (redesign) ------------------------------------------- */
.wak-fcard {
    background: #fff;
    border: 1px solid #dde3f0;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}
.wak-fcard:hover {
    border-color: rgb(0, 56, 131);
    box-shadow: 0 4px 14px rgba(0, 56, 131, 0.12);
    transform: translateY(-1px);
}
.wak-fcard--dim { opacity: 0.35; transform: none !important; }

/* Payment method selector (service page) */
#payment-method-selector {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.pm-option {
    display: flex;
    align-items: center;
    padding: 13px 16px;
    cursor: pointer;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
    user-select: none;
}
.pm-option:last-child { border-bottom: none; }
.pm-option:hover { background: #fafafa; }
.pm-option.pm-active { background: #eef3ff; }
.pm-radio {
    width: 18px; height: 18px;
    border-radius: 50%;
    border: 2px solid #b0b0b0;
    margin-right: 14px;
    flex-shrink: 0;
    background: #fff;
    transition: border-color 0.15s;
}
.pm-option.pm-active .pm-radio {
    border-color: #003883;
    border-width: 5px;
}
.pm-icon {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px;
    background: #f2f2f2;
    margin-right: 12px;
    flex-shrink: 0;
    font-size: 0.85rem;
    color: #333;
}
.pm-option.pm-active .pm-icon { background: #dce8ff; color: #003883; }
.pm-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a2e;
    letter-spacing: 0.01em;
}
.pm-chevron { margin-left: auto; color: #aaa; font-size: 0.75rem; }
.pm-option.pm-active .pm-chevron { color: #003883; }

/* Header: airline name left, price right */
.wak-fcard__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px 8px;
    background: #f8f9fc;
    border-bottom: 1px solid #eef0f5;
}
.wak-fcard__airline {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.wak-fcard__logo {
    height: 22px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}
.wak-fcard__airline-name {
    font-size: 0.84rem;
    font-weight: 600;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wak-fcard__conn-badge {
    font-size: 0.68rem;
    background: #e8edf8;
    color: rgb(0, 56, 131);
    padding: 1px 7px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}
.wak-fcard__price {
    font-size: 1.05rem;
    font-weight: 700;
    color: rgb(0, 56, 131);
    white-space: nowrap;
    margin-left: 10px;
    flex-shrink: 0;
}

/* Leg: time + animated path line */
.wak-fcard__leg { padding: 10px 14px 6px; }
.wak-fcard__leg--connect {
    border-top: 1px dashed #dde3f0;
    padding-top: 8px;
}
.wak-fcard__connect-label {
    font-size: 0.7rem;
    color: #6c757d;
    margin-bottom: 6px;
}
.wak-fcard__route {
    display: flex;
    align-items: center;
    gap: 6px;
}
.wak-fcard__endpoint { min-width: 48px; }
.wak-fcard__endpoint--right { text-align: right; }
.wak-fcard__time {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1;
}
.wak-fcard__path {
    flex: 1;
    text-align: center;
    min-width: 0;
}
.wak-fcard__path-label {
    font-size: 0.68rem;
    color: #8a96a8;
    line-height: 1.4;
}
.wak-fcard__path-line {
    display: flex;
    align-items: center;
    gap: 3px;
    margin: 3px 0;
}
.wak-fcard__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #b0bace;
    flex-shrink: 0;
}
.wak-fcard__dash {
    flex: 1;
    height: 1.5px;
    background: linear-gradient(to right, #b0bace, #8a96a8);
}
.wak-fcard__plane-icon {
    font-size: 0.9rem;
    color: rgb(0, 56, 131);
    flex-shrink: 0;
    line-height: 1;
}

/* Footer */
.wak-fcard__footer {
    padding: 5px 14px 10px;
}
.wak-fcard__badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 2px 9px;
    border-radius: 10px;
    font-weight: 500;
}
.wak-fcard__badge--yes { background: #e8f5e9; color: #2e7d32; }
.wak-fcard__badge--no  { background: #f3f3f3; color: #757575; }

/* Confirm panel tweaks */
.wak-confirm-panel__airline {
    display: flex;
    align-items: center;
}
