/* The site header (layouts/header.blade.php) on every screen width. Owner, 2026-11-15: "make the selected header section
   fully responsive on all pages", then "keep the menu horizontal under the logo & icons, just above the blue marquee".

   css/css.php draws the header for a 1,000 px page: two fixed-width bars, floats, menus that open on hover with two
   levels flying out to the right. Above 1,024 px that stays as it is; the only addition is that a sub-menu which would
   leave the window opens to the other side (js/headerNav.js adds hd_flip / hd_flip_one).

   At 1,024 px and below (tablets and phones, touch screens):
     - both bars follow the window (flex, no pixel sums); the agency's credit line takes its own row on a narrow screen;
     - the logo row keeps the shortcuts, the counters and the information button; on a phone the three shortcuts sit
       on their own row with their names;
     - the menu stays a horizontal row, the last one of the header, right above the news line. A touch screen has no
       hover, so a tap on RESERVATION / MANAGEMENT / REPORT / ACCOUNTING opens its list across the row's width, and
       the deeper levels open inside that list instead of flying out sideways. Same markup (.menu_2 and its sub
       containers), so every privilege rule keeps applying.

   Linked by layouts/master.blade.php after css.php, before the template's own stylesheet. Selectors inside the media
   blocks start with .header_container so they win over css.php and over a template whatever the order. No link,
   route, id or privilege test depends on this file. */

/* ---------- the three product shortcuts (flights, stays, insurance), every width ----------
   Owner, 2026-11-15: "enhance & modernize these icons style". The tiles were flat squares with small yellow PNG
   pictures; here: line icons drawn as SVG (sharp on every screen), a soft blue tile that lifts under the pointer, and
   the product of the page being looked at marked in the brand yellow. Same links, same ids. */
