/* Swiss Safe Offshore — flat OS style (no glow) */

#win-offshore-app.ob-window {
    width: 760px;
    height: 580px;
    background: #1e1e1e;
    border: 1px solid #3a3a3a;
    box-shadow: none;
    display: none;
    flex-direction: column;
    font-family: "Segoe UI", "Ubuntu", system-ui, sans-serif;
    color: #d4d4d4;
}

#win-offshore-app.ob-window .w-header.ob-header {
    background: #222 !important;
    border-bottom: 1px solid #3a3a3a !important;
    color: #ccc !important;
    text-shadow: none !important;
    font-family: "Segoe UI", system-ui, sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    height: 36px;
    min-height: 36px;
    padding: 0 12px !important;
}

#win-offshore-app .w-header .w-close {
    color: #999 !important;
    text-shadow: none !important;
}

#win-offshore-app .w-header .w-close:hover {
    color: #fff !important;
}

.ob-header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.ob-header__logo {
    width: 22px;
    height: 22px;
    background: #c9a227;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #1a1a1a;
}

.ob-header__ver {
    font-size: 11px;
    color: #666;
    font-weight: 400;
}

#win-offshore-app .w-content.ob-shell {
    padding: 0 !important;
    background: #1e1e1e !important;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ob-content {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ob-nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #3a3a3a;
    background: #252525;
    flex-shrink: 0;
}

.ob-nav__btn {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-right: 1px solid #333;
    background: transparent;
    color: #888;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background 0.12s, color 0.12s;
}

.ob-nav__btn:last-child { border-right: none; }

.ob-nav__btn:hover {
    background: #2a2a2a;
    color: #ccc;
}

.ob-nav__btn.active {
    background: #1e1e1e;
    color: #c9a227;
    border-bottom: 2px solid #c9a227;
    margin-bottom: -1px;
}

.ob-nav__btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.ob-panel {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 16px;
}

.ob-panel--center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
}

.ob-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #e8e8e8;
}

.ob-sub {
    margin: 0;
    font-size: 12px;
    color: #888;
    line-height: 1.55;
    max-width: 420px;
}

