/* Shared company pages: RTL, mobile first, isolated from the dashboard. */
:is(.contact-page,.branches-page,.working-hours-page) .company-page-layout {
    display:grid;gap:20px;align-items:start;min-width:0;
}
.company-page-layout > * {min-width:0;}
.company-page-layout :is(.contact-header,.branches-hero,.working-hours-header) {padding:28px;border-radius:24px;}
.company-page-layout :is(.contact-header-top,.branches-hero,.branches-hero-content,.working-hours-heading) {display:flex;flex-direction:column;align-items:flex-start;gap:18px;}
.company-page-layout :is(.contact-header h1,.branches-hero h1,.working-hours-header h1) {font-size:clamp(1.5rem,2.4vw,2.2rem);line-height:1.55;letter-spacing:0;}
.company-page-layout :is(.contact-team-list,.working-hours-list,.branches-grid) {display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin:0;}
.company-page-layout :is(.branches-directory,.working-hours-card-content) {padding-top:0;}
.company-page-layout :is(.contact-note,.branches-visit-note,.working-hours-note) {margin:0;padding:20px;border-radius:18px;}
.company-page-layout .contact-hours {width:100%;min-width:0;padding:16px;gap:12px;}
.company-page-layout .contact-hours a {display:inline-flex;gap:8px;color:#956500;text-decoration:none;font-size:.85rem;margin-top:8px;}
.company-email {display:flex;align-items:center;gap:12px;margin-top:16px;padding:18px 0 0;border-top:1px solid rgba(130,130,130,.18);text-decoration:none;color:inherit;}
.company-email-icon {display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border-radius:14px;background:#fff3d6;color:#b57a00;font-size:1.2rem;}
.company-email > span:nth-child(2) {flex:1;min-width:0;}
.company-email small {display:block;color:#748087;font-size:.8rem;margin-bottom:5px;}
.company-email bdi {font-weight:700;font-size:clamp(.8rem,2.9vw,.95rem);overflow-wrap:anywhere;}
.company-email > i {color:#bd850f;}
.company-page-photo {width:100%;border-radius:18px;overflow:hidden;aspect-ratio:16/10;margin-top:6px;background:#f0ede6;}
.company-page-photo img {width:100%;height:100%;object-fit:cover;display:block;}
.company-page-layout .branches-hero-tag {margin:0;font-size:.82rem;}
.company-page-layout :is(.branch-card,.working-hours-card) {padding:24px;box-shadow:0 5px 18px rgba(28,35,40,.025);}
.company-page-layout .branch-map-button {min-height:44px;gap:10px;}
.company-page-layout .branch-card .branch-map-button.mt-2 {border:0;background:transparent;justify-content:flex-start;padding-inline:0;margin-bottom:0;min-height:36px;}
.company-hours-guide {margin-top:28px;padding-top:24px;border-top:1px solid rgba(130,130,130,.18);}
.company-hours-guide > span {display:inline-flex;gap:8px;align-items:center;background:#fff3d6;border-radius:30px;padding:8px 14px;font-size:.85rem;color:#956500;}
.company-hours-guide strong {display:block;font-size:1.2rem;margin:18px 0 8px;}
.company-hours-guide p {font-size:.9rem!important;line-height:1.9;}
.company-hours-guide a {display:inline-flex;gap:10px;margin-top:16px;text-decoration:none;color:#a16d00;font-weight:700;font-size:.88rem;min-height:44px;align-items:center;}
.company-page-layout .contact-person {gap:12px;padding:20px;border-radius:18px;}
.company-page-layout .contact-person-actions .btn {min-height:44px;}
.company-page-layout :is(a,button):focus-visible {outline:2px solid #e6a414;outline-offset:4px;}
@media(min-width:992px) {
    :is(.contact-page,.branches-page,.working-hours-page) .company-page-layout {grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:24px 36px;}
    .company-page-layout > :is(.contact-header,.branches-hero,.working-hours-header) {grid-column:1;grid-row:1 / span 2;position:sticky;top:120px;padding:34px;}
    .company-page-layout > :is(.contact-team-list,.contact-empty,.branches-directory,.working-hours-list) {grid-column:2;grid-row:1;}
    .company-page-layout > :is(.contact-note,.branches-visit-note,.working-hours-note) {grid-column:2;grid-row:2;}
    .company-page-layout .contact-person {grid-template-columns:42px minmax(0,1fr);}
    .company-page-layout .contact-person-actions {grid-column:1 / -1;margin-top:6px;}
    .company-page-layout .contact-person-actions .btn {flex:1;}
}
@media(max-width:575px) {
    .company-page-layout {gap:16px!important;}
    .company-page-layout :is(.contact-header,.branches-hero,.working-hours-header) {padding:22px;border-radius:20px;}
    .company-page-layout :is(.branch-card,.working-hours-card,.contact-person) {padding:18px;}
    .company-page-layout .contact-person-actions {margin-top:4px;gap:10px;}
    .company-page-photo {aspect-ratio:2/1;max-height:180px;}
    .company-hours-guide {margin-top:20px;padding-top:18px;}
    .company-page-layout .working-hours-time {flex-wrap:wrap;line-height:1.9;}
}
html[data-bs-theme="dark"] :is(.company-email-icon,.company-hours-guide > span) {background:rgba(230,164,20,.13);color:#efc361;}
html[data-bs-theme="dark"] :is(.company-email,.company-hours-guide strong) {color:#edf0f2;}
html[data-bs-theme="dark"] :is(.company-hours-guide a,.company-page-layout .contact-hours a) {color:#efc361;}
@media(prefers-reduced-motion:reduce) {
    .company-page-layout * {animation:none!important;transition:none!important;scroll-behavior:auto!important;}
}

html[data-bs-theme="dark"] .company-page-layout :is(.contact-person,.contact-note,.branch-card,.working-hours-card,.branches-visit-note,.working-hours-note) {background:var(--aqar-surface,#171d20);}
html[data-bs-theme="dark"] .company-page-layout :is(.contact-person h3,.contact-note strong) {color:#edf0f2;}
html[data-bs-theme="dark"] .company-page-layout :is(.contact-person-info bdi,.contact-note p) {color:#aeb7bc;}
/* Adjustments verified during responsive preview. */
html[data-bs-theme="dark"] .company-page-layout .contact-person-call { color:#f5d27b; border-color:rgba(245,210,123,.35); }
html[data-bs-theme="dark"] .company-page-layout .contact-person-whatsapp { color:#83d7af; border-color:rgba(131,215,175,.35); }
html[data-bs-theme="dark"] .company-page-layout .company-email small { color:#aeb7bc; }
.company-page-layout .working-hours-note a { flex-shrink:0; white-space:nowrap; }
@media(max-width:575px) {
    .company-page-layout .company-hours-guide { margin-top:16px; padding-top:16px; }
    .company-page-layout .company-hours-guide strong, .company-page-layout .company-hours-guide p { display:none; }
    .company-page-layout .company-hours-guide a { margin-top:6px; }
    .company-page-layout .company-page-photo { max-height:140px; }
}
