@directo-ui/astro 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -0
- package/components.css +661 -0
- package/index.d.ts +31 -31
- package/index.js +31 -31
- package/package.json +29 -7
- package/src/components/Accordion.astro +8 -8
- package/src/components/AccordionItem.astro +14 -14
- package/src/components/Alert.astro +42 -42
- package/src/components/Avatar.astro +21 -21
- package/src/components/Badge.astro +13 -13
- package/src/components/BottomSheet.astro +23 -23
- package/src/components/Breadcrumb.astro +18 -18
- package/src/components/Button.astro +31 -31
- package/src/components/Card.astro +25 -25
- package/src/components/Checkbox.astro +14 -14
- package/src/components/DatePicker.astro +25 -25
- package/src/components/Divider.astro +11 -11
- package/src/components/Dropdown.astro +71 -71
- package/src/components/EmptyState.astro +15 -15
- package/src/components/IconButton.astro +18 -18
- package/src/components/Modal.astro +34 -34
- package/src/components/MultiSelect.astro +108 -0
- package/src/components/Pagination.astro +30 -30
- package/src/components/Progress.astro +20 -20
- package/src/components/RadioGroup.astro +24 -24
- package/src/components/Select.astro +29 -29
- package/src/components/Skeleton.astro +13 -13
- package/src/components/Spinner.astro +17 -17
- package/src/components/StatusTag.astro +18 -0
- package/src/components/Switch.astro +13 -13
- package/src/components/Tabs.astro +60 -60
- package/src/components/TextField.astro +24 -24
- package/src/components/Textarea.astro +41 -41
- package/src/components/Toaster.astro +8 -8
- package/src/components/Tooltip.astro +31 -31
- package/src/components/WariClientDetails.astro +87 -0
- package/src/components/WariClientSearch.astro +88 -0
- package/src/components/WariDateField.astro +56 -0
- package/src/components/WariPassengerField.astro +84 -0
- package/src/components/WariRoute.astro +49 -0
- package/src/components/WariSchedule.astro +48 -0
- package/src/components/WariSelect.astro +76 -0
- package/src/components/WariServiceMeta.astro +19 -0
- package/src/components/WariStatusSelect.astro +20 -0
- package/src/components/WariStepper.astro +45 -0
- package/src/components/WariSwitchList.astro +111 -0
- package/src/components/WariTimeField.astro +50 -0
- package/src/components/WariTripAttributes.astro +60 -0
- package/src/modal.d.ts +3 -3
- package/src/modal.js +39 -39
- package/src/pagination.d.ts +2 -2
- package/src/pagination.js +16 -16
- package/src/toast.d.ts +9 -9
- package/src/toast.js +66 -66
- package/src/wari/datetime.d.ts +57 -0
- package/src/wari/datetime.js +151 -0
- package/src/wari/logic.d.ts +8 -0
- package/src/wari/logic.js +41 -0
- package/src/wari/motion.d.ts +14 -0
- package/src/wari/motion.js +60 -0
- package/src/wari/multiselect.d.ts +2 -0
- package/src/wari/multiselect.js +169 -0
- package/src/wari/pickers.d.ts +2 -0
- package/src/wari/pickers.js +369 -0
- package/src/wari/route-client.d.ts +10 -0
- package/src/wari/route-client.js +270 -0
- package/src/wari/route.d.ts +48 -0
- package/src/wari/route.js +71 -0
- package/src/wari/statuses.d.ts +14 -0
- package/src/wari/statuses.js +15 -0
- package/src/wari/trip-client.d.ts +4 -0
- package/src/wari/trip-client.js +370 -0
- package/src/wari/trip.d.ts +107 -0
- package/src/wari/trip.js +129 -0
- package/styles.css +3 -3
- package/wari.d.ts +26 -0
- package/wari.js +21 -0
package/components.css
CHANGED
|
@@ -831,3 +831,664 @@ dialog.ds-sheet[open] { animation: ds-sheet-up 280ms var(--ds-ease-out) both; }
|
|
|
831
831
|
.ds-spinner, .ds-loading > svg { animation: ds-spin 1.6s linear infinite !important; }
|
|
832
832
|
.ds-button:hover, .ds-icon-button:hover, .ds-card:hover { transform: none !important; }
|
|
833
833
|
}
|
|
834
|
+
|
|
835
|
+
/* ==========================================================================
|
|
836
|
+
Wari: StatusTag + MultiSelect (combobox con búsqueda y selección múltiple)
|
|
837
|
+
Personaliza un estado nuevo con style="--ds-status-bg: …; --ds-status-fg: …".
|
|
838
|
+
========================================================================== */
|
|
839
|
+
.ds-status {
|
|
840
|
+
--ds-status-bg: #F2F4FA; --ds-status-fg: #676F88;
|
|
841
|
+
display: inline-flex; align-items: center; max-width: 100%; height: 24px; padding: 0 8px; flex: none;
|
|
842
|
+
border-radius: 16px; color: var(--ds-status-fg); background: var(--ds-status-bg);
|
|
843
|
+
font: 500 12px/1 var(--ds-font-sans); white-space: nowrap;
|
|
844
|
+
}
|
|
845
|
+
.ds-status > span { overflow: hidden; text-overflow: ellipsis; }
|
|
846
|
+
.ds-status[data-status="todos"] { --ds-status-bg: #F2F4FA; --ds-status-fg: #474D59; font-weight: 400; }
|
|
847
|
+
.ds-status[data-status="libre"] { --ds-status-bg: #F2F4FA; --ds-status-fg: #676F88; }
|
|
848
|
+
.ds-status[data-status="aceptado"] { --ds-status-bg: #EEF3FF; --ds-status-fg: #2A62E8; }
|
|
849
|
+
.ds-status[data-status="contacto"] { --ds-status-bg: #FDF1C8; --ds-status-fg: #B1510C; }
|
|
850
|
+
.ds-status[data-status="inicio"] { --ds-status-bg: #DCFCE7; --ds-status-fg: #166534; }
|
|
851
|
+
.ds-status[data-status="llego"] { --ds-status-bg: #CEDCFA; --ds-status-fg: #3B5486; }
|
|
852
|
+
.ds-status[data-status="terminado"] { --ds-status-bg: #D0EDFF; --ds-status-fg: #3D6585; }
|
|
853
|
+
.ds-status[data-status="preasignado"] { --ds-status-bg: #DFCFF1; --ds-status-fg: #7810E8; }
|
|
854
|
+
.ds-status[data-status="anulado-operador"],
|
|
855
|
+
.ds-status[data-status="anulado-usuario"] { --ds-status-bg: #FBE7E7; --ds-status-fg: #D60E0A; }
|
|
856
|
+
.ds-status[data-status="empalmado"] { --ds-status-bg: #FFE8FB; --ds-status-fg: #B30FC4; }
|
|
857
|
+
.dark .ds-status, [data-theme="dark"] .ds-status {
|
|
858
|
+
color: color-mix(in srgb, var(--ds-status-fg) 55%, #fff);
|
|
859
|
+
background: color-mix(in srgb, var(--ds-status-fg) 24%, transparent);
|
|
860
|
+
}
|
|
861
|
+
.ds-status[data-size="sm"] { height: 20px; padding: 0 6px; font-size: 11px; }
|
|
862
|
+
|
|
863
|
+
.ds-multiselect-anchor { position: relative; }
|
|
864
|
+
.ds-multiselect .ds-input-shell { min-height: 40px; padding: 4px 4px 4px 6px; gap: 4px; cursor: text; }
|
|
865
|
+
.ds-multiselect[data-disabled="true"] .ds-input-shell { cursor: not-allowed; }
|
|
866
|
+
.ds-multiselect[data-open="true"] .ds-input-shell { border-color: var(--ds-border-focus); box-shadow: var(--ds-focus-ring); }
|
|
867
|
+
.ds-multiselect-values { display: flex; flex: none; align-items: center; gap: 4px; min-width: 0; max-width: 70%; overflow: hidden; }
|
|
868
|
+
.ds-multiselect[data-open="true"] .ds-multiselect-values { display: none; }
|
|
869
|
+
.ds-multiselect-more { color: var(--ds-text-tertiary); font: 500 12px var(--ds-font-sans); white-space: nowrap; }
|
|
870
|
+
.ds-multiselect .ds-input-shell > input.ds-multiselect-input {
|
|
871
|
+
flex: 1; min-width: 40px; height: 30px; padding: 0 6px; font-size: 14px; cursor: inherit;
|
|
872
|
+
}
|
|
873
|
+
.ds-multiselect:not([data-open="true"]) input.ds-multiselect-input { caret-color: transparent; }
|
|
874
|
+
.ds-multiselect-caret {
|
|
875
|
+
display: inline-flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px;
|
|
876
|
+
border: 0; border-radius: 8px; color: var(--ds-text-tertiary); background: transparent; cursor: pointer;
|
|
877
|
+
transition: transform var(--ds-duration-fast) var(--ds-ease-out), background-color var(--ds-duration-fast);
|
|
878
|
+
}
|
|
879
|
+
.ds-multiselect-caret:hover:not(:disabled) { background: var(--ds-bg-secondary); }
|
|
880
|
+
.ds-multiselect[data-open="true"] .ds-multiselect-caret { transform: rotate(180deg); }
|
|
881
|
+
.ds-multiselect-list {
|
|
882
|
+
position: absolute; z-index: 80; top: calc(100% + 8px); left: 0; right: 0;
|
|
883
|
+
max-height: var(--ds-multiselect-max-height, 320px); margin: 0; padding: 8px; overflow-y: auto; overscroll-behavior: contain;
|
|
884
|
+
list-style: none; border: 1px solid var(--ds-border-tertiary); border-radius: 8px;
|
|
885
|
+
background: var(--ds-surface-raised); box-shadow: 0 8px 36px rgb(0 0 0 / .17);
|
|
886
|
+
scrollbar-width: thin; scrollbar-color: #DADBDE transparent;
|
|
887
|
+
animation: ds-pop-enter 160ms ease-out both;
|
|
888
|
+
}
|
|
889
|
+
.ds-multiselect-list::-webkit-scrollbar { width: 8px; }
|
|
890
|
+
.ds-multiselect-list::-webkit-scrollbar-thumb { border-radius: 999px; background: #DADBDE; }
|
|
891
|
+
.ds-multiselect-option {
|
|
892
|
+
display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 4px 8px; border-radius: 6px;
|
|
893
|
+
color: var(--ds-text-secondary); font: 400 14px/1.2 var(--ds-font-sans); cursor: pointer; user-select: none;
|
|
894
|
+
}
|
|
895
|
+
.ds-multiselect-option[data-active="true"] { background: var(--ds-bg-secondary); }
|
|
896
|
+
.ds-multiselect-option[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
|
|
897
|
+
.ds-multiselect-option-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
898
|
+
.ds-multiselect-check {
|
|
899
|
+
display: inline-flex; flex: none; width: 20px; height: 20px; margin-inline-end: 4px;
|
|
900
|
+
border: 1.5px solid var(--ds-color-neutral-400); border-radius: 4px; background: var(--ds-bg-primary) center / 14px no-repeat;
|
|
901
|
+
transition: background-color var(--ds-duration-fast), border-color var(--ds-duration-fast);
|
|
902
|
+
}
|
|
903
|
+
.ds-multiselect-option[aria-selected="true"] .ds-multiselect-check,
|
|
904
|
+
.ds-multiselect-option[data-indeterminate="true"] .ds-multiselect-check { border-color: var(--ds-bg-brand-primary); background-color: var(--ds-bg-brand-primary); }
|
|
905
|
+
.ds-multiselect-option[aria-selected="true"] .ds-multiselect-check {
|
|
906
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
|
|
907
|
+
}
|
|
908
|
+
.ds-multiselect-option[data-indeterminate="true"] .ds-multiselect-check {
|
|
909
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M4 8h8'/%3E%3C/svg%3E");
|
|
910
|
+
}
|
|
911
|
+
.ds-multiselect-empty { padding: 12px 8px; color: var(--ds-text-tertiary); font: 400 14px var(--ds-font-sans); }
|
|
912
|
+
.ds-multiselect > small, .ds-multiselect > .ds-input-hint { padding-inline: 8px; }
|
|
913
|
+
|
|
914
|
+
/* ==========================================================================
|
|
915
|
+
Wari: Horario (WariSchedule) + campos de fecha y hora con selector propio
|
|
916
|
+
========================================================================== */
|
|
917
|
+
.ds-wschedule, .ds-wcard {
|
|
918
|
+
display: flex; flex-direction: column; gap: 12px; padding: 12px; min-width: 0;
|
|
919
|
+
border: 1px solid var(--ds-border-secondary, #DADBDE); border-radius: 8px; background: var(--ds-bg-primary);
|
|
920
|
+
color: var(--ds-text-primary); font-family: var(--ds-font-sans);
|
|
921
|
+
}
|
|
922
|
+
.ds-wschedule-header, .ds-wcard-header {
|
|
923
|
+
display: flex; align-items: center; gap: 12px; padding: 4px 16px 8px 4px;
|
|
924
|
+
border-bottom: 1px solid var(--ds-border-secondary, #DADBDE);
|
|
925
|
+
}
|
|
926
|
+
.ds-wschedule-header > svg, .ds-wcard-header > svg { flex: none; width: 24px; height: 24px; }
|
|
927
|
+
.ds-wschedule-title, .ds-wcard-title { margin: 0; font: 500 16px/1.5 var(--ds-font-sans); letter-spacing: -.02em; }
|
|
928
|
+
.ds-wschedule-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; align-items: start; }
|
|
929
|
+
|
|
930
|
+
.ds-wfield { gap: 8px; }
|
|
931
|
+
.ds-wfield > label { color: #474D59; font-size: 12px; }
|
|
932
|
+
.dark .ds-wfield > label, [data-theme="dark"] .ds-wfield > label { color: var(--ds-text-secondary); }
|
|
933
|
+
.ds-wfield-anchor { position: relative; }
|
|
934
|
+
.ds-wfield .ds-input-shell {
|
|
935
|
+
min-height: 36px; padding: 0 4px 0 12px; border: 2px solid transparent; border-radius: 8px;
|
|
936
|
+
background: var(--ds-wfield-bg, #F2F4FA);
|
|
937
|
+
}
|
|
938
|
+
.dark .ds-wfield .ds-input-shell, [data-theme="dark"] .ds-wfield .ds-input-shell { --ds-wfield-bg: var(--ds-bg-secondary); }
|
|
939
|
+
.ds-wfield .ds-input-shell:hover { border-color: transparent; background: color-mix(in srgb, var(--ds-wfield-bg, #F2F4FA) 92%, #000); }
|
|
940
|
+
.ds-wfield .ds-input-shell:focus-within, .ds-wfield[data-open="true"] .ds-input-shell { border-color: var(--ds-bg-brand-primary); box-shadow: none; background: var(--ds-wfield-bg, #F2F4FA); }
|
|
941
|
+
.ds-wfield[data-error="true"] .ds-input-shell { border-color: var(--ds-border-error); }
|
|
942
|
+
.ds-wfield .ds-input-shell > input { height: 32px; font-size: 14px; letter-spacing: -.01em; }
|
|
943
|
+
.ds-wfield-trigger {
|
|
944
|
+
display: inline-flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; padding: 0;
|
|
945
|
+
border: 0; border-radius: 8px; color: var(--ds-bg-brand-primary); background: transparent; cursor: pointer;
|
|
946
|
+
}
|
|
947
|
+
.ds-wfield-trigger:hover:not(:disabled) { background: color-mix(in srgb, var(--ds-bg-brand-primary) 10%, transparent); }
|
|
948
|
+
.ds-wfield-trigger:focus-visible { outline: 2px solid var(--ds-bg-brand-primary); outline-offset: 1px; }
|
|
949
|
+
.ds-wfield-trigger:disabled { color: var(--ds-text-disabled); cursor: not-allowed; }
|
|
950
|
+
|
|
951
|
+
/* Popover shared by the date and time pickers */
|
|
952
|
+
.ds-wpicker {
|
|
953
|
+
--ds-wpicker-bg: #CEDCFA; --ds-wpicker-ink: #11278F; --ds-wpicker-accent: #0A50E6; --ds-wpicker-text: #1D1B20;
|
|
954
|
+
--ds-wpicker-muted: #4E5A7A; --ds-wpicker-face: #F2F4FA; --ds-wpicker-hover: rgb(17 39 143 / .08);
|
|
955
|
+
position: absolute; z-index: 85; top: calc(100% + 8px); left: 0;
|
|
956
|
+
display: flex; flex-direction: column; color: var(--ds-wpicker-text); background: var(--ds-wpicker-bg);
|
|
957
|
+
border-radius: 16px; box-shadow: 0 12px 32px -8px rgb(4 32 92 / .28); font: 400 14px/1.4 var(--ds-font-sans);
|
|
958
|
+
animation: ds-pop-enter 160ms ease-out both;
|
|
959
|
+
}
|
|
960
|
+
.ds-wfield[data-align="end"] .ds-wpicker { left: auto; right: 0; }
|
|
961
|
+
.dark .ds-wpicker, [data-theme="dark"] .ds-wpicker {
|
|
962
|
+
--ds-wpicker-bg: #1C2742; --ds-wpicker-ink: #BFD0FA; --ds-wpicker-accent: #8FB0F7; --ds-wpicker-text: #E6E9F2;
|
|
963
|
+
--ds-wpicker-muted: #A7B1C9; --ds-wpicker-face: #26324F; --ds-wpicker-hover: rgb(191 208 250 / .1);
|
|
964
|
+
}
|
|
965
|
+
.ds-wpicker button { font: inherit; color: inherit; }
|
|
966
|
+
.ds-wpicker-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 56px; padding: 0 8px; color: var(--ds-wpicker-accent); }
|
|
967
|
+
.ds-wpicker-nav { display: flex; align-items: center; }
|
|
968
|
+
.ds-wpicker-icon, .ds-wpicker-menu, .ds-wpicker-action, .ds-wpicker-day, .ds-wpicker-option, .ds-wtime-period button, .ds-wpicker-mode {
|
|
969
|
+
border: 0; background: transparent; cursor: pointer; transition: background-color var(--ds-duration-fast);
|
|
970
|
+
}
|
|
971
|
+
.ds-wpicker-icon, .ds-wpicker-mode {
|
|
972
|
+
display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border-radius: 999px; color: var(--ds-wpicker-accent) !important;
|
|
973
|
+
}
|
|
974
|
+
.ds-wpicker-icon:disabled { opacity: .38; cursor: default; }
|
|
975
|
+
.ds-wpicker-menu {
|
|
976
|
+
display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 6px 0 10px; border-radius: 999px;
|
|
977
|
+
color: var(--ds-wpicker-accent) !important; font-weight: 500 !important; text-transform: capitalize;
|
|
978
|
+
}
|
|
979
|
+
.ds-wpicker-menu svg { transition: transform var(--ds-duration-fast); }
|
|
980
|
+
.ds-wpicker-menu[aria-expanded="true"] svg { transform: rotate(180deg); }
|
|
981
|
+
.ds-wpicker-icon:hover:not(:disabled), .ds-wpicker-menu:hover, .ds-wpicker-action:hover, .ds-wpicker-mode:hover,
|
|
982
|
+
.ds-wpicker-option:hover, .ds-wpicker-day:hover:not([aria-disabled="true"]):not([aria-selected="true"]) { background: var(--ds-wpicker-hover); }
|
|
983
|
+
.ds-wpicker :focus-visible { outline: 2px solid var(--ds-wpicker-accent); outline-offset: 1px; }
|
|
984
|
+
.ds-wpicker[data-view="months"] .ds-wpicker-nav[data-part="year"] .ds-wpicker-menu,
|
|
985
|
+
.ds-wpicker[data-view="years"] .ds-wpicker-nav[data-part="month"] .ds-wpicker-menu { opacity: .38; }
|
|
986
|
+
.ds-wpicker:not([data-view="days"]) .ds-wpicker-icon { visibility: hidden; }
|
|
987
|
+
|
|
988
|
+
.ds-wpicker-grid { border-collapse: collapse; margin: 0 12px 4px; table-layout: fixed; }
|
|
989
|
+
.ds-wpicker-grid th { width: 44px; height: 44px; padding: 0; color: var(--ds-wpicker-text); font-weight: 400; font-size: 14px; text-transform: uppercase; }
|
|
990
|
+
.ds-wpicker-grid td { width: 44px; height: 44px; padding: 0; text-align: center; }
|
|
991
|
+
.ds-wpicker-day {
|
|
992
|
+
display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border-radius: 999px;
|
|
993
|
+
color: var(--ds-wpicker-text) !important; font-size: 15px !important; font-variant-numeric: tabular-nums;
|
|
994
|
+
}
|
|
995
|
+
.ds-wpicker-day[data-outside="true"] { color: var(--ds-wpicker-accent) !important; opacity: .45; }
|
|
996
|
+
.ds-wpicker-day[data-today="true"] { box-shadow: inset 0 0 0 1px var(--ds-wpicker-ink); }
|
|
997
|
+
.ds-wpicker-day[aria-selected="true"] { color: #fff !important; background: var(--ds-wpicker-ink); opacity: 1; }
|
|
998
|
+
.dark .ds-wpicker-day[aria-selected="true"], [data-theme="dark"] .ds-wpicker-day[aria-selected="true"] { color: #0E1118 !important; }
|
|
999
|
+
.ds-wpicker-day[aria-disabled="true"] { opacity: .3; cursor: not-allowed; }
|
|
1000
|
+
|
|
1001
|
+
.ds-wpicker-list {
|
|
1002
|
+
width: 100%; max-height: 300px; margin: 0; padding: 4px 0 8px; overflow-y: auto; list-style: none;
|
|
1003
|
+
border-top: 1px solid var(--ds-wpicker-face); scrollbar-width: thin; scrollbar-color: var(--ds-wpicker-muted) transparent;
|
|
1004
|
+
}
|
|
1005
|
+
.ds-wpicker-option {
|
|
1006
|
+
display: flex; align-items: center; gap: 16px; width: 100%; height: 48px; padding: 0 16px; text-align: start;
|
|
1007
|
+
color: var(--ds-wpicker-text) !important; font-size: 15px !important; text-transform: capitalize;
|
|
1008
|
+
}
|
|
1009
|
+
.ds-wpicker-option > svg { flex: none; width: 24px; height: 24px; visibility: hidden; }
|
|
1010
|
+
.ds-wpicker-option[aria-selected="true"] { background: rgb(29 27 32 / .08); }
|
|
1011
|
+
.ds-wpicker-option[aria-selected="true"] > svg { visibility: visible; }
|
|
1012
|
+
|
|
1013
|
+
.ds-wpicker-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 8px 12px 12px; }
|
|
1014
|
+
.ds-wpicker-actions-spacer { flex: 1; }
|
|
1015
|
+
.ds-wpicker-action { height: 40px; padding: 0 14px; border-radius: 999px; color: var(--ds-wpicker-ink) !important; font-weight: 500 !important; }
|
|
1016
|
+
|
|
1017
|
+
/* Time picker */
|
|
1018
|
+
.ds-wpicker[data-kind="date"] { width: 332px; max-width: calc(100vw - 32px); }
|
|
1019
|
+
.ds-wpicker[data-kind="time"] { width: max-content; max-width: min(572px, calc(100vw - 32px)); }
|
|
1020
|
+
.ds-wpicker-title { padding: 20px 24px 0; color: var(--ds-wpicker-muted); font-size: 12px; font-weight: 500; letter-spacing: .03em; }
|
|
1021
|
+
.ds-wtime-body { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 48px; padding: 16px 24px 8px; }
|
|
1022
|
+
.ds-wtime-inputs { display: flex; flex-direction: column; align-items: center; gap: 16px; }
|
|
1023
|
+
.ds-wtime-fields { display: flex; align-items: center; }
|
|
1024
|
+
.ds-wtime-sep { width: 24px; color: var(--ds-wpicker-text); font: 400 52px/1 var(--ds-font-sans); text-align: center; }
|
|
1025
|
+
.ds-wpicker .ds-wtime-box {
|
|
1026
|
+
width: 96px; height: 80px; padding: 0; border: 2px solid transparent; border-radius: 8px; outline: none;
|
|
1027
|
+
color: var(--ds-wpicker-text); background: var(--ds-wpicker-face); font: 400 52px/1 var(--ds-font-sans); text-align: center;
|
|
1028
|
+
font-variant-numeric: tabular-nums; caret-color: var(--ds-wpicker-accent);
|
|
1029
|
+
}
|
|
1030
|
+
.ds-wpicker .ds-wtime-box[data-active="true"] { color: var(--ds-wpicker-ink); background: #fff; border-color: var(--ds-wpicker-accent); }
|
|
1031
|
+
.dark .ds-wpicker .ds-wtime-box[data-active="true"], [data-theme="dark"] .ds-wpicker .ds-wtime-box[data-active="true"] { background: #0E1118; }
|
|
1032
|
+
.ds-wtime-period { display: flex; width: 216px; height: 40px; overflow: hidden; border: 1px solid var(--ds-wpicker-ink); border-radius: 8px; }
|
|
1033
|
+
.ds-wtime-period button { flex: 1; color: var(--ds-wpicker-muted) !important; font-weight: 500 !important; font-size: 15px !important; }
|
|
1034
|
+
.ds-wtime-period button + button { border-left: 1px solid var(--ds-wpicker-ink); }
|
|
1035
|
+
.ds-wtime-period button[aria-pressed="true"] { color: var(--ds-wpicker-ink) !important; background: #D0EDFF; }
|
|
1036
|
+
.dark .ds-wtime-period button[aria-pressed="true"], [data-theme="dark"] .ds-wtime-period button[aria-pressed="true"] { background: #2B4370; }
|
|
1037
|
+
.ds-wtime-dial {
|
|
1038
|
+
position: relative; flex: none; width: 256px; height: 256px; border-radius: 50%; background: var(--ds-wpicker-face);
|
|
1039
|
+
touch-action: none; user-select: none; cursor: pointer;
|
|
1040
|
+
}
|
|
1041
|
+
.ds-wpicker[data-input="keyboard"] .ds-wtime-dial { display: none; }
|
|
1042
|
+
.ds-wtime-num {
|
|
1043
|
+
position: absolute; z-index: 1; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -22px 0 0 -22px;
|
|
1044
|
+
border-radius: 50%; color: var(--ds-wpicker-text); font-size: 16px; pointer-events: none;
|
|
1045
|
+
}
|
|
1046
|
+
.ds-wtime-num[data-selected="true"] { color: #fff; }
|
|
1047
|
+
.dark .ds-wtime-num[data-selected="true"], [data-theme="dark"] .ds-wtime-num[data-selected="true"] { color: #0E1118; }
|
|
1048
|
+
.ds-wtime-hand {
|
|
1049
|
+
position: absolute; top: 50%; left: 50%; height: 2px; margin-top: -1px; background: var(--ds-wpicker-accent);
|
|
1050
|
+
transform-origin: 0 50%; pointer-events: none;
|
|
1051
|
+
}
|
|
1052
|
+
.ds-wtime-hand::after {
|
|
1053
|
+
content: ""; position: absolute; right: -22px; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: var(--ds-wpicker-accent);
|
|
1054
|
+
}
|
|
1055
|
+
.ds-wtime-center { position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--ds-wpicker-accent); }
|
|
1056
|
+
@media (max-width: 480px) {
|
|
1057
|
+
.ds-wpicker { position: fixed; left: 16px !important; right: 16px !important; top: auto; bottom: 16px; width: auto !important; max-width: none !important; max-height: calc(100dvh - 32px); overflow-y: auto; }
|
|
1058
|
+
.ds-wtime-body { gap: 16px; }
|
|
1059
|
+
.ds-wpicker-grid { margin-inline: auto; }
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
/* ==========================================================================
|
|
1063
|
+
Wari: Atributos del viaje (WariTripAttributes) + WariSelect, WariSwitchList, WariStepper
|
|
1064
|
+
========================================================================== */
|
|
1065
|
+
.ds-wcard-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
|
|
1066
|
+
.ds-wfield[data-label="lg"] > label { font-size: 14px; font-weight: 400; color: var(--ds-text-secondary, #474D59); }
|
|
1067
|
+
|
|
1068
|
+
/* Select (una opción, lista propia con detalle a la derecha) */
|
|
1069
|
+
.ds-wselect .ds-input-shell {
|
|
1070
|
+
min-height: 34px; padding: 0 8px 0 14px; border: 1px solid var(--ds-border-secondary, #DADBDE); background: var(--ds-bg-primary);
|
|
1071
|
+
cursor: pointer; outline: none;
|
|
1072
|
+
}
|
|
1073
|
+
.ds-wselect .ds-input-shell:hover { border-color: var(--ds-color-neutral-400); background: var(--ds-bg-primary); }
|
|
1074
|
+
.ds-wselect .ds-input-shell:focus-visible, .ds-wselect[data-open="true"] .ds-input-shell {
|
|
1075
|
+
border-color: var(--ds-bg-brand-primary); box-shadow: 0 0 0 1px var(--ds-bg-brand-primary); background: var(--ds-bg-primary);
|
|
1076
|
+
}
|
|
1077
|
+
.ds-wselect[data-disabled="true"] .ds-input-shell { cursor: not-allowed; background: var(--ds-bg-secondary); }
|
|
1078
|
+
.ds-wselect-value { flex: 1; min-width: 0; overflow: hidden; color: var(--ds-text-secondary, #474D59); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
|
|
1079
|
+
.ds-wselect-value[data-placeholder="true"] { color: var(--ds-text-placeholder); }
|
|
1080
|
+
.ds-wselect-caret { display: inline-flex; flex: none; color: var(--ds-text-secondary, #474D59); transition: transform var(--ds-duration-fast); }
|
|
1081
|
+
/* Como en Figma: con la lista abierta el campo muestra solo el nombre y la flecha no gira. */
|
|
1082
|
+
.ds-wselect[data-open="true"] .ds-input-shell .ds-wmeta { display: none; }
|
|
1083
|
+
.ds-wselect-list {
|
|
1084
|
+
position: absolute; z-index: 80; top: calc(100% + 6px); left: 0; right: 0; max-height: 280px; margin: 0; padding: 0;
|
|
1085
|
+
overflow-y: auto; list-style: none; border-radius: 8px; background: var(--ds-surface-raised); box-shadow: 0 4px 16px rgb(0 0 0 / .12);
|
|
1086
|
+
animation: ds-pop-enter 150ms ease-out both;
|
|
1087
|
+
}
|
|
1088
|
+
.dark .ds-wselect-list, [data-theme="dark"] .ds-wselect-list { border: 1px solid var(--ds-border-tertiary); }
|
|
1089
|
+
.ds-wselect-option {
|
|
1090
|
+
/* Dos columnas: el detalle empieza en la misma línea vertical en todas las filas, como en Figma. */
|
|
1091
|
+
display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 12px; padding: 8px 16px;
|
|
1092
|
+
color: var(--ds-text-secondary, #474D59); font: 400 14px/1.2 var(--ds-font-sans); cursor: pointer; user-select: none;
|
|
1093
|
+
}
|
|
1094
|
+
.ds-wselect-option > .ds-wselect-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1095
|
+
.ds-wselect-option .ds-wmeta { justify-self: start; }
|
|
1096
|
+
.ds-wselect-option[aria-selected="true"] { background: #E3E7F1; color: var(--ds-text-primary); }
|
|
1097
|
+
.ds-wselect-option[data-active="true"] { background: #F2F4FA; }
|
|
1098
|
+
.ds-wselect-option[aria-selected="true"][data-active="true"] { background: #E3E7F1; }
|
|
1099
|
+
.ds-wselect-option[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
|
|
1100
|
+
.dark .ds-wselect-option[aria-selected="true"], [data-theme="dark"] .ds-wselect-option[aria-selected="true"] { background: #26324F; }
|
|
1101
|
+
.dark .ds-wselect-option[data-active="true"], [data-theme="dark"] .ds-wselect-option[data-active="true"] { background: rgb(255 255 255 / .06); }
|
|
1102
|
+
|
|
1103
|
+
/* Detalle de un servicio: capacidad, "Envío" y precio */
|
|
1104
|
+
.ds-wmeta { display: inline-flex; flex: none; align-items: center; gap: 6px; color: #5E667D; font: 400 12px/1 var(--ds-font-sans); white-space: nowrap; }
|
|
1105
|
+
.dark .ds-wmeta, [data-theme="dark"] .ds-wmeta { color: var(--ds-text-tertiary); }
|
|
1106
|
+
.ds-wmeta-item { display: inline-flex; align-items: center; gap: 3px; }
|
|
1107
|
+
.ds-wmeta-item > svg { width: 12px; height: 12px; flex: none; }
|
|
1108
|
+
.ds-wmeta-badge {
|
|
1109
|
+
display: inline-flex; align-items: center; height: 18px; padding: 0 5px; border: 1px solid #407BFF; border-radius: 8px;
|
|
1110
|
+
color: #2459D6; background: #E3E7F1; font-size: 12px;
|
|
1111
|
+
}
|
|
1112
|
+
.dark .ds-wmeta-badge, [data-theme="dark"] .ds-wmeta-badge { color: #A9C1F7; background: rgb(64 123 255 / .18); }
|
|
1113
|
+
|
|
1114
|
+
/* Lista de interruptores (Por horas / Envíos, Carseat / Booster / Carga) */
|
|
1115
|
+
.ds-wswitches { display: flex; flex-direction: column; margin: 0; padding: 0; border: 1px solid var(--ds-border-secondary, #DADBDE); border-radius: 8px; min-width: 0; }
|
|
1116
|
+
.ds-wswitches[data-orientation="horizontal"] { flex-direction: row; }
|
|
1117
|
+
.ds-wswitches > legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
1118
|
+
.ds-wswitch {
|
|
1119
|
+
display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; min-height: 36px; padding: 6px 12px;
|
|
1120
|
+
color: #676F88; font: 500 14px/1.2 var(--ds-font-sans); letter-spacing: -.02em; cursor: pointer;
|
|
1121
|
+
}
|
|
1122
|
+
.ds-wswitch-item { display: flex; flex: 1; flex-direction: column; min-width: 0; }
|
|
1123
|
+
.ds-wswitch-item + .ds-wswitch-item { border-top: 1px solid var(--ds-border-secondary, #DADBDE); }
|
|
1124
|
+
.ds-wswitches[data-orientation="horizontal"] > .ds-wswitch-item + .ds-wswitch-item { border-top: 0; border-left: 1px solid var(--ds-border-secondary, #DADBDE); }
|
|
1125
|
+
.ds-wswitch:has(input:checked) { color: var(--ds-text-primary); }
|
|
1126
|
+
.ds-wswitch:has(input:disabled) { opacity: .5; cursor: not-allowed; }
|
|
1127
|
+
.dark .ds-wswitch, [data-theme="dark"] .ds-wswitch { color: var(--ds-text-secondary); }
|
|
1128
|
+
.ds-wswitch input {
|
|
1129
|
+
appearance: none; position: relative; flex: none; width: 26px; height: 14px; margin: 0; border-radius: 999px;
|
|
1130
|
+
background: #DADBDE; cursor: inherit; transition: background-color var(--ds-duration-fast);
|
|
1131
|
+
}
|
|
1132
|
+
.ds-wswitch input::after {
|
|
1133
|
+
content: ""; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: #fff;
|
|
1134
|
+
box-shadow: 0 1px 2px rgb(0 0 0 / .2); transition: transform var(--ds-duration-fast) var(--ds-ease-out);
|
|
1135
|
+
}
|
|
1136
|
+
.ds-wswitch input:checked { background: #2C313A; }
|
|
1137
|
+
.ds-wswitch input:checked::after { transform: translateX(12px); }
|
|
1138
|
+
.dark .ds-wswitch input, [data-theme="dark"] .ds-wswitch input { background: #3A4152; }
|
|
1139
|
+
.dark .ds-wswitch input:checked, [data-theme="dark"] .ds-wswitch input:checked { background: var(--ds-bg-brand-primary); }
|
|
1140
|
+
.ds-wswitch input:focus-visible { outline: 2px solid var(--ds-bg-brand-primary); outline-offset: 2px; }
|
|
1141
|
+
|
|
1142
|
+
/* Contador (Cantidad de vehículos) */
|
|
1143
|
+
.ds-wstepper .ds-input-shell { min-height: 32px; padding: 0 4px; gap: 4px; }
|
|
1144
|
+
.ds-wstepper .ds-input-shell > input { height: 28px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
|
|
1145
|
+
.ds-wstepper .ds-input-shell > input::-webkit-inner-spin-button, .ds-wstepper .ds-input-shell > input::-webkit-outer-spin-button { appearance: none; margin: 0; }
|
|
1146
|
+
.ds-wstepper-button {
|
|
1147
|
+
display: inline-flex; align-items: center; justify-content: center; flex: none; width: 24px; height: 24px; padding: 0;
|
|
1148
|
+
border: 0; border-radius: 6px; color: var(--ds-text-secondary, #474D59); background: transparent; cursor: pointer;
|
|
1149
|
+
}
|
|
1150
|
+
.ds-wstepper-button:hover:not(:disabled) { background: rgb(0 0 0 / .06); }
|
|
1151
|
+
.ds-wstepper-button:disabled { color: #B8BDC9; cursor: not-allowed; }
|
|
1152
|
+
.ds-wstepper-button:focus-visible { outline: 2px solid var(--ds-bg-brand-primary); outline-offset: 1px; }
|
|
1153
|
+
.ds-wtrip-service { display: flex; flex-direction: column; gap: 8px; }
|
|
1154
|
+
.ds-wvisually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
1155
|
+
|
|
1156
|
+
/* Las listas propias no heredan estilos de listas de la página (p. ej. `.prose ul { padding-left }`, `.prose li { margin }`). */
|
|
1157
|
+
.ds-wselect .ds-wselect-list, .ds-multiselect .ds-multiselect-list { margin: 0; padding-inline: 0; list-style: none; }
|
|
1158
|
+
.ds-wselect .ds-wselect-list { padding-block: 0; }
|
|
1159
|
+
.ds-multiselect .ds-multiselect-list { padding: 8px; }
|
|
1160
|
+
.ds-wselect .ds-wselect-option, .ds-multiselect .ds-multiselect-option, .ds-multiselect .ds-multiselect-empty { margin: 0; }
|
|
1161
|
+
|
|
1162
|
+
/* ==========================================================================
|
|
1163
|
+
Wari: Cliente / usuario (WariClientSearch)
|
|
1164
|
+
========================================================================== */
|
|
1165
|
+
.ds-wcard[data-hover="lift"] { transition: box-shadow var(--ds-duration-base, 200ms) var(--ds-ease-out); }
|
|
1166
|
+
.ds-wcard[data-hover="lift"]:hover, .ds-wcard[data-hover="lift"]:focus-within { box-shadow: 0 8px 36px rgb(0 0 0 / .17); }
|
|
1167
|
+
.ds-wclient .ds-wcard-header { padding-left: 8px; padding-right: 4px; gap: 10px; }
|
|
1168
|
+
.ds-wclient .ds-wcard-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1169
|
+
.ds-wcard-action {
|
|
1170
|
+
display: inline-flex; flex: none; align-items: center; gap: 4px; height: 32px; padding: 0 4px; border: 0; border-radius: 8px;
|
|
1171
|
+
color: var(--ds-bg-brand-primary); background: transparent; font: 500 14px/1 var(--ds-font-sans); text-decoration: none; cursor: pointer;
|
|
1172
|
+
transition: background-color var(--ds-duration-fast);
|
|
1173
|
+
}
|
|
1174
|
+
.ds-wcard-action:hover { background: color-mix(in srgb, var(--ds-bg-brand-primary) 8%, transparent); }
|
|
1175
|
+
.ds-wcard-action:focus-visible { outline: 2px solid var(--ds-bg-brand-primary); outline-offset: 1px; }
|
|
1176
|
+
.ds-wcard-action > svg { width: 16px; height: 16px; flex: none; }
|
|
1177
|
+
.ds-wsearch { margin: 0; }
|
|
1178
|
+
.ds-wsearch .ds-input-shell { min-height: 34px; padding: 0 8px; border: 1px solid var(--ds-border-secondary, #DADBDE); background: var(--ds-bg-primary); }
|
|
1179
|
+
.ds-wsearch .ds-input-shell:hover { border-color: var(--ds-color-neutral-400); }
|
|
1180
|
+
.ds-wsearch .ds-input-shell:focus-within { border-color: var(--ds-bg-brand-primary); box-shadow: 0 0 0 1px var(--ds-bg-brand-primary); }
|
|
1181
|
+
.ds-wsearch .ds-input-shell > svg { flex: none; width: 24px; height: 24px; color: #676F88; }
|
|
1182
|
+
.ds-wsearch .ds-input-shell > input { height: 32px; font-size: 14px; letter-spacing: -.02em; }
|
|
1183
|
+
.ds-wsearch .ds-input-shell > input::placeholder { color: #676F88; }
|
|
1184
|
+
.ds-wsearch .ds-input-shell > input::-webkit-search-cancel-button { cursor: pointer; }
|
|
1185
|
+
.ds-wclient-results:empty { display: none; }
|
|
1186
|
+
|
|
1187
|
+
/* Cliente / usuario: estados (enfocado fino como en Figma, cargando) */
|
|
1188
|
+
.ds-wsearch .ds-input-shell:focus-within { box-shadow: none; }
|
|
1189
|
+
.ds-wclient-progress {
|
|
1190
|
+
position: relative; height: 8px; overflow: hidden; border-radius: 8px; background: #D0EDFF;
|
|
1191
|
+
}
|
|
1192
|
+
.ds-wclient-progress::after {
|
|
1193
|
+
content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 24%; border-radius: 4px; background: #73C9FF;
|
|
1194
|
+
animation: ds-wclient-progress 1.2s ease-in-out infinite;
|
|
1195
|
+
}
|
|
1196
|
+
@keyframes ds-wclient-progress { from { transform: translateX(-100%); } to { transform: translateX(420%); } }
|
|
1197
|
+
@media (prefers-reduced-motion: reduce) { .ds-wclient-progress::after { animation: none; width: 40%; } }
|
|
1198
|
+
.dark .ds-wclient-progress, [data-theme="dark"] .ds-wclient-progress { background: rgb(115 201 255 / .18); }
|
|
1199
|
+
|
|
1200
|
+
/* Ficha del cliente elegido (WariClientDetails) */
|
|
1201
|
+
.ds-wclient-details { display: flex; flex-direction: column; gap: 12px; min-width: 0; color: var(--ds-text-secondary, #474D59); font-family: var(--ds-font-sans); }
|
|
1202
|
+
.ds-wclient-summary { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
|
|
1203
|
+
.ds-wclient-banner {
|
|
1204
|
+
--ds-wclient-tone: #B1510C; --ds-wclient-tone-bg: #FDF1C8;
|
|
1205
|
+
display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px;
|
|
1206
|
+
border: 1px solid var(--ds-wclient-tone-border, var(--ds-wclient-tone)); border-left-width: 5px; border-radius: 4px;
|
|
1207
|
+
color: var(--ds-wclient-tone); background: var(--ds-wclient-tone-bg); font-size: 14px; line-height: 1.5; letter-spacing: -.02em;
|
|
1208
|
+
}
|
|
1209
|
+
/* Sin VIP (Figma "Usuario VIP / sin VIP"): texto azul oscuro, borde celeste. */
|
|
1210
|
+
.ds-wclient-banner[data-tone="info"] { --ds-wclient-tone: #11278F; --ds-wclient-tone-bg: #E8F6FF; --ds-wclient-tone-border: #73C9FF; }
|
|
1211
|
+
.ds-wclient-banner[data-tone="neutral"] { --ds-wclient-tone: #474D59; --ds-wclient-tone-bg: #F2F4FA; }
|
|
1212
|
+
.dark .ds-wclient-banner, [data-theme="dark"] .ds-wclient-banner {
|
|
1213
|
+
color: color-mix(in srgb, var(--ds-wclient-tone) 45%, #fff); background: color-mix(in srgb, var(--ds-wclient-tone) 20%, transparent);
|
|
1214
|
+
}
|
|
1215
|
+
.ds-wclient-name { margin: 0; overflow: hidden; font-size: 16px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
|
|
1216
|
+
.ds-wclient-company { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1217
|
+
.ds-wclient-phone { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; color: inherit; text-decoration: underline; text-underline-offset: 2px; }
|
|
1218
|
+
.ds-wclient-phone > svg { flex: none; width: 16px; height: 16px; }
|
|
1219
|
+
.ds-wclient-phone:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 2px; }
|
|
1220
|
+
.ds-wclient-actions { display: flex; flex: none; flex-direction: column; gap: 4px; }
|
|
1221
|
+
.ds-wclient-actions > div { display: flex; gap: 4px; }
|
|
1222
|
+
.ds-wclient-rates {
|
|
1223
|
+
height: 32px; padding: 0 14px; border: 0; border-radius: 8px; color: #F2F4FA; background: var(--ds-bg-brand-primary);
|
|
1224
|
+
font: 500 14px/1 var(--ds-font-sans); cursor: pointer;
|
|
1225
|
+
}
|
|
1226
|
+
.ds-wclient-rates:hover { background: var(--ds-color-primary-600, #0843C2); }
|
|
1227
|
+
.ds-wclient-icon {
|
|
1228
|
+
display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px;
|
|
1229
|
+
color: var(--ds-bg-brand-primary); background: #E8F6FF; cursor: pointer;
|
|
1230
|
+
}
|
|
1231
|
+
.ds-wclient-icon:hover { background: #D0EDFF; }
|
|
1232
|
+
.ds-wclient-icon > svg { width: 16px; height: 16px; }
|
|
1233
|
+
.dark .ds-wclient-icon, [data-theme="dark"] .ds-wclient-icon { background: rgb(64 123 255 / .18); color: #A9C1F7; }
|
|
1234
|
+
.ds-wclient-rates:focus-visible, .ds-wclient-icon:focus-visible { outline: 2px solid var(--ds-bg-brand-primary); outline-offset: 2px; }
|
|
1235
|
+
.ds-wclient-rates:disabled, .ds-wclient-icon:disabled { opacity: .5; cursor: not-allowed; }
|
|
1236
|
+
|
|
1237
|
+
/* Panel de campos de la cuenta: campos compactos con fondo blanco sobre gris */
|
|
1238
|
+
.ds-wclient-fields {
|
|
1239
|
+
display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px; border-radius: 8px; background: #E3E7F1;
|
|
1240
|
+
}
|
|
1241
|
+
.dark .ds-wclient-fields, [data-theme="dark"] .ds-wclient-fields { background: var(--ds-bg-secondary); }
|
|
1242
|
+
.ds-wclient-fields .ds-input { gap: 2px; }
|
|
1243
|
+
.ds-wclient-fields .ds-input > label { color: #474D59; font-size: 12px; font-weight: 400; }
|
|
1244
|
+
.dark .ds-wclient-fields .ds-input > label, [data-theme="dark"] .ds-wclient-fields .ds-input > label { color: var(--ds-text-secondary); }
|
|
1245
|
+
.ds-wclient-fields .ds-input-shell { min-height: 26px; padding: 0 4px 0 8px; border: 1px solid transparent; background: var(--ds-bg-primary); }
|
|
1246
|
+
.ds-wclient-fields .ds-input-shell > input, .ds-wclient-fields .ds-input-shell > select { height: 24px; font-size: 14px; }
|
|
1247
|
+
.ds-wclient-fields .ds-wselect .ds-input-shell { min-height: 26px; padding-left: 8px; border-color: transparent; }
|
|
1248
|
+
.ds-wclient-fields .ds-wselect-value { font-size: 14px; }
|
|
1249
|
+
.ds-wclient-fields .ds-wselect-caret svg { width: 16px; height: 16px; }
|
|
1250
|
+
|
|
1251
|
+
/* Observaciones de solo lectura */
|
|
1252
|
+
.ds-wclient-notes { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
|
|
1253
|
+
.ds-wclient-notes > span > em { color: #11278F; font-style: normal; }
|
|
1254
|
+
.dark .ds-wclient-notes > span > em, [data-theme="dark"] .ds-wclient-notes > span > em { color: #A9C1F7; }
|
|
1255
|
+
.ds-wclient-notes > p {
|
|
1256
|
+
margin: 0; min-height: 64px; padding: 12px; border: 1px solid var(--ds-border-secondary, #DADBDE); border-radius: 8px;
|
|
1257
|
+
color: var(--ds-text-secondary, #474D59); white-space: pre-wrap;
|
|
1258
|
+
}
|
|
1259
|
+
.ds-wclient-fields:empty { display: none; }
|
|
1260
|
+
.ds-wclient-progress[data-ds-progress] { display: none; }
|
|
1261
|
+
.ds-wclient[aria-busy="true"] .ds-wclient-progress[data-ds-progress] { display: block; }
|
|
1262
|
+
/* Párrafos propios: no heredan márgenes de estilos de texto de la página (p. ej. `.prose p`). */
|
|
1263
|
+
.ds-wclient-details .ds-wclient-name, .ds-wclient-details .ds-wclient-notes > p { margin: 0; }
|
|
1264
|
+
.ds-wclient-banner .ds-wclient-phone { color: inherit; text-decoration: underline; }
|
|
1265
|
+
|
|
1266
|
+
/* Extras desplegables (Booster: descripción, cantidad y nota al activarlo) */
|
|
1267
|
+
.ds-wswitch-panel { display: flex; flex-direction: column; gap: 8px; padding: 0 12px 12px; }
|
|
1268
|
+
.ds-wswitch-panel[hidden] { display: none; }
|
|
1269
|
+
.ds-wswitch-desc { margin: -4px 0 0; color: #474D59; font-size: 14px; line-height: 1.5; letter-spacing: -.02em; }
|
|
1270
|
+
.dark .ds-wswitch-desc, [data-theme="dark"] .ds-wswitch-desc { color: var(--ds-text-secondary); }
|
|
1271
|
+
.ds-wswitch-note {
|
|
1272
|
+
margin: 0; padding: 8px 16px; border-radius: 8px; color: #fff; background: #2C313A; box-shadow: 0 8px 36px rgb(0 0 0 / .17);
|
|
1273
|
+
font-size: 12px; line-height: 1.5; letter-spacing: -.01em;
|
|
1274
|
+
}
|
|
1275
|
+
.dark .ds-wswitch-note, [data-theme="dark"] .ds-wswitch-note { background: #3A4152; }
|
|
1276
|
+
|
|
1277
|
+
/* Contador con botones con borde (variante del diseño del Booster) */
|
|
1278
|
+
.ds-wstepper[data-variant="outlined"] .ds-input-shell { min-height: 48px; padding: 8px; gap: 8px; border: 0; }
|
|
1279
|
+
.ds-wstepper[data-variant="outlined"] .ds-wstepper-button {
|
|
1280
|
+
width: 32px; height: 32px; border: 1px solid var(--ds-bg-brand-primary); border-radius: 8px; color: var(--ds-bg-brand-primary);
|
|
1281
|
+
background: transparent;
|
|
1282
|
+
}
|
|
1283
|
+
.ds-wstepper[data-variant="outlined"] .ds-wstepper-button:hover:not(:disabled) { background: color-mix(in srgb, var(--ds-bg-brand-primary) 8%, transparent); }
|
|
1284
|
+
.ds-wstepper[data-variant="outlined"] .ds-wstepper-button:disabled { border-color: #DADBDE; color: #B8BDC9; }
|
|
1285
|
+
.ds-wstepper[data-variant="outlined"] .ds-input-shell > input { color: #474D59; }
|
|
1286
|
+
.dark .ds-wstepper[data-variant="outlined"] .ds-input-shell > input, [data-theme="dark"] .ds-wstepper[data-variant="outlined"] .ds-input-shell > input { color: var(--ds-text-primary); }
|
|
1287
|
+
/* El aviso y la descripción de los extras no heredan colores ni márgenes de estilos de texto de la página (p. ej. `.prose p`). */
|
|
1288
|
+
.ds-wswitches .ds-wswitch-note { margin: 0; color: #fff; }
|
|
1289
|
+
.ds-wswitches .ds-wswitch-desc { margin: -4px 0 0; color: #474D59; }
|
|
1290
|
+
.dark .ds-wswitches .ds-wswitch-desc, [data-theme="dark"] .ds-wswitches .ds-wswitch-desc { color: var(--ds-text-secondary); }
|
|
1291
|
+
/* Títulos y textos propios de Wari: ignoran estilos de texto de la página (`.prose h3`, `.prose p`…). */
|
|
1292
|
+
.ds-wcard-header > .ds-wcard-title, .ds-wschedule-header > .ds-wschedule-title { margin: 0; color: inherit; font: 500 16px/1.5 var(--ds-font-sans); letter-spacing: -.02em; }
|
|
1293
|
+
.ds-wclient-banner > .ds-wclient-name { margin: 0; color: inherit; font-size: 16px; font-weight: 500; line-height: 1.5; }
|
|
1294
|
+
.ds-wclient-details .ds-wclient-notes > p { color: var(--ds-text-secondary, #474D59); }
|
|
1295
|
+
|
|
1296
|
+
/* Extras con una opción por unidad (Carseat: una edad por carseat, + para agregar, papelera para quitar) */
|
|
1297
|
+
.ds-wswitch-units { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 8px; background: #F2F4FA; }
|
|
1298
|
+
.dark .ds-wswitch-units, [data-theme="dark"] .ds-wswitch-units { background: var(--ds-bg-secondary); }
|
|
1299
|
+
.ds-wswitch-unit { display: flex; align-items: flex-start; gap: 8px; }
|
|
1300
|
+
.ds-wswitch-unit > .ds-wselect { flex: 1; min-width: 0; }
|
|
1301
|
+
.ds-wswitch-unit .ds-wselect .ds-input-shell { min-height: 32px; }
|
|
1302
|
+
.ds-wswitch-unit-button {
|
|
1303
|
+
display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; margin-top: 1px; padding: 0;
|
|
1304
|
+
border: 1px solid var(--ds-bg-brand-primary); border-radius: 8px; color: var(--ds-bg-brand-primary); background: var(--ds-bg-primary); cursor: pointer;
|
|
1305
|
+
}
|
|
1306
|
+
.ds-wswitch-unit-button:hover { background: color-mix(in srgb, var(--ds-bg-brand-primary) 8%, var(--ds-bg-primary)); }
|
|
1307
|
+
.ds-wswitch-unit-button:focus-visible { outline: 2px solid var(--ds-bg-brand-primary); outline-offset: 2px; }
|
|
1308
|
+
.ds-wswitch-unit-button:disabled { border-color: #DADBDE; color: #B8BDC9; cursor: not-allowed; }
|
|
1309
|
+
.ds-wswitch-unit-button > svg { width: 16px; height: 16px; }
|
|
1310
|
+
|
|
1311
|
+
/* Extras con campos propios (Carga: peso aproximado y valor estimado) */
|
|
1312
|
+
.ds-wswitch-fields { display: flex; gap: 8px; padding: 12px; border-radius: 8px; background: #F2F4FA; }
|
|
1313
|
+
.dark .ds-wswitch-fields, [data-theme="dark"] .ds-wswitch-fields { background: var(--ds-bg-secondary); }
|
|
1314
|
+
.ds-wswitch-fields .ds-wswitch-field {
|
|
1315
|
+
flex: 1; min-width: 0; height: 32px; margin: 0; padding: 0 8px; border: 1px solid var(--ds-border-secondary, #DADBDE); border-radius: 8px;
|
|
1316
|
+
color: var(--ds-text-secondary, #474D59); background: var(--ds-bg-primary); font: 400 14px/1 var(--ds-font-sans); letter-spacing: -.02em; outline: none;
|
|
1317
|
+
transition: border-color var(--ds-duration-fast);
|
|
1318
|
+
}
|
|
1319
|
+
.ds-wswitch-fields .ds-wswitch-field[data-fixed="true"] { flex: none; }
|
|
1320
|
+
.ds-wswitch-fields .ds-wswitch-field::placeholder { color: var(--ds-text-placeholder, #8A92A6); opacity: 1; }
|
|
1321
|
+
.ds-wswitch-fields .ds-wswitch-field:hover:not(:disabled) { border-color: var(--ds-color-neutral-400); }
|
|
1322
|
+
.ds-wswitch-fields .ds-wswitch-field:focus-visible { border-color: var(--ds-bg-brand-primary); }
|
|
1323
|
+
.ds-wswitch-fields .ds-wswitch-field:disabled { background: var(--ds-bg-secondary); cursor: not-allowed; }
|
|
1324
|
+
|
|
1325
|
+
/* ==========================================================================
|
|
1326
|
+
Wari: Rutas (WariRoute) — paradas reordenables, pasajeros, peajes e invertir
|
|
1327
|
+
========================================================================== */
|
|
1328
|
+
.ds-wroute .ds-wcard-header { gap: 12px; }
|
|
1329
|
+
.ds-wroute .ds-wcard-title { flex: none; }
|
|
1330
|
+
.ds-wroute-header-spacer { flex: 1; }
|
|
1331
|
+
.ds-wroute-pill, .ds-wroute-link, .ds-wroute-add, .ds-wroute-toll-add, .ds-wroute-stop-passenger {
|
|
1332
|
+
display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px; border: 0; border-radius: 8px;
|
|
1333
|
+
background: transparent; font: 500 14px/1 var(--ds-font-sans); letter-spacing: -.02em; cursor: pointer; white-space: nowrap;
|
|
1334
|
+
transition: background-color var(--ds-duration-fast);
|
|
1335
|
+
}
|
|
1336
|
+
.ds-wroute-pill { color: var(--ds-bg-brand-primary); background: #E8F6FF; }
|
|
1337
|
+
.ds-wroute-pill:hover { background: #D0EDFF; }
|
|
1338
|
+
.ds-wroute-link, .ds-wroute-add { color: var(--ds-bg-brand-primary); }
|
|
1339
|
+
.ds-wroute-link:hover, .ds-wroute-add:hover, .ds-wroute-stop-passenger:hover, .ds-wroute-toll-add:hover {
|
|
1340
|
+
background: color-mix(in srgb, var(--ds-bg-brand-primary) 8%, transparent);
|
|
1341
|
+
}
|
|
1342
|
+
.ds-wroute-toll-add { height: 28px; padding: 0 8px; color: var(--ds-text-primary); }
|
|
1343
|
+
.ds-wroute-stop-passenger { height: 28px; color: var(--ds-text-secondary, #474D59); font-weight: 500; }
|
|
1344
|
+
.ds-wroute :is(.ds-wroute-pill, .ds-wroute-link, .ds-wroute-add, .ds-wroute-toll-add, .ds-wroute-stop-passenger) > svg { flex: none; width: 16px; height: 16px; }
|
|
1345
|
+
.ds-wroute :is(button):focus-visible, .ds-wroute input:focus-visible { outline: 2px solid var(--ds-bg-brand-primary); outline-offset: 1px; }
|
|
1346
|
+
.ds-wroute :is(button):disabled { opacity: .45; cursor: not-allowed; }
|
|
1347
|
+
.dark .ds-wroute-pill, [data-theme="dark"] .ds-wroute-pill { background: rgb(64 123 255 / .16); color: #A9C1F7; }
|
|
1348
|
+
|
|
1349
|
+
/* Inputs propios (sin borde, sobre fondos grises) */
|
|
1350
|
+
.ds-wroute input.ds-wroute-input {
|
|
1351
|
+
min-width: 0; height: 28px; margin: 0; padding: 0 4px; border: 0; border-radius: 6px; outline: none;
|
|
1352
|
+
color: var(--ds-text-primary); background: transparent; font: 400 14px/1 var(--ds-font-sans); letter-spacing: -.02em;
|
|
1353
|
+
}
|
|
1354
|
+
.ds-wroute input.ds-wroute-input::placeholder { color: #8A92A6; opacity: 1; }
|
|
1355
|
+
.ds-wroute input.ds-wroute-input.ds-wroute-input-sm { font-size: 12px; }
|
|
1356
|
+
|
|
1357
|
+
/* Pasajero (ruta completa o de una parada) */
|
|
1358
|
+
.ds-wroute-passenger-block { display: flex; flex-direction: column; gap: 4px; padding-left: 40px; }
|
|
1359
|
+
.ds-wroute-passenger { display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 8px; border-radius: 8px; background: #E3E7F1; }
|
|
1360
|
+
.ds-wroute-passenger > label { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; color: #676F88; }
|
|
1361
|
+
.ds-wroute-passenger > label > svg { flex: none; width: 16px; height: 16px; }
|
|
1362
|
+
.ds-wroute-passenger .ds-wroute-input { flex: 1; font-size: 12px; }
|
|
1363
|
+
.ds-wroute-clear { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; color: #474D59; background: transparent; cursor: pointer; }
|
|
1364
|
+
.ds-wroute-clear:hover { background: rgb(0 0 0 / .06); }
|
|
1365
|
+
.ds-wroute-clear > svg { width: 16px; height: 16px; }
|
|
1366
|
+
.ds-wroute-info { margin: 0; padding: 8px 16px; border-radius: 8px; color: #11278F; background: #CEDCFA; font: 400 12px/1.5 var(--ds-font-sans); }
|
|
1367
|
+
.dark .ds-wroute .ds-wroute-passenger, [data-theme="dark"] .ds-wroute .ds-wroute-passenger { background: var(--ds-bg-tertiary, #2A2F3A); }
|
|
1368
|
+
.dark .ds-wroute-passenger > label, [data-theme="dark"] .ds-wroute-passenger > label, .dark .ds-wroute-clear, [data-theme="dark"] .ds-wroute-clear { color: var(--ds-text-secondary); }
|
|
1369
|
+
.dark .ds-wroute-info, [data-theme="dark"] .ds-wroute-info { color: #CFDEFC; background: rgb(64 123 255 / .2); }
|
|
1370
|
+
|
|
1371
|
+
/* Paradas */
|
|
1372
|
+
.ds-wroute-stops { display: flex; flex-direction: column; gap: 12px; max-height: var(--ds-wroute-max-height, 340px); margin: 0; padding: 0 4px 0 0; overflow-y: auto; list-style: none; scrollbar-width: thin; scrollbar-color: #DADBDE transparent; }
|
|
1373
|
+
.ds-wroute-stop { display: flex; align-items: flex-start; gap: 8px; }
|
|
1374
|
+
.ds-wroute-stop[data-dragging="true"] { opacity: .45; }
|
|
1375
|
+
.ds-wroute-stop[data-drop="true"] > .ds-wroute-stop-box { box-shadow: 0 -2px 0 var(--ds-bg-brand-primary); }
|
|
1376
|
+
.ds-wroute-handle, .ds-wroute-remove {
|
|
1377
|
+
display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px;
|
|
1378
|
+
color: var(--ds-bg-brand-primary); background: transparent; cursor: grab;
|
|
1379
|
+
}
|
|
1380
|
+
.ds-wroute-handle:active { cursor: grabbing; }
|
|
1381
|
+
.ds-wroute-remove { background: #F2F4FA; cursor: pointer; }
|
|
1382
|
+
.ds-wroute-remove:hover { background: #E3E7F1; }
|
|
1383
|
+
.ds-wroute-handle > svg, .ds-wroute-remove > svg { width: 18px; height: 18px; }
|
|
1384
|
+
.ds-wroute-stop-box { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; padding: 4px 8px 4px 0; border-radius: 8px; background: #F2F4FA; }
|
|
1385
|
+
.dark .ds-wroute-stop-box, [data-theme="dark"] .ds-wroute-stop-box, .dark .ds-wroute-remove, [data-theme="dark"] .ds-wroute-remove { background: var(--ds-bg-secondary); }
|
|
1386
|
+
.ds-wroute-stop-main { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding-bottom: 4px; border-bottom: 1px solid #DADBDE; }
|
|
1387
|
+
.ds-wroute-address { display: flex; flex: 1 1 220px; align-items: center; gap: 8px; min-width: 0; padding-left: 12px; }
|
|
1388
|
+
.ds-wroute-address > .ds-wroute-input { flex: 1; }
|
|
1389
|
+
.ds-wroute-address > svg { flex: none; width: 16px; height: 16px; color: var(--ds-bg-brand-primary); }
|
|
1390
|
+
.ds-wroute-zone { display: inline-flex; align-items: center; gap: 4px; padding: 0 12px; color: #676F88; font: 400 12px/1.5 var(--ds-font-sans); white-space: nowrap; }
|
|
1391
|
+
.ds-wroute-zone > strong { color: #11278F; font-weight: 500; }
|
|
1392
|
+
.ds-wroute-price { padding: 0 12px; color: var(--ds-text-primary); font: 500 12px/1.5 var(--ds-font-sans); white-space: nowrap; }
|
|
1393
|
+
.dark .ds-wroute-zone > strong, [data-theme="dark"] .ds-wroute-zone > strong { color: #A9C1F7; }
|
|
1394
|
+
.ds-wroute-stop-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-left: 32px; }
|
|
1395
|
+
.ds-wroute-stop-extra > .ds-wroute-input { flex: 1 1 200px; }
|
|
1396
|
+
.ds-wroute-stop-box .ds-wroute-passenger { margin-left: 32px; background: #E3E7F1; }
|
|
1397
|
+
|
|
1398
|
+
/* Agregar destino y peajes */
|
|
1399
|
+
.ds-wroute-add { align-self: flex-start; margin-left: 32px; }
|
|
1400
|
+
.ds-wroute-tolls { display: flex; flex-direction: column; gap: 8px; width: min(331px, 100%); margin-left: 40px; padding: 8px 12px; border-radius: 8px; background: #F2F4FA; }
|
|
1401
|
+
.dark .ds-wroute-tolls, [data-theme="dark"] .ds-wroute-tolls { background: var(--ds-bg-secondary); }
|
|
1402
|
+
.ds-wroute-toll { display: flex; align-items: center; gap: 12px; color: var(--ds-text-secondary, #474D59); font: 400 14px/1.5 var(--ds-font-sans); }
|
|
1403
|
+
.ds-wroute-toll > label { width: 56px; flex: none; }
|
|
1404
|
+
.ds-wroute-toll > input.ds-wroute-input { flex: 1; height: 32px; padding: 0 8px; border: 1px solid #DADBDE; border-radius: 8px; background: var(--ds-bg-primary); }
|
|
1405
|
+
.ds-wroute-toll > .ds-wroute-clear { width: 24px; height: 24px; }
|
|
1406
|
+
.ds-wroute-toll-add { align-self: flex-start; }
|
|
1407
|
+
|
|
1408
|
+
/* Invertir: cargando y éxito */
|
|
1409
|
+
.ds-wroute-status { display: flex; flex-direction: column; gap: 8px; color: #2F6BF2; font: 400 14px/1.5 var(--ds-font-sans); }
|
|
1410
|
+
.ds-wroute-success {
|
|
1411
|
+
margin: 0 16px 0 40px; padding: 8px 16px; border-radius: 8px; color: #166534; background: #DCFCE7; box-shadow: 0 8px 36px rgb(0 0 0 / .17);
|
|
1412
|
+
font: 400 12px/1.5 var(--ds-font-sans);
|
|
1413
|
+
}
|
|
1414
|
+
.dark .ds-wroute-success, [data-theme="dark"] .ds-wroute-success { color: #A7F3C4; background: rgb(22 101 52 / .35); }
|
|
1415
|
+
/* Párrafos y listas propias: ignoran estilos de texto de la página (`.prose p`, `.prose ul`…). */
|
|
1416
|
+
.ds-wroute .ds-wroute-info, .ds-wroute .ds-wroute-success { margin-top: 0; margin-bottom: 0; }
|
|
1417
|
+
.ds-wroute .ds-wroute-stops { margin: 0; padding-left: 0; }
|
|
1418
|
+
.ds-wroute .ds-wroute-stops > li { margin: 0; }
|
|
1419
|
+
@media (max-width: 560px) {
|
|
1420
|
+
.ds-wroute-passenger-block, .ds-wroute-tolls { margin-left: 0; padding-left: 0; }
|
|
1421
|
+
.ds-wroute-passenger { flex-wrap: wrap; }
|
|
1422
|
+
.ds-wroute .ds-wcard-header { flex-wrap: wrap; }
|
|
1423
|
+
}
|
|
1424
|
+
.dark .ds-wroute-stop-main, [data-theme="dark"] .ds-wroute-stop-main { border-bottom-color: var(--ds-border-primary); }
|
|
1425
|
+
.dark .ds-wroute-toll > input.ds-wroute-input, [data-theme="dark"] .ds-wroute-toll > input.ds-wroute-input { border-color: var(--ds-border-primary); }
|
|
1426
|
+
.ds-wroute :is(.ds-wroute-add, .ds-wroute-toll-add) > svg path { stroke: var(--ds-bg-primary, #fff); }
|
|
1427
|
+
|
|
1428
|
+
/* Wari Rutas: movimiento (deslizar al reordenar, aparecer y desvanecer lo hacen motion.ts; aquí los estados) */
|
|
1429
|
+
.ds-wroute-stop-box { transition: background-color var(--ds-duration-fast, .15s) ease, box-shadow .2s ease, transform .2s ease; }
|
|
1430
|
+
.ds-wroute-stop:hover > .ds-wroute-stop-box { background: #ECEFF7; }
|
|
1431
|
+
.ds-wroute-stop:focus-within > .ds-wroute-stop-box { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ds-bg-brand-primary) 45%, transparent); }
|
|
1432
|
+
.dark .ds-wroute-stop:hover > .ds-wroute-stop-box, [data-theme="dark"] .ds-wroute-stop:hover > .ds-wroute-stop-box { background: var(--ds-bg-tertiary); }
|
|
1433
|
+
.ds-wroute-stop[data-dragging="true"] { opacity: 1; }
|
|
1434
|
+
.ds-wroute-stop[data-dragging="true"] > .ds-wroute-stop-box { opacity: .55; transform: scale(.985); box-shadow: 0 0 0 1px var(--ds-bg-brand-primary); }
|
|
1435
|
+
.ds-wroute-stop[data-drop="true"] > .ds-wroute-stop-box { box-shadow: 0 -3px 0 var(--ds-bg-brand-primary); transform: translateY(3px); }
|
|
1436
|
+
.ds-wroute-handle { transition: background-color .15s ease, transform .15s ease; }
|
|
1437
|
+
.ds-wroute-handle:hover { background: color-mix(in srgb, var(--ds-bg-brand-primary) 10%, transparent); }
|
|
1438
|
+
.ds-wroute-remove, .ds-wroute-clear { transition: background-color .15s ease, color .15s ease, transform .15s ease; }
|
|
1439
|
+
.ds-wroute-remove:hover { color: #C2410C; }
|
|
1440
|
+
.ds-wroute :is(.ds-wroute-pill, .ds-wroute-link, .ds-wroute-add, .ds-wroute-toll-add, .ds-wroute-stop-passenger, .ds-wroute-handle, .ds-wroute-remove, .ds-wroute-clear) { transition-property: background-color, color, transform; transition-duration: .15s; }
|
|
1441
|
+
.ds-wroute :is(.ds-wroute-pill, .ds-wroute-link, .ds-wroute-add, .ds-wroute-toll-add, .ds-wroute-stop-passenger, .ds-wroute-remove, .ds-wroute-clear):active:not(:disabled) { transform: scale(.95); }
|
|
1442
|
+
.ds-wroute-link > svg { transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
|
|
1443
|
+
.ds-wroute-link:hover:not(:disabled) > svg { transform: rotate(180deg); }
|
|
1444
|
+
.ds-wroute :is(.ds-wroute-add, .ds-wroute-toll-add) > svg { transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
|
|
1445
|
+
.ds-wroute :is(.ds-wroute-add, .ds-wroute-toll-add):hover:not(:disabled) > svg { transform: rotate(90deg); }
|
|
1446
|
+
.ds-wroute input.ds-wroute-input { transition: background-color .15s ease, box-shadow .15s ease; }
|
|
1447
|
+
.ds-wroute .ds-wroute-toll > input.ds-wroute-input { transition: border-color .15s ease, box-shadow .15s ease; }
|
|
1448
|
+
.ds-wroute .ds-wroute-toll > input.ds-wroute-input:focus { border-color: var(--ds-bg-brand-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ds-bg-brand-primary) 18%, transparent); outline: none; }
|
|
1449
|
+
.ds-wroute-status { animation: ds-wroute-fade .25s ease both; }
|
|
1450
|
+
.ds-wroute-success { animation: ds-wroute-toast 3s cubic-bezier(.2, .8, .2, 1) both; }
|
|
1451
|
+
@keyframes ds-wroute-fade { from { opacity: 0; } to { opacity: 1; } }
|
|
1452
|
+
@keyframes ds-wroute-toast {
|
|
1453
|
+
0% { opacity: 0; transform: translateY(-8px) scale(.97); }
|
|
1454
|
+
8%, 88% { opacity: 1; transform: none; }
|
|
1455
|
+
100% { opacity: 0; transform: translateY(-4px); }
|
|
1456
|
+
}
|
|
1457
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1458
|
+
.ds-wroute *, .ds-wroute *::before, .ds-wroute *::after { transition: none !important; animation-duration: .01ms !important; }
|
|
1459
|
+
.ds-wroute-success { animation: none; }
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
/* Pasajero (WariPassengerField): nombre y número en una fila gris, ⓧ para vaciarla y barra de carga debajo. */
|
|
1463
|
+
.ds-wpassenger {
|
|
1464
|
+
display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 4px; border-radius: 8px;
|
|
1465
|
+
color: #676F88; background: #E3E7F1; font-family: var(--ds-font-sans);
|
|
1466
|
+
}
|
|
1467
|
+
.ds-wpassenger-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
|
|
1468
|
+
.ds-wpassenger-field { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; padding: 4px 8px; border-radius: 8px; cursor: text; }
|
|
1469
|
+
.ds-wpassenger-field > svg { flex: none; width: 16px; height: 16px; margin: 4px; }
|
|
1470
|
+
.ds-wpassenger input.ds-wpassenger-input {
|
|
1471
|
+
flex: 1; min-width: 0; height: 24px; margin: 0; padding: 0; border: 0; outline: none; color: #474D59; background: transparent;
|
|
1472
|
+
caret-color: var(--ds-bg-brand-primary, #0A50E6); font: 400 12px/1.5 var(--ds-font-sans); letter-spacing: -.5px; text-overflow: ellipsis;
|
|
1473
|
+
}
|
|
1474
|
+
.ds-wpassenger input.ds-wpassenger-input::placeholder { color: #676F88; opacity: 1; }
|
|
1475
|
+
.ds-wpassenger-field:focus-within { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ds-bg-brand-primary, #0A50E6) 35%, transparent); }
|
|
1476
|
+
.ds-wpassenger-field:has(input:focus-visible) { box-shadow: inset 0 0 0 2px var(--ds-bg-brand-primary, #0A50E6); }
|
|
1477
|
+
.ds-wpassenger-clear {
|
|
1478
|
+
display: inline-flex; flex: none; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0;
|
|
1479
|
+
border-radius: 8px; color: #676F88; background: transparent; cursor: pointer; transition: background-color .15s ease, color .15s ease, transform .15s ease;
|
|
1480
|
+
}
|
|
1481
|
+
.ds-wpassenger-clear > svg { width: 16px; height: 16px; }
|
|
1482
|
+
.ds-wpassenger-clear:hover:not(:disabled) { color: #474D59; background: rgb(0 0 0 / .06); }
|
|
1483
|
+
.ds-wpassenger-clear:active:not(:disabled) { transform: scale(.92); }
|
|
1484
|
+
.ds-wpassenger-clear:focus-visible { outline: 2px solid var(--ds-bg-brand-primary, #0A50E6); outline-offset: 1px; }
|
|
1485
|
+
.ds-wpassenger :disabled { opacity: .5; cursor: not-allowed; }
|
|
1486
|
+
.ds-wpassenger-progress { animation: ds-wroute-fade .2s ease both; }
|
|
1487
|
+
.ds-wpassenger-progress[data-ds-progress] { display: none; }
|
|
1488
|
+
.ds-wpassenger[aria-busy="true"] .ds-wpassenger-progress[data-ds-progress] { display: block; }
|
|
1489
|
+
.ds-wpassenger-field > svg[hidden] { display: none; }
|
|
1490
|
+
@media (max-width: 480px) { .ds-wpassenger-row { flex-wrap: wrap; } .ds-wpassenger-field { flex-basis: calc(100% - 42px); } }
|
|
1491
|
+
.dark .ds-wpassenger, [data-theme="dark"] .ds-wpassenger { color: var(--ds-text-secondary); background: var(--ds-bg-tertiary, #2A2F3A); }
|
|
1492
|
+
.dark .ds-wpassenger input.ds-wpassenger-input, [data-theme="dark"] .ds-wpassenger input.ds-wpassenger-input { color: var(--ds-text-primary); }
|
|
1493
|
+
.dark .ds-wpassenger input.ds-wpassenger-input::placeholder, [data-theme="dark"] .ds-wpassenger input.ds-wpassenger-input::placeholder { color: var(--ds-text-tertiary, #8A92A6); }
|
|
1494
|
+
.dark .ds-wpassenger-clear, [data-theme="dark"] .ds-wpassenger-clear { color: var(--ds-text-secondary); }
|