:root {
  --black: #000;
  --dark: #111;
  --mid: #666;
  --light: #999;
  --border: #ddd;
  --bg: #fff;
}

/* Base */
body {
  margin: 0;
  background: var(--bg);
  color: var(--dark);
  font-family: "Georgia", "Times New Roman", serif;
}

/* Typography */
.brand,
.context,
.meta {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.brand {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
}

.lens-title {
  font-size: 28px;
  color: var(--dark);
}

.context {
  font-size: 13px;
  color: var(--mid);
}

.meta {
  font-size: 12px;
  color: var(--light);
}

/* Borders */
.masthead,
.context,
.meta {
  border-color: var(--border);
}

/* ========== Login Page ========== */

.login-page {
  height: 100vh;
}

.login-wrapper {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: 360px;
  padding: 28px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.login-brand {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
}

.login-title {
  font-size: 22px;
  margin: 6px 0 20px;
}

.login-card form {
  display: flex;
  flex-direction: column;
}

.login-card label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  color: var(--mid);
  margin-bottom: 16px;
}

.login-card input {
  width: 100%;
  padding: 8px 6px;
  margin-top: 6px;
  border: 1px solid var(--border);
  font-size: 14px;
  background: var(--bg);
}

.login-card input:focus {
  outline: none;
  border-color: var(--dark);
}

.login-button {
  margin-top: 8px;
  padding: 10px;
  background: var(--dark);
  color: #fff;
  border: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  cursor: pointer;
}

.login-button:hover {
  background: var(--black);
}

/* Bloomberg-style select */
.filter-inline select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-color: #f7f7f7;
    border: 1px solid #cfcfcf;
    border-radius: 3px;

    padding: 6px 28px 6px 10px;
    font-size: 14px;
    font-family: inherit;
    color: #111;

    line-height: 1.4;
    cursor: pointer;

    background-image: 
        linear-gradient(45deg, transparent 50%, #555 50%),
        linear-gradient(135deg, #555 50%, transparent 50%);
    background-position:
        calc(100% - 16px) 55%,
        calc(100% - 11px) 55%;
    background-size:
        5px 5px,
        5px 5px;
    background-repeat: no-repeat;
}

/* Select styled to match login button theme */
.filter-inline select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-color: #fff;
    border: 1px solid #000;
    border-radius: 4px;

    padding: 7px 28px 7px 10px;
    font-size: 14px;
    font-family: inherit;
    color: #000;

    cursor: pointer;

    background-image:
        linear-gradient(45deg, transparent 50%, #000 50%),
        linear-gradient(135deg, #000 50%, transparent 50%);
    background-position:
        calc(100% - 16px) 55%,
        calc(100% - 11px) 55%;
    background-size:
        5px 5px,
        5px 5px;
    background-repeat: no-repeat;
}

/* Hover state */
.filter-inline select:hover {
    background-color: #fff;
    border-color: #000;
}

/* Focus state: sharp, no glow */
.filter-inline select:focus {
    outline: none;
    background-color: #fff;
    border-color: #000;
}

.filter-inline input {
  width: 100%;
  padding: 8px 6px;
  margin-top: 6px;
  border: 1px solid var(--dark);   /* fixed */
  font-size: 14px;
  background: var(--bg);
}

.search-loading {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Ccircle cx='25' cy='25' r='20' stroke='%23999' stroke-width='4' fill='none' stroke-linecap='round' stroke-dasharray='90 150' stroke-dashoffset='0'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='1s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.ui-autocomplete {
    max-height: 240px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #ccc;
    background: #fff;
    z-index: 10000;
}

.ui-menu-item-wrapper {
    padding: 6px 10px;
}

.ui-state-active {
    background: #1976d2;
    color: #fff;
}


.custom-dialog-overlay{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.45);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
}

.custom-dialog{
    background:#fff;
    border-radius:6px;
    width:380px;
    padding:20px;
    box-shadow:0 6px 18px rgba(0,0,0,0.25);
}

.dialog-title{
    font-size:18px;
    font-weight:600;
    margin-bottom:10px;
}

.dialog-message{
    font-size:14px;
    color:#444;
    margin-bottom:20px;
}

.dialog-btn{
    background:#111;
    color:#fff;
    border:none;
    padding:8px 18px;
    cursor:pointer;
}

.project-search-wrapper{
    display:flex;
    align-items:center;
    gap:8px;
}

.spinner-small{
    display:none;
    width:24px;
    height:24px;
    min-width:24px;
    min-height:24px;

    border:2px solid #ccc;
    border-top:2px solid #111;
    border-radius:50%;

    animation:spin 0.7s linear infinite;

    flex-shrink:0;      /* prevents flex distortion */
    box-sizing:border-box;
}

@keyframes spin{
    from{ transform:rotate(0deg); }
    to{ transform:rotate(360deg); }
}


.phone-row {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.phone-row input:first-child {
  width: 110px;
}

.phone-row input:last-child {
  flex: 1;
}

.ticker {
    width: 200px;
    overflow: hidden;
    white-space: nowrap;
    color: yellow;
}

.ticker span {
    display: inline-block;
    padding-left: 100%;
    animation: scrollText 10s linear infinite;
}

@keyframes scrollText {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}