.ob-form {
    width: min(100%, 340px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.ob-label {
    font-size: 10px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ob-input,
.ob-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #3a3a3a;
    background: #141414;
    color: #e8e8e8;
    font-size: 13px;
    font-family: "JetBrains Mono", "Ubuntu Mono", Consolas, monospace;
    box-sizing: border-box;
    outline: none;
}

.ob-input:focus,
.ob-select:focus {
    border-color: #c9a227;
}

.ob-select {
    cursor: pointer;
}

.ob-btn {
    padding: 10px 16px;
    border: 1px solid #3a3a3a;
    background: #2a2a2a;
    color: #e8e8e8;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
}

.ob-btn:hover:not(:disabled) {
    background: #333;
    border-color: #555;
}

.ob-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.ob-btn--primary {
    background: #3d3420;
    border-color: #c9a227;
    color: #c9a227;
}

.ob-btn--primary:hover:not(:disabled) {
    background: #4a3f28;
}

.ob-btn--green {
    border-color: #3ddc84;
    color: #3ddc84;
    background: #1a2a1f;
}

.ob-btn--green:hover:not(:disabled) {
    background: #243528;
}

.ob-btn--block {
    width: 100%;
}

.ob-link {
    background: none;
    border: none;
    color: #888;
    font-size: 11px;
    cursor: pointer;
    text-decoration: underline;
    padding: 4px;
}

.ob-link:hover { color: #ccc; }

.ob-error {
    font-size: 11px;
    color: #ef5350;
    min-height: 16px;
}

/* Dashboard */
.ob-account-card {
    border: 1px solid #3a3a3a;
    background: #252525;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.ob-account-card__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.ob-account-card__label {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ob-account-card__num {
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.04em;
}

.ob-status-dot {
    font-size: 10px;
    color: #3ddc84;
    font-weight: 600;
}

.ob-bal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.ob-bal-box {
    border: 1px solid #3a3a3a;
    background: #141414;
    padding: 12px;
    text-align: center;
}

.ob-bal-box__label {
    font-size: 10px;
    color: #666;
    margin-bottom: 6px;
}

.ob-bal-box__val {
    font-size: 20px;
    font-weight: 700;
    font-family: "JetBrains Mono", Consolas, monospace;
}

.ob-bal-box__val--dirty { color: #c9a227; }
.ob-bal-box__val--clean { color: #3ddc84; }

.ob-section {
    border: 1px solid #333;
    background: #1a1a1a;
    padding: 12px;
    margin-bottom: 12px;
}

.ob-section__title {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ob-section__text {
    margin: 0 0 10px;
    font-size: 11px;
    color: #777;
    line-height: 1.45;
}

.ob-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Launder routes */
.ob-route-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.ob-route {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border: 1px solid #3a3a3a;
    background: #252525;
    cursor: pointer;
    transition: border-color 0.12s, background 0.12s;
}

.ob-route:hover {
    border-color: #555;
    background: #2a2a2a;
}

.ob-route.selected {
    border-color: #c9a227;
    background: #2a2618;
}

.ob-route__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.ob-route__name {
    font-size: 13px;
    font-weight: 600;
    color: #e8e8e8;
}

.ob-route__fee {
    font-size: 11px;
    color: #c9a227;
    font-weight: 600;
}

.ob-route__desc {
    font-size: 10px;
    color: #777;
    line-height: 1.4;
}

.ob-launder-form {
    display: flex;
    gap: 8px;
    align-items: stretch;
    margin-bottom: 12px;
}

.ob-launder-form .ob-input {
    flex: 1;
}

.ob-progress {
    height: 8px;
    background: #141414;
    border: 1px solid #333;
    margin-bottom: 8px;
    overflow: hidden;
}

.ob-progress__fill {
    height: 100%;
    width: 0%;
    background: #c9a227;
    transition: width 0.2s linear;
}

.ob-progress__label {
    font-size: 10px;
    color: #888;
    margin-bottom: 12px;
}

.ob-preview {
    border: 1px solid #333;
    background: #141414;
    padding: 10px 12px;
    font-size: 11px;
    margin-bottom: 12px;
}

.ob-preview__row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    color: #888;
}

.ob-preview__row b { color: #e8e8e8; }
.ob-preview__row--total b { color: #3ddc84; }

/* History table */
.ob-history {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
}

.ob-history th,
.ob-history td {
    padding: 8px 10px;
    border-bottom: 1px solid #333;
    text-align: left;
}

.ob-history th {
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #252525;
}

.ob-history td { color: #aaa; }

.ob-empty {
    text-align: center;
    padding: 24px;
    color: #555;
    font-size: 11px;
}

/* Security writer */
.ob-sec-layout {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    min-height: 0;
}

.ob-sec-levels {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ob-sec-level {
    text-align: left;
    padding: 10px 12px;
    border: 1px solid #3a3a3a;
    background: #252525;
    cursor: pointer;
}

.ob-sec-level:hover { border-color: #555; }

.ob-sec-level__title {
    font-size: 12px;
    font-weight: 600;
    color: #c9a227;
}

.ob-sec-level__desc {
    font-size: 10px;
    color: #666;
    margin-top: 2px;
}

.ob-sec-editor {
    flex: 1;
    min-height: 160px;
    border: 1px solid #333;
    background: #0d0d0d;
    position: relative;
}

.ob-sec-editor textarea {
    width: 100%;
    height: 100%;
    min-height: 160px;
    background: transparent;
    border: none;
    color: #3ddc84;
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 10px;
    padding: 8px;
    box-sizing: border-box;
    resize: none;
    outline: none;
}

.ob-sec-bar {
    height: 6px;
    background: #141414;
    border: 1px solid #333;
}

.ob-sec-bar__fill {
    height: 100%;
    background: #c9a227;
    transition: width 0.1s;
}

#win-offshore-app ::-webkit-scrollbar { width: 6px; }
#win-offshore-app ::-webkit-scrollbar-track { background: #141414; }
#win-offshore-app ::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }
#win-offshore-app ::-webkit-scrollbar-thumb:hover { background: #555; }