.header_container .one_shortcut{
	width: 44px; height: 44px; border-radius: 13px; margin-right: 6px;
	background: linear-gradient(155deg, #2a8fe0 0%, var(--s2b-primary, #0d4fa0) 100%);
	box-shadow: 0 3px 8px rgba(13, 79, 160, .26), inset 0 1px 0 rgba(255, 255, 255, .28);
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.header_container .one_shortcut:hover{ background: linear-gradient(155deg, #2a8fe0 0%, var(--s2b-primary, #0d4fa0) 100%); transform: translateY(-2px); box-shadow: 0 7px 16px rgba(13, 79, 160, .34), inset 0 1px 0 rgba(255, 255, 255, .28); filter: brightness(1.06); }
.header_container a:last-child .one_shortcut{ margin-right: 0; }
.header_container .shortcuts_container{ width: auto; height: 44px; }
.header_container .one_shortcut_icon, .header_container .one_shortcut_icon_flight, .header_container .one_shortcut_icon_hotel, .header_container .one_shortcut_icon_insurance{
	width: 24px; height: 24px; background: none center / 24px 24px no-repeat;
}
.header_container .one_shortcut_icon_flight{ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cg transform='rotate(45 12 12)'%3E%3Cpath d='M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.670 10 3.500V9l-8 5v2l8-2.500V19l-2 1.500V22l3.500-1 3.500 1v-1.500L13 19v-5.500l8 2.500z'/%3E%3C/g%3E%3C/svg%3E"); }
.header_container .one_shortcut_icon_hotel{ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M7 13c1.660 0 3-1.340 3-3S8.660 7 7 7s-3 1.340-3 3 1.340 3 3 3zm12-6h-8v7H3V5H1v15h2v-3h18v3h2v-9c0-2.210-1.790-4-4-4z'/%3E%3C/svg%3E"); }
.header_container .one_shortcut_icon_insurance{ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 1 3 5v6c0 5.550 3.840 10.740 9 12 5.160-1.260 9-6.450 9-12V5l-9-4zm-2 16-4-4 1.410-1.410L10 14.170l6.590-6.590L18 9l-8 8z'/%3E%3C/svg%3E"); }
.header_container #one_shortcut_flight:not(.one_shortcut_on), .header_container #one_shortcut_hotel:not(.one_shortcut_on), .header_container #one_shortcut_insurance:not(.one_shortcut_on){ background: linear-gradient(155deg, #2a8fe0 0%, var(--s2b-primary, #0d4fa0) 100%); }   /* over a page's own flat mark */
/* the product of the page: the brand yellow, its icon in the deep blue */
.header_container .one_shortcut.one_shortcut_on, .header_container .one_shortcut.one_shortcut_on:hover{ background: linear-gradient(155deg, #ffd76a 0%, #ffbf2e 100%) !important;   /* over the pages' own #one_shortcut_* rule */ box-shadow: 0 3px 8px rgba(190, 130, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .5); }
.header_container .one_shortcut_on .one_shortcut_icon{ filter: brightness(0) saturate(100%) invert(18%) sepia(60%) saturate(2400%) hue-rotate(200deg) brightness(92%); }
@media (prefers-reduced-motion: reduce){ .header_container .one_shortcut{ transition: none; } .header_container .one_shortcut:hover{ transform: none; } }

/* ---------- wide screens: a sub-menu never leaves the window ---------- */
@media (min-width: 1025px){
	.sub_menu_two_container.hd_flip, .sub_menu_three_container.hd_flip{ right: auto; left: -220px; }
	.sub_menu_one_container.hd_flip_one{ left: auto; right: -14px; }
}

/* ---------- tablets and phones ---------- */
@media (max-width: 1024px){
	/* a few old pages force their container wider than a phone's screen: the header keeps the screen's width and
	   stays at its left edge */
	.header_container{ height: auto; width: 100%; width: min(100%, 100vw); position: -webkit-sticky; position: sticky; left: 0; }

	/* ----- top bar: hotline, the agency's credit, the login ----- */
	.header_container .header_container_top{ height: auto; min-height: 35px; }
	.header_container .middle_header_container_top{
		width: auto; height: auto; min-height: 35px; margin: 0; padding: 0 16px; box-sizing: border-box;
		display: flex; align-items: center; flex-wrap: wrap; gap: 0 14px;
	}
	.header_container .hotline_part{ display: flex; align-items: center; float: none; height: 35px; flex: 0 0 auto; }
	.header_container .hotline_icon, .header_container .hotline_text{ float: none; position: static; top: auto; transform: none; }
	.header_container .hotline_icon{ margin-left: 0; flex: 0 0 15px; }
	.header_container .hotline_text{ margin-left: 8px; white-space: nowrap; line-height: 1.1; }
	.header_container .credit_limit_container{
		position: static; top: auto; left: auto; transform: none; width: auto;
		display: flex; flex-wrap: wrap; justify-content: center; gap: 3px 14px; flex: 1 1 auto; min-width: 0;
	}
	.header_container .my_credit_limit{ float: none; margin: 0; font-size: 12px; line-height: 1.2; white-space: nowrap; }
	.header_container .header_top_menu{ display: flex; float: none; width: auto; height: 35px; margin-left: auto; flex: 0 0 auto; }
	.header_container .currency_selector{ float: none; height: 35px; }
	.header_container .user_menu{ float: none; width: auto; height: 35px; padding-left: 12px; display: flex; align-items: center; }
	.header_container .user_button{ position: static; top: auto; left: auto; transform: none; max-width: 46vw; }
	.header_container .user_welcome_arrow{ width: auto; min-width: 86px; }
	.header_container .user_name{ display: block; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.1; }
	.header_container .user_other_menu{ position: absolute; left: auto; right: 0; top: 100%; }
	.header_container .user_other_menu_item{ padding-top: 12px; padding-bottom: 12px; }

	/* ----- white bar, first row: logo, shortcuts, counters, information ----- */
	.header_container .header_container_bottom{ height: auto; }
	.header_container .middle_header_container_bottom{
		width: auto; height: auto; margin: 0; padding: 10px 16px 0; box-sizing: border-box;
		display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px;
	}
	.header_container .middle_header_container_bottom > a{ order: 1; display: flex; align-items: center; flex: 0 1 auto; min-width: 0; }
	.header_container .logo_in{ float: none; position: static; top: auto; transform: none; display: block; width: 200px; max-width: 100%; height: auto; }
	/* the three wrappers step aside: shortcuts, counters, information and the menu become items of the bar itself */
	.header_container .menu_right_container_and_notification,
	.header_container .menu_notification_and_shortcuts,
	.header_container .menu_right_container{ display: contents; }
	.header_container .shortcuts_container{
		order: 2; margin-left: auto; float: none; position: static; top: auto; transform: none;
		width: auto; height: auto; display: flex; gap: 6px;
	}
	.header_container .shortcuts_container a{ display: block; text-decoration: none; }
	.header_container .one_shortcut{ float: none; margin: 0; }
	.header_container .notifications_container{
		order: 3; float: none; position: static; top: auto; transform: none;
		width: auto; height: 43px; display: flex; flex-direction: row-reverse; align-items: center; gap: 8px;
	}
	.header_container .all_notifications{ float: none; display: flex; gap: 4px; }
	.header_container .one_notification{ float: none; margin: 0; }
	.header_container .notifications_right_text{ float: none; position: static; top: auto; transform: none; margin: 0; text-align: right; line-height: 1.05; }
	.header_container .info_button{ display: block; order: 4; float: none; flex: 0 0 42px; height: 43px; border-radius: 6px; }
	.header_container .info_icon{ margin-left: 7px; }
	.header_container .info_panel{ left: auto; right: 0; top: 47px; z-index: 6; }
	.header_container .info_panel_item{ padding-top: 12px; padding-bottom: 12px; }
	.header_container .line_menu_sep{ display: none; }

	/* ----- the menu: one horizontal row, the last of the header ----- */
	.header_container .menu_2{
		order: 9; flex: 0 0 calc(100% + 32px); box-sizing: border-box; margin: 0 -16px !important; padding: 0 16px;
		float: none; position: relative; top: auto; transform: none;
		display: flex; align-items: stretch; justify-content: center; gap: 0 clamp(8px, 4vw, 30px);      /* owner: "always centered" */
		border-top: 1px solid #ebebeb;
	}
	.header_container .menu_2_item, .header_container .menu_2_item:last-child{
		float: none; position: static; margin: 0; padding: 0 !important; border-radius: 0; background: none;
		font-size: 14px; line-height: 1 !important; cursor: default; white-space: nowrap;
	}
	/* a level's own name (the script wraps it): what is tapped */
	.header_container .menu_2_item > .hd_label{
		display: block; padding: 15px 2px 14px; cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none;
		box-shadow: inset 0 -3px 0 transparent; transition: box-shadow .15s ease;
	}
	.header_container .menu_2_item.hd_open > .hd_label{ box-shadow: inset 0 -3px 0 #ffca50; }

	/* its list: across the row, under it. The hover rules of css.php are answered here: only a tap opens */
	.header_container .sub_menu_one_container,
	.header_container .menu_2_item:hover .sub_menu_one_container{
		display: none; position: absolute; top: 100%; left: 0; right: 0; width: auto !important; box-sizing: border-box;
		padding: 6px 16px 12px; border-radius: 0 0 14px 14px; z-index: 5;
		max-height: calc(100vh - 180px); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
		white-space: normal;
	}
	.header_container .menu_2_item.hd_open > .sub_menu_one_container{ display: block; }
	.header_container .menu_2 a{ display: block; text-decoration: none; }
	.header_container .sub_menu_one_container_item, .header_container .sub_menu_one_container_item:hover,
	.header_container .sub_menu_two_container_item, .header_container .sub_menu_two_container_item:hover,
	.header_container .sub_menu_three_container_item, .header_container .sub_menu_three_container_item:hover{
		padding: 0; background: none; border-bottom: 1px solid rgba(255, 255, 255, .14);
		color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 0; line-height: 1.25; cursor: pointer;
	}
	/* :hover is named too: the rule above answers the hover of css.php with "padding: 0" and is the stronger one, so a line
	   under the pointer lost its padding, shrank, and the list jumped (owner, 2026-11-15: "the mouse over on sub-menu is not nice") */
	.header_container a > .sub_menu_one_container_item, .header_container a > .sub_menu_one_container_item:hover,
	.header_container a > .sub_menu_two_container_item, .header_container a > .sub_menu_two_container_item:hover,
	.header_container a > .sub_menu_three_container_item, .header_container a > .sub_menu_three_container_item:hover{ padding: 13px 6px 13px 10px; border-radius: 8px; transition: background-color .14s ease, color .14s ease, box-shadow .14s ease, padding-left .14s ease; }
	.header_container a:last-child > .sub_menu_one_container_item,
	.header_container a:last-child > .sub_menu_two_container_item,
	.header_container a:last-child > .sub_menu_three_container_item{ border-bottom-color: transparent; }
	.header_container a > .sub_menu_one_container_item:active,
	.header_container a > .sub_menu_two_container_item:active,
	.header_container a > .sub_menu_three_container_item:active{ background: rgba(255, 255, 255, .12); }

	/* the deeper levels: inside the list, opened by a tap on their name */
	.header_container .sub_menu_one_container_item > .hd_label,
	.header_container .sub_menu_two_container_item > .hd_label{
		display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 6px;
		cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none;
	}
	.header_container .sub_menu_one_container_item > .hd_label::after,
	.header_container .sub_menu_two_container_item > .hd_label::after{
		content: ""; flex: 0 0 auto; width: 8px; height: 8px; margin: -3px 6px 0 0;
		border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s ease; opacity: .8;
	}
	.header_container .hd_open > .hd_label::after{ transform: rotate(-135deg); margin-top: 4px; }
	.header_container .hd_open > .hd_label{ color: #ffca50; }
	.header_container .menu_2_item.hd_open > .hd_label{ color: inherit; }      /* the row's own name stays blue on white; its yellow line says it is open */
	.header_container .sub_menu_two_container,
	.header_container .sub_menu_three_container,
	.header_container .sub_menu_one_container_item:hover .sub_menu_two_container,
	.header_container .sub_menu_two_container_item:hover .sub_menu_three_container{
		display: none; position: static; top: auto; left: auto; right: auto; width: auto !important;
		margin: 0 0 8px; padding: 0 8px 0 14px; border-radius: 10px; box-shadow: none; z-index: auto;
		background: rgba(255, 255, 255, .1);
	}
	.header_container .sub_menu_one_container_item.hd_open > .sub_menu_two_container,
	.header_container .sub_menu_two_container_item.hd_open > .sub_menu_three_container{ display: block; }

	/* ----- the pointer over a line (a narrow window on a computer; a touch screen has no hover and keeps the tap answer) -----
	   The line keeps its size and is marked: a light band, a yellow edge, the name in yellow, the text a few pixels in. */
	.header_container .sub_menu_one_container_item > .hd_label,
	.header_container .sub_menu_two_container_item > .hd_label{ padding-left: 10px; border-radius: 8px; transition: background-color .14s ease, color .14s ease, box-shadow .14s ease, padding-left .14s ease; }
	@media (hover: hover){
		.header_container a > .sub_menu_one_container_item:hover,
		.header_container a > .sub_menu_two_container_item:hover,
		.header_container a > .sub_menu_three_container_item:hover,
		.header_container .sub_menu_one_container_item > .hd_label:hover,
		.header_container .sub_menu_two_container_item > .hd_label:hover{
			padding-left: 16px; background: rgba(255, 255, 255, .13); color: #ffca50; box-shadow: inset 3px 0 0 #ffca50; border-bottom-color: transparent;
		}
		.header_container .menu_2_item:not(.hd_open) > .hd_label:hover{ box-shadow: inset 0 -3px 0 rgba(255, 202, 80, .55); }
	}
	.header_container .menu_2 a:focus-visible > div, .header_container .hd_label:focus-visible{ outline: 2px solid #ffca50; outline-offset: -2px; }
}

/* ---------- the credit line on its own row ---------- */
@media (max-width: 760px){
	.header_container .credit_limit_container{ order: 3; flex: 1 1 100%; padding: 6px 0 7px; border-top: 1px solid rgba(255, 255, 255, .2); }
}
@media (max-width: 600px){
	.header_container .header_top_menu .currency_selector{ display: none; }
	.header_container .header_top_menu{ width: auto; }
	.header_container .menu_2{ display: flex; }
}

/* ---------- phones: logo row, the three products by name, the menu row ---------- */
@media (max-width: 520px){
	.header_container .middle_header_container_top{ padding: 0 12px; gap: 0 10px; }
	.header_container .middle_header_container_bottom{ padding: 8px 12px 0; gap: 8px 10px; }
	.header_container .logo_in{ width: 150px; }
	.header_container .notifications_container{ order: 2; margin-left: auto; }
	.header_container .notifications_right_text{ display: none; }
	.header_container .shortcuts_container{ order: 5; margin-left: 0; flex: 1 1 100%; gap: 8px; }
	.header_container .shortcuts_container a{ flex: 1 1 0; min-width: 0; }
	.header_container .one_shortcut{
		width: auto; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 8px;
		color: #fff; font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap;
	}
	.header_container .one_shortcut_icon{ position: static; top: auto; left: auto; transform: none; flex: 0 0 22px; width: 22px; height: 22px; background-size: 22px 22px; }
	.header_container .one_shortcut:hover{ transform: none; }
	.header_container .one_shortcut_on{ color: #0b2f5e; }
	.header_container #one_shortcut_flight::after{ content: "Flights"; }
	.header_container #one_shortcut_hotel::after{ content: "Stays"; }
	.header_container #one_shortcut_insurance::after{ content: "Insurance"; }
	.header_container .my_credit_limit{ font-size: 11px; }
	.header_container .menu_2{ flex-basis: calc(100% + 24px); margin: 0 -12px !important; padding: 0 12px; }
	.header_container .menu_2_item, .header_container .menu_2_item:last-child{ font-size: 12.5px; letter-spacing: 0; }
	.header_container .menu_2_item > .hd_label{ padding: 14px 0 13px; }
	.header_container .sub_menu_one_container, .header_container .menu_2_item:hover .sub_menu_one_container{ padding: 4px 12px 10px; max-height: calc(100vh - 230px); }
}
@media (max-width: 400px){
	.header_container .hotline_text b{ display: none; }
	.header_container .logo_in{ width: 132px; }
	.header_container .one_shortcut{ font-size: 12px; gap: 5px; }
}
@media (max-width: 370px){
	.header_container .menu_2_item, .header_container .menu_2_item:last-child{ font-size: 11.5px; }
}
@media (max-width: 340px){
	.header_container .menu_2_item, .header_container .menu_2_item:last-child{ font-size: 10.5px; }
}

@media (prefers-reduced-motion: reduce){
	.header_container .hd_label, .header_container .hd_label::after{ transition: none !important; }
}
