/* Setting ▸ Google Authenticator (Pages/GoogleAuthenticator.razor).

   Company Setting's shape -- a pinned container holding one column of 350px buttons -- so the
   Setting pages read as one set. Its own sheet, prefixed gauth-, like CompanySetting.css is. */

/* Under the shared single-row .top-btns-container, same offsets as .company-setting-container. */
.gauth-container {
    position: fixed;
    top: 7rem;
    bottom: 4rem;
    left: 14.5rem;
    right: 1rem;
    overflow-y: auto;
    transition: left 0.2s ease;
}

.gauth-container.sidebar-collapsed {
    left: 5.5rem;
}

.gauth-column {
    margin-right: 10px;
    padding-bottom: 1rem;
    display: grid;
    grid-template-columns: auto;
    justify-items: start;
    gap: 10px;
}

.gauth-status {
    font-size: 15px;
    font-weight: bold;
    color: #222;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gauth-badge {
    font-size: 12px;
    font-weight: bold;
    padding: 2px 10px;
    border-radius: 99px;
}

.gauth-on { background: #dcfce7; color: #15803d; }
.gauth-paused { background: #fef3c7; color: #b45309; }
.gauth-off { background: #f3f4f6; color: #6b7280; }

.gauth-note {
    max-width: 350px;
    font-size: 12px;
    line-height: 1.5;
    color: #6b7280;
}

/* InvoiceSettings' / Company Setting's button: 35px x 350px, radius and shadow. */
.gauth-btn {
    height: 35px;
    width: 350px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border: 1px solid #b6d4fe;
    border-radius: 6px;
    background: #fff;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: #0d6efd;
    transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}

.gauth-btn:hover:not(:disabled) {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.gauth-btn-danger {
    border-color: #f0b4ba;
    color: #d92d3c;
}

.gauth-btn-danger:hover:not(:disabled) {
    background: #d92d3c;
    border-color: #d92d3c;
}

.gauth-btn:disabled {
    opacity: .45;
    cursor: default;
    box-shadow: none;
}

/* The step in progress, under the buttons. */
.gauth-panel {
    width: 350px;
    box-sizing: border-box;
    margin-top: 6px;
    padding: 14px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    display: grid;
    gap: 10px;
}

.gauth-panel-head {
    font-size: 14px;
    font-weight: bold;
    color: #222;
}

.gauth-steps {
    margin: 0;
    padding-left: 18px;
    font-size: 12px;
    line-height: 1.6;
    color: #374151;
}

/* bwip-js sizes the canvas's bitmap; this only caps how big it is drawn. */
.gauth-qr {
    justify-self: center;
    width: 200px;
    height: auto;
    image-rendering: pixelated;
    border: 1px solid #e5e7eb;
}

.gauth-key-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gauth-key {
    flex: 1;
    padding: 6px 8px;
    border-radius: 6px;
    background: #f3f4f6;
    color: #111827;
    font-size: 13px;
    letter-spacing: .5px;
    word-break: break-all;
}

.gauth-small-btn {
    height: 30px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    font-size: 12px;
    cursor: pointer;
}

.gauth-input {
    width: 160px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 18px;
    letter-spacing: 4px;
    text-align: center;
}

.gauth-input-wide {
    width: 100%;
    letter-spacing: normal;
    text-align: left;
    font-size: 14px;
}

.gauth-mode {
    display: flex;
    gap: 16px;
    font-size: 13px;
}

.gauth-mode label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.gauth-panel-btns {
    display: flex;
    gap: 8px;
}

/* Two equal halves: a global .btn-secondary rule otherwise stretches Cancel past its partner. */
.gauth-panel-btns .btn {
    flex: 1;
    height: 34px;
    padding: 0 10px;
    font-size: 14px;
}

/* Below 700px the sidebar is off-canvas: flow like Company Setting does. */
@media (max-width: 700px) {
    .gauth-container,
    .gauth-container.sidebar-collapsed {
        position: static;
        top: auto;
        bottom: auto;
        left: auto;
        right: auto;
        margin: 0.5rem 1rem 1rem;
    }

    .gauth-column {
        margin-right: 0;
    }

    .gauth-btn,
    .gauth-note,
    .gauth-panel {
        width: 100%;
        max-width: none;
    }
}
