/* R3.15A3 Tenant Branding */

.branding-page {
    max-width: 980px;
}

.branding-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.branding-heading h2 {
    margin: 2px 0 6px;
    font-size: 20px;
    line-height: 1.25;
}

.branding-heading p {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    color: #7c8791;
}

.branding-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.branding-card {
    background: #fff;
    border: 1px solid #e4e8eb;
    border-radius: 10px;
    padding: 18px;
}

.branding-card-head {
    margin-bottom: 18px;
}

.branding-card-head h3 {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 700;
    color: #17202a;
}

.branding-card-head p {
    margin: 0;
    font-size: 11px;
    line-height: 1.5;
    color: #84909b;
}

.branding-logo-area {
    display: flex;
    align-items: center;
    gap: 18px;
}

.branding-logo-preview {
    width: 104px;
    height: 104px;
    flex: 0 0 104px;
    border: 1px solid #dfe5e8;
    border-radius: 14px;
    background: #f7f9fa;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.branding-logo-preview span {
    font-size: 11px;
    font-weight: 700;
    color: #9aa4ad;
}

.branding-logo-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.branding-logo-actions {
    min-width: 0;
    flex: 1;
}

.branding-logo-actions input[type="file"] {
    display: block;
    width: 100%;
    margin-bottom: 12px;
    font-size: 11px;
}

.branding-field {
    display: block;
}

.branding-field > span {
    display: block;
    margin-bottom: 7px;
    font-size: 11px;
    font-weight: 700;
    color: #49545e;
}

.branding-field input {
    box-sizing: border-box;
    width: 100%;
    height: 40px;
    border: 1px solid #dce2e6;
    border-radius: 7px;
    padding: 0 11px;
    background: #fff;
    color: #17202a;
    font-family: inherit;
    font-size: 12px;
    outline: none;
}

.branding-field input:focus {
    border-color: #8ac9ad;
}

.branding-save-row {
    margin-top: 16px;
}

.branding-primary-button {
    min-height: 36px;
    border: 0;
    border-radius: 7px;
    padding: 0 14px;
    background: #17202a;
    color: #fff;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.branding-primary-button:hover {
    opacity: .9;
}

.branding-primary-button:disabled {
    cursor: default;
    opacity: .55;
}

.branding-status {
    margin-top: 14px;
    border-radius: 7px;
    padding: 10px 12px;
    font-size: 11px;
}

.branding-status.success {
    background: #edf8f2;
    color: #24744e;
}

.branding-status.error {
    background: #fff1f1;
    color: #a74242;
}

.branding-status.hidden {
    display: none;
}

@media (max-width: 820px) {
    .branding-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .branding-logo-area {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* R3.15A6 Tenant Invoice Prefix */

.branding-prefix-help {
    margin-top: 6px;
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 1.5;
    color: #77838f;
}

.branding-prefix-preview {
    margin-bottom: 18px;
    padding: 11px 13px;
    border: 1px solid #e4e8ec;
    border-radius: 9px;
    background: #f6f8f7;
    font-size: 12px;
    color: #697581;
}

.branding-prefix-preview strong {
    margin-left: 4px;
    color: #18222d;
    font-weight: 700;
}

/* R3.15A6-A4 — align Tampilan Toko with admin topbar */

.branding-page {
    box-sizing: border-box;
    margin-left: 30px;
    margin-right: 30px;
}

@media (max-width: 520px) {
    .branding-page {
        margin-left: 16px;
        margin-right: 16px;
    }
}
