/* ==========================================================================
   REMS Developer & Branding Stamp — ONYX ENTERPRISES
   Consistent, Professional, Subtle Component for Login & Sidebar
   ========================================================================== */

.rems-dev-stamp,
.rems-report-dev-stamp,
.rems-report-dev-stamp-wrapper,
.page-developer-footer,
.developer-stamp {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.rems-dev-stamp * {
    box-sizing: border-box;
}

.rems-dev-stamp-inner {
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Caption / Lead */
.rems-dev-caption {
    font-size: 0.65rem;
    font-weight: 600;
    color: #c9a84c;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    line-height: 1.2;
    margin-bottom: 2px;
}

/* Brand / Organization Name */
.rems-dev-brand {
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #ffffff;
    line-height: 1.25;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Developer Name */
.rems-dev-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.25;
    margin-top: 2px;
}

/* Academic / Professional Designation */
.rems-dev-designation {
    font-size: 0.70rem;
    font-weight: 500;
    color: #94a3b8;
    line-height: 1.25;
    margin-bottom: 6px;
}

/* Subtle Hairline Divider */
.rems-dev-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(201, 168, 76, 0.45) 0%, rgba(201, 168, 76, 0.12) 80%, transparent 100%);
    margin: 6px 0 7px 0;
}

/* Contact List */
.rems-dev-contacts {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.70rem;
    line-height: 1.35;
}

.rems-dev-contact-item {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rems-dev-label {
    color: #8fa998;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
}

.rems-dev-label i {
    font-size: 0.72rem;
    color: #c9a84c;
}

.rems-dev-label i.bi-whatsapp {
    color: #25d366;
}

.rems-dev-link {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.18s ease;
}

.rems-dev-link:hover {
    color: #e0c57b;
    text-decoration: underline;
}

.rems-dev-link-wa:hover {
    color: #4ade80;
}

.rems-dev-link-email {
    word-break: break-all;
}

/* ==========================================================================
   VARIANT 1: Login Page (Bottom-Left Corner)
   ========================================================================== */
.rems-dev-stamp-login {
    position: fixed;
    bottom: 24px;
    left: 28px;
    z-index: 90;
    max-width: 320px;
    width: calc(100% - 56px);
}

.rems-dev-stamp-login .rems-dev-stamp-inner {
    background: rgba(11, 34, 23, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(201, 168, 76, 0.35);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.45), 0 0 12px rgba(201, 168, 76, 0.12);
}

.rems-dev-stamp-login .rems-dev-stamp-inner:hover {
    border-color: rgba(201, 168, 76, 0.55);
    box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.55), 0 0 18px rgba(201, 168, 76, 0.2);
}

.rems-dev-stamp-login .rems-dev-caption {
    font-size: 0.68rem;
}

.rems-dev-stamp-login .rems-dev-brand {
    font-size: 1.02rem;
}

.rems-dev-stamp-login .rems-dev-name {
    font-size: 0.86rem;
}

.rems-dev-stamp-login .rems-dev-designation {
    font-size: 0.73rem;
}

.rems-dev-stamp-login .rems-dev-contacts {
    font-size: 0.72rem;
}

/* Responsive adjustment for Login on Tablets & Mobile */
@media (max-width: 991px) {
    .rems-dev-stamp-login {
        position: relative;
        bottom: auto;
        left: auto;
        margin: 1.25rem auto 1.5rem auto;
        max-width: 440px;
        width: 100%;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .rems-dev-stamp-login {
        margin: 1rem auto;
        max-width: 100%;
    }
    
    .rems-dev-stamp-login .rems-dev-stamp-inner {
        padding: 10px 14px;
    }
    
    .rems-dev-stamp-login .rems-dev-brand {
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   VARIANT 2: Application Sidebar (Bottom / Final Element)
   ========================================================================== */
.rems-dev-stamp-sidebar {
    margin: 0.25rem 1rem 1.25rem 1rem;
    flex-shrink: 0;
}

.rems-dev-stamp-sidebar .rems-dev-stamp-inner {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 9px;
    padding: 9px 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.rems-dev-stamp-sidebar .rems-dev-stamp-inner:hover {
    border-color: rgba(201, 168, 76, 0.38);
    background: rgba(0, 0, 0, 0.35);
}

.rems-dev-stamp-sidebar .rems-dev-caption {
    font-size: 0.62rem;
    margin-bottom: 2px;
}

.rems-dev-stamp-sidebar .rems-dev-brand {
    font-size: 0.90rem;
}

.rems-dev-stamp-sidebar .rems-dev-name {
    font-size: 0.79rem;
}

.rems-dev-stamp-sidebar .rems-dev-designation {
    font-size: 0.67rem;
    color: #8fa998;
    white-space: normal;
}

.rems-dev-stamp-sidebar .rems-dev-divider {
    margin: 5px 0 6px 0;
}

.rems-dev-stamp-sidebar .rems-dev-contacts {
    font-size: 0.67rem;
    gap: 2.5px;
}

.rems-dev-stamp-sidebar .rems-dev-label {
    font-size: 0.66rem;
    color: #7d9e8c;
}

.rems-dev-stamp-sidebar .rems-dev-link {
    font-size: 0.67rem;
}

/* If sidebar collapsed state exists or is triggered */
body.sidebar-collapsed .rems-dev-stamp-sidebar {
    display: none;
}

/* ==========================================================================
   Printable Reports & Receipts Developer Stamp
   "Developed & Powered by: OnyxEnterprises (Waseem Iqbal: Mob#0333-6296581)"
   Always anchored at page footer in all printouts, never floating in the center
   ========================================================================== */
.rems-report-dev-stamp-wrapper {
    width: 100%;
    margin-top: auto !important;
    padding-top: 12px;
    clear: both;
    box-sizing: border-box;
}

.rems-report-dev-stamp {
    font-size: 8pt;
    color: #64748b;
    text-align: center;
    margin: 0 auto;
    padding-top: 5px;
    padding-bottom: 2px;
    border-top: 1px dashed #cbd5e1;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    letter-spacing: 0.02em;
    line-height: 1.35;
    box-sizing: border-box;
}

@media print {
    .rems-report-dev-stamp-wrapper {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 4px 15px 3px 15px !important;
        background: #ffffff !important;
        z-index: 99999 !important;
        box-sizing: border-box !important;
    }

    .rems-report-dev-stamp {
        display: block !important;
        font-size: 7.5pt !important;
        font-weight: 500 !important;
        color: #334155 !important;
        border-top: 1px dashed #94a3b8 !important;
        padding: 4px 10px 2px 10px !important;
        margin: 0 auto !important;
        text-align: center !important;
        background: #ffffff !important;
    }
}
