/* ==========================================================================
   Backup / Restore popups (Backup and Restore menus, List of Companies screen)
   ========================================================================== */
.backup-restore-body {
    display: flex;
    flex-direction: column;
    max-width: 450px;
    font-size: 0.9375rem;
}

.restore-mode-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.restore-mode-tab {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.restore-mode-tab:hover {
    background: #f0f0f0;
}

.restore-mode-tab.active {
    background: #e6f2ff;
    border-color: #3399ff;
    color: #3399ff;
}

/* .form-item/.form-item-1 come from the shared CreateAccount.css rules, so
   these fields match the ones in the Create Company popup. */
.restore-new-company {
    padding-top: 5px;
}

.backup-restore-note {
    margin: 0 0 10px;
    color: rgb(105, 105, 105);
    text-align: center;
}

.backup-restore-warning {
    margin: 15px 0 0;
    color: red;
    font-weight: bold;
    text-align: center;
}

.backup-company-list {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 30vh;
    border: 1px solid #d1d1d1;
    border-radius: 5px;
}

.backup-company-list:empty::after {
    content: "No Data Found";
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #cce5ff;
    padding: 24px 0;
}

.backup-company-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #d1d1d1;
    cursor: pointer;
    transition: background 0.2s ease;
    fill: #808080;
}

.backup-company-item:last-child {
    border-bottom: none;
}

.backup-company-item:hover {
    background-color: #e6f2ff;
    font-weight: 500;
}

.backup-company-item.active {
    background-color: #cce5ff;
    font-weight: bold;
    fill: #3399ff;
}

/* Matches ImportFile.css's #file-input, which is bound to that popup's id. */
#restore-file-input {
    width: 350px;
    max-width: 100%;
    color: #444;
    padding: 2px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(8, 8, 8, 0.288);
}

#restore-file-input::file-selector-button {
    margin-right: 20px;
    border: none;
    background: #1b6ec2;
    padding: 10px 20px;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: background .2s ease-in-out;
    font-weight: 500;
}

#restore-file-input::file-selector-button:hover {
    background: #258cfb;
}

#restore-drop-container {
    margin-top: 15px;
}
