/**
 * @license
 * Copyright 2024 Google LLC. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0
 */

/*
 * Optional: Makes the sample page fill the window.
 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/*
 * Prevent a flash of unstyled content before the custom element is defined.
 */
gmp-map:not(:defined) {
    display: none;
}

/*#title {
    color: #fff;
    background-color: #0d6efd;
    font-size: 20px;
    font-weight: 500;
    padding: 6px 12px;
}*/

#infowindow-content {
    display: none;
}

.pac-card {
    /*background-color: #fff;*/
    border-radius: 2px;
    /*box-shadow: 0 1px 4px -1px rgba(0, 0, 0, 0.3);*/
    margin: 10px;
    font: 400 18px Roboto, Arial, sans-serif;
    overflow: hidden;
}

.pac-controls {
    padding: 5px 11px;
}

.pac-controls label {
    font-size: 13px;
    font-weight: 300;
}

#place-picker {
    box-sizing: border-box;
    width: 100%;
    padding: 0.5rem 1rem 0;
}

:root {
    --gmpx-color-primary: #0d6efd; /* 搜索框外边框颜色 */
    --gmpx-font-size-base: 1.5rem; /* 搜索框字体大小 */
}

.form-control {
    border-width: 1px;
    border-radius: 4px;
}

.input-group-addon {
    border-width: 1px;
    border-radius: 4px;
}

.required > label:after {
    right: auto;
}

.ui-dialog .modal-header {
    background-color: #0d6efd;
}



.fiberRequestGrid th:first-of-type {
    z-index: 9999;
}

/* ========== 全屏按钮样式 ========== */

#fullscreenBtn {
    background: #0d6efd !important;
    border: 1px solid #0d6efd !important;
    border-radius: 3px !important;
    color: white !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    padding: 5px 10px !important;
    margin-bottom: 5px !important;
    cursor: pointer !important;
    display: inline-block !important;
    text-align: center !important;
    vertical-align: middle !important;
    user-select: none !important;
    transition: all 0.15s ease-in-out !important;
    line-height: 1.5 !important;
    min-width: 40px !important;
    height: auto !important;
}

#fullscreenBtn:hover {
    background-color: #0b5ed7 !important;
    border-color: #0a58ca !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

#fullscreenBtn:active {
    background-color: #0a58ca !important;
    border-color: #0a53be !important;
    transform: translateY(0) !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
}

#fullscreenBtn:focus {
    outline: none !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25) !important;
}

/* 全屏按钮图标 */
#fullscreenBtn .fullscreen-icon {
    font-size: 16px !important;
    line-height: 1 !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #fullscreenBtn {
        font-size: 12px !important;
        padding: 4px 8px !important;
        min-width: 35px !important;
    }
    
    #fullscreenBtn .fullscreen-icon {
        font-size: 14px !important;
    }
}

/* RTL语言支持 */
[dir="rtl"] #fullscreenBtn {
    margin-left: 5px !important;
    margin-right: 0 !important;
}

/* 在控件槽位中的样式调整 */
gmp-map #fullscreenBtn {
    margin: 5px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;
}


 .modal-title i {
     margin-right: 8px;
 }

.otp-input-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.otp-input {
    width: 48px;
    height: 48px;
    font-size: 20px;
    line-height: 48px;
    text-align: center;
    border: 2px solid #ced4da;
    border-radius: 6px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.otp-panel {
    padding: 12px 16px 20px 16px;
}

.panel-top {
    padding: 6px 0 8px 0;
}

.panel-top .back-link {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 14px;
    padding: 4px 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
}

.panel-top .back-link i {
    font-size: 14px;
    line-height: 1;
    margin-right: 2px;
}

.back-text {
    font-size: 14px;
    color: #6c757d;
    display: inline-block;
    padding: 4px 6px;
    line-height: 1;
}

.otp-header {
    margin-top: 6px;
    margin-bottom: 6px;
    /* 居中标题与副标题 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.otp-title {
    font-size: 22px;
    margin: 0 0 6px 0;
    font-weight: 500;
}

.otp-subtitle {
    color: #6c757d;
    margin-bottom: 12px;
    font-size: 14px;
}

.otp-input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.otp-input.error {
    border-color: #dc3545;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.resend-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.resend-container button {
    background: none;
    border: none;
    padding: 6px 8px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#resend-countdown {
    color: #6c757d;
    margin-left: 6px;
}

.resend-container button:disabled {
    color: #6c757d;
    cursor: not-allowed;
}

.resend-container button:not(:disabled) {
    color: #007bff;
    cursor: pointer;
}

.resend-container button:not(:disabled):hover {
    text-decoration: underline;
}

#otp-mobile-display {
    font-size: 1.1em;
}

#otp-loading {
    margin-top: 20px;
}

#otp-loading i {
    color: #007bff;
}

#otp-error-message {
    text-align: center;
    margin: 10px auto;
}