/* Broker header (broker panel + public broker pages) and the public broker page. 2026-10-15
   Loaded after style_rtl.css / brk.css, so the rules here win. */

/* header: grey bamsara logo + skyline like /broker, broker logo and name in front */
#header { background: #ffffff url(/images/header.png) repeat-x 370px 0 !important; background-size: auto 105px !important; height: 100px; }
#logo { background: url(/broker/images/logo.png) no-repeat left center !important; background-size: 200px auto !important;
        width: 200px !important; height: 80px !important; float: left; margin: 6px 0 0 0 !important; opacity: .8; }
.transbox { background-color: rgba(234, 88, 0, .78) !important; border-radius: 4px; position: relative; display: inline-block;
            padding: 10px 18px !important; margin: 14px 0 0 12px !important; vertical-align: top; width: auto !important; max-width: 520px; }
.transbox.tb-logo { background: #fff !important; padding: 4px 8px !important; border: 1px solid #e3e8ee; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.transbox.tb-logo img { display: block; max-height: 56px; max-width: 160px; }
#mto, #mtologo { width: auto !important; max-width: 480px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
                 color: #fff; font-size: 19px; font-weight: bold; line-height: 32px; padding: 0 !important; }
#mto a, #mtologo a { color: #fff !important; text-decoration: none; }

/* public broker page */
.cp { color: #333; line-height: 1.9; font-size: 13px; padding: 0 6px 40px; }
.cp a { color: #005881; }
.cp h2 { font-size: 17px; color: #005881; margin: 26px 0 12px; border-bottom: 1px solid #e3e8ee; padding-bottom: 6px; }
.cp-hero { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; background: #f7f9fb; border: 1px solid #e3e8ee;
           border-radius: 8px; padding: 18px 20px; }
.cp-logo { width: 140px; height: 110px; display: flex; align-items: center; justify-content: center; background: #fff;
           border: 1px solid #e3e8ee; border-radius: 6px; overflow: hidden; flex: 0 0 auto; }
.cp-logo img { max-width: 130px; max-height: 100px; }
.cp-logo span { font-size: 40px; color: #005881; font-weight: bold; }
.cp-main { flex: 1 1 320px; min-width: 0; }
.cp-main h1 { font-size: 24px; margin: 0 0 4px; color: #222; }
.cp-meta { color: #777; font-size: 13px; margin-bottom: 8px; }
.cp-desc { margin: 6px 0 12px; }
.cp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.cp-btn { display: inline-block; padding: 9px 18px; border-radius: 5px; border: 1px solid #005881; color: #005881 !important;
          text-decoration: none; font-size: 14px; background: #fff; cursor: pointer; font-family: inherit; }
.cp-btn:hover { background: #eef5fa; }
.cp-btn.cp-primary { background: #ea5800; border-color: #ea5800; color: #fff !important; font-weight: bold; }
.cp-btn.cp-primary:hover { background: #c94b00; }
.cp-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cp-fact { flex: 1 1 200px; background: #fff; border: 1px solid #e3e8ee; border-radius: 6px; padding: 8px 12px; }
.cp-fact b { display: block; color: #777; font-weight: normal; font-size: 12px; }

.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.sp-card { display: block; border: 1px solid #e3e8ee; border-radius: 6px; overflow: hidden; text-decoration: none; color: #333 !important; background: #fff; }
.sp-card:hover { border-color: #005881; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.sp-img { height: 140px; background: #f1f5f9 center/cover no-repeat; display: flex; align-items: center; justify-content: center; color: #889; font-size: 13px; }
.sp-body { padding: 8px 10px; font-size: 13px; line-height: 1.8; }
.sp-body b { color: #005881; }
.sp-muted { color: #888; font-size: 12px; }
.cp-more { margin: 14px 0 0; }

.cp-contact { background: #fff8f3; border: 1px solid #f3d3bd; border-radius: 8px; padding: 16px 20px; }
.cp-contact .cp-grid { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.cp-contact label { flex: 1 1 200px; display: flex; flex-direction: column; font-size: 12px; color: #555; }
.cp-contact label.cp-wide { flex-basis: 100%; }
.cp-contact input, .cp-contact select, .cp-contact textarea { margin-top: 3px; padding: 7px 8px; border: 1px solid #ccd5df; border-radius: 4px;
          font-family: inherit; font-size: 13px; box-sizing: border-box; width: 100%; background: #fff; }
.cp-captcha { display: flex; align-items: center; gap: 8px; }
.cp-captcha img { border: 1px solid #ccd5df; border-radius: 4px; }
.cp-contact #sendMsg { width: auto !important; margin-top: 12px; padding: 10px 28px !important; font-size: 15px !important; }
.cp-contact #reportResult { margin-top: 10px; }
#right.cp { margin-top: 112px; }

/* pencil to change name / logo in the header of /broker/ */
.transbox .hdr-edit { position: absolute; top: -8px; left: -8px; width: 22px; height: 22px; line-height: 22px; text-align: center;
    border-radius: 50%; background: #fff; color: #ea5800 !important; border: 1px solid #ea5800; font-size: 13px; text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,.2); cursor: pointer; }
.transbox .hdr-edit:hover { background: #ea5800; color: #fff !important; }
.transbox.hdr-busy { opacity: .5; }

/* calendar toolbar: keep the arrow glyphs unmirrored in RTL */
#calendar .fc-toolbar .fc-button { direction: ltr; }
#calendar .fc-toolbar h2 { font-size: 18px; }

/* "داشبورد من" / "صفحه آژانس من" for a logged-in broker in the empty menu of the broker headers */
#bghin #nav li.nav-broker { display: inline-block; float: none; vertical-align: top; margin: 22px 0 0 8px; }
#bghin #nav li.nav-broker a { display: inline-block; padding: 7px 12px !important; margin: 0 !important; height: auto !important; line-height: 20px;
    border-radius: 4px; background: #005881 !important; color: #fff !important; font-size: 13px; text-decoration: none; }
#bghin #nav li.nav-broker.current_page_item a { background: #3d87aa; }

/* broker home: search box; the agency name in the header is the <h1> there */
h1#mto { margin: 0; font-size: 19px; line-height: 32px; font-weight: bold; color: #fff; }
.cp-search { background: #fff; border: 1px solid #e3e8ee; border-radius: 8px; padding: 6px 20px 16px; margin-top: 14px; }
.cp-search h2 { margin-top: 10px; }
.cp-search-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.cp-search label { flex: 1 1 160px; display: flex; flex-direction: column; font-size: 12px; color: #555; }
.cp-search select { margin-top: 3px; padding: 7px 8px; border: 1px solid #ccd5df; border-radius: 4px; font-family: inherit; font-size: 13px; background: #fff; }
.cp-search .cp-btn { padding: 9px 26px; }

/* large lettering (headings, agency name, key figures): Arial / Helvetica */
#mto, h1#mto, #mtologo, .cp h2, .cp-main h1, .sp-head h1, .cp-btn.cp-primary, .cp-search .cp-btn,
.bp .bp-title, .bp h4, .bp .bp-sub, .bp .bp-card-value, .bp .bp-monthnav b,
#calendar .fc-toolbar h2, #bghin #nav li.nav-broker a {
    font-family: Arial, Helvetica, sans-serif !important;
}
