/* Managed databases: list, create page and detail (dist/managed-db.js). Builds on console-pages.css. */
.db-logo{display:block;object-fit:contain}
.op-ic .db-logo{width:18px;height:18px}
.cp-resource-symbol .db-logo{width:22px;height:22px}
.cp-instance-name .db-logo{width:26px;height:26px}
.user-console .db-table{min-width:720px}
.user-console .db-table th:first-child{width:44%}
.user-console .db-table td:last-child{text-align:right}
.db-table td small{display:block}
.db-orders{border-bottom:1px solid #e7ebf2}
.db-order-line{display:flex;align-items:center;gap:13px;padding:16px 22px;background:#fffaf0;border-bottom:1px solid #f1e6cc}
.db-order-line:last-child{border-bottom:0}
.db-order-line>svg{width:19px;height:19px;color:#b7791f;flex:none}
.db-order-line>span{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.db-order-line b{font-size:13px;font-weight:500;overflow-wrap:anywhere}
.db-order-line small{font-size:11px;color:#7a6a45}
.db-engine-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.db-engine-choice{align-items:center}
.db-engine-choice>span:last-child{display:flex;flex-direction:column;gap:5px}
.db-engine-choice b{margin:0!important;font-size:15px!important;font-weight:500!important;color:#031b4e!important}
.db-engine-choice small{font-size:12px;color:#617a9e;line-height:1.7}
.cp-plan-choice>span.db-engine-logo{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:8px;background:#f2f5fa}
.db-engine-choice:has(input:checked)>span.db-engine-logo{background:#e7f0ff}
.db-plan-grid .cp-plan-body em{font-style:normal;font-size:12px;color:#617a9e}
.db-conn-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:0 14px}
.db-conn-grid>div{min-width:0}
.cp-copy-field code{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.db-copy-actions{display:flex;align-items:stretch;align-self:stretch;flex:none}
.db-copy-actions .cp-reveal{padding:0 14px;font-size:12px}
.db-meters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.db-meter>div{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.db-meter span{font-size:12px;color:#6980a3}
.db-meter b{font-size:24px;font-weight:500;color:#031b4e}
.db-meter>i{display:block;height:6px;border-radius:6px;background:#edf1f7;margin:10px 0 8px;position:relative;overflow:hidden}
.db-meter>i::after{content:"";position:absolute;inset:0 auto 0 0;width:var(--w);background:#0069ff;border-radius:6px}
.db-meter.warm>i::after{background:#e5a00d}
.db-meter.hot>i::after{background:#d64545}
.db-meter small{font-size:11px;color:#7486a4}
.db-sampled{margin:18px 0 0}
.db-access-state{display:flex;gap:10px;align-items:start;padding:12px 14px;border-radius:3px;background:#edf8f1;color:#12684a;font-size:12px;line-height:1.8;margin-bottom:18px}
.db-access-state.open{background:#fff7e6;color:#8a5a00}
.db-access-state svg{width:17px;height:17px;flex:none;margin-top:3px}
#db-access textarea{font:13px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;width:100%;resize:vertical}
.db-maint{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.db-maint select{min-height:35px;border:1px solid #c5d0df;border-radius:3px;padding:6px 10px;font-size:12px;background:#fff;color:#031b4e}
.cp-setting-line>span>span{display:block}
.db-progress .op-steps li{padding-bottom:4px}
.cp-state.db-failed{color:#b73444;background:#fdf0f1}
.cp-state.db-failed i{background:#d64545}
.db-trial-note{color:#8a5a00}
@media(max-width:900px){.db-engine-grid{grid-template-columns:1fr}.db-meters{grid-template-columns:1fr;gap:18px}}
@media(max-width:600px){.db-conn-grid{grid-template-columns:1fr}.db-order-line{flex-wrap:wrap;padding:14px 16px}.db-order-line .btn{margin-left:32px}}
.db-ca-line{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:14px 0 0}.db-ca-line .text-link{display:inline-flex;align-items:center;gap:6px}.db-ca-line svg{width:15px;height:15px}.db-ca-line small{font-size:11px;color:#7486a4}
/* Bare metal */
.bm-chips span+span::before{content:" · ";color:#8a9ab3}
.bm-public .bm-pub-tabs{margin-bottom:18px}
.bm-pub-table{min-width:760px}
.bm-pub-table td{vertical-align:top}
.bm-pub-table td small{display:block;font-size:11px;color:#6a7e9d;margin-top:3px}
.bm-pub-table td strong{font-size:16px}
.bm-pub-table tr.bm-soldout td{color:#8b99ae}
.bm-pub-table tr.bm-soldout strong{color:#8b99ae}
.bm-city{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.bm-city svg,.bm-city img{width:20px;height:14px}
.bm-offer-list .cp-plan-choice{align-items:center}
.bm-offer-list .cp-plan-choice b{display:block;margin:4px 0 0;font-size:13px;color:#031b4e;font-weight:500}
.bm-offer.bm-soldout{opacity:.62;cursor:not-allowed;background:#f7f8fb}
.bm-offer .cp-soldout{flex-shrink:0}
.bm-image-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
.bm-image-grid .cp-plan-choice{min-height:58px;padding:13px 14px}
.bm-image-grid .cp-plan-choice b{margin:0;font-size:13px;color:#031b4e;font-weight:500}
.bm-reinstall{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:14px}
.bm-reinstall select{min-height:38px;border:1px solid #8a9bb6;border-radius:2px;padding:6px 10px;background:#fff;color:#031b4e;font-size:13px}
.cp-instance-head-actions .btn svg{width:15px;height:15px}
@media(max-width:600px){.bm-image-grid{grid-template-columns:1fr 1fr}.bm-offer-list .cp-plan-choice{align-items:start}}
.bm-public .table-scroll{position:relative;max-width:100%;overflow-x:auto}.bm-public{min-width:0;max-width:100%}
